From e2baf7095234dce917bbcd981f50072b13e6cf2c Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 14 Jan 2025 12:43:56 -0600 Subject: [PATCH] windows --- .../src/Windows/Wdk/Graphics/Direct3D/mod.rs | 114 +- .../Win32/AI/MachineLearning/DirectML/mod.rs | 36 +- .../Win32/AI/MachineLearning/WinML/mod.rs | 2 +- .../src/Windows/Win32/Data/HtmlHelp/mod.rs | 42 +- .../Win32/Data/RightsManagement/mod.rs | 26 +- .../src/Windows/Win32/Data/Xml/MsXml/mod.rs | 14 +- .../src/Windows/Win32/Data/Xml/XmlLite/mod.rs | 64 +- .../src/Windows/Win32/Devices/AllJoyn/mod.rs | 10 +- .../Win32/Devices/BiometricFramework/mod.rs | 8 +- .../Windows/Win32/Devices/Bluetooth/mod.rs | 78 +- .../Win32/Devices/Communication/mod.rs | 56 +- .../DeviceAndDriverInstallation/mod.rs | 656 ++++---- .../src/Windows/Win32/Devices/Display/mod.rs | 236 +-- .../Win32/Devices/Enumeration/Pnp/mod.rs | 10 +- .../src/Windows/Win32/Devices/Fax/mod.rs | 334 ++-- .../Win32/Devices/FunctionDiscovery/mod.rs | 28 +- .../Windows/Win32/Devices/Geolocation/mod.rs | 50 +- .../Win32/Devices/HumanInterfaceDevice/mod.rs | 24 +- .../Win32/Devices/ImageAcquisition/mod.rs | 56 +- .../Win32/Devices/PortableDevices/mod.rs | 30 +- .../src/Windows/Win32/Devices/Sensors/mod.rs | 18 +- .../Win32/Devices/SerialCommunication/mod.rs | 4 +- .../src/Windows/Win32/Devices/Tapi/mod.rs | 14 +- .../src/Windows/Win32/Devices/Usb/mod.rs | 66 +- .../Win32/Devices/WebServicesOnDevices/mod.rs | 62 +- .../src/Windows/Win32/Foundation/mod.rs | 22 +- .../windows/src/Windows/Win32/Gaming/mod.rs | 52 +- .../src/Windows/Win32/Globalization/mod.rs | 264 +-- .../Windows/Win32/Graphics/Direct2D/mod.rs | 156 +- .../Win32/Graphics/Direct3D/Dxc/mod.rs | 24 +- .../Win32/Graphics/Direct3D/Fxc/mod.rs | 2 +- .../Windows/Win32/Graphics/Direct3D10/mod.rs | 278 +-- .../Windows/Win32/Graphics/Direct3D11/mod.rs | 560 +++---- .../Windows/Win32/Graphics/Direct3D12/mod.rs | 370 ++-- .../Windows/Win32/Graphics/Direct3D9/mod.rs | 134 +- .../Win32/Graphics/Direct3D9on12/mod.rs | 2 +- .../Win32/Graphics/DirectComposition/mod.rs | 124 +- .../Windows/Win32/Graphics/DirectDraw/mod.rs | 94 +- .../Win32/Graphics/DirectManipulation/mod.rs | 14 +- .../Windows/Win32/Graphics/DirectWrite/mod.rs | 599 ++++--- .../src/Windows/Win32/Graphics/Dwm/mod.rs | 34 +- .../Windows/Win32/Graphics/Dxgi/Common/mod.rs | 2 +- .../src/Windows/Win32/Graphics/Dxgi/mod.rs | 164 +- .../src/Windows/Win32/Graphics/Gdi/mod.rs | 744 ++++----- .../src/Windows/Win32/Graphics/GdiPlus/mod.rs | 172 +- .../src/Windows/Win32/Graphics/Imaging/mod.rs | 172 +- .../src/Windows/Win32/Graphics/OpenGL/mod.rs | 28 +- .../Windows/Win32/Graphics/Printing/mod.rs | 670 ++++---- .../MobileDeviceManagementRegistration/mod.rs | 20 +- .../src/Windows/Win32/Media/Audio/Apo/mod.rs | 20 +- .../Win32/Media/Audio/DirectMusic/mod.rs | 44 +- .../Win32/Media/Audio/DirectSound/mod.rs | 10 +- .../Win32/Media/Audio/Endpoints/mod.rs | 56 +- .../Windows/Win32/Media/Audio/XAudio2/mod.rs | 26 +- .../src/Windows/Win32/Media/Audio/mod.rs | 172 +- .../Windows/Win32/Media/DeviceManager/mod.rs | 16 +- .../Windows/Win32/Media/DirectShow/Tv/mod.rs | 330 ++-- .../src/Windows/Win32/Media/DirectShow/mod.rs | 556 +++--- .../Windows/Win32/Media/DxMediaObjects/mod.rs | 4 +- .../Win32/Media/KernelStreaming/mod.rs | 116 +- .../Win32/Media/MediaFoundation/mod.rs | 1030 ++++++------ .../Windows/Win32/Media/MediaPlayer/mod.rs | 204 +-- .../src/Windows/Win32/Media/Multimedia/mod.rs | 180 +- .../Win32/Media/PictureAcquisition/mod.rs | 90 +- .../src/Windows/Win32/Media/Speech/mod.rs | 174 +- .../Win32/Media/WindowsMediaFormat/mod.rs | 550 +++--- .../Win32/NetworkManagement/Dhcp/mod.rs | 106 +- .../Win32/NetworkManagement/Dns/mod.rs | 40 +- .../Win32/NetworkManagement/IpHelper/mod.rs | 46 +- .../NetworkManagement/MobileBroadband/mod.rs | 16 +- .../Win32/NetworkManagement/Multicast/mod.rs | 2 +- .../NetworkManagement/NetManagement/mod.rs | 198 +-- .../Win32/NetworkManagement/NetShell/mod.rs | 10 +- .../NetworkDiagnosticsFramework/mod.rs | 6 +- .../Win32/NetworkManagement/P2P/mod.rs | 24 +- .../Win32/NetworkManagement/QoS/mod.rs | 50 +- .../Win32/NetworkManagement/Rras/mod.rs | 168 +- .../Win32/NetworkManagement/Snmp/mod.rs | 40 +- .../Win32/NetworkManagement/WNet/mod.rs | 22 +- .../Win32/NetworkManagement/WebDav/mod.rs | 6 +- .../Win32/NetworkManagement/WiFi/mod.rs | 64 +- .../WindowsConnectionManager/mod.rs | 8 +- .../WindowsFilteringPlatform/mod.rs | 20 +- .../NetworkManagement/WindowsFirewall/mod.rs | 10 +- .../Win32/Networking/ActiveDirectory/mod.rs | 124 +- .../mod.rs | 50 +- .../Win32/Networking/Clustering/mod.rs | 278 +-- .../Win32/Networking/HttpServer/mod.rs | 4 +- .../Networking/NetworkListManager/mod.rs | 16 +- .../RemoteDifferentialCompression/mod.rs | 100 +- .../Windows/Win32/Networking/WinHttp/mod.rs | 62 +- .../Windows/Win32/Networking/WinInet/mod.rs | 574 +++---- .../Windows/Win32/Networking/WinSock/mod.rs | 84 +- .../Networking/WindowsWebServices/mod.rs | 80 +- .../Windows/Win32/Security/AppLocker/mod.rs | 24 +- .../Authentication/Identity/Provider/mod.rs | 16 +- .../Security/Authentication/Identity/mod.rs | 24 +- .../Win32/Security/Authorization/UI/mod.rs | 16 +- .../Win32/Security/Authorization/mod.rs | 248 +-- .../Win32/Security/ConfigurationSnapin/mod.rs | 12 +- .../Windows/Win32/Security/Credentials/mod.rs | 110 +- .../Security/Cryptography/Catalog/mod.rs | 46 +- .../Security/Cryptography/Certificates/mod.rs | 294 ++-- .../Win32/Security/Cryptography/Sip/mod.rs | 50 +- .../Win32/Security/Cryptography/UI/mod.rs | 48 +- .../Win32/Security/Cryptography/mod.rs | 728 ++++---- .../Win32/Security/DiagnosticDataQuery/mod.rs | 8 +- .../Win32/Security/EnterpriseData/mod.rs | 4 +- .../ExtensibleAuthenticationProtocol/mod.rs | 46 +- .../Windows/Win32/Security/Isolation/mod.rs | 34 +- .../Security/NetworkAccessProtection/mod.rs | 2 +- .../src/Windows/Win32/Security/Tpm/mod.rs | 30 +- .../Windows/Win32/Security/WinTrust/mod.rs | 78 +- .../src/Windows/Win32/Security/WinWlx/mod.rs | 32 +- .../windows/src/Windows/Win32/Security/mod.rs | 312 ++-- .../src/Windows/Win32/Storage/Cabinets/mod.rs | 48 +- .../Windows/Win32/Storage/Compression/mod.rs | 24 +- .../Win32/Storage/EnhancedStorage/mod.rs | 40 +- .../Windows/Win32/Storage/FileHistory/mod.rs | 36 +- .../Windows/Win32/Storage/FileSystem/mod.rs | 576 +++---- .../Windows/Win32/Storage/OfflineFiles/mod.rs | 314 ++-- .../Win32/Storage/OperationRecorder/mod.rs | 8 +- .../Win32/Storage/Packaging/Appx/mod.rs | 428 ++--- .../Win32/Storage/Packaging/Opc/mod.rs | 168 +- .../src/Windows/Win32/Storage/Vhd/mod.rs | 24 +- .../Win32/Storage/VirtualDiskService/mod.rs | 176 +- .../src/Windows/Win32/Storage/Vss/mod.rs | 96 +- .../Windows/Win32/Storage/Xps/Printing/mod.rs | 8 +- .../src/Windows/Win32/Storage/Xps/mod.rs | 258 +-- .../Windows/Win32/System/AddressBook/mod.rs | 30 +- .../Windows/Win32/System/Antimalware/mod.rs | 4 +- .../mod.rs | 648 +++---- .../Windows/Win32/System/ClrHosting/mod.rs | 160 +- .../Windows/Win32/System/Com/CallObj/mod.rs | 28 +- .../System/Com/ChannelCredentials/mod.rs | 6 +- .../Windows/Win32/System/Com/Events/mod.rs | 98 +- .../Win32/System/Com/StructuredStorage/mod.rs | 42 +- .../Windows/Win32/System/Com/Urlmon/mod.rs | 50 +- .../src/Windows/Win32/System/Com/mod.rs | 212 +-- .../Win32/System/ComponentServices/mod.rs | 304 ++-- .../src/Windows/Win32/System/Console/mod.rs | 144 +- .../src/Windows/Win32/System/Contacts/mod.rs | 64 +- .../Windows/Win32/System/DataExchange/mod.rs | 92 +- .../Win32/System/DeploymentServices/mod.rs | 12 +- .../Win32/System/Diagnostics/Ceip/mod.rs | 4 +- .../System/Diagnostics/ClrProfiling/mod.rs | 148 +- .../Diagnostics/Debug/ActiveScript/mod.rs | 176 +- .../Diagnostics/Debug/Extensions/mod.rs | 186 +-- .../Win32/System/Diagnostics/Debug/mod.rs | 688 ++++---- .../Win32/System/Diagnostics/Etw/mod.rs | 2 +- .../Diagnostics/ProcessSnapshotting/mod.rs | 6 +- .../Win32/System/Diagnostics/ToolHelp/mod.rs | 32 +- .../DistributedTransactionCoordinator/mod.rs | 218 +-- .../Windows/Win32/System/Environment/mod.rs | 54 +- .../Win32/System/ErrorReporting/mod.rs | 22 +- .../Win32/System/EventCollector/mod.rs | 56 +- .../src/Windows/Win32/System/EventLog/mod.rs | 76 +- .../System/EventNotificationService/mod.rs | 6 +- .../Windows/Win32/System/GroupPolicy/mod.rs | 56 +- .../Windows/Win32/System/Hypervisor/mod.rs | 46 +- .../src/Windows/Win32/System/IO/mod.rs | 20 +- .../src/Windows/Win32/System/Iis/mod.rs | 88 +- .../Windows/Win32/System/JobObjects/mod.rs | 22 +- .../Windows/Win32/System/LibraryLoader/mod.rs | 74 +- .../src/Windows/Win32/System/Mailslots/mod.rs | 4 +- .../src/Windows/Win32/System/Memory/mod.rs | 130 +- .../src/Windows/Win32/System/Mmc/mod.rs | 182 +- .../src/Windows/Win32/System/Ole/mod.rs | 428 ++--- .../Win32/System/ParentalControls/mod.rs | 16 +- .../Windows/Win32/System/Performance/mod.rs | 24 +- .../src/Windows/Win32/System/Pipes/mod.rs | 48 +- .../src/Windows/Win32/System/Power/mod.rs | 28 +- .../Windows/Win32/System/ProcessStatus/mod.rs | 94 +- .../src/Windows/Win32/System/Recovery/mod.rs | 6 +- .../src/Windows/Win32/System/Registry/mod.rs | 6 +- .../Windows/Win32/System/RemoteDesktop/mod.rs | 228 +-- .../Win32/System/RemoteManagement/mod.rs | 32 +- .../Win32/System/RestartManager/mod.rs | 2 +- .../src/Windows/Win32/System/Restore/mod.rs | 8 +- .../src/Windows/Win32/System/Rpc/mod.rs | 26 +- .../src/Windows/Win32/System/Search/mod.rs | 426 ++--- .../Win32/System/SecurityCenter/mod.rs | 8 +- .../src/Windows/Win32/System/Services/mod.rs | 80 +- .../SettingsManagementInfrastructure/mod.rs | 58 +- .../Win32/System/SetupAndMigration/mod.rs | 8 +- .../src/Windows/Win32/System/Shutdown/mod.rs | 22 +- .../src/Windows/Win32/System/SideShow/mod.rs | 8 +- .../Win32/System/StationsAndDesktops/mod.rs | 50 +- .../Win32/System/SubsystemForLinux/mod.rs | 8 +- .../Win32/System/SystemInformation/mod.rs | 84 +- .../Windows/Win32/System/TaskScheduler/mod.rs | 6 +- .../src/Windows/Win32/System/Threading/mod.rs | 430 ++--- .../src/Windows/Win32/System/Time/mod.rs | 26 +- .../Win32/System/TpmBaseServices/mod.rs | 12 +- .../Win32/System/UpdateAssessment/mod.rs | 2 +- .../src/Windows/Win32/System/Variant/mod.rs | 24 +- .../Win32/System/VirtualDosMachines/mod.rs | 58 +- .../Win32/System/WinRT/Composition/mod.rs | 14 +- .../System/WinRT/Graphics/Imaging/mod.rs | 12 +- .../Windows/Win32/System/WinRT/Media/mod.rs | 12 +- .../Win32/System/WinRT/Metadata/mod.rs | 24 +- .../src/Windows/Win32/System/WinRT/mod.rs | 32 +- .../Win32/System/WindowsProgramming/mod.rs | 262 +-- .../Windows/Win32/System/WindowsSync/mod.rs | 64 +- .../src/Windows/Win32/System/Wmi/mod.rs | 40 +- .../src/Windows/Win32/UI/Accessibility/mod.rs | 846 +++++----- .../src/Windows/Win32/UI/Animation/mod.rs | 30 +- .../src/Windows/Win32/UI/ColorSystem/mod.rs | 388 ++--- .../Windows/Win32/UI/Controls/Dialogs/mod.rs | 48 +- .../Windows/Win32/UI/Controls/RichEdit/mod.rs | 186 +-- .../src/Windows/Win32/UI/Controls/mod.rs | 312 ++-- .../windows/src/Windows/Win32/UI/HiDpi/mod.rs | 28 +- .../src/Windows/Win32/UI/Input/Ime/mod.rs | 208 +-- .../src/Windows/Win32/UI/Input/Ink/mod.rs | 6 +- .../Win32/UI/Input/KeyboardAndMouse/mod.rs | 46 +- .../src/Windows/Win32/UI/Input/Pointer/mod.rs | 56 +- .../src/Windows/Win32/UI/Input/Touch/mod.rs | 38 +- .../Win32/UI/Input/XboxController/mod.rs | 2 +- .../windows/src/Windows/Win32/UI/Input/mod.rs | 10 +- .../src/Windows/Win32/UI/Magnification/mod.rs | 68 +- .../Win32/UI/Shell/PropertiesSystem/mod.rs | 16 +- .../windows/src/Windows/Win32/UI/Shell/mod.rs | 1484 ++++++++--------- .../src/Windows/Win32/UI/TabletPC/mod.rs | 186 +-- .../src/Windows/Win32/UI/TextServices/mod.rs | 604 +++---- .../Win32/UI/WindowsAndMessaging/mod.rs | 526 +++--- .../Windows/Win32/Web/InternetExplorer/mod.rs | 218 +-- .../src/extensions/Win32/Foundation.rs | 1 - .../src/extensions/Win32/Foundation/BOOL.rs | 70 - 228 files changed, 14538 insertions(+), 14636 deletions(-) delete mode 100644 crates/libs/windows/src/extensions/Win32/Foundation/BOOL.rs diff --git a/crates/libs/windows/src/Windows/Wdk/Graphics/Direct3D/mod.rs b/crates/libs/windows/src/Windows/Wdk/Graphics/Direct3D/mod.rs index c8149b8c16..23ef4cd33a 100644 --- a/crates/libs/windows/src/Windows/Wdk/Graphics/Direct3D/mod.rs +++ b/crates/libs/windows/src/Windows/Wdk/Graphics/Direct3D/mod.rs @@ -2350,7 +2350,7 @@ impl Default for D3DDDI_SYNCHRONIZATIONOBJECTINFO_0_1 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DDDI_SYNCHRONIZATIONOBJECTINFO_0_0 { - pub InitialState: super::super::super::Win32::Foundation::BOOL, + pub InitialState: windows_core::BOOL, } impl Default for D3DDDI_SYNCHRONIZATIONOBJECTINFO_0_0 { fn default() -> Self { @@ -2460,7 +2460,7 @@ impl Default for D3DDDI_SYNCHRONIZATIONOBJECTINFO2_0_1 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DDDI_SYNCHRONIZATIONOBJECTINFO2_0_0 { - pub InitialState: super::super::super::Win32::Foundation::BOOL, + pub InitialState: windows_core::BOOL, } impl Default for D3DDDI_SYNCHRONIZATIONOBJECTINFO2_0_0 { fn default() -> Self { @@ -2740,7 +2740,7 @@ pub struct D3DDEVICEDESC_V1 { pub dcmColorModel: u32, pub dwDevCaps: u32, pub dtcTransformCaps: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMCAPS, - pub bClipping: super::super::super::Win32::Foundation::BOOL, + pub bClipping: windows_core::BOOL, pub dlcLightingCaps: super::super::super::Win32::Graphics::Direct3D9::D3DLIGHTINGCAPS, pub dpcLineCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, pub dpcTriCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, @@ -2764,7 +2764,7 @@ pub struct D3DDEVICEDESC_V2 { pub dcmColorModel: u32, pub dwDevCaps: u32, pub dtcTransformCaps: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMCAPS, - pub bClipping: super::super::super::Win32::Foundation::BOOL, + pub bClipping: windows_core::BOOL, pub dlcLightingCaps: super::super::super::Win32::Graphics::Direct3D9::D3DLIGHTINGCAPS, pub dpcLineCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, pub dpcTriCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, @@ -2796,7 +2796,7 @@ pub struct D3DDEVICEDESC_V3 { pub dcmColorModel: u32, pub dwDevCaps: u32, pub dtcTransformCaps: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMCAPS, - pub bClipping: super::super::super::Win32::Foundation::BOOL, + pub bClipping: windows_core::BOOL, pub dlcLightingCaps: super::super::super::Win32::Graphics::Direct3D9::D3DLIGHTINGCAPS, pub dpcLineCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, pub dpcTriCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, @@ -5361,7 +5361,7 @@ impl Default for D3DKMT_ACQUIREKEYEDMUTEX2 { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_ACTIVATE_SPECIFIC_DIAG_ESCAPE { pub Type: D3DKMT_ACTIVATE_SPECIFIC_DIAG_TYPE, - pub Activate: super::super::super::Win32::Foundation::BOOL, + pub Activate: windows_core::BOOL, } impl Default for D3DKMT_ACTIVATE_SPECIFIC_DIAG_ESCAPE { fn default() -> Self { @@ -5391,7 +5391,7 @@ pub struct D3DKMT_ADAPTERINFO { pub hAdapter: u32, pub AdapterLuid: super::super::super::Win32::Foundation::LUID, pub NumOfSources: u32, - pub bPrecisePresentRegionsPreferred: super::super::super::Win32::Foundation::BOOL, + pub bPrecisePresentRegionsPreferred: windows_core::BOOL, } impl Default for D3DKMT_ADAPTERINFO { fn default() -> Self { @@ -5777,7 +5777,7 @@ pub struct D3DKMT_CHECKMULTIPLANEOVERLAYSUPPORT { pub hDevice: u32, pub PlaneCount: u32, pub pOverlayPlanes: *mut D3DKMT_CHECK_MULTIPLANE_OVERLAY_PLANE, - pub Supported: super::super::super::Win32::Foundation::BOOL, + pub Supported: windows_core::BOOL, pub ReturnInfo: D3DKMT_CHECK_MULTIPLANE_OVERLAY_SUPPORT_RETURN_INFO, } impl Default for D3DKMT_CHECKMULTIPLANEOVERLAYSUPPORT { @@ -5792,7 +5792,7 @@ pub struct D3DKMT_CHECKMULTIPLANEOVERLAYSUPPORT2 { pub hDevice: u32, pub PlaneCount: u32, pub pOverlayPlanes: *mut D3DKMT_CHECK_MULTIPLANE_OVERLAY_PLANE2, - pub Supported: super::super::super::Win32::Foundation::BOOL, + pub Supported: windows_core::BOOL, pub ReturnInfo: D3DKMT_CHECK_MULTIPLANE_OVERLAY_SUPPORT_RETURN_INFO, } impl Default for D3DKMT_CHECKMULTIPLANEOVERLAYSUPPORT2 { @@ -5809,7 +5809,7 @@ pub struct D3DKMT_CHECKMULTIPLANEOVERLAYSUPPORT3 { pub ppOverlayPlanes: *mut *mut D3DKMT_CHECK_MULTIPLANE_OVERLAY_PLANE3, pub PostCompositionCount: u32, pub ppPostComposition: *mut *mut D3DKMT_MULTIPLANE_OVERLAY_POST_COMPOSITION_WITH_SOURCE, - pub Supported: super::super::super::Win32::Foundation::BOOL, + pub Supported: windows_core::BOOL, pub ReturnInfo: D3DKMT_CHECK_MULTIPLANE_OVERLAY_SUPPORT_RETURN_INFO, } impl Default for D3DKMT_CHECKMULTIPLANEOVERLAYSUPPORT3 { @@ -6671,7 +6671,7 @@ impl Default for D3DKMT_DESTROY_DOORBELL { pub struct D3DKMT_DESTROY_OUTPUTDUPL { pub hAdapter: u32, pub VidPnSourceId: u32, - pub bDestroyAllContexts: super::super::super::Win32::Foundation::BOOL, + pub bDestroyAllContexts: windows_core::BOOL, } impl Default for D3DKMT_DESTROY_OUTPUTDUPL { fn default() -> Self { @@ -6836,7 +6836,7 @@ impl Default for D3DKMT_DEVICE_IDS { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_DIRECTFLIP_SUPPORT { - pub Supported: super::super::super::Win32::Foundation::BOOL, + pub Supported: windows_core::BOOL, } impl Default for D3DKMT_DIRECTFLIP_SUPPORT { fn default() -> Self { @@ -6970,7 +6970,7 @@ impl Default for D3DKMT_DMM_ESCAPE { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_DOD_SET_DIRTYRECT_MODE { - pub bForceFullScreenDirty: super::super::super::Win32::Foundation::BOOL, + pub bForceFullScreenDirty: windows_core::BOOL, } impl Default for D3DKMT_DOD_SET_DIRTYRECT_MODE { fn default() -> Self { @@ -7255,14 +7255,14 @@ impl Default for D3DKMT_FLIPINFOFLAGS { pub struct D3DKMT_FLIPMANAGER_AUXILIARYPRESENTINFO { pub auxiliaryPresentInfo: D3DKMT_AUXILIARYPRESENTINFO, pub flipManagerTracingId: u32, - pub customDurationChanged: super::super::super::Win32::Foundation::BOOL, + pub customDurationChanged: windows_core::BOOL, pub FlipAdapterLuid: super::super::super::Win32::Foundation::LUID, pub VidPnSourceId: u32, pub independentFlipStage: D3DKMT_FLIPMODEL_INDEPENDENT_FLIP_STAGE, pub FlipCompletedQpc: u64, pub HwPresentDurationQpc: u32, - pub WasCanceled: super::super::super::Win32::Foundation::BOOL, - pub ConvertedToNonIFlip: super::super::super::Win32::Foundation::BOOL, + pub WasCanceled: windows_core::BOOL, + pub ConvertedToNonIFlip: windows_core::BOOL, } impl Default for D3DKMT_FLIPMANAGER_AUXILIARYPRESENTINFO { fn default() -> Self { @@ -7845,7 +7845,7 @@ impl Default for D3DKMT_HWDRM_SUPPORT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_HYBRID_DLIST_DLL_SUPPORT { - pub Supported: super::super::super::Win32::Foundation::BOOL, + pub Supported: windows_core::BOOL, } impl Default for D3DKMT_HYBRID_DLIST_DLL_SUPPORT { fn default() -> Self { @@ -7857,7 +7857,7 @@ impl Default for D3DKMT_HYBRID_DLIST_DLL_SUPPORT { pub struct D3DKMT_HYBRID_LIST { pub State: D3DKMT_GPU_PREFERENCE_QUERY_STATE, pub AdapterLuid: super::super::super::Win32::Foundation::LUID, - pub bUserPreferenceQuery: super::super::super::Win32::Foundation::BOOL, + pub bUserPreferenceQuery: windows_core::BOOL, pub QueryType: D3DKMT_GPU_PREFERENCE_QUERY_TYPE, } impl Default for D3DKMT_HYBRID_LIST { @@ -7868,7 +7868,7 @@ impl Default for D3DKMT_HYBRID_LIST { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_INDEPENDENTFLIP_SECONDARY_SUPPORT { - pub Supported: super::super::super::Win32::Foundation::BOOL, + pub Supported: windows_core::BOOL, } impl Default for D3DKMT_INDEPENDENTFLIP_SECONDARY_SUPPORT { fn default() -> Self { @@ -7878,7 +7878,7 @@ impl Default for D3DKMT_INDEPENDENTFLIP_SECONDARY_SUPPORT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_INDEPENDENTFLIP_SUPPORT { - pub Supported: super::super::super::Win32::Foundation::BOOL, + pub Supported: windows_core::BOOL, } impl Default for D3DKMT_INDEPENDENTFLIP_SUPPORT { fn default() -> Self { @@ -7913,7 +7913,7 @@ impl Default for D3DKMT_INVALIDATECACHE { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_ISBADDRIVERFORHWPROTECTIONDISABLED { - pub Disabled: super::super::super::Win32::Foundation::BOOL, + pub Disabled: windows_core::BOOL, } impl Default for D3DKMT_ISBADDRIVERFORHWPROTECTIONDISABLED { fn default() -> Self { @@ -8081,7 +8081,7 @@ impl Default for D3DKMT_MOVE_RECT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_MPO3DDI_SUPPORT { - pub Supported: super::super::super::Win32::Foundation::BOOL, + pub Supported: windows_core::BOOL, } impl Default for D3DKMT_MPO3DDI_SUPPORT { fn default() -> Self { @@ -8091,7 +8091,7 @@ impl Default for D3DKMT_MPO3DDI_SUPPORT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_MPOKERNELCAPS_SUPPORT { - pub Supported: super::super::super::Win32::Foundation::BOOL, + pub Supported: windows_core::BOOL, } impl Default for D3DKMT_MPOKERNELCAPS_SUPPORT { fn default() -> Self { @@ -8102,7 +8102,7 @@ pub const D3DKMT_MULIIPLANE_OVERLAY_VIDEO_FRAME_FORMAT_PROGRESSIVE: D3DKMT_MULTI #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_MULTIPLANEOVERLAY_DECODE_SUPPORT { - pub Supported: super::super::super::Win32::Foundation::BOOL, + pub Supported: windows_core::BOOL, } impl Default for D3DKMT_MULTIPLANEOVERLAY_DECODE_SUPPORT { fn default() -> Self { @@ -8113,9 +8113,9 @@ impl Default for D3DKMT_MULTIPLANEOVERLAY_DECODE_SUPPORT { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_MULTIPLANEOVERLAY_HUD_SUPPORT { pub VidPnSourceId: u32, - pub Update: super::super::super::Win32::Foundation::BOOL, - pub KernelSupported: super::super::super::Win32::Foundation::BOOL, - pub HudSupported: super::super::super::Win32::Foundation::BOOL, + pub Update: windows_core::BOOL, + pub KernelSupported: windows_core::BOOL, + pub HudSupported: windows_core::BOOL, } impl Default for D3DKMT_MULTIPLANEOVERLAY_HUD_SUPPORT { fn default() -> Self { @@ -8125,7 +8125,7 @@ impl Default for D3DKMT_MULTIPLANEOVERLAY_HUD_SUPPORT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_MULTIPLANEOVERLAY_SECONDARY_SUPPORT { - pub Supported: super::super::super::Win32::Foundation::BOOL, + pub Supported: windows_core::BOOL, } impl Default for D3DKMT_MULTIPLANEOVERLAY_SECONDARY_SUPPORT { fn default() -> Self { @@ -8136,8 +8136,8 @@ impl Default for D3DKMT_MULTIPLANEOVERLAY_SECONDARY_SUPPORT { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_MULTIPLANEOVERLAY_STRETCH_SUPPORT { pub VidPnSourceId: u32, - pub Update: super::super::super::Win32::Foundation::BOOL, - pub Supported: super::super::super::Win32::Foundation::BOOL, + pub Update: windows_core::BOOL, + pub Supported: windows_core::BOOL, } impl Default for D3DKMT_MULTIPLANEOVERLAY_STRETCH_SUPPORT { fn default() -> Self { @@ -8147,7 +8147,7 @@ impl Default for D3DKMT_MULTIPLANEOVERLAY_STRETCH_SUPPORT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_MULTIPLANEOVERLAY_SUPPORT { - pub Supported: super::super::super::Win32::Foundation::BOOL, + pub Supported: windows_core::BOOL, } impl Default for D3DKMT_MULTIPLANEOVERLAY_SUPPORT { fn default() -> Self { @@ -8158,7 +8158,7 @@ impl Default for D3DKMT_MULTIPLANEOVERLAY_SUPPORT { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_MULTIPLANE_OVERLAY { pub LayerIndex: u32, - pub Enabled: super::super::super::Win32::Foundation::BOOL, + pub Enabled: windows_core::BOOL, pub hAllocation: u32, pub PlaneAttributes: D3DKMT_MULTIPLANE_OVERLAY_ATTRIBUTES, } @@ -8171,7 +8171,7 @@ impl Default for D3DKMT_MULTIPLANE_OVERLAY { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_MULTIPLANE_OVERLAY2 { pub LayerIndex: u32, - pub Enabled: super::super::super::Win32::Foundation::BOOL, + pub Enabled: windows_core::BOOL, pub hAllocation: u32, pub PlaneAttributes: D3DKMT_MULTIPLANE_OVERLAY_ATTRIBUTES2, } @@ -8216,8 +8216,8 @@ pub struct D3DKMT_MULTIPLANE_OVERLAY_ATTRIBUTES { pub VideoFrameFormat: D3DKMT_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT, pub YCbCrFlags: u32, pub StereoFormat: D3DKMT_MULTIPLANE_OVERLAY_STEREO_FORMAT, - pub StereoLeftViewFrame0: super::super::super::Win32::Foundation::BOOL, - pub StereoBaseViewFrame0: super::super::super::Win32::Foundation::BOOL, + pub StereoLeftViewFrame0: windows_core::BOOL, + pub StereoBaseViewFrame0: windows_core::BOOL, pub StereoFlipMode: DXGKMT_MULTIPLANE_OVERLAY_STEREO_FLIP_MODE, pub StretchQuality: DXGKMT_MULTIPLANE_OVERLAY_STRETCH_QUALITY, } @@ -8240,8 +8240,8 @@ pub struct D3DKMT_MULTIPLANE_OVERLAY_ATTRIBUTES2 { pub VideoFrameFormat: D3DKMT_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT, pub ColorSpace: D3DDDI_COLOR_SPACE_TYPE, pub StereoFormat: D3DKMT_MULTIPLANE_OVERLAY_STEREO_FORMAT, - pub StereoLeftViewFrame0: super::super::super::Win32::Foundation::BOOL, - pub StereoBaseViewFrame0: super::super::super::Win32::Foundation::BOOL, + pub StereoLeftViewFrame0: windows_core::BOOL, + pub StereoBaseViewFrame0: windows_core::BOOL, pub StereoFlipMode: DXGKMT_MULTIPLANE_OVERLAY_STEREO_FLIP_MODE, pub StretchQuality: DXGKMT_MULTIPLANE_OVERLAY_STRETCH_QUALITY, pub Reserved1: u32, @@ -8923,8 +8923,8 @@ pub struct D3DKMT_OUTPUTDUPL_FRAMEINFO { pub LastPresentTime: i64, pub LastMouseUpdateTime: i64, pub AccumulatedFrames: u32, - pub RectsCoalesced: super::super::super::Win32::Foundation::BOOL, - pub ProtectedContentMaskedOut: super::super::super::Win32::Foundation::BOOL, + pub RectsCoalesced: windows_core::BOOL, + pub ProtectedContentMaskedOut: windows_core::BOOL, pub PointerPosition: D3DKMT_OUTPUTDUPL_POINTER_POSITION, pub TotalMetadataBufferSize: u32, pub PointerShapeBufferSize: u32, @@ -8995,7 +8995,7 @@ pub const D3DKMT_OUTPUTDUPL_METADATATYPE_MOVE_RECTS: D3DKMT_OUTPUTDUPL_METADATAT #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_OUTPUTDUPL_POINTER_POSITION { pub Position: super::super::super::Win32::Foundation::POINT, - pub Visible: super::super::super::Win32::Foundation::BOOL, + pub Visible: windows_core::BOOL, } impl Default for D3DKMT_OUTPUTDUPL_POINTER_POSITION { fn default() -> Self { @@ -9047,7 +9047,7 @@ impl Default for D3DKMT_PAGE_TABLE_LEVEL_DESC { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_PANELFITTER_SUPPORT { - pub Supported: super::super::super::Win32::Foundation::BOOL, + pub Supported: windows_core::BOOL, } impl Default for D3DKMT_PANELFITTER_SUPPORT { fn default() -> Self { @@ -10641,7 +10641,7 @@ pub struct D3DKMT_RECLAIMALLOCATIONS { pub hDevice: u32, pub pResources: *mut u32, pub HandleList: *const u32, - pub pDiscarded: *mut super::super::super::Win32::Foundation::BOOL, + pub pDiscarded: *mut windows_core::BOOL, pub NumAllocations: u32, } impl Default for D3DKMT_RECLAIMALLOCATIONS { @@ -10667,7 +10667,7 @@ impl Default for D3DKMT_RECLAIMALLOCATIONS2 { #[repr(C)] #[derive(Clone, Copy)] pub union D3DKMT_RECLAIMALLOCATIONS2_0 { - pub pDiscarded: *mut super::super::super::Win32::Foundation::BOOL, + pub pDiscarded: *mut windows_core::BOOL, pub pResults: *mut D3DDDI_RECLAIM_RESULT, } impl Default for D3DKMT_RECLAIMALLOCATIONS2_0 { @@ -11003,7 +11003,7 @@ impl Default for D3DKMT_SETGAMMARAMP_0 { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_SETHWPROTECTIONTEARDOWNRECOVERY { pub hAdapter: u32, - pub Recovered: super::super::super::Win32::Foundation::BOOL, + pub Recovered: windows_core::BOOL, } impl Default for D3DKMT_SETHWPROTECTIONTEARDOWNRECOVERY { fn default() -> Self { @@ -11048,7 +11048,7 @@ impl Default for D3DKMT_SETQUEUEDLIMIT_0_0 { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_SETSTABLEPOWERSTATE { pub hAdapter: u32, - pub Enabled: super::super::super::Win32::Foundation::BOOL, + pub Enabled: windows_core::BOOL, } impl Default for D3DKMT_SETSTABLEPOWERSTATE { fn default() -> Self { @@ -11073,7 +11073,7 @@ impl Default for D3DKMT_SETSYNCREFRESHCOUNTWAITTARGET { pub struct D3DKMT_SETVIDPNSOURCEHWPROTECTION { pub hAdapter: u32, pub VidPnSourceId: u32, - pub HwProtected: super::super::super::Win32::Foundation::BOOL, + pub HwProtected: windows_core::BOOL, } impl Default for D3DKMT_SETVIDPNSOURCEHWPROTECTION { fn default() -> Self { @@ -11463,7 +11463,7 @@ impl Default for D3DKMT_TDRDBGCTRL_ESCAPE_0 { pub struct D3DKMT_TRACKEDWORKLOAD_SUPPORT { pub PhysicalAdapterIndex: u32, pub EngineType: DXGK_ENGINE_TYPE, - pub Support: super::super::super::Win32::Foundation::BOOL, + pub Support: windows_core::BOOL, } impl Default for D3DKMT_TRACKEDWORKLOAD_SUPPORT { fn default() -> Self { @@ -11935,7 +11935,7 @@ impl Default for D3DKMT_VIDMM_ESCAPE_0_8 { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_VIDMM_ESCAPE_0_5 { pub hProcess: super::super::super::Win32::Foundation::HANDLE, - pub bAllowWakeOnSubmission: super::super::super::Win32::Foundation::BOOL, + pub bAllowWakeOnSubmission: windows_core::BOOL, } impl Default for D3DKMT_VIDMM_ESCAPE_0_5 { fn default() -> Self { @@ -11955,7 +11955,7 @@ impl Default for D3DKMT_VIDMM_ESCAPE_0_12 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_VIDMM_ESCAPE_0_9 { - pub bFlush: super::super::super::Win32::Foundation::BOOL, + pub bFlush: windows_core::BOOL, } impl Default for D3DKMT_VIDMM_ESCAPE_0_9 { fn default() -> Self { @@ -12028,10 +12028,10 @@ impl Default for D3DKMT_VIDSCH_ESCAPE { #[repr(C)] #[derive(Clone, Copy)] pub union D3DKMT_VIDSCH_ESCAPE_0 { - pub PreemptionControl: super::super::super::Win32::Foundation::BOOL, - pub EnableContextDelay: super::super::super::Win32::Foundation::BOOL, + pub PreemptionControl: windows_core::BOOL, + pub EnableContextDelay: windows_core::BOOL, pub TdrControl2: D3DKMT_VIDSCH_ESCAPE_0_0, - pub SuspendScheduler: super::super::super::Win32::Foundation::BOOL, + pub SuspendScheduler: windows_core::BOOL, pub TdrControl: u32, pub SuspendTime: u32, pub TdrLimit: D3DKMT_VIDSCH_ESCAPE_0_1, @@ -12470,7 +12470,7 @@ pub const D3DKMT_WaitCommandBuffer: D3DKMT_QUERYSTATISTICS_QUEUE_PACKET_TYPE = D #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DKMT_XBOX { - pub IsXBOX: super::super::super::Win32::Foundation::BOOL, + pub IsXBOX: windows_core::BOOL, } impl Default for D3DKMT_XBOX { fn default() -> Self { @@ -12498,7 +12498,7 @@ pub struct D3DNTDEVICEDESC_V3 { pub dcmColorModel: u32, pub dwDevCaps: u32, pub dtcTransformCaps: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMCAPS, - pub bClipping: super::super::super::Win32::Foundation::BOOL, + pub bClipping: windows_core::BOOL, pub dlcLightingCaps: super::super::super::Win32::Graphics::Direct3D9::D3DLIGHTINGCAPS, pub dpcLineCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, pub dpcTriCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, @@ -12630,7 +12630,7 @@ pub struct D3DNTHALDEVICEDESC_V1 { pub dcmColorModel: u32, pub dwDevCaps: u32, pub dtcTransformCaps: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMCAPS, - pub bClipping: super::super::super::Win32::Foundation::BOOL, + pub bClipping: windows_core::BOOL, pub dlcLightingCaps: super::super::super::Win32::Graphics::Direct3D9::D3DLIGHTINGCAPS, pub dpcLineCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, pub dpcTriCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, @@ -12654,7 +12654,7 @@ pub struct D3DNTHALDEVICEDESC_V2 { pub dcmColorModel: u32, pub dwDevCaps: u32, pub dtcTransformCaps: super::super::super::Win32::Graphics::Direct3D9::D3DTRANSFORMCAPS, - pub bClipping: super::super::super::Win32::Foundation::BOOL, + pub bClipping: windows_core::BOOL, pub dlcLightingCaps: super::super::super::Win32::Graphics::Direct3D9::D3DLIGHTINGCAPS, pub dpcLineCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, pub dpcTriCaps: super::super::super::Win32::Graphics::Direct3D9::D3DPRIMCAPS, @@ -16254,7 +16254,7 @@ pub type PFND3DKMT_SETHYBRIDLISTVVALUE = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFND3DKMT_SETQUEUEDLIMIT = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFND3DKMT_SETSTABLEPOWERSTATE = Option super::super::super::Win32::Foundation::NTSTATUS>; -pub type PFND3DKMT_SETSTEREOENABLED = Option super::super::super::Win32::Foundation::NTSTATUS>; +pub type PFND3DKMT_SETSTEREOENABLED = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFND3DKMT_SETSYNCREFRESHCOUNTWAITTARGET = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFND3DKMT_SETVIDPNSOURCEHWPROTECTION = Option super::super::super::Win32::Foundation::NTSTATUS>; pub type PFND3DKMT_SETVIDPNSOURCEOWNER = Option super::super::super::Win32::Foundation::NTSTATUS>; 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 1f2f90d15e..392c79c2a1 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 @@ -327,7 +327,7 @@ pub struct DML_AVERAGE_POOLING_GRAD_OPERATOR_DESC { pub WindowSize: *const u32, pub StartPadding: *const u32, pub EndPadding: *const u32, - pub IncludePadding: super::super::super::Foundation::BOOL, + pub IncludePadding: windows_core::BOOL, } impl Default for DML_AVERAGE_POOLING_GRAD_OPERATOR_DESC { fn default() -> Self { @@ -344,7 +344,7 @@ pub struct DML_AVERAGE_POOLING_OPERATOR_DESC { pub WindowSize: *const u32, pub StartPadding: *const u32, pub EndPadding: *const u32, - pub IncludePadding: super::super::super::Foundation::BOOL, + pub IncludePadding: windows_core::BOOL, } impl Default for DML_AVERAGE_POOLING_OPERATOR_DESC { fn default() -> Self { @@ -383,7 +383,7 @@ pub struct DML_BATCH_NORMALIZATION_OPERATOR_DESC { pub ScaleTensor: *const DML_TENSOR_DESC, pub BiasTensor: *const DML_TENSOR_DESC, pub OutputTensor: *const DML_TENSOR_DESC, - pub Spatial: super::super::super::Foundation::BOOL, + pub Spatial: windows_core::BOOL, pub Epsilon: f32, pub FusedActivation: *const DML_OPERATOR_DESC, } @@ -588,7 +588,7 @@ pub struct DML_CUMULATIVE_PRODUCT_OPERATOR_DESC { pub OutputTensor: *const DML_TENSOR_DESC, pub Axis: u32, pub AxisDirection: DML_AXIS_DIRECTION, - pub HasExclusiveProduct: super::super::super::Foundation::BOOL, + pub HasExclusiveProduct: windows_core::BOOL, } impl Default for DML_CUMULATIVE_PRODUCT_OPERATOR_DESC { fn default() -> Self { @@ -602,7 +602,7 @@ pub struct DML_CUMULATIVE_SUMMATION_OPERATOR_DESC { pub OutputTensor: *const DML_TENSOR_DESC, pub Axis: u32, pub AxisDirection: DML_AXIS_DIRECTION, - pub HasExclusiveSum: super::super::super::Foundation::BOOL, + pub HasExclusiveSum: windows_core::BOOL, } impl Default for DML_CUMULATIVE_SUMMATION_OPERATOR_DESC { fn default() -> Self { @@ -1476,7 +1476,7 @@ impl Default for DML_FEATURE_DATA_FEATURE_LEVELS { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DML_FEATURE_DATA_TENSOR_DATA_TYPE_SUPPORT { - pub IsSupported: super::super::super::Foundation::BOOL, + pub IsSupported: windows_core::BOOL, } impl Default for DML_FEATURE_DATA_TENSOR_DATA_TYPE_SUPPORT { fn default() -> Self { @@ -1683,7 +1683,7 @@ pub struct DML_GRU_OPERATOR_DESC { pub ActivationDescCount: u32, pub ActivationDescs: *const DML_OPERATOR_DESC, pub Direction: DML_RECURRENT_NETWORK_DIRECTION, - pub LinearBeforeReset: super::super::super::Foundation::BOOL, + pub LinearBeforeReset: windows_core::BOOL, } impl Default for DML_GRU_OPERATOR_DESC { fn default() -> Self { @@ -1747,7 +1747,7 @@ pub struct DML_LOCAL_RESPONSE_NORMALIZATION_GRAD_OPERATOR_DESC { pub InputTensor: *const DML_TENSOR_DESC, pub InputGradientTensor: *const DML_TENSOR_DESC, pub OutputGradientTensor: *const DML_TENSOR_DESC, - pub CrossChannel: super::super::super::Foundation::BOOL, + pub CrossChannel: windows_core::BOOL, pub LocalSize: u32, pub Alpha: f32, pub Beta: f32, @@ -1763,7 +1763,7 @@ impl Default for DML_LOCAL_RESPONSE_NORMALIZATION_GRAD_OPERATOR_DESC { pub struct DML_LOCAL_RESPONSE_NORMALIZATION_OPERATOR_DESC { pub InputTensor: *const DML_TENSOR_DESC, pub OutputTensor: *const DML_TENSOR_DESC, - pub CrossChannel: super::super::super::Foundation::BOOL, + pub CrossChannel: windows_core::BOOL, pub LocalSize: u32, pub Alpha: f32, pub Beta: f32, @@ -1823,8 +1823,8 @@ pub struct DML_LSTM_OPERATOR_DESC { pub ActivationDescs: *const DML_OPERATOR_DESC, pub Direction: DML_RECURRENT_NETWORK_DIRECTION, pub ClipThreshold: f32, - pub UseClipThreshold: super::super::super::Foundation::BOOL, - pub CoupleInputForget: super::super::super::Foundation::BOOL, + pub UseClipThreshold: windows_core::BOOL, + pub CoupleInputForget: windows_core::BOOL, } impl Default for DML_LSTM_OPERATOR_DESC { fn default() -> Self { @@ -1940,7 +1940,7 @@ pub struct DML_MEAN_VARIANCE_NORMALIZATION1_OPERATOR_DESC { pub OutputTensor: *const DML_TENSOR_DESC, pub AxisCount: u32, pub Axes: *const u32, - pub NormalizeVariance: super::super::super::Foundation::BOOL, + pub NormalizeVariance: windows_core::BOOL, pub Epsilon: f32, pub FusedActivation: *const DML_OPERATOR_DESC, } @@ -1956,8 +1956,8 @@ pub struct DML_MEAN_VARIANCE_NORMALIZATION_OPERATOR_DESC { pub ScaleTensor: *const DML_TENSOR_DESC, pub BiasTensor: *const DML_TENSOR_DESC, pub OutputTensor: *const DML_TENSOR_DESC, - pub CrossChannel: super::super::super::Foundation::BOOL, - pub NormalizeVariance: super::super::super::Foundation::BOOL, + pub CrossChannel: windows_core::BOOL, + pub NormalizeVariance: windows_core::BOOL, pub Epsilon: f32, pub FusedActivation: *const DML_OPERATOR_DESC, } @@ -2395,7 +2395,7 @@ pub struct DML_ROI_ALIGN1_OPERATOR_DESC { pub OutOfBoundsInputValue: f32, pub MinimumSamplesPerOutput: u32, pub MaximumSamplesPerOutput: u32, - pub AlignRegionsToCorners: super::super::super::Foundation::BOOL, + pub AlignRegionsToCorners: windows_core::BOOL, } impl Default for DML_ROI_ALIGN1_OPERATOR_DESC { fn default() -> Self { @@ -2912,14 +2912,14 @@ impl IDMLDebugDevice { #[repr(C)] pub struct IDMLDebugDevice_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetMuteDebugOutput: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL), + pub SetMuteDebugOutput: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), } pub trait IDMLDebugDevice_Impl: windows_core::IUnknownImpl { - fn SetMuteDebugOutput(&self, mute: super::super::super::Foundation::BOOL); + fn SetMuteDebugOutput(&self, mute: windows_core::BOOL); } impl IDMLDebugDevice_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, mute: super::super::super::Foundation::BOOL) { + unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, mute: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDMLDebugDevice_Impl::SetMuteDebugOutput(this, core::mem::transmute_copy(&mute)) 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 2741631497..f4bb097e07 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 @@ -1892,7 +1892,7 @@ pub struct WINML_VARIABLE_DESC { pub Name: windows_core::PWSTR, pub Description: windows_core::PWSTR, pub FeatureType: WINML_FEATURE_TYPE, - pub Required: super::super::super::Foundation::BOOL, + pub Required: windows_core::BOOL, pub Anonymous: WINML_VARIABLE_DESC_0, } impl Default for WINML_VARIABLE_DESC { 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 c8deb81b6d..969f5939f2 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/HtmlHelp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/HtmlHelp/mod.rs @@ -46,7 +46,7 @@ pub struct CProperty { pub cbData: u32, pub dwType: u32, pub Anonymous: CProperty_0, - pub fPersist: super::super::Foundation::BOOL, + pub fPersist: windows_core::BOOL, } impl Default for CProperty { fn default() -> Self { @@ -262,13 +262,13 @@ pub const HHWIN_TB_MARGIN: u32 = 268435456u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct HH_AKLINK { pub cbStruct: i32, - pub fReserved: super::super::Foundation::BOOL, + pub fReserved: windows_core::BOOL, pub pszKeywords: *mut i8, pub pszUrl: *mut i8, pub pszMsgText: *mut i8, pub pszMsgTitle: *mut i8, pub pszWindow: *mut i8, - pub fIndexOnFail: super::super::Foundation::BOOL, + pub fIndexOnFail: windows_core::BOOL, } impl Default for HH_AKLINK { fn default() -> Self { @@ -316,12 +316,12 @@ pub const HH_FTS_DEFAULT_PROXIMITY: HTML_HELP_COMMAND = HTML_HELP_COMMAND(-1i32) #[derive(Clone, Copy, Debug, PartialEq)] pub struct HH_FTS_QUERY { pub cbStruct: i32, - pub fUniCodeStrings: super::super::Foundation::BOOL, + pub fUniCodeStrings: windows_core::BOOL, pub pszSearchQuery: *mut i8, pub iProximity: i32, - pub fStemmedSearch: super::super::Foundation::BOOL, - pub fTitleOnly: super::super::Foundation::BOOL, - pub fExecute: super::super::Foundation::BOOL, + pub fStemmedSearch: windows_core::BOOL, + pub fTitleOnly: windows_core::BOOL, + pub fExecute: windows_core::BOOL, pub pszWindow: *mut i8, } impl Default for HH_FTS_QUERY { @@ -422,7 +422,7 @@ pub const HH_UNINITIALIZE: HTML_HELP_COMMAND = HTML_HELP_COMMAND(29i32); #[derive(Clone, Copy, Debug, PartialEq)] pub struct HH_WINTYPE { pub cbStruct: i32, - pub fUniCodeStrings: super::super::Foundation::BOOL, + pub fUniCodeStrings: windows_core::BOOL, pub pszType: *mut i8, pub fsValidMembers: u32, pub fsWinProperties: u32, @@ -444,7 +444,7 @@ pub struct HH_WINTYPE { pub pszFile: *mut i8, pub pszHome: *mut i8, pub fsToolBarFlags: u32, - pub fNotExpanded: super::super::Foundation::BOOL, + pub fNotExpanded: windows_core::BOOL, pub curNavType: i32, pub tabpos: i32, pub idNotify: i32, @@ -523,14 +523,14 @@ pub struct IITDatabase_Vtbl { pub Close: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateObject: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut u32) -> windows_core::HRESULT, pub GetObject: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetObjectPersistence: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *mut *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetObjectPersistence: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *mut *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IITDatabase_Impl: windows_core::IUnknownImpl { fn Open(&self, lpszhost: &windows_core::PCWSTR, lpszmoniker: &windows_core::PCWSTR, dwflags: u32) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; fn CreateObject(&self, rclsid: *const windows_core::GUID, pdwobjinstance: *mut u32) -> windows_core::Result<()>; fn GetObject(&self, dwobjinstance: u32, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; - fn GetObjectPersistence(&self, lpwszobject: &windows_core::PCWSTR, dwobjinstance: u32, ppvpersistence: *mut *mut core::ffi::c_void, fstream: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetObjectPersistence(&self, lpwszobject: &windows_core::PCWSTR, dwobjinstance: u32, ppvpersistence: *mut *mut core::ffi::c_void, fstream: windows_core::BOOL) -> windows_core::Result<()>; } impl IITDatabase_Vtbl { pub const fn new() -> Self { @@ -558,7 +558,7 @@ impl IITDatabase_Vtbl { IITDatabase_Impl::GetObject(this, core::mem::transmute_copy(&dwobjinstance), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobj)).into() } } - unsafe extern "system" fn GetObjectPersistence(this: *mut core::ffi::c_void, lpwszobject: windows_core::PCWSTR, dwobjinstance: u32, ppvpersistence: *mut *mut core::ffi::c_void, fstream: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetObjectPersistence(this: *mut core::ffi::c_void, lpwszobject: windows_core::PCWSTR, dwobjinstance: u32, ppvpersistence: *mut *mut core::ffi::c_void, fstream: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITDatabase_Impl::GetObjectPersistence(this, core::mem::transmute(&lpwszobject), core::mem::transmute_copy(&dwobjinstance), core::mem::transmute_copy(&ppvpersistence), core::mem::transmute_copy(&fstream)).into() @@ -662,8 +662,8 @@ pub struct IITPropList_Vtbl { pub Add: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CProperty) -> windows_core::HRESULT, pub Get: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut CProperty) -> windows_core::HRESULT, pub Clear: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetPersist: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetPersist2: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetPersist: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub SetPersist2: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, pub GetFirst: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CProperty) -> windows_core::HRESULT, pub GetNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CProperty) -> windows_core::HRESULT, pub GetPropCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, @@ -683,8 +683,8 @@ pub trait IITPropList_Impl: super::super::System::Com::IPersistStreamInit_Impl { fn Add(&self, prop: *mut CProperty) -> windows_core::Result<()>; fn Get(&self, propid: u32, property: *mut CProperty) -> windows_core::Result<()>; fn Clear(&self) -> windows_core::Result<()>; - fn SetPersist(&self, fpersist: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetPersist2(&self, propid: u32, fpersist: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetPersist(&self, fpersist: windows_core::BOOL) -> windows_core::Result<()>; + fn SetPersist2(&self, propid: u32, fpersist: windows_core::BOOL) -> windows_core::Result<()>; fn GetFirst(&self, property: *mut CProperty) -> windows_core::Result<()>; fn GetNext(&self, property: *mut CProperty) -> windows_core::Result<()>; fn GetPropCount(&self, cprop: *mut i32) -> windows_core::Result<()>; @@ -735,13 +735,13 @@ impl IITPropList_Vtbl { IITPropList_Impl::Clear(this).into() } } - unsafe extern "system" fn SetPersist(this: *mut core::ffi::c_void, fpersist: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetPersist(this: *mut core::ffi::c_void, fpersist: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::SetPersist(this, core::mem::transmute_copy(&fpersist)).into() } } - unsafe extern "system" fn SetPersist2(this: *mut core::ffi::c_void, propid: u32, fpersist: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetPersist2(this: *mut core::ffi::c_void, propid: u32, fpersist: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITPropList_Impl::SetPersist2(this, core::mem::transmute_copy(&propid), core::mem::transmute_copy(&fpersist)).into() @@ -971,7 +971,7 @@ pub struct IITResultSet_Vtbl { pub Free: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub IsCompleted: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub Pause: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Pause: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetRowStatus: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, *mut ROWSTATUS) -> windows_core::HRESULT, pub GetColumnStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut COLUMNSTATUS) -> windows_core::HRESULT, } @@ -1003,7 +1003,7 @@ pub trait IITResultSet_Impl: windows_core::IUnknownImpl { fn Free(&self) -> windows_core::Result<()>; fn IsCompleted(&self) -> windows_core::Result<()>; fn Cancel(&self) -> windows_core::Result<()>; - fn Pause(&self, fpause: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Pause(&self, fpause: windows_core::BOOL) -> windows_core::Result<()>; fn GetRowStatus(&self, lrowfirst: i32, crows: i32, lprowstatus: *mut ROWSTATUS) -> windows_core::Result<()>; fn GetColumnStatus(&self, lpcolstatus: *mut COLUMNSTATUS) -> windows_core::Result<()>; } @@ -1171,7 +1171,7 @@ impl IITResultSet_Vtbl { IITResultSet_Impl::Cancel(this).into() } } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void, fpause: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void, fpause: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IITResultSet_Impl::Pause(this, core::mem::transmute_copy(&fpause)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Data/RightsManagement/mod.rs b/crates/libs/windows/src/Windows/Win32/Data/RightsManagement/mod.rs index da19d995d8..a623e9ce94 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/RightsManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/RightsManagement/mod.rs @@ -236,8 +236,8 @@ pub unsafe fn DRMEncrypt(hcryptoprovider: u32, iposition: u32, cnuminbytes: u32, unsafe { DRMEncrypt(hcryptoprovider, iposition, cnuminbytes, pbindata as _, pcnumoutbytes as _, pboutdata as _).ok() } } #[inline] -pub unsafe fn DRMEnumerateLicense(hsession: u32, uflags: u32, uindex: u32, pfsharedflag: *mut super::super::Foundation::BOOL, pucertificatedatalen: *mut u32, wszcertificatedata: Option) -> windows_core::Result<()> { - windows_targets::link!("msdrm.dll" "system" fn DRMEnumerateLicense(hsession : u32, uflags : u32, uindex : u32, pfsharedflag : *mut super::super::Foundation:: BOOL, pucertificatedatalen : *mut u32, wszcertificatedata : windows_core::PWSTR) -> windows_core::HRESULT); +pub unsafe fn DRMEnumerateLicense(hsession: u32, uflags: u32, uindex: u32, pfsharedflag: *mut windows_core::BOOL, pucertificatedatalen: *mut u32, wszcertificatedata: Option) -> windows_core::Result<()> { + windows_targets::link!("msdrm.dll" "system" fn DRMEnumerateLicense(hsession : u32, uflags : u32, uindex : u32, pfsharedflag : *mut windows_core::BOOL, pucertificatedatalen : *mut u32, wszcertificatedata : windows_core::PWSTR) -> windows_core::HRESULT); unsafe { DRMEnumerateLicense(hsession, uflags, uindex, pfsharedflag as _, pucertificatedatalen as _, wszcertificatedata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -312,8 +312,8 @@ pub unsafe fn DRMGetIntervalTime(hissuancelicense: u32, pcdays: *mut u32) -> win unsafe { DRMGetIntervalTime(hissuancelicense, pcdays as _).ok() } } #[inline] -pub unsafe fn DRMGetIssuanceLicenseInfo(hissuancelicense: u32, psttimefrom: *mut super::super::Foundation::SYSTEMTIME, psttimeuntil: *mut super::super::Foundation::SYSTEMTIME, uflags: u32, pudistributionpointnamelength: *mut u32, wszdistributionpointname: Option, pudistributionpointurllength: *mut u32, wszdistributionpointurl: Option, phowner: *mut u32, pfofficial: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("msdrm.dll" "system" fn DRMGetIssuanceLicenseInfo(hissuancelicense : u32, psttimefrom : *mut super::super::Foundation:: SYSTEMTIME, psttimeuntil : *mut super::super::Foundation:: SYSTEMTIME, uflags : u32, pudistributionpointnamelength : *mut u32, wszdistributionpointname : windows_core::PWSTR, pudistributionpointurllength : *mut u32, wszdistributionpointurl : windows_core::PWSTR, phowner : *mut u32, pfofficial : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn DRMGetIssuanceLicenseInfo(hissuancelicense: u32, psttimefrom: *mut super::super::Foundation::SYSTEMTIME, psttimeuntil: *mut super::super::Foundation::SYSTEMTIME, uflags: u32, pudistributionpointnamelength: *mut u32, wszdistributionpointname: Option, pudistributionpointurllength: *mut u32, wszdistributionpointurl: Option, phowner: *mut u32, pfofficial: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("msdrm.dll" "system" fn DRMGetIssuanceLicenseInfo(hissuancelicense : u32, psttimefrom : *mut super::super::Foundation:: SYSTEMTIME, psttimeuntil : *mut super::super::Foundation:: SYSTEMTIME, uflags : u32, pudistributionpointnamelength : *mut u32, wszdistributionpointname : windows_core::PWSTR, pudistributionpointurllength : *mut u32, wszdistributionpointurl : windows_core::PWSTR, phowner : *mut u32, pfofficial : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { DRMGetIssuanceLicenseInfo(hissuancelicense, psttimefrom as _, psttimeuntil as _, uflags, pudistributionpointnamelength as _, wszdistributionpointname.unwrap_or(core::mem::zeroed()) as _, pudistributionpointurllength as _, wszdistributionpointurl.unwrap_or(core::mem::zeroed()) as _, phowner as _, pfofficial as _).ok() } } #[inline] @@ -428,8 +428,8 @@ where unsafe { DRMGetUnboundLicenseObjectCount(hqueryroot, wszsubobjecttype.param().abi(), pcsubobjects as _).ok() } } #[inline] -pub unsafe fn DRMGetUsagePolicy(hissuancelicense: u32, uindex: u32, peusagepolicytype: *mut DRM_USAGEPOLICY_TYPE, pfexclusion: *mut super::super::Foundation::BOOL, punamelength: *mut u32, wszname: Option, puminversionlength: *mut u32, wszminversion: Option, pumaxversionlength: *mut u32, wszmaxversion: Option, pupublickeylength: *mut u32, wszpublickey: Option, pudigestalgorithmlength: *mut u32, wszdigestalgorithm: Option, pcbdigest: *mut u32, pbdigest: *mut u8) -> windows_core::Result<()> { - windows_targets::link!("msdrm.dll" "system" fn DRMGetUsagePolicy(hissuancelicense : u32, uindex : u32, peusagepolicytype : *mut DRM_USAGEPOLICY_TYPE, pfexclusion : *mut super::super::Foundation:: BOOL, punamelength : *mut u32, wszname : windows_core::PWSTR, puminversionlength : *mut u32, wszminversion : windows_core::PWSTR, pumaxversionlength : *mut u32, wszmaxversion : windows_core::PWSTR, pupublickeylength : *mut u32, wszpublickey : windows_core::PWSTR, pudigestalgorithmlength : *mut u32, wszdigestalgorithm : windows_core::PWSTR, pcbdigest : *mut u32, pbdigest : *mut u8) -> windows_core::HRESULT); +pub unsafe fn DRMGetUsagePolicy(hissuancelicense: u32, uindex: u32, peusagepolicytype: *mut DRM_USAGEPOLICY_TYPE, pfexclusion: *mut windows_core::BOOL, punamelength: *mut u32, wszname: Option, puminversionlength: *mut u32, wszminversion: Option, pumaxversionlength: *mut u32, wszmaxversion: Option, pupublickeylength: *mut u32, wszpublickey: Option, pudigestalgorithmlength: *mut u32, wszdigestalgorithm: Option, pcbdigest: *mut u32, pbdigest: *mut u8) -> windows_core::Result<()> { + windows_targets::link!("msdrm.dll" "system" fn DRMGetUsagePolicy(hissuancelicense : u32, uindex : u32, peusagepolicytype : *mut DRM_USAGEPOLICY_TYPE, pfexclusion : *mut windows_core::BOOL, punamelength : *mut u32, wszname : windows_core::PWSTR, puminversionlength : *mut u32, wszminversion : windows_core::PWSTR, pumaxversionlength : *mut u32, wszmaxversion : windows_core::PWSTR, pupublickeylength : *mut u32, wszpublickey : windows_core::PWSTR, pudigestalgorithmlength : *mut u32, wszdigestalgorithm : windows_core::PWSTR, pcbdigest : *mut u32, pbdigest : *mut u8) -> windows_core::HRESULT); unsafe { DRMGetUsagePolicy(hissuancelicense, uindex, peusagepolicytype as _, pfexclusion as _, punamelength as _, wszname.unwrap_or(core::mem::zeroed()) as _, puminversionlength as _, wszminversion.unwrap_or(core::mem::zeroed()) as _, pumaxversionlength as _, wszmaxversion.unwrap_or(core::mem::zeroed()) as _, pupublickeylength as _, wszpublickey.unwrap_or(core::mem::zeroed()) as _, pudigestalgorithmlength as _, wszdigestalgorithm.unwrap_or(core::mem::zeroed()) as _, pcbdigest as _, pbdigest as _).ok() } } #[inline] @@ -463,8 +463,8 @@ pub unsafe fn DRMIsActivated(hclient: u32, uflags: u32, pactservinfo: *mut DRM_A unsafe { DRMIsActivated(hclient, uflags, pactservinfo as _).ok() } } #[inline] -pub unsafe fn DRMIsWindowProtected(hwnd: super::super::Foundation::HWND, pfprotected: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("msdrm.dll" "system" fn DRMIsWindowProtected(hwnd : super::super::Foundation:: HWND, pfprotected : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn DRMIsWindowProtected(hwnd: super::super::Foundation::HWND, pfprotected: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("msdrm.dll" "system" fn DRMIsWindowProtected(hwnd : super::super::Foundation:: HWND, pfprotected : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { DRMIsWindowProtected(hwnd, pfprotected as _).ok() } } #[inline] @@ -486,7 +486,7 @@ where } #[inline] pub unsafe fn DRMRegisterContent(fregister: bool) -> windows_core::Result<()> { - windows_targets::link!("msdrm.dll" "system" fn DRMRegisterContent(fregister : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("msdrm.dll" "system" fn DRMRegisterContent(fregister : windows_core::BOOL) -> windows_core::HRESULT); unsafe { DRMRegisterContent(fregister.into()).ok() } } #[inline] @@ -513,7 +513,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("msdrm.dll" "system" fn DRMSetApplicationSpecificData(hissuancelicense : u32, fdelete : super::super::Foundation:: BOOL, wszname : windows_core::PCWSTR, wszvalue : windows_core::PCWSTR) -> windows_core::HRESULT); + windows_targets::link!("msdrm.dll" "system" fn DRMSetApplicationSpecificData(hissuancelicense : u32, fdelete : windows_core::BOOL, wszname : windows_core::PCWSTR, wszvalue : windows_core::PCWSTR) -> windows_core::HRESULT); unsafe { DRMSetApplicationSpecificData(hissuancelicense, fdelete.into(), wszname.param().abi(), wszvalue.param().abi()).ok() } } #[inline] @@ -545,7 +545,7 @@ where P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("msdrm.dll" "system" fn DRMSetNameAndDescription(hissuancelicense : u32, fdelete : super::super::Foundation:: BOOL, lcid : u32, wszname : windows_core::PCWSTR, wszdescription : windows_core::PCWSTR) -> windows_core::HRESULT); + windows_targets::link!("msdrm.dll" "system" fn DRMSetNameAndDescription(hissuancelicense : u32, fdelete : windows_core::BOOL, lcid : u32, wszname : windows_core::PCWSTR, wszdescription : windows_core::PCWSTR) -> windows_core::HRESULT); unsafe { DRMSetNameAndDescription(hissuancelicense, fdelete.into(), lcid, wszname.param().abi(), wszdescription.param().abi()).ok() } } #[inline] @@ -557,7 +557,7 @@ where P6: windows_core::Param, P7: windows_core::Param, { - windows_targets::link!("msdrm.dll" "system" fn DRMSetRevocationPoint(hissuancelicense : u32, fdelete : super::super::Foundation:: BOOL, wszid : windows_core::PCWSTR, wszidtype : windows_core::PCWSTR, wszurl : windows_core::PCWSTR, pstfrequency : *mut super::super::Foundation:: SYSTEMTIME, wszname : windows_core::PCWSTR, wszpublickey : windows_core::PCWSTR) -> windows_core::HRESULT); + windows_targets::link!("msdrm.dll" "system" fn DRMSetRevocationPoint(hissuancelicense : u32, fdelete : windows_core::BOOL, wszid : windows_core::PCWSTR, wszidtype : windows_core::PCWSTR, wszurl : windows_core::PCWSTR, pstfrequency : *mut super::super::Foundation:: SYSTEMTIME, wszname : windows_core::PCWSTR, wszpublickey : windows_core::PCWSTR) -> windows_core::HRESULT); unsafe { DRMSetRevocationPoint(hissuancelicense, fdelete.into(), wszid.param().abi(), wszidtype.param().abi(), wszurl.param().abi(), pstfrequency as _, wszname.param().abi(), wszpublickey.param().abi()).ok() } } #[inline] @@ -569,7 +569,7 @@ where P7: windows_core::Param, P8: windows_core::Param, { - windows_targets::link!("msdrm.dll" "system" fn DRMSetUsagePolicy(hissuancelicense : u32, eusagepolicytype : DRM_USAGEPOLICY_TYPE, fdelete : super::super::Foundation:: BOOL, fexclusion : super::super::Foundation:: BOOL, wszname : windows_core::PCWSTR, wszminversion : windows_core::PCWSTR, wszmaxversion : windows_core::PCWSTR, wszpublickey : windows_core::PCWSTR, wszdigestalgorithm : windows_core::PCWSTR, pbdigest : *mut u8, cbdigest : u32) -> windows_core::HRESULT); + windows_targets::link!("msdrm.dll" "system" fn DRMSetUsagePolicy(hissuancelicense : u32, eusagepolicytype : DRM_USAGEPOLICY_TYPE, fdelete : windows_core::BOOL, fexclusion : windows_core::BOOL, wszname : windows_core::PCWSTR, wszminversion : windows_core::PCWSTR, wszmaxversion : windows_core::PCWSTR, wszpublickey : windows_core::PCWSTR, wszdigestalgorithm : windows_core::PCWSTR, pbdigest : *mut u8, cbdigest : u32) -> windows_core::HRESULT); unsafe { DRMSetUsagePolicy(hissuancelicense, eusagepolicytype, fdelete.into(), fexclusion.into(), wszname.param().abi(), wszminversion.param().abi(), wszmaxversion.param().abi(), wszpublickey.param().abi(), wszdigestalgorithm.param().abi(), pbdigest as _, cbdigest).ok() } } #[inline] 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 065f4de09c..320339485e 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 @@ -11113,7 +11113,7 @@ impl IXMLDSOControl { { unsafe { (windows_core::Interface::vtable(self).SetXMLDocument)(windows_core::Interface::as_raw(self), ppdoc.param().abi()).ok() } } - pub unsafe fn JavaDSOCompatible(&self) -> windows_core::Result { + pub unsafe fn JavaDSOCompatible(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).JavaDSOCompatible)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -11135,16 +11135,16 @@ pub struct IXMLDSOControl_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub XMLDocument: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetXMLDocument: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub JavaDSOCompatible: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetJavaDSOCompatible: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub JavaDSOCompatible: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetJavaDSOCompatible: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub readyState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IXMLDSOControl_Impl: super::super::super::System::Com::IDispatch_Impl { fn XMLDocument(&self) -> windows_core::Result; fn SetXMLDocument(&self, ppdoc: windows_core::Ref) -> windows_core::Result<()>; - fn JavaDSOCompatible(&self) -> windows_core::Result; - fn SetJavaDSOCompatible(&self, fjavadsocompatible: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn JavaDSOCompatible(&self) -> windows_core::Result; + fn SetJavaDSOCompatible(&self, fjavadsocompatible: windows_core::BOOL) -> windows_core::Result<()>; fn readyState(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -11168,7 +11168,7 @@ impl IXMLDSOControl_Vtbl { IXMLDSOControl_Impl::SetXMLDocument(this, core::mem::transmute_copy(&ppdoc)).into() } } - unsafe extern "system" fn JavaDSOCompatible(this: *mut core::ffi::c_void, fjavadsocompatible: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn JavaDSOCompatible(this: *mut core::ffi::c_void, fjavadsocompatible: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXMLDSOControl_Impl::JavaDSOCompatible(this) { @@ -11180,7 +11180,7 @@ impl IXMLDSOControl_Vtbl { } } } - unsafe extern "system" fn SetJavaDSOCompatible(this: *mut core::ffi::c_void, fjavadsocompatible: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetJavaDSOCompatible(this: *mut core::ffi::c_void, fjavadsocompatible: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXMLDSOControl_Impl::SetJavaDSOCompatible(this, core::mem::transmute_copy(&fjavadsocompatible)).into() 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 53bbed66b2..ae7754a1c8 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 @@ -15,7 +15,7 @@ where P1: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("xmllite.dll" "system" fn CreateXmlReaderInputWithEncodingCodePage(pinputstream : * mut core::ffi::c_void, pmalloc : * mut core::ffi::c_void, nencodingcodepage : u32, fencodinghint : super::super::super::Foundation:: BOOL, pwszbaseuri : windows_core::PCWSTR, ppinput : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("xmllite.dll" "system" fn CreateXmlReaderInputWithEncodingCodePage(pinputstream : * mut core::ffi::c_void, pmalloc : * mut core::ffi::c_void, nencodingcodepage : u32, fencodinghint : windows_core::BOOL, pwszbaseuri : windows_core::PCWSTR, ppinput : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); CreateXmlReaderInputWithEncodingCodePage(pinputstream.param().abi(), pmalloc.param().abi(), nencodingcodepage, fencodinghint.into(), pwszbaseuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -30,7 +30,7 @@ where P2: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("xmllite.dll" "system" fn CreateXmlReaderInputWithEncodingName(pinputstream : * mut core::ffi::c_void, pmalloc : * mut core::ffi::c_void, pwszencodingname : windows_core::PCWSTR, fencodinghint : super::super::super::Foundation:: BOOL, pwszbaseuri : windows_core::PCWSTR, ppinput : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("xmllite.dll" "system" fn CreateXmlReaderInputWithEncodingName(pinputstream : * mut core::ffi::c_void, pmalloc : * mut core::ffi::c_void, pwszencodingname : windows_core::PCWSTR, fencodinghint : windows_core::BOOL, pwszbaseuri : windows_core::PCWSTR, ppinput : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); CreateXmlReaderInputWithEncodingName(pinputstream.param().abi(), pmalloc.param().abi(), pwszencodingname.param().abi(), fencodinghint.into(), pwszbaseuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -141,10 +141,10 @@ impl IXmlReader { pub unsafe fn GetBaseUri(&self, ppwszbaseuri: *mut windows_core::PCWSTR, pcwchbaseuri: Option<*mut u32>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetBaseUri)(windows_core::Interface::as_raw(self), ppwszbaseuri as _, pcwchbaseuri.unwrap_or(core::mem::zeroed()) as _).ok() } } - pub unsafe fn IsDefault(&self) -> super::super::super::Foundation::BOOL { + pub unsafe fn IsDefault(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsDefault)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn IsEmptyElement(&self) -> super::super::super::Foundation::BOOL { + pub unsafe fn IsEmptyElement(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsEmptyElement)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetLineNumber(&self) -> windows_core::Result { @@ -171,7 +171,7 @@ impl IXmlReader { (windows_core::Interface::vtable(self).GetDepth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsEOF(&self) -> super::super::super::Foundation::BOOL { + pub unsafe fn IsEOF(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsEOF)(windows_core::Interface::as_raw(self)) } } } @@ -194,13 +194,13 @@ pub struct IXmlReader_Vtbl { pub GetValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PCWSTR, *mut u32) -> windows_core::HRESULT, pub ReadValueChunk: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, *mut u32) -> windows_core::HRESULT, pub GetBaseUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PCWSTR, *mut u32) -> windows_core::HRESULT, - pub IsDefault: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::super::Foundation::BOOL, - pub IsEmptyElement: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::super::Foundation::BOOL, + pub IsDefault: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, + pub IsEmptyElement: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetLineNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetLinePosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetAttributeCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetDepth: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub IsEOF: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::super::Foundation::BOOL, + pub IsEOF: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } pub trait IXmlReader_Impl: windows_core::IUnknownImpl { fn SetInput(&self, pinput: windows_core::Ref) -> windows_core::Result<()>; @@ -219,13 +219,13 @@ pub trait IXmlReader_Impl: windows_core::IUnknownImpl { fn GetValue(&self, ppwszvalue: *mut windows_core::PCWSTR, pcwchvalue: *mut u32) -> windows_core::Result<()>; fn ReadValueChunk(&self, pwchbuffer: windows_core::PWSTR, cwchchunksize: u32, pcwchread: *mut u32) -> windows_core::HRESULT; fn GetBaseUri(&self, ppwszbaseuri: *mut windows_core::PCWSTR, pcwchbaseuri: *mut u32) -> windows_core::Result<()>; - fn IsDefault(&self) -> super::super::super::Foundation::BOOL; - fn IsEmptyElement(&self) -> super::super::super::Foundation::BOOL; + fn IsDefault(&self) -> windows_core::BOOL; + fn IsEmptyElement(&self) -> windows_core::BOOL; fn GetLineNumber(&self) -> windows_core::Result; fn GetLinePosition(&self) -> windows_core::Result; fn GetAttributeCount(&self) -> windows_core::Result; fn GetDepth(&self) -> windows_core::Result; - fn IsEOF(&self) -> super::super::super::Foundation::BOOL; + fn IsEOF(&self) -> windows_core::BOOL; } impl IXmlReader_Vtbl { pub const fn new() -> Self { @@ -337,13 +337,13 @@ impl IXmlReader_Vtbl { IXmlReader_Impl::GetBaseUri(this, core::mem::transmute_copy(&ppwszbaseuri), core::mem::transmute_copy(&pcwchbaseuri)).into() } } - unsafe extern "system" fn IsDefault(this: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn IsDefault(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::IsDefault(this) } } - unsafe extern "system" fn IsEmptyElement(this: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn IsEmptyElement(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::IsEmptyElement(this) @@ -397,7 +397,7 @@ impl IXmlReader_Vtbl { } } } - unsafe extern "system" fn IsEOF(this: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn IsEOF(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlReader_Impl::IsEOF(this) @@ -646,7 +646,7 @@ pub struct IXmlWriter_Vtbl { pub SetOutput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut isize) -> windows_core::HRESULT, pub SetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, u32, isize) -> windows_core::HRESULT, - pub WriteAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub WriteAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub WriteAttributeString: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, pub WriteCData: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub WriteCharEntity: unsafe extern "system" fn(*mut core::ffi::c_void, u16) -> windows_core::HRESULT, @@ -660,8 +660,8 @@ pub struct IXmlWriter_Vtbl { pub WriteFullEndElement: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub WriteName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub WriteNmToken: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, - pub WriteNode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub WriteNodeShallow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub WriteNode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub WriteNodeShallow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub WriteProcessingInstruction: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, pub WriteQualifiedName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, pub WriteRaw: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, @@ -677,7 +677,7 @@ pub trait IXmlWriter_Impl: windows_core::IUnknownImpl { fn SetOutput(&self, poutput: windows_core::Ref) -> windows_core::Result<()>; fn GetProperty(&self, nproperty: u32) -> windows_core::Result; fn SetProperty(&self, nproperty: u32, pvalue: isize) -> windows_core::Result<()>; - fn WriteAttributes(&self, preader: windows_core::Ref, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn WriteAttributes(&self, preader: windows_core::Ref, fwritedefaultattributes: windows_core::BOOL) -> windows_core::Result<()>; fn WriteAttributeString(&self, pwszprefix: &windows_core::PCWSTR, pwszlocalname: &windows_core::PCWSTR, pwsznamespaceuri: &windows_core::PCWSTR, pwszvalue: &windows_core::PCWSTR) -> windows_core::Result<()>; fn WriteCData(&self, pwsztext: &windows_core::PCWSTR) -> windows_core::Result<()>; fn WriteCharEntity(&self, wch: u16) -> windows_core::Result<()>; @@ -691,8 +691,8 @@ pub trait IXmlWriter_Impl: windows_core::IUnknownImpl { fn WriteFullEndElement(&self) -> windows_core::Result<()>; fn WriteName(&self, pwszname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn WriteNmToken(&self, pwsznmtoken: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn WriteNode(&self, preader: windows_core::Ref, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn WriteNodeShallow(&self, preader: windows_core::Ref, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn WriteNode(&self, preader: windows_core::Ref, fwritedefaultattributes: windows_core::BOOL) -> windows_core::Result<()>; + fn WriteNodeShallow(&self, preader: windows_core::Ref, fwritedefaultattributes: windows_core::BOOL) -> windows_core::Result<()>; fn WriteProcessingInstruction(&self, pwszname: &windows_core::PCWSTR, pwsztext: &windows_core::PCWSTR) -> windows_core::Result<()>; fn WriteQualifiedName(&self, pwszlocalname: &windows_core::PCWSTR, pwsznamespaceuri: &windows_core::PCWSTR) -> windows_core::Result<()>; fn WriteRaw(&self, pwszdata: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -730,7 +730,7 @@ impl IXmlWriter_Vtbl { IXmlWriter_Impl::SetProperty(this, core::mem::transmute_copy(&nproperty), core::mem::transmute_copy(&pvalue)).into() } } - unsafe extern "system" fn WriteAttributes(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn WriteAttributes(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteAttributes(this, core::mem::transmute_copy(&preader), core::mem::transmute_copy(&fwritedefaultattributes)).into() @@ -814,13 +814,13 @@ impl IXmlWriter_Vtbl { IXmlWriter_Impl::WriteNmToken(this, core::mem::transmute(&pwsznmtoken)).into() } } - unsafe extern "system" fn WriteNode(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn WriteNode(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteNode(this, core::mem::transmute_copy(&preader), core::mem::transmute_copy(&fwritedefaultattributes)).into() } } - unsafe extern "system" fn WriteNodeShallow(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn WriteNodeShallow(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriter_Impl::WriteNodeShallow(this, core::mem::transmute_copy(&preader), core::mem::transmute_copy(&fwritedefaultattributes)).into() @@ -1070,7 +1070,7 @@ pub struct IXmlWriterLite_Vtbl { pub SetOutput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut isize) -> windows_core::HRESULT, pub SetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, u32, isize) -> windows_core::HRESULT, - pub WriteAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub WriteAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub WriteAttributeString: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, windows_core::PCWSTR, u32) -> windows_core::HRESULT, pub WriteCData: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub WriteCharEntity: unsafe extern "system" fn(*mut core::ffi::c_void, u16) -> windows_core::HRESULT, @@ -1084,8 +1084,8 @@ pub struct IXmlWriterLite_Vtbl { pub WriteFullEndElement: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32) -> windows_core::HRESULT, pub WriteName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub WriteNmToken: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, - pub WriteNode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub WriteNodeShallow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub WriteNode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub WriteNodeShallow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub WriteProcessingInstruction: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, pub WriteRaw: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub WriteRawChars: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32) -> windows_core::HRESULT, @@ -1100,7 +1100,7 @@ pub trait IXmlWriterLite_Impl: windows_core::IUnknownImpl { fn SetOutput(&self, poutput: windows_core::Ref) -> windows_core::Result<()>; fn GetProperty(&self, nproperty: u32) -> windows_core::Result; fn SetProperty(&self, nproperty: u32, pvalue: isize) -> windows_core::Result<()>; - fn WriteAttributes(&self, preader: windows_core::Ref, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn WriteAttributes(&self, preader: windows_core::Ref, fwritedefaultattributes: windows_core::BOOL) -> windows_core::Result<()>; fn WriteAttributeString(&self, pwszqname: &windows_core::PCWSTR, cwszqname: u32, pwszvalue: &windows_core::PCWSTR, cwszvalue: u32) -> windows_core::Result<()>; fn WriteCData(&self, pwsztext: &windows_core::PCWSTR) -> windows_core::Result<()>; fn WriteCharEntity(&self, wch: u16) -> windows_core::Result<()>; @@ -1114,8 +1114,8 @@ pub trait IXmlWriterLite_Impl: windows_core::IUnknownImpl { fn WriteFullEndElement(&self, pwszqname: &windows_core::PCWSTR, cwszqname: u32) -> windows_core::Result<()>; fn WriteName(&self, pwszname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn WriteNmToken(&self, pwsznmtoken: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn WriteNode(&self, preader: windows_core::Ref, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn WriteNodeShallow(&self, preader: windows_core::Ref, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn WriteNode(&self, preader: windows_core::Ref, fwritedefaultattributes: windows_core::BOOL) -> windows_core::Result<()>; + fn WriteNodeShallow(&self, preader: windows_core::Ref, fwritedefaultattributes: windows_core::BOOL) -> windows_core::Result<()>; fn WriteProcessingInstruction(&self, pwszname: &windows_core::PCWSTR, pwsztext: &windows_core::PCWSTR) -> windows_core::Result<()>; fn WriteRaw(&self, pwszdata: &windows_core::PCWSTR) -> windows_core::Result<()>; fn WriteRawChars(&self, pwch: &windows_core::PCWSTR, cwch: u32) -> windows_core::Result<()>; @@ -1152,7 +1152,7 @@ impl IXmlWriterLite_Vtbl { IXmlWriterLite_Impl::SetProperty(this, core::mem::transmute_copy(&nproperty), core::mem::transmute_copy(&pvalue)).into() } } - unsafe extern "system" fn WriteAttributes(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn WriteAttributes(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteAttributes(this, core::mem::transmute_copy(&preader), core::mem::transmute_copy(&fwritedefaultattributes)).into() @@ -1236,13 +1236,13 @@ impl IXmlWriterLite_Vtbl { IXmlWriterLite_Impl::WriteNmToken(this, core::mem::transmute(&pwsznmtoken)).into() } } - unsafe extern "system" fn WriteNode(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn WriteNode(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteNode(this, core::mem::transmute_copy(&preader), core::mem::transmute_copy(&fwritedefaultattributes)).into() } } - unsafe extern "system" fn WriteNodeShallow(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn WriteNodeShallow(this: *mut core::ffi::c_void, preader: *mut core::ffi::c_void, fwritedefaultattributes: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXmlWriterLite_Impl::WriteNodeShallow(this, core::mem::transmute_copy(&preader), core::mem::transmute_copy(&fwritedefaultattributes)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Devices/AllJoyn/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/AllJoyn/mod.rs index 03b705b044..ef504c5714 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/AllJoyn/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/AllJoyn/mod.rs @@ -5,7 +5,7 @@ pub unsafe fn AllJoynAcceptBusConnection(serverbushandle: super::super::Foundati } #[inline] pub unsafe fn AllJoynCloseBusHandle(bushandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("msajapi.dll" "system" fn AllJoynCloseBusHandle(bushandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("msajapi.dll" "system" fn AllJoynCloseBusHandle(bushandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { AllJoynCloseBusHandle(bushandle).ok() } } #[inline] @@ -25,22 +25,22 @@ pub unsafe fn AllJoynCreateBus(outbuffersize: u32, inbuffersize: u32, lpsecurity } #[inline] pub unsafe fn AllJoynEnumEvents(connectedbushandle: super::super::Foundation::HANDLE, eventtoreset: Option, eventtypes: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("msajapi.dll" "system" fn AllJoynEnumEvents(connectedbushandle : super::super::Foundation:: HANDLE, eventtoreset : super::super::Foundation:: HANDLE, eventtypes : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("msajapi.dll" "system" fn AllJoynEnumEvents(connectedbushandle : super::super::Foundation:: HANDLE, eventtoreset : super::super::Foundation:: HANDLE, eventtypes : *mut u32) -> windows_core::BOOL); unsafe { AllJoynEnumEvents(connectedbushandle, eventtoreset.unwrap_or(core::mem::zeroed()) as _, eventtypes as _).ok() } } #[inline] pub unsafe fn AllJoynEventSelect(connectedbushandle: super::super::Foundation::HANDLE, eventhandle: super::super::Foundation::HANDLE, eventtypes: u32) -> windows_core::Result<()> { - windows_targets::link!("msajapi.dll" "system" fn AllJoynEventSelect(connectedbushandle : super::super::Foundation:: HANDLE, eventhandle : super::super::Foundation:: HANDLE, eventtypes : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("msajapi.dll" "system" fn AllJoynEventSelect(connectedbushandle : super::super::Foundation:: HANDLE, eventhandle : super::super::Foundation:: HANDLE, eventtypes : u32) -> windows_core::BOOL); unsafe { AllJoynEventSelect(connectedbushandle, eventhandle, eventtypes).ok() } } #[inline] pub unsafe fn AllJoynReceiveFromBus(connectedbushandle: super::super::Foundation::HANDLE, buffer: Option<*mut core::ffi::c_void>, bytestoread: u32, bytestransferred: Option<*mut u32>, reserved: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("msajapi.dll" "system" fn AllJoynReceiveFromBus(connectedbushandle : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bytestoread : u32, bytestransferred : *mut u32, reserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("msajapi.dll" "system" fn AllJoynReceiveFromBus(connectedbushandle : super::super::Foundation:: HANDLE, buffer : *mut core::ffi::c_void, bytestoread : u32, bytestransferred : *mut u32, reserved : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { AllJoynReceiveFromBus(connectedbushandle, buffer.unwrap_or(core::mem::zeroed()) as _, bytestoread, bytestransferred.unwrap_or(core::mem::zeroed()) as _, reserved as _).ok() } } #[inline] pub unsafe fn AllJoynSendToBus(connectedbushandle: super::super::Foundation::HANDLE, buffer: Option<*const core::ffi::c_void>, bytestowrite: u32, bytestransferred: Option<*mut u32>, reserved: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("msajapi.dll" "system" fn AllJoynSendToBus(connectedbushandle : super::super::Foundation:: HANDLE, buffer : *const core::ffi::c_void, bytestowrite : u32, bytestransferred : *mut u32, reserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("msajapi.dll" "system" fn AllJoynSendToBus(connectedbushandle : super::super::Foundation:: HANDLE, buffer : *const core::ffi::c_void, bytestowrite : u32, bytestransferred : *mut u32, reserved : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { AllJoynSendToBus(connectedbushandle, buffer.unwrap_or(core::mem::zeroed()) as _, bytestowrite, bytestransferred.unwrap_or(core::mem::zeroed()) as _, reserved as _).ok() } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/Devices/BiometricFramework/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/BiometricFramework/mod.rs index 841f17d60d..7e82bbccc4 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/BiometricFramework/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/BiometricFramework/mod.rs @@ -25,12 +25,12 @@ pub unsafe fn WinBioAsyncMonitorFrameworkChanges(frameworkhandle: u32, changetyp } #[inline] pub unsafe fn WinBioAsyncOpenFramework(notificationmethod: WINBIO_ASYNC_NOTIFICATION_METHOD, targetwindow: Option, messagecode: Option, callbackroutine: Option, userdata: Option<*const core::ffi::c_void>, asynchronousopen: bool, frameworkhandle: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("winbio.dll" "system" fn WinBioAsyncOpenFramework(notificationmethod : WINBIO_ASYNC_NOTIFICATION_METHOD, targetwindow : super::super::Foundation:: HWND, messagecode : u32, callbackroutine : PWINBIO_ASYNC_COMPLETION_CALLBACK, userdata : *const core::ffi::c_void, asynchronousopen : super::super::Foundation:: BOOL, frameworkhandle : *mut u32) -> windows_core::HRESULT); + windows_targets::link!("winbio.dll" "system" fn WinBioAsyncOpenFramework(notificationmethod : WINBIO_ASYNC_NOTIFICATION_METHOD, targetwindow : super::super::Foundation:: HWND, messagecode : u32, callbackroutine : PWINBIO_ASYNC_COMPLETION_CALLBACK, userdata : *const core::ffi::c_void, asynchronousopen : windows_core::BOOL, frameworkhandle : *mut u32) -> windows_core::HRESULT); unsafe { WinBioAsyncOpenFramework(notificationmethod, targetwindow.unwrap_or(core::mem::zeroed()) as _, messagecode.unwrap_or(core::mem::zeroed()) as _, callbackroutine.unwrap_or(core::mem::zeroed()) as _, userdata.unwrap_or(core::mem::zeroed()) as _, asynchronousopen.into(), frameworkhandle.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn WinBioAsyncOpenSession(factor: u32, pooltype: WINBIO_POOL, flags: u32, unitarray: Option<&[u32]>, databaseid: Option<*const windows_core::GUID>, notificationmethod: WINBIO_ASYNC_NOTIFICATION_METHOD, targetwindow: Option, messagecode: Option, callbackroutine: Option, userdata: Option<*const core::ffi::c_void>, asynchronousopen: bool, sessionhandle: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("winbio.dll" "system" fn WinBioAsyncOpenSession(factor : u32, pooltype : WINBIO_POOL, flags : u32, unitarray : *const u32, unitcount : usize, databaseid : *const windows_core::GUID, notificationmethod : WINBIO_ASYNC_NOTIFICATION_METHOD, targetwindow : super::super::Foundation:: HWND, messagecode : u32, callbackroutine : PWINBIO_ASYNC_COMPLETION_CALLBACK, userdata : *const core::ffi::c_void, asynchronousopen : super::super::Foundation:: BOOL, sessionhandle : *mut u32) -> windows_core::HRESULT); + windows_targets::link!("winbio.dll" "system" fn WinBioAsyncOpenSession(factor : u32, pooltype : WINBIO_POOL, flags : u32, unitarray : *const u32, unitcount : usize, databaseid : *const windows_core::GUID, notificationmethod : WINBIO_ASYNC_NOTIFICATION_METHOD, targetwindow : super::super::Foundation:: HWND, messagecode : u32, callbackroutine : PWINBIO_ASYNC_COMPLETION_CALLBACK, userdata : *const core::ffi::c_void, asynchronousopen : windows_core::BOOL, sessionhandle : *mut u32) -> windows_core::HRESULT); unsafe { WinBioAsyncOpenSession( factor, @@ -1453,7 +1453,7 @@ pub struct WINBIO_EXTENDED_ENROLLMENT_STATUS_0_2 { pub GridPointCompletionPercent: u32, pub GridPointIndex: u16, pub Point3D: WINBIO_EXTENDED_ENROLLMENT_STATUS_0_2_0, - pub StopCaptureAndShowCriticalFeedback: super::super::Foundation::BOOL, + pub StopCaptureAndShowCriticalFeedback: windows_core::BOOL, } impl Default for WINBIO_EXTENDED_ENROLLMENT_STATUS_0_2 { fn default() -> Self { @@ -1729,7 +1729,7 @@ pub const WINBIO_E_UNSUPPORTED_SENSOR_CALIBRATION_FORMAT: windows_core::HRESULT #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WINBIO_FP_BU_STATE { - pub SensorAttached: super::super::Foundation::BOOL, + pub SensorAttached: windows_core::BOOL, pub CreationResult: windows_core::HRESULT, } impl Default for WINBIO_FP_BU_STATE { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs index d0df989df1..ae04672b9e 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Bluetooth/mod.rs @@ -15,17 +15,17 @@ pub unsafe fn BluetoothAuthenticateMultipleDevices(hwndparent: Option, pbtdi: *mut BLUETOOTH_DEVICE_INFO) -> windows_core::Result<()> { - windows_targets::link!("bthprops.cpl" "system" fn BluetoothDisplayDeviceProperties(hwndparent : super::super::Foundation:: HWND, pbtdi : *mut BLUETOOTH_DEVICE_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("bthprops.cpl" "system" fn BluetoothDisplayDeviceProperties(hwndparent : super::super::Foundation:: HWND, pbtdi : *mut BLUETOOTH_DEVICE_INFO) -> windows_core::BOOL); unsafe { BluetoothDisplayDeviceProperties(hwndparent.unwrap_or(core::mem::zeroed()) as _, pbtdi as _).ok() } } #[inline] -pub unsafe fn BluetoothEnableDiscovery(hradio: Option, fenabled: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothEnableDiscovery(hradio : super::super::Foundation:: HANDLE, fenabled : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn BluetoothEnableDiscovery(hradio: Option, fenabled: bool) -> windows_core::BOOL { + windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothEnableDiscovery(hradio : super::super::Foundation:: HANDLE, fenabled : windows_core::BOOL) -> windows_core::BOOL); unsafe { BluetoothEnableDiscovery(hradio.unwrap_or(core::mem::zeroed()) as _, fenabled.into()) } } #[inline] -pub unsafe fn BluetoothEnableIncomingConnections(hradio: Option, fenabled: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothEnableIncomingConnections(hradio : super::super::Foundation:: HANDLE, fenabled : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn BluetoothEnableIncomingConnections(hradio: Option, fenabled: bool) -> windows_core::BOOL { + windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothEnableIncomingConnections(hradio : super::super::Foundation:: HANDLE, fenabled : windows_core::BOOL) -> windows_core::BOOL); unsafe { BluetoothEnableIncomingConnections(hradio.unwrap_or(core::mem::zeroed()) as _, fenabled.into()) } } #[inline] @@ -35,7 +35,7 @@ pub unsafe fn BluetoothEnumerateInstalledServices(hradio: Option windows_core::Result<()> { - windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothFindDeviceClose(hfind : HBLUETOOTH_DEVICE_FIND) -> super::super::Foundation:: BOOL); + windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothFindDeviceClose(hfind : HBLUETOOTH_DEVICE_FIND) -> windows_core::BOOL); unsafe { BluetoothFindDeviceClose(hfind).ok() } } #[inline] @@ -52,17 +52,17 @@ pub unsafe fn BluetoothFindFirstRadio(pbtfrp: *const BLUETOOTH_FIND_RADIO_PARAMS } #[inline] pub unsafe fn BluetoothFindNextDevice(hfind: HBLUETOOTH_DEVICE_FIND, pbtdi: *mut BLUETOOTH_DEVICE_INFO) -> windows_core::Result<()> { - windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothFindNextDevice(hfind : HBLUETOOTH_DEVICE_FIND, pbtdi : *mut BLUETOOTH_DEVICE_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothFindNextDevice(hfind : HBLUETOOTH_DEVICE_FIND, pbtdi : *mut BLUETOOTH_DEVICE_INFO) -> windows_core::BOOL); unsafe { BluetoothFindNextDevice(hfind, pbtdi as _).ok() } } #[inline] pub unsafe fn BluetoothFindNextRadio(hfind: HBLUETOOTH_RADIO_FIND, phradio: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothFindNextRadio(hfind : HBLUETOOTH_RADIO_FIND, phradio : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothFindNextRadio(hfind : HBLUETOOTH_RADIO_FIND, phradio : *mut super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { BluetoothFindNextRadio(hfind, phradio as _).ok() } } #[inline] pub unsafe fn BluetoothFindRadioClose(hfind: HBLUETOOTH_RADIO_FIND) -> windows_core::Result<()> { - windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothFindRadioClose(hfind : HBLUETOOTH_RADIO_FIND) -> super::super::Foundation:: BOOL); + windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothFindRadioClose(hfind : HBLUETOOTH_RADIO_FIND) -> windows_core::BOOL); unsafe { BluetoothFindRadioClose(hfind).ok() } } #[inline] @@ -141,18 +141,18 @@ pub unsafe fn BluetoothGetRadioInfo(hradio: super::super::Foundation::HANDLE, pr unsafe { BluetoothGetRadioInfo(hradio, pradioinfo as _) } } #[inline] -pub unsafe fn BluetoothIsConnectable(hradio: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothIsConnectable(hradio : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn BluetoothIsConnectable(hradio: Option) -> windows_core::BOOL { + windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothIsConnectable(hradio : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { BluetoothIsConnectable(hradio.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn BluetoothIsDiscoverable(hradio: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothIsDiscoverable(hradio : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn BluetoothIsDiscoverable(hradio: Option) -> windows_core::BOOL { + windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothIsDiscoverable(hradio : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { BluetoothIsDiscoverable(hradio.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn BluetoothIsVersionAvailable(majorversion: u8, minorversion: u8) -> super::super::Foundation::BOOL { - windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothIsVersionAvailable(majorversion : u8, minorversion : u8) -> super::super::Foundation:: BOOL); +pub unsafe fn BluetoothIsVersionAvailable(majorversion: u8, minorversion: u8) -> windows_core::BOOL { + windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothIsVersionAvailable(majorversion : u8, minorversion : u8) -> windows_core::BOOL); unsafe { BluetoothIsVersionAvailable(majorversion, minorversion) } } #[inline] @@ -172,7 +172,7 @@ pub unsafe fn BluetoothRemoveDevice(paddress: *const BLUETOOTH_ADDRESS) -> u32 { } #[inline] pub unsafe fn BluetoothSdpEnumAttributes(psdpstream: &[u8], pfncallback: PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK, pvparam: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothSdpEnumAttributes(psdpstream : *const u8, cbstreamsize : u32, pfncallback : PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK, pvparam : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothSdpEnumAttributes(psdpstream : *const u8, cbstreamsize : u32, pfncallback : PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK, pvparam : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { BluetoothSdpEnumAttributes(core::mem::transmute(psdpstream.as_ptr()), psdpstream.len().try_into().unwrap(), pfncallback, pvparam).ok() } } #[inline] @@ -197,12 +197,12 @@ pub unsafe fn BluetoothSdpGetString(precordstream: &[u8], pstringdata: Option<*c } #[inline] pub unsafe fn BluetoothSelectDevices(pbtsdp: *mut BLUETOOTH_SELECT_DEVICE_PARAMS) -> windows_core::Result<()> { - windows_targets::link!("bthprops.cpl" "system" fn BluetoothSelectDevices(pbtsdp : *mut BLUETOOTH_SELECT_DEVICE_PARAMS) -> super::super::Foundation:: BOOL); + windows_targets::link!("bthprops.cpl" "system" fn BluetoothSelectDevices(pbtsdp : *mut BLUETOOTH_SELECT_DEVICE_PARAMS) -> windows_core::BOOL); unsafe { BluetoothSelectDevices(pbtsdp as _).ok() } } #[inline] -pub unsafe fn BluetoothSelectDevicesFree(pbtsdp: *mut BLUETOOTH_SELECT_DEVICE_PARAMS) -> super::super::Foundation::BOOL { - windows_targets::link!("bthprops.cpl" "system" fn BluetoothSelectDevicesFree(pbtsdp : *mut BLUETOOTH_SELECT_DEVICE_PARAMS) -> super::super::Foundation:: BOOL); +pub unsafe fn BluetoothSelectDevicesFree(pbtsdp: *mut BLUETOOTH_SELECT_DEVICE_PARAMS) -> windows_core::BOOL { + windows_targets::link!("bthprops.cpl" "system" fn BluetoothSelectDevicesFree(pbtsdp : *mut BLUETOOTH_SELECT_DEVICE_PARAMS) -> windows_core::BOOL); unsafe { BluetoothSelectDevicesFree(pbtsdp as _) } } #[inline] @@ -230,7 +230,7 @@ pub unsafe fn BluetoothSetServiceState(hradio: Option windows_core::Result<()> { - windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothUnregisterAuthentication(hreghandle : isize) -> super::super::Foundation:: BOOL); + windows_targets::link!("bluetoothapis.dll" "system" fn BluetoothUnregisterAuthentication(hreghandle : isize) -> windows_core::BOOL); unsafe { BluetoothUnregisterAuthentication(hreghandle).ok() } } #[inline] @@ -406,9 +406,9 @@ pub struct BLUETOOTH_DEVICE_INFO { pub dwSize: u32, pub Address: BLUETOOTH_ADDRESS, pub ulClassofDevice: u32, - pub fConnected: super::super::Foundation::BOOL, - pub fRemembered: super::super::Foundation::BOOL, - pub fAuthenticated: super::super::Foundation::BOOL, + pub fConnected: windows_core::BOOL, + pub fRemembered: windows_core::BOOL, + pub fAuthenticated: windows_core::BOOL, pub stLastSeen: super::super::Foundation::SYSTEMTIME, pub stLastUsed: super::super::Foundation::SYSTEMTIME, pub szName: [u16; 248], @@ -423,11 +423,11 @@ pub const BLUETOOTH_DEVICE_NAME_SIZE: u32 = 256u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct BLUETOOTH_DEVICE_SEARCH_PARAMS { pub dwSize: u32, - pub fReturnAuthenticated: super::super::Foundation::BOOL, - pub fReturnRemembered: super::super::Foundation::BOOL, - pub fReturnUnknown: super::super::Foundation::BOOL, - pub fReturnConnected: super::super::Foundation::BOOL, - pub fIssueInquiry: super::super::Foundation::BOOL, + pub fReturnAuthenticated: windows_core::BOOL, + pub fReturnRemembered: windows_core::BOOL, + pub fReturnUnknown: windows_core::BOOL, + pub fReturnConnected: windows_core::BOOL, + pub fIssueInquiry: windows_core::BOOL, pub cTimeoutMultiplier: u8, pub hRadio: super::super::Foundation::HANDLE, } @@ -488,7 +488,7 @@ pub const BLUETOOTH_IO_CAPABILITY_UNDEFINED: BLUETOOTH_IO_CAPABILITY = BLUETOOTH #[repr(C)] #[derive(Clone, Copy)] pub struct BLUETOOTH_LOCAL_SERVICE_INFO { - pub Enabled: super::super::Foundation::BOOL, + pub Enabled: windows_core::BOOL, pub btAddr: BLUETOOTH_ADDRESS, pub szName: [u16; 256], pub szDeviceString: [u16; 256], @@ -574,12 +574,12 @@ pub struct BLUETOOTH_SELECT_DEVICE_PARAMS { pub prgClassOfDevices: *mut BLUETOOTH_COD_PAIRS, pub pszInfo: windows_core::PWSTR, pub hwndParent: super::super::Foundation::HWND, - pub fForceAuthentication: super::super::Foundation::BOOL, - pub fShowAuthenticated: super::super::Foundation::BOOL, - pub fShowRemembered: super::super::Foundation::BOOL, - pub fShowUnknown: super::super::Foundation::BOOL, - pub fAddNewDeviceWizard: super::super::Foundation::BOOL, - pub fSkipServicesPage: super::super::Foundation::BOOL, + pub fForceAuthentication: windows_core::BOOL, + pub fShowAuthenticated: windows_core::BOOL, + pub fShowRemembered: windows_core::BOOL, + pub fShowUnknown: windows_core::BOOL, + pub fAddNewDeviceWizard: windows_core::BOOL, + pub fSkipServicesPage: windows_core::BOOL, pub pfnDeviceCallback: PFN_DEVICE_CALLBACK, pub pvParam: *mut core::ffi::c_void, pub cNumDevices: u32, @@ -1504,10 +1504,10 @@ pub const OBJECT_PUSH_FORMAT_VMESSAGE: u32 = 6u32; pub const OBJECT_PUSH_FORMAT_VNOTE: u32 = 5u32; pub const PANUServiceClassID_UUID16: u32 = 4373u32; pub type PFNBLUETOOTH_GATT_EVENT_CALLBACK = Option; -pub type PFN_AUTHENTICATION_CALLBACK = Option super::super::Foundation::BOOL>; -pub type PFN_AUTHENTICATION_CALLBACK_EX = Option super::super::Foundation::BOOL>; -pub type PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK = Option super::super::Foundation::BOOL>; -pub type PFN_DEVICE_CALLBACK = Option super::super::Foundation::BOOL>; +pub type PFN_AUTHENTICATION_CALLBACK = Option windows_core::BOOL>; +pub type PFN_AUTHENTICATION_CALLBACK_EX = Option windows_core::BOOL>; +pub type PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK = Option windows_core::BOOL>; +pub type PFN_DEVICE_CALLBACK = Option windows_core::BOOL>; pub const PF_BTH: u16 = 32u16; pub const PSM_3DSP: u32 = 33u32; pub const PSM_ATT: u32 = 31u32; diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Communication/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Communication/mod.rs index 2b83b1a03c..848e5c945a 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Communication/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Communication/mod.rs @@ -3,7 +3,7 @@ pub unsafe fn BuildCommDCBA(lpdef: P0, lpdcb: *mut DCB) -> windows_core::Res where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn BuildCommDCBA(lpdef : windows_core::PCSTR, lpdcb : *mut DCB) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn BuildCommDCBA(lpdef : windows_core::PCSTR, lpdcb : *mut DCB) -> windows_core::BOOL); unsafe { BuildCommDCBA(lpdef.param().abi(), lpdcb as _).ok() } } #[inline] @@ -11,7 +11,7 @@ pub unsafe fn BuildCommDCBAndTimeoutsA(lpdef: P0, lpdcb: *mut DCB, lpcommtim where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn BuildCommDCBAndTimeoutsA(lpdef : windows_core::PCSTR, lpdcb : *mut DCB, lpcommtimeouts : *mut COMMTIMEOUTS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn BuildCommDCBAndTimeoutsA(lpdef : windows_core::PCSTR, lpdcb : *mut DCB, lpcommtimeouts : *mut COMMTIMEOUTS) -> windows_core::BOOL); unsafe { BuildCommDCBAndTimeoutsA(lpdef.param().abi(), lpdcb as _, lpcommtimeouts as _).ok() } } #[inline] @@ -19,7 +19,7 @@ pub unsafe fn BuildCommDCBAndTimeoutsW(lpdef: P0, lpdcb: *mut DCB, lpcommtim where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn BuildCommDCBAndTimeoutsW(lpdef : windows_core::PCWSTR, lpdcb : *mut DCB, lpcommtimeouts : *mut COMMTIMEOUTS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn BuildCommDCBAndTimeoutsW(lpdef : windows_core::PCWSTR, lpdcb : *mut DCB, lpcommtimeouts : *mut COMMTIMEOUTS) -> windows_core::BOOL); unsafe { BuildCommDCBAndTimeoutsW(lpdef.param().abi(), lpdcb as _, lpcommtimeouts as _).ok() } } #[inline] @@ -27,17 +27,17 @@ pub unsafe fn BuildCommDCBW(lpdef: P0, lpdcb: *mut DCB) -> windows_core::Res where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn BuildCommDCBW(lpdef : windows_core::PCWSTR, lpdcb : *mut DCB) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn BuildCommDCBW(lpdef : windows_core::PCWSTR, lpdcb : *mut DCB) -> windows_core::BOOL); unsafe { BuildCommDCBW(lpdef.param().abi(), lpdcb as _).ok() } } #[inline] pub unsafe fn ClearCommBreak(hfile: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ClearCommBreak(hfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ClearCommBreak(hfile : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { ClearCommBreak(hfile).ok() } } #[inline] pub unsafe fn ClearCommError(hfile: super::super::Foundation::HANDLE, lperrors: Option<*mut CLEAR_COMM_ERROR_FLAGS>, lpstat: Option<*mut COMSTAT>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ClearCommError(hfile : super::super::Foundation:: HANDLE, lperrors : *mut CLEAR_COMM_ERROR_FLAGS, lpstat : *mut COMSTAT) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ClearCommError(hfile : super::super::Foundation:: HANDLE, lperrors : *mut CLEAR_COMM_ERROR_FLAGS, lpstat : *mut COMSTAT) -> windows_core::BOOL); unsafe { ClearCommError(hfile, lperrors.unwrap_or(core::mem::zeroed()) as _, lpstat.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -45,7 +45,7 @@ pub unsafe fn CommConfigDialogA(lpszname: P0, hwnd: Option, { - windows_targets::link!("kernel32.dll" "system" fn CommConfigDialogA(lpszname : windows_core::PCSTR, hwnd : super::super::Foundation:: HWND, lpcc : *mut COMMCONFIG) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CommConfigDialogA(lpszname : windows_core::PCSTR, hwnd : super::super::Foundation:: HWND, lpcc : *mut COMMCONFIG) -> windows_core::BOOL); unsafe { CommConfigDialogA(lpszname.param().abi(), hwnd.unwrap_or(core::mem::zeroed()) as _, lpcc as _).ok() } } #[inline] @@ -53,27 +53,27 @@ pub unsafe fn CommConfigDialogW(lpszname: P0, hwnd: Option, { - windows_targets::link!("kernel32.dll" "system" fn CommConfigDialogW(lpszname : windows_core::PCWSTR, hwnd : super::super::Foundation:: HWND, lpcc : *mut COMMCONFIG) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CommConfigDialogW(lpszname : windows_core::PCWSTR, hwnd : super::super::Foundation:: HWND, lpcc : *mut COMMCONFIG) -> windows_core::BOOL); unsafe { CommConfigDialogW(lpszname.param().abi(), hwnd.unwrap_or(core::mem::zeroed()) as _, lpcc as _).ok() } } #[inline] pub unsafe fn EscapeCommFunction(hfile: super::super::Foundation::HANDLE, dwfunc: ESCAPE_COMM_FUNCTION) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EscapeCommFunction(hfile : super::super::Foundation:: HANDLE, dwfunc : ESCAPE_COMM_FUNCTION) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EscapeCommFunction(hfile : super::super::Foundation:: HANDLE, dwfunc : ESCAPE_COMM_FUNCTION) -> windows_core::BOOL); unsafe { EscapeCommFunction(hfile, dwfunc).ok() } } #[inline] pub unsafe fn GetCommConfig(hcommdev: super::super::Foundation::HANDLE, lpcc: Option<*mut COMMCONFIG>, lpdwsize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetCommConfig(hcommdev : super::super::Foundation:: HANDLE, lpcc : *mut COMMCONFIG, lpdwsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetCommConfig(hcommdev : super::super::Foundation:: HANDLE, lpcc : *mut COMMCONFIG, lpdwsize : *mut u32) -> windows_core::BOOL); unsafe { GetCommConfig(hcommdev, lpcc.unwrap_or(core::mem::zeroed()) as _, lpdwsize as _).ok() } } #[inline] pub unsafe fn GetCommMask(hfile: super::super::Foundation::HANDLE, lpevtmask: *mut COMM_EVENT_MASK) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetCommMask(hfile : super::super::Foundation:: HANDLE, lpevtmask : *mut COMM_EVENT_MASK) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetCommMask(hfile : super::super::Foundation:: HANDLE, lpevtmask : *mut COMM_EVENT_MASK) -> windows_core::BOOL); unsafe { GetCommMask(hfile, lpevtmask as _).ok() } } #[inline] pub unsafe fn GetCommModemStatus(hfile: super::super::Foundation::HANDLE, lpmodemstat: *mut MODEM_STATUS_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetCommModemStatus(hfile : super::super::Foundation:: HANDLE, lpmodemstat : *mut MODEM_STATUS_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetCommModemStatus(hfile : super::super::Foundation:: HANDLE, lpmodemstat : *mut MODEM_STATUS_FLAGS) -> windows_core::BOOL); unsafe { GetCommModemStatus(hfile, lpmodemstat as _).ok() } } #[inline] @@ -83,17 +83,17 @@ pub unsafe fn GetCommPorts(lpportnumbers: &mut [u32], puportnumbersfound: *mut u } #[inline] pub unsafe fn GetCommProperties(hfile: super::super::Foundation::HANDLE, lpcommprop: *mut COMMPROP) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetCommProperties(hfile : super::super::Foundation:: HANDLE, lpcommprop : *mut COMMPROP) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetCommProperties(hfile : super::super::Foundation:: HANDLE, lpcommprop : *mut COMMPROP) -> windows_core::BOOL); unsafe { GetCommProperties(hfile, lpcommprop as _).ok() } } #[inline] pub unsafe fn GetCommState(hfile: super::super::Foundation::HANDLE, lpdcb: *mut DCB) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetCommState(hfile : super::super::Foundation:: HANDLE, lpdcb : *mut DCB) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetCommState(hfile : super::super::Foundation:: HANDLE, lpdcb : *mut DCB) -> windows_core::BOOL); unsafe { GetCommState(hfile, lpdcb as _).ok() } } #[inline] pub unsafe fn GetCommTimeouts(hfile: super::super::Foundation::HANDLE, lpcommtimeouts: *mut COMMTIMEOUTS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetCommTimeouts(hfile : super::super::Foundation:: HANDLE, lpcommtimeouts : *mut COMMTIMEOUTS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetCommTimeouts(hfile : super::super::Foundation:: HANDLE, lpcommtimeouts : *mut COMMTIMEOUTS) -> windows_core::BOOL); unsafe { GetCommTimeouts(hfile, lpcommtimeouts as _).ok() } } #[inline] @@ -101,7 +101,7 @@ pub unsafe fn GetDefaultCommConfigA(lpszname: P0, lpcc: *mut COMMCONFIG, lpd where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetDefaultCommConfigA(lpszname : windows_core::PCSTR, lpcc : *mut COMMCONFIG, lpdwsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetDefaultCommConfigA(lpszname : windows_core::PCSTR, lpcc : *mut COMMCONFIG, lpdwsize : *mut u32) -> windows_core::BOOL); unsafe { GetDefaultCommConfigA(lpszname.param().abi(), lpcc as _, lpdwsize as _).ok() } } #[inline] @@ -109,7 +109,7 @@ pub unsafe fn GetDefaultCommConfigW(lpszname: P0, lpcc: *mut COMMCONFIG, lpd where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetDefaultCommConfigW(lpszname : windows_core::PCWSTR, lpcc : *mut COMMCONFIG, lpdwsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetDefaultCommConfigW(lpszname : windows_core::PCWSTR, lpcc : *mut COMMCONFIG, lpdwsize : *mut u32) -> windows_core::BOOL); unsafe { GetDefaultCommConfigW(lpszname.param().abi(), lpcc as _, lpdwsize as _).ok() } } #[inline] @@ -119,32 +119,32 @@ pub unsafe fn OpenCommPort(uportnumber: u32, dwdesiredaccess: u32, dwflagsandatt } #[inline] pub unsafe fn PurgeComm(hfile: super::super::Foundation::HANDLE, dwflags: PURGE_COMM_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn PurgeComm(hfile : super::super::Foundation:: HANDLE, dwflags : PURGE_COMM_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn PurgeComm(hfile : super::super::Foundation:: HANDLE, dwflags : PURGE_COMM_FLAGS) -> windows_core::BOOL); unsafe { PurgeComm(hfile, dwflags).ok() } } #[inline] pub unsafe fn SetCommBreak(hfile: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetCommBreak(hfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetCommBreak(hfile : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SetCommBreak(hfile).ok() } } #[inline] pub unsafe fn SetCommConfig(hcommdev: super::super::Foundation::HANDLE, lpcc: *const COMMCONFIG, dwsize: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetCommConfig(hcommdev : super::super::Foundation:: HANDLE, lpcc : *const COMMCONFIG, dwsize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetCommConfig(hcommdev : super::super::Foundation:: HANDLE, lpcc : *const COMMCONFIG, dwsize : u32) -> windows_core::BOOL); unsafe { SetCommConfig(hcommdev, lpcc, dwsize).ok() } } #[inline] pub unsafe fn SetCommMask(hfile: super::super::Foundation::HANDLE, dwevtmask: COMM_EVENT_MASK) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetCommMask(hfile : super::super::Foundation:: HANDLE, dwevtmask : COMM_EVENT_MASK) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetCommMask(hfile : super::super::Foundation:: HANDLE, dwevtmask : COMM_EVENT_MASK) -> windows_core::BOOL); unsafe { SetCommMask(hfile, dwevtmask).ok() } } #[inline] pub unsafe fn SetCommState(hfile: super::super::Foundation::HANDLE, lpdcb: *const DCB) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetCommState(hfile : super::super::Foundation:: HANDLE, lpdcb : *const DCB) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetCommState(hfile : super::super::Foundation:: HANDLE, lpdcb : *const DCB) -> windows_core::BOOL); unsafe { SetCommState(hfile, lpdcb).ok() } } #[inline] pub unsafe fn SetCommTimeouts(hfile: super::super::Foundation::HANDLE, lpcommtimeouts: *const COMMTIMEOUTS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetCommTimeouts(hfile : super::super::Foundation:: HANDLE, lpcommtimeouts : *const COMMTIMEOUTS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetCommTimeouts(hfile : super::super::Foundation:: HANDLE, lpcommtimeouts : *const COMMTIMEOUTS) -> windows_core::BOOL); unsafe { SetCommTimeouts(hfile, lpcommtimeouts).ok() } } #[inline] @@ -152,7 +152,7 @@ pub unsafe fn SetDefaultCommConfigA(lpszname: P0, lpcc: *const COMMCONFIG, d where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetDefaultCommConfigA(lpszname : windows_core::PCSTR, lpcc : *const COMMCONFIG, dwsize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetDefaultCommConfigA(lpszname : windows_core::PCSTR, lpcc : *const COMMCONFIG, dwsize : u32) -> windows_core::BOOL); unsafe { SetDefaultCommConfigA(lpszname.param().abi(), lpcc, dwsize).ok() } } #[inline] @@ -160,23 +160,23 @@ pub unsafe fn SetDefaultCommConfigW(lpszname: P0, lpcc: *const COMMCONFIG, d where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetDefaultCommConfigW(lpszname : windows_core::PCWSTR, lpcc : *const COMMCONFIG, dwsize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetDefaultCommConfigW(lpszname : windows_core::PCWSTR, lpcc : *const COMMCONFIG, dwsize : u32) -> windows_core::BOOL); unsafe { SetDefaultCommConfigW(lpszname.param().abi(), lpcc, dwsize).ok() } } #[inline] pub unsafe fn SetupComm(hfile: super::super::Foundation::HANDLE, dwinqueue: u32, dwoutqueue: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetupComm(hfile : super::super::Foundation:: HANDLE, dwinqueue : u32, dwoutqueue : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetupComm(hfile : super::super::Foundation:: HANDLE, dwinqueue : u32, dwoutqueue : u32) -> windows_core::BOOL); unsafe { SetupComm(hfile, dwinqueue, dwoutqueue).ok() } } #[inline] pub unsafe fn TransmitCommChar(hfile: super::super::Foundation::HANDLE, cchar: i8) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn TransmitCommChar(hfile : super::super::Foundation:: HANDLE, cchar : i8) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn TransmitCommChar(hfile : super::super::Foundation:: HANDLE, cchar : i8) -> windows_core::BOOL); unsafe { TransmitCommChar(hfile, cchar).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WaitCommEvent(hfile: super::super::Foundation::HANDLE, lpevtmask: *mut COMM_EVENT_MASK, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn WaitCommEvent(hfile : super::super::Foundation:: HANDLE, lpevtmask : *mut COMM_EVENT_MASK, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WaitCommEvent(hfile : super::super::Foundation:: HANDLE, lpevtmask : *mut COMM_EVENT_MASK, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { WaitCommEvent(hfile, lpevtmask as _, lpoverlapped.unwrap_or(core::mem::zeroed()) as _).ok() } } pub const CE_BREAK: CLEAR_COMM_ERROR_FLAGS = CLEAR_COMM_ERROR_FLAGS(16u32); diff --git a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs index b82de7e84f..e305b34fce 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAndDriverInstallation/mod.rs @@ -173,13 +173,13 @@ pub unsafe fn CM_Delete_Range(ullstartvalue: u64, ullendvalue: u64, rlh: usize, unsafe { CM_Delete_Range(ullstartvalue, ullendvalue, rlh, ulflags) } } #[inline] -pub unsafe fn CM_Detect_Resource_Conflict(dndevinst: u32, resourceid: u32, resourcedata: *const core::ffi::c_void, resourcelen: u32, pbconflictdetected: *mut super::super::Foundation::BOOL, ulflags: u32) -> CONFIGRET { - windows_targets::link!("cfgmgr32.dll" "system" fn CM_Detect_Resource_Conflict(dndevinst : u32, resourceid : u32, resourcedata : *const core::ffi::c_void, resourcelen : u32, pbconflictdetected : *mut super::super::Foundation:: BOOL, ulflags : u32) -> CONFIGRET); +pub unsafe fn CM_Detect_Resource_Conflict(dndevinst: u32, resourceid: u32, resourcedata: *const core::ffi::c_void, resourcelen: u32, pbconflictdetected: *mut windows_core::BOOL, ulflags: u32) -> CONFIGRET { + windows_targets::link!("cfgmgr32.dll" "system" fn CM_Detect_Resource_Conflict(dndevinst : u32, resourceid : u32, resourcedata : *const core::ffi::c_void, resourcelen : u32, pbconflictdetected : *mut windows_core::BOOL, ulflags : u32) -> CONFIGRET); unsafe { CM_Detect_Resource_Conflict(dndevinst, resourceid, resourcedata, resourcelen, pbconflictdetected as _, ulflags) } } #[inline] -pub unsafe fn CM_Detect_Resource_Conflict_Ex(dndevinst: u32, resourceid: u32, resourcedata: *const core::ffi::c_void, resourcelen: u32, pbconflictdetected: *mut super::super::Foundation::BOOL, ulflags: u32, hmachine: Option) -> CONFIGRET { - windows_targets::link!("cfgmgr32.dll" "system" fn CM_Detect_Resource_Conflict_Ex(dndevinst : u32, resourceid : u32, resourcedata : *const core::ffi::c_void, resourcelen : u32, pbconflictdetected : *mut super::super::Foundation:: BOOL, ulflags : u32, hmachine : isize) -> CONFIGRET); +pub unsafe fn CM_Detect_Resource_Conflict_Ex(dndevinst: u32, resourceid: u32, resourcedata: *const core::ffi::c_void, resourcelen: u32, pbconflictdetected: *mut windows_core::BOOL, ulflags: u32, hmachine: Option) -> CONFIGRET { + windows_targets::link!("cfgmgr32.dll" "system" fn CM_Detect_Resource_Conflict_Ex(dndevinst : u32, resourceid : u32, resourcedata : *const core::ffi::c_void, resourcelen : u32, pbconflictdetected : *mut windows_core::BOOL, ulflags : u32, hmachine : isize) -> CONFIGRET); unsafe { CM_Detect_Resource_Conflict_Ex(dndevinst, resourceid, resourcedata, resourcelen, pbconflictdetected as _, ulflags, hmachine.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -870,23 +870,23 @@ pub unsafe fn CM_Invert_Range_List(rlhold: usize, rlhnew: usize, ullmaxvalue: u6 unsafe { CM_Invert_Range_List(rlhold, rlhnew, ullmaxvalue, ulflags) } } #[inline] -pub unsafe fn CM_Is_Dock_Station_Present(pbpresent: *mut super::super::Foundation::BOOL) -> CONFIGRET { - windows_targets::link!("cfgmgr32.dll" "system" fn CM_Is_Dock_Station_Present(pbpresent : *mut super::super::Foundation:: BOOL) -> CONFIGRET); +pub unsafe fn CM_Is_Dock_Station_Present(pbpresent: *mut windows_core::BOOL) -> CONFIGRET { + windows_targets::link!("cfgmgr32.dll" "system" fn CM_Is_Dock_Station_Present(pbpresent : *mut windows_core::BOOL) -> CONFIGRET); unsafe { CM_Is_Dock_Station_Present(pbpresent as _) } } #[inline] -pub unsafe fn CM_Is_Dock_Station_Present_Ex(pbpresent: *mut super::super::Foundation::BOOL, hmachine: Option) -> CONFIGRET { - windows_targets::link!("cfgmgr32.dll" "system" fn CM_Is_Dock_Station_Present_Ex(pbpresent : *mut super::super::Foundation:: BOOL, hmachine : isize) -> CONFIGRET); +pub unsafe fn CM_Is_Dock_Station_Present_Ex(pbpresent: *mut windows_core::BOOL, hmachine: Option) -> CONFIGRET { + windows_targets::link!("cfgmgr32.dll" "system" fn CM_Is_Dock_Station_Present_Ex(pbpresent : *mut windows_core::BOOL, hmachine : isize) -> CONFIGRET); unsafe { CM_Is_Dock_Station_Present_Ex(pbpresent as _, hmachine.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn CM_Is_Version_Available(wversion: u16) -> super::super::Foundation::BOOL { - windows_targets::link!("cfgmgr32.dll" "system" fn CM_Is_Version_Available(wversion : u16) -> super::super::Foundation:: BOOL); +pub unsafe fn CM_Is_Version_Available(wversion: u16) -> windows_core::BOOL { + windows_targets::link!("cfgmgr32.dll" "system" fn CM_Is_Version_Available(wversion : u16) -> windows_core::BOOL); unsafe { CM_Is_Version_Available(wversion) } } #[inline] -pub unsafe fn CM_Is_Version_Available_Ex(wversion: u16, hmachine: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("cfgmgr32.dll" "system" fn CM_Is_Version_Available_Ex(wversion : u16, hmachine : isize) -> super::super::Foundation:: BOOL); +pub unsafe fn CM_Is_Version_Available_Ex(wversion: u16, hmachine: Option) -> windows_core::BOOL { + windows_targets::link!("cfgmgr32.dll" "system" fn CM_Is_Version_Available_Ex(wversion : u16, hmachine : isize) -> windows_core::BOOL); unsafe { CM_Is_Version_Available_Ex(wversion, hmachine.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1389,63 +1389,63 @@ pub unsafe fn CM_Unregister_Notification(notifycontext: HCMNOTIFICATION) -> CONF unsafe { CM_Unregister_Notification(notifycontext) } } #[inline] -pub unsafe fn DiInstallDevice(hwndparent: Option, deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, driverinfodata: Option<*const SP_DRVINFO_DATA_V2_W>, flags: DIINSTALLDEVICE_FLAGS, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { - windows_targets::link!("newdev.dll" "system" fn DiInstallDevice(hwndparent : super::super::Foundation:: HWND, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_W, flags : DIINSTALLDEVICE_FLAGS, needreboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn DiInstallDevice(hwndparent: Option, deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, driverinfodata: Option<*const SP_DRVINFO_DATA_V2_W>, flags: DIINSTALLDEVICE_FLAGS, needreboot: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { + windows_targets::link!("newdev.dll" "system" fn DiInstallDevice(hwndparent : super::super::Foundation:: HWND, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_W, flags : DIINSTALLDEVICE_FLAGS, needreboot : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { DiInstallDevice(hwndparent.unwrap_or(core::mem::zeroed()) as _, deviceinfoset, deviceinfodata, driverinfodata.unwrap_or(core::mem::zeroed()) as _, flags, needreboot.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn DiInstallDriverA(hwndparent: Option, infpath: P1, flags: DIINSTALLDRIVER_FLAGS, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> +pub unsafe fn DiInstallDriverA(hwndparent: Option, infpath: P1, flags: DIINSTALLDRIVER_FLAGS, needreboot: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> where P1: windows_core::Param, { - windows_targets::link!("newdev.dll" "system" fn DiInstallDriverA(hwndparent : super::super::Foundation:: HWND, infpath : windows_core::PCSTR, flags : DIINSTALLDRIVER_FLAGS, needreboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("newdev.dll" "system" fn DiInstallDriverA(hwndparent : super::super::Foundation:: HWND, infpath : windows_core::PCSTR, flags : DIINSTALLDRIVER_FLAGS, needreboot : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { DiInstallDriverA(hwndparent.unwrap_or(core::mem::zeroed()) as _, infpath.param().abi(), flags, needreboot.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn DiInstallDriverW(hwndparent: Option, infpath: P1, flags: DIINSTALLDRIVER_FLAGS, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> +pub unsafe fn DiInstallDriverW(hwndparent: Option, infpath: P1, flags: DIINSTALLDRIVER_FLAGS, needreboot: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> where P1: windows_core::Param, { - windows_targets::link!("newdev.dll" "system" fn DiInstallDriverW(hwndparent : super::super::Foundation:: HWND, infpath : windows_core::PCWSTR, flags : DIINSTALLDRIVER_FLAGS, needreboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("newdev.dll" "system" fn DiInstallDriverW(hwndparent : super::super::Foundation:: HWND, infpath : windows_core::PCWSTR, flags : DIINSTALLDRIVER_FLAGS, needreboot : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { DiInstallDriverW(hwndparent.unwrap_or(core::mem::zeroed()) as _, infpath.param().abi(), flags, needreboot.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn DiRollbackDriver(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, hwndparent: Option, flags: DIROLLBACKDRIVER_FLAGS, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { - windows_targets::link!("newdev.dll" "system" fn DiRollbackDriver(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, hwndparent : super::super::Foundation:: HWND, flags : DIROLLBACKDRIVER_FLAGS, needreboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn DiRollbackDriver(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, hwndparent: Option, flags: DIROLLBACKDRIVER_FLAGS, needreboot: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { + windows_targets::link!("newdev.dll" "system" fn DiRollbackDriver(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, hwndparent : super::super::Foundation:: HWND, flags : DIROLLBACKDRIVER_FLAGS, needreboot : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { DiRollbackDriver(deviceinfoset, deviceinfodata, hwndparent.unwrap_or(core::mem::zeroed()) as _, flags, needreboot.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn DiShowUpdateDevice(hwndparent: Option, deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, flags: u32, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { - windows_targets::link!("newdev.dll" "system" fn DiShowUpdateDevice(hwndparent : super::super::Foundation:: HWND, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, flags : u32, needreboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn DiShowUpdateDevice(hwndparent: Option, deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, flags: u32, needreboot: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { + windows_targets::link!("newdev.dll" "system" fn DiShowUpdateDevice(hwndparent : super::super::Foundation:: HWND, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, flags : u32, needreboot : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { DiShowUpdateDevice(hwndparent.unwrap_or(core::mem::zeroed()) as _, deviceinfoset, deviceinfodata, flags, needreboot.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn DiShowUpdateDriver(hwndparent: Option, filepath: P1, flags: u32, needreboot: Option<*mut super::super::Foundation::BOOL>) -> super::super::Foundation::BOOL +pub unsafe fn DiShowUpdateDriver(hwndparent: Option, filepath: P1, flags: u32, needreboot: Option<*mut windows_core::BOOL>) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("newdev.dll" "system" fn DiShowUpdateDriver(hwndparent : super::super::Foundation:: HWND, filepath : windows_core::PCWSTR, flags : u32, needreboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("newdev.dll" "system" fn DiShowUpdateDriver(hwndparent : super::super::Foundation:: HWND, filepath : windows_core::PCWSTR, flags : u32, needreboot : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { DiShowUpdateDriver(hwndparent.unwrap_or(core::mem::zeroed()) as _, filepath.param().abi(), flags, needreboot.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn DiUninstallDevice(hwndparent: super::super::Foundation::HWND, deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, flags: u32, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { - windows_targets::link!("newdev.dll" "system" fn DiUninstallDevice(hwndparent : super::super::Foundation:: HWND, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, flags : u32, needreboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn DiUninstallDevice(hwndparent: super::super::Foundation::HWND, deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, flags: u32, needreboot: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { + windows_targets::link!("newdev.dll" "system" fn DiUninstallDevice(hwndparent : super::super::Foundation:: HWND, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, flags : u32, needreboot : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { DiUninstallDevice(hwndparent, deviceinfoset, deviceinfodata, flags, needreboot.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn DiUninstallDriverA(hwndparent: Option, infpath: P1, flags: DIUNINSTALLDRIVER_FLAGS, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> +pub unsafe fn DiUninstallDriverA(hwndparent: Option, infpath: P1, flags: DIUNINSTALLDRIVER_FLAGS, needreboot: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> where P1: windows_core::Param, { - windows_targets::link!("newdev.dll" "system" fn DiUninstallDriverA(hwndparent : super::super::Foundation:: HWND, infpath : windows_core::PCSTR, flags : DIUNINSTALLDRIVER_FLAGS, needreboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("newdev.dll" "system" fn DiUninstallDriverA(hwndparent : super::super::Foundation:: HWND, infpath : windows_core::PCSTR, flags : DIUNINSTALLDRIVER_FLAGS, needreboot : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { DiUninstallDriverA(hwndparent.unwrap_or(core::mem::zeroed()) as _, infpath.param().abi(), flags, needreboot.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn DiUninstallDriverW(hwndparent: Option, infpath: P1, flags: DIUNINSTALLDRIVER_FLAGS, needreboot: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> +pub unsafe fn DiUninstallDriverW(hwndparent: Option, infpath: P1, flags: DIUNINSTALLDRIVER_FLAGS, needreboot: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> where P1: windows_core::Param, { - windows_targets::link!("newdev.dll" "system" fn DiUninstallDriverW(hwndparent : super::super::Foundation:: HWND, infpath : windows_core::PCWSTR, flags : DIUNINSTALLDRIVER_FLAGS, needreboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("newdev.dll" "system" fn DiUninstallDriverW(hwndparent : super::super::Foundation:: HWND, infpath : windows_core::PCWSTR, flags : DIUNINSTALLDRIVER_FLAGS, needreboot : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { DiUninstallDriverW(hwndparent.unwrap_or(core::mem::zeroed()) as _, infpath.param().abi(), flags, needreboot.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1469,7 +1469,7 @@ pub unsafe fn SetupAddInstallSectionToDiskSpaceListA(diskspace: *const core: where P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupAddInstallSectionToDiskSpaceListA(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, layoutinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupAddInstallSectionToDiskSpaceListA(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, layoutinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> windows_core::BOOL); unsafe { SetupAddInstallSectionToDiskSpaceListA(diskspace, infhandle, layoutinfhandle.unwrap_or(core::mem::zeroed()) as _, sectionname.param().abi(), reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1477,7 +1477,7 @@ pub unsafe fn SetupAddInstallSectionToDiskSpaceListW(diskspace: *const core: where P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupAddInstallSectionToDiskSpaceListW(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, layoutinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupAddInstallSectionToDiskSpaceListW(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, layoutinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> windows_core::BOOL); unsafe { SetupAddInstallSectionToDiskSpaceListW(diskspace, infhandle, layoutinfhandle.unwrap_or(core::mem::zeroed()) as _, sectionname.param().abi(), reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1485,7 +1485,7 @@ pub unsafe fn SetupAddSectionToDiskSpaceListA(diskspace: *const core::ffi::c where P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupAddSectionToDiskSpaceListA(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupAddSectionToDiskSpaceListA(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> windows_core::BOOL); unsafe { SetupAddSectionToDiskSpaceListA(diskspace, infhandle, listinfhandle.unwrap_or(core::mem::zeroed()) as _, sectionname.param().abi(), operation, reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1493,7 +1493,7 @@ pub unsafe fn SetupAddSectionToDiskSpaceListW(diskspace: *const core::ffi::c where P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupAddSectionToDiskSpaceListW(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupAddSectionToDiskSpaceListW(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> windows_core::BOOL); unsafe { SetupAddSectionToDiskSpaceListW(diskspace, infhandle, listinfhandle.unwrap_or(core::mem::zeroed()) as _, sectionname.param().abi(), operation, reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1501,7 +1501,7 @@ pub unsafe fn SetupAddToDiskSpaceListA(diskspace: *const core::ffi::c_void, where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupAddToDiskSpaceListA(diskspace : *const core::ffi::c_void, targetfilespec : windows_core::PCSTR, filesize : i64, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupAddToDiskSpaceListA(diskspace : *const core::ffi::c_void, targetfilespec : windows_core::PCSTR, filesize : i64, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> windows_core::BOOL); unsafe { SetupAddToDiskSpaceListA(diskspace, targetfilespec.param().abi(), filesize, operation, reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1509,7 +1509,7 @@ pub unsafe fn SetupAddToDiskSpaceListW(diskspace: *const core::ffi::c_void, where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupAddToDiskSpaceListW(diskspace : *const core::ffi::c_void, targetfilespec : windows_core::PCWSTR, filesize : i64, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupAddToDiskSpaceListW(diskspace : *const core::ffi::c_void, targetfilespec : windows_core::PCWSTR, filesize : i64, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> windows_core::BOOL); unsafe { SetupAddToDiskSpaceListW(diskspace, targetfilespec.param().abi(), filesize, operation, reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1517,7 +1517,7 @@ pub unsafe fn SetupAddToSourceListA(flags: u32, source: P1) -> windows_core: where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupAddToSourceListA(flags : u32, source : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupAddToSourceListA(flags : u32, source : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetupAddToSourceListA(flags, source.param().abi()).ok() } } #[inline] @@ -1525,7 +1525,7 @@ pub unsafe fn SetupAddToSourceListW(flags: u32, source: P1) -> windows_core: where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupAddToSourceListW(flags : u32, source : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupAddToSourceListW(flags : u32, source : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetupAddToSourceListW(flags, source.param().abi()).ok() } } #[inline] @@ -1533,7 +1533,7 @@ pub unsafe fn SetupAdjustDiskSpaceListA(diskspace: *const core::ffi::c_void, where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupAdjustDiskSpaceListA(diskspace : *const core::ffi::c_void, driveroot : windows_core::PCSTR, amount : i64, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupAdjustDiskSpaceListA(diskspace : *const core::ffi::c_void, driveroot : windows_core::PCSTR, amount : i64, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> windows_core::BOOL); unsafe { SetupAdjustDiskSpaceListA(diskspace, driveroot.param().abi(), amount, reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1541,7 +1541,7 @@ pub unsafe fn SetupAdjustDiskSpaceListW(diskspace: *const core::ffi::c_void, where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupAdjustDiskSpaceListW(diskspace : *const core::ffi::c_void, driveroot : windows_core::PCWSTR, amount : i64, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupAdjustDiskSpaceListW(diskspace : *const core::ffi::c_void, driveroot : windows_core::PCWSTR, amount : i64, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> windows_core::BOOL); unsafe { SetupAdjustDiskSpaceListW(diskspace, driveroot.param().abi(), amount, reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1566,12 +1566,12 @@ where } #[inline] pub unsafe fn SetupCancelTemporarySourceList() -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupCancelTemporarySourceList() -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupCancelTemporarySourceList() -> windows_core::BOOL); unsafe { SetupCancelTemporarySourceList().ok() } } #[inline] -pub unsafe fn SetupCloseFileQueue(queuehandle: *const core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("setupapi.dll" "system" fn SetupCloseFileQueue(queuehandle : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn SetupCloseFileQueue(queuehandle: *const core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("setupapi.dll" "system" fn SetupCloseFileQueue(queuehandle : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupCloseFileQueue(queuehandle) } } #[inline] @@ -1586,28 +1586,28 @@ pub unsafe fn SetupCloseLog() { } #[inline] pub unsafe fn SetupCommitFileQueueA(owner: Option, queuehandle: *const core::ffi::c_void, msghandler: PSP_FILE_CALLBACK_A, context: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupCommitFileQueueA(owner : super::super::Foundation:: HWND, queuehandle : *const core::ffi::c_void, msghandler : PSP_FILE_CALLBACK_A, context : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupCommitFileQueueA(owner : super::super::Foundation:: HWND, queuehandle : *const core::ffi::c_void, msghandler : PSP_FILE_CALLBACK_A, context : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupCommitFileQueueA(owner.unwrap_or(core::mem::zeroed()) as _, queuehandle, msghandler, context).ok() } } #[inline] pub unsafe fn SetupCommitFileQueueW(owner: Option, queuehandle: *const core::ffi::c_void, msghandler: PSP_FILE_CALLBACK_W, context: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupCommitFileQueueW(owner : super::super::Foundation:: HWND, queuehandle : *const core::ffi::c_void, msghandler : PSP_FILE_CALLBACK_W, context : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupCommitFileQueueW(owner : super::super::Foundation:: HWND, queuehandle : *const core::ffi::c_void, msghandler : PSP_FILE_CALLBACK_W, context : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupCommitFileQueueW(owner.unwrap_or(core::mem::zeroed()) as _, queuehandle, msghandler, context).ok() } } #[inline] -pub unsafe fn SetupConfigureWmiFromInfSectionA(infhandle: *const core::ffi::c_void, sectionname: P1, flags: u32) -> super::super::Foundation::BOOL +pub unsafe fn SetupConfigureWmiFromInfSectionA(infhandle: *const core::ffi::c_void, sectionname: P1, flags: u32) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupConfigureWmiFromInfSectionA(infhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupConfigureWmiFromInfSectionA(infhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, flags : u32) -> windows_core::BOOL); unsafe { SetupConfigureWmiFromInfSectionA(infhandle, sectionname.param().abi(), flags) } } #[inline] -pub unsafe fn SetupConfigureWmiFromInfSectionW(infhandle: *const core::ffi::c_void, sectionname: P1, flags: u32) -> super::super::Foundation::BOOL +pub unsafe fn SetupConfigureWmiFromInfSectionW(infhandle: *const core::ffi::c_void, sectionname: P1, flags: u32) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupConfigureWmiFromInfSectionW(infhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupConfigureWmiFromInfSectionW(infhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, flags : u32) -> windows_core::BOOL); unsafe { SetupConfigureWmiFromInfSectionW(infhandle, sectionname.param().abi(), flags) } } #[inline] @@ -1640,7 +1640,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupCopyOEMInfA(sourceinffilename : windows_core::PCSTR, oemsourcemedialocation : windows_core::PCSTR, oemsourcemediatype : OEM_SOURCE_MEDIA_TYPE, copystyle : SP_COPY_STYLE, destinationinffilename : windows_core::PSTR, destinationinffilenamesize : u32, requiredsize : *mut u32, destinationinffilenamecomponent : *mut windows_core::PSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupCopyOEMInfA(sourceinffilename : windows_core::PCSTR, oemsourcemedialocation : windows_core::PCSTR, oemsourcemediatype : OEM_SOURCE_MEDIA_TYPE, copystyle : SP_COPY_STYLE, destinationinffilename : windows_core::PSTR, destinationinffilenamesize : u32, requiredsize : *mut u32, destinationinffilenamecomponent : *mut windows_core::PSTR) -> windows_core::BOOL); unsafe { SetupCopyOEMInfA(sourceinffilename.param().abi(), oemsourcemedialocation.param().abi(), oemsourcemediatype, copystyle, core::mem::transmute(destinationinffilename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), destinationinffilename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _, destinationinffilenamecomponent.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1649,7 +1649,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupCopyOEMInfW(sourceinffilename : windows_core::PCWSTR, oemsourcemedialocation : windows_core::PCWSTR, oemsourcemediatype : OEM_SOURCE_MEDIA_TYPE, copystyle : SP_COPY_STYLE, destinationinffilename : windows_core::PWSTR, destinationinffilenamesize : u32, requiredsize : *mut u32, destinationinffilenamecomponent : *mut windows_core::PWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupCopyOEMInfW(sourceinffilename : windows_core::PCWSTR, oemsourcemedialocation : windows_core::PCWSTR, oemsourcemediatype : OEM_SOURCE_MEDIA_TYPE, copystyle : SP_COPY_STYLE, destinationinffilename : windows_core::PWSTR, destinationinffilenamesize : u32, requiredsize : *mut u32, destinationinffilenamecomponent : *mut windows_core::PWSTR) -> windows_core::BOOL); unsafe { SetupCopyOEMInfW(sourceinffilename.param().abi(), oemsourcemedialocation.param().abi(), oemsourcemediatype, copystyle, core::mem::transmute(destinationinffilename.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), destinationinffilename.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _, destinationinffilenamecomponent.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1710,17 +1710,17 @@ where } #[inline] pub unsafe fn SetupDestroyDiskSpaceList(diskspace: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDestroyDiskSpaceList(diskspace : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDestroyDiskSpaceList(diskspace : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDestroyDiskSpaceList(diskspace as _).ok() } } #[inline] pub unsafe fn SetupDiAskForOEMDisk(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiAskForOEMDisk(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiAskForOEMDisk(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiAskForOEMDisk(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiBuildClassInfoList(flags: u32, classguidlist: Option<&mut [windows_core::GUID]>, requiredsize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiBuildClassInfoList(flags : u32, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiBuildClassInfoList(flags : u32, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiBuildClassInfoList(flags, core::mem::transmute(classguidlist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), classguidlist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize as _).ok() } } #[inline] @@ -1728,7 +1728,7 @@ pub unsafe fn SetupDiBuildClassInfoListExA(flags: u32, classguidlist: Option where P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiBuildClassInfoListExA(flags : u32, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiBuildClassInfoListExA(flags : u32, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiBuildClassInfoListExA(flags, core::mem::transmute(classguidlist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), classguidlist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize as _, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1736,27 +1736,27 @@ pub unsafe fn SetupDiBuildClassInfoListExW(flags: u32, classguidlist: Option where P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiBuildClassInfoListExW(flags : u32, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiBuildClassInfoListExW(flags : u32, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiBuildClassInfoListExW(flags, core::mem::transmute(classguidlist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), classguidlist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize as _, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiBuildDriverInfoList(deviceinfoset: HDEVINFO, deviceinfodata: Option<*mut SP_DEVINFO_DATA>, drivertype: SETUP_DI_DRIVER_TYPE) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiBuildDriverInfoList(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA, drivertype : SETUP_DI_DRIVER_TYPE) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiBuildDriverInfoList(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA, drivertype : SETUP_DI_DRIVER_TYPE) -> windows_core::BOOL); unsafe { SetupDiBuildDriverInfoList(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, drivertype).ok() } } #[inline] pub unsafe fn SetupDiCallClassInstaller(installfunction: DI_FUNCTION, deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiCallClassInstaller(installfunction : DI_FUNCTION, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiCallClassInstaller(installfunction : DI_FUNCTION, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiCallClassInstaller(installfunction, deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiCancelDriverInfoSearch(deviceinfoset: HDEVINFO) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiCancelDriverInfoSearch(deviceinfoset : HDEVINFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiCancelDriverInfoSearch(deviceinfoset : HDEVINFO) -> windows_core::BOOL); unsafe { SetupDiCancelDriverInfoSearch(deviceinfoset).ok() } } #[inline] pub unsafe fn SetupDiChangeState(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiChangeState(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiChangeState(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiChangeState(deviceinfoset, deviceinfodata as _).ok() } } #[inline] @@ -1764,7 +1764,7 @@ pub unsafe fn SetupDiClassGuidsFromNameA(classname: P0, classguidlist: &mut where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiClassGuidsFromNameA(classname : windows_core::PCSTR, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiClassGuidsFromNameA(classname : windows_core::PCSTR, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiClassGuidsFromNameA(classname.param().abi(), core::mem::transmute(classguidlist.as_ptr()), classguidlist.len().try_into().unwrap(), requiredsize as _).ok() } } #[inline] @@ -1773,7 +1773,7 @@ where P0: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiClassGuidsFromNameExA(classname : windows_core::PCSTR, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiClassGuidsFromNameExA(classname : windows_core::PCSTR, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiClassGuidsFromNameExA(classname.param().abi(), core::mem::transmute(classguidlist.as_ptr()), classguidlist.len().try_into().unwrap(), requiredsize as _, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1782,7 +1782,7 @@ where P0: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiClassGuidsFromNameExW(classname : windows_core::PCWSTR, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiClassGuidsFromNameExW(classname : windows_core::PCWSTR, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiClassGuidsFromNameExW(classname.param().abi(), core::mem::transmute(classguidlist.as_ptr()), classguidlist.len().try_into().unwrap(), requiredsize as _, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1790,12 +1790,12 @@ pub unsafe fn SetupDiClassGuidsFromNameW(classname: P0, classguidlist: &mut where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiClassGuidsFromNameW(classname : windows_core::PCWSTR, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiClassGuidsFromNameW(classname : windows_core::PCWSTR, classguidlist : *mut windows_core::GUID, classguidlistsize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiClassGuidsFromNameW(classname.param().abi(), core::mem::transmute(classguidlist.as_ptr()), classguidlist.len().try_into().unwrap(), requiredsize as _).ok() } } #[inline] pub unsafe fn SetupDiClassNameFromGuidA(classguid: *const windows_core::GUID, classname: &mut [u8], requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiClassNameFromGuidA(classguid : *const windows_core::GUID, classname : windows_core::PSTR, classnamesize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiClassNameFromGuidA(classguid : *const windows_core::GUID, classname : windows_core::PSTR, classnamesize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiClassNameFromGuidA(classguid, core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1803,7 +1803,7 @@ pub unsafe fn SetupDiClassNameFromGuidExA(classguid: *const windows_core::GU where P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiClassNameFromGuidExA(classguid : *const windows_core::GUID, classname : windows_core::PSTR, classnamesize : u32, requiredsize : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiClassNameFromGuidExA(classguid : *const windows_core::GUID, classname : windows_core::PSTR, classnamesize : u32, requiredsize : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiClassNameFromGuidExA(classguid, core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1811,12 +1811,12 @@ pub unsafe fn SetupDiClassNameFromGuidExW(classguid: *const windows_core::GU where P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiClassNameFromGuidExW(classguid : *const windows_core::GUID, classname : windows_core::PWSTR, classnamesize : u32, requiredsize : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiClassNameFromGuidExW(classguid : *const windows_core::GUID, classname : windows_core::PWSTR, classnamesize : u32, requiredsize : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiClassNameFromGuidExW(classguid, core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiClassNameFromGuidW(classguid: *const windows_core::GUID, classname: &mut [u16], requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiClassNameFromGuidW(classguid : *const windows_core::GUID, classname : windows_core::PWSTR, classnamesize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiClassNameFromGuidW(classguid : *const windows_core::GUID, classname : windows_core::PWSTR, classnamesize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiClassNameFromGuidW(classguid, core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_System_Registry")] @@ -1845,7 +1845,7 @@ where P1: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDeviceInfoA(deviceinfoset : HDEVINFO, devicename : windows_core::PCSTR, classguid : *const windows_core::GUID, devicedescription : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND, creationflags : SETUP_DI_DEVICE_CREATION_FLAGS, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDeviceInfoA(deviceinfoset : HDEVINFO, devicename : windows_core::PCSTR, classguid : *const windows_core::GUID, devicedescription : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND, creationflags : SETUP_DI_DEVICE_CREATION_FLAGS, deviceinfodata : *mut SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiCreateDeviceInfoA(deviceinfoset, devicename.param().abi(), classguid, devicedescription.param().abi(), hwndparent.unwrap_or(core::mem::zeroed()) as _, creationflags, deviceinfodata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1878,7 +1878,7 @@ where P1: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDeviceInfoW(deviceinfoset : HDEVINFO, devicename : windows_core::PCWSTR, classguid : *const windows_core::GUID, devicedescription : windows_core::PCWSTR, hwndparent : super::super::Foundation:: HWND, creationflags : SETUP_DI_DEVICE_CREATION_FLAGS, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDeviceInfoW(deviceinfoset : HDEVINFO, devicename : windows_core::PCWSTR, classguid : *const windows_core::GUID, devicedescription : windows_core::PCWSTR, hwndparent : super::super::Foundation:: HWND, creationflags : SETUP_DI_DEVICE_CREATION_FLAGS, deviceinfodata : *mut SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiCreateDeviceInfoW(deviceinfoset, devicename.param().abi(), classguid, devicedescription.param().abi(), hwndparent.unwrap_or(core::mem::zeroed()) as _, creationflags, deviceinfodata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1886,7 +1886,7 @@ pub unsafe fn SetupDiCreateDeviceInterfaceA(deviceinfoset: HDEVINFO, devicei where P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDeviceInterfaceA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, interfaceclassguid : *const windows_core::GUID, referencestring : windows_core::PCSTR, creationflags : u32, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDeviceInterfaceA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, interfaceclassguid : *const windows_core::GUID, referencestring : windows_core::PCSTR, creationflags : u32, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> windows_core::BOOL); unsafe { SetupDiCreateDeviceInterfaceA(deviceinfoset, deviceinfodata, interfaceclassguid, referencestring.param().abi(), creationflags, deviceinterfacedata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_System_Registry")] @@ -1914,43 +1914,43 @@ pub unsafe fn SetupDiCreateDeviceInterfaceW(deviceinfoset: HDEVINFO, devicei where P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDeviceInterfaceW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, interfaceclassguid : *const windows_core::GUID, referencestring : windows_core::PCWSTR, creationflags : u32, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiCreateDeviceInterfaceW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, interfaceclassguid : *const windows_core::GUID, referencestring : windows_core::PCWSTR, creationflags : u32, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> windows_core::BOOL); unsafe { SetupDiCreateDeviceInterfaceW(deviceinfoset, deviceinfodata, interfaceclassguid, referencestring.param().abi(), creationflags, deviceinterfacedata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiDeleteDevRegKey(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, scope: u32, hwprofile: u32, keytype: u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiDeleteDevRegKey(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, scope : u32, hwprofile : u32, keytype : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiDeleteDevRegKey(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, scope : u32, hwprofile : u32, keytype : u32) -> windows_core::BOOL); unsafe { SetupDiDeleteDevRegKey(deviceinfoset, deviceinfodata, scope, hwprofile, keytype).ok() } } #[inline] pub unsafe fn SetupDiDeleteDeviceInfo(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiDeleteDeviceInfo(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiDeleteDeviceInfo(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiDeleteDeviceInfo(deviceinfoset, deviceinfodata).ok() } } #[inline] pub unsafe fn SetupDiDeleteDeviceInterfaceData(deviceinfoset: HDEVINFO, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiDeleteDeviceInterfaceData(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiDeleteDeviceInterfaceData(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA) -> windows_core::BOOL); unsafe { SetupDiDeleteDeviceInterfaceData(deviceinfoset, deviceinterfacedata).ok() } } #[inline] pub unsafe fn SetupDiDeleteDeviceInterfaceRegKey(deviceinfoset: HDEVINFO, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, reserved: Option) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiDeleteDeviceInterfaceRegKey(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, reserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiDeleteDeviceInterfaceRegKey(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, reserved : u32) -> windows_core::BOOL); unsafe { SetupDiDeleteDeviceInterfaceRegKey(deviceinfoset, deviceinterfacedata, reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn SetupDiDestroyClassImageList(classimagelistdata: *const SP_CLASSIMAGELIST_DATA) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiDestroyClassImageList(classimagelistdata : *const SP_CLASSIMAGELIST_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiDestroyClassImageList(classimagelistdata : *const SP_CLASSIMAGELIST_DATA) -> windows_core::BOOL); unsafe { SetupDiDestroyClassImageList(classimagelistdata).ok() } } #[inline] pub unsafe fn SetupDiDestroyDeviceInfoList(deviceinfoset: HDEVINFO) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiDestroyDeviceInfoList(deviceinfoset : HDEVINFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiDestroyDeviceInfoList(deviceinfoset : HDEVINFO) -> windows_core::BOOL); unsafe { SetupDiDestroyDeviceInfoList(deviceinfoset).ok() } } #[inline] pub unsafe fn SetupDiDestroyDriverInfoList(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, drivertype: SETUP_DI_DRIVER_TYPE) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiDestroyDriverInfoList(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, drivertype : SETUP_DI_DRIVER_TYPE) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiDestroyDriverInfoList(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, drivertype : SETUP_DI_DRIVER_TYPE) -> windows_core::BOOL); unsafe { SetupDiDestroyDriverInfoList(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, drivertype).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -1961,34 +1961,34 @@ pub unsafe fn SetupDiDrawMiniIcon(hdc: super::super::Graphics::Gdi::HDC, rc: sup } #[inline] pub unsafe fn SetupDiEnumDeviceInfo(deviceinfoset: HDEVINFO, memberindex: u32, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiEnumDeviceInfo(deviceinfoset : HDEVINFO, memberindex : u32, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiEnumDeviceInfo(deviceinfoset : HDEVINFO, memberindex : u32, deviceinfodata : *mut SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiEnumDeviceInfo(deviceinfoset, memberindex, deviceinfodata as _).ok() } } #[inline] pub unsafe fn SetupDiEnumDeviceInterfaces(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, interfaceclassguid: *const windows_core::GUID, memberindex: u32, deviceinterfacedata: *mut SP_DEVICE_INTERFACE_DATA) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiEnumDeviceInterfaces(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, interfaceclassguid : *const windows_core::GUID, memberindex : u32, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiEnumDeviceInterfaces(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, interfaceclassguid : *const windows_core::GUID, memberindex : u32, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> windows_core::BOOL); unsafe { SetupDiEnumDeviceInterfaces(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, interfaceclassguid, memberindex, deviceinterfacedata as _).ok() } } #[inline] pub unsafe fn SetupDiEnumDriverInfoA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, drivertype: SETUP_DI_DRIVER_TYPE, memberindex: u32, driverinfodata: *mut SP_DRVINFO_DATA_V2_A) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiEnumDriverInfoA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, drivertype : SETUP_DI_DRIVER_TYPE, memberindex : u32, driverinfodata : *mut SP_DRVINFO_DATA_V2_A) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiEnumDriverInfoA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, drivertype : SETUP_DI_DRIVER_TYPE, memberindex : u32, driverinfodata : *mut SP_DRVINFO_DATA_V2_A) -> windows_core::BOOL); unsafe { SetupDiEnumDriverInfoA(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, drivertype, memberindex, driverinfodata as _).ok() } } #[inline] pub unsafe fn SetupDiEnumDriverInfoW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, drivertype: SETUP_DI_DRIVER_TYPE, memberindex: u32, driverinfodata: *mut SP_DRVINFO_DATA_V2_W) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiEnumDriverInfoW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, drivertype : SETUP_DI_DRIVER_TYPE, memberindex : u32, driverinfodata : *mut SP_DRVINFO_DATA_V2_W) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiEnumDriverInfoW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, drivertype : SETUP_DI_DRIVER_TYPE, memberindex : u32, driverinfodata : *mut SP_DRVINFO_DATA_V2_W) -> windows_core::BOOL); unsafe { SetupDiEnumDriverInfoW(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, drivertype, memberindex, driverinfodata as _).ok() } } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetupDiGetActualModelsSectionA(context: *const INFCONTEXT, alternateplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, infsectionwithext: Option<&mut [u8]>, requiredsize: Option<*mut u32>, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetActualModelsSectionA(context : *const INFCONTEXT, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, infsectionwithext : windows_core::PSTR, infsectionwithextsize : u32, requiredsize : *mut u32, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetActualModelsSectionA(context : *const INFCONTEXT, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, infsectionwithext : windows_core::PSTR, infsectionwithextsize : u32, requiredsize : *mut u32, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiGetActualModelsSectionA(context, alternateplatforminfo.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(infsectionwithext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), infsectionwithext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _, reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetupDiGetActualModelsSectionW(context: *const INFCONTEXT, alternateplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, infsectionwithext: Option<&mut [u16]>, requiredsize: Option<*mut u32>, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetActualModelsSectionW(context : *const INFCONTEXT, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, infsectionwithext : windows_core::PWSTR, infsectionwithextsize : u32, requiredsize : *mut u32, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetActualModelsSectionW(context : *const INFCONTEXT, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, infsectionwithext : windows_core::PWSTR, infsectionwithextsize : u32, requiredsize : *mut u32, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiGetActualModelsSectionW(context, alternateplatforminfo.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(infsectionwithext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), infsectionwithext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _, reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1996,7 +1996,7 @@ pub unsafe fn SetupDiGetActualSectionToInstallA(infhandle: *const core::ffi: where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetActualSectionToInstallA(infhandle : *const core::ffi::c_void, infsectionname : windows_core::PCSTR, infsectionwithext : windows_core::PSTR, infsectionwithextsize : u32, requiredsize : *mut u32, extension : *mut windows_core::PSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetActualSectionToInstallA(infhandle : *const core::ffi::c_void, infsectionname : windows_core::PCSTR, infsectionwithext : windows_core::PSTR, infsectionwithextsize : u32, requiredsize : *mut u32, extension : *mut windows_core::PSTR) -> windows_core::BOOL); unsafe { SetupDiGetActualSectionToInstallA(infhandle, infsectionname.param().abi(), core::mem::transmute(infsectionwithext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), infsectionwithext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _, extension.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] @@ -2005,7 +2005,7 @@ pub unsafe fn SetupDiGetActualSectionToInstallExA(infhandle: *const core::ff where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetActualSectionToInstallExA(infhandle : *const core::ffi::c_void, infsectionname : windows_core::PCSTR, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, infsectionwithext : windows_core::PSTR, infsectionwithextsize : u32, requiredsize : *mut u32, extension : *mut windows_core::PSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetActualSectionToInstallExA(infhandle : *const core::ffi::c_void, infsectionname : windows_core::PCSTR, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, infsectionwithext : windows_core::PSTR, infsectionwithextsize : u32, requiredsize : *mut u32, extension : *mut windows_core::PSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiGetActualSectionToInstallExA(infhandle, infsectionname.param().abi(), alternateplatforminfo.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(infsectionwithext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), infsectionwithext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _, extension.unwrap_or(core::mem::zeroed()) as _, reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] @@ -2014,7 +2014,7 @@ pub unsafe fn SetupDiGetActualSectionToInstallExW(infhandle: *const core::ff where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetActualSectionToInstallExW(infhandle : *const core::ffi::c_void, infsectionname : windows_core::PCWSTR, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, infsectionwithext : windows_core::PWSTR, infsectionwithextsize : u32, requiredsize : *mut u32, extension : *mut windows_core::PWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetActualSectionToInstallExW(infhandle : *const core::ffi::c_void, infsectionname : windows_core::PCWSTR, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, infsectionwithext : windows_core::PWSTR, infsectionwithextsize : u32, requiredsize : *mut u32, extension : *mut windows_core::PWSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiGetActualSectionToInstallExW(infhandle, infsectionname.param().abi(), alternateplatforminfo.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(infsectionwithext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), infsectionwithext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _, extension.unwrap_or(core::mem::zeroed()) as _, reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2022,17 +2022,17 @@ pub unsafe fn SetupDiGetActualSectionToInstallW(infhandle: *const core::ffi: where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetActualSectionToInstallW(infhandle : *const core::ffi::c_void, infsectionname : windows_core::PCWSTR, infsectionwithext : windows_core::PWSTR, infsectionwithextsize : u32, requiredsize : *mut u32, extension : *mut windows_core::PWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetActualSectionToInstallW(infhandle : *const core::ffi::c_void, infsectionname : windows_core::PCWSTR, infsectionwithext : windows_core::PWSTR, infsectionwithextsize : u32, requiredsize : *mut u32, extension : *mut windows_core::PWSTR) -> windows_core::BOOL); unsafe { SetupDiGetActualSectionToInstallW(infhandle, infsectionname.param().abi(), core::mem::transmute(infsectionwithext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), infsectionwithext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _, extension.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiGetClassBitmapIndex(classguid: Option<*const windows_core::GUID>, miniiconindex: *mut i32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassBitmapIndex(classguid : *const windows_core::GUID, miniiconindex : *mut i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassBitmapIndex(classguid : *const windows_core::GUID, miniiconindex : *mut i32) -> windows_core::BOOL); unsafe { SetupDiGetClassBitmapIndex(classguid.unwrap_or(core::mem::zeroed()) as _, miniiconindex as _).ok() } } #[inline] pub unsafe fn SetupDiGetClassDescriptionA(classguid: *const windows_core::GUID, classdescription: &mut [u8], requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDescriptionA(classguid : *const windows_core::GUID, classdescription : windows_core::PSTR, classdescriptionsize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDescriptionA(classguid : *const windows_core::GUID, classdescription : windows_core::PSTR, classdescriptionsize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiGetClassDescriptionA(classguid, core::mem::transmute(classdescription.as_ptr()), classdescription.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2040,7 +2040,7 @@ pub unsafe fn SetupDiGetClassDescriptionExA(classguid: *const windows_core:: where P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDescriptionExA(classguid : *const windows_core::GUID, classdescription : windows_core::PSTR, classdescriptionsize : u32, requiredsize : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDescriptionExA(classguid : *const windows_core::GUID, classdescription : windows_core::PSTR, classdescriptionsize : u32, requiredsize : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiGetClassDescriptionExA(classguid, core::mem::transmute(classdescription.as_ptr()), classdescription.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2048,24 +2048,24 @@ pub unsafe fn SetupDiGetClassDescriptionExW(classguid: *const windows_core:: where P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDescriptionExW(classguid : *const windows_core::GUID, classdescription : windows_core::PWSTR, classdescriptionsize : u32, requiredsize : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDescriptionExW(classguid : *const windows_core::GUID, classdescription : windows_core::PWSTR, classdescriptionsize : u32, requiredsize : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiGetClassDescriptionExW(classguid, core::mem::transmute(classdescription.as_ptr()), classdescription.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiGetClassDescriptionW(classguid: *const windows_core::GUID, classdescription: &mut [u16], requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDescriptionW(classguid : *const windows_core::GUID, classdescription : windows_core::PWSTR, classdescriptionsize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDescriptionW(classguid : *const windows_core::GUID, classdescription : windows_core::PWSTR, classdescriptionsize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiGetClassDescriptionW(classguid, core::mem::transmute(classdescription.as_ptr()), classdescription.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn SetupDiGetClassDevPropertySheetsA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, propertysheetheader: *const super::super::UI::Controls::PROPSHEETHEADERA_V2, propertysheetheaderpagelistsize: u32, requiredsize: Option<*mut u32>, propertysheettype: u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDevPropertySheetsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, propertysheetheader : *const super::super::UI::Controls:: PROPSHEETHEADERA_V2, propertysheetheaderpagelistsize : u32, requiredsize : *mut u32, propertysheettype : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDevPropertySheetsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, propertysheetheader : *const super::super::UI::Controls:: PROPSHEETHEADERA_V2, propertysheetheaderpagelistsize : u32, requiredsize : *mut u32, propertysheettype : u32) -> windows_core::BOOL); unsafe { SetupDiGetClassDevPropertySheetsA(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, propertysheetheader, propertysheetheaderpagelistsize, requiredsize.unwrap_or(core::mem::zeroed()) as _, propertysheettype).ok() } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn SetupDiGetClassDevPropertySheetsW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, propertysheetheader: *const super::super::UI::Controls::PROPSHEETHEADERW_V2, propertysheetheaderpagelistsize: u32, requiredsize: Option<*mut u32>, propertysheettype: u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDevPropertySheetsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, propertysheetheader : *const super::super::UI::Controls:: PROPSHEETHEADERW_V2, propertysheetheaderpagelistsize : u32, requiredsize : *mut u32, propertysheettype : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassDevPropertySheetsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, propertysheetheader : *const super::super::UI::Controls:: PROPSHEETHEADERW_V2, propertysheetheaderpagelistsize : u32, requiredsize : *mut u32, propertysheettype : u32) -> windows_core::BOOL); unsafe { SetupDiGetClassDevPropertySheetsW(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, propertysheetheader, propertysheetheaderpagelistsize, requiredsize.unwrap_or(core::mem::zeroed()) as _, propertysheettype).ok() } } #[inline] @@ -2109,13 +2109,13 @@ where #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn SetupDiGetClassImageIndex(classimagelistdata: *const SP_CLASSIMAGELIST_DATA, classguid: *const windows_core::GUID, imageindex: *mut i32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassImageIndex(classimagelistdata : *const SP_CLASSIMAGELIST_DATA, classguid : *const windows_core::GUID, imageindex : *mut i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassImageIndex(classimagelistdata : *const SP_CLASSIMAGELIST_DATA, classguid : *const windows_core::GUID, imageindex : *mut i32) -> windows_core::BOOL); unsafe { SetupDiGetClassImageIndex(classimagelistdata, classguid, imageindex as _).ok() } } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn SetupDiGetClassImageList(classimagelistdata: *mut SP_CLASSIMAGELIST_DATA) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassImageList(classimagelistdata : *mut SP_CLASSIMAGELIST_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassImageList(classimagelistdata : *mut SP_CLASSIMAGELIST_DATA) -> windows_core::BOOL); unsafe { SetupDiGetClassImageList(classimagelistdata as _).ok() } } #[cfg(feature = "Win32_UI_Controls")] @@ -2124,7 +2124,7 @@ pub unsafe fn SetupDiGetClassImageListExA(classimagelistdata: *mut SP_CLASSI where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassImageListExA(classimagelistdata : *mut SP_CLASSIMAGELIST_DATA, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassImageListExA(classimagelistdata : *mut SP_CLASSIMAGELIST_DATA, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiGetClassImageListExA(classimagelistdata as _, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_UI_Controls")] @@ -2133,17 +2133,17 @@ pub unsafe fn SetupDiGetClassImageListExW(classimagelistdata: *mut SP_CLASSI where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassImageListExW(classimagelistdata : *mut SP_CLASSIMAGELIST_DATA, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassImageListExW(classimagelistdata : *mut SP_CLASSIMAGELIST_DATA, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiGetClassImageListExW(classimagelistdata as _, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiGetClassInstallParamsA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, classinstallparams: Option<*mut SP_CLASSINSTALL_HEADER>, classinstallparamssize: u32, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassInstallParamsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, classinstallparams : *mut SP_CLASSINSTALL_HEADER, classinstallparamssize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassInstallParamsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, classinstallparams : *mut SP_CLASSINSTALL_HEADER, classinstallparamssize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiGetClassInstallParamsA(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, classinstallparams.unwrap_or(core::mem::zeroed()) as _, classinstallparamssize, requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiGetClassInstallParamsW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, classinstallparams: Option<*mut SP_CLASSINSTALL_HEADER>, classinstallparamssize: u32, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassInstallParamsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, classinstallparams : *mut SP_CLASSINSTALL_HEADER, classinstallparamssize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassInstallParamsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, classinstallparams : *mut SP_CLASSINSTALL_HEADER, classinstallparamssize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiGetClassInstallParamsW(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, classinstallparams.unwrap_or(core::mem::zeroed()) as _, classinstallparamssize, requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_Devices_Properties")] @@ -2152,12 +2152,12 @@ pub unsafe fn SetupDiGetClassPropertyExW(classguid: *const windows_core::GUI where P7: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassPropertyExW(classguid : *const windows_core::GUID, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, flags : u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassPropertyExW(classguid : *const windows_core::GUID, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, flags : u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiGetClassPropertyExW(classguid, propertykey, propertytype as _, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _, flags, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiGetClassPropertyKeys(classguid: *const windows_core::GUID, propertykeyarray: Option<&mut [super::super::Foundation::DEVPROPKEY]>, requiredpropertykeycount: Option<*mut u32>, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassPropertyKeys(classguid : *const windows_core::GUID, propertykeyarray : *mut super::super::Foundation:: DEVPROPKEY, propertykeycount : u32, requiredpropertykeycount : *mut u32, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassPropertyKeys(classguid : *const windows_core::GUID, propertykeyarray : *mut super::super::Foundation:: DEVPROPKEY, propertykeycount : u32, requiredpropertykeycount : *mut u32, flags : u32) -> windows_core::BOOL); unsafe { SetupDiGetClassPropertyKeys(classguid, core::mem::transmute(propertykeyarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertykeyarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredpropertykeycount.unwrap_or(core::mem::zeroed()) as _, flags).ok() } } #[inline] @@ -2165,13 +2165,13 @@ pub unsafe fn SetupDiGetClassPropertyKeysExW(classguid: *const windows_core: where P5: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassPropertyKeysExW(classguid : *const windows_core::GUID, propertykeyarray : *mut super::super::Foundation:: DEVPROPKEY, propertykeycount : u32, requiredpropertykeycount : *mut u32, flags : u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassPropertyKeysExW(classguid : *const windows_core::GUID, propertykeyarray : *mut super::super::Foundation:: DEVPROPKEY, propertykeycount : u32, requiredpropertykeycount : *mut u32, flags : u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiGetClassPropertyKeysExW(classguid, core::mem::transmute(propertykeyarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertykeyarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredpropertykeycount.unwrap_or(core::mem::zeroed()) as _, flags, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiGetClassPropertyW(classguid: *const windows_core::GUID, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: *mut super::Properties::DEVPROPTYPE, propertybuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassPropertyW(classguid : *const windows_core::GUID, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassPropertyW(classguid : *const windows_core::GUID, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, flags : u32) -> windows_core::BOOL); unsafe { SetupDiGetClassPropertyW(classguid, propertykey, propertytype as _, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _, flags).ok() } } #[inline] @@ -2179,7 +2179,7 @@ pub unsafe fn SetupDiGetClassRegistryPropertyA(classguid: *const windows_cor where P6: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassRegistryPropertyA(classguid : *const windows_core::GUID, property : u32, propertyregdatatype : *mut u32, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassRegistryPropertyA(classguid : *const windows_core::GUID, property : u32, propertyregdatatype : *mut u32, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiGetClassRegistryPropertyA(classguid, property, propertyregdatatype.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2187,7 +2187,7 @@ pub unsafe fn SetupDiGetClassRegistryPropertyW(classguid: *const windows_cor where P6: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassRegistryPropertyW(classguid : *const windows_core::GUID, property : u32, propertyregdatatype : *mut u32, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetClassRegistryPropertyW(classguid : *const windows_core::GUID, property : u32, propertyregdatatype : *mut u32, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiGetClassRegistryPropertyW(classguid, property, propertyregdatatype.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2195,7 +2195,7 @@ pub unsafe fn SetupDiGetCustomDevicePropertyA(deviceinfoset: HDEVINFO, devic where P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetCustomDevicePropertyA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, custompropertyname : windows_core::PCSTR, flags : u32, propertyregdatatype : *mut u32, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetCustomDevicePropertyA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, custompropertyname : windows_core::PCSTR, flags : u32, propertyregdatatype : *mut u32, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiGetCustomDevicePropertyA(deviceinfoset, deviceinfodata, custompropertyname.param().abi(), flags, propertyregdatatype.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2203,114 +2203,114 @@ pub unsafe fn SetupDiGetCustomDevicePropertyW(deviceinfoset: HDEVINFO, devic where P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetCustomDevicePropertyW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, custompropertyname : windows_core::PCWSTR, flags : u32, propertyregdatatype : *mut u32, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetCustomDevicePropertyW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, custompropertyname : windows_core::PCWSTR, flags : u32, propertyregdatatype : *mut u32, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiGetCustomDevicePropertyW(deviceinfoset, deviceinfodata, custompropertyname.param().abi(), flags, propertyregdatatype.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(propertybuffer.as_ptr()), propertybuffer.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiGetDeviceInfoListClass(deviceinfoset: HDEVINFO, classguid: *mut windows_core::GUID) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInfoListClass(deviceinfoset : HDEVINFO, classguid : *mut windows_core::GUID) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInfoListClass(deviceinfoset : HDEVINFO, classguid : *mut windows_core::GUID) -> windows_core::BOOL); unsafe { SetupDiGetDeviceInfoListClass(deviceinfoset, classguid as _).ok() } } #[inline] pub unsafe fn SetupDiGetDeviceInfoListDetailA(deviceinfoset: HDEVINFO, deviceinfosetdetaildata: *mut SP_DEVINFO_LIST_DETAIL_DATA_A) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInfoListDetailA(deviceinfoset : HDEVINFO, deviceinfosetdetaildata : *mut SP_DEVINFO_LIST_DETAIL_DATA_A) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInfoListDetailA(deviceinfoset : HDEVINFO, deviceinfosetdetaildata : *mut SP_DEVINFO_LIST_DETAIL_DATA_A) -> windows_core::BOOL); unsafe { SetupDiGetDeviceInfoListDetailA(deviceinfoset, deviceinfosetdetaildata as _).ok() } } #[inline] pub unsafe fn SetupDiGetDeviceInfoListDetailW(deviceinfoset: HDEVINFO, deviceinfosetdetaildata: *mut SP_DEVINFO_LIST_DETAIL_DATA_W) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInfoListDetailW(deviceinfoset : HDEVINFO, deviceinfosetdetaildata : *mut SP_DEVINFO_LIST_DETAIL_DATA_W) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInfoListDetailW(deviceinfoset : HDEVINFO, deviceinfosetdetaildata : *mut SP_DEVINFO_LIST_DETAIL_DATA_W) -> windows_core::BOOL); unsafe { SetupDiGetDeviceInfoListDetailW(deviceinfoset, deviceinfosetdetaildata as _).ok() } } #[inline] pub unsafe fn SetupDiGetDeviceInstallParamsA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, deviceinstallparams: *mut SP_DEVINSTALL_PARAMS_A) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInstallParamsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, deviceinstallparams : *mut SP_DEVINSTALL_PARAMS_A) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInstallParamsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, deviceinstallparams : *mut SP_DEVINSTALL_PARAMS_A) -> windows_core::BOOL); unsafe { SetupDiGetDeviceInstallParamsA(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, deviceinstallparams as _).ok() } } #[inline] pub unsafe fn SetupDiGetDeviceInstallParamsW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, deviceinstallparams: *mut SP_DEVINSTALL_PARAMS_W) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInstallParamsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, deviceinstallparams : *mut SP_DEVINSTALL_PARAMS_W) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInstallParamsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, deviceinstallparams : *mut SP_DEVINSTALL_PARAMS_W) -> windows_core::BOOL); unsafe { SetupDiGetDeviceInstallParamsW(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, deviceinstallparams as _).ok() } } #[inline] pub unsafe fn SetupDiGetDeviceInstanceIdA(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, deviceinstanceid: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInstanceIdA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, deviceinstanceid : windows_core::PSTR, deviceinstanceidsize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInstanceIdA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, deviceinstanceid : windows_core::PSTR, deviceinstanceidsize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiGetDeviceInstanceIdA(deviceinfoset, deviceinfodata, core::mem::transmute(deviceinstanceid.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), deviceinstanceid.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiGetDeviceInstanceIdW(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, deviceinstanceid: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInstanceIdW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, deviceinstanceid : windows_core::PWSTR, deviceinstanceidsize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInstanceIdW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, deviceinstanceid : windows_core::PWSTR, deviceinstanceidsize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiGetDeviceInstanceIdW(deviceinfoset, deviceinfodata, core::mem::transmute(deviceinstanceid.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), deviceinstanceid.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiGetDeviceInterfaceAlias(deviceinfoset: HDEVINFO, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, aliasinterfaceclassguid: *const windows_core::GUID, aliasdeviceinterfacedata: *mut SP_DEVICE_INTERFACE_DATA) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInterfaceAlias(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, aliasinterfaceclassguid : *const windows_core::GUID, aliasdeviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInterfaceAlias(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, aliasinterfaceclassguid : *const windows_core::GUID, aliasdeviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> windows_core::BOOL); unsafe { SetupDiGetDeviceInterfaceAlias(deviceinfoset, deviceinterfacedata, aliasinterfaceclassguid, aliasdeviceinterfacedata as _).ok() } } #[inline] pub unsafe fn SetupDiGetDeviceInterfaceDetailA(deviceinfoset: HDEVINFO, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, deviceinterfacedetaildata: Option<*mut SP_DEVICE_INTERFACE_DETAIL_DATA_A>, deviceinterfacedetaildatasize: u32, requiredsize: Option<*mut u32>, deviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInterfaceDetailA(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, deviceinterfacedetaildata : *mut SP_DEVICE_INTERFACE_DETAIL_DATA_A, deviceinterfacedetaildatasize : u32, requiredsize : *mut u32, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInterfaceDetailA(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, deviceinterfacedetaildata : *mut SP_DEVICE_INTERFACE_DETAIL_DATA_A, deviceinterfacedetaildatasize : u32, requiredsize : *mut u32, deviceinfodata : *mut SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiGetDeviceInterfaceDetailA(deviceinfoset, deviceinterfacedata, deviceinterfacedetaildata.unwrap_or(core::mem::zeroed()) as _, deviceinterfacedetaildatasize, requiredsize.unwrap_or(core::mem::zeroed()) as _, deviceinfodata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiGetDeviceInterfaceDetailW(deviceinfoset: HDEVINFO, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, deviceinterfacedetaildata: Option<*mut SP_DEVICE_INTERFACE_DETAIL_DATA_W>, deviceinterfacedetaildatasize: u32, requiredsize: Option<*mut u32>, deviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInterfaceDetailW(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, deviceinterfacedetaildata : *mut SP_DEVICE_INTERFACE_DETAIL_DATA_W, deviceinterfacedetaildatasize : u32, requiredsize : *mut u32, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInterfaceDetailW(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, deviceinterfacedetaildata : *mut SP_DEVICE_INTERFACE_DETAIL_DATA_W, deviceinterfacedetaildatasize : u32, requiredsize : *mut u32, deviceinfodata : *mut SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiGetDeviceInterfaceDetailW(deviceinfoset, deviceinterfacedata, deviceinterfacedetaildata.unwrap_or(core::mem::zeroed()) as _, deviceinterfacedetaildatasize, requiredsize.unwrap_or(core::mem::zeroed()) as _, deviceinfodata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiGetDeviceInterfacePropertyKeys(deviceinfoset: HDEVINFO, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, propertykeyarray: Option<&mut [super::super::Foundation::DEVPROPKEY]>, requiredpropertykeycount: Option<*mut u32>, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInterfacePropertyKeys(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, propertykeyarray : *mut super::super::Foundation:: DEVPROPKEY, propertykeycount : u32, requiredpropertykeycount : *mut u32, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInterfacePropertyKeys(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, propertykeyarray : *mut super::super::Foundation:: DEVPROPKEY, propertykeycount : u32, requiredpropertykeycount : *mut u32, flags : u32) -> windows_core::BOOL); unsafe { SetupDiGetDeviceInterfacePropertyKeys(deviceinfoset, deviceinterfacedata, core::mem::transmute(propertykeyarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertykeyarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredpropertykeycount.unwrap_or(core::mem::zeroed()) as _, flags).ok() } } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiGetDeviceInterfacePropertyW(deviceinfoset: HDEVINFO, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: *mut super::Properties::DEVPROPTYPE, propertybuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInterfacePropertyW(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceInterfacePropertyW(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, flags : u32) -> windows_core::BOOL); unsafe { SetupDiGetDeviceInterfacePropertyW(deviceinfoset, deviceinterfacedata, propertykey, propertytype as _, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _, flags).ok() } } #[inline] pub unsafe fn SetupDiGetDevicePropertyKeys(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, propertykeyarray: Option<&mut [super::super::Foundation::DEVPROPKEY]>, requiredpropertykeycount: Option<*mut u32>, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDevicePropertyKeys(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, propertykeyarray : *mut super::super::Foundation:: DEVPROPKEY, propertykeycount : u32, requiredpropertykeycount : *mut u32, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDevicePropertyKeys(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, propertykeyarray : *mut super::super::Foundation:: DEVPROPKEY, propertykeycount : u32, requiredpropertykeycount : *mut u32, flags : u32) -> windows_core::BOOL); unsafe { SetupDiGetDevicePropertyKeys(deviceinfoset, deviceinfodata, core::mem::transmute(propertykeyarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertykeyarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredpropertykeycount.unwrap_or(core::mem::zeroed()) as _, flags).ok() } } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiGetDevicePropertyW(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: *mut super::Properties::DEVPROPTYPE, propertybuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDevicePropertyW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDevicePropertyW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : *mut super::Properties:: DEVPROPTYPE, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32, flags : u32) -> windows_core::BOOL); unsafe { SetupDiGetDevicePropertyW(deviceinfoset, deviceinfodata, propertykey, propertytype as _, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _, flags).ok() } } #[inline] pub unsafe fn SetupDiGetDeviceRegistryPropertyA(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, property: SETUP_DI_REGISTRY_PROPERTY, propertyregdatatype: Option<*mut u32>, propertybuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceRegistryPropertyA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, property : SETUP_DI_REGISTRY_PROPERTY, propertyregdatatype : *mut u32, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceRegistryPropertyA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, property : SETUP_DI_REGISTRY_PROPERTY, propertyregdatatype : *mut u32, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiGetDeviceRegistryPropertyA(deviceinfoset, deviceinfodata, property, propertyregdatatype.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiGetDeviceRegistryPropertyW(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, property: SETUP_DI_REGISTRY_PROPERTY, propertyregdatatype: Option<*mut u32>, propertybuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceRegistryPropertyW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, property : SETUP_DI_REGISTRY_PROPERTY, propertyregdatatype : *mut u32, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDeviceRegistryPropertyW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, property : SETUP_DI_REGISTRY_PROPERTY, propertyregdatatype : *mut u32, propertybuffer : *mut u8, propertybuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiGetDeviceRegistryPropertyW(deviceinfoset, deviceinfodata, property, propertyregdatatype.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiGetDriverInfoDetailA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *const SP_DRVINFO_DATA_V2_A, driverinfodetaildata: Option<*mut SP_DRVINFO_DETAIL_DATA_A>, driverinfodetaildatasize: u32, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDriverInfoDetailA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_A, driverinfodetaildata : *mut SP_DRVINFO_DETAIL_DATA_A, driverinfodetaildatasize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDriverInfoDetailA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_A, driverinfodetaildata : *mut SP_DRVINFO_DETAIL_DATA_A, driverinfodetaildatasize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiGetDriverInfoDetailA(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, driverinfodata, driverinfodetaildata.unwrap_or(core::mem::zeroed()) as _, driverinfodetaildatasize, requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiGetDriverInfoDetailW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *const SP_DRVINFO_DATA_V2_W, driverinfodetaildata: Option<*mut SP_DRVINFO_DETAIL_DATA_W>, driverinfodetaildatasize: u32, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDriverInfoDetailW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_W, driverinfodetaildata : *mut SP_DRVINFO_DETAIL_DATA_W, driverinfodetaildatasize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDriverInfoDetailW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_W, driverinfodetaildata : *mut SP_DRVINFO_DETAIL_DATA_W, driverinfodetaildatasize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiGetDriverInfoDetailW(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, driverinfodata, driverinfodetaildata.unwrap_or(core::mem::zeroed()) as _, driverinfodetaildatasize, requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiGetDriverInstallParamsA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *const SP_DRVINFO_DATA_V2_A, driverinstallparams: *mut SP_DRVINSTALL_PARAMS) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDriverInstallParamsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_A, driverinstallparams : *mut SP_DRVINSTALL_PARAMS) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDriverInstallParamsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_A, driverinstallparams : *mut SP_DRVINSTALL_PARAMS) -> windows_core::BOOL); unsafe { SetupDiGetDriverInstallParamsA(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, driverinfodata, driverinstallparams as _).ok() } } #[inline] pub unsafe fn SetupDiGetDriverInstallParamsW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *const SP_DRVINFO_DATA_V2_W, driverinstallparams: *mut SP_DRVINSTALL_PARAMS) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDriverInstallParamsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_W, driverinstallparams : *mut SP_DRVINSTALL_PARAMS) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetDriverInstallParamsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_W, driverinstallparams : *mut SP_DRVINSTALL_PARAMS) -> windows_core::BOOL); unsafe { SetupDiGetDriverInstallParamsW(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, driverinfodata, driverinstallparams as _).ok() } } #[inline] pub unsafe fn SetupDiGetHwProfileFriendlyNameA(hwprofile: u32, friendlyname: &mut [u8], requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileFriendlyNameA(hwprofile : u32, friendlyname : windows_core::PSTR, friendlynamesize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileFriendlyNameA(hwprofile : u32, friendlyname : windows_core::PSTR, friendlynamesize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiGetHwProfileFriendlyNameA(hwprofile, core::mem::transmute(friendlyname.as_ptr()), friendlyname.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2318,7 +2318,7 @@ pub unsafe fn SetupDiGetHwProfileFriendlyNameExA(hwprofile: u32, friendlynam where P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileFriendlyNameExA(hwprofile : u32, friendlyname : windows_core::PSTR, friendlynamesize : u32, requiredsize : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileFriendlyNameExA(hwprofile : u32, friendlyname : windows_core::PSTR, friendlynamesize : u32, requiredsize : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiGetHwProfileFriendlyNameExA(hwprofile, core::mem::transmute(friendlyname.as_ptr()), friendlyname.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2326,17 +2326,17 @@ pub unsafe fn SetupDiGetHwProfileFriendlyNameExW(hwprofile: u32, friendlynam where P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileFriendlyNameExW(hwprofile : u32, friendlyname : windows_core::PWSTR, friendlynamesize : u32, requiredsize : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileFriendlyNameExW(hwprofile : u32, friendlyname : windows_core::PWSTR, friendlynamesize : u32, requiredsize : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiGetHwProfileFriendlyNameExW(hwprofile, core::mem::transmute(friendlyname.as_ptr()), friendlyname.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiGetHwProfileFriendlyNameW(hwprofile: u32, friendlyname: &mut [u16], requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileFriendlyNameW(hwprofile : u32, friendlyname : windows_core::PWSTR, friendlynamesize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileFriendlyNameW(hwprofile : u32, friendlyname : windows_core::PWSTR, friendlynamesize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiGetHwProfileFriendlyNameW(hwprofile, core::mem::transmute(friendlyname.as_ptr()), friendlyname.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiGetHwProfileList(hwprofilelist: &mut [u32], requiredsize: *mut u32, currentlyactiveindex: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileList(hwprofilelist : *mut u32, hwprofilelistsize : u32, requiredsize : *mut u32, currentlyactiveindex : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileList(hwprofilelist : *mut u32, hwprofilelistsize : u32, requiredsize : *mut u32, currentlyactiveindex : *mut u32) -> windows_core::BOOL); unsafe { SetupDiGetHwProfileList(core::mem::transmute(hwprofilelist.as_ptr()), hwprofilelist.len().try_into().unwrap(), requiredsize as _, currentlyactiveindex.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2344,7 +2344,7 @@ pub unsafe fn SetupDiGetHwProfileListExA(hwprofilelist: &mut [u32], required where P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileListExA(hwprofilelist : *mut u32, hwprofilelistsize : u32, requiredsize : *mut u32, currentlyactiveindex : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileListExA(hwprofilelist : *mut u32, hwprofilelistsize : u32, requiredsize : *mut u32, currentlyactiveindex : *mut u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiGetHwProfileListExA(core::mem::transmute(hwprofilelist.as_ptr()), hwprofilelist.len().try_into().unwrap(), requiredsize as _, currentlyactiveindex.unwrap_or(core::mem::zeroed()) as _, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2352,7 +2352,7 @@ pub unsafe fn SetupDiGetHwProfileListExW(hwprofilelist: &mut [u32], required where P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileListExW(hwprofilelist : *mut u32, hwprofilelistsize : u32, requiredsize : *mut u32, currentlyactiveindex : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetHwProfileListExW(hwprofilelist : *mut u32, hwprofilelistsize : u32, requiredsize : *mut u32, currentlyactiveindex : *mut u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiGetHwProfileListExW(core::mem::transmute(hwprofilelist.as_ptr()), hwprofilelist.len().try_into().unwrap(), requiredsize as _, currentlyactiveindex.unwrap_or(core::mem::zeroed()) as _, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2360,7 +2360,7 @@ pub unsafe fn SetupDiGetINFClassA(infname: P0, classguid: *mut windows_core: where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetINFClassA(infname : windows_core::PCSTR, classguid : *mut windows_core::GUID, classname : windows_core::PSTR, classnamesize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetINFClassA(infname : windows_core::PCSTR, classguid : *mut windows_core::GUID, classname : windows_core::PSTR, classnamesize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiGetINFClassA(infname.param().abi(), classguid as _, core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2368,22 +2368,22 @@ pub unsafe fn SetupDiGetINFClassW(infname: P0, classguid: *mut windows_core: where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetINFClassW(infname : windows_core::PCWSTR, classguid : *mut windows_core::GUID, classname : windows_core::PWSTR, classnamesize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetINFClassW(infname : windows_core::PCWSTR, classguid : *mut windows_core::GUID, classname : windows_core::PWSTR, classnamesize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupDiGetINFClassW(infname.param().abi(), classguid as _, core::mem::transmute(classname.as_ptr()), classname.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiGetSelectedDevice(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetSelectedDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetSelectedDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiGetSelectedDevice(deviceinfoset, deviceinfodata as _).ok() } } #[inline] pub unsafe fn SetupDiGetSelectedDriverA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *mut SP_DRVINFO_DATA_V2_A) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetSelectedDriverA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *mut SP_DRVINFO_DATA_V2_A) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetSelectedDriverA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *mut SP_DRVINFO_DATA_V2_A) -> windows_core::BOOL); unsafe { SetupDiGetSelectedDriverA(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, driverinfodata as _).ok() } } #[inline] pub unsafe fn SetupDiGetSelectedDriverW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *mut SP_DRVINFO_DATA_V2_W) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiGetSelectedDriverW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *mut SP_DRVINFO_DATA_V2_W) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiGetSelectedDriverW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *mut SP_DRVINFO_DATA_V2_W) -> windows_core::BOOL); unsafe { SetupDiGetSelectedDriverW(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, driverinfodata as _).ok() } } #[cfg(feature = "Win32_UI_Controls")] @@ -2397,7 +2397,7 @@ pub unsafe fn SetupDiInstallClassA(hwndparent: Option, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallClassA(hwndparent : super::super::Foundation:: HWND, inffilename : windows_core::PCSTR, flags : u32, filequeue : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallClassA(hwndparent : super::super::Foundation:: HWND, inffilename : windows_core::PCSTR, flags : u32, filequeue : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiInstallClassA(hwndparent.unwrap_or(core::mem::zeroed()) as _, inffilename.param().abi(), flags, filequeue.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2405,7 +2405,7 @@ pub unsafe fn SetupDiInstallClassExA(hwndparent: Option, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallClassExA(hwndparent : super::super::Foundation:: HWND, inffilename : windows_core::PCSTR, flags : u32, filequeue : *const core::ffi::c_void, interfaceclassguid : *const windows_core::GUID, reserved1 : *const core::ffi::c_void, reserved2 : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallClassExA(hwndparent : super::super::Foundation:: HWND, inffilename : windows_core::PCSTR, flags : u32, filequeue : *const core::ffi::c_void, interfaceclassguid : *const windows_core::GUID, reserved1 : *const core::ffi::c_void, reserved2 : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiInstallClassExA(hwndparent.unwrap_or(core::mem::zeroed()) as _, inffilename.param().abi(), flags, filequeue.unwrap_or(core::mem::zeroed()) as _, interfaceclassguid.unwrap_or(core::mem::zeroed()) as _, reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2413,7 +2413,7 @@ pub unsafe fn SetupDiInstallClassExW(hwndparent: Option, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallClassExW(hwndparent : super::super::Foundation:: HWND, inffilename : windows_core::PCWSTR, flags : u32, filequeue : *const core::ffi::c_void, interfaceclassguid : *const windows_core::GUID, reserved1 : *const core::ffi::c_void, reserved2 : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallClassExW(hwndparent : super::super::Foundation:: HWND, inffilename : windows_core::PCWSTR, flags : u32, filequeue : *const core::ffi::c_void, interfaceclassguid : *const windows_core::GUID, reserved1 : *const core::ffi::c_void, reserved2 : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiInstallClassExW(hwndparent.unwrap_or(core::mem::zeroed()) as _, inffilename.param().abi(), flags, filequeue.unwrap_or(core::mem::zeroed()) as _, interfaceclassguid.unwrap_or(core::mem::zeroed()) as _, reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2421,34 +2421,34 @@ pub unsafe fn SetupDiInstallClassW(hwndparent: Option, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallClassW(hwndparent : super::super::Foundation:: HWND, inffilename : windows_core::PCWSTR, flags : u32, filequeue : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallClassW(hwndparent : super::super::Foundation:: HWND, inffilename : windows_core::PCWSTR, flags : u32, filequeue : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiInstallClassW(hwndparent.unwrap_or(core::mem::zeroed()) as _, inffilename.param().abi(), flags, filequeue.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiInstallDevice(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiInstallDevice(deviceinfoset, deviceinfodata as _).ok() } } #[inline] pub unsafe fn SetupDiInstallDeviceInterfaces(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallDeviceInterfaces(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallDeviceInterfaces(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiInstallDeviceInterfaces(deviceinfoset, deviceinfodata).ok() } } #[inline] pub unsafe fn SetupDiInstallDriverFiles(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallDriverFiles(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiInstallDriverFiles(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiInstallDriverFiles(deviceinfoset, deviceinfodata).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn SetupDiLoadClassIcon(classguid: *const windows_core::GUID, largeicon: Option<*mut super::super::UI::WindowsAndMessaging::HICON>, miniiconindex: Option<*mut i32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiLoadClassIcon(classguid : *const windows_core::GUID, largeicon : *mut super::super::UI::WindowsAndMessaging:: HICON, miniiconindex : *mut i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiLoadClassIcon(classguid : *const windows_core::GUID, largeicon : *mut super::super::UI::WindowsAndMessaging:: HICON, miniiconindex : *mut i32) -> windows_core::BOOL); unsafe { SetupDiLoadClassIcon(classguid, largeicon.unwrap_or(core::mem::zeroed()) as _, miniiconindex.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn SetupDiLoadDeviceIcon(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, cxicon: u32, cyicon: u32, flags: u32, hicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiLoadDeviceIcon(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, cxicon : u32, cyicon : u32, flags : u32, hicon : *mut super::super::UI::WindowsAndMessaging:: HICON) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiLoadDeviceIcon(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, cxicon : u32, cyicon : u32, flags : u32, hicon : *mut super::super::UI::WindowsAndMessaging:: HICON) -> windows_core::BOOL); unsafe { SetupDiLoadDeviceIcon(deviceinfoset, deviceinfodata, cxicon, cyicon, flags, hicon as _).ok() } } #[cfg(feature = "Win32_System_Registry")] @@ -2490,7 +2490,7 @@ pub unsafe fn SetupDiOpenDeviceInfoA(deviceinfoset: HDEVINFO, deviceinstance where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiOpenDeviceInfoA(deviceinfoset : HDEVINFO, deviceinstanceid : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND, openflags : u32, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiOpenDeviceInfoA(deviceinfoset : HDEVINFO, deviceinstanceid : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND, openflags : u32, deviceinfodata : *mut SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiOpenDeviceInfoA(deviceinfoset, deviceinstanceid.param().abi(), hwndparent.unwrap_or(core::mem::zeroed()) as _, openflags, deviceinfodata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2498,7 +2498,7 @@ pub unsafe fn SetupDiOpenDeviceInfoW(deviceinfoset: HDEVINFO, deviceinstance where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiOpenDeviceInfoW(deviceinfoset : HDEVINFO, deviceinstanceid : windows_core::PCWSTR, hwndparent : super::super::Foundation:: HWND, openflags : u32, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiOpenDeviceInfoW(deviceinfoset : HDEVINFO, deviceinstanceid : windows_core::PCWSTR, hwndparent : super::super::Foundation:: HWND, openflags : u32, deviceinfodata : *mut SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiOpenDeviceInfoW(deviceinfoset, deviceinstanceid.param().abi(), hwndparent.unwrap_or(core::mem::zeroed()) as _, openflags, deviceinfodata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2506,7 +2506,7 @@ pub unsafe fn SetupDiOpenDeviceInterfaceA(deviceinfoset: HDEVINFO, devicepat where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiOpenDeviceInterfaceA(deviceinfoset : HDEVINFO, devicepath : windows_core::PCSTR, openflags : u32, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiOpenDeviceInterfaceA(deviceinfoset : HDEVINFO, devicepath : windows_core::PCSTR, openflags : u32, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> windows_core::BOOL); unsafe { SetupDiOpenDeviceInterfaceA(deviceinfoset, devicepath.param().abi(), openflags, deviceinterfacedata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_System_Registry")] @@ -2521,57 +2521,57 @@ pub unsafe fn SetupDiOpenDeviceInterfaceW(deviceinfoset: HDEVINFO, devicepat where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiOpenDeviceInterfaceW(deviceinfoset : HDEVINFO, devicepath : windows_core::PCWSTR, openflags : u32, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiOpenDeviceInterfaceW(deviceinfoset : HDEVINFO, devicepath : windows_core::PCWSTR, openflags : u32, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> windows_core::BOOL); unsafe { SetupDiOpenDeviceInterfaceW(deviceinfoset, devicepath.param().abi(), openflags, deviceinterfacedata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiRegisterCoDeviceInstallers(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiRegisterCoDeviceInstallers(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiRegisterCoDeviceInstallers(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiRegisterCoDeviceInstallers(deviceinfoset, deviceinfodata).ok() } } #[inline] pub unsafe fn SetupDiRegisterDeviceInfo(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA, flags: u32, compareproc: Option, comparecontext: Option<*const core::ffi::c_void>, dupdeviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiRegisterDeviceInfo(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA, flags : u32, compareproc : PSP_DETSIG_CMPPROC, comparecontext : *const core::ffi::c_void, dupdeviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiRegisterDeviceInfo(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA, flags : u32, compareproc : PSP_DETSIG_CMPPROC, comparecontext : *const core::ffi::c_void, dupdeviceinfodata : *mut SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiRegisterDeviceInfo(deviceinfoset, deviceinfodata as _, flags, compareproc.unwrap_or(core::mem::zeroed()) as _, comparecontext.unwrap_or(core::mem::zeroed()) as _, dupdeviceinfodata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn SetupDiRemoveDevice(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA) -> super::super::Foundation::BOOL { - windows_targets::link!("setupapi.dll" "system" fn SetupDiRemoveDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); +pub unsafe fn SetupDiRemoveDevice(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::BOOL { + windows_targets::link!("setupapi.dll" "system" fn SetupDiRemoveDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiRemoveDevice(deviceinfoset, deviceinfodata as _) } } #[inline] pub unsafe fn SetupDiRemoveDeviceInterface(deviceinfoset: HDEVINFO, deviceinterfacedata: *mut SP_DEVICE_INTERFACE_DATA) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiRemoveDeviceInterface(deviceinfoset : HDEVINFO, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiRemoveDeviceInterface(deviceinfoset : HDEVINFO, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA) -> windows_core::BOOL); unsafe { SetupDiRemoveDeviceInterface(deviceinfoset, deviceinterfacedata as _).ok() } } #[inline] pub unsafe fn SetupDiRestartDevices(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiRestartDevices(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiRestartDevices(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiRestartDevices(deviceinfoset, deviceinfodata as _).ok() } } #[inline] pub unsafe fn SetupDiSelectBestCompatDrv(deviceinfoset: HDEVINFO, deviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSelectBestCompatDrv(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSelectBestCompatDrv(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiSelectBestCompatDrv(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiSelectDevice(deviceinfoset: HDEVINFO, deviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSelectDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSelectDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiSelectDevice(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiSelectOEMDrv(hwndparent: Option, deviceinfoset: HDEVINFO, deviceinfodata: Option<*mut SP_DEVINFO_DATA>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSelectOEMDrv(hwndparent : super::super::Foundation:: HWND, deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSelectOEMDrv(hwndparent : super::super::Foundation:: HWND, deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiSelectOEMDrv(hwndparent.unwrap_or(core::mem::zeroed()) as _, deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiSetClassInstallParamsA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, classinstallparams: Option<*const SP_CLASSINSTALL_HEADER>, classinstallparamssize: u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassInstallParamsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, classinstallparams : *const SP_CLASSINSTALL_HEADER, classinstallparamssize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassInstallParamsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, classinstallparams : *const SP_CLASSINSTALL_HEADER, classinstallparamssize : u32) -> windows_core::BOOL); unsafe { SetupDiSetClassInstallParamsA(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, classinstallparams.unwrap_or(core::mem::zeroed()) as _, classinstallparamssize).ok() } } #[inline] pub unsafe fn SetupDiSetClassInstallParamsW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, classinstallparams: Option<*const SP_CLASSINSTALL_HEADER>, classinstallparamssize: u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassInstallParamsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, classinstallparams : *const SP_CLASSINSTALL_HEADER, classinstallparamssize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassInstallParamsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, classinstallparams : *const SP_CLASSINSTALL_HEADER, classinstallparamssize : u32) -> windows_core::BOOL); unsafe { SetupDiSetClassInstallParamsW(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, classinstallparams.unwrap_or(core::mem::zeroed()) as _, classinstallparamssize).ok() } } #[cfg(feature = "Win32_Devices_Properties")] @@ -2580,13 +2580,13 @@ pub unsafe fn SetupDiSetClassPropertyExW(classguid: *const windows_core::GUI where P6: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassPropertyExW(classguid : *const windows_core::GUID, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, flags : u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassPropertyExW(classguid : *const windows_core::GUID, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, flags : u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiSetClassPropertyExW(classguid, propertykey, propertytype, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags, machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiSetClassPropertyW(classguid: *const windows_core::GUID, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: super::Properties::DEVPROPTYPE, propertybuffer: Option<&[u8]>, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassPropertyW(classguid : *const windows_core::GUID, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassPropertyW(classguid : *const windows_core::GUID, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, flags : u32) -> windows_core::BOOL); unsafe { SetupDiSetClassPropertyW(classguid, propertykey, propertytype, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags).ok() } } #[inline] @@ -2594,7 +2594,7 @@ pub unsafe fn SetupDiSetClassRegistryPropertyA(classguid: *const windows_cor where P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassRegistryPropertyA(classguid : *const windows_core::GUID, property : u32, propertybuffer : *const u8, propertybuffersize : u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassRegistryPropertyA(classguid : *const windows_core::GUID, property : u32, propertybuffer : *const u8, propertybuffersize : u32, machinename : windows_core::PCSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiSetClassRegistryPropertyA(classguid, property, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2602,74 +2602,74 @@ pub unsafe fn SetupDiSetClassRegistryPropertyW(classguid: *const windows_cor where P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassRegistryPropertyW(classguid : *const windows_core::GUID, property : u32, propertybuffer : *const u8, propertybuffersize : u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSetClassRegistryPropertyW(classguid : *const windows_core::GUID, property : u32, propertybuffer : *const u8, propertybuffersize : u32, machinename : windows_core::PCWSTR, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiSetClassRegistryPropertyW(classguid, property, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), machinename.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiSetDeviceInstallParamsA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, deviceinstallparams: *const SP_DEVINSTALL_PARAMS_A) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceInstallParamsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, deviceinstallparams : *const SP_DEVINSTALL_PARAMS_A) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceInstallParamsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, deviceinstallparams : *const SP_DEVINSTALL_PARAMS_A) -> windows_core::BOOL); unsafe { SetupDiSetDeviceInstallParamsA(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, deviceinstallparams).ok() } } #[inline] pub unsafe fn SetupDiSetDeviceInstallParamsW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, deviceinstallparams: *const SP_DEVINSTALL_PARAMS_W) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceInstallParamsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, deviceinstallparams : *const SP_DEVINSTALL_PARAMS_W) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceInstallParamsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, deviceinstallparams : *const SP_DEVINSTALL_PARAMS_W) -> windows_core::BOOL); unsafe { SetupDiSetDeviceInstallParamsW(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, deviceinstallparams).ok() } } #[inline] pub unsafe fn SetupDiSetDeviceInterfaceDefault(deviceinfoset: HDEVINFO, deviceinterfacedata: *mut SP_DEVICE_INTERFACE_DATA, flags: u32, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceInterfaceDefault(deviceinfoset : HDEVINFO, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA, flags : u32, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceInterfaceDefault(deviceinfoset : HDEVINFO, deviceinterfacedata : *mut SP_DEVICE_INTERFACE_DATA, flags : u32, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupDiSetDeviceInterfaceDefault(deviceinfoset, deviceinterfacedata as _, flags, reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiSetDeviceInterfacePropertyW(deviceinfoset: HDEVINFO, deviceinterfacedata: *const SP_DEVICE_INTERFACE_DATA, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: super::Properties::DEVPROPTYPE, propertybuffer: Option<&[u8]>, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceInterfacePropertyW(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceInterfacePropertyW(deviceinfoset : HDEVINFO, deviceinterfacedata : *const SP_DEVICE_INTERFACE_DATA, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, flags : u32) -> windows_core::BOOL); unsafe { SetupDiSetDeviceInterfacePropertyW(deviceinfoset, deviceinterfacedata, propertykey, propertytype, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags).ok() } } #[cfg(feature = "Win32_Devices_Properties")] #[inline] pub unsafe fn SetupDiSetDevicePropertyW(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA, propertykey: *const super::super::Foundation::DEVPROPKEY, propertytype: super::Properties::DEVPROPTYPE, propertybuffer: Option<&[u8]>, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDevicePropertyW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDevicePropertyW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, propertykey : *const super::super::Foundation:: DEVPROPKEY, propertytype : super::Properties:: DEVPROPTYPE, propertybuffer : *const u8, propertybuffersize : u32, flags : u32) -> windows_core::BOOL); unsafe { SetupDiSetDevicePropertyW(deviceinfoset, deviceinfodata, propertykey, propertytype, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags).ok() } } #[inline] pub unsafe fn SetupDiSetDeviceRegistryPropertyA(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA, property: SETUP_DI_REGISTRY_PROPERTY, propertybuffer: Option<&[u8]>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceRegistryPropertyA(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA, property : SETUP_DI_REGISTRY_PROPERTY, propertybuffer : *const u8, propertybuffersize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceRegistryPropertyA(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA, property : SETUP_DI_REGISTRY_PROPERTY, propertybuffer : *const u8, propertybuffersize : u32) -> windows_core::BOOL); unsafe { SetupDiSetDeviceRegistryPropertyA(deviceinfoset, deviceinfodata as _, property, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } } #[inline] pub unsafe fn SetupDiSetDeviceRegistryPropertyW(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA, property: SETUP_DI_REGISTRY_PROPERTY, propertybuffer: Option<&[u8]>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceRegistryPropertyW(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA, property : SETUP_DI_REGISTRY_PROPERTY, propertybuffer : *const u8, propertybuffersize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDeviceRegistryPropertyW(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA, property : SETUP_DI_REGISTRY_PROPERTY, propertybuffer : *const u8, propertybuffersize : u32) -> windows_core::BOOL); unsafe { SetupDiSetDeviceRegistryPropertyW(deviceinfoset, deviceinfodata as _, property, core::mem::transmute(propertybuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), propertybuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } } #[inline] pub unsafe fn SetupDiSetDriverInstallParamsA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *const SP_DRVINFO_DATA_V2_A, driverinstallparams: *const SP_DRVINSTALL_PARAMS) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDriverInstallParamsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_A, driverinstallparams : *const SP_DRVINSTALL_PARAMS) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDriverInstallParamsA(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_A, driverinstallparams : *const SP_DRVINSTALL_PARAMS) -> windows_core::BOOL); unsafe { SetupDiSetDriverInstallParamsA(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, driverinfodata, driverinstallparams).ok() } } #[inline] pub unsafe fn SetupDiSetDriverInstallParamsW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*const SP_DEVINFO_DATA>, driverinfodata: *const SP_DRVINFO_DATA_V2_W, driverinstallparams: *const SP_DRVINSTALL_PARAMS) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDriverInstallParamsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_W, driverinstallparams : *const SP_DRVINSTALL_PARAMS) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSetDriverInstallParamsW(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, driverinfodata : *const SP_DRVINFO_DATA_V2_W, driverinstallparams : *const SP_DRVINSTALL_PARAMS) -> windows_core::BOOL); unsafe { SetupDiSetDriverInstallParamsW(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, driverinfodata, driverinstallparams).ok() } } #[inline] pub unsafe fn SetupDiSetSelectedDevice(deviceinfoset: HDEVINFO, deviceinfodata: *const SP_DEVINFO_DATA) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSetSelectedDevice(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSetSelectedDevice(deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiSetSelectedDevice(deviceinfoset, deviceinfodata).ok() } } #[inline] pub unsafe fn SetupDiSetSelectedDriverA(deviceinfoset: HDEVINFO, deviceinfodata: Option<*mut SP_DEVINFO_DATA>, driverinfodata: Option<*mut SP_DRVINFO_DATA_V2_A>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSetSelectedDriverA(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA, driverinfodata : *mut SP_DRVINFO_DATA_V2_A) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSetSelectedDriverA(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA, driverinfodata : *mut SP_DRVINFO_DATA_V2_A) -> windows_core::BOOL); unsafe { SetupDiSetSelectedDriverA(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, driverinfodata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiSetSelectedDriverW(deviceinfoset: HDEVINFO, deviceinfodata: Option<*mut SP_DEVINFO_DATA>, driverinfodata: Option<*mut SP_DRVINFO_DATA_V2_W>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiSetSelectedDriverW(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA, driverinfodata : *mut SP_DRVINFO_DATA_V2_W) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiSetSelectedDriverW(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA, driverinfodata : *mut SP_DRVINFO_DATA_V2_W) -> windows_core::BOOL); unsafe { SetupDiSetSelectedDriverW(deviceinfoset, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, driverinfodata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupDiUnremoveDevice(deviceinfoset: HDEVINFO, deviceinfodata: *mut SP_DEVINFO_DATA) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupDiUnremoveDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupDiUnremoveDevice(deviceinfoset : HDEVINFO, deviceinfodata : *mut SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupDiUnremoveDevice(deviceinfoset, deviceinfodata as _).ok() } } #[inline] @@ -2684,12 +2684,12 @@ pub unsafe fn SetupDuplicateDiskSpaceListW(diskspace: *const core::ffi::c_void, } #[inline] pub unsafe fn SetupEnumInfSectionsA(infhandle: *const core::ffi::c_void, index: u32, buffer: Option<&mut [u8]>, sizeneeded: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupEnumInfSectionsA(infhandle : *const core::ffi::c_void, index : u32, buffer : windows_core::PSTR, size : u32, sizeneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupEnumInfSectionsA(infhandle : *const core::ffi::c_void, index : u32, buffer : windows_core::PSTR, size : u32, sizeneeded : *mut u32) -> windows_core::BOOL); unsafe { SetupEnumInfSectionsA(infhandle, index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), sizeneeded.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupEnumInfSectionsW(infhandle: *const core::ffi::c_void, index: u32, buffer: Option<&mut [u16]>, sizeneeded: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupEnumInfSectionsW(infhandle : *const core::ffi::c_void, index : u32, buffer : windows_core::PWSTR, size : u32, sizeneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupEnumInfSectionsW(infhandle : *const core::ffi::c_void, index : u32, buffer : windows_core::PWSTR, size : u32, sizeneeded : *mut u32) -> windows_core::BOOL); unsafe { SetupEnumInfSectionsW(infhandle, index, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), sizeneeded.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2698,7 +2698,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupFindFirstLineA(infhandle : *const core::ffi::c_void, section : windows_core::PCSTR, key : windows_core::PCSTR, context : *mut INFCONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupFindFirstLineA(infhandle : *const core::ffi::c_void, section : windows_core::PCSTR, key : windows_core::PCSTR, context : *mut INFCONTEXT) -> windows_core::BOOL); unsafe { SetupFindFirstLineA(infhandle, section.param().abi(), key.param().abi(), context as _).ok() } } #[inline] @@ -2707,12 +2707,12 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupFindFirstLineW(infhandle : *const core::ffi::c_void, section : windows_core::PCWSTR, key : windows_core::PCWSTR, context : *mut INFCONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupFindFirstLineW(infhandle : *const core::ffi::c_void, section : windows_core::PCWSTR, key : windows_core::PCWSTR, context : *mut INFCONTEXT) -> windows_core::BOOL); unsafe { SetupFindFirstLineW(infhandle, section.param().abi(), key.param().abi(), context as _).ok() } } #[inline] pub unsafe fn SetupFindNextLine(contextin: *const INFCONTEXT, contextout: *mut INFCONTEXT) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupFindNextLine(contextin : *const INFCONTEXT, contextout : *mut INFCONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupFindNextLine(contextin : *const INFCONTEXT, contextout : *mut INFCONTEXT) -> windows_core::BOOL); unsafe { SetupFindNextLine(contextin, contextout as _).ok() } } #[inline] @@ -2720,7 +2720,7 @@ pub unsafe fn SetupFindNextMatchLineA(contextin: *const INFCONTEXT, key: P1, where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupFindNextMatchLineA(contextin : *const INFCONTEXT, key : windows_core::PCSTR, contextout : *mut INFCONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupFindNextMatchLineA(contextin : *const INFCONTEXT, key : windows_core::PCSTR, contextout : *mut INFCONTEXT) -> windows_core::BOOL); unsafe { SetupFindNextMatchLineA(contextin, key.param().abi(), contextout as _).ok() } } #[inline] @@ -2728,32 +2728,32 @@ pub unsafe fn SetupFindNextMatchLineW(contextin: *const INFCONTEXT, key: P1, where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupFindNextMatchLineW(contextin : *const INFCONTEXT, key : windows_core::PCWSTR, contextout : *mut INFCONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupFindNextMatchLineW(contextin : *const INFCONTEXT, key : windows_core::PCWSTR, contextout : *mut INFCONTEXT) -> windows_core::BOOL); unsafe { SetupFindNextMatchLineW(contextin, key.param().abi(), contextout as _).ok() } } #[inline] pub unsafe fn SetupFreeSourceListA(list: &mut [*mut windows_core::PCSTR]) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupFreeSourceListA(list : *mut *mut windows_core::PCSTR, count : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupFreeSourceListA(list : *mut *mut windows_core::PCSTR, count : u32) -> windows_core::BOOL); unsafe { SetupFreeSourceListA(core::mem::transmute(list.as_ptr()), list.len().try_into().unwrap()).ok() } } #[inline] pub unsafe fn SetupFreeSourceListW(list: &mut [*mut windows_core::PCWSTR]) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupFreeSourceListW(list : *mut *mut windows_core::PCWSTR, count : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupFreeSourceListW(list : *mut *mut windows_core::PCWSTR, count : u32) -> windows_core::BOOL); unsafe { SetupFreeSourceListW(core::mem::transmute(list.as_ptr()), list.len().try_into().unwrap()).ok() } } #[inline] -pub unsafe fn SetupGetBackupInformationA(queuehandle: *const core::ffi::c_void, backupparams: *mut SP_BACKUP_QUEUE_PARAMS_V2_A) -> super::super::Foundation::BOOL { - windows_targets::link!("setupapi.dll" "system" fn SetupGetBackupInformationA(queuehandle : *const core::ffi::c_void, backupparams : *mut SP_BACKUP_QUEUE_PARAMS_V2_A) -> super::super::Foundation:: BOOL); +pub unsafe fn SetupGetBackupInformationA(queuehandle: *const core::ffi::c_void, backupparams: *mut SP_BACKUP_QUEUE_PARAMS_V2_A) -> windows_core::BOOL { + windows_targets::link!("setupapi.dll" "system" fn SetupGetBackupInformationA(queuehandle : *const core::ffi::c_void, backupparams : *mut SP_BACKUP_QUEUE_PARAMS_V2_A) -> windows_core::BOOL); unsafe { SetupGetBackupInformationA(queuehandle, backupparams as _) } } #[inline] -pub unsafe fn SetupGetBackupInformationW(queuehandle: *const core::ffi::c_void, backupparams: *mut SP_BACKUP_QUEUE_PARAMS_V2_W) -> super::super::Foundation::BOOL { - windows_targets::link!("setupapi.dll" "system" fn SetupGetBackupInformationW(queuehandle : *const core::ffi::c_void, backupparams : *mut SP_BACKUP_QUEUE_PARAMS_V2_W) -> super::super::Foundation:: BOOL); +pub unsafe fn SetupGetBackupInformationW(queuehandle: *const core::ffi::c_void, backupparams: *mut SP_BACKUP_QUEUE_PARAMS_V2_W) -> windows_core::BOOL { + windows_targets::link!("setupapi.dll" "system" fn SetupGetBackupInformationW(queuehandle : *const core::ffi::c_void, backupparams : *mut SP_BACKUP_QUEUE_PARAMS_V2_W) -> windows_core::BOOL); unsafe { SetupGetBackupInformationW(queuehandle, backupparams as _) } } #[inline] pub unsafe fn SetupGetBinaryField(context: *const INFCONTEXT, fieldindex: u32, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupGetBinaryField(context : *const INFCONTEXT, fieldindex : u32, returnbuffer : *mut u8, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetBinaryField(context : *const INFCONTEXT, fieldindex : u32, returnbuffer : *mut u8, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetBinaryField(context, fieldindex, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2774,7 +2774,7 @@ pub unsafe fn SetupGetFileCompressionInfoExA(sourcefilename: P0, actualsourc where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupGetFileCompressionInfoExA(sourcefilename : windows_core::PCSTR, actualsourcefilenamebuffer : windows_core::PCSTR, actualsourcefilenamebufferlen : u32, requiredbufferlen : *mut u32, sourcefilesize : *mut u32, targetfilesize : *mut u32, compressiontype : *mut FILE_COMPRESSION_TYPE) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetFileCompressionInfoExA(sourcefilename : windows_core::PCSTR, actualsourcefilenamebuffer : windows_core::PCSTR, actualsourcefilenamebufferlen : u32, requiredbufferlen : *mut u32, sourcefilesize : *mut u32, targetfilesize : *mut u32, compressiontype : *mut FILE_COMPRESSION_TYPE) -> windows_core::BOOL); unsafe { SetupGetFileCompressionInfoExA(sourcefilename.param().abi(), core::mem::transmute(actualsourcefilenamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), actualsourcefilenamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredbufferlen.unwrap_or(core::mem::zeroed()) as _, sourcefilesize as _, targetfilesize as _, compressiontype as _).ok() } } #[inline] @@ -2782,7 +2782,7 @@ pub unsafe fn SetupGetFileCompressionInfoExW(sourcefilename: P0, actualsourc where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupGetFileCompressionInfoExW(sourcefilename : windows_core::PCWSTR, actualsourcefilenamebuffer : windows_core::PCWSTR, actualsourcefilenamebufferlen : u32, requiredbufferlen : *mut u32, sourcefilesize : *mut u32, targetfilesize : *mut u32, compressiontype : *mut FILE_COMPRESSION_TYPE) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetFileCompressionInfoExW(sourcefilename : windows_core::PCWSTR, actualsourcefilenamebuffer : windows_core::PCWSTR, actualsourcefilenamebufferlen : u32, requiredbufferlen : *mut u32, sourcefilesize : *mut u32, targetfilesize : *mut u32, compressiontype : *mut FILE_COMPRESSION_TYPE) -> windows_core::BOOL); unsafe { SetupGetFileCompressionInfoExW(sourcefilename.param().abi(), core::mem::transmute(actualsourcefilenamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), actualsourcefilenamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredbufferlen.unwrap_or(core::mem::zeroed()) as _, sourcefilesize as _, targetfilesize as _, compressiontype as _).ok() } } #[inline] @@ -2795,12 +2795,12 @@ where } #[inline] pub unsafe fn SetupGetFileQueueCount(filequeue: *const core::ffi::c_void, subqueuefileop: u32, numoperations: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupGetFileQueueCount(filequeue : *const core::ffi::c_void, subqueuefileop : u32, numoperations : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetFileQueueCount(filequeue : *const core::ffi::c_void, subqueuefileop : u32, numoperations : *mut u32) -> windows_core::BOOL); unsafe { SetupGetFileQueueCount(filequeue, subqueuefileop, numoperations as _).ok() } } #[inline] pub unsafe fn SetupGetFileQueueFlags(filequeue: *const core::ffi::c_void, flags: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupGetFileQueueFlags(filequeue : *const core::ffi::c_void, flags : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetFileQueueFlags(filequeue : *const core::ffi::c_void, flags : *mut u32) -> windows_core::BOOL); unsafe { SetupGetFileQueueFlags(filequeue, flags as _).ok() } } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] @@ -2810,7 +2810,7 @@ where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupGetInfDriverStoreLocationA(filename : windows_core::PCSTR, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, localename : windows_core::PCSTR, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetInfDriverStoreLocationA(filename : windows_core::PCSTR, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, localename : windows_core::PCSTR, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetInfDriverStoreLocationA(filename.param().abi(), alternateplatforminfo.unwrap_or(core::mem::zeroed()) as _, localename.param().abi(), core::mem::transmute(returnbuffer.as_ptr()), returnbuffer.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] @@ -2820,7 +2820,7 @@ where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupGetInfDriverStoreLocationW(filename : windows_core::PCWSTR, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, localename : windows_core::PCWSTR, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetInfDriverStoreLocationW(filename : windows_core::PCWSTR, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, localename : windows_core::PCWSTR, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetInfDriverStoreLocationW(filename.param().abi(), alternateplatforminfo.unwrap_or(core::mem::zeroed()) as _, localename.param().abi(), core::mem::transmute(returnbuffer.as_ptr()), returnbuffer.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2828,7 +2828,7 @@ pub unsafe fn SetupGetInfFileListA(directorypath: P0, infstyle: INF_STYLE, r where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupGetInfFileListA(directorypath : windows_core::PCSTR, infstyle : INF_STYLE, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetInfFileListA(directorypath : windows_core::PCSTR, infstyle : INF_STYLE, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetInfFileListA(directorypath.param().abi(), infstyle, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2836,17 +2836,17 @@ pub unsafe fn SetupGetInfFileListW(directorypath: P0, infstyle: INF_STYLE, r where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupGetInfFileListW(directorypath : windows_core::PCWSTR, infstyle : INF_STYLE, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetInfFileListW(directorypath : windows_core::PCWSTR, infstyle : INF_STYLE, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetInfFileListW(directorypath.param().abi(), infstyle, core::mem::transmute(returnbuffer.as_ptr()), returnbuffer.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupGetInfInformationA(infspec: *const core::ffi::c_void, searchcontrol: u32, returnbuffer: Option<*mut SP_INF_INFORMATION>, returnbuffersize: u32, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupGetInfInformationA(infspec : *const core::ffi::c_void, searchcontrol : u32, returnbuffer : *mut SP_INF_INFORMATION, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetInfInformationA(infspec : *const core::ffi::c_void, searchcontrol : u32, returnbuffer : *mut SP_INF_INFORMATION, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetInfInformationA(infspec, searchcontrol, returnbuffer.unwrap_or(core::mem::zeroed()) as _, returnbuffersize, requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupGetInfInformationW(infspec: *const core::ffi::c_void, searchcontrol: u32, returnbuffer: Option<*mut SP_INF_INFORMATION>, returnbuffersize: u32, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupGetInfInformationW(infspec : *const core::ffi::c_void, searchcontrol : u32, returnbuffer : *mut SP_INF_INFORMATION, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetInfInformationW(infspec : *const core::ffi::c_void, searchcontrol : u32, returnbuffer : *mut SP_INF_INFORMATION, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetInfInformationW(infspec, searchcontrol, returnbuffer.unwrap_or(core::mem::zeroed()) as _, returnbuffersize, requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2854,7 +2854,7 @@ pub unsafe fn SetupGetInfPublishedNameA(driverstorelocation: P0, returnbuffe where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupGetInfPublishedNameA(driverstorelocation : windows_core::PCSTR, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetInfPublishedNameA(driverstorelocation : windows_core::PCSTR, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetInfPublishedNameA(driverstorelocation.param().abi(), core::mem::transmute(returnbuffer.as_ptr()), returnbuffer.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2862,12 +2862,12 @@ pub unsafe fn SetupGetInfPublishedNameW(driverstorelocation: P0, returnbuffe where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupGetInfPublishedNameW(driverstorelocation : windows_core::PCWSTR, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetInfPublishedNameW(driverstorelocation : windows_core::PCWSTR, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetInfPublishedNameW(driverstorelocation.param().abi(), core::mem::transmute(returnbuffer.as_ptr()), returnbuffer.len().try_into().unwrap(), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupGetIntField(context: *const INFCONTEXT, fieldindex: u32, integervalue: *mut i32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupGetIntField(context : *const INFCONTEXT, fieldindex : u32, integervalue : *mut i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetIntField(context : *const INFCONTEXT, fieldindex : u32, integervalue : *mut i32) -> windows_core::BOOL); unsafe { SetupGetIntField(context, fieldindex, integervalue as _).ok() } } #[inline] @@ -2875,7 +2875,7 @@ pub unsafe fn SetupGetLineByIndexA(infhandle: *const core::ffi::c_void, sect where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupGetLineByIndexA(infhandle : *const core::ffi::c_void, section : windows_core::PCSTR, index : u32, context : *mut INFCONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetLineByIndexA(infhandle : *const core::ffi::c_void, section : windows_core::PCSTR, index : u32, context : *mut INFCONTEXT) -> windows_core::BOOL); unsafe { SetupGetLineByIndexA(infhandle, section.param().abi(), index, context as _).ok() } } #[inline] @@ -2883,7 +2883,7 @@ pub unsafe fn SetupGetLineByIndexW(infhandle: *const core::ffi::c_void, sect where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupGetLineByIndexW(infhandle : *const core::ffi::c_void, section : windows_core::PCWSTR, index : u32, context : *mut INFCONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetLineByIndexW(infhandle : *const core::ffi::c_void, section : windows_core::PCWSTR, index : u32, context : *mut INFCONTEXT) -> windows_core::BOOL); unsafe { SetupGetLineByIndexW(infhandle, section.param().abi(), index, context as _).ok() } } #[inline] @@ -2908,7 +2908,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupGetLineTextA(context : *const INFCONTEXT, infhandle : *const core::ffi::c_void, section : windows_core::PCSTR, key : windows_core::PCSTR, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetLineTextA(context : *const INFCONTEXT, infhandle : *const core::ffi::c_void, section : windows_core::PCSTR, key : windows_core::PCSTR, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetLineTextA(context.unwrap_or(core::mem::zeroed()) as _, infhandle.unwrap_or(core::mem::zeroed()) as _, section.param().abi(), key.param().abi(), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2917,22 +2917,22 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupGetLineTextW(context : *const INFCONTEXT, infhandle : *const core::ffi::c_void, section : windows_core::PCWSTR, key : windows_core::PCWSTR, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetLineTextW(context : *const INFCONTEXT, infhandle : *const core::ffi::c_void, section : windows_core::PCWSTR, key : windows_core::PCWSTR, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetLineTextW(context.unwrap_or(core::mem::zeroed()) as _, infhandle.unwrap_or(core::mem::zeroed()) as _, section.param().abi(), key.param().abi(), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupGetMultiSzFieldA(context: *const INFCONTEXT, fieldindex: u32, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupGetMultiSzFieldA(context : *const INFCONTEXT, fieldindex : u32, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetMultiSzFieldA(context : *const INFCONTEXT, fieldindex : u32, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetMultiSzFieldA(context, fieldindex, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupGetMultiSzFieldW(context: *const INFCONTEXT, fieldindex: u32, returnbuffer: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupGetMultiSzFieldW(context : *const INFCONTEXT, fieldindex : u32, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetMultiSzFieldW(context : *const INFCONTEXT, fieldindex : u32, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetMultiSzFieldW(context, fieldindex, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn SetupGetNonInteractiveMode() -> super::super::Foundation::BOOL { - windows_targets::link!("setupapi.dll" "system" fn SetupGetNonInteractiveMode() -> super::super::Foundation:: BOOL); +pub unsafe fn SetupGetNonInteractiveMode() -> windows_core::BOOL { + windows_targets::link!("setupapi.dll" "system" fn SetupGetNonInteractiveMode() -> windows_core::BOOL); unsafe { SetupGetNonInteractiveMode() } } #[inline] @@ -2940,7 +2940,7 @@ pub unsafe fn SetupGetSourceFileLocationA(infhandle: *const core::ffi::c_voi where P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupGetSourceFileLocationA(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, filename : windows_core::PCSTR, sourceid : *mut u32, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetSourceFileLocationA(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, filename : windows_core::PCSTR, sourceid : *mut u32, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetSourceFileLocationA(infhandle, infcontext.unwrap_or(core::mem::zeroed()) as _, filename.param().abi(), sourceid as _, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2948,7 +2948,7 @@ pub unsafe fn SetupGetSourceFileLocationW(infhandle: *const core::ffi::c_voi where P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupGetSourceFileLocationW(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, filename : windows_core::PCWSTR, sourceid : *mut u32, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetSourceFileLocationW(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, filename : windows_core::PCWSTR, sourceid : *mut u32, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetSourceFileLocationW(infhandle, infcontext.unwrap_or(core::mem::zeroed()) as _, filename.param().abi(), sourceid as _, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2957,7 +2957,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupGetSourceFileSizeA(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, filename : windows_core::PCSTR, section : windows_core::PCSTR, filesize : *mut u32, roundingfactor : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetSourceFileSizeA(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, filename : windows_core::PCSTR, section : windows_core::PCSTR, filesize : *mut u32, roundingfactor : u32) -> windows_core::BOOL); unsafe { SetupGetSourceFileSizeA(infhandle, infcontext.unwrap_or(core::mem::zeroed()) as _, filename.param().abi(), section.param().abi(), filesize as _, roundingfactor).ok() } } #[inline] @@ -2966,27 +2966,27 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupGetSourceFileSizeW(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, filename : windows_core::PCWSTR, section : windows_core::PCWSTR, filesize : *mut u32, roundingfactor : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetSourceFileSizeW(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, filename : windows_core::PCWSTR, section : windows_core::PCWSTR, filesize : *mut u32, roundingfactor : u32) -> windows_core::BOOL); unsafe { SetupGetSourceFileSizeW(infhandle, infcontext.unwrap_or(core::mem::zeroed()) as _, filename.param().abi(), section.param().abi(), filesize as _, roundingfactor).ok() } } #[inline] pub unsafe fn SetupGetSourceInfoA(infhandle: *const core::ffi::c_void, sourceid: u32, infodesired: u32, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupGetSourceInfoA(infhandle : *const core::ffi::c_void, sourceid : u32, infodesired : u32, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetSourceInfoA(infhandle : *const core::ffi::c_void, sourceid : u32, infodesired : u32, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetSourceInfoA(infhandle, sourceid, infodesired, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupGetSourceInfoW(infhandle: *const core::ffi::c_void, sourceid: u32, infodesired: u32, returnbuffer: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupGetSourceInfoW(infhandle : *const core::ffi::c_void, sourceid : u32, infodesired : u32, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetSourceInfoW(infhandle : *const core::ffi::c_void, sourceid : u32, infodesired : u32, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetSourceInfoW(infhandle, sourceid, infodesired, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupGetStringFieldA(context: *const INFCONTEXT, fieldindex: u32, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupGetStringFieldA(context : *const INFCONTEXT, fieldindex : u32, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetStringFieldA(context : *const INFCONTEXT, fieldindex : u32, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetStringFieldA(context, fieldindex, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupGetStringFieldW(context: *const INFCONTEXT, fieldindex: u32, returnbuffer: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupGetStringFieldW(context : *const INFCONTEXT, fieldindex : u32, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetStringFieldW(context : *const INFCONTEXT, fieldindex : u32, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetStringFieldW(context, fieldindex, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2994,7 +2994,7 @@ pub unsafe fn SetupGetTargetPathA(infhandle: *const core::ffi::c_void, infco where P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupGetTargetPathA(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, section : windows_core::PCSTR, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetTargetPathA(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, section : windows_core::PCSTR, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetTargetPathA(infhandle, infcontext.unwrap_or(core::mem::zeroed()) as _, section.param().abi(), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3002,7 +3002,7 @@ pub unsafe fn SetupGetTargetPathW(infhandle: *const core::ffi::c_void, infco where P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupGetTargetPathW(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, section : windows_core::PCWSTR, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupGetTargetPathW(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, section : windows_core::PCWSTR, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupGetTargetPathW(infhandle, infcontext.unwrap_or(core::mem::zeroed()) as _, section.param().abi(), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3043,27 +3043,27 @@ where P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupInstallFileA(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, sourcefile : windows_core::PCSTR, sourcepathroot : windows_core::PCSTR, destinationname : windows_core::PCSTR, copystyle : SP_COPY_STYLE, copymsghandler : PSP_FILE_CALLBACK_A, context : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupInstallFileA(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, sourcefile : windows_core::PCSTR, sourcepathroot : windows_core::PCSTR, destinationname : windows_core::PCSTR, copystyle : SP_COPY_STYLE, copymsghandler : PSP_FILE_CALLBACK_A, context : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupInstallFileA(infhandle.unwrap_or(core::mem::zeroed()) as _, infcontext.unwrap_or(core::mem::zeroed()) as _, sourcefile.param().abi(), sourcepathroot.param().abi(), destinationname.param().abi(), copystyle, copymsghandler.unwrap_or(core::mem::zeroed()) as _, context.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn SetupInstallFileExA(infhandle: Option<*const core::ffi::c_void>, infcontext: Option<*const INFCONTEXT>, sourcefile: P2, sourcepathroot: P3, destinationname: P4, copystyle: SP_COPY_STYLE, copymsghandler: Option, context: Option<*const core::ffi::c_void>, filewasinuse: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> +pub unsafe fn SetupInstallFileExA(infhandle: Option<*const core::ffi::c_void>, infcontext: Option<*const INFCONTEXT>, sourcefile: P2, sourcepathroot: P3, destinationname: P4, copystyle: SP_COPY_STYLE, copymsghandler: Option, context: Option<*const core::ffi::c_void>, filewasinuse: *mut windows_core::BOOL) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupInstallFileExA(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, sourcefile : windows_core::PCSTR, sourcepathroot : windows_core::PCSTR, destinationname : windows_core::PCSTR, copystyle : SP_COPY_STYLE, copymsghandler : PSP_FILE_CALLBACK_A, context : *const core::ffi::c_void, filewasinuse : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupInstallFileExA(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, sourcefile : windows_core::PCSTR, sourcepathroot : windows_core::PCSTR, destinationname : windows_core::PCSTR, copystyle : SP_COPY_STYLE, copymsghandler : PSP_FILE_CALLBACK_A, context : *const core::ffi::c_void, filewasinuse : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { SetupInstallFileExA(infhandle.unwrap_or(core::mem::zeroed()) as _, infcontext.unwrap_or(core::mem::zeroed()) as _, sourcefile.param().abi(), sourcepathroot.param().abi(), destinationname.param().abi(), copystyle, copymsghandler.unwrap_or(core::mem::zeroed()) as _, context.unwrap_or(core::mem::zeroed()) as _, filewasinuse as _).ok() } } #[inline] -pub unsafe fn SetupInstallFileExW(infhandle: Option<*const core::ffi::c_void>, infcontext: Option<*const INFCONTEXT>, sourcefile: P2, sourcepathroot: P3, destinationname: P4, copystyle: SP_COPY_STYLE, copymsghandler: Option, context: Option<*const core::ffi::c_void>, filewasinuse: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> +pub unsafe fn SetupInstallFileExW(infhandle: Option<*const core::ffi::c_void>, infcontext: Option<*const INFCONTEXT>, sourcefile: P2, sourcepathroot: P3, destinationname: P4, copystyle: SP_COPY_STYLE, copymsghandler: Option, context: Option<*const core::ffi::c_void>, filewasinuse: *mut windows_core::BOOL) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupInstallFileExW(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, sourcefile : windows_core::PCWSTR, sourcepathroot : windows_core::PCWSTR, destinationname : windows_core::PCWSTR, copystyle : SP_COPY_STYLE, copymsghandler : PSP_FILE_CALLBACK_W, context : *const core::ffi::c_void, filewasinuse : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupInstallFileExW(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, sourcefile : windows_core::PCWSTR, sourcepathroot : windows_core::PCWSTR, destinationname : windows_core::PCWSTR, copystyle : SP_COPY_STYLE, copymsghandler : PSP_FILE_CALLBACK_W, context : *const core::ffi::c_void, filewasinuse : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { SetupInstallFileExW(infhandle.unwrap_or(core::mem::zeroed()) as _, infcontext.unwrap_or(core::mem::zeroed()) as _, sourcefile.param().abi(), sourcepathroot.param().abi(), destinationname.param().abi(), copystyle, copymsghandler.unwrap_or(core::mem::zeroed()) as _, context.unwrap_or(core::mem::zeroed()) as _, filewasinuse as _).ok() } } #[inline] @@ -3073,7 +3073,7 @@ where P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupInstallFileW(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, sourcefile : windows_core::PCWSTR, sourcepathroot : windows_core::PCWSTR, destinationname : windows_core::PCWSTR, copystyle : SP_COPY_STYLE, copymsghandler : PSP_FILE_CALLBACK_W, context : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupInstallFileW(infhandle : *const core::ffi::c_void, infcontext : *const INFCONTEXT, sourcefile : windows_core::PCWSTR, sourcepathroot : windows_core::PCWSTR, destinationname : windows_core::PCWSTR, copystyle : SP_COPY_STYLE, copymsghandler : PSP_FILE_CALLBACK_W, context : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupInstallFileW(infhandle.unwrap_or(core::mem::zeroed()) as _, infcontext.unwrap_or(core::mem::zeroed()) as _, sourcefile.param().abi(), sourcepathroot.param().abi(), destinationname.param().abi(), copystyle, copymsghandler.unwrap_or(core::mem::zeroed()) as _, context.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3082,7 +3082,7 @@ where P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupInstallFilesFromInfSectionA(infhandle : *const core::ffi::c_void, layoutinfhandle : *const core::ffi::c_void, filequeue : *const core::ffi::c_void, sectionname : windows_core::PCSTR, sourcerootpath : windows_core::PCSTR, copyflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupInstallFilesFromInfSectionA(infhandle : *const core::ffi::c_void, layoutinfhandle : *const core::ffi::c_void, filequeue : *const core::ffi::c_void, sectionname : windows_core::PCSTR, sourcerootpath : windows_core::PCSTR, copyflags : u32) -> windows_core::BOOL); unsafe { SetupInstallFilesFromInfSectionA(infhandle, layoutinfhandle.unwrap_or(core::mem::zeroed()) as _, filequeue, sectionname.param().abi(), sourcerootpath.param().abi(), copyflags).ok() } } #[inline] @@ -3091,7 +3091,7 @@ where P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupInstallFilesFromInfSectionW(infhandle : *const core::ffi::c_void, layoutinfhandle : *const core::ffi::c_void, filequeue : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, sourcerootpath : windows_core::PCWSTR, copyflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupInstallFilesFromInfSectionW(infhandle : *const core::ffi::c_void, layoutinfhandle : *const core::ffi::c_void, filequeue : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, sourcerootpath : windows_core::PCWSTR, copyflags : u32) -> windows_core::BOOL); unsafe { SetupInstallFilesFromInfSectionW(infhandle, layoutinfhandle.unwrap_or(core::mem::zeroed()) as _, filequeue, sectionname.param().abi(), sourcerootpath.param().abi(), copyflags).ok() } } #[cfg(feature = "Win32_System_Registry")] @@ -3101,7 +3101,7 @@ where P2: windows_core::Param, P5: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupInstallFromInfSectionA(owner : super::super::Foundation:: HWND, infhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, flags : u32, relativekeyroot : super::super::System::Registry:: HKEY, sourcerootpath : windows_core::PCSTR, copyflags : u32, msghandler : PSP_FILE_CALLBACK_A, context : *const core::ffi::c_void, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupInstallFromInfSectionA(owner : super::super::Foundation:: HWND, infhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, flags : u32, relativekeyroot : super::super::System::Registry:: HKEY, sourcerootpath : windows_core::PCSTR, copyflags : u32, msghandler : PSP_FILE_CALLBACK_A, context : *const core::ffi::c_void, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupInstallFromInfSectionA(owner.unwrap_or(core::mem::zeroed()) as _, infhandle, sectionname.param().abi(), flags, relativekeyroot.unwrap_or(core::mem::zeroed()) as _, sourcerootpath.param().abi(), copyflags, msghandler.unwrap_or(core::mem::zeroed()) as _, context.unwrap_or(core::mem::zeroed()) as _, deviceinfoset.unwrap_or(core::mem::zeroed()) as _, deviceinfodata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_System_Registry")] @@ -3111,7 +3111,7 @@ where P2: windows_core::Param, P5: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupInstallFromInfSectionW(owner : super::super::Foundation:: HWND, infhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, flags : u32, relativekeyroot : super::super::System::Registry:: HKEY, sourcerootpath : windows_core::PCWSTR, copyflags : u32, msghandler : PSP_FILE_CALLBACK_W, context : *const core::ffi::c_void, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupInstallFromInfSectionW(owner : super::super::Foundation:: HWND, infhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, flags : u32, relativekeyroot : super::super::System::Registry:: HKEY, sourcerootpath : windows_core::PCWSTR, copyflags : u32, msghandler : PSP_FILE_CALLBACK_W, context : *const core::ffi::c_void, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA) -> windows_core::BOOL); unsafe { SetupInstallFromInfSectionW(owner.unwrap_or(core::mem::zeroed()) as _, infhandle, sectionname.param().abi(), flags, relativekeyroot.unwrap_or(core::mem::zeroed()) as _, sourcerootpath.param().abi(), copyflags, msghandler.unwrap_or(core::mem::zeroed()) as _, context.unwrap_or(core::mem::zeroed()) as _, deviceinfoset.unwrap_or(core::mem::zeroed()) as _, deviceinfodata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3119,7 +3119,7 @@ pub unsafe fn SetupInstallServicesFromInfSectionA(infhandle: *const core::ff where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupInstallServicesFromInfSectionA(infhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, flags : SPSVCINST_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupInstallServicesFromInfSectionA(infhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, flags : SPSVCINST_FLAGS) -> windows_core::BOOL); unsafe { SetupInstallServicesFromInfSectionA(infhandle, sectionname.param().abi(), flags).ok() } } #[inline] @@ -3127,7 +3127,7 @@ pub unsafe fn SetupInstallServicesFromInfSectionExA(infhandle: *const core:: where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupInstallServicesFromInfSectionExA(infhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, flags : SPSVCINST_FLAGS, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, reserved1 : *const core::ffi::c_void, reserved2 : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupInstallServicesFromInfSectionExA(infhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, flags : SPSVCINST_FLAGS, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, reserved1 : *const core::ffi::c_void, reserved2 : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupInstallServicesFromInfSectionExA(infhandle, sectionname.param().abi(), flags, deviceinfoset.unwrap_or(core::mem::zeroed()) as _, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3135,7 +3135,7 @@ pub unsafe fn SetupInstallServicesFromInfSectionExW(infhandle: *const core:: where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupInstallServicesFromInfSectionExW(infhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, flags : SPSVCINST_FLAGS, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, reserved1 : *const core::ffi::c_void, reserved2 : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupInstallServicesFromInfSectionExW(infhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, flags : SPSVCINST_FLAGS, deviceinfoset : HDEVINFO, deviceinfodata : *const SP_DEVINFO_DATA, reserved1 : *const core::ffi::c_void, reserved2 : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupInstallServicesFromInfSectionExW(infhandle, sectionname.param().abi(), flags, deviceinfoset.unwrap_or(core::mem::zeroed()) as _, deviceinfodata.unwrap_or(core::mem::zeroed()) as _, reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3143,7 +3143,7 @@ pub unsafe fn SetupInstallServicesFromInfSectionW(infhandle: *const core::ff where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupInstallServicesFromInfSectionW(infhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, flags : SPSVCINST_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupInstallServicesFromInfSectionW(infhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, flags : SPSVCINST_FLAGS) -> windows_core::BOOL); unsafe { SetupInstallServicesFromInfSectionW(infhandle, sectionname.param().abi(), flags).ok() } } #[inline] @@ -3151,7 +3151,7 @@ pub unsafe fn SetupIterateCabinetA(cabinetfile: P0, reserved: Option, m where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupIterateCabinetA(cabinetfile : windows_core::PCSTR, reserved : u32, msghandler : PSP_FILE_CALLBACK_A, context : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupIterateCabinetA(cabinetfile : windows_core::PCSTR, reserved : u32, msghandler : PSP_FILE_CALLBACK_A, context : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupIterateCabinetA(cabinetfile.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _, msghandler, context).ok() } } #[inline] @@ -3159,7 +3159,7 @@ pub unsafe fn SetupIterateCabinetW(cabinetfile: P0, reserved: Option, m where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupIterateCabinetW(cabinetfile : windows_core::PCWSTR, reserved : u32, msghandler : PSP_FILE_CALLBACK_W, context : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupIterateCabinetW(cabinetfile : windows_core::PCWSTR, reserved : u32, msghandler : PSP_FILE_CALLBACK_W, context : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupIterateCabinetW(cabinetfile.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _, msghandler, context).ok() } } #[inline] @@ -3167,7 +3167,7 @@ pub unsafe fn SetupLogErrorA(messagestring: P0, severity: u32) -> windows_co where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupLogErrorA(messagestring : windows_core::PCSTR, severity : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupLogErrorA(messagestring : windows_core::PCSTR, severity : u32) -> windows_core::BOOL); unsafe { SetupLogErrorA(messagestring.param().abi(), severity).ok() } } #[inline] @@ -3175,7 +3175,7 @@ pub unsafe fn SetupLogErrorW(messagestring: P0, severity: u32) -> windows_co where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupLogErrorW(messagestring : windows_core::PCWSTR, severity : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupLogErrorW(messagestring : windows_core::PCWSTR, severity : u32) -> windows_core::BOOL); unsafe { SetupLogErrorW(messagestring.param().abi(), severity).ok() } } #[inline] @@ -3188,7 +3188,7 @@ where P6: windows_core::Param, P7: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupLogFileA(fileloghandle : *const core::ffi::c_void, logsectionname : windows_core::PCSTR, sourcefilename : windows_core::PCSTR, targetfilename : windows_core::PCSTR, checksum : u32, disktagfile : windows_core::PCSTR, diskdescription : windows_core::PCSTR, otherinfo : windows_core::PCSTR, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupLogFileA(fileloghandle : *const core::ffi::c_void, logsectionname : windows_core::PCSTR, sourcefilename : windows_core::PCSTR, targetfilename : windows_core::PCSTR, checksum : u32, disktagfile : windows_core::PCSTR, diskdescription : windows_core::PCSTR, otherinfo : windows_core::PCSTR, flags : u32) -> windows_core::BOOL); unsafe { SetupLogFileA(fileloghandle, logsectionname.param().abi(), sourcefilename.param().abi(), targetfilename.param().abi(), checksum, disktagfile.param().abi(), diskdescription.param().abi(), otherinfo.param().abi(), flags).ok() } } #[inline] @@ -3201,7 +3201,7 @@ where P6: windows_core::Param, P7: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupLogFileW(fileloghandle : *const core::ffi::c_void, logsectionname : windows_core::PCWSTR, sourcefilename : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR, checksum : u32, disktagfile : windows_core::PCWSTR, diskdescription : windows_core::PCWSTR, otherinfo : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupLogFileW(fileloghandle : *const core::ffi::c_void, logsectionname : windows_core::PCWSTR, sourcefilename : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR, checksum : u32, disktagfile : windows_core::PCWSTR, diskdescription : windows_core::PCWSTR, otherinfo : windows_core::PCWSTR, flags : u32) -> windows_core::BOOL); unsafe { SetupLogFileW(fileloghandle, logsectionname.param().abi(), sourcefilename.param().abi(), targetfilename.param().abi(), checksum, disktagfile.param().abi(), diskdescription.param().abi(), otherinfo.param().abi(), flags).ok() } } #[inline] @@ -3209,7 +3209,7 @@ pub unsafe fn SetupOpenAppendInfFileA(filename: P0, infhandle: *const core:: where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupOpenAppendInfFileA(filename : windows_core::PCSTR, infhandle : *const core::ffi::c_void, errorline : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupOpenAppendInfFileA(filename : windows_core::PCSTR, infhandle : *const core::ffi::c_void, errorline : *mut u32) -> windows_core::BOOL); unsafe { SetupOpenAppendInfFileA(filename.param().abi(), infhandle, errorline.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3217,7 +3217,7 @@ pub unsafe fn SetupOpenAppendInfFileW(filename: P0, infhandle: *const core:: where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupOpenAppendInfFileW(filename : windows_core::PCWSTR, infhandle : *const core::ffi::c_void, errorline : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupOpenAppendInfFileW(filename : windows_core::PCWSTR, infhandle : *const core::ffi::c_void, errorline : *mut u32) -> windows_core::BOOL); unsafe { SetupOpenAppendInfFileW(filename.param().abi(), infhandle, errorline.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3245,7 +3245,7 @@ where } #[inline] pub unsafe fn SetupOpenLog(erase: bool) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupOpenLog(erase : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupOpenLog(erase : windows_core::BOOL) -> windows_core::BOOL); unsafe { SetupOpenLog(erase.into()).ok() } } #[inline] @@ -3254,19 +3254,19 @@ pub unsafe fn SetupOpenMasterInf() -> *mut core::ffi::c_void { unsafe { SetupOpenMasterInf() } } #[inline] -pub unsafe fn SetupPrepareQueueForRestoreA(queuehandle: *const core::ffi::c_void, backuppath: P1, restoreflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn SetupPrepareQueueForRestoreA(queuehandle: *const core::ffi::c_void, backuppath: P1, restoreflags: u32) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupPrepareQueueForRestoreA(queuehandle : *const core::ffi::c_void, backuppath : windows_core::PCSTR, restoreflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupPrepareQueueForRestoreA(queuehandle : *const core::ffi::c_void, backuppath : windows_core::PCSTR, restoreflags : u32) -> windows_core::BOOL); unsafe { SetupPrepareQueueForRestoreA(queuehandle, backuppath.param().abi(), restoreflags) } } #[inline] -pub unsafe fn SetupPrepareQueueForRestoreW(queuehandle: *const core::ffi::c_void, backuppath: P1, restoreflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn SetupPrepareQueueForRestoreW(queuehandle: *const core::ffi::c_void, backuppath: P1, restoreflags: u32) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupPrepareQueueForRestoreW(queuehandle : *const core::ffi::c_void, backuppath : windows_core::PCWSTR, restoreflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupPrepareQueueForRestoreW(queuehandle : *const core::ffi::c_void, backuppath : windows_core::PCWSTR, restoreflags : u32) -> windows_core::BOOL); unsafe { SetupPrepareQueueForRestoreW(queuehandle, backuppath.param().abi(), restoreflags) } } #[inline] @@ -3295,17 +3295,17 @@ where } #[inline] pub unsafe fn SetupPromptReboot(filequeue: Option<*const core::ffi::c_void>, owner: Option, scanonly: bool) -> i32 { - windows_targets::link!("setupapi.dll" "system" fn SetupPromptReboot(filequeue : *const core::ffi::c_void, owner : super::super::Foundation:: HWND, scanonly : super::super::Foundation:: BOOL) -> i32); + windows_targets::link!("setupapi.dll" "system" fn SetupPromptReboot(filequeue : *const core::ffi::c_void, owner : super::super::Foundation:: HWND, scanonly : windows_core::BOOL) -> i32); unsafe { SetupPromptReboot(filequeue.unwrap_or(core::mem::zeroed()) as _, owner.unwrap_or(core::mem::zeroed()) as _, scanonly.into()) } } #[inline] pub unsafe fn SetupQueryDrivesInDiskSpaceListA(diskspace: *const core::ffi::c_void, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupQueryDrivesInDiskSpaceListA(diskspace : *const core::ffi::c_void, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueryDrivesInDiskSpaceListA(diskspace : *const core::ffi::c_void, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupQueryDrivesInDiskSpaceListA(diskspace, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupQueryDrivesInDiskSpaceListW(diskspace: *const core::ffi::c_void, returnbuffer: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupQueryDrivesInDiskSpaceListW(diskspace : *const core::ffi::c_void, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueryDrivesInDiskSpaceListW(diskspace : *const core::ffi::c_void, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupQueryDrivesInDiskSpaceListW(diskspace, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3314,7 +3314,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQueryFileLogA(fileloghandle : *const core::ffi::c_void, logsectionname : windows_core::PCSTR, targetfilename : windows_core::PCSTR, desiredinfo : SetupFileLogInfo, dataout : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueryFileLogA(fileloghandle : *const core::ffi::c_void, logsectionname : windows_core::PCSTR, targetfilename : windows_core::PCSTR, desiredinfo : SetupFileLogInfo, dataout : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupQueryFileLogA(fileloghandle, logsectionname.param().abi(), targetfilename.param().abi(), desiredinfo, core::mem::transmute(dataout.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dataout.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3323,29 +3323,29 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQueryFileLogW(fileloghandle : *const core::ffi::c_void, logsectionname : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR, desiredinfo : SetupFileLogInfo, dataout : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueryFileLogW(fileloghandle : *const core::ffi::c_void, logsectionname : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR, desiredinfo : SetupFileLogInfo, dataout : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupQueryFileLogW(fileloghandle, logsectionname.param().abi(), targetfilename.param().abi(), desiredinfo, core::mem::transmute(dataout.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dataout.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupQueryInfFileInformationA(infinformation: *const SP_INF_INFORMATION, infindex: u32, returnbuffer: Option<&mut [u8]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupQueryInfFileInformationA(infinformation : *const SP_INF_INFORMATION, infindex : u32, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueryInfFileInformationA(infinformation : *const SP_INF_INFORMATION, infindex : u32, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupQueryInfFileInformationA(infinformation, infindex, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupQueryInfFileInformationW(infinformation: *const SP_INF_INFORMATION, infindex: u32, returnbuffer: Option<&mut [u16]>, requiredsize: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupQueryInfFileInformationW(infinformation : *const SP_INF_INFORMATION, infindex : u32, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueryInfFileInformationW(infinformation : *const SP_INF_INFORMATION, infindex : u32, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupQueryInfFileInformationW(infinformation, infindex, core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetupQueryInfOriginalFileInformationA(infinformation: *const SP_INF_INFORMATION, infindex: u32, alternateplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, originalfileinfo: *mut SP_ORIGINAL_FILE_INFO_A) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupQueryInfOriginalFileInformationA(infinformation : *const SP_INF_INFORMATION, infindex : u32, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, originalfileinfo : *mut SP_ORIGINAL_FILE_INFO_A) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueryInfOriginalFileInformationA(infinformation : *const SP_INF_INFORMATION, infindex : u32, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, originalfileinfo : *mut SP_ORIGINAL_FILE_INFO_A) -> windows_core::BOOL); unsafe { SetupQueryInfOriginalFileInformationA(infinformation, infindex, alternateplatforminfo.unwrap_or(core::mem::zeroed()) as _, originalfileinfo as _).ok() } } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetupQueryInfOriginalFileInformationW(infinformation: *const SP_INF_INFORMATION, infindex: u32, alternateplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, originalfileinfo: *mut SP_ORIGINAL_FILE_INFO_W) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupQueryInfOriginalFileInformationW(infinformation : *const SP_INF_INFORMATION, infindex : u32, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, originalfileinfo : *mut SP_ORIGINAL_FILE_INFO_W) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueryInfOriginalFileInformationW(infinformation : *const SP_INF_INFORMATION, infindex : u32, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, originalfileinfo : *mut SP_ORIGINAL_FILE_INFO_W) -> windows_core::BOOL); unsafe { SetupQueryInfOriginalFileInformationW(infinformation, infindex, alternateplatforminfo.unwrap_or(core::mem::zeroed()) as _, originalfileinfo as _).ok() } } #[inline] @@ -3353,7 +3353,7 @@ pub unsafe fn SetupQueryInfVersionInformationA(infinformation: *const SP_INF where P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQueryInfVersionInformationA(infinformation : *const SP_INF_INFORMATION, infindex : u32, key : windows_core::PCSTR, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueryInfVersionInformationA(infinformation : *const SP_INF_INFORMATION, infindex : u32, key : windows_core::PCSTR, returnbuffer : windows_core::PSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupQueryInfVersionInformationA(infinformation, infindex, key.param().abi(), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3361,17 +3361,17 @@ pub unsafe fn SetupQueryInfVersionInformationW(infinformation: *const SP_INF where P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQueryInfVersionInformationW(infinformation : *const SP_INF_INFORMATION, infindex : u32, key : windows_core::PCWSTR, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueryInfVersionInformationW(infinformation : *const SP_INF_INFORMATION, infindex : u32, key : windows_core::PCWSTR, returnbuffer : windows_core::PWSTR, returnbuffersize : u32, requiredsize : *mut u32) -> windows_core::BOOL); unsafe { SetupQueryInfVersionInformationW(infinformation, infindex, key.param().abi(), core::mem::transmute(returnbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetupQuerySourceListA(flags: u32, list: *mut *mut windows_core::PCSTR, count: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupQuerySourceListA(flags : u32, list : *mut *mut windows_core::PCSTR, count : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQuerySourceListA(flags : u32, list : *mut *mut windows_core::PCSTR, count : *mut u32) -> windows_core::BOOL); unsafe { SetupQuerySourceListA(flags, list as _, count as _).ok() } } #[inline] pub unsafe fn SetupQuerySourceListW(flags: u32, list: *mut *mut windows_core::PCWSTR, count: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupQuerySourceListW(flags : u32, list : *mut *mut windows_core::PCWSTR, count : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQuerySourceListW(flags : u32, list : *mut *mut windows_core::PCWSTR, count : *mut u32) -> windows_core::BOOL); unsafe { SetupQuerySourceListW(flags, list as _, count as _).ok() } } #[inline] @@ -3379,7 +3379,7 @@ pub unsafe fn SetupQuerySpaceRequiredOnDriveA(diskspace: *const core::ffi::c where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQuerySpaceRequiredOnDriveA(diskspace : *const core::ffi::c_void, drivespec : windows_core::PCSTR, spacerequired : *mut i64, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQuerySpaceRequiredOnDriveA(diskspace : *const core::ffi::c_void, drivespec : windows_core::PCSTR, spacerequired : *mut i64, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> windows_core::BOOL); unsafe { SetupQuerySpaceRequiredOnDriveA(diskspace, drivespec.param().abi(), spacerequired as _, reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3387,7 +3387,7 @@ pub unsafe fn SetupQuerySpaceRequiredOnDriveW(diskspace: *const core::ffi::c where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQuerySpaceRequiredOnDriveW(diskspace : *const core::ffi::c_void, drivespec : windows_core::PCWSTR, spacerequired : *mut i64, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQuerySpaceRequiredOnDriveW(diskspace : *const core::ffi::c_void, drivespec : windows_core::PCWSTR, spacerequired : *mut i64, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> windows_core::BOOL); unsafe { SetupQuerySpaceRequiredOnDriveW(diskspace, drivespec.param().abi(), spacerequired as _, reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3401,17 +3401,17 @@ where P6: windows_core::Param, P7: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQueueCopyA(queuehandle : *const core::ffi::c_void, sourcerootpath : windows_core::PCSTR, sourcepath : windows_core::PCSTR, sourcefilename : windows_core::PCSTR, sourcedescription : windows_core::PCSTR, sourcetagfile : windows_core::PCSTR, targetdirectory : windows_core::PCSTR, targetfilename : windows_core::PCSTR, copystyle : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueueCopyA(queuehandle : *const core::ffi::c_void, sourcerootpath : windows_core::PCSTR, sourcepath : windows_core::PCSTR, sourcefilename : windows_core::PCSTR, sourcedescription : windows_core::PCSTR, sourcetagfile : windows_core::PCSTR, targetdirectory : windows_core::PCSTR, targetfilename : windows_core::PCSTR, copystyle : u32) -> windows_core::BOOL); unsafe { SetupQueueCopyA(queuehandle, sourcerootpath.param().abi(), sourcepath.param().abi(), sourcefilename.param().abi(), sourcedescription.param().abi(), sourcetagfile.param().abi(), targetdirectory.param().abi(), targetfilename.param().abi(), copystyle).ok() } } #[inline] pub unsafe fn SetupQueueCopyIndirectA(copyparams: *const SP_FILE_COPY_PARAMS_A) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupQueueCopyIndirectA(copyparams : *const SP_FILE_COPY_PARAMS_A) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueueCopyIndirectA(copyparams : *const SP_FILE_COPY_PARAMS_A) -> windows_core::BOOL); unsafe { SetupQueueCopyIndirectA(copyparams).ok() } } #[inline] pub unsafe fn SetupQueueCopyIndirectW(copyparams: *const SP_FILE_COPY_PARAMS_W) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupQueueCopyIndirectW(copyparams : *const SP_FILE_COPY_PARAMS_W) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueueCopyIndirectW(copyparams : *const SP_FILE_COPY_PARAMS_W) -> windows_core::BOOL); unsafe { SetupQueueCopyIndirectW(copyparams).ok() } } #[inline] @@ -3420,7 +3420,7 @@ where P1: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQueueCopySectionA(queuehandle : *const core::ffi::c_void, sourcerootpath : windows_core::PCSTR, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, section : windows_core::PCSTR, copystyle : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueueCopySectionA(queuehandle : *const core::ffi::c_void, sourcerootpath : windows_core::PCSTR, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, section : windows_core::PCSTR, copystyle : u32) -> windows_core::BOOL); unsafe { SetupQueueCopySectionA(queuehandle, sourcerootpath.param().abi(), infhandle, listinfhandle.unwrap_or(core::mem::zeroed()) as _, section.param().abi(), copystyle).ok() } } #[inline] @@ -3429,7 +3429,7 @@ where P1: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQueueCopySectionW(queuehandle : *const core::ffi::c_void, sourcerootpath : windows_core::PCWSTR, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, section : windows_core::PCWSTR, copystyle : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueueCopySectionW(queuehandle : *const core::ffi::c_void, sourcerootpath : windows_core::PCWSTR, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, section : windows_core::PCWSTR, copystyle : u32) -> windows_core::BOOL); unsafe { SetupQueueCopySectionW(queuehandle, sourcerootpath.param().abi(), infhandle, listinfhandle.unwrap_or(core::mem::zeroed()) as _, section.param().abi(), copystyle).ok() } } #[inline] @@ -3443,7 +3443,7 @@ where P6: windows_core::Param, P7: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQueueCopyW(queuehandle : *const core::ffi::c_void, sourcerootpath : windows_core::PCWSTR, sourcepath : windows_core::PCWSTR, sourcefilename : windows_core::PCWSTR, sourcedescription : windows_core::PCWSTR, sourcetagfile : windows_core::PCWSTR, targetdirectory : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR, copystyle : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueueCopyW(queuehandle : *const core::ffi::c_void, sourcerootpath : windows_core::PCWSTR, sourcepath : windows_core::PCWSTR, sourcefilename : windows_core::PCWSTR, sourcedescription : windows_core::PCWSTR, sourcetagfile : windows_core::PCWSTR, targetdirectory : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR, copystyle : u32) -> windows_core::BOOL); unsafe { SetupQueueCopyW(queuehandle, sourcerootpath.param().abi(), sourcepath.param().abi(), sourcefilename.param().abi(), sourcedescription.param().abi(), sourcetagfile.param().abi(), targetdirectory.param().abi(), targetfilename.param().abi(), copystyle).ok() } } #[inline] @@ -3453,7 +3453,7 @@ where P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQueueDefaultCopyA(queuehandle : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, sourcerootpath : windows_core::PCSTR, sourcefilename : windows_core::PCSTR, targetfilename : windows_core::PCSTR, copystyle : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueueDefaultCopyA(queuehandle : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, sourcerootpath : windows_core::PCSTR, sourcefilename : windows_core::PCSTR, targetfilename : windows_core::PCSTR, copystyle : u32) -> windows_core::BOOL); unsafe { SetupQueueDefaultCopyA(queuehandle, infhandle, sourcerootpath.param().abi(), sourcefilename.param().abi(), targetfilename.param().abi(), copystyle).ok() } } #[inline] @@ -3463,7 +3463,7 @@ where P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQueueDefaultCopyW(queuehandle : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, sourcerootpath : windows_core::PCWSTR, sourcefilename : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR, copystyle : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueueDefaultCopyW(queuehandle : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, sourcerootpath : windows_core::PCWSTR, sourcefilename : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR, copystyle : u32) -> windows_core::BOOL); unsafe { SetupQueueDefaultCopyW(queuehandle, infhandle, sourcerootpath.param().abi(), sourcefilename.param().abi(), targetfilename.param().abi(), copystyle).ok() } } #[inline] @@ -3472,7 +3472,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQueueDeleteA(queuehandle : *const core::ffi::c_void, pathpart1 : windows_core::PCSTR, pathpart2 : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueueDeleteA(queuehandle : *const core::ffi::c_void, pathpart1 : windows_core::PCSTR, pathpart2 : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetupQueueDeleteA(queuehandle, pathpart1.param().abi(), pathpart2.param().abi()).ok() } } #[inline] @@ -3480,7 +3480,7 @@ pub unsafe fn SetupQueueDeleteSectionA(queuehandle: *const core::ffi::c_void where P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQueueDeleteSectionA(queuehandle : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, section : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueueDeleteSectionA(queuehandle : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, section : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetupQueueDeleteSectionA(queuehandle, infhandle, listinfhandle.unwrap_or(core::mem::zeroed()) as _, section.param().abi()).ok() } } #[inline] @@ -3488,7 +3488,7 @@ pub unsafe fn SetupQueueDeleteSectionW(queuehandle: *const core::ffi::c_void where P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQueueDeleteSectionW(queuehandle : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, section : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueueDeleteSectionW(queuehandle : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, section : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetupQueueDeleteSectionW(queuehandle, infhandle, listinfhandle.unwrap_or(core::mem::zeroed()) as _, section.param().abi()).ok() } } #[inline] @@ -3497,7 +3497,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQueueDeleteW(queuehandle : *const core::ffi::c_void, pathpart1 : windows_core::PCWSTR, pathpart2 : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueueDeleteW(queuehandle : *const core::ffi::c_void, pathpart1 : windows_core::PCWSTR, pathpart2 : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetupQueueDeleteW(queuehandle, pathpart1.param().abi(), pathpart2.param().abi()).ok() } } #[inline] @@ -3508,7 +3508,7 @@ where P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQueueRenameA(queuehandle : *const core::ffi::c_void, sourcepath : windows_core::PCSTR, sourcefilename : windows_core::PCSTR, targetpath : windows_core::PCSTR, targetfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueueRenameA(queuehandle : *const core::ffi::c_void, sourcepath : windows_core::PCSTR, sourcefilename : windows_core::PCSTR, targetpath : windows_core::PCSTR, targetfilename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetupQueueRenameA(queuehandle, sourcepath.param().abi(), sourcefilename.param().abi(), targetpath.param().abi(), targetfilename.param().abi()).ok() } } #[inline] @@ -3516,7 +3516,7 @@ pub unsafe fn SetupQueueRenameSectionA(queuehandle: *const core::ffi::c_void where P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQueueRenameSectionA(queuehandle : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, section : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueueRenameSectionA(queuehandle : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, section : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetupQueueRenameSectionA(queuehandle, infhandle, listinfhandle.unwrap_or(core::mem::zeroed()) as _, section.param().abi()).ok() } } #[inline] @@ -3524,7 +3524,7 @@ pub unsafe fn SetupQueueRenameSectionW(queuehandle: *const core::ffi::c_void where P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQueueRenameSectionW(queuehandle : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, section : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueueRenameSectionW(queuehandle : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, section : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetupQueueRenameSectionW(queuehandle, infhandle, listinfhandle.unwrap_or(core::mem::zeroed()) as _, section.param().abi()).ok() } } #[inline] @@ -3535,7 +3535,7 @@ where P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupQueueRenameW(queuehandle : *const core::ffi::c_void, sourcepath : windows_core::PCWSTR, sourcefilename : windows_core::PCWSTR, targetpath : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupQueueRenameW(queuehandle : *const core::ffi::c_void, sourcepath : windows_core::PCWSTR, sourcefilename : windows_core::PCWSTR, targetpath : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetupQueueRenameW(queuehandle, sourcepath.param().abi(), sourcefilename.param().abi(), targetpath.param().abi(), targetfilename.param().abi()).ok() } } #[inline] @@ -3544,7 +3544,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFileLogEntryA(fileloghandle : *const core::ffi::c_void, logsectionname : windows_core::PCSTR, targetfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFileLogEntryA(fileloghandle : *const core::ffi::c_void, logsectionname : windows_core::PCSTR, targetfilename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetupRemoveFileLogEntryA(fileloghandle, logsectionname.param().abi(), targetfilename.param().abi()).ok() } } #[inline] @@ -3553,7 +3553,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFileLogEntryW(fileloghandle : *const core::ffi::c_void, logsectionname : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFileLogEntryW(fileloghandle : *const core::ffi::c_void, logsectionname : windows_core::PCWSTR, targetfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetupRemoveFileLogEntryW(fileloghandle, logsectionname.param().abi(), targetfilename.param().abi()).ok() } } #[inline] @@ -3561,7 +3561,7 @@ pub unsafe fn SetupRemoveFromDiskSpaceListA(diskspace: *const core::ffi::c_v where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFromDiskSpaceListA(diskspace : *const core::ffi::c_void, targetfilespec : windows_core::PCSTR, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFromDiskSpaceListA(diskspace : *const core::ffi::c_void, targetfilespec : windows_core::PCSTR, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> windows_core::BOOL); unsafe { SetupRemoveFromDiskSpaceListA(diskspace, targetfilespec.param().abi(), operation, reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3569,7 +3569,7 @@ pub unsafe fn SetupRemoveFromDiskSpaceListW(diskspace: *const core::ffi::c_v where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFromDiskSpaceListW(diskspace : *const core::ffi::c_void, targetfilespec : windows_core::PCWSTR, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFromDiskSpaceListW(diskspace : *const core::ffi::c_void, targetfilespec : windows_core::PCWSTR, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> windows_core::BOOL); unsafe { SetupRemoveFromDiskSpaceListW(diskspace, targetfilespec.param().abi(), operation, reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3577,7 +3577,7 @@ pub unsafe fn SetupRemoveFromSourceListA(flags: u32, source: P1) -> windows_ where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFromSourceListA(flags : u32, source : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFromSourceListA(flags : u32, source : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetupRemoveFromSourceListA(flags, source.param().abi()).ok() } } #[inline] @@ -3585,7 +3585,7 @@ pub unsafe fn SetupRemoveFromSourceListW(flags: u32, source: P1) -> windows_ where P1: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFromSourceListW(flags : u32, source : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupRemoveFromSourceListW(flags : u32, source : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetupRemoveFromSourceListW(flags, source.param().abi()).ok() } } #[inline] @@ -3593,7 +3593,7 @@ pub unsafe fn SetupRemoveInstallSectionFromDiskSpaceListA(diskspace: *const where P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupRemoveInstallSectionFromDiskSpaceListA(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, layoutinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupRemoveInstallSectionFromDiskSpaceListA(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, layoutinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> windows_core::BOOL); unsafe { SetupRemoveInstallSectionFromDiskSpaceListA(diskspace, infhandle, layoutinfhandle.unwrap_or(core::mem::zeroed()) as _, sectionname.param().abi(), reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3601,7 +3601,7 @@ pub unsafe fn SetupRemoveInstallSectionFromDiskSpaceListW(diskspace: *const where P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupRemoveInstallSectionFromDiskSpaceListW(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, layoutinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupRemoveInstallSectionFromDiskSpaceListW(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, layoutinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> windows_core::BOOL); unsafe { SetupRemoveInstallSectionFromDiskSpaceListW(diskspace, infhandle, layoutinfhandle.unwrap_or(core::mem::zeroed()) as _, sectionname.param().abi(), reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3609,7 +3609,7 @@ pub unsafe fn SetupRemoveSectionFromDiskSpaceListA(diskspace: *const core::f where P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupRemoveSectionFromDiskSpaceListA(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupRemoveSectionFromDiskSpaceListA(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCSTR, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> windows_core::BOOL); unsafe { SetupRemoveSectionFromDiskSpaceListA(diskspace, infhandle, listinfhandle.unwrap_or(core::mem::zeroed()) as _, sectionname.param().abi(), operation, reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3617,7 +3617,7 @@ pub unsafe fn SetupRemoveSectionFromDiskSpaceListW(diskspace: *const core::f where P3: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupRemoveSectionFromDiskSpaceListW(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupRemoveSectionFromDiskSpaceListW(diskspace : *const core::ffi::c_void, infhandle : *const core::ffi::c_void, listinfhandle : *const core::ffi::c_void, sectionname : windows_core::PCWSTR, operation : SETUP_FILE_OPERATION, reserved1 : *const core::ffi::c_void, reserved2 : u32) -> windows_core::BOOL); unsafe { SetupRemoveSectionFromDiskSpaceListW(diskspace, infhandle, listinfhandle.unwrap_or(core::mem::zeroed()) as _, sectionname.param().abi(), operation, reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3642,12 +3642,12 @@ where } #[inline] pub unsafe fn SetupScanFileQueueA(filequeue: *const core::ffi::c_void, flags: SETUPSCANFILEQUEUE_FLAGS, window: Option, callbackroutine: Option, callbackcontext: Option<*const core::ffi::c_void>, result: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupScanFileQueueA(filequeue : *const core::ffi::c_void, flags : SETUPSCANFILEQUEUE_FLAGS, window : super::super::Foundation:: HWND, callbackroutine : PSP_FILE_CALLBACK_A, callbackcontext : *const core::ffi::c_void, result : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupScanFileQueueA(filequeue : *const core::ffi::c_void, flags : SETUPSCANFILEQUEUE_FLAGS, window : super::super::Foundation:: HWND, callbackroutine : PSP_FILE_CALLBACK_A, callbackcontext : *const core::ffi::c_void, result : *mut u32) -> windows_core::BOOL); unsafe { SetupScanFileQueueA(filequeue, flags, window.unwrap_or(core::mem::zeroed()) as _, callbackroutine.unwrap_or(core::mem::zeroed()) as _, callbackcontext.unwrap_or(core::mem::zeroed()) as _, result as _).ok() } } #[inline] pub unsafe fn SetupScanFileQueueW(filequeue: *const core::ffi::c_void, flags: SETUPSCANFILEQUEUE_FLAGS, window: Option, callbackroutine: Option, callbackcontext: Option<*const core::ffi::c_void>, result: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupScanFileQueueW(filequeue : *const core::ffi::c_void, flags : SETUPSCANFILEQUEUE_FLAGS, window : super::super::Foundation:: HWND, callbackroutine : PSP_FILE_CALLBACK_W, callbackcontext : *const core::ffi::c_void, result : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupScanFileQueueW(filequeue : *const core::ffi::c_void, flags : SETUPSCANFILEQUEUE_FLAGS, window : super::super::Foundation:: HWND, callbackroutine : PSP_FILE_CALLBACK_W, callbackcontext : *const core::ffi::c_void, result : *mut u32) -> windows_core::BOOL); unsafe { SetupScanFileQueueW(filequeue, flags, window.unwrap_or(core::mem::zeroed()) as _, callbackroutine.unwrap_or(core::mem::zeroed()) as _, callbackcontext.unwrap_or(core::mem::zeroed()) as _, result as _).ok() } } #[inline] @@ -3655,7 +3655,7 @@ pub unsafe fn SetupSetDirectoryIdA(infhandle: *const core::ffi::c_void, id: where P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupSetDirectoryIdA(infhandle : *const core::ffi::c_void, id : u32, directory : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupSetDirectoryIdA(infhandle : *const core::ffi::c_void, id : u32, directory : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetupSetDirectoryIdA(infhandle, id, directory.param().abi()).ok() } } #[inline] @@ -3663,7 +3663,7 @@ pub unsafe fn SetupSetDirectoryIdExA(infhandle: *const core::ffi::c_void, id where P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupSetDirectoryIdExA(infhandle : *const core::ffi::c_void, id : u32, directory : windows_core::PCSTR, flags : u32, reserved1 : u32, reserved2 : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupSetDirectoryIdExA(infhandle : *const core::ffi::c_void, id : u32, directory : windows_core::PCSTR, flags : u32, reserved1 : u32, reserved2 : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupSetDirectoryIdExA(infhandle, id, directory.param().abi(), flags, reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3671,7 +3671,7 @@ pub unsafe fn SetupSetDirectoryIdExW(infhandle: *const core::ffi::c_void, id where P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupSetDirectoryIdExW(infhandle : *const core::ffi::c_void, id : u32, directory : windows_core::PCWSTR, flags : u32, reserved1 : u32, reserved2 : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupSetDirectoryIdExW(infhandle : *const core::ffi::c_void, id : u32, directory : windows_core::PCWSTR, flags : u32, reserved1 : u32, reserved2 : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupSetDirectoryIdExW(infhandle, id, directory.param().abi(), flags, reserved1.unwrap_or(core::mem::zeroed()) as _, reserved2.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -3679,7 +3679,7 @@ pub unsafe fn SetupSetDirectoryIdW(infhandle: *const core::ffi::c_void, id: where P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupSetDirectoryIdW(infhandle : *const core::ffi::c_void, id : u32, directory : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupSetDirectoryIdW(infhandle : *const core::ffi::c_void, id : u32, directory : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetupSetDirectoryIdW(infhandle, id, directory.param().abi()).ok() } } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] @@ -3688,7 +3688,7 @@ pub unsafe fn SetupSetFileQueueAlternatePlatformA(queuehandle: *const core:: where P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupSetFileQueueAlternatePlatformA(queuehandle : *const core::ffi::c_void, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, alternatedefaultcatalogfile : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupSetFileQueueAlternatePlatformA(queuehandle : *const core::ffi::c_void, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, alternatedefaultcatalogfile : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetupSetFileQueueAlternatePlatformA(queuehandle, alternateplatforminfo.unwrap_or(core::mem::zeroed()) as _, alternatedefaultcatalogfile.param().abi()).ok() } } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] @@ -3697,17 +3697,17 @@ pub unsafe fn SetupSetFileQueueAlternatePlatformW(queuehandle: *const core:: where P2: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupSetFileQueueAlternatePlatformW(queuehandle : *const core::ffi::c_void, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, alternatedefaultcatalogfile : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupSetFileQueueAlternatePlatformW(queuehandle : *const core::ffi::c_void, alternateplatforminfo : *const SP_ALTPLATFORM_INFO_V2, alternatedefaultcatalogfile : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetupSetFileQueueAlternatePlatformW(queuehandle, alternateplatforminfo.unwrap_or(core::mem::zeroed()) as _, alternatedefaultcatalogfile.param().abi()).ok() } } #[inline] pub unsafe fn SetupSetFileQueueFlags(filequeue: *const core::ffi::c_void, flagmask: u32, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupSetFileQueueFlags(filequeue : *const core::ffi::c_void, flagmask : u32, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupSetFileQueueFlags(filequeue : *const core::ffi::c_void, flagmask : u32, flags : u32) -> windows_core::BOOL); unsafe { SetupSetFileQueueFlags(filequeue, flagmask, flags).ok() } } #[inline] -pub unsafe fn SetupSetNonInteractiveMode(noninteractiveflag: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("setupapi.dll" "system" fn SetupSetNonInteractiveMode(noninteractiveflag : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn SetupSetNonInteractiveMode(noninteractiveflag: bool) -> windows_core::BOOL { + windows_targets::link!("setupapi.dll" "system" fn SetupSetNonInteractiveMode(noninteractiveflag : windows_core::BOOL) -> windows_core::BOOL); unsafe { SetupSetNonInteractiveMode(noninteractiveflag.into()) } } #[inline] @@ -3715,7 +3715,7 @@ pub unsafe fn SetupSetPlatformPathOverrideA(r#override: P0) -> windows_core: where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupSetPlatformPathOverrideA(r#override : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupSetPlatformPathOverrideA(r#override : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetupSetPlatformPathOverrideA(r#override.param().abi()).ok() } } #[inline] @@ -3723,17 +3723,17 @@ pub unsafe fn SetupSetPlatformPathOverrideW(r#override: P0) -> windows_core: where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupSetPlatformPathOverrideW(r#override : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupSetPlatformPathOverrideW(r#override : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetupSetPlatformPathOverrideW(r#override.param().abi()).ok() } } #[inline] pub unsafe fn SetupSetSourceListA(flags: u32, sourcelist: &[windows_core::PCSTR]) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupSetSourceListA(flags : u32, sourcelist : *const windows_core::PCSTR, sourcecount : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupSetSourceListA(flags : u32, sourcelist : *const windows_core::PCSTR, sourcecount : u32) -> windows_core::BOOL); unsafe { SetupSetSourceListA(flags, core::mem::transmute(sourcelist.as_ptr()), sourcelist.len().try_into().unwrap()).ok() } } #[inline] pub unsafe fn SetupSetSourceListW(flags: u32, sourcelist: &[windows_core::PCWSTR]) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupSetSourceListW(flags : u32, sourcelist : *const windows_core::PCWSTR, sourcecount : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupSetSourceListW(flags : u32, sourcelist : *const windows_core::PCWSTR, sourcecount : u32) -> windows_core::BOOL); unsafe { SetupSetSourceListW(flags, core::mem::transmute(sourcelist.as_ptr()), sourcelist.len().try_into().unwrap()).ok() } } #[inline] @@ -3748,46 +3748,46 @@ pub unsafe fn SetupTermDefaultQueueCallback(context: *const core::ffi::c_void) { } #[inline] pub unsafe fn SetupTerminateFileLog(fileloghandle: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupTerminateFileLog(fileloghandle : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupTerminateFileLog(fileloghandle : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupTerminateFileLog(fileloghandle).ok() } } #[inline] pub unsafe fn SetupUninstallNewlyCopiedInfs(filequeue: *const core::ffi::c_void, flags: u32, reserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("setupapi.dll" "system" fn SetupUninstallNewlyCopiedInfs(filequeue : *const core::ffi::c_void, flags : u32, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupUninstallNewlyCopiedInfs(filequeue : *const core::ffi::c_void, flags : u32, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupUninstallNewlyCopiedInfs(filequeue, flags, reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn SetupUninstallOEMInfA(inffilename: P0, flags: u32, reserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL +pub unsafe fn SetupUninstallOEMInfA(inffilename: P0, flags: u32, reserved: Option<*const core::ffi::c_void>) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupUninstallOEMInfA(inffilename : windows_core::PCSTR, flags : u32, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupUninstallOEMInfA(inffilename : windows_core::PCSTR, flags : u32, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupUninstallOEMInfA(inffilename.param().abi(), flags, reserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn SetupUninstallOEMInfW(inffilename: P0, flags: u32, reserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL +pub unsafe fn SetupUninstallOEMInfW(inffilename: P0, flags: u32, reserved: Option<*const core::ffi::c_void>) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupUninstallOEMInfW(inffilename : windows_core::PCWSTR, flags : u32, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupUninstallOEMInfW(inffilename : windows_core::PCWSTR, flags : u32, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetupUninstallOEMInfW(inffilename.param().abi(), flags, reserved.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] -pub unsafe fn SetupVerifyInfFileA(infname: P0, altplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, infsignerinfo: *mut SP_INF_SIGNER_INFO_V2_A) -> super::super::Foundation::BOOL +pub unsafe fn SetupVerifyInfFileA(infname: P0, altplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, infsignerinfo: *mut SP_INF_SIGNER_INFO_V2_A) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupVerifyInfFileA(infname : windows_core::PCSTR, altplatforminfo : *const SP_ALTPLATFORM_INFO_V2, infsignerinfo : *mut SP_INF_SIGNER_INFO_V2_A) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupVerifyInfFileA(infname : windows_core::PCSTR, altplatforminfo : *const SP_ALTPLATFORM_INFO_V2, infsignerinfo : *mut SP_INF_SIGNER_INFO_V2_A) -> windows_core::BOOL); unsafe { SetupVerifyInfFileA(infname.param().abi(), altplatforminfo.unwrap_or(core::mem::zeroed()) as _, infsignerinfo as _) } } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_SystemInformation"))] #[inline] -pub unsafe fn SetupVerifyInfFileW(infname: P0, altplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, infsignerinfo: *mut SP_INF_SIGNER_INFO_V2_W) -> super::super::Foundation::BOOL +pub unsafe fn SetupVerifyInfFileW(infname: P0, altplatforminfo: Option<*const SP_ALTPLATFORM_INFO_V2>, infsignerinfo: *mut SP_INF_SIGNER_INFO_V2_W) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("setupapi.dll" "system" fn SetupVerifyInfFileW(infname : windows_core::PCWSTR, altplatforminfo : *const SP_ALTPLATFORM_INFO_V2, infsignerinfo : *mut SP_INF_SIGNER_INFO_V2_W) -> super::super::Foundation:: BOOL); + windows_targets::link!("setupapi.dll" "system" fn SetupVerifyInfFileW(infname : windows_core::PCWSTR, altplatforminfo : *const SP_ALTPLATFORM_INFO_V2, infsignerinfo : *mut SP_INF_SIGNER_INFO_V2_W) -> windows_core::BOOL); unsafe { SetupVerifyInfFileW(infname.param().abi(), altplatforminfo.unwrap_or(core::mem::zeroed()) as _, infsignerinfo as _) } } #[inline] @@ -3812,21 +3812,21 @@ pub unsafe fn SetupWriteTextLogInfLine(logtoken: u64, flags: u32, infhandle: *co unsafe { SetupWriteTextLogInfLine(logtoken, flags, infhandle, context) } } #[inline] -pub unsafe fn UpdateDriverForPlugAndPlayDevicesA(hwndparent: Option, hardwareid: P1, fullinfpath: P2, installflags: UPDATEDRIVERFORPLUGANDPLAYDEVICES_FLAGS, brebootrequired: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> +pub unsafe fn UpdateDriverForPlugAndPlayDevicesA(hwndparent: Option, hardwareid: P1, fullinfpath: P2, installflags: UPDATEDRIVERFORPLUGANDPLAYDEVICES_FLAGS, brebootrequired: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("newdev.dll" "system" fn UpdateDriverForPlugAndPlayDevicesA(hwndparent : super::super::Foundation:: HWND, hardwareid : windows_core::PCSTR, fullinfpath : windows_core::PCSTR, installflags : UPDATEDRIVERFORPLUGANDPLAYDEVICES_FLAGS, brebootrequired : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("newdev.dll" "system" fn UpdateDriverForPlugAndPlayDevicesA(hwndparent : super::super::Foundation:: HWND, hardwareid : windows_core::PCSTR, fullinfpath : windows_core::PCSTR, installflags : UPDATEDRIVERFORPLUGANDPLAYDEVICES_FLAGS, brebootrequired : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { UpdateDriverForPlugAndPlayDevicesA(hwndparent.unwrap_or(core::mem::zeroed()) as _, hardwareid.param().abi(), fullinfpath.param().abi(), installflags, brebootrequired.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn UpdateDriverForPlugAndPlayDevicesW(hwndparent: Option, hardwareid: P1, fullinfpath: P2, installflags: UPDATEDRIVERFORPLUGANDPLAYDEVICES_FLAGS, brebootrequired: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> +pub unsafe fn UpdateDriverForPlugAndPlayDevicesW(hwndparent: Option, hardwareid: P1, fullinfpath: P2, installflags: UPDATEDRIVERFORPLUGANDPLAYDEVICES_FLAGS, brebootrequired: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("newdev.dll" "system" fn UpdateDriverForPlugAndPlayDevicesW(hwndparent : super::super::Foundation:: HWND, hardwareid : windows_core::PCWSTR, fullinfpath : windows_core::PCWSTR, installflags : UPDATEDRIVERFORPLUGANDPLAYDEVICES_FLAGS, brebootrequired : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("newdev.dll" "system" fn UpdateDriverForPlugAndPlayDevicesW(hwndparent : super::super::Foundation:: HWND, hardwareid : windows_core::PCWSTR, fullinfpath : windows_core::PCWSTR, installflags : UPDATEDRIVERFORPLUGANDPLAYDEVICES_FLAGS, brebootrequired : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { UpdateDriverForPlugAndPlayDevicesW(hwndparent.unwrap_or(core::mem::zeroed()) as _, hardwareid.param().abi(), fullinfpath.param().abi(), installflags, brebootrequired.unwrap_or(core::mem::zeroed()) as _).ok() } } pub const ALLOC_LOG_CONF: CM_LOG_CONF = CM_LOG_CONF(2u32); @@ -4592,7 +4592,7 @@ pub const CM_SET_HW_PROF_FLAGS_UI_NOT_OK: u32 = 1u32; #[cfg(target_arch = "x86")] #[derive(Clone, Copy)] pub struct COINSTALLER_CONTEXT_DATA { - pub PostProcessing: super::super::Foundation::BOOL, + pub PostProcessing: windows_core::BOOL, pub InstallResult: u32, pub PrivateData: *mut core::ffi::c_void, } @@ -4606,7 +4606,7 @@ impl Default for COINSTALLER_CONTEXT_DATA { #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[derive(Clone, Copy, Debug, PartialEq)] pub struct COINSTALLER_CONTEXT_DATA { - pub PostProcessing: super::super::Foundation::BOOL, + pub PostProcessing: windows_core::BOOL, pub InstallResult: u32, pub PrivateData: *mut core::ffi::c_void, } @@ -6666,7 +6666,7 @@ impl core::ops::Not for PCD_FLAGS { pub const PCD_MAX_IO: u32 = 2u32; pub const PCD_MAX_MEMORY: u32 = 2u32; pub type PCM_NOTIFY_CALLBACK = Option u32>; -pub type PDETECT_PROGRESS_NOTIFY = Option super::super::Foundation::BOOL>; +pub type PDETECT_PROGRESS_NOTIFY = Option windows_core::BOOL>; #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct PMF_FLAGS(pub u32); 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 2135f25b42..2d75709197 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs @@ -19,13 +19,13 @@ pub unsafe fn BRUSHOBJ_ulGetBrushColor(pbo: *mut BRUSHOBJ) -> u32 { unsafe { BRUSHOBJ_ulGetBrushColor(pbo as _) } } #[inline] -pub unsafe fn CLIPOBJ_bEnum(pco: *mut CLIPOBJ, cj: u32, pul: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn CLIPOBJ_bEnum(pco : *mut CLIPOBJ, cj : u32, pul : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn CLIPOBJ_bEnum(pco: *mut CLIPOBJ, cj: u32, pul: *mut u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn CLIPOBJ_bEnum(pco : *mut CLIPOBJ, cj : u32, pul : *mut u32) -> windows_core::BOOL); unsafe { CLIPOBJ_bEnum(pco as _, cj, pul as _) } } #[inline] pub unsafe fn CLIPOBJ_cEnumStart(pco: *mut CLIPOBJ, ball: bool, itype: u32, idirection: u32, climit: u32) -> u32 { - windows_targets::link!("gdi32.dll" "system" fn CLIPOBJ_cEnumStart(pco : *mut CLIPOBJ, ball : super::super::Foundation:: BOOL, itype : u32, idirection : u32, climit : u32) -> u32); + windows_targets::link!("gdi32.dll" "system" fn CLIPOBJ_cEnumStart(pco : *mut CLIPOBJ, ball : windows_core::BOOL, itype : u32, idirection : u32, climit : u32) -> u32); unsafe { CLIPOBJ_cEnumStart(pco as _, ball.into(), itype, idirection, climit) } } #[inline] @@ -45,12 +45,12 @@ pub unsafe fn DegaussMonitor(hmonitor: super::super::Foundation::HANDLE) -> i32 } #[inline] pub unsafe fn DestroyPhysicalMonitor(hmonitor: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("dxva2.dll" "system" fn DestroyPhysicalMonitor(hmonitor : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("dxva2.dll" "system" fn DestroyPhysicalMonitor(hmonitor : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { DestroyPhysicalMonitor(hmonitor).ok() } } #[inline] pub unsafe fn DestroyPhysicalMonitors(pphysicalmonitorarray: &[PHYSICAL_MONITOR]) -> windows_core::Result<()> { - windows_targets::link!("dxva2.dll" "system" fn DestroyPhysicalMonitors(dwphysicalmonitorarraysize : u32, pphysicalmonitorarray : *const PHYSICAL_MONITOR) -> super::super::Foundation:: BOOL); + windows_targets::link!("dxva2.dll" "system" fn DestroyPhysicalMonitors(dwphysicalmonitorarraysize : u32, pphysicalmonitorarray : *const PHYSICAL_MONITOR) -> windows_core::BOOL); unsafe { DestroyPhysicalMonitors(pphysicalmonitorarray.len().try_into().unwrap(), core::mem::transmute(pphysicalmonitorarray.as_ptr())).ok() } } #[inline] @@ -70,23 +70,23 @@ pub unsafe fn EngAcquireSemaphore(hsem: HSEMAPHORE) { } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn EngAlphaBlend(psodest: *mut SURFOBJ, psosrc: *mut SURFOBJ, pco: *mut CLIPOBJ, pxlo: *mut XLATEOBJ, prcldest: *mut super::super::Foundation::RECTL, prclsrc: *mut super::super::Foundation::RECTL, pblendobj: *mut BLENDOBJ) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngAlphaBlend(psodest : *mut SURFOBJ, psosrc : *mut SURFOBJ, pco : *mut CLIPOBJ, pxlo : *mut XLATEOBJ, prcldest : *mut super::super::Foundation:: RECTL, prclsrc : *mut super::super::Foundation:: RECTL, pblendobj : *mut BLENDOBJ) -> super::super::Foundation:: BOOL); +pub unsafe fn EngAlphaBlend(psodest: *mut SURFOBJ, psosrc: *mut SURFOBJ, pco: *mut CLIPOBJ, pxlo: *mut XLATEOBJ, prcldest: *mut super::super::Foundation::RECTL, prclsrc: *mut super::super::Foundation::RECTL, pblendobj: *mut BLENDOBJ) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngAlphaBlend(psodest : *mut SURFOBJ, psosrc : *mut SURFOBJ, pco : *mut CLIPOBJ, pxlo : *mut XLATEOBJ, prcldest : *mut super::super::Foundation:: RECTL, prclsrc : *mut super::super::Foundation:: RECTL, pblendobj : *mut BLENDOBJ) -> windows_core::BOOL); unsafe { EngAlphaBlend(psodest as _, psosrc as _, pco as _, pxlo as _, prcldest as _, prclsrc as _, pblendobj as _) } } #[inline] -pub unsafe fn EngAssociateSurface(hsurf: HSURF, hdev: HDEV, flhooks: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngAssociateSurface(hsurf : HSURF, hdev : HDEV, flhooks : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EngAssociateSurface(hsurf: HSURF, hdev: HDEV, flhooks: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngAssociateSurface(hsurf : HSURF, hdev : HDEV, flhooks : u32) -> windows_core::BOOL); unsafe { EngAssociateSurface(hsurf, hdev, flhooks) } } #[inline] -pub unsafe fn EngBitBlt(psotrg: *const SURFOBJ, psosrc: *const SURFOBJ, psomask: *const SURFOBJ, pco: *const CLIPOBJ, pxlo: *const XLATEOBJ, prcltrg: *const super::super::Foundation::RECTL, pptlsrc: *const super::super::Foundation::POINTL, pptlmask: *const super::super::Foundation::POINTL, pbo: *const BRUSHOBJ, pptlbrush: *const super::super::Foundation::POINTL, rop4: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngBitBlt(psotrg : *const SURFOBJ, psosrc : *const SURFOBJ, psomask : *const SURFOBJ, pco : *const CLIPOBJ, pxlo : *const XLATEOBJ, prcltrg : *const super::super::Foundation:: RECTL, pptlsrc : *const super::super::Foundation:: POINTL, pptlmask : *const super::super::Foundation:: POINTL, pbo : *const BRUSHOBJ, pptlbrush : *const super::super::Foundation:: POINTL, rop4 : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EngBitBlt(psotrg: *const SURFOBJ, psosrc: *const SURFOBJ, psomask: *const SURFOBJ, pco: *const CLIPOBJ, pxlo: *const XLATEOBJ, prcltrg: *const super::super::Foundation::RECTL, pptlsrc: *const super::super::Foundation::POINTL, pptlmask: *const super::super::Foundation::POINTL, pbo: *const BRUSHOBJ, pptlbrush: *const super::super::Foundation::POINTL, rop4: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngBitBlt(psotrg : *const SURFOBJ, psosrc : *const SURFOBJ, psomask : *const SURFOBJ, pco : *const CLIPOBJ, pxlo : *const XLATEOBJ, prcltrg : *const super::super::Foundation:: RECTL, pptlsrc : *const super::super::Foundation:: POINTL, pptlmask : *const super::super::Foundation:: POINTL, pbo : *const BRUSHOBJ, pptlbrush : *const super::super::Foundation:: POINTL, rop4 : u32) -> windows_core::BOOL); unsafe { EngBitBlt(psotrg, psosrc, psomask, pco, pxlo, prcltrg, pptlsrc, pptlmask, pbo, pptlbrush, rop4) } } #[inline] -pub unsafe fn EngCheckAbort(pso: *mut SURFOBJ) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngCheckAbort(pso : *mut SURFOBJ) -> super::super::Foundation:: BOOL); +pub unsafe fn EngCheckAbort(pso: *mut SURFOBJ) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngCheckAbort(pso : *mut SURFOBJ) -> windows_core::BOOL); unsafe { EngCheckAbort(pso as _) } } #[inline] @@ -95,8 +95,8 @@ pub unsafe fn EngComputeGlyphSet(ncodepage: i32, nfirstchar: i32, cchars: i32) - unsafe { EngComputeGlyphSet(ncodepage, nfirstchar, cchars) } } #[inline] -pub unsafe fn EngCopyBits(psodest: *mut SURFOBJ, psosrc: *mut SURFOBJ, pco: *mut CLIPOBJ, pxlo: *mut XLATEOBJ, prcldest: *mut super::super::Foundation::RECTL, pptlsrc: *mut super::super::Foundation::POINTL) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngCopyBits(psodest : *mut SURFOBJ, psosrc : *mut SURFOBJ, pco : *mut CLIPOBJ, pxlo : *mut XLATEOBJ, prcldest : *mut super::super::Foundation:: RECTL, pptlsrc : *mut super::super::Foundation:: POINTL) -> super::super::Foundation:: BOOL); +pub unsafe fn EngCopyBits(psodest: *mut SURFOBJ, psosrc: *mut SURFOBJ, pco: *mut CLIPOBJ, pxlo: *mut XLATEOBJ, prcldest: *mut super::super::Foundation::RECTL, pptlsrc: *mut super::super::Foundation::POINTL) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngCopyBits(psodest : *mut SURFOBJ, psosrc : *mut SURFOBJ, pco : *mut CLIPOBJ, pxlo : *mut XLATEOBJ, prcldest : *mut super::super::Foundation:: RECTL, pptlsrc : *mut super::super::Foundation:: POINTL) -> windows_core::BOOL); unsafe { EngCopyBits(psodest as _, psosrc as _, pco as _, pxlo as _, prcldest as _, pptlsrc as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -139,8 +139,8 @@ pub unsafe fn EngDeleteClip(pco: Option<*const CLIPOBJ>) { } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn EngDeletePalette(hpal: super::super::Graphics::Gdi::HPALETTE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngDeletePalette(hpal : super::super::Graphics::Gdi:: HPALETTE) -> super::super::Foundation:: BOOL); +pub unsafe fn EngDeletePalette(hpal: super::super::Graphics::Gdi::HPALETTE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngDeletePalette(hpal : super::super::Graphics::Gdi:: HPALETTE) -> windows_core::BOOL); unsafe { EngDeletePalette(hpal) } } #[inline] @@ -154,18 +154,18 @@ pub unsafe fn EngDeleteSemaphore(hsem: HSEMAPHORE) { unsafe { EngDeleteSemaphore(hsem) } } #[inline] -pub unsafe fn EngDeleteSurface(hsurf: HSURF) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngDeleteSurface(hsurf : HSURF) -> super::super::Foundation:: BOOL); +pub unsafe fn EngDeleteSurface(hsurf: HSURF) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngDeleteSurface(hsurf : HSURF) -> windows_core::BOOL); unsafe { EngDeleteSurface(hsurf) } } #[inline] -pub unsafe fn EngEraseSurface(pso: *mut SURFOBJ, prcl: *mut super::super::Foundation::RECTL, icolor: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngEraseSurface(pso : *mut SURFOBJ, prcl : *mut super::super::Foundation:: RECTL, icolor : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EngEraseSurface(pso: *mut SURFOBJ, prcl: *mut super::super::Foundation::RECTL, icolor: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngEraseSurface(pso : *mut SURFOBJ, prcl : *mut super::super::Foundation:: RECTL, icolor : u32) -> windows_core::BOOL); unsafe { EngEraseSurface(pso as _, prcl as _, icolor) } } #[inline] -pub unsafe fn EngFillPath(pso: *mut SURFOBJ, ppo: *mut PATHOBJ, pco: *mut CLIPOBJ, pbo: *mut BRUSHOBJ, pptlbrushorg: *mut super::super::Foundation::POINTL, mix: u32, floptions: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngFillPath(pso : *mut SURFOBJ, ppo : *mut PATHOBJ, pco : *mut CLIPOBJ, pbo : *mut BRUSHOBJ, pptlbrushorg : *mut super::super::Foundation:: POINTL, mix : u32, floptions : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EngFillPath(pso: *mut SURFOBJ, ppo: *mut PATHOBJ, pco: *mut CLIPOBJ, pbo: *mut BRUSHOBJ, pptlbrushorg: *mut super::super::Foundation::POINTL, mix: u32, floptions: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngFillPath(pso : *mut SURFOBJ, ppo : *mut PATHOBJ, pco : *mut CLIPOBJ, pbo : *mut BRUSHOBJ, pptlbrushorg : *mut super::super::Foundation:: POINTL, mix : u32, floptions : u32) -> windows_core::BOOL); unsafe { EngFillPath(pso as _, ppo as _, pco as _, pbo as _, pptlbrushorg as _, mix, floptions) } } #[inline] @@ -195,13 +195,13 @@ pub unsafe fn EngGetPrinterDataFileName(hdev: HDEV) -> windows_core::PWSTR { } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn EngGradientFill(psodest: *mut SURFOBJ, pco: *mut CLIPOBJ, pxlo: *mut XLATEOBJ, pvertex: *mut super::super::Graphics::Gdi::TRIVERTEX, nvertex: u32, pmesh: *mut core::ffi::c_void, nmesh: u32, prclextents: *mut super::super::Foundation::RECTL, pptlditherorg: *mut super::super::Foundation::POINTL, ulmode: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngGradientFill(psodest : *mut SURFOBJ, pco : *mut CLIPOBJ, pxlo : *mut XLATEOBJ, pvertex : *mut super::super::Graphics::Gdi:: TRIVERTEX, nvertex : u32, pmesh : *mut core::ffi::c_void, nmesh : u32, prclextents : *mut super::super::Foundation:: RECTL, pptlditherorg : *mut super::super::Foundation:: POINTL, ulmode : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EngGradientFill(psodest: *mut SURFOBJ, pco: *mut CLIPOBJ, pxlo: *mut XLATEOBJ, pvertex: *mut super::super::Graphics::Gdi::TRIVERTEX, nvertex: u32, pmesh: *mut core::ffi::c_void, nmesh: u32, prclextents: *mut super::super::Foundation::RECTL, pptlditherorg: *mut super::super::Foundation::POINTL, ulmode: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngGradientFill(psodest : *mut SURFOBJ, pco : *mut CLIPOBJ, pxlo : *mut XLATEOBJ, pvertex : *mut super::super::Graphics::Gdi:: TRIVERTEX, nvertex : u32, pmesh : *mut core::ffi::c_void, nmesh : u32, prclextents : *mut super::super::Foundation:: RECTL, pptlditherorg : *mut super::super::Foundation:: POINTL, ulmode : u32) -> windows_core::BOOL); unsafe { EngGradientFill(psodest as _, pco as _, pxlo as _, pvertex as _, nvertex, pmesh as _, nmesh, prclextents as _, pptlditherorg as _, ulmode) } } #[inline] -pub unsafe fn EngLineTo(pso: *mut SURFOBJ, pco: *mut CLIPOBJ, pbo: *mut BRUSHOBJ, x1: i32, y1: i32, x2: i32, y2: i32, prclbounds: *mut super::super::Foundation::RECTL, mix: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngLineTo(pso : *mut SURFOBJ, pco : *mut CLIPOBJ, pbo : *mut BRUSHOBJ, x1 : i32, y1 : i32, x2 : i32, y2 : i32, prclbounds : *mut super::super::Foundation:: RECTL, mix : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EngLineTo(pso: *mut SURFOBJ, pco: *mut CLIPOBJ, pbo: *mut BRUSHOBJ, x1: i32, y1: i32, x2: i32, y2: i32, prclbounds: *mut super::super::Foundation::RECTL, mix: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngLineTo(pso : *mut SURFOBJ, pco : *mut CLIPOBJ, pbo : *mut BRUSHOBJ, x1 : i32, y1 : i32, x2 : i32, y2 : i32, prclbounds : *mut super::super::Foundation:: RECTL, mix : u32) -> windows_core::BOOL); unsafe { EngLineTo(pso as _, pco as _, pbo as _, x1, y1, x2, y2, prclbounds as _, mix) } } #[inline] @@ -218,8 +218,8 @@ pub unsafe fn EngLockSurface(hsurf: HSURF) -> *mut SURFOBJ { unsafe { EngLockSurface(hsurf) } } #[inline] -pub unsafe fn EngMarkBandingSurface(hsurf: HSURF) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngMarkBandingSurface(hsurf : HSURF) -> super::super::Foundation:: BOOL); +pub unsafe fn EngMarkBandingSurface(hsurf: HSURF) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngMarkBandingSurface(hsurf : HSURF) -> windows_core::BOOL); unsafe { EngMarkBandingSurface(hsurf) } } #[inline] @@ -233,20 +233,20 @@ pub unsafe fn EngMultiByteToWideChar(codepage: u32, widecharstring: Option super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngPaint(pso : *mut SURFOBJ, pco : *mut CLIPOBJ, pbo : *mut BRUSHOBJ, pptlbrushorg : *mut super::super::Foundation:: POINTL, mix : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EngPaint(pso: *mut SURFOBJ, pco: *mut CLIPOBJ, pbo: *mut BRUSHOBJ, pptlbrushorg: *mut super::super::Foundation::POINTL, mix: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngPaint(pso : *mut SURFOBJ, pco : *mut CLIPOBJ, pbo : *mut BRUSHOBJ, pptlbrushorg : *mut super::super::Foundation:: POINTL, mix : u32) -> windows_core::BOOL); unsafe { EngPaint(pso as _, pco as _, pbo as _, pptlbrushorg as _, mix) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn EngPlgBlt(psotrg: *mut SURFOBJ, psosrc: *mut SURFOBJ, psomsk: *mut SURFOBJ, pco: *mut CLIPOBJ, pxlo: *mut XLATEOBJ, pca: *mut super::super::Graphics::Gdi::COLORADJUSTMENT, pptlbrushorg: *mut super::super::Foundation::POINTL, pptfx: *mut POINTFIX, prcl: *mut super::super::Foundation::RECTL, pptl: *mut super::super::Foundation::POINTL, imode: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngPlgBlt(psotrg : *mut SURFOBJ, psosrc : *mut SURFOBJ, psomsk : *mut SURFOBJ, pco : *mut CLIPOBJ, pxlo : *mut XLATEOBJ, pca : *mut super::super::Graphics::Gdi:: COLORADJUSTMENT, pptlbrushorg : *mut super::super::Foundation:: POINTL, pptfx : *mut POINTFIX, prcl : *mut super::super::Foundation:: RECTL, pptl : *mut super::super::Foundation:: POINTL, imode : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EngPlgBlt(psotrg: *mut SURFOBJ, psosrc: *mut SURFOBJ, psomsk: *mut SURFOBJ, pco: *mut CLIPOBJ, pxlo: *mut XLATEOBJ, pca: *mut super::super::Graphics::Gdi::COLORADJUSTMENT, pptlbrushorg: *mut super::super::Foundation::POINTL, pptfx: *mut POINTFIX, prcl: *mut super::super::Foundation::RECTL, pptl: *mut super::super::Foundation::POINTL, imode: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngPlgBlt(psotrg : *mut SURFOBJ, psosrc : *mut SURFOBJ, psomsk : *mut SURFOBJ, pco : *mut CLIPOBJ, pxlo : *mut XLATEOBJ, pca : *mut super::super::Graphics::Gdi:: COLORADJUSTMENT, pptlbrushorg : *mut super::super::Foundation:: POINTL, pptfx : *mut POINTFIX, prcl : *mut super::super::Foundation:: RECTL, pptl : *mut super::super::Foundation:: POINTL, imode : u32) -> windows_core::BOOL); unsafe { EngPlgBlt(psotrg as _, psosrc as _, psomsk as _, pco as _, pxlo as _, pca as _, pptlbrushorg as _, pptfx as _, prcl as _, pptl as _, imode) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn EngQueryEMFInfo(hdev: HDEV, pemfinfo: *mut EMFINFO) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngQueryEMFInfo(hdev : HDEV, pemfinfo : *mut EMFINFO) -> super::super::Foundation:: BOOL); +pub unsafe fn EngQueryEMFInfo(hdev: HDEV, pemfinfo: *mut EMFINFO) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngQueryEMFInfo(hdev : HDEV, pemfinfo : *mut EMFINFO) -> windows_core::BOOL); unsafe { EngQueryEMFInfo(hdev, pemfinfo as _) } } #[inline] @@ -265,34 +265,34 @@ pub unsafe fn EngReleaseSemaphore(hsem: HSEMAPHORE) { } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn EngStretchBlt(psodest: *mut SURFOBJ, psosrc: *mut SURFOBJ, psomask: *mut SURFOBJ, pco: *mut CLIPOBJ, pxlo: *mut XLATEOBJ, pca: *mut super::super::Graphics::Gdi::COLORADJUSTMENT, pptlhtorg: *mut super::super::Foundation::POINTL, prcldest: *mut super::super::Foundation::RECTL, prclsrc: *mut super::super::Foundation::RECTL, pptlmask: *mut super::super::Foundation::POINTL, imode: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngStretchBlt(psodest : *mut SURFOBJ, psosrc : *mut SURFOBJ, psomask : *mut SURFOBJ, pco : *mut CLIPOBJ, pxlo : *mut XLATEOBJ, pca : *mut super::super::Graphics::Gdi:: COLORADJUSTMENT, pptlhtorg : *mut super::super::Foundation:: POINTL, prcldest : *mut super::super::Foundation:: RECTL, prclsrc : *mut super::super::Foundation:: RECTL, pptlmask : *mut super::super::Foundation:: POINTL, imode : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EngStretchBlt(psodest: *mut SURFOBJ, psosrc: *mut SURFOBJ, psomask: *mut SURFOBJ, pco: *mut CLIPOBJ, pxlo: *mut XLATEOBJ, pca: *mut super::super::Graphics::Gdi::COLORADJUSTMENT, pptlhtorg: *mut super::super::Foundation::POINTL, prcldest: *mut super::super::Foundation::RECTL, prclsrc: *mut super::super::Foundation::RECTL, pptlmask: *mut super::super::Foundation::POINTL, imode: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngStretchBlt(psodest : *mut SURFOBJ, psosrc : *mut SURFOBJ, psomask : *mut SURFOBJ, pco : *mut CLIPOBJ, pxlo : *mut XLATEOBJ, pca : *mut super::super::Graphics::Gdi:: COLORADJUSTMENT, pptlhtorg : *mut super::super::Foundation:: POINTL, prcldest : *mut super::super::Foundation:: RECTL, prclsrc : *mut super::super::Foundation:: RECTL, pptlmask : *mut super::super::Foundation:: POINTL, imode : u32) -> windows_core::BOOL); unsafe { EngStretchBlt(psodest as _, psosrc as _, psomask as _, pco as _, pxlo as _, pca as _, pptlhtorg as _, prcldest as _, prclsrc as _, pptlmask as _, imode) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn EngStretchBltROP(psodest: *mut SURFOBJ, psosrc: *mut SURFOBJ, psomask: *mut SURFOBJ, pco: *mut CLIPOBJ, pxlo: *mut XLATEOBJ, pca: *mut super::super::Graphics::Gdi::COLORADJUSTMENT, pptlhtorg: *mut super::super::Foundation::POINTL, prcldest: *mut super::super::Foundation::RECTL, prclsrc: *mut super::super::Foundation::RECTL, pptlmask: *mut super::super::Foundation::POINTL, imode: u32, pbo: *mut BRUSHOBJ, rop4: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngStretchBltROP(psodest : *mut SURFOBJ, psosrc : *mut SURFOBJ, psomask : *mut SURFOBJ, pco : *mut CLIPOBJ, pxlo : *mut XLATEOBJ, pca : *mut super::super::Graphics::Gdi:: COLORADJUSTMENT, pptlhtorg : *mut super::super::Foundation:: POINTL, prcldest : *mut super::super::Foundation:: RECTL, prclsrc : *mut super::super::Foundation:: RECTL, pptlmask : *mut super::super::Foundation:: POINTL, imode : u32, pbo : *mut BRUSHOBJ, rop4 : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EngStretchBltROP(psodest: *mut SURFOBJ, psosrc: *mut SURFOBJ, psomask: *mut SURFOBJ, pco: *mut CLIPOBJ, pxlo: *mut XLATEOBJ, pca: *mut super::super::Graphics::Gdi::COLORADJUSTMENT, pptlhtorg: *mut super::super::Foundation::POINTL, prcldest: *mut super::super::Foundation::RECTL, prclsrc: *mut super::super::Foundation::RECTL, pptlmask: *mut super::super::Foundation::POINTL, imode: u32, pbo: *mut BRUSHOBJ, rop4: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngStretchBltROP(psodest : *mut SURFOBJ, psosrc : *mut SURFOBJ, psomask : *mut SURFOBJ, pco : *mut CLIPOBJ, pxlo : *mut XLATEOBJ, pca : *mut super::super::Graphics::Gdi:: COLORADJUSTMENT, pptlhtorg : *mut super::super::Foundation:: POINTL, prcldest : *mut super::super::Foundation:: RECTL, prclsrc : *mut super::super::Foundation:: RECTL, pptlmask : *mut super::super::Foundation:: POINTL, imode : u32, pbo : *mut BRUSHOBJ, rop4 : u32) -> windows_core::BOOL); unsafe { EngStretchBltROP(psodest as _, psosrc as _, psomask as _, pco as _, pxlo as _, pca as _, pptlhtorg as _, prcldest as _, prclsrc as _, pptlmask as _, imode, pbo as _, rop4) } } #[inline] -pub unsafe fn EngStrokeAndFillPath(pso: *mut SURFOBJ, ppo: *mut PATHOBJ, pco: *mut CLIPOBJ, pxo: *mut XFORMOBJ, pbostroke: *mut BRUSHOBJ, plineattrs: *mut LINEATTRS, pbofill: *mut BRUSHOBJ, pptlbrushorg: *mut super::super::Foundation::POINTL, mixfill: u32, floptions: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngStrokeAndFillPath(pso : *mut SURFOBJ, ppo : *mut PATHOBJ, pco : *mut CLIPOBJ, pxo : *mut XFORMOBJ, pbostroke : *mut BRUSHOBJ, plineattrs : *mut LINEATTRS, pbofill : *mut BRUSHOBJ, pptlbrushorg : *mut super::super::Foundation:: POINTL, mixfill : u32, floptions : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EngStrokeAndFillPath(pso: *mut SURFOBJ, ppo: *mut PATHOBJ, pco: *mut CLIPOBJ, pxo: *mut XFORMOBJ, pbostroke: *mut BRUSHOBJ, plineattrs: *mut LINEATTRS, pbofill: *mut BRUSHOBJ, pptlbrushorg: *mut super::super::Foundation::POINTL, mixfill: u32, floptions: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngStrokeAndFillPath(pso : *mut SURFOBJ, ppo : *mut PATHOBJ, pco : *mut CLIPOBJ, pxo : *mut XFORMOBJ, pbostroke : *mut BRUSHOBJ, plineattrs : *mut LINEATTRS, pbofill : *mut BRUSHOBJ, pptlbrushorg : *mut super::super::Foundation:: POINTL, mixfill : u32, floptions : u32) -> windows_core::BOOL); unsafe { EngStrokeAndFillPath(pso as _, ppo as _, pco as _, pxo as _, pbostroke as _, plineattrs as _, pbofill as _, pptlbrushorg as _, mixfill, floptions) } } #[inline] -pub unsafe fn EngStrokePath(pso: *mut SURFOBJ, ppo: *mut PATHOBJ, pco: *mut CLIPOBJ, pxo: *mut XFORMOBJ, pbo: *mut BRUSHOBJ, pptlbrushorg: *mut super::super::Foundation::POINTL, plineattrs: *mut LINEATTRS, mix: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngStrokePath(pso : *mut SURFOBJ, ppo : *mut PATHOBJ, pco : *mut CLIPOBJ, pxo : *mut XFORMOBJ, pbo : *mut BRUSHOBJ, pptlbrushorg : *mut super::super::Foundation:: POINTL, plineattrs : *mut LINEATTRS, mix : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EngStrokePath(pso: *mut SURFOBJ, ppo: *mut PATHOBJ, pco: *mut CLIPOBJ, pxo: *mut XFORMOBJ, pbo: *mut BRUSHOBJ, pptlbrushorg: *mut super::super::Foundation::POINTL, plineattrs: *mut LINEATTRS, mix: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngStrokePath(pso : *mut SURFOBJ, ppo : *mut PATHOBJ, pco : *mut CLIPOBJ, pxo : *mut XFORMOBJ, pbo : *mut BRUSHOBJ, pptlbrushorg : *mut super::super::Foundation:: POINTL, plineattrs : *mut LINEATTRS, mix : u32) -> windows_core::BOOL); unsafe { EngStrokePath(pso as _, ppo as _, pco as _, pxo as _, pbo as _, pptlbrushorg as _, plineattrs as _, mix) } } #[inline] -pub unsafe fn EngTextOut(pso: *mut SURFOBJ, pstro: *mut STROBJ, pfo: *mut FONTOBJ, pco: *mut CLIPOBJ, prclextra: *mut super::super::Foundation::RECTL, prclopaque: *mut super::super::Foundation::RECTL, pbofore: *mut BRUSHOBJ, pboopaque: *mut BRUSHOBJ, pptlorg: *mut super::super::Foundation::POINTL, mix: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngTextOut(pso : *mut SURFOBJ, pstro : *mut STROBJ, pfo : *mut FONTOBJ, pco : *mut CLIPOBJ, prclextra : *mut super::super::Foundation:: RECTL, prclopaque : *mut super::super::Foundation:: RECTL, pbofore : *mut BRUSHOBJ, pboopaque : *mut BRUSHOBJ, pptlorg : *mut super::super::Foundation:: POINTL, mix : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EngTextOut(pso: *mut SURFOBJ, pstro: *mut STROBJ, pfo: *mut FONTOBJ, pco: *mut CLIPOBJ, prclextra: *mut super::super::Foundation::RECTL, prclopaque: *mut super::super::Foundation::RECTL, pbofore: *mut BRUSHOBJ, pboopaque: *mut BRUSHOBJ, pptlorg: *mut super::super::Foundation::POINTL, mix: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngTextOut(pso : *mut SURFOBJ, pstro : *mut STROBJ, pfo : *mut FONTOBJ, pco : *mut CLIPOBJ, prclextra : *mut super::super::Foundation:: RECTL, prclopaque : *mut super::super::Foundation:: RECTL, pbofore : *mut BRUSHOBJ, pboopaque : *mut BRUSHOBJ, pptlorg : *mut super::super::Foundation:: POINTL, mix : u32) -> windows_core::BOOL); unsafe { EngTextOut(pso as _, pstro as _, pfo as _, pco as _, prclextra as _, prclopaque as _, pbofore as _, pboopaque as _, pptlorg as _, mix) } } #[inline] -pub unsafe fn EngTransparentBlt(psodst: *const SURFOBJ, psosrc: *const SURFOBJ, pco: Option<*const CLIPOBJ>, pxlo: Option<*const XLATEOBJ>, prcldst: *const super::super::Foundation::RECTL, prclsrc: *const super::super::Foundation::RECTL, transcolor: u32, bcalledfrombitblt: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EngTransparentBlt(psodst : *const SURFOBJ, psosrc : *const SURFOBJ, pco : *const CLIPOBJ, pxlo : *const XLATEOBJ, prcldst : *const super::super::Foundation:: RECTL, prclsrc : *const super::super::Foundation:: RECTL, transcolor : u32, bcalledfrombitblt : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EngTransparentBlt(psodst: *const SURFOBJ, psosrc: *const SURFOBJ, pco: Option<*const CLIPOBJ>, pxlo: Option<*const XLATEOBJ>, prcldst: *const super::super::Foundation::RECTL, prclsrc: *const super::super::Foundation::RECTL, transcolor: u32, bcalledfrombitblt: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EngTransparentBlt(psodst : *const SURFOBJ, psosrc : *const SURFOBJ, pco : *const CLIPOBJ, pxlo : *const XLATEOBJ, prcldst : *const super::super::Foundation:: RECTL, prclsrc : *const super::super::Foundation:: RECTL, transcolor : u32, bcalledfrombitblt : u32) -> windows_core::BOOL); unsafe { EngTransparentBlt(psodst, psosrc, pco.unwrap_or(core::mem::zeroed()) as _, pxlo.unwrap_or(core::mem::zeroed()) as _, prcldst, prclsrc, transcolor, bcalledfrombitblt) } } #[inline] @@ -358,8 +358,8 @@ pub unsafe fn FONTOBJ_vGetInfo(pfo: *mut FONTOBJ, cjsize: u32, pfi: *mut FONTINF unsafe { FONTOBJ_vGetInfo(pfo as _, cjsize, pfi as _) } } #[inline] -pub unsafe fn GetAutoRotationState(pstate: *mut AR_STATE) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn GetAutoRotationState(pstate : *mut AR_STATE) -> super::super::Foundation:: BOOL); +pub unsafe fn GetAutoRotationState(pstate: *mut AR_STATE) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn GetAutoRotationState(pstate : *mut AR_STATE) -> windows_core::BOOL); unsafe { GetAutoRotationState(pstate as _) } } #[inline] @@ -368,8 +368,8 @@ pub unsafe fn GetCapabilitiesStringLength(hmonitor: super::super::Foundation::HA unsafe { GetCapabilitiesStringLength(hmonitor, pdwcapabilitiesstringlengthincharacters as _) } } #[inline] -pub unsafe fn GetDisplayAutoRotationPreferences(porientation: *mut ORIENTATION_PREFERENCE) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn GetDisplayAutoRotationPreferences(porientation : *mut ORIENTATION_PREFERENCE) -> super::super::Foundation:: BOOL); +pub unsafe fn GetDisplayAutoRotationPreferences(porientation: *mut ORIENTATION_PREFERENCE) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn GetDisplayAutoRotationPreferences(porientation : *mut ORIENTATION_PREFERENCE) -> windows_core::BOOL); unsafe { GetDisplayAutoRotationPreferences(porientation as _) } } #[inline] @@ -425,7 +425,7 @@ pub unsafe fn GetMonitorTechnologyType(hmonitor: super::super::Foundation::HANDL #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetNumberOfPhysicalMonitorsFromHMONITOR(hmonitor: super::super::Graphics::Gdi::HMONITOR, pdwnumberofphysicalmonitors: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("dxva2.dll" "system" fn GetNumberOfPhysicalMonitorsFromHMONITOR(hmonitor : super::super::Graphics::Gdi:: HMONITOR, pdwnumberofphysicalmonitors : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("dxva2.dll" "system" fn GetNumberOfPhysicalMonitorsFromHMONITOR(hmonitor : super::super::Graphics::Gdi:: HMONITOR, pdwnumberofphysicalmonitors : *mut u32) -> windows_core::BOOL); unsafe { GetNumberOfPhysicalMonitorsFromHMONITOR(hmonitor, pdwnumberofphysicalmonitors as _).ok() } } #[cfg(feature = "Win32_Graphics_Direct3D9")] @@ -443,7 +443,7 @@ where #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetPhysicalMonitorsFromHMONITOR(hmonitor: super::super::Graphics::Gdi::HMONITOR, pphysicalmonitorarray: &mut [PHYSICAL_MONITOR]) -> windows_core::Result<()> { - windows_targets::link!("dxva2.dll" "system" fn GetPhysicalMonitorsFromHMONITOR(hmonitor : super::super::Graphics::Gdi:: HMONITOR, dwphysicalmonitorarraysize : u32, pphysicalmonitorarray : *mut PHYSICAL_MONITOR) -> super::super::Foundation:: BOOL); + windows_targets::link!("dxva2.dll" "system" fn GetPhysicalMonitorsFromHMONITOR(hmonitor : super::super::Graphics::Gdi:: HMONITOR, dwphysicalmonitorarraysize : u32, pphysicalmonitorarray : *mut PHYSICAL_MONITOR) -> windows_core::BOOL); unsafe { GetPhysicalMonitorsFromHMONITOR(hmonitor, pphysicalmonitorarray.len().try_into().unwrap(), core::mem::transmute(pphysicalmonitorarray.as_ptr())).ok() } } #[cfg(feature = "Win32_Graphics_Direct3D9")] @@ -474,17 +474,17 @@ pub unsafe fn HT_Get8BPPFormatPalette(ppaletteentry: Option<*mut super::super::G #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn HT_Get8BPPMaskPalette(ppaletteentry: Option<*mut super::super::Graphics::Gdi::PALETTEENTRY>, use8bppmaskpal: bool, cmymask: u8, redgamma: u16, greengamma: u16, bluegamma: u16) -> i32 { - windows_targets::link!("gdi32.dll" "system" fn HT_Get8BPPMaskPalette(ppaletteentry : *mut super::super::Graphics::Gdi:: PALETTEENTRY, use8bppmaskpal : super::super::Foundation:: BOOL, cmymask : u8, redgamma : u16, greengamma : u16, bluegamma : u16) -> i32); + windows_targets::link!("gdi32.dll" "system" fn HT_Get8BPPMaskPalette(ppaletteentry : *mut super::super::Graphics::Gdi:: PALETTEENTRY, use8bppmaskpal : windows_core::BOOL, cmymask : u8, redgamma : u16, greengamma : u16, bluegamma : u16) -> i32); unsafe { HT_Get8BPPMaskPalette(ppaletteentry.unwrap_or(core::mem::zeroed()) as _, use8bppmaskpal.into(), cmymask, redgamma, greengamma, bluegamma) } } #[inline] -pub unsafe fn PATHOBJ_bEnum(ppo: *mut PATHOBJ, ppd: *mut PATHDATA) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PATHOBJ_bEnum(ppo : *mut PATHOBJ, ppd : *mut PATHDATA) -> super::super::Foundation:: BOOL); +pub unsafe fn PATHOBJ_bEnum(ppo: *mut PATHOBJ, ppd: *mut PATHDATA) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PATHOBJ_bEnum(ppo : *mut PATHOBJ, ppd : *mut PATHDATA) -> windows_core::BOOL); unsafe { PATHOBJ_bEnum(ppo as _, ppd as _) } } #[inline] -pub unsafe fn PATHOBJ_bEnumClipLines(ppo: *mut PATHOBJ, cb: u32, pcl: *mut CLIPLINE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PATHOBJ_bEnumClipLines(ppo : *mut PATHOBJ, cb : u32, pcl : *mut CLIPLINE) -> super::super::Foundation:: BOOL); +pub unsafe fn PATHOBJ_bEnumClipLines(ppo: *mut PATHOBJ, cb: u32, pcl: *mut CLIPLINE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PATHOBJ_bEnumClipLines(ppo : *mut PATHOBJ, cb : u32, pcl : *mut CLIPLINE) -> windows_core::BOOL); unsafe { PATHOBJ_bEnumClipLines(ppo as _, cb, pcl as _) } } #[inline] @@ -518,18 +518,18 @@ pub unsafe fn RestoreMonitorFactoryDefaults(hmonitor: super::super::Foundation:: unsafe { RestoreMonitorFactoryDefaults(hmonitor) } } #[inline] -pub unsafe fn STROBJ_bEnum(pstro: *mut STROBJ, pc: *mut u32, ppgpos: *mut *mut GLYPHPOS) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn STROBJ_bEnum(pstro : *mut STROBJ, pc : *mut u32, ppgpos : *mut *mut GLYPHPOS) -> super::super::Foundation:: BOOL); +pub unsafe fn STROBJ_bEnum(pstro: *mut STROBJ, pc: *mut u32, ppgpos: *mut *mut GLYPHPOS) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn STROBJ_bEnum(pstro : *mut STROBJ, pc : *mut u32, ppgpos : *mut *mut GLYPHPOS) -> windows_core::BOOL); unsafe { STROBJ_bEnum(pstro as _, pc as _, ppgpos as _) } } #[inline] -pub unsafe fn STROBJ_bEnumPositionsOnly(pstro: *mut STROBJ, pc: *mut u32, ppgpos: *mut *mut GLYPHPOS) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn STROBJ_bEnumPositionsOnly(pstro : *mut STROBJ, pc : *mut u32, ppgpos : *mut *mut GLYPHPOS) -> super::super::Foundation:: BOOL); +pub unsafe fn STROBJ_bEnumPositionsOnly(pstro: *mut STROBJ, pc: *mut u32, ppgpos: *mut *mut GLYPHPOS) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn STROBJ_bEnumPositionsOnly(pstro : *mut STROBJ, pc : *mut u32, ppgpos : *mut *mut GLYPHPOS) -> windows_core::BOOL); unsafe { STROBJ_bEnumPositionsOnly(pstro as _, pc as _, ppgpos as _) } } #[inline] -pub unsafe fn STROBJ_bGetAdvanceWidths(pso: *mut STROBJ, ifirst: u32, c: u32, pptqd: *mut POINTQF) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn STROBJ_bGetAdvanceWidths(pso : *mut STROBJ, ifirst : u32, c : u32, pptqd : *mut POINTQF) -> super::super::Foundation:: BOOL); +pub unsafe fn STROBJ_bGetAdvanceWidths(pso: *mut STROBJ, ifirst: u32, c: u32, pptqd: *mut POINTQF) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn STROBJ_bGetAdvanceWidths(pso : *mut STROBJ, ifirst : u32, c : u32, pptqd : *mut POINTQF) -> windows_core::BOOL); unsafe { STROBJ_bGetAdvanceWidths(pso as _, ifirst, c, pptqd as _) } } #[inline] @@ -553,8 +553,8 @@ pub unsafe fn SaveCurrentSettings(hmonitor: super::super::Foundation::HANDLE) -> unsafe { SaveCurrentSettings(hmonitor) } } #[inline] -pub unsafe fn SetDisplayAutoRotationPreferences(orientation: ORIENTATION_PREFERENCE) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn SetDisplayAutoRotationPreferences(orientation : ORIENTATION_PREFERENCE) -> super::super::Foundation:: BOOL); +pub unsafe fn SetDisplayAutoRotationPreferences(orientation: ORIENTATION_PREFERENCE) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn SetDisplayAutoRotationPreferences(orientation : ORIENTATION_PREFERENCE) -> windows_core::BOOL); unsafe { SetDisplayAutoRotationPreferences(orientation) } } #[inline] @@ -603,8 +603,8 @@ pub unsafe fn SetVCPFeature(hmonitor: super::super::Foundation::HANDLE, bvcpcode unsafe { SetVCPFeature(hmonitor, bvcpcode, dwnewvalue) } } #[inline] -pub unsafe fn XFORMOBJ_bApplyXform(pxo: *mut XFORMOBJ, imode: u32, cpoints: u32, pvin: *mut core::ffi::c_void, pvout: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn XFORMOBJ_bApplyXform(pxo : *mut XFORMOBJ, imode : u32, cpoints : u32, pvin : *mut core::ffi::c_void, pvout : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn XFORMOBJ_bApplyXform(pxo: *mut XFORMOBJ, imode: u32, cpoints: u32, pvin: *mut core::ffi::c_void, pvout: *mut core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn XFORMOBJ_bApplyXform(pxo : *mut XFORMOBJ, imode : u32, cpoints : u32, pvin : *mut core::ffi::c_void, pvout : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { XFORMOBJ_bApplyXform(pxo as _, imode, cpoints, pvin as _, pvout as _) } } #[inline] @@ -1484,7 +1484,7 @@ pub struct DISPLAYCONFIG_PATH_TARGET_INFO { pub scaling: DISPLAYCONFIG_SCALING, pub refreshRate: DISPLAYCONFIG_RATIONAL, pub scanLineOrdering: DISPLAYCONFIG_SCANLINE_ORDERING, - pub targetAvailable: super::super::Foundation::BOOL, + pub targetAvailable: windows_core::BOOL, pub statusFlags: u32, } impl Default for DISPLAYCONFIG_PATH_TARGET_INFO { @@ -1882,7 +1882,7 @@ pub const DRH_APIBITMAP: u32 = 1u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct DRH_APIBITMAPDATA { pub pso: *mut SURFOBJ, - pub b: super::super::Foundation::BOOL, + pub b: windows_core::BOOL, } impl Default for DRH_APIBITMAPDATA { fn default() -> Self { @@ -2427,7 +2427,7 @@ pub const FO_SIM_ITALIC: u32 = 16384u32; pub const FO_VERT_FACE: u32 = 8388608u32; pub const FP_ALTERNATEMODE: i32 = 1i32; pub const FP_WINDINGMODE: i32 = 2i32; -pub type FREEOBJPROC = Option super::super::Foundation::BOOL>; +pub type FREEOBJPROC = Option windows_core::BOOL>; #[repr(C)] #[cfg(feature = "Win32_System_Console")] #[derive(Clone, Copy, Debug, PartialEq)] @@ -2933,13 +2933,13 @@ pub struct ICloneViewHelper_Vtbl { pub GetConnectedIDs: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut u32, *mut u32, u32) -> windows_core::HRESULT, pub GetActiveTopology: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *mut u32, *mut u32) -> windows_core::HRESULT, pub SetActiveTopology: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, u32, *const u32) -> windows_core::HRESULT, - pub Commit: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Commit: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait ICloneViewHelper_Impl: windows_core::IUnknownImpl { fn GetConnectedIDs(&self, wszadaptorname: &windows_core::PCWSTR, pulcount: *mut u32, pulid: *mut u32, ulflags: u32) -> windows_core::Result<()>; fn GetActiveTopology(&self, wszadaptorname: &windows_core::PCWSTR, ulsourceid: u32, pulcount: *mut u32, pultargetid: *mut u32) -> windows_core::Result<()>; fn SetActiveTopology(&self, wszadaptorname: &windows_core::PCWSTR, ulsourceid: u32, ulcount: u32, pultargetid: *const u32) -> windows_core::Result<()>; - fn Commit(&self, ffinalcall: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Commit(&self, ffinalcall: windows_core::BOOL) -> windows_core::Result<()>; } impl ICloneViewHelper_Vtbl { pub const fn new() -> Self { @@ -2961,7 +2961,7 @@ impl ICloneViewHelper_Vtbl { ICloneViewHelper_Impl::SetActiveTopology(this, core::mem::transmute(&wszadaptorname), core::mem::transmute_copy(&ulsourceid), core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&pultargetid)).into() } } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, ffinalcall: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, ffinalcall: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICloneViewHelper_Impl::Commit(this, core::mem::transmute_copy(&ffinalcall)).into() @@ -4071,7 +4071,7 @@ pub const PD_RESETSTYLE: u32 = 4u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct PERBANDINFO { - pub bRepeatThisBand: super::super::Foundation::BOOL, + pub bRepeatThisBand: windows_core::BOOL, pub szlBand: super::super::Foundation::SIZE, pub ulHorzRes: u32, pub ulVertRes: u32, @@ -4082,14 +4082,14 @@ impl Default for PERBANDINFO { } } pub type PFN = Option isize>; -pub type PFN_DrvAccumulateD3DDirtyRect = Option super::super::Foundation::BOOL>; +pub type PFN_DrvAccumulateD3DDirtyRect = Option windows_core::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] -pub type PFN_DrvAlphaBlend = Option super::super::Foundation::BOOL>; -pub type PFN_DrvAssertMode = Option super::super::Foundation::BOOL>; -pub type PFN_DrvAssociateSharedSurface = Option super::super::Foundation::BOOL>; -pub type PFN_DrvBitBlt = Option super::super::Foundation::BOOL>; +pub type PFN_DrvAlphaBlend = Option windows_core::BOOL>; +pub type PFN_DrvAssertMode = Option windows_core::BOOL>; +pub type PFN_DrvAssociateSharedSurface = Option windows_core::BOOL>; +pub type PFN_DrvBitBlt = Option windows_core::BOOL>; pub type PFN_DrvCompletePDEV = Option; -pub type PFN_DrvCopyBits = Option super::super::Foundation::BOOL>; +pub type PFN_DrvCopyBits = Option windows_core::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] pub type PFN_DrvCreateDeviceBitmap = Option super::super::Graphics::Gdi::HBITMAP>; #[cfg(feature = "Win32_Graphics_Gdi")] @@ -4108,42 +4108,42 @@ pub type PFN_DrvDisableSurface = Option u32>; pub type PFN_DrvDrawEscape = Option u32>; #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] -pub type PFN_DrvEnableDirectDraw = Option super::super::Foundation::BOOL>; -pub type PFN_DrvEnableDriver = Option super::super::Foundation::BOOL>; +pub type PFN_DrvEnableDirectDraw = Option windows_core::BOOL>; +pub type PFN_DrvEnableDriver = Option windows_core::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] pub type PFN_DrvEnablePDEV = Option DHPDEV>; pub type PFN_DrvEnableSurface = Option HSURF>; -pub type PFN_DrvEndDoc = Option super::super::Foundation::BOOL>; -pub type PFN_DrvEndDxInterop = Option super::super::Foundation::BOOL>; +pub type PFN_DrvEndDoc = Option windows_core::BOOL>; +pub type PFN_DrvEndDxInterop = Option windows_core::BOOL>; pub type PFN_DrvEscape = Option u32>; -pub type PFN_DrvFillPath = Option super::super::Foundation::BOOL>; +pub type PFN_DrvFillPath = Option windows_core::BOOL>; pub type PFN_DrvFontManagement = Option u32>; pub type PFN_DrvFree = Option; #[cfg(feature = "Win32_Graphics_DirectDraw")] -pub type PFN_DrvGetDirectDrawInfo = Option super::super::Foundation::BOOL>; +pub type PFN_DrvGetDirectDrawInfo = Option windows_core::BOOL>; pub type PFN_DrvGetGlyphMode = Option u32>; #[cfg(feature = "Win32_Graphics_Gdi")] pub type PFN_DrvGetModes = Option u32>; pub type PFN_DrvGetTrueTypeFile = Option *mut core::ffi::c_void>; #[cfg(feature = "Win32_Graphics_Gdi")] -pub type PFN_DrvGradientFill = Option super::super::Foundation::BOOL>; -pub type PFN_DrvIcmCheckBitmapBits = Option super::super::Foundation::BOOL>; +pub type PFN_DrvGradientFill = Option windows_core::BOOL>; +pub type PFN_DrvIcmCheckBitmapBits = Option windows_core::BOOL>; #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_ColorSystem"))] pub type PFN_DrvIcmCreateColorTransform = Option super::super::Foundation::HANDLE>; -pub type PFN_DrvIcmDeleteColorTransform = Option super::super::Foundation::BOOL>; -pub type PFN_DrvIcmSetDeviceGammaRamp = Option super::super::Foundation::BOOL>; -pub type PFN_DrvLineTo = Option super::super::Foundation::BOOL>; +pub type PFN_DrvIcmDeleteColorTransform = Option windows_core::BOOL>; +pub type PFN_DrvIcmSetDeviceGammaRamp = Option windows_core::BOOL>; +pub type PFN_DrvLineTo = Option windows_core::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] pub type PFN_DrvLoadFontFile = Option usize>; pub type PFN_DrvLockDisplayArea = Option; pub type PFN_DrvMovePointer = Option; -pub type PFN_DrvNextBand = Option super::super::Foundation::BOOL>; +pub type PFN_DrvNextBand = Option windows_core::BOOL>; pub type PFN_DrvNotify = Option; -pub type PFN_DrvPaint = Option super::super::Foundation::BOOL>; +pub type PFN_DrvPaint = Option windows_core::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] -pub type PFN_DrvPlgBlt = Option super::super::Foundation::BOOL>; -pub type PFN_DrvQueryAdvanceWidths = Option super::super::Foundation::BOOL>; -pub type PFN_DrvQueryDeviceSupport = Option super::super::Foundation::BOOL>; +pub type PFN_DrvPlgBlt = Option windows_core::BOOL>; +pub type PFN_DrvQueryAdvanceWidths = Option windows_core::BOOL>; +pub type PFN_DrvQueryDeviceSupport = Option windows_core::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] pub type PFN_DrvQueryFont = Option *mut IFIMETRICS>; pub type PFN_DrvQueryFontCaps = Option i32>; @@ -4151,39 +4151,39 @@ pub type PFN_DrvQueryFontData = Option i32>; pub type PFN_DrvQueryFontTree = Option *mut core::ffi::c_void>; pub type PFN_DrvQueryGlyphAttrs = Option *mut FD_GLYPHATTR>; -pub type PFN_DrvQueryPerBandInfo = Option super::super::Foundation::BOOL>; -pub type PFN_DrvQuerySpoolType = Option super::super::Foundation::BOOL>; +pub type PFN_DrvQueryPerBandInfo = Option windows_core::BOOL>; +pub type PFN_DrvQuerySpoolType = Option windows_core::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] -pub type PFN_DrvQueryTrueTypeOutline = Option i32>; +pub type PFN_DrvQueryTrueTypeOutline = Option i32>; pub type PFN_DrvQueryTrueTypeSection = Option i32>; pub type PFN_DrvQueryTrueTypeTable = Option i32>; -pub type PFN_DrvRealizeBrush = Option super::super::Foundation::BOOL>; +pub type PFN_DrvRealizeBrush = Option windows_core::BOOL>; pub type PFN_DrvRenderHint = Option i32>; pub type PFN_DrvResetDevice = Option u32>; -pub type PFN_DrvResetPDEV = Option super::super::Foundation::BOOL>; +pub type PFN_DrvResetPDEV = Option windows_core::BOOL>; pub type PFN_DrvSaveScreenBits = Option usize>; -pub type PFN_DrvSendPage = Option super::super::Foundation::BOOL>; -pub type PFN_DrvSetPalette = Option super::super::Foundation::BOOL>; -pub type PFN_DrvSetPixelFormat = Option super::super::Foundation::BOOL>; +pub type PFN_DrvSendPage = Option windows_core::BOOL>; +pub type PFN_DrvSetPalette = Option windows_core::BOOL>; +pub type PFN_DrvSetPixelFormat = Option windows_core::BOOL>; pub type PFN_DrvSetPointerShape = Option u32>; -pub type PFN_DrvStartBanding = Option super::super::Foundation::BOOL>; -pub type PFN_DrvStartDoc = Option super::super::Foundation::BOOL>; -pub type PFN_DrvStartDxInterop = Option super::super::Foundation::BOOL>; -pub type PFN_DrvStartPage = Option super::super::Foundation::BOOL>; +pub type PFN_DrvStartBanding = Option windows_core::BOOL>; +pub type PFN_DrvStartDoc = Option windows_core::BOOL>; +pub type PFN_DrvStartDxInterop = Option windows_core::BOOL>; +pub type PFN_DrvStartPage = Option windows_core::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] -pub type PFN_DrvStretchBlt = Option super::super::Foundation::BOOL>; +pub type PFN_DrvStretchBlt = Option windows_core::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] -pub type PFN_DrvStretchBltROP = Option super::super::Foundation::BOOL>; -pub type PFN_DrvStrokeAndFillPath = Option super::super::Foundation::BOOL>; -pub type PFN_DrvStrokePath = Option super::super::Foundation::BOOL>; -pub type PFN_DrvSurfaceComplete = Option super::super::Foundation::BOOL>; -pub type PFN_DrvSwapBuffers = Option super::super::Foundation::BOOL>; +pub type PFN_DrvStretchBltROP = Option windows_core::BOOL>; +pub type PFN_DrvStrokeAndFillPath = Option windows_core::BOOL>; +pub type PFN_DrvStrokePath = Option windows_core::BOOL>; +pub type PFN_DrvSurfaceComplete = Option windows_core::BOOL>; +pub type PFN_DrvSwapBuffers = Option windows_core::BOOL>; pub type PFN_DrvSynchronize = Option; pub type PFN_DrvSynchronizeRedirectionBitmaps = Option super::super::Foundation::NTSTATUS>; pub type PFN_DrvSynchronizeSurface = Option; -pub type PFN_DrvTextOut = Option super::super::Foundation::BOOL>; -pub type PFN_DrvTransparentBlt = Option super::super::Foundation::BOOL>; -pub type PFN_DrvUnloadFontFile = Option super::super::Foundation::BOOL>; +pub type PFN_DrvTextOut = Option windows_core::BOOL>; +pub type PFN_DrvTransparentBlt = Option windows_core::BOOL>; +pub type PFN_DrvUnloadFontFile = Option windows_core::BOOL>; pub type PFN_DrvUnlockDisplayArea = Option; pub type PFN_EngCombineRgn = Option i32>; pub type PFN_EngCopyRgn = Option i32>; 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 f38e8913fc..f52e052616 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 @@ -39,7 +39,7 @@ pub unsafe fn SwDeviceInterfaceRegister(hswdevice: HSWDEVICE, pinterfaceclas where P2: windows_core::Param, { - windows_targets::link!("cfgmgr32.dll" "system" fn SwDeviceInterfaceRegister(hswdevice : HSWDEVICE, pinterfaceclassguid : *const windows_core::GUID, pszreferencestring : windows_core::PCWSTR, cpropertycount : u32, pproperties : *const super::super::Properties:: DEVPROPERTY, fenabled : super::super::super::Foundation:: BOOL, ppszdeviceinterfaceid : *mut windows_core::PWSTR) -> windows_core::HRESULT); + windows_targets::link!("cfgmgr32.dll" "system" fn SwDeviceInterfaceRegister(hswdevice : HSWDEVICE, pinterfaceclassguid : *const windows_core::GUID, pszreferencestring : windows_core::PCWSTR, cpropertycount : u32, pproperties : *const super::super::Properties:: DEVPROPERTY, fenabled : windows_core::BOOL, ppszdeviceinterfaceid : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); SwDeviceInterfaceRegister(hswdevice, pinterfaceclassguid, pszreferencestring.param().abi(), pproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fenabled.into(), &mut result__).map(|| core::mem::transmute(result__)) @@ -50,7 +50,7 @@ pub unsafe fn SwDeviceInterfaceSetState(hswdevice: HSWDEVICE, pszdeviceinter where P1: windows_core::Param, { - windows_targets::link!("cfgmgr32.dll" "system" fn SwDeviceInterfaceSetState(hswdevice : HSWDEVICE, pszdeviceinterfaceid : windows_core::PCWSTR, fenabled : super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("cfgmgr32.dll" "system" fn SwDeviceInterfaceSetState(hswdevice : HSWDEVICE, pszdeviceinterfaceid : windows_core::PCWSTR, fenabled : windows_core::BOOL) -> windows_core::HRESULT); unsafe { SwDeviceInterfaceSetState(hswdevice, pszdeviceinterfaceid.param().abi(), fenabled.into()).ok() } } #[cfg(feature = "Win32_Devices_Properties")] @@ -1526,7 +1526,7 @@ pub struct IUPnPRegistrar_Vtbl { pub RegisterRunningDevice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RegisterDeviceProvider: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetUniqueDeviceName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub UnregisterDevice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub UnregisterDevice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub UnregisterDeviceProvider: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IUPnPRegistrar_Impl: windows_core::IUnknownImpl { @@ -1534,7 +1534,7 @@ pub trait IUPnPRegistrar_Impl: windows_core::IUnknownImpl { fn RegisterRunningDevice(&self, bstrxmldesc: &windows_core::BSTR, punkdevicecontrol: windows_core::Ref, bstrinitstring: &windows_core::BSTR, bstrresourcepath: &windows_core::BSTR, nlifetime: i32) -> windows_core::Result; fn RegisterDeviceProvider(&self, bstrprovidername: &windows_core::BSTR, bstrprogidproviderclass: &windows_core::BSTR, bstrinitstring: &windows_core::BSTR, bstrcontainerid: &windows_core::BSTR) -> windows_core::Result<()>; fn GetUniqueDeviceName(&self, bstrdeviceidentifier: &windows_core::BSTR, bstrtemplateudn: &windows_core::BSTR) -> windows_core::Result; - fn UnregisterDevice(&self, bstrdeviceidentifier: &windows_core::BSTR, fpermanent: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn UnregisterDevice(&self, bstrdeviceidentifier: &windows_core::BSTR, fpermanent: windows_core::BOOL) -> windows_core::Result<()>; fn UnregisterDeviceProvider(&self, bstrprovidername: &windows_core::BSTR) -> windows_core::Result<()>; } impl IUPnPRegistrar_Vtbl { @@ -1581,7 +1581,7 @@ impl IUPnPRegistrar_Vtbl { } } } - unsafe extern "system" fn UnregisterDevice(this: *mut core::ffi::c_void, bstrdeviceidentifier: *mut core::ffi::c_void, fpermanent: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn UnregisterDevice(this: *mut core::ffi::c_void, bstrdeviceidentifier: *mut core::ffi::c_void, fpermanent: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUPnPRegistrar_Impl::UnregisterDevice(this, core::mem::transmute(&bstrdeviceidentifier), core::mem::transmute_copy(&fpermanent)).into() 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 f6051ce30a..868c909d9c 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Fax/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Fax/mod.rs @@ -1,31 +1,31 @@ #[inline] -pub unsafe fn CanSendToFaxRecipient() -> super::super::Foundation::BOOL { - windows_targets::link!("fxsutility.dll" "system" fn CanSendToFaxRecipient() -> super::super::Foundation:: BOOL); +pub unsafe fn CanSendToFaxRecipient() -> windows_core::BOOL { + windows_targets::link!("fxsutility.dll" "system" fn CanSendToFaxRecipient() -> windows_core::BOOL); unsafe { CanSendToFaxRecipient() } } #[inline] -pub unsafe fn FaxAbort(faxhandle: super::super::Foundation::HANDLE, jobid: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winfax.dll" "system" fn FaxAbort(faxhandle : super::super::Foundation:: HANDLE, jobid : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn FaxAbort(faxhandle: super::super::Foundation::HANDLE, jobid: u32) -> windows_core::BOOL { + windows_targets::link!("winfax.dll" "system" fn FaxAbort(faxhandle : super::super::Foundation:: HANDLE, jobid : u32) -> windows_core::BOOL); unsafe { FaxAbort(faxhandle, jobid) } } #[inline] -pub unsafe fn FaxAccessCheck(faxhandle: super::super::Foundation::HANDLE, accessmask: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winfax.dll" "system" fn FaxAccessCheck(faxhandle : super::super::Foundation:: HANDLE, accessmask : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn FaxAccessCheck(faxhandle: super::super::Foundation::HANDLE, accessmask: u32) -> windows_core::BOOL { + windows_targets::link!("winfax.dll" "system" fn FaxAccessCheck(faxhandle : super::super::Foundation:: HANDLE, accessmask : u32) -> windows_core::BOOL); unsafe { FaxAccessCheck(faxhandle, accessmask) } } #[inline] -pub unsafe fn FaxClose(faxhandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("winfax.dll" "system" fn FaxClose(faxhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn FaxClose(faxhandle: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("winfax.dll" "system" fn FaxClose(faxhandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { FaxClose(faxhandle) } } #[inline] -pub unsafe fn FaxCompleteJobParamsA(jobparams: *mut *mut FAX_JOB_PARAMA, coverpageinfo: *mut *mut FAX_COVERPAGE_INFOA) -> super::super::Foundation::BOOL { - windows_targets::link!("winfax.dll" "system" fn FaxCompleteJobParamsA(jobparams : *mut *mut FAX_JOB_PARAMA, coverpageinfo : *mut *mut FAX_COVERPAGE_INFOA) -> super::super::Foundation:: BOOL); +pub unsafe fn FaxCompleteJobParamsA(jobparams: *mut *mut FAX_JOB_PARAMA, coverpageinfo: *mut *mut FAX_COVERPAGE_INFOA) -> windows_core::BOOL { + windows_targets::link!("winfax.dll" "system" fn FaxCompleteJobParamsA(jobparams : *mut *mut FAX_JOB_PARAMA, coverpageinfo : *mut *mut FAX_COVERPAGE_INFOA) -> windows_core::BOOL); unsafe { FaxCompleteJobParamsA(jobparams as _, coverpageinfo as _) } } #[inline] -pub unsafe fn FaxCompleteJobParamsW(jobparams: *mut *mut FAX_JOB_PARAMW, coverpageinfo: *mut *mut FAX_COVERPAGE_INFOW) -> super::super::Foundation::BOOL { - windows_targets::link!("winfax.dll" "system" fn FaxCompleteJobParamsW(jobparams : *mut *mut FAX_JOB_PARAMW, coverpageinfo : *mut *mut FAX_COVERPAGE_INFOW) -> super::super::Foundation:: BOOL); +pub unsafe fn FaxCompleteJobParamsW(jobparams: *mut *mut FAX_JOB_PARAMW, coverpageinfo: *mut *mut FAX_COVERPAGE_INFOW) -> windows_core::BOOL { + windows_targets::link!("winfax.dll" "system" fn FaxCompleteJobParamsW(jobparams : *mut *mut FAX_JOB_PARAMW, coverpageinfo : *mut *mut FAX_COVERPAGE_INFOW) -> windows_core::BOOL); unsafe { FaxCompleteJobParamsW(jobparams as _, coverpageinfo as _) } } #[inline] @@ -33,7 +33,7 @@ pub unsafe fn FaxConnectFaxServerA(machinename: P0, faxhandle: *mut super::s where P0: windows_core::Param, { - windows_targets::link!("winfax.dll" "system" fn FaxConnectFaxServerA(machinename : windows_core::PCSTR, faxhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxConnectFaxServerA(machinename : windows_core::PCSTR, faxhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { FaxConnectFaxServerA(machinename.param().abi(), faxhandle as _).ok() } } #[inline] @@ -41,7 +41,7 @@ pub unsafe fn FaxConnectFaxServerW(machinename: P0, faxhandle: *mut super::s where P0: windows_core::Param, { - windows_targets::link!("winfax.dll" "system" fn FaxConnectFaxServerW(machinename : windows_core::PCWSTR, faxhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxConnectFaxServerW(machinename : windows_core::PCWSTR, faxhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { FaxConnectFaxServerW(machinename.param().abi(), faxhandle as _).ok() } } #[inline] @@ -49,7 +49,7 @@ pub unsafe fn FaxEnableRoutingMethodA(faxporthandle: super::super::Foundatio where P1: windows_core::Param, { - windows_targets::link!("winfax.dll" "system" fn FaxEnableRoutingMethodA(faxporthandle : super::super::Foundation:: HANDLE, routingguid : windows_core::PCSTR, enabled : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxEnableRoutingMethodA(faxporthandle : super::super::Foundation:: HANDLE, routingguid : windows_core::PCSTR, enabled : windows_core::BOOL) -> windows_core::BOOL); unsafe { FaxEnableRoutingMethodA(faxporthandle, routingguid.param().abi(), enabled.into()).ok() } } #[inline] @@ -57,47 +57,47 @@ pub unsafe fn FaxEnableRoutingMethodW(faxporthandle: super::super::Foundatio where P1: windows_core::Param, { - windows_targets::link!("winfax.dll" "system" fn FaxEnableRoutingMethodW(faxporthandle : super::super::Foundation:: HANDLE, routingguid : windows_core::PCWSTR, enabled : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxEnableRoutingMethodW(faxporthandle : super::super::Foundation:: HANDLE, routingguid : windows_core::PCWSTR, enabled : windows_core::BOOL) -> windows_core::BOOL); unsafe { FaxEnableRoutingMethodW(faxporthandle, routingguid.param().abi(), enabled.into()).ok() } } #[inline] pub unsafe fn FaxEnumGlobalRoutingInfoA(faxhandle: super::super::Foundation::HANDLE, routinginfo: *mut *mut FAX_GLOBAL_ROUTING_INFOA, methodsreturned: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxEnumGlobalRoutingInfoA(faxhandle : super::super::Foundation:: HANDLE, routinginfo : *mut *mut FAX_GLOBAL_ROUTING_INFOA, methodsreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxEnumGlobalRoutingInfoA(faxhandle : super::super::Foundation:: HANDLE, routinginfo : *mut *mut FAX_GLOBAL_ROUTING_INFOA, methodsreturned : *mut u32) -> windows_core::BOOL); unsafe { FaxEnumGlobalRoutingInfoA(faxhandle, routinginfo as _, methodsreturned as _).ok() } } #[inline] pub unsafe fn FaxEnumGlobalRoutingInfoW(faxhandle: super::super::Foundation::HANDLE, routinginfo: *mut *mut FAX_GLOBAL_ROUTING_INFOW, methodsreturned: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxEnumGlobalRoutingInfoW(faxhandle : super::super::Foundation:: HANDLE, routinginfo : *mut *mut FAX_GLOBAL_ROUTING_INFOW, methodsreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxEnumGlobalRoutingInfoW(faxhandle : super::super::Foundation:: HANDLE, routinginfo : *mut *mut FAX_GLOBAL_ROUTING_INFOW, methodsreturned : *mut u32) -> windows_core::BOOL); unsafe { FaxEnumGlobalRoutingInfoW(faxhandle, routinginfo as _, methodsreturned as _).ok() } } #[inline] pub unsafe fn FaxEnumJobsA(faxhandle: super::super::Foundation::HANDLE, jobentry: *mut *mut FAX_JOB_ENTRYA, jobsreturned: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxEnumJobsA(faxhandle : super::super::Foundation:: HANDLE, jobentry : *mut *mut FAX_JOB_ENTRYA, jobsreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxEnumJobsA(faxhandle : super::super::Foundation:: HANDLE, jobentry : *mut *mut FAX_JOB_ENTRYA, jobsreturned : *mut u32) -> windows_core::BOOL); unsafe { FaxEnumJobsA(faxhandle, jobentry as _, jobsreturned as _).ok() } } #[inline] pub unsafe fn FaxEnumJobsW(faxhandle: super::super::Foundation::HANDLE, jobentry: *mut *mut FAX_JOB_ENTRYW, jobsreturned: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxEnumJobsW(faxhandle : super::super::Foundation:: HANDLE, jobentry : *mut *mut FAX_JOB_ENTRYW, jobsreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxEnumJobsW(faxhandle : super::super::Foundation:: HANDLE, jobentry : *mut *mut FAX_JOB_ENTRYW, jobsreturned : *mut u32) -> windows_core::BOOL); unsafe { FaxEnumJobsW(faxhandle, jobentry as _, jobsreturned as _).ok() } } #[inline] pub unsafe fn FaxEnumPortsA(faxhandle: super::super::Foundation::HANDLE, portinfo: *mut *mut FAX_PORT_INFOA, portsreturned: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxEnumPortsA(faxhandle : super::super::Foundation:: HANDLE, portinfo : *mut *mut FAX_PORT_INFOA, portsreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxEnumPortsA(faxhandle : super::super::Foundation:: HANDLE, portinfo : *mut *mut FAX_PORT_INFOA, portsreturned : *mut u32) -> windows_core::BOOL); unsafe { FaxEnumPortsA(faxhandle, portinfo as _, portsreturned as _).ok() } } #[inline] pub unsafe fn FaxEnumPortsW(faxhandle: super::super::Foundation::HANDLE, portinfo: *mut *mut FAX_PORT_INFOW, portsreturned: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxEnumPortsW(faxhandle : super::super::Foundation:: HANDLE, portinfo : *mut *mut FAX_PORT_INFOW, portsreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxEnumPortsW(faxhandle : super::super::Foundation:: HANDLE, portinfo : *mut *mut FAX_PORT_INFOW, portsreturned : *mut u32) -> windows_core::BOOL); unsafe { FaxEnumPortsW(faxhandle, portinfo as _, portsreturned as _).ok() } } #[inline] pub unsafe fn FaxEnumRoutingMethodsA(faxporthandle: super::super::Foundation::HANDLE, routingmethod: *mut *mut FAX_ROUTING_METHODA, methodsreturned: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxEnumRoutingMethodsA(faxporthandle : super::super::Foundation:: HANDLE, routingmethod : *mut *mut FAX_ROUTING_METHODA, methodsreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxEnumRoutingMethodsA(faxporthandle : super::super::Foundation:: HANDLE, routingmethod : *mut *mut FAX_ROUTING_METHODA, methodsreturned : *mut u32) -> windows_core::BOOL); unsafe { FaxEnumRoutingMethodsA(faxporthandle, routingmethod as _, methodsreturned as _).ok() } } #[inline] pub unsafe fn FaxEnumRoutingMethodsW(faxporthandle: super::super::Foundation::HANDLE, routingmethod: *mut *mut FAX_ROUTING_METHODW, methodsreturned: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxEnumRoutingMethodsW(faxporthandle : super::super::Foundation:: HANDLE, routingmethod : *mut *mut FAX_ROUTING_METHODW, methodsreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxEnumRoutingMethodsW(faxporthandle : super::super::Foundation:: HANDLE, routingmethod : *mut *mut FAX_ROUTING_METHODW, methodsreturned : *mut u32) -> windows_core::BOOL); unsafe { FaxEnumRoutingMethodsW(faxporthandle, routingmethod as _, methodsreturned as _).ok() } } #[inline] @@ -107,57 +107,57 @@ pub unsafe fn FaxFreeBuffer(buffer: *mut core::ffi::c_void) { } #[inline] pub unsafe fn FaxGetConfigurationA(faxhandle: super::super::Foundation::HANDLE, faxconfig: *mut *mut FAX_CONFIGURATIONA) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxGetConfigurationA(faxhandle : super::super::Foundation:: HANDLE, faxconfig : *mut *mut FAX_CONFIGURATIONA) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxGetConfigurationA(faxhandle : super::super::Foundation:: HANDLE, faxconfig : *mut *mut FAX_CONFIGURATIONA) -> windows_core::BOOL); unsafe { FaxGetConfigurationA(faxhandle, faxconfig as _).ok() } } #[inline] pub unsafe fn FaxGetConfigurationW(faxhandle: super::super::Foundation::HANDLE, faxconfig: *mut *mut FAX_CONFIGURATIONW) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxGetConfigurationW(faxhandle : super::super::Foundation:: HANDLE, faxconfig : *mut *mut FAX_CONFIGURATIONW) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxGetConfigurationW(faxhandle : super::super::Foundation:: HANDLE, faxconfig : *mut *mut FAX_CONFIGURATIONW) -> windows_core::BOOL); unsafe { FaxGetConfigurationW(faxhandle, faxconfig as _).ok() } } #[inline] pub unsafe fn FaxGetDeviceStatusA(faxporthandle: super::super::Foundation::HANDLE, devicestatus: *mut *mut FAX_DEVICE_STATUSA) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxGetDeviceStatusA(faxporthandle : super::super::Foundation:: HANDLE, devicestatus : *mut *mut FAX_DEVICE_STATUSA) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxGetDeviceStatusA(faxporthandle : super::super::Foundation:: HANDLE, devicestatus : *mut *mut FAX_DEVICE_STATUSA) -> windows_core::BOOL); unsafe { FaxGetDeviceStatusA(faxporthandle, devicestatus as _).ok() } } #[inline] pub unsafe fn FaxGetDeviceStatusW(faxporthandle: super::super::Foundation::HANDLE, devicestatus: *mut *mut FAX_DEVICE_STATUSW) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxGetDeviceStatusW(faxporthandle : super::super::Foundation:: HANDLE, devicestatus : *mut *mut FAX_DEVICE_STATUSW) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxGetDeviceStatusW(faxporthandle : super::super::Foundation:: HANDLE, devicestatus : *mut *mut FAX_DEVICE_STATUSW) -> windows_core::BOOL); unsafe { FaxGetDeviceStatusW(faxporthandle, devicestatus as _).ok() } } #[inline] pub unsafe fn FaxGetJobA(faxhandle: super::super::Foundation::HANDLE, jobid: u32, jobentry: *mut *mut FAX_JOB_ENTRYA) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxGetJobA(faxhandle : super::super::Foundation:: HANDLE, jobid : u32, jobentry : *mut *mut FAX_JOB_ENTRYA) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxGetJobA(faxhandle : super::super::Foundation:: HANDLE, jobid : u32, jobentry : *mut *mut FAX_JOB_ENTRYA) -> windows_core::BOOL); unsafe { FaxGetJobA(faxhandle, jobid, jobentry as _).ok() } } #[inline] pub unsafe fn FaxGetJobW(faxhandle: super::super::Foundation::HANDLE, jobid: u32, jobentry: *mut *mut FAX_JOB_ENTRYW) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxGetJobW(faxhandle : super::super::Foundation:: HANDLE, jobid : u32, jobentry : *mut *mut FAX_JOB_ENTRYW) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxGetJobW(faxhandle : super::super::Foundation:: HANDLE, jobid : u32, jobentry : *mut *mut FAX_JOB_ENTRYW) -> windows_core::BOOL); unsafe { FaxGetJobW(faxhandle, jobid, jobentry as _).ok() } } #[inline] pub unsafe fn FaxGetLoggingCategoriesA(faxhandle: super::super::Foundation::HANDLE, categories: *mut *mut FAX_LOG_CATEGORYA, numbercategories: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxGetLoggingCategoriesA(faxhandle : super::super::Foundation:: HANDLE, categories : *mut *mut FAX_LOG_CATEGORYA, numbercategories : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxGetLoggingCategoriesA(faxhandle : super::super::Foundation:: HANDLE, categories : *mut *mut FAX_LOG_CATEGORYA, numbercategories : *mut u32) -> windows_core::BOOL); unsafe { FaxGetLoggingCategoriesA(faxhandle, categories as _, numbercategories as _).ok() } } #[inline] pub unsafe fn FaxGetLoggingCategoriesW(faxhandle: super::super::Foundation::HANDLE, categories: *mut *mut FAX_LOG_CATEGORYW, numbercategories: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxGetLoggingCategoriesW(faxhandle : super::super::Foundation:: HANDLE, categories : *mut *mut FAX_LOG_CATEGORYW, numbercategories : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxGetLoggingCategoriesW(faxhandle : super::super::Foundation:: HANDLE, categories : *mut *mut FAX_LOG_CATEGORYW, numbercategories : *mut u32) -> windows_core::BOOL); unsafe { FaxGetLoggingCategoriesW(faxhandle, categories as _, numbercategories as _).ok() } } #[inline] -pub unsafe fn FaxGetPageData(faxhandle: super::super::Foundation::HANDLE, jobid: u32, buffer: *mut *mut u8, buffersize: *mut u32, imagewidth: *mut u32, imageheight: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winfax.dll" "system" fn FaxGetPageData(faxhandle : super::super::Foundation:: HANDLE, jobid : u32, buffer : *mut *mut u8, buffersize : *mut u32, imagewidth : *mut u32, imageheight : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn FaxGetPageData(faxhandle: super::super::Foundation::HANDLE, jobid: u32, buffer: *mut *mut u8, buffersize: *mut u32, imagewidth: *mut u32, imageheight: *mut u32) -> windows_core::BOOL { + windows_targets::link!("winfax.dll" "system" fn FaxGetPageData(faxhandle : super::super::Foundation:: HANDLE, jobid : u32, buffer : *mut *mut u8, buffersize : *mut u32, imagewidth : *mut u32, imageheight : *mut u32) -> windows_core::BOOL); unsafe { FaxGetPageData(faxhandle, jobid, buffer as _, buffersize as _, imagewidth as _, imageheight as _) } } #[inline] pub unsafe fn FaxGetPortA(faxporthandle: super::super::Foundation::HANDLE, portinfo: *mut *mut FAX_PORT_INFOA) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxGetPortA(faxporthandle : super::super::Foundation:: HANDLE, portinfo : *mut *mut FAX_PORT_INFOA) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxGetPortA(faxporthandle : super::super::Foundation:: HANDLE, portinfo : *mut *mut FAX_PORT_INFOA) -> windows_core::BOOL); unsafe { FaxGetPortA(faxporthandle, portinfo as _).ok() } } #[inline] pub unsafe fn FaxGetPortW(faxporthandle: super::super::Foundation::HANDLE, portinfo: *mut *mut FAX_PORT_INFOW) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxGetPortW(faxporthandle : super::super::Foundation:: HANDLE, portinfo : *mut *mut FAX_PORT_INFOW) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxGetPortW(faxporthandle : super::super::Foundation:: HANDLE, portinfo : *mut *mut FAX_PORT_INFOW) -> windows_core::BOOL); unsafe { FaxGetPortW(faxporthandle, portinfo as _).ok() } } #[inline] @@ -165,7 +165,7 @@ pub unsafe fn FaxGetRoutingInfoA(faxporthandle: super::super::Foundation::HA where P1: windows_core::Param, { - windows_targets::link!("winfax.dll" "system" fn FaxGetRoutingInfoA(faxporthandle : super::super::Foundation:: HANDLE, routingguid : windows_core::PCSTR, routinginfobuffer : *mut *mut u8, routinginfobuffersize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxGetRoutingInfoA(faxporthandle : super::super::Foundation:: HANDLE, routingguid : windows_core::PCSTR, routinginfobuffer : *mut *mut u8, routinginfobuffersize : *mut u32) -> windows_core::BOOL); unsafe { FaxGetRoutingInfoA(faxporthandle, routingguid.param().abi(), routinginfobuffer as _, routinginfobuffersize as _).ok() } } #[inline] @@ -173,29 +173,29 @@ pub unsafe fn FaxGetRoutingInfoW(faxporthandle: super::super::Foundation::HA where P1: windows_core::Param, { - windows_targets::link!("winfax.dll" "system" fn FaxGetRoutingInfoW(faxporthandle : super::super::Foundation:: HANDLE, routingguid : windows_core::PCWSTR, routinginfobuffer : *mut *mut u8, routinginfobuffersize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxGetRoutingInfoW(faxporthandle : super::super::Foundation:: HANDLE, routingguid : windows_core::PCWSTR, routinginfobuffer : *mut *mut u8, routinginfobuffersize : *mut u32) -> windows_core::BOOL); unsafe { FaxGetRoutingInfoW(faxporthandle, routingguid.param().abi(), routinginfobuffer as _, routinginfobuffersize as _).ok() } } #[inline] -pub unsafe fn FaxInitializeEventQueue(faxhandle: super::super::Foundation::HANDLE, completionport: super::super::Foundation::HANDLE, completionkey: usize, hwnd: super::super::Foundation::HWND, messagestart: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winfax.dll" "system" fn FaxInitializeEventQueue(faxhandle : super::super::Foundation:: HANDLE, completionport : super::super::Foundation:: HANDLE, completionkey : usize, hwnd : super::super::Foundation:: HWND, messagestart : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn FaxInitializeEventQueue(faxhandle: super::super::Foundation::HANDLE, completionport: super::super::Foundation::HANDLE, completionkey: usize, hwnd: super::super::Foundation::HWND, messagestart: u32) -> windows_core::BOOL { + windows_targets::link!("winfax.dll" "system" fn FaxInitializeEventQueue(faxhandle : super::super::Foundation:: HANDLE, completionport : super::super::Foundation:: HANDLE, completionkey : usize, hwnd : super::super::Foundation:: HWND, messagestart : u32) -> windows_core::BOOL); unsafe { FaxInitializeEventQueue(faxhandle, completionport, completionkey, hwnd, messagestart) } } #[inline] -pub unsafe fn FaxOpenPort(faxhandle: super::super::Foundation::HANDLE, deviceid: u32, flags: u32, faxporthandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("winfax.dll" "system" fn FaxOpenPort(faxhandle : super::super::Foundation:: HANDLE, deviceid : u32, flags : u32, faxporthandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn FaxOpenPort(faxhandle: super::super::Foundation::HANDLE, deviceid: u32, flags: u32, faxporthandle: *mut super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("winfax.dll" "system" fn FaxOpenPort(faxhandle : super::super::Foundation:: HANDLE, deviceid : u32, flags : u32, faxporthandle : *mut super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { FaxOpenPort(faxhandle, deviceid, flags, faxporthandle as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn FaxPrintCoverPageA(faxcontextinfo: *const FAX_CONTEXT_INFOA, coverpageinfo: *const FAX_COVERPAGE_INFOA) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxPrintCoverPageA(faxcontextinfo : *const FAX_CONTEXT_INFOA, coverpageinfo : *const FAX_COVERPAGE_INFOA) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxPrintCoverPageA(faxcontextinfo : *const FAX_CONTEXT_INFOA, coverpageinfo : *const FAX_COVERPAGE_INFOA) -> windows_core::BOOL); unsafe { FaxPrintCoverPageA(faxcontextinfo, coverpageinfo).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn FaxPrintCoverPageW(faxcontextinfo: *const FAX_CONTEXT_INFOW, coverpageinfo: *const FAX_COVERPAGE_INFOW) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxPrintCoverPageW(faxcontextinfo : *const FAX_CONTEXT_INFOW, coverpageinfo : *const FAX_COVERPAGE_INFOW) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxPrintCoverPageW(faxcontextinfo : *const FAX_CONTEXT_INFOW, coverpageinfo : *const FAX_COVERPAGE_INFOW) -> windows_core::BOOL); unsafe { FaxPrintCoverPageW(faxcontextinfo, coverpageinfo).ok() } } #[inline] @@ -205,7 +205,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("winfax.dll" "system" fn FaxRegisterRoutingExtensionW(faxhandle : super::super::Foundation:: HANDLE, extensionname : windows_core::PCWSTR, friendlyname : windows_core::PCWSTR, imagename : windows_core::PCWSTR, callback : PFAX_ROUTING_INSTALLATION_CALLBACKW, context : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxRegisterRoutingExtensionW(faxhandle : super::super::Foundation:: HANDLE, extensionname : windows_core::PCWSTR, friendlyname : windows_core::PCWSTR, imagename : windows_core::PCWSTR, callback : PFAX_ROUTING_INSTALLATION_CALLBACKW, context : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { FaxRegisterRoutingExtensionW(faxhandle, extensionname.param().abi(), friendlyname.param().abi(), imagename.param().abi(), callback, context).ok() } } #[inline] @@ -216,7 +216,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("winfax.dll" "system" fn FaxRegisterServiceProviderW(deviceprovider : windows_core::PCWSTR, friendlyname : windows_core::PCWSTR, imagename : windows_core::PCWSTR, tspname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxRegisterServiceProviderW(deviceprovider : windows_core::PCWSTR, friendlyname : windows_core::PCWSTR, imagename : windows_core::PCWSTR, tspname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { FaxRegisterServiceProviderW(deviceprovider.param().abi(), friendlyname.param().abi(), imagename.param().abi(), tspname.param().abi()).ok() } } #[inline] @@ -224,7 +224,7 @@ pub unsafe fn FaxSendDocumentA(faxhandle: super::super::Foundation::HANDLE, where P1: windows_core::Param, { - windows_targets::link!("winfax.dll" "system" fn FaxSendDocumentA(faxhandle : super::super::Foundation:: HANDLE, filename : windows_core::PCSTR, jobparams : *const FAX_JOB_PARAMA, coverpageinfo : *const FAX_COVERPAGE_INFOA, faxjobid : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxSendDocumentA(faxhandle : super::super::Foundation:: HANDLE, filename : windows_core::PCSTR, jobparams : *const FAX_JOB_PARAMA, coverpageinfo : *const FAX_COVERPAGE_INFOA, faxjobid : *mut u32) -> windows_core::BOOL); unsafe { FaxSendDocumentA(faxhandle, filename.param().abi(), jobparams, coverpageinfo, faxjobid as _).ok() } } #[inline] @@ -232,7 +232,7 @@ pub unsafe fn FaxSendDocumentForBroadcastA(faxhandle: super::super::Foundati where P1: windows_core::Param, { - windows_targets::link!("winfax.dll" "system" fn FaxSendDocumentForBroadcastA(faxhandle : super::super::Foundation:: HANDLE, filename : windows_core::PCSTR, faxjobid : *mut u32, faxrecipientcallback : PFAX_RECIPIENT_CALLBACKA, context : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxSendDocumentForBroadcastA(faxhandle : super::super::Foundation:: HANDLE, filename : windows_core::PCSTR, faxjobid : *mut u32, faxrecipientcallback : PFAX_RECIPIENT_CALLBACKA, context : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { FaxSendDocumentForBroadcastA(faxhandle, filename.param().abi(), faxjobid as _, faxrecipientcallback, context).ok() } } #[inline] @@ -240,7 +240,7 @@ pub unsafe fn FaxSendDocumentForBroadcastW(faxhandle: super::super::Foundati where P1: windows_core::Param, { - windows_targets::link!("winfax.dll" "system" fn FaxSendDocumentForBroadcastW(faxhandle : super::super::Foundation:: HANDLE, filename : windows_core::PCWSTR, faxjobid : *mut u32, faxrecipientcallback : PFAX_RECIPIENT_CALLBACKW, context : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxSendDocumentForBroadcastW(faxhandle : super::super::Foundation:: HANDLE, filename : windows_core::PCWSTR, faxjobid : *mut u32, faxrecipientcallback : PFAX_RECIPIENT_CALLBACKW, context : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { FaxSendDocumentForBroadcastW(faxhandle, filename.param().abi(), faxjobid as _, faxrecipientcallback, context).ok() } } #[inline] @@ -248,57 +248,57 @@ pub unsafe fn FaxSendDocumentW(faxhandle: super::super::Foundation::HANDLE, where P1: windows_core::Param, { - windows_targets::link!("winfax.dll" "system" fn FaxSendDocumentW(faxhandle : super::super::Foundation:: HANDLE, filename : windows_core::PCWSTR, jobparams : *const FAX_JOB_PARAMW, coverpageinfo : *const FAX_COVERPAGE_INFOW, faxjobid : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxSendDocumentW(faxhandle : super::super::Foundation:: HANDLE, filename : windows_core::PCWSTR, jobparams : *const FAX_JOB_PARAMW, coverpageinfo : *const FAX_COVERPAGE_INFOW, faxjobid : *mut u32) -> windows_core::BOOL); unsafe { FaxSendDocumentW(faxhandle, filename.param().abi(), jobparams, coverpageinfo, faxjobid as _).ok() } } #[inline] pub unsafe fn FaxSetConfigurationA(faxhandle: super::super::Foundation::HANDLE, faxconfig: *const FAX_CONFIGURATIONA) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxSetConfigurationA(faxhandle : super::super::Foundation:: HANDLE, faxconfig : *const FAX_CONFIGURATIONA) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxSetConfigurationA(faxhandle : super::super::Foundation:: HANDLE, faxconfig : *const FAX_CONFIGURATIONA) -> windows_core::BOOL); unsafe { FaxSetConfigurationA(faxhandle, faxconfig).ok() } } #[inline] pub unsafe fn FaxSetConfigurationW(faxhandle: super::super::Foundation::HANDLE, faxconfig: *const FAX_CONFIGURATIONW) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxSetConfigurationW(faxhandle : super::super::Foundation:: HANDLE, faxconfig : *const FAX_CONFIGURATIONW) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxSetConfigurationW(faxhandle : super::super::Foundation:: HANDLE, faxconfig : *const FAX_CONFIGURATIONW) -> windows_core::BOOL); unsafe { FaxSetConfigurationW(faxhandle, faxconfig).ok() } } #[inline] pub unsafe fn FaxSetGlobalRoutingInfoA(faxhandle: super::super::Foundation::HANDLE, routinginfo: *const FAX_GLOBAL_ROUTING_INFOA) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxSetGlobalRoutingInfoA(faxhandle : super::super::Foundation:: HANDLE, routinginfo : *const FAX_GLOBAL_ROUTING_INFOA) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxSetGlobalRoutingInfoA(faxhandle : super::super::Foundation:: HANDLE, routinginfo : *const FAX_GLOBAL_ROUTING_INFOA) -> windows_core::BOOL); unsafe { FaxSetGlobalRoutingInfoA(faxhandle, routinginfo).ok() } } #[inline] pub unsafe fn FaxSetGlobalRoutingInfoW(faxhandle: super::super::Foundation::HANDLE, routinginfo: *const FAX_GLOBAL_ROUTING_INFOW) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxSetGlobalRoutingInfoW(faxhandle : super::super::Foundation:: HANDLE, routinginfo : *const FAX_GLOBAL_ROUTING_INFOW) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxSetGlobalRoutingInfoW(faxhandle : super::super::Foundation:: HANDLE, routinginfo : *const FAX_GLOBAL_ROUTING_INFOW) -> windows_core::BOOL); unsafe { FaxSetGlobalRoutingInfoW(faxhandle, routinginfo).ok() } } #[inline] pub unsafe fn FaxSetJobA(faxhandle: super::super::Foundation::HANDLE, jobid: u32, command: u32, jobentry: *const FAX_JOB_ENTRYA) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxSetJobA(faxhandle : super::super::Foundation:: HANDLE, jobid : u32, command : u32, jobentry : *const FAX_JOB_ENTRYA) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxSetJobA(faxhandle : super::super::Foundation:: HANDLE, jobid : u32, command : u32, jobentry : *const FAX_JOB_ENTRYA) -> windows_core::BOOL); unsafe { FaxSetJobA(faxhandle, jobid, command, jobentry).ok() } } #[inline] pub unsafe fn FaxSetJobW(faxhandle: super::super::Foundation::HANDLE, jobid: u32, command: u32, jobentry: *const FAX_JOB_ENTRYW) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxSetJobW(faxhandle : super::super::Foundation:: HANDLE, jobid : u32, command : u32, jobentry : *const FAX_JOB_ENTRYW) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxSetJobW(faxhandle : super::super::Foundation:: HANDLE, jobid : u32, command : u32, jobentry : *const FAX_JOB_ENTRYW) -> windows_core::BOOL); unsafe { FaxSetJobW(faxhandle, jobid, command, jobentry).ok() } } #[inline] pub unsafe fn FaxSetLoggingCategoriesA(faxhandle: super::super::Foundation::HANDLE, categories: *const FAX_LOG_CATEGORYA, numbercategories: u32) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxSetLoggingCategoriesA(faxhandle : super::super::Foundation:: HANDLE, categories : *const FAX_LOG_CATEGORYA, numbercategories : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxSetLoggingCategoriesA(faxhandle : super::super::Foundation:: HANDLE, categories : *const FAX_LOG_CATEGORYA, numbercategories : u32) -> windows_core::BOOL); unsafe { FaxSetLoggingCategoriesA(faxhandle, categories, numbercategories).ok() } } #[inline] pub unsafe fn FaxSetLoggingCategoriesW(faxhandle: super::super::Foundation::HANDLE, categories: *const FAX_LOG_CATEGORYW, numbercategories: u32) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxSetLoggingCategoriesW(faxhandle : super::super::Foundation:: HANDLE, categories : *const FAX_LOG_CATEGORYW, numbercategories : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxSetLoggingCategoriesW(faxhandle : super::super::Foundation:: HANDLE, categories : *const FAX_LOG_CATEGORYW, numbercategories : u32) -> windows_core::BOOL); unsafe { FaxSetLoggingCategoriesW(faxhandle, categories, numbercategories).ok() } } #[inline] pub unsafe fn FaxSetPortA(faxporthandle: super::super::Foundation::HANDLE, portinfo: *const FAX_PORT_INFOA) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxSetPortA(faxporthandle : super::super::Foundation:: HANDLE, portinfo : *const FAX_PORT_INFOA) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxSetPortA(faxporthandle : super::super::Foundation:: HANDLE, portinfo : *const FAX_PORT_INFOA) -> windows_core::BOOL); unsafe { FaxSetPortA(faxporthandle, portinfo).ok() } } #[inline] pub unsafe fn FaxSetPortW(faxporthandle: super::super::Foundation::HANDLE, portinfo: *const FAX_PORT_INFOW) -> windows_core::Result<()> { - windows_targets::link!("winfax.dll" "system" fn FaxSetPortW(faxporthandle : super::super::Foundation:: HANDLE, portinfo : *const FAX_PORT_INFOW) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxSetPortW(faxporthandle : super::super::Foundation:: HANDLE, portinfo : *const FAX_PORT_INFOW) -> windows_core::BOOL); unsafe { FaxSetPortW(faxporthandle, portinfo).ok() } } #[inline] @@ -306,7 +306,7 @@ pub unsafe fn FaxSetRoutingInfoA(faxporthandle: super::super::Foundation::HA where P1: windows_core::Param, { - windows_targets::link!("winfax.dll" "system" fn FaxSetRoutingInfoA(faxporthandle : super::super::Foundation:: HANDLE, routingguid : windows_core::PCSTR, routinginfobuffer : *const u8, routinginfobuffersize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxSetRoutingInfoA(faxporthandle : super::super::Foundation:: HANDLE, routingguid : windows_core::PCSTR, routinginfobuffer : *const u8, routinginfobuffersize : u32) -> windows_core::BOOL); unsafe { FaxSetRoutingInfoA(faxporthandle, routingguid.param().abi(), routinginfobuffer, routinginfobuffersize).ok() } } #[inline] @@ -314,7 +314,7 @@ pub unsafe fn FaxSetRoutingInfoW(faxporthandle: super::super::Foundation::HA where P1: windows_core::Param, { - windows_targets::link!("winfax.dll" "system" fn FaxSetRoutingInfoW(faxporthandle : super::super::Foundation:: HANDLE, routingguid : windows_core::PCWSTR, routinginfobuffer : *const u8, routinginfobuffersize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxSetRoutingInfoW(faxporthandle : super::super::Foundation:: HANDLE, routingguid : windows_core::PCWSTR, routinginfobuffer : *const u8, routinginfobuffersize : u32) -> windows_core::BOOL); unsafe { FaxSetRoutingInfoW(faxporthandle, routingguid.param().abi(), routinginfobuffer, routinginfobuffersize).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -323,7 +323,7 @@ pub unsafe fn FaxStartPrintJobA(printername: P0, printinfo: *const FAX_PRINT where P0: windows_core::Param, { - windows_targets::link!("winfax.dll" "system" fn FaxStartPrintJobA(printername : windows_core::PCSTR, printinfo : *const FAX_PRINT_INFOA, faxjobid : *mut u32, faxcontextinfo : *mut FAX_CONTEXT_INFOA) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxStartPrintJobA(printername : windows_core::PCSTR, printinfo : *const FAX_PRINT_INFOA, faxjobid : *mut u32, faxcontextinfo : *mut FAX_CONTEXT_INFOA) -> windows_core::BOOL); unsafe { FaxStartPrintJobA(printername.param().abi(), printinfo, faxjobid as _, faxcontextinfo as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -332,15 +332,15 @@ pub unsafe fn FaxStartPrintJobW(printername: P0, printinfo: *const FAX_PRINT where P0: windows_core::Param, { - windows_targets::link!("winfax.dll" "system" fn FaxStartPrintJobW(printername : windows_core::PCWSTR, printinfo : *const FAX_PRINT_INFOW, faxjobid : *mut u32, faxcontextinfo : *mut FAX_CONTEXT_INFOW) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxStartPrintJobW(printername : windows_core::PCWSTR, printinfo : *const FAX_PRINT_INFOW, faxjobid : *mut u32, faxcontextinfo : *mut FAX_CONTEXT_INFOW) -> windows_core::BOOL); unsafe { FaxStartPrintJobW(printername.param().abi(), printinfo, faxjobid as _, faxcontextinfo as _).ok() } } #[inline] -pub unsafe fn FaxUnregisterServiceProviderW(deviceprovider: P0) -> super::super::Foundation::BOOL +pub unsafe fn FaxUnregisterServiceProviderW(deviceprovider: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winfax.dll" "system" fn FaxUnregisterServiceProviderW(deviceprovider : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winfax.dll" "system" fn FaxUnregisterServiceProviderW(deviceprovider : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { FaxUnregisterServiceProviderW(deviceprovider.param().abi()) } } #[inline] @@ -404,13 +404,13 @@ pub struct FAX_CONFIGURATIONA { pub Retries: u32, pub RetryDelay: u32, pub DirtyDays: u32, - pub Branding: super::super::Foundation::BOOL, - pub UseDeviceTsid: super::super::Foundation::BOOL, - pub ServerCp: super::super::Foundation::BOOL, - pub PauseServerQueue: super::super::Foundation::BOOL, + pub Branding: windows_core::BOOL, + pub UseDeviceTsid: windows_core::BOOL, + pub ServerCp: windows_core::BOOL, + pub PauseServerQueue: windows_core::BOOL, pub StartCheapTime: FAX_TIME, pub StopCheapTime: FAX_TIME, - pub ArchiveOutgoingFaxes: super::super::Foundation::BOOL, + pub ArchiveOutgoingFaxes: windows_core::BOOL, pub ArchiveDirectory: windows_core::PCSTR, pub Reserved: windows_core::PCSTR, } @@ -426,13 +426,13 @@ pub struct FAX_CONFIGURATIONW { pub Retries: u32, pub RetryDelay: u32, pub DirtyDays: u32, - pub Branding: super::super::Foundation::BOOL, - pub UseDeviceTsid: super::super::Foundation::BOOL, - pub ServerCp: super::super::Foundation::BOOL, - pub PauseServerQueue: super::super::Foundation::BOOL, + pub Branding: windows_core::BOOL, + pub UseDeviceTsid: windows_core::BOOL, + pub ServerCp: windows_core::BOOL, + pub PauseServerQueue: windows_core::BOOL, pub StartCheapTime: FAX_TIME, pub StopCheapTime: FAX_TIME, - pub ArchiveOutgoingFaxes: super::super::Foundation::BOOL, + pub ArchiveOutgoingFaxes: windows_core::BOOL, pub ArchiveDirectory: windows_core::PCWSTR, pub Reserved: windows_core::PCWSTR, } @@ -476,7 +476,7 @@ impl Default for FAX_CONTEXT_INFOW { pub struct FAX_COVERPAGE_INFOA { pub SizeOfStruct: u32, pub CoverPageName: windows_core::PCSTR, - pub UseServerCoverPage: super::super::Foundation::BOOL, + pub UseServerCoverPage: windows_core::BOOL, pub RecName: windows_core::PCSTR, pub RecFaxNumber: windows_core::PCSTR, pub RecCompany: windows_core::PCSTR, @@ -514,7 +514,7 @@ impl Default for FAX_COVERPAGE_INFOA { pub struct FAX_COVERPAGE_INFOW { pub SizeOfStruct: u32, pub CoverPageName: windows_core::PCWSTR, - pub UseServerCoverPage: super::super::Foundation::BOOL, + pub UseServerCoverPage: windows_core::BOOL, pub RecName: windows_core::PCWSTR, pub RecFaxNumber: windows_core::PCWSTR, pub RecCompany: windows_core::PCWSTR, @@ -1034,7 +1034,7 @@ impl Default for FAX_ROUTE_CALLBACKROUTINES { pub struct FAX_ROUTING_METHODA { pub SizeOfStruct: u32, pub DeviceId: u32, - pub Enabled: super::super::Foundation::BOOL, + pub Enabled: windows_core::BOOL, pub DeviceName: windows_core::PCSTR, pub Guid: windows_core::PCSTR, pub FriendlyName: windows_core::PCSTR, @@ -1052,7 +1052,7 @@ impl Default for FAX_ROUTING_METHODA { pub struct FAX_ROUTING_METHODW { pub SizeOfStruct: u32, pub DeviceId: u32, - pub Enabled: super::super::Foundation::BOOL, + pub Enabled: windows_core::BOOL, pub DeviceName: windows_core::PCWSTR, pub Guid: windows_core::PCWSTR, pub FriendlyName: windows_core::PCWSTR, @@ -1083,7 +1083,7 @@ pub struct FAX_SEND { pub CallerNumber: windows_core::PWSTR, pub ReceiverName: windows_core::PWSTR, pub ReceiverNumber: windows_core::PWSTR, - pub Branding: super::super::Foundation::BOOL, + pub Branding: windows_core::BOOL, pub CallHandle: u32, pub Reserved: [u32; 3], } @@ -14750,7 +14750,7 @@ impl IStillImageW { { unsafe { (windows_core::Interface::vtable(self).EnableHwNotifications)(windows_core::Interface::as_raw(self), pwszdevicename.param().abi(), bnewstate.into()).ok() } } - pub unsafe fn GetHwNotificationState(&self, pwszdevicename: P0) -> windows_core::Result + pub unsafe fn GetHwNotificationState(&self, pwszdevicename: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -14794,8 +14794,8 @@ pub struct IStillImageW_Vtbl { pub GetSTILaunchInformation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, *mut u32, windows_core::PWSTR) -> windows_core::HRESULT, pub RegisterLaunchApplication: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, pub UnregisterLaunchApplication: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, - pub EnableHwNotifications: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetHwNotificationState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableHwNotifications: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, + pub GetHwNotificationState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, pub RefreshDeviceBus: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub LaunchApplicationForDevice: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, *const STINOTIFY) -> windows_core::HRESULT, pub SetupDeviceParameters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut STI_DEVICE_INFORMATIONW) -> windows_core::HRESULT, @@ -14811,8 +14811,8 @@ pub trait IStillImageW_Impl: windows_core::IUnknownImpl { fn GetSTILaunchInformation(&self, pwszdevicename: windows_core::PWSTR, pdweventcode: *mut u32, pwszeventname: windows_core::PWSTR) -> windows_core::Result<()>; fn RegisterLaunchApplication(&self, pwszappname: &windows_core::PCWSTR, pwszcommandline: &windows_core::PCWSTR) -> windows_core::Result<()>; fn UnregisterLaunchApplication(&self, pwszappname: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn EnableHwNotifications(&self, pwszdevicename: &windows_core::PCWSTR, bnewstate: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetHwNotificationState(&self, pwszdevicename: &windows_core::PCWSTR) -> windows_core::Result; + fn EnableHwNotifications(&self, pwszdevicename: &windows_core::PCWSTR, bnewstate: windows_core::BOOL) -> windows_core::Result<()>; + fn GetHwNotificationState(&self, pwszdevicename: &windows_core::PCWSTR) -> windows_core::Result; fn RefreshDeviceBus(&self, pwszdevicename: &windows_core::PCWSTR) -> windows_core::Result<()>; fn LaunchApplicationForDevice(&self, pwszdevicename: &windows_core::PCWSTR, pwszappname: &windows_core::PCWSTR, pstinotify: *const STINOTIFY) -> windows_core::Result<()>; fn SetupDeviceParameters(&self, param0: *mut STI_DEVICE_INFORMATIONW) -> windows_core::Result<()>; @@ -14874,13 +14874,13 @@ impl IStillImageW_Vtbl { IStillImageW_Impl::UnregisterLaunchApplication(this, core::mem::transmute(&pwszappname)).into() } } - unsafe extern "system" fn EnableHwNotifications(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR, bnewstate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableHwNotifications(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR, bnewstate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStillImageW_Impl::EnableHwNotifications(this, core::mem::transmute(&pwszdevicename), core::mem::transmute_copy(&bnewstate)).into() } } - unsafe extern "system" fn GetHwNotificationState(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR, pbcurrentstate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHwNotificationState(this: *mut core::ffi::c_void, pwszdevicename: windows_core::PCWSTR, pbcurrentstate: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStillImageW_Impl::GetHwNotificationState(this, core::mem::transmute(&pwszdevicename)) { @@ -14964,89 +14964,89 @@ pub const MAX_NOTIFICATION_DATA: u32 = 64u32; pub const MS_FAXROUTE_EMAIL_GUID: windows_core::PCWSTR = windows_core::w!("{6bbf7bfe-9af2-11d0-abf7-00c04fd91a4e}"); pub const MS_FAXROUTE_FOLDER_GUID: windows_core::PCWSTR = windows_core::w!("{92041a90-9af2-11d0-abf7-00c04fd91a4e}"); pub const MS_FAXROUTE_PRINTING_GUID: windows_core::PCWSTR = windows_core::w!("{aec1b37c-9af2-11d0-abf7-00c04fd91a4e}"); -pub type PFAXABORT = Option super::super::Foundation::BOOL>; -pub type PFAXACCESSCHECK = Option super::super::Foundation::BOOL>; -pub type PFAXCLOSE = Option super::super::Foundation::BOOL>; -pub type PFAXCOMPLETEJOBPARAMSA = Option super::super::Foundation::BOOL>; -pub type PFAXCOMPLETEJOBPARAMSW = Option super::super::Foundation::BOOL>; -pub type PFAXCONNECTFAXSERVERA = Option super::super::Foundation::BOOL>; -pub type PFAXCONNECTFAXSERVERW = Option super::super::Foundation::BOOL>; -pub type PFAXDEVABORTOPERATION = Option super::super::Foundation::BOOL>; +pub type PFAXABORT = Option windows_core::BOOL>; +pub type PFAXACCESSCHECK = Option windows_core::BOOL>; +pub type PFAXCLOSE = Option windows_core::BOOL>; +pub type PFAXCOMPLETEJOBPARAMSA = Option windows_core::BOOL>; +pub type PFAXCOMPLETEJOBPARAMSW = Option windows_core::BOOL>; +pub type PFAXCONNECTFAXSERVERA = Option windows_core::BOOL>; +pub type PFAXCONNECTFAXSERVERW = Option windows_core::BOOL>; +pub type PFAXDEVABORTOPERATION = Option windows_core::BOOL>; #[cfg(feature = "Win32_UI_Controls")] -pub type PFAXDEVCONFIGURE = Option super::super::Foundation::BOOL>; -pub type PFAXDEVENDJOB = Option super::super::Foundation::BOOL>; -pub type PFAXDEVINITIALIZE = Option super::super::Foundation::BOOL>; -pub type PFAXDEVRECEIVE = Option super::super::Foundation::BOOL>; -pub type PFAXDEVREPORTSTATUS = Option super::super::Foundation::BOOL>; -pub type PFAXDEVSEND = Option super::super::Foundation::BOOL>; +pub type PFAXDEVCONFIGURE = Option windows_core::BOOL>; +pub type PFAXDEVENDJOB = Option windows_core::BOOL>; +pub type PFAXDEVINITIALIZE = Option windows_core::BOOL>; +pub type PFAXDEVRECEIVE = Option windows_core::BOOL>; +pub type PFAXDEVREPORTSTATUS = Option windows_core::BOOL>; +pub type PFAXDEVSEND = Option windows_core::BOOL>; pub type PFAXDEVSHUTDOWN = Option windows_core::HRESULT>; -pub type PFAXDEVSTARTJOB = Option super::super::Foundation::BOOL>; -pub type PFAXDEVVIRTUALDEVICECREATION = Option super::super::Foundation::BOOL>; -pub type PFAXENABLEROUTINGMETHODA = Option super::super::Foundation::BOOL>; -pub type PFAXENABLEROUTINGMETHODW = Option super::super::Foundation::BOOL>; -pub type PFAXENUMGLOBALROUTINGINFOA = Option super::super::Foundation::BOOL>; -pub type PFAXENUMGLOBALROUTINGINFOW = Option super::super::Foundation::BOOL>; -pub type PFAXENUMJOBSA = Option super::super::Foundation::BOOL>; -pub type PFAXENUMJOBSW = Option super::super::Foundation::BOOL>; -pub type PFAXENUMPORTSA = Option super::super::Foundation::BOOL>; -pub type PFAXENUMPORTSW = Option super::super::Foundation::BOOL>; -pub type PFAXENUMROUTINGMETHODSA = Option super::super::Foundation::BOOL>; -pub type PFAXENUMROUTINGMETHODSW = Option super::super::Foundation::BOOL>; +pub type PFAXDEVSTARTJOB = Option windows_core::BOOL>; +pub type PFAXDEVVIRTUALDEVICECREATION = Option windows_core::BOOL>; +pub type PFAXENABLEROUTINGMETHODA = Option windows_core::BOOL>; +pub type PFAXENABLEROUTINGMETHODW = Option windows_core::BOOL>; +pub type PFAXENUMGLOBALROUTINGINFOA = Option windows_core::BOOL>; +pub type PFAXENUMGLOBALROUTINGINFOW = Option windows_core::BOOL>; +pub type PFAXENUMJOBSA = Option windows_core::BOOL>; +pub type PFAXENUMJOBSW = Option windows_core::BOOL>; +pub type PFAXENUMPORTSA = Option windows_core::BOOL>; +pub type PFAXENUMPORTSW = Option windows_core::BOOL>; +pub type PFAXENUMROUTINGMETHODSA = Option windows_core::BOOL>; +pub type PFAXENUMROUTINGMETHODSW = Option windows_core::BOOL>; pub type PFAXFREEBUFFER = Option; -pub type PFAXGETCONFIGURATIONA = Option super::super::Foundation::BOOL>; -pub type PFAXGETCONFIGURATIONW = Option super::super::Foundation::BOOL>; -pub type PFAXGETDEVICESTATUSA = Option super::super::Foundation::BOOL>; -pub type PFAXGETDEVICESTATUSW = Option super::super::Foundation::BOOL>; -pub type PFAXGETJOBA = Option super::super::Foundation::BOOL>; -pub type PFAXGETJOBW = Option super::super::Foundation::BOOL>; -pub type PFAXGETLOGGINGCATEGORIESA = Option super::super::Foundation::BOOL>; -pub type PFAXGETLOGGINGCATEGORIESW = Option super::super::Foundation::BOOL>; -pub type PFAXGETPAGEDATA = Option super::super::Foundation::BOOL>; -pub type PFAXGETPORTA = Option super::super::Foundation::BOOL>; -pub type PFAXGETPORTW = Option super::super::Foundation::BOOL>; -pub type PFAXGETROUTINGINFOA = Option super::super::Foundation::BOOL>; -pub type PFAXGETROUTINGINFOW = Option super::super::Foundation::BOOL>; -pub type PFAXINITIALIZEEVENTQUEUE = Option super::super::Foundation::BOOL>; -pub type PFAXOPENPORT = Option super::super::Foundation::BOOL>; +pub type PFAXGETCONFIGURATIONA = Option windows_core::BOOL>; +pub type PFAXGETCONFIGURATIONW = Option windows_core::BOOL>; +pub type PFAXGETDEVICESTATUSA = Option windows_core::BOOL>; +pub type PFAXGETDEVICESTATUSW = Option windows_core::BOOL>; +pub type PFAXGETJOBA = Option windows_core::BOOL>; +pub type PFAXGETJOBW = Option windows_core::BOOL>; +pub type PFAXGETLOGGINGCATEGORIESA = Option windows_core::BOOL>; +pub type PFAXGETLOGGINGCATEGORIESW = Option windows_core::BOOL>; +pub type PFAXGETPAGEDATA = Option windows_core::BOOL>; +pub type PFAXGETPORTA = Option windows_core::BOOL>; +pub type PFAXGETPORTW = Option windows_core::BOOL>; +pub type PFAXGETROUTINGINFOA = Option windows_core::BOOL>; +pub type PFAXGETROUTINGINFOW = Option windows_core::BOOL>; +pub type PFAXINITIALIZEEVENTQUEUE = Option windows_core::BOOL>; +pub type PFAXOPENPORT = Option windows_core::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] -pub type PFAXPRINTCOVERPAGEA = Option super::super::Foundation::BOOL>; +pub type PFAXPRINTCOVERPAGEA = Option windows_core::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] -pub type PFAXPRINTCOVERPAGEW = Option super::super::Foundation::BOOL>; -pub type PFAXREGISTERROUTINGEXTENSIONW = Option super::super::Foundation::BOOL>; -pub type PFAXREGISTERSERVICEPROVIDERW = Option super::super::Foundation::BOOL>; +pub type PFAXPRINTCOVERPAGEW = Option windows_core::BOOL>; +pub type PFAXREGISTERROUTINGEXTENSIONW = Option windows_core::BOOL>; +pub type PFAXREGISTERSERVICEPROVIDERW = Option windows_core::BOOL>; pub type PFAXROUTEADDFILE = Option i32>; pub type PFAXROUTEDELETEFILE = Option i32>; -pub type PFAXROUTEDEVICECHANGENOTIFICATION = Option super::super::Foundation::BOOL>; -pub type PFAXROUTEDEVICEENABLE = Option super::super::Foundation::BOOL>; -pub type PFAXROUTEENUMFILE = Option super::super::Foundation::BOOL>; -pub type PFAXROUTEENUMFILES = Option super::super::Foundation::BOOL>; -pub type PFAXROUTEGETFILE = Option super::super::Foundation::BOOL>; -pub type PFAXROUTEGETROUTINGINFO = Option super::super::Foundation::BOOL>; -pub type PFAXROUTEINITIALIZE = Option super::super::Foundation::BOOL>; -pub type PFAXROUTEMETHOD = Option super::super::Foundation::BOOL>; -pub type PFAXROUTEMODIFYROUTINGDATA = Option super::super::Foundation::BOOL>; -pub type PFAXROUTESETROUTINGINFO = Option super::super::Foundation::BOOL>; -pub type PFAXSENDDOCUMENTA = Option super::super::Foundation::BOOL>; -pub type PFAXSENDDOCUMENTFORBROADCASTA = Option super::super::Foundation::BOOL>; -pub type PFAXSENDDOCUMENTFORBROADCASTW = Option super::super::Foundation::BOOL>; -pub type PFAXSENDDOCUMENTW = Option super::super::Foundation::BOOL>; -pub type PFAXSETCONFIGURATIONA = Option super::super::Foundation::BOOL>; -pub type PFAXSETCONFIGURATIONW = Option super::super::Foundation::BOOL>; -pub type PFAXSETGLOBALROUTINGINFOA = Option super::super::Foundation::BOOL>; -pub type PFAXSETGLOBALROUTINGINFOW = Option super::super::Foundation::BOOL>; -pub type PFAXSETJOBA = Option super::super::Foundation::BOOL>; -pub type PFAXSETJOBW = Option super::super::Foundation::BOOL>; -pub type PFAXSETLOGGINGCATEGORIESA = Option super::super::Foundation::BOOL>; -pub type PFAXSETLOGGINGCATEGORIESW = Option super::super::Foundation::BOOL>; -pub type PFAXSETPORTA = Option super::super::Foundation::BOOL>; -pub type PFAXSETPORTW = Option super::super::Foundation::BOOL>; -pub type PFAXSETROUTINGINFOA = Option super::super::Foundation::BOOL>; -pub type PFAXSETROUTINGINFOW = Option super::super::Foundation::BOOL>; +pub type PFAXROUTEDEVICECHANGENOTIFICATION = Option windows_core::BOOL>; +pub type PFAXROUTEDEVICEENABLE = Option windows_core::BOOL>; +pub type PFAXROUTEENUMFILE = Option windows_core::BOOL>; +pub type PFAXROUTEENUMFILES = Option windows_core::BOOL>; +pub type PFAXROUTEGETFILE = Option windows_core::BOOL>; +pub type PFAXROUTEGETROUTINGINFO = Option windows_core::BOOL>; +pub type PFAXROUTEINITIALIZE = Option windows_core::BOOL>; +pub type PFAXROUTEMETHOD = Option windows_core::BOOL>; +pub type PFAXROUTEMODIFYROUTINGDATA = Option windows_core::BOOL>; +pub type PFAXROUTESETROUTINGINFO = Option windows_core::BOOL>; +pub type PFAXSENDDOCUMENTA = Option windows_core::BOOL>; +pub type PFAXSENDDOCUMENTFORBROADCASTA = Option windows_core::BOOL>; +pub type PFAXSENDDOCUMENTFORBROADCASTW = Option windows_core::BOOL>; +pub type PFAXSENDDOCUMENTW = Option windows_core::BOOL>; +pub type PFAXSETCONFIGURATIONA = Option windows_core::BOOL>; +pub type PFAXSETCONFIGURATIONW = Option windows_core::BOOL>; +pub type PFAXSETGLOBALROUTINGINFOA = Option windows_core::BOOL>; +pub type PFAXSETGLOBALROUTINGINFOW = Option windows_core::BOOL>; +pub type PFAXSETJOBA = Option windows_core::BOOL>; +pub type PFAXSETJOBW = Option windows_core::BOOL>; +pub type PFAXSETLOGGINGCATEGORIESA = Option windows_core::BOOL>; +pub type PFAXSETLOGGINGCATEGORIESW = Option windows_core::BOOL>; +pub type PFAXSETPORTA = Option windows_core::BOOL>; +pub type PFAXSETPORTW = Option windows_core::BOOL>; +pub type PFAXSETROUTINGINFOA = Option windows_core::BOOL>; +pub type PFAXSETROUTINGINFOW = Option windows_core::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] -pub type PFAXSTARTPRINTJOBA = Option super::super::Foundation::BOOL>; +pub type PFAXSTARTPRINTJOBA = Option windows_core::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] -pub type PFAXSTARTPRINTJOBW = Option super::super::Foundation::BOOL>; -pub type PFAXUNREGISTERSERVICEPROVIDERW = Option super::super::Foundation::BOOL>; +pub type PFAXSTARTPRINTJOBW = Option windows_core::BOOL>; +pub type PFAXUNREGISTERSERVICEPROVIDERW = Option windows_core::BOOL>; pub type PFAX_EXT_CONFIG_CHANGE = Option windows_core::HRESULT>; pub type PFAX_EXT_FREE_BUFFER = Option; pub type PFAX_EXT_GET_DATA = Option u32>; @@ -15055,11 +15055,11 @@ pub type PFAX_EXT_REGISTER_FOR_EVENTS = Option u32>; pub type PFAX_EXT_UNREGISTER_FOR_EVENTS = Option u32>; pub type PFAX_LINECALLBACK = Option; -pub type PFAX_RECIPIENT_CALLBACKA = Option super::super::Foundation::BOOL>; -pub type PFAX_RECIPIENT_CALLBACKW = Option super::super::Foundation::BOOL>; -pub type PFAX_ROUTING_INSTALLATION_CALLBACKW = Option super::super::Foundation::BOOL>; -pub type PFAX_SEND_CALLBACK = Option super::super::Foundation::BOOL>; -pub type PFAX_SERVICE_CALLBACK = Option super::super::Foundation::BOOL>; +pub type PFAX_RECIPIENT_CALLBACKA = Option windows_core::BOOL>; +pub type PFAX_RECIPIENT_CALLBACKW = Option windows_core::BOOL>; +pub type PFAX_ROUTING_INSTALLATION_CALLBACKW = Option windows_core::BOOL>; +pub type PFAX_SEND_CALLBACK = Option windows_core::BOOL>; +pub type PFAX_SERVICE_CALLBACK = Option windows_core::BOOL>; pub const PORT_OPEN_MODIFY: FAX_ENUM_PORT_OPEN_TYPE = FAX_ENUM_PORT_OPEN_TYPE(2i32); pub const PORT_OPEN_QUERY: FAX_ENUM_PORT_OPEN_TYPE = FAX_ENUM_PORT_OPEN_TYPE(1i32); pub const QUERY_STATUS: FAXROUTE_ENABLE = FAXROUTE_ENABLE(-1i32); 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 a01749c946..219ee3833e 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/mod.rs @@ -145,12 +145,12 @@ impl IFunctionDiscovery { #[repr(C)] pub struct IFunctionDiscovery_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetInstanceCollection: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetInstanceCollection: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetInstance: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetInstance: usize, - pub CreateInstanceCollectionQuery: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, super::super::Foundation::BOOL, *mut core::ffi::c_void, *mut u64, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateInstanceCollectionQuery: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::BOOL, *mut core::ffi::c_void, *mut u64, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateInstanceQuery: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, *mut u64, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub AddInstance: unsafe extern "system" fn(*mut core::ffi::c_void, SystemVisibilityFlags, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -160,9 +160,9 @@ pub struct IFunctionDiscovery_Vtbl { } #[cfg(feature = "Win32_System_Com")] pub trait IFunctionDiscovery_Impl: windows_core::IUnknownImpl { - fn GetInstanceCollection(&self, pszcategory: &windows_core::PCWSTR, pszsubcategory: &windows_core::PCWSTR, fincludeallsubcategories: super::super::Foundation::BOOL) -> windows_core::Result; + fn GetInstanceCollection(&self, pszcategory: &windows_core::PCWSTR, pszsubcategory: &windows_core::PCWSTR, fincludeallsubcategories: windows_core::BOOL) -> windows_core::Result; fn GetInstance(&self, pszfunctioninstanceidentity: &windows_core::PCWSTR) -> windows_core::Result; - fn CreateInstanceCollectionQuery(&self, pszcategory: &windows_core::PCWSTR, pszsubcategory: &windows_core::PCWSTR, fincludeallsubcategories: super::super::Foundation::BOOL, pifunctiondiscoverynotification: windows_core::Ref, pfdqcquerycontext: *mut u64) -> windows_core::Result; + fn CreateInstanceCollectionQuery(&self, pszcategory: &windows_core::PCWSTR, pszsubcategory: &windows_core::PCWSTR, fincludeallsubcategories: windows_core::BOOL, pifunctiondiscoverynotification: windows_core::Ref, pfdqcquerycontext: *mut u64) -> windows_core::Result; fn CreateInstanceQuery(&self, pszfunctioninstanceidentity: &windows_core::PCWSTR, pifunctiondiscoverynotification: windows_core::Ref, pfdqcquerycontext: *mut u64) -> windows_core::Result; fn AddInstance(&self, enumsystemvisibility: SystemVisibilityFlags, pszcategory: &windows_core::PCWSTR, pszsubcategory: &windows_core::PCWSTR, pszcategoryidentity: &windows_core::PCWSTR) -> windows_core::Result; fn RemoveInstance(&self, enumsystemvisibility: SystemVisibilityFlags, pszcategory: &windows_core::PCWSTR, pszsubcategory: &windows_core::PCWSTR, pszcategoryidentity: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -170,7 +170,7 @@ pub trait IFunctionDiscovery_Impl: windows_core::IUnknownImpl { #[cfg(feature = "Win32_System_Com")] impl IFunctionDiscovery_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetInstanceCollection(this: *mut core::ffi::c_void, pszcategory: windows_core::PCWSTR, pszsubcategory: windows_core::PCWSTR, fincludeallsubcategories: super::super::Foundation::BOOL, ppifunctioninstancecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetInstanceCollection(this: *mut core::ffi::c_void, pszcategory: windows_core::PCWSTR, pszsubcategory: windows_core::PCWSTR, fincludeallsubcategories: windows_core::BOOL, ppifunctioninstancecollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionDiscovery_Impl::GetInstanceCollection(this, core::mem::transmute(&pszcategory), core::mem::transmute(&pszsubcategory), core::mem::transmute_copy(&fincludeallsubcategories)) { @@ -194,7 +194,7 @@ impl IFunctionDiscovery_Vtbl { } } } - unsafe extern "system" fn CreateInstanceCollectionQuery(this: *mut core::ffi::c_void, pszcategory: windows_core::PCWSTR, pszsubcategory: windows_core::PCWSTR, fincludeallsubcategories: super::super::Foundation::BOOL, pifunctiondiscoverynotification: *mut core::ffi::c_void, pfdqcquerycontext: *mut u64, ppifunctioninstancecollectionquery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateInstanceCollectionQuery(this: *mut core::ffi::c_void, pszcategory: windows_core::PCWSTR, pszsubcategory: windows_core::PCWSTR, fincludeallsubcategories: windows_core::BOOL, pifunctiondiscoverynotification: *mut core::ffi::c_void, pfdqcquerycontext: *mut u64, ppifunctioninstancecollectionquery: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFunctionDiscovery_Impl::CreateInstanceCollectionQuery(this, core::mem::transmute(&pszcategory), core::mem::transmute(&pszsubcategory), core::mem::transmute_copy(&fincludeallsubcategories), core::mem::transmute_copy(&pifunctiondiscoverynotification), core::mem::transmute_copy(&pfdqcquerycontext)) { @@ -627,10 +627,10 @@ impl windows_core::RuntimeName for IFunctionDiscoveryProviderFactory {} windows_core::imp::define_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<()> { + pub unsafe fn IsInstanceQuery(&self, pisinstancequery: *mut windows_core::BOOL, ppszconstraintvalue: *mut *mut u16) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsInstanceQuery)(windows_core::Interface::as_raw(self), pisinstancequery as _, ppszconstraintvalue as _).ok() } } - pub unsafe fn IsSubcategoryQuery(&self, pissubcategoryquery: *mut super::super::Foundation::BOOL, ppszconstraintvalue: *mut *mut u16) -> windows_core::Result<()> { + pub unsafe fn IsSubcategoryQuery(&self, pissubcategoryquery: *mut windows_core::BOOL, ppszconstraintvalue: *mut *mut u16) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsSubcategoryQuery)(windows_core::Interface::as_raw(self), pissubcategoryquery as _, ppszconstraintvalue as _).ok() } } pub unsafe fn GetQueryConstraints(&self) -> windows_core::Result { @@ -649,26 +649,26 @@ impl IFunctionDiscoveryProviderQuery { #[repr(C)] pub struct IFunctionDiscoveryProviderQuery_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsInstanceQuery: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut *mut u16) -> windows_core::HRESULT, - pub IsSubcategoryQuery: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut *mut u16) -> windows_core::HRESULT, + pub IsInstanceQuery: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut *mut u16) -> windows_core::HRESULT, + pub IsSubcategoryQuery: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut *mut u16) -> windows_core::HRESULT, pub GetQueryConstraints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetPropertyConstraints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IFunctionDiscoveryProviderQuery_Impl: windows_core::IUnknownImpl { - fn IsInstanceQuery(&self, pisinstancequery: *mut super::super::Foundation::BOOL, ppszconstraintvalue: *mut *mut u16) -> windows_core::Result<()>; - fn IsSubcategoryQuery(&self, pissubcategoryquery: *mut super::super::Foundation::BOOL, ppszconstraintvalue: *mut *mut u16) -> windows_core::Result<()>; + fn IsInstanceQuery(&self, pisinstancequery: *mut windows_core::BOOL, ppszconstraintvalue: *mut *mut u16) -> windows_core::Result<()>; + fn IsSubcategoryQuery(&self, pissubcategoryquery: *mut windows_core::BOOL, ppszconstraintvalue: *mut *mut u16) -> windows_core::Result<()>; fn GetQueryConstraints(&self) -> windows_core::Result; fn GetPropertyConstraints(&self) -> windows_core::Result; } impl IFunctionDiscoveryProviderQuery_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsInstanceQuery(this: *mut core::ffi::c_void, pisinstancequery: *mut super::super::Foundation::BOOL, ppszconstraintvalue: *mut *mut u16) -> windows_core::HRESULT { + unsafe extern "system" fn IsInstanceQuery(this: *mut core::ffi::c_void, pisinstancequery: *mut windows_core::BOOL, ppszconstraintvalue: *mut *mut u16) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionDiscoveryProviderQuery_Impl::IsInstanceQuery(this, core::mem::transmute_copy(&pisinstancequery), core::mem::transmute_copy(&ppszconstraintvalue)).into() } } - unsafe extern "system" fn IsSubcategoryQuery(this: *mut core::ffi::c_void, pissubcategoryquery: *mut super::super::Foundation::BOOL, ppszconstraintvalue: *mut *mut u16) -> windows_core::HRESULT { + unsafe extern "system" fn IsSubcategoryQuery(this: *mut core::ffi::c_void, pissubcategoryquery: *mut windows_core::BOOL, ppszconstraintvalue: *mut *mut u16) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFunctionDiscoveryProviderQuery_Impl::IsSubcategoryQuery(this, core::mem::transmute_copy(&pissubcategoryquery), core::mem::transmute_copy(&ppszconstraintvalue)).into() 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 acbb93af68..602fd98589 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/mod.rs @@ -234,28 +234,28 @@ pub const GNSS_CustomCommand: GNSS_DRIVERCOMMAND_TYPE = GNSS_DRIVERCOMMAND_TYPE( pub struct GNSS_DEVICE_CAPABILITY { pub Size: u32, pub Version: u32, - pub SupportMultipleFixSessions: super::super::Foundation::BOOL, - pub SupportMultipleAppSessions: super::super::Foundation::BOOL, - pub RequireAGnssInjection: super::super::Foundation::BOOL, + pub SupportMultipleFixSessions: windows_core::BOOL, + pub SupportMultipleAppSessions: windows_core::BOOL, + pub RequireAGnssInjection: windows_core::BOOL, pub AgnssFormatSupported: u32, pub AgnssFormatPreferred: u32, - pub SupportDistanceTracking: super::super::Foundation::BOOL, - pub SupportContinuousTracking: super::super::Foundation::BOOL, + pub SupportDistanceTracking: windows_core::BOOL, + pub SupportContinuousTracking: windows_core::BOOL, pub Reserved1: u32, - pub Reserved2: super::super::Foundation::BOOL, - pub Reserved3: super::super::Foundation::BOOL, - pub Reserved4: super::super::Foundation::BOOL, - pub Reserved5: super::super::Foundation::BOOL, + pub Reserved2: windows_core::BOOL, + pub Reserved3: windows_core::BOOL, + pub Reserved4: windows_core::BOOL, + pub Reserved5: windows_core::BOOL, pub GeofencingSupport: u32, - pub Reserved6: super::super::Foundation::BOOL, - pub Reserved7: super::super::Foundation::BOOL, - pub SupportCpLocation: super::super::Foundation::BOOL, - pub SupportUplV2: super::super::Foundation::BOOL, - pub SupportSuplV1: super::super::Foundation::BOOL, - pub SupportSuplV2: super::super::Foundation::BOOL, + pub Reserved6: windows_core::BOOL, + pub Reserved7: windows_core::BOOL, + pub SupportCpLocation: windows_core::BOOL, + pub SupportUplV2: windows_core::BOOL, + pub SupportSuplV1: windows_core::BOOL, + pub SupportSuplV2: windows_core::BOOL, pub SupportedSuplVersion: GNSS_SUPL_VERSION, pub MaxGeofencesSupported: u32, - pub SupportMultipleSuplRootCert: super::super::Foundation::BOOL, + pub SupportMultipleSuplRootCert: windows_core::BOOL, pub GnssBreadCrumbPayloadVersion: u32, pub MaxGnssBreadCrumbFixes: u32, pub Unused: [u8; 496], @@ -324,7 +324,7 @@ pub struct GNSS_ERRORINFO { pub Size: u32, pub Version: u32, pub ErrorCode: u32, - pub IsRecoverable: super::super::Foundation::BOOL, + pub IsRecoverable: windows_core::BOOL, pub ErrorDescription: [u16; 256], pub Unused: [u8; 512], } @@ -423,7 +423,7 @@ pub struct GNSS_FIXDATA { pub Version: u32, pub FixSessionID: u32, pub FixTimeStamp: super::super::Foundation::FILETIME, - pub IsFinalFix: super::super::Foundation::BOOL, + pub IsFinalFix: windows_core::BOOL, pub FixStatus: super::super::Foundation::NTSTATUS, pub FixLevelOfDetails: u32, pub BasicData: GNSS_FIXDATA_BASIC, @@ -442,7 +442,7 @@ pub struct GNSS_FIXDATA_2 { pub Version: u32, pub FixSessionID: u32, pub FixTimeStamp: super::super::Foundation::FILETIME, - pub IsFinalFix: super::super::Foundation::BOOL, + pub IsFinalFix: windows_core::BOOL, pub FixStatus: super::super::Foundation::NTSTATUS, pub FixLevelOfDetails: u32, pub BasicData: GNSS_FIXDATA_BASIC_2, @@ -752,7 +752,7 @@ pub struct GNSS_NI_REQUEST_PARAM { pub RequestPlaneType: GNSS_NI_PLANE_TYPE, pub Anonymous: GNSS_NI_REQUEST_PARAM_0, pub ResponseTimeInSec: u32, - pub EmergencyLocation: super::super::Foundation::BOOL, + pub EmergencyLocation: windows_core::BOOL, } impl Default for GNSS_NI_REQUEST_PARAM { fn default() -> Self { @@ -823,7 +823,7 @@ pub const GNSS_OPERMODE_OTDOA: u32 = 32u32; pub struct GNSS_PLATFORM_CAPABILITY { pub Size: u32, pub Version: u32, - pub SupportAgnssInjection: super::super::Foundation::BOOL, + pub SupportAgnssInjection: windows_core::BOOL, pub AgnssFormatSupported: u32, pub Unused: [u8; 516], } @@ -838,7 +838,7 @@ pub const GNSS_ResetGeofencesTracking: GNSS_DRIVERCOMMAND_TYPE = GNSS_DRIVERCOMM #[derive(Clone, Copy, Debug, PartialEq)] pub struct GNSS_SATELLITEINFO { pub SatelliteId: u32, - pub UsedInPositiong: super::super::Foundation::BOOL, + pub UsedInPositiong: windows_core::BOOL, pub Elevation: f64, pub Azimuth: f64, pub SignalToNoiseRatio: f64, @@ -1923,7 +1923,7 @@ pub struct ILocation_Vtbl { pub SetDesiredAccuracy: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, super::Sensors::LOCATION_DESIRED_ACCURACY) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Devices_Sensors"))] SetDesiredAccuracy: usize, - pub RequestPermissions: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *const windows_core::GUID, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub RequestPermissions: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *const windows_core::GUID, u32, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Devices_Sensors")] pub trait ILocation_Impl: windows_core::IUnknownImpl { @@ -1935,7 +1935,7 @@ pub trait ILocation_Impl: windows_core::IUnknownImpl { fn SetReportInterval(&self, reporttype: *const windows_core::GUID, millisecondsrequested: u32) -> windows_core::Result<()>; fn GetDesiredAccuracy(&self, reporttype: *const windows_core::GUID) -> windows_core::Result; fn SetDesiredAccuracy(&self, reporttype: *const windows_core::GUID, desiredaccuracy: super::Sensors::LOCATION_DESIRED_ACCURACY) -> windows_core::Result<()>; - fn RequestPermissions(&self, hparent: super::super::Foundation::HWND, preporttypes: *const windows_core::GUID, count: u32, fmodal: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn RequestPermissions(&self, hparent: super::super::Foundation::HWND, preporttypes: *const windows_core::GUID, count: u32, fmodal: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Devices_Sensors")] impl ILocation_Vtbl { @@ -2012,7 +2012,7 @@ impl ILocation_Vtbl { ILocation_Impl::SetDesiredAccuracy(this, core::mem::transmute_copy(&reporttype), core::mem::transmute_copy(&desiredaccuracy)).into() } } - unsafe extern "system" fn RequestPermissions(this: *mut core::ffi::c_void, hparent: super::super::Foundation::HWND, preporttypes: *const windows_core::GUID, count: u32, fmodal: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RequestPermissions(this: *mut core::ffi::c_void, hparent: super::super::Foundation::HWND, preporttypes: *const windows_core::GUID, count: u32, fmodal: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILocation_Impl::RequestPermissions(this, core::mem::transmute_copy(&hparent), core::mem::transmute_copy(&preporttypes), core::mem::transmute_copy(&count), core::mem::transmute_copy(&fmodal)).into() 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 631be68b2d..979f1f8b5c 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs @@ -7235,18 +7235,18 @@ pub const KEY_TERMSRV_SHADOW: u32 = 16u32; pub const KEY_TERMSRV_VKPACKET: u32 = 32u32; pub const KEY_UNICODE_SEQUENCE_END: u32 = 512u32; pub const KEY_UNICODE_SEQUENCE_ITEM: u32 = 256u32; -pub type LPDICONFIGUREDEVICESCALLBACK = Option, param1: *mut core::ffi::c_void) -> super::super::Foundation::BOOL>; -pub type LPDIENUMCREATEDEFFECTOBJECTSCALLBACK = Option, param1: *mut core::ffi::c_void) -> super::super::Foundation::BOOL>; -pub type LPDIENUMDEVICEOBJECTSCALLBACKA = Option super::super::Foundation::BOOL>; -pub type LPDIENUMDEVICEOBJECTSCALLBACKW = Option super::super::Foundation::BOOL>; -pub type LPDIENUMDEVICESBYSEMANTICSCBA = Option, param2: u32, param3: u32, param4: *mut core::ffi::c_void) -> super::super::Foundation::BOOL>; -pub type LPDIENUMDEVICESBYSEMANTICSCBW = Option, param2: u32, param3: u32, param4: *mut core::ffi::c_void) -> super::super::Foundation::BOOL>; -pub type LPDIENUMDEVICESCALLBACKA = Option super::super::Foundation::BOOL>; -pub type LPDIENUMDEVICESCALLBACKW = Option super::super::Foundation::BOOL>; -pub type LPDIENUMEFFECTSCALLBACKA = Option super::super::Foundation::BOOL>; -pub type LPDIENUMEFFECTSCALLBACKW = Option super::super::Foundation::BOOL>; -pub type LPDIENUMEFFECTSINFILECALLBACK = Option super::super::Foundation::BOOL>; -pub type LPDIJOYTYPECALLBACK = Option super::super::Foundation::BOOL>; +pub type LPDICONFIGUREDEVICESCALLBACK = Option, param1: *mut core::ffi::c_void) -> windows_core::BOOL>; +pub type LPDIENUMCREATEDEFFECTOBJECTSCALLBACK = Option, param1: *mut core::ffi::c_void) -> windows_core::BOOL>; +pub type LPDIENUMDEVICEOBJECTSCALLBACKA = Option windows_core::BOOL>; +pub type LPDIENUMDEVICEOBJECTSCALLBACKW = Option windows_core::BOOL>; +pub type LPDIENUMDEVICESBYSEMANTICSCBA = Option, param2: u32, param3: u32, param4: *mut core::ffi::c_void) -> windows_core::BOOL>; +pub type LPDIENUMDEVICESBYSEMANTICSCBW = Option, param2: u32, param3: u32, param4: *mut core::ffi::c_void) -> windows_core::BOOL>; +pub type LPDIENUMDEVICESCALLBACKA = Option windows_core::BOOL>; +pub type LPDIENUMDEVICESCALLBACKW = Option windows_core::BOOL>; +pub type LPDIENUMEFFECTSCALLBACKA = Option windows_core::BOOL>; +pub type LPDIENUMEFFECTSCALLBACKW = Option windows_core::BOOL>; +pub type LPDIENUMEFFECTSINFILECALLBACK = Option windows_core::BOOL>; +pub type LPDIJOYTYPECALLBACK = Option windows_core::BOOL>; pub type LPFNSHOWJOYCPL = Option; pub const MAXCPOINTSNUM: u32 = 8u32; pub const MAX_JOYSTICKOEMVXDNAME: u32 = 260u32; 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 a823c2f0ed..bbe526ad9d 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/mod.rs @@ -1946,7 +1946,7 @@ impl IWiaItem2 { (windows_core::Interface::vtable(self).EnumDeviceCapabilities)(windows_core::Interface::as_raw(self), lflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn CheckExtension(&self, lflags: i32, bstrname: &windows_core::BSTR, riidextensioninterface: *const windows_core::GUID, pbextensionexists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn CheckExtension(&self, lflags: i32, bstrname: &windows_core::BSTR, riidextensioninterface: *const windows_core::GUID, pbextensionexists: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).CheckExtension)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(bstrname), riidextensioninterface, pbextensionexists as _).ok() } } pub unsafe fn GetExtension(&self, lflags: i32, bstrname: &windows_core::BSTR, riidextensioninterface: *const windows_core::GUID, ppout: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { @@ -1992,7 +1992,7 @@ pub struct IWiaItem2_Vtbl { pub DeviceDlg: unsafe extern "system" fn(*mut core::ffi::c_void, i32, super::super::Foundation::HWND, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut i32, *mut *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DeviceCommand: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub EnumDeviceCapabilities: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CheckExtension: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut core::ffi::c_void, *const windows_core::GUID, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CheckExtension: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut core::ffi::c_void, *const windows_core::GUID, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetExtension: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetParentItem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetRootItem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2010,7 +2010,7 @@ pub trait IWiaItem2_Impl: windows_core::IUnknownImpl { fn DeviceDlg(&self, lflags: i32, hwndparent: super::super::Foundation::HWND, bstrfoldername: &windows_core::BSTR, bstrfilename: &windows_core::BSTR, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut windows_core::BSTR, ppitem: windows_core::OutRef<'_, IWiaItem2>) -> windows_core::Result<()>; fn DeviceCommand(&self, lflags: i32, pcmdguid: *const windows_core::GUID, ppiwiaitem2: windows_core::OutRef<'_, IWiaItem2>) -> windows_core::Result<()>; fn EnumDeviceCapabilities(&self, lflags: i32) -> windows_core::Result; - fn CheckExtension(&self, lflags: i32, bstrname: &windows_core::BSTR, riidextensioninterface: *const windows_core::GUID, pbextensionexists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn CheckExtension(&self, lflags: i32, bstrname: &windows_core::BSTR, riidextensioninterface: *const windows_core::GUID, pbextensionexists: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetExtension(&self, lflags: i32, bstrname: &windows_core::BSTR, riidextensioninterface: *const windows_core::GUID, ppout: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetParentItem(&self) -> windows_core::Result; fn GetRootItem(&self) -> windows_core::Result; @@ -2110,7 +2110,7 @@ impl IWiaItem2_Vtbl { } } } - unsafe extern "system" fn CheckExtension(this: *mut core::ffi::c_void, lflags: i32, bstrname: *mut core::ffi::c_void, riidextensioninterface: *const windows_core::GUID, pbextensionexists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CheckExtension(this: *mut core::ffi::c_void, lflags: i32, bstrname: *mut core::ffi::c_void, riidextensioninterface: *const windows_core::GUID, pbextensionexists: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaItem2_Impl::CheckExtension(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&bstrname), core::mem::transmute_copy(&riidextensioninterface), core::mem::transmute_copy(&pbextensionexists)).into() @@ -3501,7 +3501,7 @@ impl windows_core::RuntimeName for IWiaUIExtension2 {} windows_core::imp::define_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 { + pub unsafe fn PreviewVisible(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PreviewVisible)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3556,38 +3556,38 @@ impl IWiaVideo { #[repr(C)] pub struct IWiaVideo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub PreviewVisible: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetPreviewVisible: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub PreviewVisible: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetPreviewVisible: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub ImagesDirectory: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetImagesDirectory: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CreateVideoByWiaDevID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::HWND, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CreateVideoByDevNum: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::HWND, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CreateVideoByName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::HWND, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CreateVideoByWiaDevID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::HWND, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, + pub CreateVideoByDevNum: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::HWND, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, + pub CreateVideoByName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::HWND, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, pub DestroyVideo: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Play: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Pause: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub TakePicture: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub ResizeVideo: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ResizeVideo: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetCurrentState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WIAVIDEO_STATE) -> windows_core::HRESULT, } pub trait IWiaVideo_Impl: windows_core::IUnknownImpl { - fn PreviewVisible(&self) -> windows_core::Result; - fn SetPreviewVisible(&self, bpreviewvisible: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn PreviewVisible(&self) -> windows_core::Result; + fn SetPreviewVisible(&self, bpreviewvisible: windows_core::BOOL) -> windows_core::Result<()>; fn ImagesDirectory(&self) -> windows_core::Result; fn SetImagesDirectory(&self, bstrimagedirectory: &windows_core::BSTR) -> windows_core::Result<()>; - fn CreateVideoByWiaDevID(&self, bstrwiadeviceid: &windows_core::BSTR, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn CreateVideoByDevNum(&self, uidevicenumber: u32, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn CreateVideoByName(&self, bstrfriendlyname: &windows_core::BSTR, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn CreateVideoByWiaDevID(&self, bstrwiadeviceid: &windows_core::BSTR, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: windows_core::BOOL, bautobeginplayback: windows_core::BOOL) -> windows_core::Result<()>; + fn CreateVideoByDevNum(&self, uidevicenumber: u32, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: windows_core::BOOL, bautobeginplayback: windows_core::BOOL) -> windows_core::Result<()>; + fn CreateVideoByName(&self, bstrfriendlyname: &windows_core::BSTR, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: windows_core::BOOL, bautobeginplayback: windows_core::BOOL) -> windows_core::Result<()>; fn DestroyVideo(&self) -> windows_core::Result<()>; fn Play(&self) -> windows_core::Result<()>; fn Pause(&self) -> windows_core::Result<()>; fn TakePicture(&self) -> windows_core::Result; - fn ResizeVideo(&self, bstretchtofitparent: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ResizeVideo(&self, bstretchtofitparent: windows_core::BOOL) -> windows_core::Result<()>; fn GetCurrentState(&self) -> windows_core::Result; } impl IWiaVideo_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn PreviewVisible(this: *mut core::ffi::c_void, pbpreviewvisible: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn PreviewVisible(this: *mut core::ffi::c_void, pbpreviewvisible: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWiaVideo_Impl::PreviewVisible(this) { @@ -3599,7 +3599,7 @@ impl IWiaVideo_Vtbl { } } } - unsafe extern "system" fn SetPreviewVisible(this: *mut core::ffi::c_void, bpreviewvisible: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetPreviewVisible(this: *mut core::ffi::c_void, bpreviewvisible: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaVideo_Impl::SetPreviewVisible(this, core::mem::transmute_copy(&bpreviewvisible)).into() @@ -3623,19 +3623,19 @@ impl IWiaVideo_Vtbl { IWiaVideo_Impl::SetImagesDirectory(this, core::mem::transmute(&bstrimagedirectory)).into() } } - unsafe extern "system" fn CreateVideoByWiaDevID(this: *mut core::ffi::c_void, bstrwiadeviceid: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CreateVideoByWiaDevID(this: *mut core::ffi::c_void, bstrwiadeviceid: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: windows_core::BOOL, bautobeginplayback: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaVideo_Impl::CreateVideoByWiaDevID(this, core::mem::transmute(&bstrwiadeviceid), core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&bstretchtofitparent), core::mem::transmute_copy(&bautobeginplayback)).into() } } - unsafe extern "system" fn CreateVideoByDevNum(this: *mut core::ffi::c_void, uidevicenumber: u32, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CreateVideoByDevNum(this: *mut core::ffi::c_void, uidevicenumber: u32, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: windows_core::BOOL, bautobeginplayback: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaVideo_Impl::CreateVideoByDevNum(this, core::mem::transmute_copy(&uidevicenumber), core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&bstretchtofitparent), core::mem::transmute_copy(&bautobeginplayback)).into() } } - unsafe extern "system" fn CreateVideoByName(this: *mut core::ffi::c_void, bstrfriendlyname: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CreateVideoByName(this: *mut core::ffi::c_void, bstrfriendlyname: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: windows_core::BOOL, bautobeginplayback: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaVideo_Impl::CreateVideoByName(this, core::mem::transmute(&bstrfriendlyname), core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&bstretchtofitparent), core::mem::transmute_copy(&bautobeginplayback)).into() @@ -3671,7 +3671,7 @@ impl IWiaVideo_Vtbl { } } } - unsafe extern "system" fn ResizeVideo(this: *mut core::ffi::c_void, bstretchtofitparent: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ResizeVideo(this: *mut core::ffi::c_void, bstretchtofitparent: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWiaVideo_Impl::ResizeVideo(this, core::mem::transmute_copy(&bstretchtofitparent)).into() @@ -3753,8 +3753,8 @@ pub struct MINIDRV_TRANSFER_CONTEXT { pub lNumBuffers: i32, pub pBaseBuffer: *mut u8, pub pTransferBuffer: *mut u8, - pub bTransferDataCB: super::super::Foundation::BOOL, - pub bClassDrvAllocBuf: super::super::Foundation::BOOL, + pub bTransferDataCB: windows_core::BOOL, + pub bClassDrvAllocBuf: windows_core::BOOL, pub lClientAddress: isize, pub pIWiaMiniDrvCallBack: core::mem::ManuallyDrop>, pub lImageSize: i32, @@ -3916,7 +3916,7 @@ pub const WHITEBALANCE_ONEPUSH_AUTO: u32 = 3u32; pub const WHITEBALANCE_TUNGSTEN: u32 = 6u32; #[repr(C)] pub struct WIAS_CHANGED_VALUE_INFO { - pub bChanged: super::super::Foundation::BOOL, + pub bChanged: windows_core::BOOL, pub vt: i32, pub Old: WIAS_CHANGED_VALUE_INFO_0, pub Current: WIAS_CHANGED_VALUE_INFO_1, @@ -4202,7 +4202,7 @@ pub struct WIA_DATA_TRANSFER_INFO { pub ulSize: u32, pub ulSection: u32, pub ulBufferSize: u32, - pub bDoubleBuffer: super::super::Foundation::BOOL, + pub bDoubleBuffer: windows_core::BOOL, pub ulReserved1: u32, pub ulReserved2: u32, pub ulReserved3: u32, @@ -5119,7 +5119,7 @@ pub const WIA_PRIVATE_ITEMPROP: u32 = 71682u32; pub struct WIA_PROPERTY_CONTEXT { pub cProps: u32, pub pProps: *mut u32, - pub pChanged: *mut super::super::Foundation::BOOL, + pub pChanged: *mut windows_core::BOOL, } impl Default for WIA_PROPERTY_CONTEXT { fn default() -> Self { 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 d94dec3ddd..84ec792d17 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/mod.rs @@ -3115,7 +3115,7 @@ impl IPortableDeviceValues { pub unsafe fn SetBoolValue(&self, key: *const super::super::Foundation::PROPERTYKEY, value: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBoolValue)(windows_core::Interface::as_raw(self), key, value.into()).ok() } } - pub unsafe fn GetBoolValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { + pub unsafe fn GetBoolValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBoolValue)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) @@ -3249,8 +3249,8 @@ pub struct IPortableDeviceValues_Vtbl { pub GetErrorValue: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, *mut windows_core::HRESULT) -> windows_core::HRESULT, pub SetKeyValue: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, *const super::super::Foundation::PROPERTYKEY) -> windows_core::HRESULT, pub GetKeyValue: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, *mut super::super::Foundation::PROPERTYKEY) -> windows_core::HRESULT, - pub SetBoolValue: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetBoolValue: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetBoolValue: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, windows_core::BOOL) -> windows_core::HRESULT, + pub GetBoolValue: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetIUnknownValue: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetIUnknownValue: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetGuidValue: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, *const windows_core::GUID) -> windows_core::HRESULT, @@ -3298,8 +3298,8 @@ pub trait IPortableDeviceValues_Impl: windows_core::IUnknownImpl { fn GetErrorValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result; fn SetKeyValue(&self, key: *const super::super::Foundation::PROPERTYKEY, value: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()>; fn GetKeyValue(&self, key: *const super::super::Foundation::PROPERTYKEY, pvalue: *mut super::super::Foundation::PROPERTYKEY) -> windows_core::Result<()>; - fn SetBoolValue(&self, key: *const super::super::Foundation::PROPERTYKEY, value: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetBoolValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result; + fn SetBoolValue(&self, key: *const super::super::Foundation::PROPERTYKEY, value: windows_core::BOOL) -> windows_core::Result<()>; + fn GetBoolValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result; fn SetIUnknownValue(&self, key: *const super::super::Foundation::PROPERTYKEY, pvalue: windows_core::Ref) -> windows_core::Result<()>; fn GetIUnknownValue(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result; fn SetGuidValue(&self, key: *const super::super::Foundation::PROPERTYKEY, value: *const windows_core::GUID) -> windows_core::Result<()>; @@ -3490,13 +3490,13 @@ impl IPortableDeviceValues_Vtbl { IPortableDeviceValues_Impl::GetKeyValue(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&pvalue)).into() } } - unsafe extern "system" fn SetBoolValue(this: *mut core::ffi::c_void, key: *const super::super::Foundation::PROPERTYKEY, value: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBoolValue(this: *mut core::ffi::c_void, key: *const super::super::Foundation::PROPERTYKEY, value: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPortableDeviceValues_Impl::SetBoolValue(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&value)).into() } } - unsafe extern "system" fn GetBoolValue(this: *mut core::ffi::c_void, key: *const super::super::Foundation::PROPERTYKEY, pvalue: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetBoolValue(this: *mut core::ffi::c_void, key: *const super::super::Foundation::PROPERTYKEY, pvalue: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPortableDeviceValues_Impl::GetBoolValue(this, core::mem::transmute_copy(&key)) { @@ -3897,10 +3897,10 @@ impl IRadioInstance { pub unsafe fn SetRadioState(&self, radiostate: DEVICE_RADIO_STATE, utimeoutsec: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetRadioState)(windows_core::Interface::as_raw(self), radiostate, utimeoutsec).ok() } } - pub unsafe fn IsMultiComm(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsMultiComm(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsMultiComm)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn IsAssociatingDevice(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsAssociatingDevice(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsAssociatingDevice)(windows_core::Interface::as_raw(self)) } } } @@ -3912,8 +3912,8 @@ pub struct IRadioInstance_Vtbl { pub GetFriendlyName: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetRadioState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DEVICE_RADIO_STATE) -> windows_core::HRESULT, pub SetRadioState: unsafe extern "system" fn(*mut core::ffi::c_void, DEVICE_RADIO_STATE, u32) -> windows_core::HRESULT, - pub IsMultiComm: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, - pub IsAssociatingDevice: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsMultiComm: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, + pub IsAssociatingDevice: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } pub trait IRadioInstance_Impl: windows_core::IUnknownImpl { fn GetRadioManagerSignature(&self) -> windows_core::Result; @@ -3921,8 +3921,8 @@ pub trait IRadioInstance_Impl: windows_core::IUnknownImpl { fn GetFriendlyName(&self, lcid: u32) -> windows_core::Result; fn GetRadioState(&self) -> windows_core::Result; fn SetRadioState(&self, radiostate: DEVICE_RADIO_STATE, utimeoutsec: u32) -> windows_core::Result<()>; - fn IsMultiComm(&self) -> super::super::Foundation::BOOL; - fn IsAssociatingDevice(&self) -> super::super::Foundation::BOOL; + fn IsMultiComm(&self) -> windows_core::BOOL; + fn IsAssociatingDevice(&self) -> windows_core::BOOL; } impl IRadioInstance_Vtbl { pub const fn new() -> Self { @@ -3980,13 +3980,13 @@ impl IRadioInstance_Vtbl { IRadioInstance_Impl::SetRadioState(this, core::mem::transmute_copy(&radiostate), core::mem::transmute_copy(&utimeoutsec)).into() } } - unsafe extern "system" fn IsMultiComm(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsMultiComm(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRadioInstance_Impl::IsMultiComm(this) } } - unsafe extern "system" fn IsAssociatingDevice(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsAssociatingDevice(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRadioInstance_Impl::IsAssociatingDevice(this) 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 36d68d7e1f..722518c8bd 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs @@ -122,8 +122,8 @@ pub unsafe fn IsSensorSubscribed(subscriptionlist: *const SENSOR_COLLECTION_LIST } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] #[inline] -pub unsafe fn PropKeyFindKeyGetBool(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY, pretvalue: *mut super::super::Foundation::BOOL) -> super::super::Foundation::NTSTATUS { - windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetBool(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: NTSTATUS); +pub unsafe fn PropKeyFindKeyGetBool(plist: *const SENSOR_COLLECTION_LIST, pkey: *const super::super::Foundation::PROPERTYKEY, pretvalue: *mut windows_core::BOOL) -> super::super::Foundation::NTSTATUS { + windows_targets::link!("sensorsutilsv2.dll" "system" fn PropKeyFindKeyGetBool(plist : *const SENSOR_COLLECTION_LIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pretvalue : *mut windows_core::BOOL) -> super::super::Foundation:: NTSTATUS); unsafe { PropKeyFindKeyGetBool(core::mem::transmute(plist), pkey, pretvalue as _) } } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -318,7 +318,7 @@ pub const HumanPresenceDetectionType_VendorDefinedNonBiometric: HUMAN_PRESENCE_D windows_core::imp::define_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 { + pub unsafe fn GetGlobalLocationPermission(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetGlobalLocationPermission)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -331,16 +331,16 @@ impl ILocationPermissions { #[repr(C)] pub struct ILocationPermissions_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetGlobalLocationPermission: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetGlobalLocationPermission: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CheckLocationCapability: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, } pub trait ILocationPermissions_Impl: windows_core::IUnknownImpl { - fn GetGlobalLocationPermission(&self) -> windows_core::Result; + fn GetGlobalLocationPermission(&self) -> windows_core::Result; fn CheckLocationCapability(&self, dwclientthreadid: u32) -> windows_core::Result<()>; } impl ILocationPermissions_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetGlobalLocationPermission(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetGlobalLocationPermission(this: *mut core::ffi::c_void, pfenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ILocationPermissions_Impl::GetGlobalLocationPermission(this) { @@ -1049,14 +1049,14 @@ pub struct ISensorManager_Vtbl { pub GetSensorsByType: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSensorByID: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetEventSink: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub RequestPermissions: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub RequestPermissions: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait ISensorManager_Impl: windows_core::IUnknownImpl { fn GetSensorsByCategory(&self, sensorcategory: *const windows_core::GUID) -> windows_core::Result; fn GetSensorsByType(&self, sensortype: *const windows_core::GUID) -> windows_core::Result; fn GetSensorByID(&self, sensorid: *const windows_core::GUID) -> windows_core::Result; fn SetEventSink(&self, pevents: windows_core::Ref) -> windows_core::Result<()>; - fn RequestPermissions(&self, hparent: super::super::Foundation::HWND, psensors: windows_core::Ref, fmodal: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn RequestPermissions(&self, hparent: super::super::Foundation::HWND, psensors: windows_core::Ref, fmodal: windows_core::BOOL) -> windows_core::Result<()>; } impl ISensorManager_Vtbl { pub const fn new() -> Self { @@ -1102,7 +1102,7 @@ impl ISensorManager_Vtbl { ISensorManager_Impl::SetEventSink(this, core::mem::transmute_copy(&pevents)).into() } } - unsafe extern "system" fn RequestPermissions(this: *mut core::ffi::c_void, hparent: super::super::Foundation::HWND, psensors: *mut core::ffi::c_void, fmodal: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RequestPermissions(this: *mut core::ffi::c_void, hparent: super::super::Foundation::HWND, psensors: *mut core::ffi::c_void, fmodal: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISensorManager_Impl::RequestPermissions(this, core::mem::transmute_copy(&hparent), core::mem::transmute_copy(&psensors), core::mem::transmute_copy(&fmodal)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Devices/SerialCommunication/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/SerialCommunication/mod.rs index bcdf918b79..1ddebc739f 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/SerialCommunication/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/SerialCommunication/mod.rs @@ -4,8 +4,8 @@ pub unsafe fn ComDBClaimNextFreePort(hcomdb: HCOMDB, comnumber: *mut u32) -> i32 unsafe { ComDBClaimNextFreePort(hcomdb, comnumber as _) } } #[inline] -pub unsafe fn ComDBClaimPort(hcomdb: HCOMDB, comnumber: u32, forceclaim: bool, forced: Option<*mut super::super::Foundation::BOOL>) -> i32 { - windows_targets::link!("msports.dll" "system" fn ComDBClaimPort(hcomdb : HCOMDB, comnumber : u32, forceclaim : super::super::Foundation:: BOOL, forced : *mut super::super::Foundation:: BOOL) -> i32); +pub unsafe fn ComDBClaimPort(hcomdb: HCOMDB, comnumber: u32, forceclaim: bool, forced: Option<*mut windows_core::BOOL>) -> i32 { + windows_targets::link!("msports.dll" "system" fn ComDBClaimPort(hcomdb : HCOMDB, comnumber : u32, forceclaim : windows_core::BOOL, forced : *mut windows_core::BOOL) -> i32); unsafe { ComDBClaimPort(hcomdb, comnumber, forceclaim.into(), forced.unwrap_or(core::mem::zeroed()) as _) } } #[inline] 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 05f09a988b..03896f0967 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs @@ -7395,7 +7395,7 @@ impl ITAllocatorProperties { pub unsafe fn SetAllocateBuffers(&self, ballocbuffers: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetAllocateBuffers)(windows_core::Interface::as_raw(self), ballocbuffers.into()).ok() } } - pub unsafe fn GetAllocateBuffers(&self) -> windows_core::Result { + pub unsafe fn GetAllocateBuffers(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAllocateBuffers)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7422,8 +7422,8 @@ pub struct ITAllocatorProperties_Vtbl { pub GetAllocatorProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Media::DirectShow::ALLOCATOR_PROPERTIES) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Media_DirectShow"))] GetAllocatorProperties: usize, - pub SetAllocateBuffers: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetAllocateBuffers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetAllocateBuffers: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetAllocateBuffers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetBufferSize: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetBufferSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } @@ -7431,8 +7431,8 @@ pub struct ITAllocatorProperties_Vtbl { pub trait ITAllocatorProperties_Impl: windows_core::IUnknownImpl { fn SetAllocatorProperties(&self, pallocproperties: *const super::super::Media::DirectShow::ALLOCATOR_PROPERTIES) -> windows_core::Result<()>; fn GetAllocatorProperties(&self) -> windows_core::Result; - fn SetAllocateBuffers(&self, ballocbuffers: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetAllocateBuffers(&self) -> windows_core::Result; + fn SetAllocateBuffers(&self, ballocbuffers: windows_core::BOOL) -> windows_core::Result<()>; + fn GetAllocateBuffers(&self) -> windows_core::Result; fn SetBufferSize(&self, buffersize: u32) -> windows_core::Result<()>; fn GetBufferSize(&self) -> windows_core::Result; } @@ -7457,13 +7457,13 @@ impl ITAllocatorProperties_Vtbl { } } } - unsafe extern "system" fn SetAllocateBuffers(this: *mut core::ffi::c_void, ballocbuffers: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAllocateBuffers(this: *mut core::ffi::c_void, ballocbuffers: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITAllocatorProperties_Impl::SetAllocateBuffers(this, core::mem::transmute_copy(&ballocbuffers)).into() } } - unsafe extern "system" fn GetAllocateBuffers(this: *mut core::ffi::c_void, pballocbuffers: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetAllocateBuffers(this: *mut core::ffi::c_void, pballocbuffers: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITAllocatorProperties_Impl::GetAllocateBuffers(this) { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs index b29a095049..93df890962 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Usb/mod.rs @@ -1,73 +1,73 @@ #[inline] pub unsafe fn WinUsb_AbortPipe(interfacehandle: WINUSB_INTERFACE_HANDLE, pipeid: u8) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_AbortPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_AbortPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8) -> windows_core::BOOL); unsafe { WinUsb_AbortPipe(interfacehandle, pipeid).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_ControlTransfer(interfacehandle: WINUSB_INTERFACE_HANDLE, setuppacket: WINUSB_SETUP_PACKET, buffer: Option<&mut [u8]>, lengthtransferred: Option<*mut u32>, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_ControlTransfer(interfacehandle : WINUSB_INTERFACE_HANDLE, setuppacket : WINUSB_SETUP_PACKET, buffer : *mut u8, bufferlength : u32, lengthtransferred : *mut u32, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_ControlTransfer(interfacehandle : WINUSB_INTERFACE_HANDLE, setuppacket : WINUSB_SETUP_PACKET, buffer : *mut u8, bufferlength : u32, lengthtransferred : *mut u32, overlapped : *const super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { WinUsb_ControlTransfer(interfacehandle, core::mem::transmute(setuppacket), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lengthtransferred.unwrap_or(core::mem::zeroed()) as _, overlapped.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn WinUsb_FlushPipe(interfacehandle: WINUSB_INTERFACE_HANDLE, pipeid: u8) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_FlushPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_FlushPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8) -> windows_core::BOOL); unsafe { WinUsb_FlushPipe(interfacehandle, pipeid).ok() } } #[inline] -pub unsafe fn WinUsb_Free(interfacehandle: WINUSB_INTERFACE_HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("winusb.dll" "system" fn WinUsb_Free(interfacehandle : WINUSB_INTERFACE_HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn WinUsb_Free(interfacehandle: WINUSB_INTERFACE_HANDLE) -> windows_core::BOOL { + windows_targets::link!("winusb.dll" "system" fn WinUsb_Free(interfacehandle : WINUSB_INTERFACE_HANDLE) -> windows_core::BOOL); unsafe { WinUsb_Free(interfacehandle) } } #[inline] pub unsafe fn WinUsb_GetAdjustedFrameNumber(currentframenumber: *mut u32, timestamp: i64) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_GetAdjustedFrameNumber(currentframenumber : *mut u32, timestamp : i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_GetAdjustedFrameNumber(currentframenumber : *mut u32, timestamp : i64) -> windows_core::BOOL); unsafe { WinUsb_GetAdjustedFrameNumber(currentframenumber as _, timestamp).ok() } } #[inline] pub unsafe fn WinUsb_GetAssociatedInterface(interfacehandle: WINUSB_INTERFACE_HANDLE, associatedinterfaceindex: u8, associatedinterfacehandle: *mut WINUSB_INTERFACE_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_GetAssociatedInterface(interfacehandle : WINUSB_INTERFACE_HANDLE, associatedinterfaceindex : u8, associatedinterfacehandle : *mut WINUSB_INTERFACE_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_GetAssociatedInterface(interfacehandle : WINUSB_INTERFACE_HANDLE, associatedinterfaceindex : u8, associatedinterfacehandle : *mut WINUSB_INTERFACE_HANDLE) -> windows_core::BOOL); unsafe { WinUsb_GetAssociatedInterface(interfacehandle, associatedinterfaceindex, associatedinterfacehandle as _).ok() } } #[inline] pub unsafe fn WinUsb_GetCurrentAlternateSetting(interfacehandle: WINUSB_INTERFACE_HANDLE, settingnumber: *mut u8) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_GetCurrentAlternateSetting(interfacehandle : WINUSB_INTERFACE_HANDLE, settingnumber : *mut u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_GetCurrentAlternateSetting(interfacehandle : WINUSB_INTERFACE_HANDLE, settingnumber : *mut u8) -> windows_core::BOOL); unsafe { WinUsb_GetCurrentAlternateSetting(interfacehandle, settingnumber as _).ok() } } #[inline] pub unsafe fn WinUsb_GetCurrentFrameNumber(interfacehandle: WINUSB_INTERFACE_HANDLE, currentframenumber: *mut u32, timestamp: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_GetCurrentFrameNumber(interfacehandle : WINUSB_INTERFACE_HANDLE, currentframenumber : *mut u32, timestamp : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_GetCurrentFrameNumber(interfacehandle : WINUSB_INTERFACE_HANDLE, currentframenumber : *mut u32, timestamp : *mut i64) -> windows_core::BOOL); unsafe { WinUsb_GetCurrentFrameNumber(interfacehandle, currentframenumber as _, timestamp as _).ok() } } #[inline] pub unsafe fn WinUsb_GetCurrentFrameNumberAndQpc(interfacehandle: WINUSB_INTERFACE_HANDLE, frameqpcinfo: *const USB_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC_INFORMATION) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_GetCurrentFrameNumberAndQpc(interfacehandle : WINUSB_INTERFACE_HANDLE, frameqpcinfo : *const USB_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC_INFORMATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_GetCurrentFrameNumberAndQpc(interfacehandle : WINUSB_INTERFACE_HANDLE, frameqpcinfo : *const USB_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC_INFORMATION) -> windows_core::BOOL); unsafe { WinUsb_GetCurrentFrameNumberAndQpc(interfacehandle, frameqpcinfo).ok() } } #[inline] pub unsafe fn WinUsb_GetDescriptor(interfacehandle: WINUSB_INTERFACE_HANDLE, descriptortype: u8, index: u8, languageid: u16, buffer: Option<&mut [u8]>, lengthtransferred: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_GetDescriptor(interfacehandle : WINUSB_INTERFACE_HANDLE, descriptortype : u8, index : u8, languageid : u16, buffer : *mut u8, bufferlength : u32, lengthtransferred : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_GetDescriptor(interfacehandle : WINUSB_INTERFACE_HANDLE, descriptortype : u8, index : u8, languageid : u16, buffer : *mut u8, bufferlength : u32, lengthtransferred : *mut u32) -> windows_core::BOOL); unsafe { WinUsb_GetDescriptor(interfacehandle, descriptortype, index, languageid, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lengthtransferred as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_GetOverlappedResult(interfacehandle: WINUSB_INTERFACE_HANDLE, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: bool) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_GetOverlappedResult(interfacehandle : WINUSB_INTERFACE_HANDLE, lpoverlapped : *const super::super::System::IO:: OVERLAPPED, lpnumberofbytestransferred : *mut u32, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_GetOverlappedResult(interfacehandle : WINUSB_INTERFACE_HANDLE, lpoverlapped : *const super::super::System::IO:: OVERLAPPED, lpnumberofbytestransferred : *mut u32, bwait : windows_core::BOOL) -> windows_core::BOOL); unsafe { WinUsb_GetOverlappedResult(interfacehandle, lpoverlapped, lpnumberofbytestransferred as _, bwait.into()).ok() } } #[inline] pub unsafe fn WinUsb_GetPipePolicy(interfacehandle: WINUSB_INTERFACE_HANDLE, pipeid: u8, policytype: WINUSB_PIPE_POLICY, valuelength: *mut u32, value: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_GetPipePolicy(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8, policytype : WINUSB_PIPE_POLICY, valuelength : *mut u32, value : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_GetPipePolicy(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8, policytype : WINUSB_PIPE_POLICY, valuelength : *mut u32, value : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { WinUsb_GetPipePolicy(interfacehandle, pipeid, policytype, valuelength as _, value as _).ok() } } #[inline] pub unsafe fn WinUsb_GetPowerPolicy(interfacehandle: WINUSB_INTERFACE_HANDLE, policytype: WINUSB_POWER_POLICY, valuelength: *mut u32, value: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_GetPowerPolicy(interfacehandle : WINUSB_INTERFACE_HANDLE, policytype : WINUSB_POWER_POLICY, valuelength : *mut u32, value : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_GetPowerPolicy(interfacehandle : WINUSB_INTERFACE_HANDLE, policytype : WINUSB_POWER_POLICY, valuelength : *mut u32, value : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { WinUsb_GetPowerPolicy(interfacehandle, policytype, valuelength as _, value as _).ok() } } #[inline] pub unsafe fn WinUsb_Initialize(devicehandle: super::super::Foundation::HANDLE, interfacehandle: *mut WINUSB_INTERFACE_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_Initialize(devicehandle : super::super::Foundation:: HANDLE, interfacehandle : *mut WINUSB_INTERFACE_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_Initialize(devicehandle : super::super::Foundation:: HANDLE, interfacehandle : *mut WINUSB_INTERFACE_HANDLE) -> windows_core::BOOL); unsafe { WinUsb_Initialize(devicehandle, interfacehandle as _).ok() } } #[inline] @@ -82,98 +82,98 @@ pub unsafe fn WinUsb_ParseDescriptors(descriptorbuffer: *const core::ffi::c_void } #[inline] pub unsafe fn WinUsb_QueryDeviceInformation(interfacehandle: WINUSB_INTERFACE_HANDLE, informationtype: u32, bufferlength: *mut u32, buffer: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_QueryDeviceInformation(interfacehandle : WINUSB_INTERFACE_HANDLE, informationtype : u32, bufferlength : *mut u32, buffer : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_QueryDeviceInformation(interfacehandle : WINUSB_INTERFACE_HANDLE, informationtype : u32, bufferlength : *mut u32, buffer : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { WinUsb_QueryDeviceInformation(interfacehandle, informationtype, bufferlength as _, buffer as _).ok() } } #[inline] pub unsafe fn WinUsb_QueryInterfaceSettings(interfacehandle: WINUSB_INTERFACE_HANDLE, alternateinterfacenumber: u8, usbaltinterfacedescriptor: *mut USB_INTERFACE_DESCRIPTOR) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_QueryInterfaceSettings(interfacehandle : WINUSB_INTERFACE_HANDLE, alternateinterfacenumber : u8, usbaltinterfacedescriptor : *mut USB_INTERFACE_DESCRIPTOR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_QueryInterfaceSettings(interfacehandle : WINUSB_INTERFACE_HANDLE, alternateinterfacenumber : u8, usbaltinterfacedescriptor : *mut USB_INTERFACE_DESCRIPTOR) -> windows_core::BOOL); unsafe { WinUsb_QueryInterfaceSettings(interfacehandle, alternateinterfacenumber, usbaltinterfacedescriptor as _).ok() } } #[inline] pub unsafe fn WinUsb_QueryPipe(interfacehandle: WINUSB_INTERFACE_HANDLE, alternateinterfacenumber: u8, pipeindex: u8, pipeinformation: *mut WINUSB_PIPE_INFORMATION) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_QueryPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, alternateinterfacenumber : u8, pipeindex : u8, pipeinformation : *mut WINUSB_PIPE_INFORMATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_QueryPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, alternateinterfacenumber : u8, pipeindex : u8, pipeinformation : *mut WINUSB_PIPE_INFORMATION) -> windows_core::BOOL); unsafe { WinUsb_QueryPipe(interfacehandle, alternateinterfacenumber, pipeindex, pipeinformation as _).ok() } } #[inline] pub unsafe fn WinUsb_QueryPipeEx(interfacehandle: WINUSB_INTERFACE_HANDLE, alternatesettingnumber: u8, pipeindex: u8, pipeinformationex: *mut WINUSB_PIPE_INFORMATION_EX) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_QueryPipeEx(interfacehandle : WINUSB_INTERFACE_HANDLE, alternatesettingnumber : u8, pipeindex : u8, pipeinformationex : *mut WINUSB_PIPE_INFORMATION_EX) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_QueryPipeEx(interfacehandle : WINUSB_INTERFACE_HANDLE, alternatesettingnumber : u8, pipeindex : u8, pipeinformationex : *mut WINUSB_PIPE_INFORMATION_EX) -> windows_core::BOOL); unsafe { WinUsb_QueryPipeEx(interfacehandle, alternatesettingnumber, pipeindex, pipeinformationex as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_ReadIsochPipe(bufferhandle: *const core::ffi::c_void, offset: u32, length: u32, framenumber: *mut u32, isopacketdescriptors: &mut [USBD_ISO_PACKET_DESCRIPTOR], overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_ReadIsochPipe(bufferhandle : *const core::ffi::c_void, offset : u32, length : u32, framenumber : *mut u32, numberofpackets : u32, isopacketdescriptors : *mut USBD_ISO_PACKET_DESCRIPTOR, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_ReadIsochPipe(bufferhandle : *const core::ffi::c_void, offset : u32, length : u32, framenumber : *mut u32, numberofpackets : u32, isopacketdescriptors : *mut USBD_ISO_PACKET_DESCRIPTOR, overlapped : *const super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { WinUsb_ReadIsochPipe(bufferhandle, offset, length, framenumber as _, isopacketdescriptors.len().try_into().unwrap(), core::mem::transmute(isopacketdescriptors.as_ptr()), overlapped.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_ReadIsochPipeAsap(bufferhandle: *const core::ffi::c_void, offset: u32, length: u32, continuestream: bool, isopacketdescriptors: &mut [USBD_ISO_PACKET_DESCRIPTOR], overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_ReadIsochPipeAsap(bufferhandle : *const core::ffi::c_void, offset : u32, length : u32, continuestream : super::super::Foundation:: BOOL, numberofpackets : u32, isopacketdescriptors : *mut USBD_ISO_PACKET_DESCRIPTOR, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_ReadIsochPipeAsap(bufferhandle : *const core::ffi::c_void, offset : u32, length : u32, continuestream : windows_core::BOOL, numberofpackets : u32, isopacketdescriptors : *mut USBD_ISO_PACKET_DESCRIPTOR, overlapped : *const super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { WinUsb_ReadIsochPipeAsap(bufferhandle, offset, length, continuestream.into(), isopacketdescriptors.len().try_into().unwrap(), core::mem::transmute(isopacketdescriptors.as_ptr()), overlapped.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_ReadPipe(interfacehandle: WINUSB_INTERFACE_HANDLE, pipeid: u8, buffer: Option<&mut [u8]>, lengthtransferred: Option<*mut u32>, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_ReadPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8, buffer : *mut u8, bufferlength : u32, lengthtransferred : *mut u32, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_ReadPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8, buffer : *mut u8, bufferlength : u32, lengthtransferred : *mut u32, overlapped : *const super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { WinUsb_ReadPipe(interfacehandle, pipeid, core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lengthtransferred.unwrap_or(core::mem::zeroed()) as _, overlapped.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn WinUsb_RegisterIsochBuffer(interfacehandle: WINUSB_INTERFACE_HANDLE, pipeid: u8, buffer: &mut [u8], isochbufferhandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_RegisterIsochBuffer(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8, buffer : *mut u8, bufferlength : u32, isochbufferhandle : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_RegisterIsochBuffer(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8, buffer : *mut u8, bufferlength : u32, isochbufferhandle : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { WinUsb_RegisterIsochBuffer(interfacehandle, pipeid, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), isochbufferhandle as _).ok() } } #[inline] pub unsafe fn WinUsb_ResetPipe(interfacehandle: WINUSB_INTERFACE_HANDLE, pipeid: u8) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_ResetPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_ResetPipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8) -> windows_core::BOOL); unsafe { WinUsb_ResetPipe(interfacehandle, pipeid).ok() } } #[inline] pub unsafe fn WinUsb_SetCurrentAlternateSetting(interfacehandle: WINUSB_INTERFACE_HANDLE, settingnumber: u8) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_SetCurrentAlternateSetting(interfacehandle : WINUSB_INTERFACE_HANDLE, settingnumber : u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_SetCurrentAlternateSetting(interfacehandle : WINUSB_INTERFACE_HANDLE, settingnumber : u8) -> windows_core::BOOL); unsafe { WinUsb_SetCurrentAlternateSetting(interfacehandle, settingnumber).ok() } } #[inline] pub unsafe fn WinUsb_SetPipePolicy(interfacehandle: WINUSB_INTERFACE_HANDLE, pipeid: u8, policytype: WINUSB_PIPE_POLICY, valuelength: u32, value: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_SetPipePolicy(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8, policytype : WINUSB_PIPE_POLICY, valuelength : u32, value : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_SetPipePolicy(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8, policytype : WINUSB_PIPE_POLICY, valuelength : u32, value : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { WinUsb_SetPipePolicy(interfacehandle, pipeid, policytype, valuelength, value).ok() } } #[inline] pub unsafe fn WinUsb_SetPowerPolicy(interfacehandle: WINUSB_INTERFACE_HANDLE, policytype: WINUSB_POWER_POLICY, valuelength: u32, value: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_SetPowerPolicy(interfacehandle : WINUSB_INTERFACE_HANDLE, policytype : WINUSB_POWER_POLICY, valuelength : u32, value : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_SetPowerPolicy(interfacehandle : WINUSB_INTERFACE_HANDLE, policytype : WINUSB_POWER_POLICY, valuelength : u32, value : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { WinUsb_SetPowerPolicy(interfacehandle, policytype, valuelength, value).ok() } } #[inline] pub unsafe fn WinUsb_StartTrackingForTimeSync(interfacehandle: WINUSB_INTERFACE_HANDLE, starttrackinginfo: *const USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_StartTrackingForTimeSync(interfacehandle : WINUSB_INTERFACE_HANDLE, starttrackinginfo : *const USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_StartTrackingForTimeSync(interfacehandle : WINUSB_INTERFACE_HANDLE, starttrackinginfo : *const USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION) -> windows_core::BOOL); unsafe { WinUsb_StartTrackingForTimeSync(interfacehandle, starttrackinginfo).ok() } } #[inline] pub unsafe fn WinUsb_StopTrackingForTimeSync(interfacehandle: WINUSB_INTERFACE_HANDLE, stoptrackinginfo: *const USB_STOP_TRACKING_FOR_TIME_SYNC_INFORMATION) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_StopTrackingForTimeSync(interfacehandle : WINUSB_INTERFACE_HANDLE, stoptrackinginfo : *const USB_STOP_TRACKING_FOR_TIME_SYNC_INFORMATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_StopTrackingForTimeSync(interfacehandle : WINUSB_INTERFACE_HANDLE, stoptrackinginfo : *const USB_STOP_TRACKING_FOR_TIME_SYNC_INFORMATION) -> windows_core::BOOL); unsafe { WinUsb_StopTrackingForTimeSync(interfacehandle, stoptrackinginfo).ok() } } #[inline] pub unsafe fn WinUsb_UnregisterIsochBuffer(isochbufferhandle: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_UnregisterIsochBuffer(isochbufferhandle : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_UnregisterIsochBuffer(isochbufferhandle : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { WinUsb_UnregisterIsochBuffer(isochbufferhandle).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_WriteIsochPipe(bufferhandle: *const core::ffi::c_void, offset: u32, length: u32, framenumber: *mut u32, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_WriteIsochPipe(bufferhandle : *const core::ffi::c_void, offset : u32, length : u32, framenumber : *mut u32, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_WriteIsochPipe(bufferhandle : *const core::ffi::c_void, offset : u32, length : u32, framenumber : *mut u32, overlapped : *const super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { WinUsb_WriteIsochPipe(bufferhandle, offset, length, framenumber as _, overlapped.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_WriteIsochPipeAsap(bufferhandle: *const core::ffi::c_void, offset: u32, length: u32, continuestream: bool, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_WriteIsochPipeAsap(bufferhandle : *const core::ffi::c_void, offset : u32, length : u32, continuestream : super::super::Foundation:: BOOL, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_WriteIsochPipeAsap(bufferhandle : *const core::ffi::c_void, offset : u32, length : u32, continuestream : windows_core::BOOL, overlapped : *const super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { WinUsb_WriteIsochPipeAsap(bufferhandle, offset, length, continuestream.into(), overlapped.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WinUsb_WritePipe(interfacehandle: WINUSB_INTERFACE_HANDLE, pipeid: u8, buffer: &[u8], lengthtransferred: Option<*mut u32>, overlapped: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { - windows_targets::link!("winusb.dll" "system" fn WinUsb_WritePipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8, buffer : *const u8, bufferlength : u32, lengthtransferred : *mut u32, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("winusb.dll" "system" fn WinUsb_WritePipe(interfacehandle : WINUSB_INTERFACE_HANDLE, pipeid : u8, buffer : *const u8, bufferlength : u32, lengthtransferred : *mut u32, overlapped : *const super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { WinUsb_WritePipe(interfacehandle, pipeid, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), lengthtransferred.unwrap_or(core::mem::zeroed()) as _, overlapped.unwrap_or(core::mem::zeroed()) as _).ok() } } pub const ALLOW_PARTIAL_READS: WINUSB_PIPE_POLICY = WINUSB_PIPE_POLICY(5u32); 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 7d0912d6e7..39b36bb8cc 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs @@ -296,16 +296,16 @@ impl IWSDAddress { #[repr(C)] pub struct IWSDAddress_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Serialize: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Serialize: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, windows_core::BOOL) -> windows_core::HRESULT, pub Deserialize: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, } pub trait IWSDAddress_Impl: windows_core::IUnknownImpl { - fn Serialize(&self, pszbuffer: windows_core::PWSTR, cchlength: u32, fsafe: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Serialize(&self, pszbuffer: windows_core::PWSTR, cchlength: u32, fsafe: windows_core::BOOL) -> windows_core::Result<()>; fn Deserialize(&self, pszbuffer: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl IWSDAddress_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pszbuffer: windows_core::PWSTR, cchlength: u32, fsafe: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, pszbuffer: windows_core::PWSTR, cchlength: u32, fsafe: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDAddress_Impl::Serialize(this, core::mem::transmute_copy(&pszbuffer), core::mem::transmute_copy(&cchlength), core::mem::transmute_copy(&fsafe)).into() @@ -586,7 +586,7 @@ pub struct IWSDDeviceHost_Vtbl { pub RetireService: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub AddDynamicService: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, *const WSD_PORT_TYPE, *const WSDXML_NAME, *const WSDXML_ELEMENT, *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveDynamicService: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, - pub SetServiceDiscoverable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetServiceDiscoverable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, pub SignalEvent: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const core::ffi::c_void, *const WSD_OPERATION) -> windows_core::HRESULT, } pub trait IWSDDeviceHost_Impl: windows_core::IUnknownImpl { @@ -600,7 +600,7 @@ pub trait IWSDDeviceHost_Impl: windows_core::IUnknownImpl { fn RetireService(&self, pszserviceid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn AddDynamicService(&self, pszserviceid: &windows_core::PCWSTR, pszendpointaddress: &windows_core::PCWSTR, pporttype: *const WSD_PORT_TYPE, pportname: *const WSDXML_NAME, pany: *const WSDXML_ELEMENT, pservice: windows_core::Ref) -> windows_core::Result<()>; fn RemoveDynamicService(&self, pszserviceid: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn SetServiceDiscoverable(&self, pszserviceid: &windows_core::PCWSTR, fdiscoverable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetServiceDiscoverable(&self, pszserviceid: &windows_core::PCWSTR, fdiscoverable: windows_core::BOOL) -> windows_core::Result<()>; fn SignalEvent(&self, pszserviceid: &windows_core::PCWSTR, pbody: *const core::ffi::c_void, poperation: *const WSD_OPERATION) -> windows_core::Result<()>; } impl IWSDDeviceHost_Vtbl { @@ -665,7 +665,7 @@ impl IWSDDeviceHost_Vtbl { IWSDDeviceHost_Impl::RemoveDynamicService(this, core::mem::transmute(&pszserviceid)).into() } } - unsafe extern "system" fn SetServiceDiscoverable(this: *mut core::ffi::c_void, pszserviceid: windows_core::PCWSTR, fdiscoverable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetServiceDiscoverable(this: *mut core::ffi::c_void, pszserviceid: windows_core::PCWSTR, fdiscoverable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDDeviceHost_Impl::SetServiceDiscoverable(this, core::mem::transmute(&pszserviceid), core::mem::transmute_copy(&fdiscoverable)).into() @@ -1203,13 +1203,13 @@ impl IWSDHttpAddress { pub struct IWSDHttpAddress_Vtbl { pub base__: IWSDTransportAddress_Vtbl, pub GetSecure: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetSecure: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetSecure: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetPath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PCWSTR) -> windows_core::HRESULT, pub SetPath: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, } pub trait IWSDHttpAddress_Impl: IWSDTransportAddress_Impl { fn GetSecure(&self) -> windows_core::Result<()>; - fn SetSecure(&self, fsecure: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetSecure(&self, fsecure: windows_core::BOOL) -> windows_core::Result<()>; fn GetPath(&self) -> windows_core::Result; fn SetPath(&self, pszpath: &windows_core::PCWSTR) -> windows_core::Result<()>; } @@ -1221,7 +1221,7 @@ impl IWSDHttpAddress_Vtbl { IWSDHttpAddress_Impl::GetSecure(this).into() } } - unsafe extern "system" fn SetSecure(this: *mut core::ffi::c_void, fsecure: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetSecure(this: *mut core::ffi::c_void, fsecure: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDHttpAddress_Impl::SetSecure(this, core::mem::transmute_copy(&fsecure)).into() @@ -1855,7 +1855,7 @@ impl IWSDScopeMatchingRule { (windows_core::Interface::vtable(self).GetScopeRule)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MatchScopes(&self, pszscope1: P0, pszscope2: P1) -> windows_core::Result + pub unsafe fn MatchScopes(&self, pszscope1: P0, pszscope2: P1) -> windows_core::Result where P0: windows_core::Param, P1: windows_core::Param, @@ -1870,11 +1870,11 @@ impl IWSDScopeMatchingRule { pub struct IWSDScopeMatchingRule_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetScopeRule: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PCWSTR) -> windows_core::HRESULT, - pub MatchScopes: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MatchScopes: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWSDScopeMatchingRule_Impl: windows_core::IUnknownImpl { fn GetScopeRule(&self) -> windows_core::Result; - fn MatchScopes(&self, pszscope1: &windows_core::PCWSTR, pszscope2: &windows_core::PCWSTR) -> windows_core::Result; + fn MatchScopes(&self, pszscope1: &windows_core::PCWSTR, pszscope2: &windows_core::PCWSTR) -> windows_core::Result; } impl IWSDScopeMatchingRule_Vtbl { pub const fn new() -> Self { @@ -1890,7 +1890,7 @@ impl IWSDScopeMatchingRule_Vtbl { } } } - unsafe extern "system" fn MatchScopes(this: *mut core::ffi::c_void, pszscope1: windows_core::PCWSTR, pszscope2: windows_core::PCWSTR, pfmatch: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MatchScopes(this: *mut core::ffi::c_void, pszscope1: windows_core::PCWSTR, pszscope2: windows_core::PCWSTR, pfmatch: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDScopeMatchingRule_Impl::MatchScopes(this, core::mem::transmute(&pszscope1), core::mem::transmute(&pszscope2)) { @@ -2362,13 +2362,13 @@ impl windows_core::RuntimeName for IWSDServiceProxyEventing {} windows_core::imp::define_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 { + pub unsafe fn IsMessageSigned(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsMessageSigned)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsMessageSignatureTrusted(&self) -> windows_core::Result { + pub unsafe fn IsMessageSignatureTrusted(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsMessageSignatureTrusted)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2387,22 +2387,22 @@ impl IWSDSignatureProperty { #[repr(C)] pub struct IWSDSignatureProperty_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsMessageSigned: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsMessageSignatureTrusted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsMessageSigned: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsMessageSignatureTrusted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetKeyInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8, *mut u32) -> windows_core::HRESULT, pub GetSignature: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8, *mut u32) -> windows_core::HRESULT, pub GetSignedInfoHash: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8, *mut u32) -> windows_core::HRESULT, } pub trait IWSDSignatureProperty_Impl: windows_core::IUnknownImpl { - fn IsMessageSigned(&self) -> windows_core::Result; - fn IsMessageSignatureTrusted(&self) -> windows_core::Result; + fn IsMessageSigned(&self) -> windows_core::Result; + fn IsMessageSignatureTrusted(&self) -> windows_core::Result; fn GetKeyInfo(&self, pbkeyinfo: *mut u8, pdwkeyinfosize: *mut u32) -> windows_core::Result<()>; fn GetSignature(&self, pbsignature: *mut u8, pdwsignaturesize: *mut u32) -> windows_core::Result<()>; fn GetSignedInfoHash(&self, pbsignedinfohash: *mut u8, pdwhashsize: *mut u32) -> windows_core::Result<()>; } impl IWSDSignatureProperty_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsMessageSigned(this: *mut core::ffi::c_void, pbsigned: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsMessageSigned(this: *mut core::ffi::c_void, pbsigned: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDSignatureProperty_Impl::IsMessageSigned(this) { @@ -2414,7 +2414,7 @@ impl IWSDSignatureProperty_Vtbl { } } } - unsafe extern "system" fn IsMessageSignatureTrusted(this: *mut core::ffi::c_void, pbsignaturetrusted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsMessageSignatureTrusted(this: *mut core::ffi::c_void, pbsignaturetrusted: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDSignatureProperty_Impl::IsMessageSignatureTrusted(this) { @@ -2501,14 +2501,14 @@ pub struct IWSDTransportAddress_Vtbl { pub GetPort: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16) -> windows_core::HRESULT, pub SetPort: unsafe extern "system" fn(*mut core::ffi::c_void, u16) -> windows_core::HRESULT, pub GetTransportAddress: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PCWSTR) -> windows_core::HRESULT, - pub GetTransportAddressEx: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut windows_core::PCWSTR) -> windows_core::HRESULT, + pub GetTransportAddressEx: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut windows_core::PCWSTR) -> windows_core::HRESULT, pub SetTransportAddress: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, } pub trait IWSDTransportAddress_Impl: IWSDAddress_Impl { fn GetPort(&self) -> windows_core::Result; fn SetPort(&self, wport: u16) -> windows_core::Result<()>; fn GetTransportAddress(&self) -> windows_core::Result; - fn GetTransportAddressEx(&self, fsafe: super::super::Foundation::BOOL) -> windows_core::Result; + fn GetTransportAddressEx(&self, fsafe: windows_core::BOOL) -> windows_core::Result; fn SetTransportAddress(&self, pszaddress: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl IWSDTransportAddress_Vtbl { @@ -2543,7 +2543,7 @@ impl IWSDTransportAddress_Vtbl { } } } - unsafe extern "system" fn GetTransportAddressEx(this: *mut core::ffi::c_void, fsafe: super::super::Foundation::BOOL, ppszaddress: *mut windows_core::PCWSTR) -> windows_core::HRESULT { + unsafe extern "system" fn GetTransportAddressEx(this: *mut core::ffi::c_void, fsafe: windows_core::BOOL, ppszaddress: *mut windows_core::PCWSTR) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSDTransportAddress_Impl::GetTransportAddressEx(this, core::mem::transmute_copy(&fsafe)) { @@ -2637,7 +2637,7 @@ pub struct IWSDUdpAddress_Vtbl { pub GetSockaddr: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Networking::WinSock::SOCKADDR_STORAGE) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Networking_WinSock"))] GetSockaddr: usize, - pub SetExclusive: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetExclusive: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetExclusive: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SetMessageType: unsafe extern "system" fn(*mut core::ffi::c_void, WSDUdpMessageType) -> windows_core::HRESULT, pub GetMessageType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WSDUdpMessageType) -> windows_core::HRESULT, @@ -2650,7 +2650,7 @@ pub struct IWSDUdpAddress_Vtbl { pub trait IWSDUdpAddress_Impl: IWSDTransportAddress_Impl { fn SetSockaddr(&self, psockaddr: *const super::super::Networking::WinSock::SOCKADDR_STORAGE) -> windows_core::Result<()>; fn GetSockaddr(&self, psockaddr: *mut super::super::Networking::WinSock::SOCKADDR_STORAGE) -> windows_core::Result<()>; - fn SetExclusive(&self, fexclusive: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetExclusive(&self, fexclusive: windows_core::BOOL) -> windows_core::Result<()>; fn GetExclusive(&self) -> windows_core::Result<()>; fn SetMessageType(&self, messagetype: WSDUdpMessageType) -> windows_core::Result<()>; fn GetMessageType(&self) -> windows_core::Result; @@ -2674,7 +2674,7 @@ impl IWSDUdpAddress_Vtbl { IWSDUdpAddress_Impl::GetSockaddr(this, core::mem::transmute_copy(&psockaddr)).into() } } - unsafe extern "system" fn SetExclusive(this: *mut core::ffi::c_void, fexclusive: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetExclusive(this: *mut core::ffi::c_void, fexclusive: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSDUdpAddress_Impl::SetExclusive(this, core::mem::transmute_copy(&fexclusive)).into() @@ -4096,7 +4096,7 @@ pub struct WSD_CONFIG_PARAM_TYPE(pub i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WSD_DATETIME { - pub isPositive: super::super::Foundation::BOOL, + pub isPositive: windows_core::BOOL, pub year: u32, pub month: u8, pub day: u8, @@ -4104,8 +4104,8 @@ pub struct WSD_DATETIME { pub minute: u8, pub second: u8, pub millisecond: u32, - pub TZIsLocal: super::super::Foundation::BOOL, - pub TZIsPositive: super::super::Foundation::BOOL, + pub TZIsLocal: windows_core::BOOL, + pub TZIsPositive: windows_core::BOOL, pub TZHour: u8, pub TZMinute: u8, } @@ -4120,7 +4120,7 @@ pub const WSD_DEFAULT_SECURE_HOSTING_ADDRESS: windows_core::PCWSTR = windows_cor #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WSD_DURATION { - pub isPositive: super::super::Foundation::BOOL, + pub isPositive: windows_core::BOOL, pub year: u32, pub month: u32, pub day: u32, diff --git a/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs b/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs index abeb2695f3..cddd6fc187 100644 --- a/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs @@ -1,26 +1,26 @@ #[inline] pub unsafe fn CloseHandle(hobject: HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn CloseHandle(hobject : HANDLE) -> BOOL); + windows_targets::link!("kernel32.dll" "system" fn CloseHandle(hobject : HANDLE) -> windows_core::BOOL); unsafe { CloseHandle(hobject).ok() } } #[inline] -pub unsafe fn CompareObjectHandles(hfirstobjecthandle: HANDLE, hsecondobjecthandle: HANDLE) -> BOOL { - windows_targets::link!("api-ms-win-core-handle-l1-1-0.dll" "system" fn CompareObjectHandles(hfirstobjecthandle : HANDLE, hsecondobjecthandle : HANDLE) -> BOOL); +pub unsafe fn CompareObjectHandles(hfirstobjecthandle: HANDLE, hsecondobjecthandle: HANDLE) -> windows_core::BOOL { + windows_targets::link!("api-ms-win-core-handle-l1-1-0.dll" "system" fn CompareObjectHandles(hfirstobjecthandle : HANDLE, hsecondobjecthandle : HANDLE) -> windows_core::BOOL); unsafe { CompareObjectHandles(hfirstobjecthandle, hsecondobjecthandle) } } #[inline] pub unsafe fn DuplicateHandle(hsourceprocesshandle: HANDLE, hsourcehandle: HANDLE, htargetprocesshandle: HANDLE, lptargethandle: *mut HANDLE, dwdesiredaccess: u32, binherithandle: bool, dwoptions: DUPLICATE_HANDLE_OPTIONS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn DuplicateHandle(hsourceprocesshandle : HANDLE, hsourcehandle : HANDLE, htargetprocesshandle : HANDLE, lptargethandle : *mut HANDLE, dwdesiredaccess : u32, binherithandle : BOOL, dwoptions : DUPLICATE_HANDLE_OPTIONS) -> BOOL); + windows_targets::link!("kernel32.dll" "system" fn DuplicateHandle(hsourceprocesshandle : HANDLE, hsourcehandle : HANDLE, htargetprocesshandle : HANDLE, lptargethandle : *mut HANDLE, dwdesiredaccess : u32, binherithandle : windows_core::BOOL, dwoptions : DUPLICATE_HANDLE_OPTIONS) -> windows_core::BOOL); unsafe { DuplicateHandle(hsourceprocesshandle, hsourcehandle, htargetprocesshandle, lptargethandle as _, dwdesiredaccess, binherithandle.into(), dwoptions).ok() } } #[inline] pub unsafe fn FreeLibrary(hlibmodule: HMODULE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FreeLibrary(hlibmodule : HMODULE) -> BOOL); + windows_targets::link!("kernel32.dll" "system" fn FreeLibrary(hlibmodule : HMODULE) -> windows_core::BOOL); unsafe { FreeLibrary(hlibmodule).ok() } } #[inline] pub unsafe fn GetHandleInformation(hobject: HANDLE, lpdwflags: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetHandleInformation(hobject : HANDLE, lpdwflags : *mut u32) -> BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetHandleInformation(hobject : HANDLE, lpdwflags : *mut u32) -> windows_core::BOOL); unsafe { GetHandleInformation(hobject, lpdwflags as _).ok() } } #[inline] @@ -46,7 +46,7 @@ pub unsafe fn RtlNtStatusToDosError(status: NTSTATUS) -> u32 { } #[inline] pub unsafe fn SetHandleInformation(hobject: HANDLE, dwmask: u32, dwflags: HANDLE_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetHandleInformation(hobject : HANDLE, dwmask : u32, dwflags : HANDLE_FLAGS) -> BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetHandleInformation(hobject : HANDLE, dwmask : u32, dwflags : HANDLE_FLAGS) -> windows_core::BOOL); unsafe { SetHandleInformation(hobject, dwmask, dwflags).ok() } } #[inline] @@ -163,10 +163,6 @@ impl Default for APP_LOCAL_DEVICE_ID { } } pub const APP_LOCAL_DEVICE_ID_SIZE: u32 = 32u32; -#[must_use] -#[repr(transparent)] -#[derive(Clone, Copy, Debug, PartialEq, Eq, Default)] -pub struct BOOL(pub i32); pub const BT_E_SPURIOUS_ACTIVATION: windows_core::HRESULT = windows_core::HRESULT(0x80080300_u32 as _); pub const CACHE_E_FIRST: i32 = -2147221136i32; pub const CACHE_E_LAST: i32 = -2147221121i32; @@ -4906,7 +4902,7 @@ pub const FACILITY_WIN32K_NTGDI: NTSTATUS_FACILITY_CODE = NTSTATUS_FACILITY_CODE pub const FACILITY_WIN32K_NTUSER: NTSTATUS_FACILITY_CODE = NTSTATUS_FACILITY_CODE(62u32); pub const FACILITY_XVS: NTSTATUS_FACILITY_CODE = NTSTATUS_FACILITY_CODE(94u32); pub const FACILTIY_MUI_ERROR_CODE: u32 = 11u32; -pub const FALSE: BOOL = BOOL(0i32); +pub const FALSE: windows_core::BOOL = windows_core::BOOL(0i32); pub type FARPROC = Option isize>; pub const FA_E_HOMEGROUP_NOT_AVAILABLE: windows_core::HRESULT = windows_core::HRESULT(0x80270222_u32 as _); pub const FA_E_MAX_PERSISTED_ITEMS_REACHED: windows_core::HRESULT = windows_core::HRESULT(0x80270220_u32 as _); @@ -10337,7 +10333,7 @@ pub const TPM_E_WRITE_LOCKED: windows_core::HRESULT = windows_core::HRESULT(0x80 pub const TPM_E_WRONGPCRVAL: windows_core::HRESULT = windows_core::HRESULT(0x80280018_u32 as _); pub const TPM_E_WRONG_ENTITYTYPE: windows_core::HRESULT = windows_core::HRESULT(0x80280025_u32 as _); pub const TPM_E_ZERO_EXHAUST_ENABLED: windows_core::HRESULT = windows_core::HRESULT(0x80290500_u32 as _); -pub const TRUE: BOOL = BOOL(1i32); +pub const TRUE: windows_core::BOOL = windows_core::BOOL(1i32); pub const TRUST_E_ACTION_UNKNOWN: windows_core::HRESULT = windows_core::HRESULT(0x800B0002_u32 as _); pub const TRUST_E_BAD_DIGEST: windows_core::HRESULT = windows_core::HRESULT(0x80096010_u32 as _); pub const TRUST_E_BASIC_CONSTRAINTS: windows_core::HRESULT = windows_core::HRESULT(0x80096019_u32 as _); diff --git a/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs b/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs index 880fe33707..29e9e3f099 100644 --- a/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs @@ -1,17 +1,17 @@ #[inline] -pub unsafe fn CheckGamingPrivilegeSilently(privilegeid: u32, scope: &windows_core::HSTRING, policy: &windows_core::HSTRING) -> windows_core::Result { - windows_targets::link!("api-ms-win-gaming-tcui-l1-1-1.dll" "system" fn CheckGamingPrivilegeSilently(privilegeid : u32, scope : * mut core::ffi::c_void, policy : * mut core::ffi::c_void, hasprivilege : *mut super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn CheckGamingPrivilegeSilently(privilegeid: u32, scope: &windows_core::HSTRING, policy: &windows_core::HSTRING) -> windows_core::Result { + windows_targets::link!("api-ms-win-gaming-tcui-l1-1-1.dll" "system" fn CheckGamingPrivilegeSilently(privilegeid : u32, scope : * mut core::ffi::c_void, policy : * mut core::ffi::c_void, hasprivilege : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); CheckGamingPrivilegeSilently(privilegeid, core::mem::transmute_copy(scope), core::mem::transmute_copy(policy), &mut result__).map(|| core::mem::transmute(result__)) } } #[inline] -pub unsafe fn CheckGamingPrivilegeSilentlyForUser(user: P0, privilegeid: u32, scope: &windows_core::HSTRING, policy: &windows_core::HSTRING) -> windows_core::Result +pub unsafe fn CheckGamingPrivilegeSilentlyForUser(user: P0, privilegeid: u32, scope: &windows_core::HSTRING, policy: &windows_core::HSTRING) -> windows_core::Result where P0: windows_core::Param, { - windows_targets::link!("api-ms-win-gaming-tcui-l1-1-2.dll" "system" fn CheckGamingPrivilegeSilentlyForUser(user : * mut core::ffi::c_void, privilegeid : u32, scope : * mut core::ffi::c_void, policy : * mut core::ffi::c_void, hasprivilege : *mut super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("api-ms-win-gaming-tcui-l1-1-2.dll" "system" fn CheckGamingPrivilegeSilentlyForUser(user : * mut core::ffi::c_void, privilegeid : u32, scope : * mut core::ffi::c_void, policy : * mut core::ffi::c_void, hasprivilege : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); CheckGamingPrivilegeSilentlyForUser(user.param().abi(), privilegeid, core::mem::transmute_copy(scope), core::mem::transmute_copy(policy), &mut result__).map(|| core::mem::transmute(result__)) @@ -47,8 +47,8 @@ pub unsafe fn GetGamingDeviceModelInformation() -> windows_core::Result windows_core::Result { - windows_targets::link!("api-ms-win-gaming-expandedresources-l1-1-0.dll" "system" fn HasExpandedResources(hasexpandedresources : *mut super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn HasExpandedResources() -> windows_core::Result { + windows_targets::link!("api-ms-win-gaming-expandedresources-l1-1-0.dll" "system" fn HasExpandedResources(hasexpandedresources : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); HasExpandedResources(&mut result__).map(|| core::mem::transmute(result__)) @@ -56,7 +56,7 @@ pub unsafe fn HasExpandedResources() -> windows_core::Result windows_core::Result<()> { - windows_targets::link!("api-ms-win-gaming-tcui-l1-1-0.dll" "system" fn ProcessPendingGameUI(waitforcompletion : super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("api-ms-win-gaming-tcui-l1-1-0.dll" "system" fn ProcessPendingGameUI(waitforcompletion : windows_core::BOOL) -> windows_core::HRESULT); unsafe { ProcessPendingGameUI(waitforcompletion.into()).ok() } } #[inline] @@ -195,8 +195,8 @@ where unsafe { ShowUserSettingsUIForUser(user.param().abi(), completionroutine, context.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -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); +pub unsafe fn TryCancelPendingGameUI() -> windows_core::BOOL { + windows_targets::link!("api-ms-win-gaming-tcui-l1-1-0.dll" "system" fn TryCancelPendingGameUI() -> windows_core::BOOL); unsafe { TryCancelPendingGameUI() } } pub const GAMESTATS_OPEN_CREATED: GAMESTATS_OPEN_RESULT = GAMESTATS_OPEN_RESULT(0i32); @@ -259,7 +259,7 @@ impl IGameExplorer { pub unsafe fn UpdateGame(&self, guidinstanceid: windows_core::GUID) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).UpdateGame)(windows_core::Interface::as_raw(self), core::mem::transmute(guidinstanceid)).ok() } } - pub unsafe fn VerifyAccess(&self, bstrgdfbinarypath: &windows_core::BSTR) -> windows_core::Result { + pub unsafe fn VerifyAccess(&self, bstrgdfbinarypath: &windows_core::BSTR) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).VerifyAccess)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrgdfbinarypath), &mut result__).map(|| result__) @@ -272,13 +272,13 @@ pub struct IGameExplorer_Vtbl { pub AddGame: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, GAME_INSTALL_SCOPE, *mut windows_core::GUID) -> windows_core::HRESULT, pub RemoveGame: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> windows_core::HRESULT, pub UpdateGame: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> windows_core::HRESULT, - pub VerifyAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::Foundation::BOOL) -> windows_core::HRESULT, + pub VerifyAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IGameExplorer_Impl: windows_core::IUnknownImpl { fn AddGame(&self, bstrgdfbinarypath: &windows_core::BSTR, bstrgameinstalldirectory: &windows_core::BSTR, installscope: GAME_INSTALL_SCOPE, pguidinstanceid: *mut windows_core::GUID) -> windows_core::Result<()>; fn RemoveGame(&self, guidinstanceid: &windows_core::GUID) -> windows_core::Result<()>; fn UpdateGame(&self, guidinstanceid: &windows_core::GUID) -> windows_core::Result<()>; - fn VerifyAccess(&self, bstrgdfbinarypath: &windows_core::BSTR) -> windows_core::Result; + fn VerifyAccess(&self, bstrgdfbinarypath: &windows_core::BSTR) -> windows_core::Result; } impl IGameExplorer_Vtbl { pub const fn new() -> Self { @@ -300,7 +300,7 @@ impl IGameExplorer_Vtbl { IGameExplorer_Impl::UpdateGame(this, core::mem::transmute(&guidinstanceid)).into() } } - unsafe extern "system" fn VerifyAccess(this: *mut core::ffi::c_void, bstrgdfbinarypath: *mut core::ffi::c_void, pfhasaccess: *mut super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn VerifyAccess(this: *mut core::ffi::c_void, bstrgdfbinarypath: *mut core::ffi::c_void, pfhasaccess: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameExplorer_Impl::VerifyAccess(this, core::mem::transmute(&bstrgdfbinarypath)) { @@ -341,7 +341,7 @@ impl IGameExplorer2 { { unsafe { (windows_core::Interface::vtable(self).UninstallGame)(windows_core::Interface::as_raw(self), binarygdfpath.param().abi()).ok() } } - pub unsafe fn CheckAccess(&self, binarygdfpath: P0) -> windows_core::Result + pub unsafe fn CheckAccess(&self, binarygdfpath: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -356,12 +356,12 @@ pub struct IGameExplorer2_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub InstallGame: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, GAME_INSTALL_SCOPE) -> windows_core::HRESULT, pub UninstallGame: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, - pub CheckAccess: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::Foundation::BOOL) -> windows_core::HRESULT, + pub CheckAccess: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IGameExplorer2_Impl: windows_core::IUnknownImpl { fn InstallGame(&self, binarygdfpath: &windows_core::PCWSTR, installdirectory: &windows_core::PCWSTR, installscope: GAME_INSTALL_SCOPE) -> windows_core::Result<()>; fn UninstallGame(&self, binarygdfpath: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn CheckAccess(&self, binarygdfpath: &windows_core::PCWSTR) -> windows_core::Result; + fn CheckAccess(&self, binarygdfpath: &windows_core::PCWSTR) -> windows_core::Result; } impl IGameExplorer2_Vtbl { pub const fn new() -> Self { @@ -377,7 +377,7 @@ impl IGameExplorer2_Vtbl { IGameExplorer2_Impl::UninstallGame(this, core::mem::transmute(&binarygdfpath)).into() } } - unsafe extern "system" fn CheckAccess(this: *mut core::ffi::c_void, binarygdfpath: windows_core::PCWSTR, phasaccess: *mut super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CheckAccess(this: *mut core::ffi::c_void, binarygdfpath: windows_core::PCWSTR, phasaccess: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGameExplorer2_Impl::CheckAccess(this, core::mem::transmute(&binarygdfpath)) { @@ -481,7 +481,7 @@ pub struct IGameStatistics_Vtbl { pub GetCategoryTitle: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetStatistic: unsafe extern "system" fn(*mut core::ffi::c_void, u16, u16, *mut windows_core::PWSTR, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub SetStatistic: unsafe extern "system" fn(*mut core::ffi::c_void, u16, u16, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, - pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, super::Foundation::BOOL) -> windows_core::HRESULT, + pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetLastPlayedCategory: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetLastPlayedCategory: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } @@ -495,7 +495,7 @@ pub trait IGameStatistics_Impl: windows_core::IUnknownImpl { fn GetCategoryTitle(&self, categoryindex: u16) -> windows_core::Result; fn GetStatistic(&self, categoryindex: u16, statindex: u16, pname: *mut windows_core::PWSTR, pvalue: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn SetStatistic(&self, categoryindex: u16, statindex: u16, name: &windows_core::PCWSTR, value: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn Save(&self, trackchanges: super::Foundation::BOOL) -> windows_core::Result<()>; + fn Save(&self, trackchanges: windows_core::BOOL) -> windows_core::Result<()>; fn SetLastPlayedCategory(&self, categoryindex: u32) -> windows_core::Result<()>; fn GetLastPlayedCategory(&self) -> windows_core::Result; } @@ -591,7 +591,7 @@ impl IGameStatistics_Vtbl { IGameStatistics_Impl::SetStatistic(this, core::mem::transmute_copy(&categoryindex), core::mem::transmute_copy(&statindex), core::mem::transmute(&name), core::mem::transmute(&value)).into() } } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, trackchanges: super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, trackchanges: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGameStatistics_Impl::Save(this, core::mem::transmute_copy(&trackchanges)).into() @@ -743,7 +743,7 @@ pub struct IXblIdpAuthManager_Vtbl { pub SetAppViewInitialized: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, pub GetEnvironment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetSandbox: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub GetTokenAndSignatureWithTokenResult: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, *const u8, u32, super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetTokenAndSignatureWithTokenResult: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, *const u8, u32, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IXblIdpAuthManager_Impl: windows_core::IUnknownImpl { fn SetGamerAccount(&self, msaaccountid: &windows_core::PCWSTR, xuid: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -751,7 +751,7 @@ pub trait IXblIdpAuthManager_Impl: windows_core::IUnknownImpl { fn SetAppViewInitialized(&self, appsid: &windows_core::PCWSTR, msaaccountid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetEnvironment(&self) -> windows_core::Result; fn GetSandbox(&self) -> windows_core::Result; - fn GetTokenAndSignatureWithTokenResult(&self, 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) -> windows_core::Result; + fn GetTokenAndSignatureWithTokenResult(&self, 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: windows_core::BOOL) -> windows_core::Result; } impl IXblIdpAuthManager_Vtbl { pub const fn new() -> Self { @@ -797,7 +797,7 @@ impl IXblIdpAuthManager_Vtbl { } } } - unsafe extern "system" fn GetTokenAndSignatureWithTokenResult(this: *mut core::ffi::c_void, msaaccountid: windows_core::PCWSTR, appsid: windows_core::PCWSTR, msatarget: windows_core::PCWSTR, msapolicy: windows_core::PCWSTR, httpmethod: windows_core::PCWSTR, uri: windows_core::PCWSTR, headers: windows_core::PCWSTR, body: *const u8, bodysize: u32, forcerefresh: super::Foundation::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetTokenAndSignatureWithTokenResult(this: *mut core::ffi::c_void, msaaccountid: windows_core::PCWSTR, appsid: windows_core::PCWSTR, msatarget: windows_core::PCWSTR, msapolicy: windows_core::PCWSTR, httpmethod: windows_core::PCWSTR, uri: windows_core::PCWSTR, headers: windows_core::PCWSTR, body: *const u8, bodysize: u32, forcerefresh: windows_core::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthManager_Impl::GetTokenAndSignatureWithTokenResult(this, core::mem::transmute(&msaaccountid), core::mem::transmute(&appsid), core::mem::transmute(&msatarget), core::mem::transmute(&msapolicy), core::mem::transmute(&httpmethod), core::mem::transmute(&uri), core::mem::transmute(&headers), core::mem::transmute_copy(&body), core::mem::transmute_copy(&bodysize), core::mem::transmute_copy(&forcerefresh)) { @@ -845,14 +845,14 @@ impl IXblIdpAuthManager2 { #[repr(C)] pub struct IXblIdpAuthManager2_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetUserlessTokenAndSignatureWithTokenResult: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, *const u8, u32, super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetUserlessTokenAndSignatureWithTokenResult: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, *const u8, u32, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IXblIdpAuthManager2_Impl: windows_core::IUnknownImpl { - fn GetUserlessTokenAndSignatureWithTokenResult(&self, appsid: &windows_core::PCWSTR, msatarget: &windows_core::PCWSTR, msapolicy: &windows_core::PCWSTR, httpmethod: &windows_core::PCWSTR, uri: &windows_core::PCWSTR, headers: &windows_core::PCWSTR, body: *const u8, bodysize: u32, forcerefresh: super::Foundation::BOOL) -> windows_core::Result; + fn GetUserlessTokenAndSignatureWithTokenResult(&self, appsid: &windows_core::PCWSTR, msatarget: &windows_core::PCWSTR, msapolicy: &windows_core::PCWSTR, httpmethod: &windows_core::PCWSTR, uri: &windows_core::PCWSTR, headers: &windows_core::PCWSTR, body: *const u8, bodysize: u32, forcerefresh: windows_core::BOOL) -> windows_core::Result; } impl IXblIdpAuthManager2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetUserlessTokenAndSignatureWithTokenResult(this: *mut core::ffi::c_void, appsid: windows_core::PCWSTR, msatarget: windows_core::PCWSTR, msapolicy: windows_core::PCWSTR, httpmethod: windows_core::PCWSTR, uri: windows_core::PCWSTR, headers: windows_core::PCWSTR, body: *const u8, bodysize: u32, forcerefresh: super::Foundation::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetUserlessTokenAndSignatureWithTokenResult(this: *mut core::ffi::c_void, appsid: windows_core::PCWSTR, msatarget: windows_core::PCWSTR, msapolicy: windows_core::PCWSTR, httpmethod: windows_core::PCWSTR, uri: windows_core::PCWSTR, headers: windows_core::PCWSTR, body: *const u8, bodysize: u32, forcerefresh: windows_core::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXblIdpAuthManager2_Impl::GetUserlessTokenAndSignatureWithTokenResult(this, core::mem::transmute(&appsid), core::mem::transmute(&msatarget), core::mem::transmute(&msapolicy), core::mem::transmute(&httpmethod), core::mem::transmute(&uri), core::mem::transmute(&headers), core::mem::transmute_copy(&body), core::mem::transmute_copy(&bodysize), core::mem::transmute_copy(&forcerefresh)) { diff --git a/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs b/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs index 99ba2712f4..0d5414298c 100644 --- a/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs @@ -1,6 +1,6 @@ #[inline] -pub unsafe fn AdjustCalendarDate(lpcaldatetime: *mut CALDATETIME, calunit: CALDATETIME_DATEUNIT, amount: i32) -> super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn AdjustCalendarDate(lpcaldatetime : *mut CALDATETIME, calunit : CALDATETIME_DATEUNIT, amount : i32) -> super::Foundation:: BOOL); +pub unsafe fn AdjustCalendarDate(lpcaldatetime: *mut CALDATETIME, calunit: CALDATETIME_DATEUNIT, amount: i32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn AdjustCalendarDate(lpcaldatetime : *mut CALDATETIME, calunit : CALDATETIME_DATEUNIT, amount : i32) -> windows_core::BOOL); unsafe { AdjustCalendarDate(lpcaldatetime as _, calunit, amount) } } #[inline] @@ -18,7 +18,7 @@ where } #[inline] pub unsafe fn CompareStringOrdinal(lpstring1: &[u16], lpstring2: &[u16], bignorecase: bool) -> COMPARESTRING_RESULT { - windows_targets::link!("kernel32.dll" "system" fn CompareStringOrdinal(lpstring1 : windows_core::PCWSTR, cchcount1 : i32, lpstring2 : windows_core::PCWSTR, cchcount2 : i32, bignorecase : super::Foundation:: BOOL) -> COMPARESTRING_RESULT); + windows_targets::link!("kernel32.dll" "system" fn CompareStringOrdinal(lpstring1 : windows_core::PCWSTR, cchcount1 : i32, lpstring2 : windows_core::PCWSTR, cchcount2 : i32, bignorecase : windows_core::BOOL) -> COMPARESTRING_RESULT); unsafe { CompareStringOrdinal(core::mem::transmute(lpstring1.as_ptr()), lpstring1.len().try_into().unwrap(), core::mem::transmute(lpstring2.as_ptr()), lpstring2.len().try_into().unwrap(), bignorecase.into()) } } #[inline] @@ -27,8 +27,8 @@ pub unsafe fn CompareStringW(locale: u32, dwcmpflags: u32, lpstring1: &[u16], lp unsafe { CompareStringW(locale, dwcmpflags, core::mem::transmute(lpstring1.as_ptr()), lpstring1.len().try_into().unwrap(), core::mem::transmute(lpstring2.as_ptr()), lpstring2.len().try_into().unwrap()) } } #[inline] -pub unsafe fn ConvertCalDateTimeToSystemTime(lpcaldatetime: *const CALDATETIME, lpsystime: *mut super::Foundation::SYSTEMTIME) -> super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn ConvertCalDateTimeToSystemTime(lpcaldatetime : *const CALDATETIME, lpsystime : *mut super::Foundation:: SYSTEMTIME) -> super::Foundation:: BOOL); +pub unsafe fn ConvertCalDateTimeToSystemTime(lpcaldatetime: *const CALDATETIME, lpsystime: *mut super::Foundation::SYSTEMTIME) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn ConvertCalDateTimeToSystemTime(lpcaldatetime : *const CALDATETIME, lpsystime : *mut super::Foundation:: SYSTEMTIME) -> windows_core::BOOL); unsafe { ConvertCalDateTimeToSystemTime(lpcaldatetime, lpsystime as _) } } #[inline] @@ -37,18 +37,18 @@ pub unsafe fn ConvertDefaultLocale(locale: u32) -> u32 { unsafe { ConvertDefaultLocale(locale) } } #[inline] -pub unsafe fn ConvertSystemTimeToCalDateTime(lpsystime: *const super::Foundation::SYSTEMTIME, calid: u32, lpcaldatetime: *mut CALDATETIME) -> super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn ConvertSystemTimeToCalDateTime(lpsystime : *const super::Foundation:: SYSTEMTIME, calid : u32, lpcaldatetime : *mut CALDATETIME) -> super::Foundation:: BOOL); +pub unsafe fn ConvertSystemTimeToCalDateTime(lpsystime: *const super::Foundation::SYSTEMTIME, calid: u32, lpcaldatetime: *mut CALDATETIME) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn ConvertSystemTimeToCalDateTime(lpsystime : *const super::Foundation:: SYSTEMTIME, calid : u32, lpcaldatetime : *mut CALDATETIME) -> windows_core::BOOL); unsafe { ConvertSystemTimeToCalDateTime(lpsystime, calid, lpcaldatetime as _) } } #[inline] pub unsafe fn EnumCalendarInfoA(lpcalinfoenumproc: CALINFO_ENUMPROCA, locale: u32, calendar: u32, caltype: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumCalendarInfoA(lpcalinfoenumproc : CALINFO_ENUMPROCA, locale : u32, calendar : u32, caltype : u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumCalendarInfoA(lpcalinfoenumproc : CALINFO_ENUMPROCA, locale : u32, calendar : u32, caltype : u32) -> windows_core::BOOL); unsafe { EnumCalendarInfoA(lpcalinfoenumproc, locale, calendar, caltype).ok() } } #[inline] pub unsafe fn EnumCalendarInfoExA(lpcalinfoenumprocex: CALINFO_ENUMPROCEXA, locale: u32, calendar: u32, caltype: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumCalendarInfoExA(lpcalinfoenumprocex : CALINFO_ENUMPROCEXA, locale : u32, calendar : u32, caltype : u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumCalendarInfoExA(lpcalinfoenumprocex : CALINFO_ENUMPROCEXA, locale : u32, calendar : u32, caltype : u32) -> windows_core::BOOL); unsafe { EnumCalendarInfoExA(lpcalinfoenumprocex, locale, calendar, caltype).ok() } } #[inline] @@ -57,27 +57,27 @@ where P1: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn EnumCalendarInfoExEx(pcalinfoenumprocexex : CALINFO_ENUMPROCEXEX, lplocalename : windows_core::PCWSTR, calendar : u32, lpreserved : windows_core::PCWSTR, caltype : u32, lparam : super::Foundation:: LPARAM) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumCalendarInfoExEx(pcalinfoenumprocexex : CALINFO_ENUMPROCEXEX, lplocalename : windows_core::PCWSTR, calendar : u32, lpreserved : windows_core::PCWSTR, caltype : u32, lparam : super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { EnumCalendarInfoExEx(pcalinfoenumprocexex, lplocalename.param().abi(), calendar, lpreserved.param().abi(), caltype, lparam).ok() } } #[inline] pub unsafe fn EnumCalendarInfoExW(lpcalinfoenumprocex: CALINFO_ENUMPROCEXW, locale: u32, calendar: u32, caltype: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumCalendarInfoExW(lpcalinfoenumprocex : CALINFO_ENUMPROCEXW, locale : u32, calendar : u32, caltype : u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumCalendarInfoExW(lpcalinfoenumprocex : CALINFO_ENUMPROCEXW, locale : u32, calendar : u32, caltype : u32) -> windows_core::BOOL); unsafe { EnumCalendarInfoExW(lpcalinfoenumprocex, locale, calendar, caltype).ok() } } #[inline] pub unsafe fn EnumCalendarInfoW(lpcalinfoenumproc: CALINFO_ENUMPROCW, locale: u32, calendar: u32, caltype: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumCalendarInfoW(lpcalinfoenumproc : CALINFO_ENUMPROCW, locale : u32, calendar : u32, caltype : u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumCalendarInfoW(lpcalinfoenumproc : CALINFO_ENUMPROCW, locale : u32, calendar : u32, caltype : u32) -> windows_core::BOOL); unsafe { EnumCalendarInfoW(lpcalinfoenumproc, locale, calendar, caltype).ok() } } #[inline] pub unsafe fn EnumDateFormatsA(lpdatefmtenumproc: DATEFMT_ENUMPROCA, locale: u32, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumDateFormatsA(lpdatefmtenumproc : DATEFMT_ENUMPROCA, locale : u32, dwflags : u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumDateFormatsA(lpdatefmtenumproc : DATEFMT_ENUMPROCA, locale : u32, dwflags : u32) -> windows_core::BOOL); unsafe { EnumDateFormatsA(lpdatefmtenumproc, locale, dwflags).ok() } } #[inline] pub unsafe fn EnumDateFormatsExA(lpdatefmtenumprocex: DATEFMT_ENUMPROCEXA, locale: u32, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumDateFormatsExA(lpdatefmtenumprocex : DATEFMT_ENUMPROCEXA, locale : u32, dwflags : u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumDateFormatsExA(lpdatefmtenumprocex : DATEFMT_ENUMPROCEXA, locale : u32, dwflags : u32) -> windows_core::BOOL); unsafe { EnumDateFormatsExA(lpdatefmtenumprocex, locale, dwflags).ok() } } #[inline] @@ -85,77 +85,77 @@ pub unsafe fn EnumDateFormatsExEx(lpdatefmtenumprocexex: DATEFMT_ENUMPROCEXE where P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn EnumDateFormatsExEx(lpdatefmtenumprocexex : DATEFMT_ENUMPROCEXEX, lplocalename : windows_core::PCWSTR, dwflags : ENUM_DATE_FORMATS_FLAGS, lparam : super::Foundation:: LPARAM) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumDateFormatsExEx(lpdatefmtenumprocexex : DATEFMT_ENUMPROCEXEX, lplocalename : windows_core::PCWSTR, dwflags : ENUM_DATE_FORMATS_FLAGS, lparam : super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { EnumDateFormatsExEx(lpdatefmtenumprocexex, lplocalename.param().abi(), dwflags, lparam).ok() } } #[inline] pub unsafe fn EnumDateFormatsExW(lpdatefmtenumprocex: DATEFMT_ENUMPROCEXW, locale: u32, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumDateFormatsExW(lpdatefmtenumprocex : DATEFMT_ENUMPROCEXW, locale : u32, dwflags : u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumDateFormatsExW(lpdatefmtenumprocex : DATEFMT_ENUMPROCEXW, locale : u32, dwflags : u32) -> windows_core::BOOL); unsafe { EnumDateFormatsExW(lpdatefmtenumprocex, locale, dwflags).ok() } } #[inline] pub unsafe fn EnumDateFormatsW(lpdatefmtenumproc: DATEFMT_ENUMPROCW, locale: u32, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumDateFormatsW(lpdatefmtenumproc : DATEFMT_ENUMPROCW, locale : u32, dwflags : u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumDateFormatsW(lpdatefmtenumproc : DATEFMT_ENUMPROCW, locale : u32, dwflags : u32) -> windows_core::BOOL); unsafe { EnumDateFormatsW(lpdatefmtenumproc, locale, dwflags).ok() } } #[inline] pub unsafe fn EnumLanguageGroupLocalesA(lplanggrouplocaleenumproc: LANGGROUPLOCALE_ENUMPROCA, languagegroup: u32, dwflags: u32, lparam: isize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumLanguageGroupLocalesA(lplanggrouplocaleenumproc : LANGGROUPLOCALE_ENUMPROCA, languagegroup : u32, dwflags : u32, lparam : isize) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumLanguageGroupLocalesA(lplanggrouplocaleenumproc : LANGGROUPLOCALE_ENUMPROCA, languagegroup : u32, dwflags : u32, lparam : isize) -> windows_core::BOOL); unsafe { EnumLanguageGroupLocalesA(lplanggrouplocaleenumproc, languagegroup, dwflags, lparam).ok() } } #[inline] pub unsafe fn EnumLanguageGroupLocalesW(lplanggrouplocaleenumproc: LANGGROUPLOCALE_ENUMPROCW, languagegroup: u32, dwflags: u32, lparam: isize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumLanguageGroupLocalesW(lplanggrouplocaleenumproc : LANGGROUPLOCALE_ENUMPROCW, languagegroup : u32, dwflags : u32, lparam : isize) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumLanguageGroupLocalesW(lplanggrouplocaleenumproc : LANGGROUPLOCALE_ENUMPROCW, languagegroup : u32, dwflags : u32, lparam : isize) -> windows_core::BOOL); unsafe { EnumLanguageGroupLocalesW(lplanggrouplocaleenumproc, languagegroup, dwflags, lparam).ok() } } #[inline] pub unsafe fn EnumSystemCodePagesA(lpcodepageenumproc: CODEPAGE_ENUMPROCA, dwflags: ENUM_SYSTEM_CODE_PAGES_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumSystemCodePagesA(lpcodepageenumproc : CODEPAGE_ENUMPROCA, dwflags : ENUM_SYSTEM_CODE_PAGES_FLAGS) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumSystemCodePagesA(lpcodepageenumproc : CODEPAGE_ENUMPROCA, dwflags : ENUM_SYSTEM_CODE_PAGES_FLAGS) -> windows_core::BOOL); unsafe { EnumSystemCodePagesA(lpcodepageenumproc, dwflags).ok() } } #[inline] pub unsafe fn EnumSystemCodePagesW(lpcodepageenumproc: CODEPAGE_ENUMPROCW, dwflags: ENUM_SYSTEM_CODE_PAGES_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumSystemCodePagesW(lpcodepageenumproc : CODEPAGE_ENUMPROCW, dwflags : ENUM_SYSTEM_CODE_PAGES_FLAGS) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumSystemCodePagesW(lpcodepageenumproc : CODEPAGE_ENUMPROCW, dwflags : ENUM_SYSTEM_CODE_PAGES_FLAGS) -> windows_core::BOOL); unsafe { EnumSystemCodePagesW(lpcodepageenumproc, dwflags).ok() } } #[inline] pub unsafe fn EnumSystemGeoID(geoclass: u32, parentgeoid: i32, lpgeoenumproc: GEO_ENUMPROC) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumSystemGeoID(geoclass : u32, parentgeoid : i32, lpgeoenumproc : GEO_ENUMPROC) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumSystemGeoID(geoclass : u32, parentgeoid : i32, lpgeoenumproc : GEO_ENUMPROC) -> windows_core::BOOL); unsafe { EnumSystemGeoID(geoclass, parentgeoid, lpgeoenumproc).ok() } } #[inline] pub unsafe fn EnumSystemGeoNames(geoclass: u32, geoenumproc: GEO_ENUMNAMEPROC, data: super::Foundation::LPARAM) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumSystemGeoNames(geoclass : u32, geoenumproc : GEO_ENUMNAMEPROC, data : super::Foundation:: LPARAM) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumSystemGeoNames(geoclass : u32, geoenumproc : GEO_ENUMNAMEPROC, data : super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { EnumSystemGeoNames(geoclass, geoenumproc, data).ok() } } #[inline] pub unsafe fn EnumSystemLanguageGroupsA(lplanguagegroupenumproc: LANGUAGEGROUP_ENUMPROCA, dwflags: ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS, lparam: isize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumSystemLanguageGroupsA(lplanguagegroupenumproc : LANGUAGEGROUP_ENUMPROCA, dwflags : ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS, lparam : isize) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumSystemLanguageGroupsA(lplanguagegroupenumproc : LANGUAGEGROUP_ENUMPROCA, dwflags : ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS, lparam : isize) -> windows_core::BOOL); unsafe { EnumSystemLanguageGroupsA(lplanguagegroupenumproc, dwflags, lparam).ok() } } #[inline] pub unsafe fn EnumSystemLanguageGroupsW(lplanguagegroupenumproc: LANGUAGEGROUP_ENUMPROCW, dwflags: ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS, lparam: isize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumSystemLanguageGroupsW(lplanguagegroupenumproc : LANGUAGEGROUP_ENUMPROCW, dwflags : ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS, lparam : isize) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumSystemLanguageGroupsW(lplanguagegroupenumproc : LANGUAGEGROUP_ENUMPROCW, dwflags : ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS, lparam : isize) -> windows_core::BOOL); unsafe { EnumSystemLanguageGroupsW(lplanguagegroupenumproc, dwflags, lparam).ok() } } #[inline] pub unsafe fn EnumSystemLocalesA(lplocaleenumproc: LOCALE_ENUMPROCA, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumSystemLocalesA(lplocaleenumproc : LOCALE_ENUMPROCA, dwflags : u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumSystemLocalesA(lplocaleenumproc : LOCALE_ENUMPROCA, dwflags : u32) -> windows_core::BOOL); unsafe { EnumSystemLocalesA(lplocaleenumproc, dwflags).ok() } } #[inline] pub unsafe fn EnumSystemLocalesEx(lplocaleenumprocex: LOCALE_ENUMPROCEX, dwflags: u32, lparam: super::Foundation::LPARAM, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumSystemLocalesEx(lplocaleenumprocex : LOCALE_ENUMPROCEX, dwflags : u32, lparam : super::Foundation:: LPARAM, lpreserved : *const core::ffi::c_void) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumSystemLocalesEx(lplocaleenumprocex : LOCALE_ENUMPROCEX, dwflags : u32, lparam : super::Foundation:: LPARAM, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { EnumSystemLocalesEx(lplocaleenumprocex, dwflags, lparam, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn EnumSystemLocalesW(lplocaleenumproc: LOCALE_ENUMPROCW, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumSystemLocalesW(lplocaleenumproc : LOCALE_ENUMPROCW, dwflags : u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumSystemLocalesW(lplocaleenumproc : LOCALE_ENUMPROCW, dwflags : u32) -> windows_core::BOOL); unsafe { EnumSystemLocalesW(lplocaleenumproc, dwflags).ok() } } #[inline] pub unsafe fn EnumTimeFormatsA(lptimefmtenumproc: TIMEFMT_ENUMPROCA, locale: u32, dwflags: TIME_FORMAT_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumTimeFormatsA(lptimefmtenumproc : TIMEFMT_ENUMPROCA, locale : u32, dwflags : TIME_FORMAT_FLAGS) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumTimeFormatsA(lptimefmtenumproc : TIMEFMT_ENUMPROCA, locale : u32, dwflags : TIME_FORMAT_FLAGS) -> windows_core::BOOL); unsafe { EnumTimeFormatsA(lptimefmtenumproc, locale, dwflags).ok() } } #[inline] @@ -163,22 +163,22 @@ pub unsafe fn EnumTimeFormatsEx(lptimefmtenumprocex: TIMEFMT_ENUMPROCEX, lpl where P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn EnumTimeFormatsEx(lptimefmtenumprocex : TIMEFMT_ENUMPROCEX, lplocalename : windows_core::PCWSTR, dwflags : u32, lparam : super::Foundation:: LPARAM) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumTimeFormatsEx(lptimefmtenumprocex : TIMEFMT_ENUMPROCEX, lplocalename : windows_core::PCWSTR, dwflags : u32, lparam : super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { EnumTimeFormatsEx(lptimefmtenumprocex, lplocalename.param().abi(), dwflags, lparam).ok() } } #[inline] pub unsafe fn EnumTimeFormatsW(lptimefmtenumproc: TIMEFMT_ENUMPROCW, locale: u32, dwflags: TIME_FORMAT_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumTimeFormatsW(lptimefmtenumproc : TIMEFMT_ENUMPROCW, locale : u32, dwflags : TIME_FORMAT_FLAGS) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumTimeFormatsW(lptimefmtenumproc : TIMEFMT_ENUMPROCW, locale : u32, dwflags : TIME_FORMAT_FLAGS) -> windows_core::BOOL); unsafe { EnumTimeFormatsW(lptimefmtenumproc, locale, dwflags).ok() } } #[inline] pub unsafe fn EnumUILanguagesA(lpuilanguageenumproc: UILANGUAGE_ENUMPROCA, dwflags: u32, lparam: isize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumUILanguagesA(lpuilanguageenumproc : UILANGUAGE_ENUMPROCA, dwflags : u32, lparam : isize) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumUILanguagesA(lpuilanguageenumproc : UILANGUAGE_ENUMPROCA, dwflags : u32, lparam : isize) -> windows_core::BOOL); unsafe { EnumUILanguagesA(lpuilanguageenumproc, dwflags, lparam).ok() } } #[inline] pub unsafe fn EnumUILanguagesW(lpuilanguageenumproc: UILANGUAGE_ENUMPROCW, dwflags: u32, lparam: isize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumUILanguagesW(lpuilanguageenumproc : UILANGUAGE_ENUMPROCW, dwflags : u32, lparam : isize) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumUILanguagesW(lpuilanguageenumproc : UILANGUAGE_ENUMPROCW, dwflags : u32, lparam : isize) -> windows_core::BOOL); unsafe { EnumUILanguagesW(lpuilanguageenumproc, dwflags, lparam).ok() } } #[inline] @@ -196,7 +196,7 @@ where } #[inline] pub unsafe fn FindStringOrdinal(dwfindstringordinalflags: u32, lpstringsource: &[u16], lpstringvalue: &[u16], bignorecase: bool) -> i32 { - windows_targets::link!("kernel32.dll" "system" fn FindStringOrdinal(dwfindstringordinalflags : u32, lpstringsource : windows_core::PCWSTR, cchsource : i32, lpstringvalue : windows_core::PCWSTR, cchvalue : i32, bignorecase : super::Foundation:: BOOL) -> i32); + windows_targets::link!("kernel32.dll" "system" fn FindStringOrdinal(dwfindstringordinalflags : u32, lpstringsource : windows_core::PCWSTR, cchsource : i32, lpstringvalue : windows_core::PCWSTR, cchvalue : i32, bignorecase : windows_core::BOOL) -> i32); unsafe { FindStringOrdinal(dwfindstringordinalflags, core::mem::transmute(lpstringsource.as_ptr()), lpstringsource.len().try_into().unwrap(), core::mem::transmute(lpstringvalue.as_ptr()), lpstringvalue.len().try_into().unwrap(), bignorecase.into()) } } #[inline] @@ -216,26 +216,26 @@ pub unsafe fn GetACP() -> u32 { } #[inline] pub unsafe fn GetCPInfo(codepage: u32, lpcpinfo: *mut CPINFO) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetCPInfo(codepage : u32, lpcpinfo : *mut CPINFO) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetCPInfo(codepage : u32, lpcpinfo : *mut CPINFO) -> windows_core::BOOL); unsafe { GetCPInfo(codepage, lpcpinfo as _).ok() } } #[inline] pub unsafe fn GetCPInfoExA(codepage: u32, dwflags: u32, lpcpinfoex: *mut CPINFOEXA) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetCPInfoExA(codepage : u32, dwflags : u32, lpcpinfoex : *mut CPINFOEXA) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetCPInfoExA(codepage : u32, dwflags : u32, lpcpinfoex : *mut CPINFOEXA) -> windows_core::BOOL); unsafe { GetCPInfoExA(codepage, dwflags, lpcpinfoex as _).ok() } } #[inline] pub unsafe fn GetCPInfoExW(codepage: u32, dwflags: u32, lpcpinfoex: *mut CPINFOEXW) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetCPInfoExW(codepage : u32, dwflags : u32, lpcpinfoex : *mut CPINFOEXW) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetCPInfoExW(codepage : u32, dwflags : u32, lpcpinfoex : *mut CPINFOEXW) -> windows_core::BOOL); unsafe { GetCPInfoExW(codepage, dwflags, lpcpinfoex as _).ok() } } #[inline] -pub unsafe fn GetCalendarDateFormatEx(lpszlocale: P0, dwflags: u32, lpcaldatetime: *const CALDATETIME, lpformat: P3, lpdatestr: windows_core::PWSTR, cchdate: i32) -> super::Foundation::BOOL +pub unsafe fn GetCalendarDateFormatEx(lpszlocale: P0, dwflags: u32, lpcaldatetime: *const CALDATETIME, lpformat: P3, lpdatestr: windows_core::PWSTR, cchdate: i32) -> windows_core::BOOL where P0: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetCalendarDateFormatEx(lpszlocale : windows_core::PCWSTR, dwflags : u32, lpcaldatetime : *const CALDATETIME, lpformat : windows_core::PCWSTR, lpdatestr : windows_core::PWSTR, cchdate : i32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetCalendarDateFormatEx(lpszlocale : windows_core::PCWSTR, dwflags : u32, lpcaldatetime : *const CALDATETIME, lpformat : windows_core::PCWSTR, lpdatestr : windows_core::PWSTR, cchdate : i32) -> windows_core::BOOL); unsafe { GetCalendarDateFormatEx(lpszlocale.param().abi(), dwflags, lpcaldatetime, lpformat.param().abi(), core::mem::transmute(lpdatestr), cchdate) } } #[inline] @@ -258,8 +258,8 @@ pub unsafe fn GetCalendarInfoW(locale: u32, calendar: u32, caltype: u32, lpcalda unsafe { GetCalendarInfoW(locale, calendar, caltype, core::mem::transmute(lpcaldata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpcaldata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpvalue.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn GetCalendarSupportedDateRange(calendar: u32, lpcalmindatetime: *mut CALDATETIME, lpcalmaxdatetime: *mut CALDATETIME) -> super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetCalendarSupportedDateRange(calendar : u32, lpcalmindatetime : *mut CALDATETIME, lpcalmaxdatetime : *mut CALDATETIME) -> super::Foundation:: BOOL); +pub unsafe fn GetCalendarSupportedDateRange(calendar: u32, lpcalmindatetime: *mut CALDATETIME, lpcalmaxdatetime: *mut CALDATETIME) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetCalendarSupportedDateRange(calendar : u32, lpcalmindatetime : *mut CALDATETIME, lpcalmaxdatetime : *mut CALDATETIME) -> windows_core::BOOL); unsafe { GetCalendarSupportedDateRange(calendar, lpcalmindatetime as _, lpcalmaxdatetime as _) } } #[inline] @@ -347,7 +347,7 @@ pub unsafe fn GetFileMUIInfo(dwflags: u32, pcwszfilepath: P1, pfilemuiinfo: where P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetFileMUIInfo(dwflags : u32, pcwszfilepath : windows_core::PCWSTR, pfilemuiinfo : *mut FILEMUIINFO, pcbfilemuiinfo : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetFileMUIInfo(dwflags : u32, pcwszfilepath : windows_core::PCWSTR, pfilemuiinfo : *mut FILEMUIINFO, pcbfilemuiinfo : *mut u32) -> windows_core::BOOL); unsafe { GetFileMUIInfo(dwflags, pcwszfilepath.param().abi(), pfilemuiinfo.unwrap_or(core::mem::zeroed()) as _, pcbfilemuiinfo as _).ok() } } #[inline] @@ -355,7 +355,7 @@ pub unsafe fn GetFileMUIPath(dwflags: u32, pcwszfilepath: P1, pwszlanguage: where P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetFileMUIPath(dwflags : u32, pcwszfilepath : windows_core::PCWSTR, pwszlanguage : windows_core::PWSTR, pcchlanguage : *mut u32, pwszfilemuipath : windows_core::PWSTR, pcchfilemuipath : *mut u32, pululenumerator : *mut u64) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetFileMUIPath(dwflags : u32, pcwszfilepath : windows_core::PCWSTR, pwszlanguage : windows_core::PWSTR, pcchlanguage : *mut u32, pwszfilemuipath : windows_core::PWSTR, pcchfilemuipath : *mut u32, pululenumerator : *mut u64) -> windows_core::BOOL); unsafe { GetFileMUIPath(dwflags, pcwszfilepath.param().abi(), pwszlanguage.unwrap_or(core::mem::zeroed()) as _, pcchlanguage as _, pwszfilemuipath.unwrap_or(core::mem::zeroed()) as _, pcchfilemuipath as _, pululenumerator as _).ok() } } #[inline] @@ -396,7 +396,7 @@ pub unsafe fn GetLocaleInfoW(locale: u32, lctype: u32, lplcdata: Option<&mut [u1 } #[inline] pub unsafe fn GetNLSVersion(function: u32, locale: u32, lpversioninformation: *mut NLSVERSIONINFO) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetNLSVersion(function : u32, locale : u32, lpversioninformation : *mut NLSVERSIONINFO) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNLSVersion(function : u32, locale : u32, lpversioninformation : *mut NLSVERSIONINFO) -> windows_core::BOOL); unsafe { GetNLSVersion(function, locale, lpversioninformation as _).ok() } } #[inline] @@ -404,7 +404,7 @@ pub unsafe fn GetNLSVersionEx(function: u32, lplocalename: P1, lpversioninfo where P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetNLSVersionEx(function : u32, lplocalename : windows_core::PCWSTR, lpversioninformation : *mut NLSVERSIONINFOEX) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNLSVersionEx(function : u32, lplocalename : windows_core::PCWSTR, lpversioninformation : *mut NLSVERSIONINFOEX) -> windows_core::BOOL); unsafe { GetNLSVersionEx(function, lplocalename.param().abi(), lpversioninformation as _).ok() } } #[inline] @@ -439,7 +439,7 @@ pub unsafe fn GetOEMCP() -> u32 { } #[inline] pub unsafe fn GetProcessPreferredUILanguages(dwflags: u32, pulnumlanguages: *mut u32, pwszlanguagesbuffer: Option, pcchlanguagesbuffer: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetProcessPreferredUILanguages(dwflags : u32, pulnumlanguages : *mut u32, pwszlanguagesbuffer : windows_core::PWSTR, pcchlanguagesbuffer : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetProcessPreferredUILanguages(dwflags : u32, pulnumlanguages : *mut u32, pwszlanguagesbuffer : windows_core::PWSTR, pcchlanguagesbuffer : *mut u32) -> windows_core::BOOL); unsafe { GetProcessPreferredUILanguages(dwflags, pulnumlanguages as _, pwszlanguagesbuffer.unwrap_or(core::mem::zeroed()) as _, pcchlanguagesbuffer as _).ok() } } #[inline] @@ -452,15 +452,15 @@ where } #[inline] pub unsafe fn GetStringTypeA(locale: u32, dwinfotype: u32, lpsrcstr: &[u8], lpchartype: *mut u16) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetStringTypeA(locale : u32, dwinfotype : u32, lpsrcstr : windows_core::PCSTR, cchsrc : i32, lpchartype : *mut u16) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetStringTypeA(locale : u32, dwinfotype : u32, lpsrcstr : windows_core::PCSTR, cchsrc : i32, lpchartype : *mut u16) -> windows_core::BOOL); unsafe { GetStringTypeA(locale, dwinfotype, core::mem::transmute(lpsrcstr.as_ptr()), lpsrcstr.len().try_into().unwrap(), lpchartype as _).ok() } } #[inline] -pub unsafe fn GetStringTypeExA(locale: u32, dwinfotype: u32, lpsrcstr: P2, cchsrc: i32, lpchartype: *mut u16) -> super::Foundation::BOOL +pub unsafe fn GetStringTypeExA(locale: u32, dwinfotype: u32, lpsrcstr: P2, cchsrc: i32, lpchartype: *mut u16) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetStringTypeExA(locale : u32, dwinfotype : u32, lpsrcstr : windows_core::PCSTR, cchsrc : i32, lpchartype : *mut u16) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetStringTypeExA(locale : u32, dwinfotype : u32, lpsrcstr : windows_core::PCSTR, cchsrc : i32, lpchartype : *mut u16) -> windows_core::BOOL); unsafe { GetStringTypeExA(locale, dwinfotype, lpsrcstr.param().abi(), cchsrc, lpchartype as _) } } #[inline] @@ -468,12 +468,12 @@ pub unsafe fn GetStringTypeExW(locale: u32, dwinfotype: u32, lpsrcstr: P2, c where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetStringTypeExW(locale : u32, dwinfotype : u32, lpsrcstr : windows_core::PCWSTR, cchsrc : i32, lpchartype : *mut u16) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetStringTypeExW(locale : u32, dwinfotype : u32, lpsrcstr : windows_core::PCWSTR, cchsrc : i32, lpchartype : *mut u16) -> windows_core::BOOL); unsafe { GetStringTypeExW(locale, dwinfotype, lpsrcstr.param().abi(), cchsrc, lpchartype as _).ok() } } #[inline] pub unsafe fn GetStringTypeW(dwinfotype: u32, lpsrcstr: &[u16], lpchartype: *mut u16) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetStringTypeW(dwinfotype : u32, lpsrcstr : windows_core::PCWSTR, cchsrc : i32, lpchartype : *mut u16) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetStringTypeW(dwinfotype : u32, lpsrcstr : windows_core::PCWSTR, cchsrc : i32, lpchartype : *mut u16) -> windows_core::BOOL); unsafe { GetStringTypeW(dwinfotype, core::mem::transmute(lpsrcstr.as_ptr()), lpsrcstr.len().try_into().unwrap(), lpchartype as _).ok() } } #[inline] @@ -498,7 +498,7 @@ pub unsafe fn GetSystemDefaultUILanguage() -> u16 { } #[inline] pub unsafe fn GetSystemPreferredUILanguages(dwflags: u32, pulnumlanguages: *mut u32, pwszlanguagesbuffer: Option, pcchlanguagesbuffer: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetSystemPreferredUILanguages(dwflags : u32, pulnumlanguages : *mut u32, pwszlanguagesbuffer : windows_core::PWSTR, pcchlanguagesbuffer : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetSystemPreferredUILanguages(dwflags : u32, pulnumlanguages : *mut u32, pwszlanguagesbuffer : windows_core::PWSTR, pcchlanguagesbuffer : *mut u32) -> windows_core::BOOL); unsafe { GetSystemPreferredUILanguages(dwflags, pulnumlanguages as _, pwszlanguagesbuffer.unwrap_or(core::mem::zeroed()) as _, pcchlanguagesbuffer as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -520,7 +520,7 @@ pub unsafe fn GetThreadLocale() -> u32 { } #[inline] pub unsafe fn GetThreadPreferredUILanguages(dwflags: u32, pulnumlanguages: *mut u32, pwszlanguagesbuffer: Option, pcchlanguagesbuffer: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetThreadPreferredUILanguages(dwflags : u32, pulnumlanguages : *mut u32, pwszlanguagesbuffer : windows_core::PWSTR, pcchlanguagesbuffer : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetThreadPreferredUILanguages(dwflags : u32, pulnumlanguages : *mut u32, pwszlanguagesbuffer : windows_core::PWSTR, pcchlanguagesbuffer : *mut u32) -> windows_core::BOOL); unsafe { GetThreadPreferredUILanguages(dwflags, pulnumlanguages as _, pwszlanguagesbuffer.unwrap_or(core::mem::zeroed()) as _, pcchlanguagesbuffer as _).ok() } } #[inline] @@ -558,7 +558,7 @@ pub unsafe fn GetUILanguageInfo(dwflags: u32, pwmszlanguage: P1, pwszfallbac where P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetUILanguageInfo(dwflags : u32, pwmszlanguage : windows_core::PCWSTR, pwszfallbacklanguages : windows_core::PWSTR, pcchfallbacklanguages : *mut u32, pattributes : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetUILanguageInfo(dwflags : u32, pwmszlanguage : windows_core::PCWSTR, pwszfallbacklanguages : windows_core::PWSTR, pcchfallbacklanguages : *mut u32, pattributes : *mut u32) -> windows_core::BOOL); unsafe { GetUILanguageInfo(dwflags, pwmszlanguage.param().abi(), pwszfallbacklanguages.unwrap_or(core::mem::zeroed()) as _, pcchfallbacklanguages.unwrap_or(core::mem::zeroed()) as _, pattributes as _).ok() } } #[inline] @@ -593,7 +593,7 @@ pub unsafe fn GetUserGeoID(geoclass: SYSGEOCLASS) -> i32 { } #[inline] pub unsafe fn GetUserPreferredUILanguages(dwflags: u32, pulnumlanguages: *mut u32, pwszlanguagesbuffer: Option, pcchlanguagesbuffer: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetUserPreferredUILanguages(dwflags : u32, pulnumlanguages : *mut u32, pwszlanguagesbuffer : windows_core::PWSTR, pcchlanguagesbuffer : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetUserPreferredUILanguages(dwflags : u32, pulnumlanguages : *mut u32, pwszlanguagesbuffer : windows_core::PWSTR, pcchlanguagesbuffer : *mut u32) -> windows_core::BOOL); unsafe { GetUserPreferredUILanguages(dwflags, pulnumlanguages as _, pwszlanguagesbuffer.unwrap_or(core::mem::zeroed()) as _, pcchlanguagesbuffer as _).ok() } } #[inline] @@ -612,56 +612,56 @@ pub unsafe fn IdnToUnicode(dwflags: u32, lpasciicharstr: &[u16], lpunicodecharst unsafe { IdnToUnicode(dwflags, core::mem::transmute(lpasciicharstr.as_ptr()), lpasciicharstr.len().try_into().unwrap(), core::mem::transmute(lpunicodecharstr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpunicodecharstr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } } #[inline] -pub unsafe fn IsCalendarLeapYear(calid: u32, year: u32, era: u32) -> super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn IsCalendarLeapYear(calid : u32, year : u32, era : u32) -> super::Foundation:: BOOL); +pub unsafe fn IsCalendarLeapYear(calid: u32, year: u32, era: u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn IsCalendarLeapYear(calid : u32, year : u32, era : u32) -> windows_core::BOOL); unsafe { IsCalendarLeapYear(calid, year, era) } } #[inline] pub unsafe fn IsDBCSLeadByte(testchar: u8) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn IsDBCSLeadByte(testchar : u8) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn IsDBCSLeadByte(testchar : u8) -> windows_core::BOOL); unsafe { IsDBCSLeadByte(testchar).ok() } } #[inline] pub unsafe fn IsDBCSLeadByteEx(codepage: u32, testchar: u8) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn IsDBCSLeadByteEx(codepage : u32, testchar : u8) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn IsDBCSLeadByteEx(codepage : u32, testchar : u8) -> windows_core::BOOL); unsafe { IsDBCSLeadByteEx(codepage, testchar).ok() } } #[inline] pub unsafe fn IsNLSDefinedString(function: u32, dwflags: u32, lpversioninformation: *const NLSVERSIONINFO, lpstring: &[u16]) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn IsNLSDefinedString(function : u32, dwflags : u32, lpversioninformation : *const NLSVERSIONINFO, lpstring : windows_core::PCWSTR, cchstr : i32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn IsNLSDefinedString(function : u32, dwflags : u32, lpversioninformation : *const NLSVERSIONINFO, lpstring : windows_core::PCWSTR, cchstr : i32) -> windows_core::BOOL); unsafe { IsNLSDefinedString(function, dwflags, lpversioninformation, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()).ok() } } #[inline] pub unsafe fn IsNormalizedString(normform: NORM_FORM, lpstring: &[u16]) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn IsNormalizedString(normform : NORM_FORM, lpstring : windows_core::PCWSTR, cwlength : i32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn IsNormalizedString(normform : NORM_FORM, lpstring : windows_core::PCWSTR, cwlength : i32) -> windows_core::BOOL); unsafe { IsNormalizedString(normform, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()).ok() } } #[inline] -pub unsafe fn IsTextUnicode(lpv: *const core::ffi::c_void, isize: i32, lpiresult: Option<*mut IS_TEXT_UNICODE_RESULT>) -> super::Foundation::BOOL { - windows_targets::link!("advapi32.dll" "system" fn IsTextUnicode(lpv : *const core::ffi::c_void, isize : i32, lpiresult : *mut IS_TEXT_UNICODE_RESULT) -> super::Foundation:: BOOL); +pub unsafe fn IsTextUnicode(lpv: *const core::ffi::c_void, isize: i32, lpiresult: Option<*mut IS_TEXT_UNICODE_RESULT>) -> windows_core::BOOL { + windows_targets::link!("advapi32.dll" "system" fn IsTextUnicode(lpv : *const core::ffi::c_void, isize : i32, lpiresult : *mut IS_TEXT_UNICODE_RESULT) -> windows_core::BOOL); unsafe { IsTextUnicode(lpv, isize, lpiresult.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn IsValidCodePage(codepage: u32) -> super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn IsValidCodePage(codepage : u32) -> super::Foundation:: BOOL); +pub unsafe fn IsValidCodePage(codepage: u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn IsValidCodePage(codepage : u32) -> windows_core::BOOL); unsafe { IsValidCodePage(codepage) } } #[inline] -pub unsafe fn IsValidLanguageGroup(languagegroup: u32, dwflags: ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS) -> super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn IsValidLanguageGroup(languagegroup : u32, dwflags : ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS) -> super::Foundation:: BOOL); +pub unsafe fn IsValidLanguageGroup(languagegroup: u32, dwflags: ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn IsValidLanguageGroup(languagegroup : u32, dwflags : ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS) -> windows_core::BOOL); unsafe { IsValidLanguageGroup(languagegroup, dwflags) } } #[inline] -pub unsafe fn IsValidLocale(locale: u32, dwflags: IS_VALID_LOCALE_FLAGS) -> super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn IsValidLocale(locale : u32, dwflags : IS_VALID_LOCALE_FLAGS) -> super::Foundation:: BOOL); +pub unsafe fn IsValidLocale(locale: u32, dwflags: IS_VALID_LOCALE_FLAGS) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn IsValidLocale(locale : u32, dwflags : IS_VALID_LOCALE_FLAGS) -> windows_core::BOOL); unsafe { IsValidLocale(locale, dwflags) } } #[inline] -pub unsafe fn IsValidLocaleName(lplocalename: P0) -> super::Foundation::BOOL +pub unsafe fn IsValidLocaleName(lplocalename: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn IsValidLocaleName(lplocalename : windows_core::PCWSTR) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn IsValidLocaleName(lplocalename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { IsValidLocaleName(lplocalename.param().abi()) } } #[inline] @@ -750,12 +750,12 @@ pub unsafe fn NormalizeString(normform: NORM_FORM, lpsrcstring: &[u16], lpdststr unsafe { NormalizeString(normform, core::mem::transmute(lpsrcstring.as_ptr()), lpsrcstring.len().try_into().unwrap(), core::mem::transmute(lpdststring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdststring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } } #[inline] -pub unsafe fn NotifyUILanguageChange(dwflags: u32, pcwstrnewlanguage: P1, pcwstrpreviouslanguage: P2, dwreserved: Option, pdwstatusrtrn: Option<*mut u32>) -> super::Foundation::BOOL +pub unsafe fn NotifyUILanguageChange(dwflags: u32, pcwstrnewlanguage: P1, pcwstrpreviouslanguage: P2, dwreserved: Option, pdwstatusrtrn: Option<*mut u32>) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn NotifyUILanguageChange(dwflags : u32, pcwstrnewlanguage : windows_core::PCWSTR, pcwstrpreviouslanguage : windows_core::PCWSTR, dwreserved : u32, pdwstatusrtrn : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn NotifyUILanguageChange(dwflags : u32, pcwstrnewlanguage : windows_core::PCWSTR, pcwstrpreviouslanguage : windows_core::PCWSTR, dwreserved : u32, pdwstatusrtrn : *mut u32) -> windows_core::BOOL); unsafe { NotifyUILanguageChange(dwflags, pcwstrnewlanguage.param().abi(), pcwstrpreviouslanguage.param().abi(), dwreserved.unwrap_or(core::mem::zeroed()) as _, pdwstatusrtrn.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -792,7 +792,7 @@ where } #[inline] pub unsafe fn ScriptCPtoX(icp: i32, ftrailing: bool, cglyphs: i32, pwlogclust: &[u16], psva: *const SCRIPT_VISATTR, piadvance: *const i32, psa: *const SCRIPT_ANALYSIS, pix: *mut i32) -> windows_core::Result<()> { - windows_targets::link!("usp10.dll" "system" fn ScriptCPtoX(icp : i32, ftrailing : super::Foundation:: BOOL, cchars : i32, cglyphs : i32, pwlogclust : *const u16, psva : *const SCRIPT_VISATTR, piadvance : *const i32, psa : *const SCRIPT_ANALYSIS, pix : *mut i32) -> windows_core::HRESULT); + windows_targets::link!("usp10.dll" "system" fn ScriptCPtoX(icp : i32, ftrailing : windows_core::BOOL, cchars : i32, cglyphs : i32, pwlogclust : *const u16, psva : *const SCRIPT_VISATTR, piadvance : *const i32, psa : *const SCRIPT_ANALYSIS, pix : *mut i32) -> windows_core::HRESULT); unsafe { ScriptCPtoX(icp, ftrailing.into(), pwlogclust.len().try_into().unwrap(), cglyphs, core::mem::transmute(pwlogclust.as_ptr()), psva, piadvance, psa, pix as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -941,7 +941,7 @@ pub unsafe fn ScriptStringAnalyse(hdc: super::Graphics::Gdi::HDC, pstring: *cons } #[inline] pub unsafe fn ScriptStringCPtoX(ssa: *const core::ffi::c_void, icp: i32, ftrailing: bool) -> windows_core::Result { - windows_targets::link!("usp10.dll" "system" fn ScriptStringCPtoX(ssa : *const core::ffi::c_void, icp : i32, ftrailing : super::Foundation:: BOOL, px : *mut i32) -> windows_core::HRESULT); + windows_targets::link!("usp10.dll" "system" fn ScriptStringCPtoX(ssa : *const core::ffi::c_void, icp : i32, ftrailing : windows_core::BOOL, px : *mut i32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); ScriptStringCPtoX(ssa, icp, ftrailing.into(), &mut result__).map(|| core::mem::transmute(result__)) @@ -965,7 +965,7 @@ pub unsafe fn ScriptStringGetOrder(ssa: *const core::ffi::c_void, puorder: *mut #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScriptStringOut(ssa: *const core::ffi::c_void, ix: i32, iy: i32, uoptions: super::Graphics::Gdi::ETO_OPTIONS, prc: Option<*const super::Foundation::RECT>, iminsel: i32, imaxsel: i32, fdisabled: bool) -> windows_core::Result<()> { - windows_targets::link!("usp10.dll" "system" fn ScriptStringOut(ssa : *const core::ffi::c_void, ix : i32, iy : i32, uoptions : super::Graphics::Gdi:: ETO_OPTIONS, prc : *const super::Foundation:: RECT, iminsel : i32, imaxsel : i32, fdisabled : super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("usp10.dll" "system" fn ScriptStringOut(ssa : *const core::ffi::c_void, ix : i32, iy : i32, uoptions : super::Graphics::Gdi:: ETO_OPTIONS, prc : *const super::Foundation:: RECT, iminsel : i32, imaxsel : i32, fdisabled : windows_core::BOOL) -> windows_core::HRESULT); unsafe { ScriptStringOut(ssa, ix, iy, uoptions, prc.unwrap_or(core::mem::zeroed()) as _, iminsel, imaxsel, fdisabled.into()).ok() } } #[inline] @@ -1018,7 +1018,7 @@ pub unsafe fn SetCalendarInfoA(locale: u32, calendar: u32, caltype: u32, lpc where P3: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetCalendarInfoA(locale : u32, calendar : u32, caltype : u32, lpcaldata : windows_core::PCSTR) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetCalendarInfoA(locale : u32, calendar : u32, caltype : u32, lpcaldata : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetCalendarInfoA(locale, calendar, caltype, lpcaldata.param().abi()).ok() } } #[inline] @@ -1026,7 +1026,7 @@ pub unsafe fn SetCalendarInfoW(locale: u32, calendar: u32, caltype: u32, lpc where P3: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetCalendarInfoW(locale : u32, calendar : u32, caltype : u32, lpcaldata : windows_core::PCWSTR) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetCalendarInfoW(locale : u32, calendar : u32, caltype : u32, lpcaldata : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetCalendarInfoW(locale, calendar, caltype, lpcaldata.param().abi()).ok() } } #[inline] @@ -1034,7 +1034,7 @@ pub unsafe fn SetLocaleInfoA(locale: u32, lctype: u32, lplcdata: P2) -> wind where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetLocaleInfoA(locale : u32, lctype : u32, lplcdata : windows_core::PCSTR) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetLocaleInfoA(locale : u32, lctype : u32, lplcdata : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetLocaleInfoA(locale, lctype, lplcdata.param().abi()).ok() } } #[inline] @@ -1042,7 +1042,7 @@ pub unsafe fn SetLocaleInfoW(locale: u32, lctype: u32, lplcdata: P2) -> wind where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetLocaleInfoW(locale : u32, lctype : u32, lplcdata : windows_core::PCWSTR) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetLocaleInfoW(locale : u32, lctype : u32, lplcdata : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetLocaleInfoW(locale, lctype, lplcdata.param().abi()).ok() } } #[inline] @@ -1050,28 +1050,28 @@ pub unsafe fn SetProcessPreferredUILanguages(dwflags: u32, pwszlanguagesbuff where P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetProcessPreferredUILanguages(dwflags : u32, pwszlanguagesbuffer : windows_core::PCWSTR, pulnumlanguages : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetProcessPreferredUILanguages(dwflags : u32, pwszlanguagesbuffer : windows_core::PCWSTR, pulnumlanguages : *mut u32) -> windows_core::BOOL); unsafe { SetProcessPreferredUILanguages(dwflags, pwszlanguagesbuffer.param().abi(), pulnumlanguages.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn SetThreadLocale(locale: u32) -> super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn SetThreadLocale(locale : u32) -> super::Foundation:: BOOL); +pub unsafe fn SetThreadLocale(locale: u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn SetThreadLocale(locale : u32) -> windows_core::BOOL); unsafe { SetThreadLocale(locale) } } #[inline] -pub unsafe fn SetThreadPreferredUILanguages(dwflags: u32, pwszlanguagesbuffer: P1, pulnumlanguages: Option<*mut u32>) -> super::Foundation::BOOL +pub unsafe fn SetThreadPreferredUILanguages(dwflags: u32, pwszlanguagesbuffer: P1, pulnumlanguages: Option<*mut u32>) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetThreadPreferredUILanguages(dwflags : u32, pwszlanguagesbuffer : windows_core::PCWSTR, pulnumlanguages : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetThreadPreferredUILanguages(dwflags : u32, pwszlanguagesbuffer : windows_core::PCWSTR, pulnumlanguages : *mut u32) -> windows_core::BOOL); unsafe { SetThreadPreferredUILanguages(dwflags, pwszlanguagesbuffer.param().abi(), pulnumlanguages.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn SetThreadPreferredUILanguages2(flags: u32, languages: P1, numlanguagesset: Option<*mut u32>, snapshot: Option<*mut HSAVEDUILANGUAGES>) -> super::Foundation::BOOL +pub unsafe fn SetThreadPreferredUILanguages2(flags: u32, languages: P1, numlanguagesset: Option<*mut u32>, snapshot: Option<*mut HSAVEDUILANGUAGES>) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetThreadPreferredUILanguages2(flags : u32, languages : windows_core::PCWSTR, numlanguagesset : *mut u32, snapshot : *mut HSAVEDUILANGUAGES) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetThreadPreferredUILanguages2(flags : u32, languages : windows_core::PCWSTR, numlanguagesset : *mut u32, snapshot : *mut HSAVEDUILANGUAGES) -> windows_core::BOOL); unsafe { SetThreadPreferredUILanguages2(flags, languages.param().abi(), numlanguagesset.unwrap_or(core::mem::zeroed()) as _, snapshot.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1081,7 +1081,7 @@ pub unsafe fn SetThreadUILanguage(langid: u16) -> u16 { } #[inline] pub unsafe fn SetUserGeoID(geoid: i32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetUserGeoID(geoid : i32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetUserGeoID(geoid : i32) -> windows_core::BOOL); unsafe { SetUserGeoID(geoid).ok() } } #[inline] @@ -1089,12 +1089,12 @@ pub unsafe fn SetUserGeoName(geoname: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetUserGeoName(geoname : windows_core::PCWSTR) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetUserGeoName(geoname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetUserGeoName(geoname.param().abi()).ok() } } #[inline] pub unsafe fn TranslateCharsetInfo(lpsrc: *mut u32, lpcs: *mut CHARSETINFO, dwflags: TRANSLATE_CHARSET_INFO_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("gdi32.dll" "system" fn TranslateCharsetInfo(lpsrc : *mut u32, lpcs : *mut CHARSETINFO, dwflags : TRANSLATE_CHARSET_INFO_FLAGS) -> super::Foundation:: BOOL); + windows_targets::link!("gdi32.dll" "system" fn TranslateCharsetInfo(lpsrc : *mut u32, lpcs : *mut CHARSETINFO, dwflags : TRANSLATE_CHARSET_INFO_FLAGS) -> windows_core::BOOL); unsafe { TranslateCharsetInfo(lpsrc as _, lpcs as _, dwflags).ok() } } #[inline] @@ -1150,8 +1150,8 @@ where unsafe { UCNV_TO_U_CALLBACK_SUBSTITUTE(context, touargs as _, codeunits.param().abi(), length, reason, err as _) } } #[inline] -pub unsafe fn UpdateCalendarDayOfWeek(lpcaldatetime: *mut CALDATETIME) -> super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn UpdateCalendarDayOfWeek(lpcaldatetime : *mut CALDATETIME) -> super::Foundation:: BOOL); +pub unsafe fn UpdateCalendarDayOfWeek(lpcaldatetime: *mut CALDATETIME) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn UpdateCalendarDayOfWeek(lpcaldatetime : *mut CALDATETIME) -> windows_core::BOOL); unsafe { UpdateCalendarDayOfWeek(lpcaldatetime as _) } } #[inline] @@ -1160,15 +1160,15 @@ where P1: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn VerifyScripts(dwflags : u32, lplocalescripts : windows_core::PCWSTR, cchlocalescripts : i32, lptestscripts : windows_core::PCWSTR, cchtestscripts : i32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn VerifyScripts(dwflags : u32, lplocalescripts : windows_core::PCWSTR, cchlocalescripts : i32, lptestscripts : windows_core::PCWSTR, cchtestscripts : i32) -> windows_core::BOOL); unsafe { VerifyScripts(dwflags, lplocalescripts.param().abi(), cchlocalescripts, lptestscripts.param().abi(), cchtestscripts).ok() } } #[inline] -pub unsafe fn WideCharToMultiByte(codepage: u32, dwflags: u32, lpwidecharstr: &[u16], lpmultibytestr: Option<&mut [u8]>, lpdefaultchar: P6, lpuseddefaultchar: Option<*mut super::Foundation::BOOL>) -> i32 +pub unsafe fn WideCharToMultiByte(codepage: u32, dwflags: u32, lpwidecharstr: &[u16], lpmultibytestr: Option<&mut [u8]>, lpdefaultchar: P6, lpuseddefaultchar: Option<*mut windows_core::BOOL>) -> i32 where P6: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn WideCharToMultiByte(codepage : u32, dwflags : u32, lpwidecharstr : windows_core::PCWSTR, cchwidechar : i32, lpmultibytestr : windows_core::PSTR, cbmultibyte : i32, lpdefaultchar : windows_core::PCSTR, lpuseddefaultchar : *mut super::Foundation:: BOOL) -> i32); + windows_targets::link!("kernel32.dll" "system" fn WideCharToMultiByte(codepage : u32, dwflags : u32, lpwidecharstr : windows_core::PCWSTR, cchwidechar : i32, lpmultibytestr : windows_core::PSTR, cbmultibyte : i32, lpdefaultchar : windows_core::PCSTR, lpuseddefaultchar : *mut windows_core::BOOL) -> i32); unsafe { WideCharToMultiByte(codepage, dwflags, core::mem::transmute(lpwidecharstr.as_ptr()), lpwidecharstr.len().try_into().unwrap(), core::mem::transmute(lpmultibytestr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpmultibytestr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpdefaultchar.param().abi(), lpuseddefaultchar.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -7047,11 +7047,11 @@ impl Default for CALDATETIME { #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct CALDATETIME_DATEUNIT(pub i32); -pub type CALINFO_ENUMPROCA = Option super::Foundation::BOOL>; -pub type CALINFO_ENUMPROCEXA = Option super::Foundation::BOOL>; -pub type CALINFO_ENUMPROCEXEX = Option super::Foundation::BOOL>; -pub type CALINFO_ENUMPROCEXW = Option super::Foundation::BOOL>; -pub type CALINFO_ENUMPROCW = Option super::Foundation::BOOL>; +pub type CALINFO_ENUMPROCA = Option windows_core::BOOL>; +pub type CALINFO_ENUMPROCEXA = Option windows_core::BOOL>; +pub type CALINFO_ENUMPROCEXEX = Option windows_core::BOOL>; +pub type CALINFO_ENUMPROCEXW = Option windows_core::BOOL>; +pub type CALINFO_ENUMPROCW = Option windows_core::BOOL>; pub const CAL_GREGORIAN: u32 = 1u32; pub const CAL_GREGORIAN_ARABIC: u32 = 10u32; pub const CAL_GREGORIAN_ME_FRENCH: u32 = 9u32; @@ -7147,8 +7147,8 @@ impl Default for CHARSETINFO { pub const CMLangConvertCharset: windows_core::GUID = windows_core::GUID::from_u128(0xd66d6f99_cdaa_11d0_b822_00c04fc9b31f); pub const CMLangString: windows_core::GUID = windows_core::GUID::from_u128(0xc04d65cf_b70d_11d0_b188_00aa0038c969); pub const CMultiLanguage: windows_core::GUID = windows_core::GUID::from_u128(0x275c23e2_3747_11d0_9fea_00aa003f8646); -pub type CODEPAGE_ENUMPROCA = Option super::Foundation::BOOL>; -pub type CODEPAGE_ENUMPROCW = Option super::Foundation::BOOL>; +pub type CODEPAGE_ENUMPROCA = Option windows_core::BOOL>; +pub type CODEPAGE_ENUMPROCW = Option windows_core::BOOL>; #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct COMPARESTRING_RESULT(pub i32); @@ -7401,11 +7401,11 @@ impl Default for CURRENCYFMTW { unsafe { core::mem::zeroed() } } } -pub type DATEFMT_ENUMPROCA = Option super::Foundation::BOOL>; -pub type DATEFMT_ENUMPROCEXA = Option super::Foundation::BOOL>; -pub type DATEFMT_ENUMPROCEXEX = Option super::Foundation::BOOL>; -pub type DATEFMT_ENUMPROCEXW = Option super::Foundation::BOOL>; -pub type DATEFMT_ENUMPROCW = Option super::Foundation::BOOL>; +pub type DATEFMT_ENUMPROCA = Option windows_core::BOOL>; +pub type DATEFMT_ENUMPROCEXA = Option windows_core::BOOL>; +pub type DATEFMT_ENUMPROCEXEX = Option windows_core::BOOL>; +pub type DATEFMT_ENUMPROCEXW = Option windows_core::BOOL>; +pub type DATEFMT_ENUMPROCW = Option windows_core::BOOL>; pub const DATE_AUTOLAYOUT: ENUM_DATE_FORMATS_FLAGS = ENUM_DATE_FORMATS_FLAGS(64u32); pub const DATE_LONGDATE: ENUM_DATE_FORMATS_FLAGS = ENUM_DATE_FORMATS_FLAGS(2u32); pub const DATE_LTRREADING: ENUM_DATE_FORMATS_FLAGS = ENUM_DATE_FORMATS_FLAGS(16u32); @@ -7554,8 +7554,8 @@ pub const GEOID_NOT_AVAILABLE: i32 = -1i32; pub const GEO_CURRENCYCODE: SYSGEOTYPE = SYSGEOTYPE(15i32); pub const GEO_CURRENCYSYMBOL: SYSGEOTYPE = SYSGEOTYPE(16i32); pub const GEO_DIALINGCODE: SYSGEOTYPE = SYSGEOTYPE(14i32); -pub type GEO_ENUMNAMEPROC = Option super::Foundation::BOOL>; -pub type GEO_ENUMPROC = Option super::Foundation::BOOL>; +pub type GEO_ENUMNAMEPROC = Option windows_core::BOOL>; +pub type GEO_ENUMPROC = Option windows_core::BOOL>; pub const GEO_FRIENDLYNAME: SYSGEOTYPE = SYSGEOTYPE(8i32); pub const GEO_ID: SYSGEOTYPE = SYSGEOTYPE(18i32); pub const GEO_ISO2: SYSGEOTYPE = SYSGEOTYPE(4i32); @@ -8431,20 +8431,20 @@ impl IMLangString { #[repr(C)] pub struct IMLangString_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Sync: unsafe extern "system" fn(*mut core::ffi::c_void, super::Foundation::BOOL) -> windows_core::HRESULT, + pub Sync: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetLength: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetMLStr: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, *mut core::ffi::c_void, i32, i32) -> windows_core::HRESULT, pub GetMLStr: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, *mut core::ffi::c_void, u32, *const windows_core::GUID, *mut *mut core::ffi::c_void, *mut i32, *mut i32) -> windows_core::HRESULT, } pub trait IMLangString_Impl: windows_core::IUnknownImpl { - fn Sync(&self, fnoaccess: super::Foundation::BOOL) -> windows_core::Result<()>; + fn Sync(&self, fnoaccess: windows_core::BOOL) -> windows_core::Result<()>; fn GetLength(&self, pllen: *mut i32) -> windows_core::Result<()>; fn SetMLStr(&self, ldestpos: i32, ldestlen: i32, psrcmlstr: windows_core::Ref, lsrcpos: i32, lsrclen: i32) -> windows_core::Result<()>; fn GetMLStr(&self, lsrcpos: i32, lsrclen: i32, punkouter: windows_core::Ref, dwclscontext: u32, piid: *const windows_core::GUID, ppdestmlstr: windows_core::OutRef<'_, windows_core::IUnknown>, pldestpos: *mut i32, pldestlen: *mut i32) -> windows_core::Result<()>; } impl IMLangString_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Sync(this: *mut core::ffi::c_void, fnoaccess: super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Sync(this: *mut core::ffi::c_void, fnoaccess: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMLangString_Impl::Sync(this, core::mem::transmute_copy(&fnoaccess)).into() @@ -10102,7 +10102,7 @@ impl ISpellCheckProviderFactory { (windows_core::Interface::vtable(self).SupportedLanguages)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn IsSupported(&self, languagetag: P0) -> windows_core::Result + pub unsafe fn IsSupported(&self, languagetag: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -10128,13 +10128,13 @@ pub struct ISpellCheckProviderFactory_Vtbl { pub SupportedLanguages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SupportedLanguages: usize, - pub IsSupported: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsSupported: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CreateSpellCheckProvider: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait ISpellCheckProviderFactory_Impl: windows_core::IUnknownImpl { fn SupportedLanguages(&self) -> windows_core::Result; - fn IsSupported(&self, languagetag: &windows_core::PCWSTR) -> windows_core::Result; + fn IsSupported(&self, languagetag: &windows_core::PCWSTR) -> windows_core::Result; fn CreateSpellCheckProvider(&self, languagetag: &windows_core::PCWSTR) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] @@ -10152,7 +10152,7 @@ impl ISpellCheckProviderFactory_Vtbl { } } } - unsafe extern "system" fn IsSupported(this: *mut core::ffi::c_void, languagetag: windows_core::PCWSTR, value: *mut super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsSupported(this: *mut core::ffi::c_void, languagetag: windows_core::PCWSTR, value: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellCheckProviderFactory_Impl::IsSupported(this, core::mem::transmute(&languagetag)) { @@ -10592,7 +10592,7 @@ impl ISpellCheckerFactory { (windows_core::Interface::vtable(self).SupportedLanguages)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn IsSupported(&self, languagetag: P0) -> windows_core::Result + pub unsafe fn IsSupported(&self, languagetag: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -10618,13 +10618,13 @@ pub struct ISpellCheckerFactory_Vtbl { pub SupportedLanguages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SupportedLanguages: usize, - pub IsSupported: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsSupported: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CreateSpellChecker: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait ISpellCheckerFactory_Impl: windows_core::IUnknownImpl { fn SupportedLanguages(&self) -> windows_core::Result; - fn IsSupported(&self, languagetag: &windows_core::PCWSTR) -> windows_core::Result; + fn IsSupported(&self, languagetag: &windows_core::PCWSTR) -> windows_core::Result; fn CreateSpellChecker(&self, languagetag: &windows_core::PCWSTR) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] @@ -10642,7 +10642,7 @@ impl ISpellCheckerFactory_Vtbl { } } } - unsafe extern "system" fn IsSupported(this: *mut core::ffi::c_void, languagetag: windows_core::PCWSTR, value: *mut super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsSupported(this: *mut core::ffi::c_void, languagetag: windows_core::PCWSTR, value: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpellCheckerFactory_Impl::IsSupported(this, core::mem::transmute(&languagetag)) { @@ -10837,10 +10837,10 @@ impl IUserDictionariesRegistrar_Vtbl { } } impl windows_core::RuntimeName for IUserDictionariesRegistrar {} -pub type LANGGROUPLOCALE_ENUMPROCA = Option super::Foundation::BOOL>; -pub type LANGGROUPLOCALE_ENUMPROCW = Option super::Foundation::BOOL>; -pub type LANGUAGEGROUP_ENUMPROCA = Option super::Foundation::BOOL>; -pub type LANGUAGEGROUP_ENUMPROCW = Option super::Foundation::BOOL>; +pub type LANGGROUPLOCALE_ENUMPROCA = Option windows_core::BOOL>; +pub type LANGGROUPLOCALE_ENUMPROCW = Option windows_core::BOOL>; +pub type LANGUAGEGROUP_ENUMPROCA = Option windows_core::BOOL>; +pub type LANGUAGEGROUP_ENUMPROCW = Option windows_core::BOOL>; pub const LANG_SYSTEM_DEFAULT: i32 = 2048i32; pub const LANG_USER_DEFAULT: i32 = 1024i32; pub const LCID_ALTERNATE_SORTS: u32 = 4u32; @@ -10897,9 +10897,9 @@ impl Default for LOCALESIGNATURE { pub const LOCALE_ALL: u32 = 0u32; pub const LOCALE_ALLOW_NEUTRAL_NAMES: u32 = 134217728u32; pub const LOCALE_ALTERNATE_SORTS: u32 = 4u32; -pub type LOCALE_ENUMPROCA = Option super::Foundation::BOOL>; -pub type LOCALE_ENUMPROCEX = Option super::Foundation::BOOL>; -pub type LOCALE_ENUMPROCW = Option super::Foundation::BOOL>; +pub type LOCALE_ENUMPROCA = Option windows_core::BOOL>; +pub type LOCALE_ENUMPROCEX = Option windows_core::BOOL>; +pub type LOCALE_ENUMPROCW = Option windows_core::BOOL>; pub const LOCALE_FONTSIGNATURE: u32 = 88u32; pub const LOCALE_ICALENDARTYPE: u32 = 4105u32; pub const LOCALE_ICENTURY: u32 = 36u32; @@ -11740,9 +11740,9 @@ impl Default for TEXTRANGE_PROPERTIES { unsafe { core::mem::zeroed() } } } -pub type TIMEFMT_ENUMPROCA = Option super::Foundation::BOOL>; -pub type TIMEFMT_ENUMPROCEX = Option super::Foundation::BOOL>; -pub type TIMEFMT_ENUMPROCW = Option super::Foundation::BOOL>; +pub type TIMEFMT_ENUMPROCA = Option windows_core::BOOL>; +pub type TIMEFMT_ENUMPROCEX = Option windows_core::BOOL>; +pub type TIMEFMT_ENUMPROCW = Option windows_core::BOOL>; pub const TIME_FORCE24HOURFORMAT: TIME_FORMAT_FLAGS = TIME_FORMAT_FLAGS(8u32); #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] @@ -13164,8 +13164,8 @@ pub const UIDNA_ERROR_TRAILING_HYPHEN: i32 = 16i32; pub const UIDNA_NONTRANSITIONAL_TO_ASCII: i32 = 16i32; pub const UIDNA_NONTRANSITIONAL_TO_UNICODE: i32 = 32i32; pub const UIDNA_USE_STD3_RULES: i32 = 2i32; -pub type UILANGUAGE_ENUMPROCA = Option super::Foundation::BOOL>; -pub type UILANGUAGE_ENUMPROCW = Option super::Foundation::BOOL>; +pub type UILANGUAGE_ENUMPROCA = Option windows_core::BOOL>; +pub type UILANGUAGE_ENUMPROCW = Option windows_core::BOOL>; pub const UITER_CURRENT: UCharIteratorOrigin = UCharIteratorOrigin(1i32); pub const UITER_LENGTH: UCharIteratorOrigin = UCharIteratorOrigin(4i32); pub const UITER_LIMIT: UCharIteratorOrigin = UCharIteratorOrigin(2i32); 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 216b9598f9..ed15099fbd 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/mod.rs @@ -53,14 +53,14 @@ pub unsafe fn D2D1GetGradientMeshInteriorPointsFromCoonsPatch(ppoint0: *const Co } #[cfg(feature = "Foundation_Numerics")] #[inline] -pub unsafe fn D2D1InvertMatrix(matrix: *mut super::super::super::Foundation::Numerics::Matrix3x2) -> super::super::Foundation::BOOL { - windows_targets::link!("d2d1.dll" "system" fn D2D1InvertMatrix(matrix : *mut super::super::super::Foundation::Numerics:: Matrix3x2) -> super::super::Foundation:: BOOL); +pub unsafe fn D2D1InvertMatrix(matrix: *mut super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::BOOL { + windows_targets::link!("d2d1.dll" "system" fn D2D1InvertMatrix(matrix : *mut super::super::super::Foundation::Numerics:: Matrix3x2) -> windows_core::BOOL); unsafe { D2D1InvertMatrix(matrix as _) } } #[cfg(feature = "Foundation_Numerics")] #[inline] -pub unsafe fn D2D1IsMatrixInvertible(matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> super::super::Foundation::BOOL { - windows_targets::link!("d2d1.dll" "system" fn D2D1IsMatrixInvertible(matrix : *const super::super::super::Foundation::Numerics:: Matrix3x2) -> super::super::Foundation:: BOOL); +pub unsafe fn D2D1IsMatrixInvertible(matrix: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::BOOL { + windows_targets::link!("d2d1.dll" "system" fn D2D1IsMatrixInvertible(matrix : *const super::super::super::Foundation::Numerics:: Matrix3x2) -> windows_core::BOOL); unsafe { D2D1IsMatrixInvertible(matrix) } } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] @@ -981,7 +981,7 @@ pub const D2D1_FEATURE_D3D10_X_HARDWARE_OPTIONS: D2D1_FEATURE = D2D1_FEATURE(1i3 #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D2D1_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS { - pub computeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x: super::super::Foundation::BOOL, + pub computeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x: windows_core::BOOL, } impl Default for D2D1_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS { fn default() -> Self { @@ -991,7 +991,7 @@ impl Default for D2D1_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D2D1_FEATURE_DATA_DOUBLES { - pub doublePrecisionFloatShaderOps: super::super::Foundation::BOOL, + pub doublePrecisionFloatShaderOps: windows_core::BOOL, } impl Default for D2D1_FEATURE_DATA_DOUBLES { fn default() -> Self { @@ -2269,7 +2269,7 @@ pub const D2D1_SVG_PATH_COMMAND_VERTICAL_RELATIVE: D2D1_SVG_PATH_COMMAND = D2D1_ #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D2D1_SVG_PRESERVE_ASPECT_RATIO { - pub defer: super::super::Foundation::BOOL, + pub defer: windows_core::BOOL, pub align: D2D1_SVG_ASPECT_ALIGN, pub meetOrSlice: D2D1_SVG_ASPECT_SCALING, } @@ -4411,13 +4411,13 @@ impl ID2D1ConcreteTransform { pub struct ID2D1ConcreteTransform_Vtbl { pub base__: ID2D1TransformNode_Vtbl, pub SetOutputBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, D2D1_BUFFER_PRECISION, D2D1_CHANNEL_DEPTH) -> windows_core::HRESULT, - pub SetCached: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL), + pub SetCached: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), } unsafe impl Send for ID2D1ConcreteTransform {} unsafe impl Sync for ID2D1ConcreteTransform {} pub trait ID2D1ConcreteTransform_Impl: ID2D1TransformNode_Impl { fn SetOutputBuffer(&self, bufferprecision: D2D1_BUFFER_PRECISION, channeldepth: D2D1_CHANNEL_DEPTH) -> windows_core::Result<()>; - fn SetCached(&self, iscached: super::super::Foundation::BOOL); + fn SetCached(&self, iscached: windows_core::BOOL); } impl ID2D1ConcreteTransform_Vtbl { pub const fn new() -> Self { @@ -4427,7 +4427,7 @@ impl ID2D1ConcreteTransform_Vtbl { ID2D1ConcreteTransform_Impl::SetOutputBuffer(this, core::mem::transmute_copy(&bufferprecision), core::mem::transmute_copy(&channeldepth)).into() } } - unsafe extern "system" fn SetCached(this: *mut core::ffi::c_void, iscached: super::super::Foundation::BOOL) { + unsafe extern "system" fn SetCached(this: *mut core::ffi::c_void, iscached: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1ConcreteTransform_Impl::SetCached(this, core::mem::transmute_copy(&iscached)) @@ -5155,10 +5155,10 @@ impl ID2D1DeviceContext { } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] - pub unsafe fn IsDxgiFormatSupported(&self, format: super::Dxgi::Common::DXGI_FORMAT) -> super::super::Foundation::BOOL { + pub unsafe fn IsDxgiFormatSupported(&self, format: super::Dxgi::Common::DXGI_FORMAT) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsDxgiFormatSupported)(windows_core::Interface::as_raw(self), format) } } - pub unsafe fn IsBufferPrecisionSupported(&self, bufferprecision: D2D1_BUFFER_PRECISION) -> super::super::Foundation::BOOL { + pub unsafe fn IsBufferPrecisionSupported(&self, bufferprecision: D2D1_BUFFER_PRECISION) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsBufferPrecisionSupported)(windows_core::Interface::as_raw(self), bufferprecision) } } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] @@ -5342,10 +5342,10 @@ pub struct ID2D1DeviceContext_Vtbl { CreateBitmapBrush: usize, pub CreateCommandList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_Graphics_Dxgi_Common")] - pub IsDxgiFormatSupported: unsafe extern "system" fn(*mut core::ffi::c_void, super::Dxgi::Common::DXGI_FORMAT) -> super::super::Foundation::BOOL, + pub IsDxgiFormatSupported: unsafe extern "system" fn(*mut core::ffi::c_void, super::Dxgi::Common::DXGI_FORMAT) -> windows_core::BOOL, #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] IsDxgiFormatSupported: usize, - pub IsBufferPrecisionSupported: unsafe extern "system" fn(*mut core::ffi::c_void, D2D1_BUFFER_PRECISION) -> super::super::Foundation::BOOL, + pub IsBufferPrecisionSupported: unsafe extern "system" fn(*mut core::ffi::c_void, D2D1_BUFFER_PRECISION) -> windows_core::BOOL, #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub GetImageLocalBounds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut Common::D2D_RECT_F) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] @@ -5426,8 +5426,8 @@ pub trait ID2D1DeviceContext_Impl: ID2D1RenderTarget_Impl { fn CreateImageBrush(&self, image: windows_core::Ref, imagebrushproperties: *const D2D1_IMAGE_BRUSH_PROPERTIES, brushproperties: *const D2D1_BRUSH_PROPERTIES) -> windows_core::Result; fn CreateBitmapBrush(&self, bitmap: windows_core::Ref, bitmapbrushproperties: *const D2D1_BITMAP_BRUSH_PROPERTIES1, brushproperties: *const D2D1_BRUSH_PROPERTIES) -> windows_core::Result; fn CreateCommandList(&self) -> windows_core::Result; - fn IsDxgiFormatSupported(&self, format: super::Dxgi::Common::DXGI_FORMAT) -> super::super::Foundation::BOOL; - fn IsBufferPrecisionSupported(&self, bufferprecision: D2D1_BUFFER_PRECISION) -> super::super::Foundation::BOOL; + fn IsDxgiFormatSupported(&self, format: super::Dxgi::Common::DXGI_FORMAT) -> windows_core::BOOL; + fn IsBufferPrecisionSupported(&self, bufferprecision: D2D1_BUFFER_PRECISION) -> windows_core::BOOL; fn GetImageLocalBounds(&self, image: windows_core::Ref) -> windows_core::Result; fn GetImageWorldBounds(&self, image: windows_core::Ref) -> windows_core::Result; fn GetGlyphRunWorldBounds(&self, baselineorigin: &Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE) -> windows_core::Result; @@ -5586,13 +5586,13 @@ impl ID2D1DeviceContext_Vtbl { } } } - unsafe extern "system" fn IsDxgiFormatSupported(this: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsDxgiFormatSupported(this: *mut core::ffi::c_void, format: super::Dxgi::Common::DXGI_FORMAT) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::IsDxgiFormatSupported(this, core::mem::transmute_copy(&format)) } } - unsafe extern "system" fn IsBufferPrecisionSupported(this: *mut core::ffi::c_void, bufferprecision: D2D1_BUFFER_PRECISION) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsBufferPrecisionSupported(this: *mut core::ffi::c_void, bufferprecision: D2D1_BUFFER_PRECISION) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext_Impl::IsBufferPrecisionSupported(this, core::mem::transmute_copy(&bufferprecision)) @@ -6328,11 +6328,11 @@ pub struct ID2D1DeviceContext4_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite")))] DrawSvgGlyphRun: usize, #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] - pub GetColorBitmapGlyphImage: unsafe extern "system" fn(*mut core::ffi::c_void, super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, Common::D2D_POINT_2F, *mut core::ffi::c_void, f32, u16, super::super::Foundation::BOOL, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, f32, *mut super::super::super::Foundation::Numerics::Matrix3x2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetColorBitmapGlyphImage: unsafe extern "system" fn(*mut core::ffi::c_void, super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, Common::D2D_POINT_2F, *mut core::ffi::c_void, f32, u16, windows_core::BOOL, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, f32, *mut super::super::super::Foundation::Numerics::Matrix3x2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite")))] GetColorBitmapGlyphImage: usize, #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite"))] - pub GetSvgGlyphImage: unsafe extern "system" fn(*mut core::ffi::c_void, Common::D2D_POINT_2F, *mut core::ffi::c_void, f32, u16, super::super::Foundation::BOOL, *const super::super::super::Foundation::Numerics::Matrix3x2, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut super::super::super::Foundation::Numerics::Matrix3x2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetSvgGlyphImage: unsafe extern "system" fn(*mut core::ffi::c_void, Common::D2D_POINT_2F, *mut core::ffi::c_void, f32, u16, windows_core::BOOL, *const super::super::super::Foundation::Numerics::Matrix3x2, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut super::super::super::Foundation::Numerics::Matrix3x2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite")))] GetSvgGlyphImage: usize, } @@ -6345,8 +6345,8 @@ pub trait ID2D1DeviceContext4_Impl: ID2D1DeviceContext3_Impl { fn DrawTextLayout(&self, origin: &Common::D2D_POINT_2F, textlayout: windows_core::Ref, defaultfillbrush: windows_core::Ref, svgglyphstyle: windows_core::Ref, colorpaletteindex: u32, options: D2D1_DRAW_TEXT_OPTIONS); fn DrawColorBitmapGlyphRun(&self, glyphimageformat: super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, baselineorigin: &Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE, bitmapsnapoption: D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION); fn DrawSvgGlyphRun(&self, baselineorigin: &Common::D2D_POINT_2F, glyphrun: *const super::DirectWrite::DWRITE_GLYPH_RUN, defaultfillbrush: windows_core::Ref, svgglyphstyle: windows_core::Ref, colorpaletteindex: u32, measuringmode: super::DirectWrite::DWRITE_MEASURING_MODE); - fn GetColorBitmapGlyphImage(&self, glyphimageformat: super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, glyphorigin: &Common::D2D_POINT_2F, fontface: windows_core::Ref, fontemsize: f32, glyphindex: u16, issideways: super::super::Foundation::BOOL, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, dpix: f32, dpiy: f32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: windows_core::OutRef<'_, ID2D1Image>) -> windows_core::Result<()>; - fn GetSvgGlyphImage(&self, glyphorigin: &Common::D2D_POINT_2F, fontface: windows_core::Ref, fontemsize: f32, glyphindex: u16, issideways: super::super::Foundation::BOOL, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, defaultfillbrush: windows_core::Ref, svgglyphstyle: windows_core::Ref, colorpaletteindex: u32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: windows_core::OutRef<'_, ID2D1CommandList>) -> windows_core::Result<()>; + fn GetColorBitmapGlyphImage(&self, glyphimageformat: super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, glyphorigin: &Common::D2D_POINT_2F, fontface: windows_core::Ref, fontemsize: f32, glyphindex: u16, issideways: windows_core::BOOL, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, dpix: f32, dpiy: f32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: windows_core::OutRef<'_, ID2D1Image>) -> windows_core::Result<()>; + fn GetSvgGlyphImage(&self, glyphorigin: &Common::D2D_POINT_2F, fontface: windows_core::Ref, fontemsize: f32, glyphindex: u16, issideways: windows_core::BOOL, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, defaultfillbrush: windows_core::Ref, svgglyphstyle: windows_core::Ref, colorpaletteindex: u32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: windows_core::OutRef<'_, ID2D1CommandList>) -> windows_core::Result<()>; } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1DeviceContext4_Vtbl { @@ -6387,13 +6387,13 @@ impl ID2D1DeviceContext4_Vtbl { ID2D1DeviceContext4_Impl::DrawSvgGlyphRun(this, core::mem::transmute(&baselineorigin), core::mem::transmute_copy(&glyphrun), core::mem::transmute_copy(&defaultfillbrush), core::mem::transmute_copy(&svgglyphstyle), core::mem::transmute_copy(&colorpaletteindex), core::mem::transmute_copy(&measuringmode)) } } - unsafe extern "system" fn GetColorBitmapGlyphImage(this: *mut core::ffi::c_void, glyphimageformat: super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, glyphorigin: Common::D2D_POINT_2F, fontface: *mut core::ffi::c_void, fontemsize: f32, glyphindex: u16, issideways: super::super::Foundation::BOOL, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, dpix: f32, dpiy: f32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetColorBitmapGlyphImage(this: *mut core::ffi::c_void, glyphimageformat: super::DirectWrite::DWRITE_GLYPH_IMAGE_FORMATS, glyphorigin: Common::D2D_POINT_2F, fontface: *mut core::ffi::c_void, fontemsize: f32, glyphindex: u16, issideways: windows_core::BOOL, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, dpix: f32, dpiy: f32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext4_Impl::GetColorBitmapGlyphImage(this, core::mem::transmute_copy(&glyphimageformat), core::mem::transmute(&glyphorigin), core::mem::transmute_copy(&fontface), core::mem::transmute_copy(&fontemsize), core::mem::transmute_copy(&glyphindex), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy), core::mem::transmute_copy(&glyphtransform), core::mem::transmute_copy(&glyphimage)).into() } } - unsafe extern "system" fn GetSvgGlyphImage(this: *mut core::ffi::c_void, glyphorigin: Common::D2D_POINT_2F, fontface: *mut core::ffi::c_void, fontemsize: f32, glyphindex: u16, issideways: super::super::Foundation::BOOL, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, defaultfillbrush: *mut core::ffi::c_void, svgglyphstyle: *mut core::ffi::c_void, colorpaletteindex: u32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetSvgGlyphImage(this: *mut core::ffi::c_void, glyphorigin: Common::D2D_POINT_2F, fontface: *mut core::ffi::c_void, fontemsize: f32, glyphindex: u16, issideways: windows_core::BOOL, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, defaultfillbrush: *mut core::ffi::c_void, svgglyphstyle: *mut core::ffi::c_void, colorpaletteindex: u32, glyphtransform: *mut super::super::super::Foundation::Numerics::Matrix3x2, glyphimage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1DeviceContext4_Impl::GetSvgGlyphImage(this, core::mem::transmute(&glyphorigin), core::mem::transmute_copy(&fontface), core::mem::transmute_copy(&fontemsize), core::mem::transmute_copy(&glyphindex), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&defaultfillbrush), core::mem::transmute_copy(&svgglyphstyle), core::mem::transmute_copy(&colorpaletteindex), core::mem::transmute_copy(&glyphtransform), core::mem::transmute_copy(&glyphimage)).into() @@ -7018,7 +7018,7 @@ impl ID2D1Effect { #[repr(C)] pub struct ID2D1Effect_Vtbl { pub base__: ID2D1Properties_Vtbl, - pub SetInput: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, super::super::Foundation::BOOL), + pub SetInput: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, windows_core::BOOL), pub SetInputCount: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetInput: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void), pub GetInputCount: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, @@ -7027,7 +7027,7 @@ pub struct ID2D1Effect_Vtbl { unsafe impl Send for ID2D1Effect {} unsafe impl Sync for ID2D1Effect {} pub trait ID2D1Effect_Impl: ID2D1Properties_Impl { - fn SetInput(&self, index: u32, input: windows_core::Ref, invalidate: super::super::Foundation::BOOL); + fn SetInput(&self, index: u32, input: windows_core::Ref, invalidate: windows_core::BOOL); fn SetInputCount(&self, inputcount: u32) -> windows_core::Result<()>; fn GetInput(&self, index: u32, input: windows_core::OutRef<'_, ID2D1Image>); fn GetInputCount(&self) -> u32; @@ -7035,7 +7035,7 @@ pub trait ID2D1Effect_Impl: ID2D1Properties_Impl { } impl ID2D1Effect_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetInput(this: *mut core::ffi::c_void, index: u32, input: *mut core::ffi::c_void, invalidate: super::super::Foundation::BOOL) { + unsafe extern "system" fn SetInput(this: *mut core::ffi::c_void, index: u32, input: *mut core::ffi::c_void, invalidate: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Effect_Impl::SetInput(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&input), core::mem::transmute_copy(&invalidate)) @@ -7140,7 +7140,7 @@ impl ID2D1EffectContext { pub unsafe fn LoadComputeShader(&self, resourceid: *const windows_core::GUID, shaderbuffer: &[u8]) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).LoadComputeShader)(windows_core::Interface::as_raw(self), resourceid, core::mem::transmute(shaderbuffer.as_ptr()), shaderbuffer.len().try_into().unwrap()).ok() } } - pub unsafe fn IsShaderLoaded(&self, shaderid: *const windows_core::GUID) -> super::super::Foundation::BOOL { + pub unsafe fn IsShaderLoaded(&self, shaderid: *const windows_core::GUID) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsShaderLoaded)(windows_core::Interface::as_raw(self), shaderid) } } pub unsafe fn CreateResourceTexture(&self, resourceid: Option<*const windows_core::GUID>, resourcetextureproperties: *const D2D1_RESOURCE_TEXTURE_PROPERTIES, data: Option<&[u8]>, strides: Option<*const u32>) -> windows_core::Result { @@ -7196,7 +7196,7 @@ impl ID2D1EffectContext { pub unsafe fn CheckFeatureSupport(&self, feature: D2D1_FEATURE, featuresupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).CheckFeatureSupport)(windows_core::Interface::as_raw(self), feature, featuresupportdata as _, featuresupportdatasize).ok() } } - pub unsafe fn IsBufferPrecisionSupported(&self, bufferprecision: D2D1_BUFFER_PRECISION) -> super::super::Foundation::BOOL { + pub unsafe fn IsBufferPrecisionSupported(&self, bufferprecision: D2D1_BUFFER_PRECISION) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsBufferPrecisionSupported)(windows_core::Interface::as_raw(self), bufferprecision) } } } @@ -7217,7 +7217,7 @@ pub struct ID2D1EffectContext_Vtbl { pub LoadPixelShader: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const u8, u32) -> windows_core::HRESULT, pub LoadVertexShader: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const u8, u32) -> windows_core::HRESULT, pub LoadComputeShader: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const u8, u32) -> windows_core::HRESULT, - pub IsShaderLoaded: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID) -> super::super::Foundation::BOOL, + pub IsShaderLoaded: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID) -> windows_core::BOOL, pub CreateResourceTexture: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const D2D1_RESOURCE_TEXTURE_PROPERTIES, *const u8, *const u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub FindResourceTexture: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -7232,7 +7232,7 @@ pub struct ID2D1EffectContext_Vtbl { #[cfg(not(feature = "Win32_Graphics_Imaging"))] CreateColorContextFromWicColorContext: usize, pub CheckFeatureSupport: unsafe extern "system" fn(*mut core::ffi::c_void, D2D1_FEATURE, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub IsBufferPrecisionSupported: unsafe extern "system" fn(*mut core::ffi::c_void, D2D1_BUFFER_PRECISION) -> super::super::Foundation::BOOL, + pub IsBufferPrecisionSupported: unsafe extern "system" fn(*mut core::ffi::c_void, D2D1_BUFFER_PRECISION) -> windows_core::BOOL, } unsafe impl Send for ID2D1EffectContext {} unsafe impl Sync for ID2D1EffectContext {} @@ -7249,7 +7249,7 @@ pub trait ID2D1EffectContext_Impl: windows_core::IUnknownImpl { fn LoadPixelShader(&self, shaderid: *const windows_core::GUID, shaderbuffer: *const u8, shaderbuffercount: u32) -> windows_core::Result<()>; fn LoadVertexShader(&self, resourceid: *const windows_core::GUID, shaderbuffer: *const u8, shaderbuffercount: u32) -> windows_core::Result<()>; fn LoadComputeShader(&self, resourceid: *const windows_core::GUID, shaderbuffer: *const u8, shaderbuffercount: u32) -> windows_core::Result<()>; - fn IsShaderLoaded(&self, shaderid: *const windows_core::GUID) -> super::super::Foundation::BOOL; + fn IsShaderLoaded(&self, shaderid: *const windows_core::GUID) -> windows_core::BOOL; fn CreateResourceTexture(&self, resourceid: *const windows_core::GUID, resourcetextureproperties: *const D2D1_RESOURCE_TEXTURE_PROPERTIES, data: *const u8, strides: *const u32, datasize: u32) -> windows_core::Result; fn FindResourceTexture(&self, resourceid: *const windows_core::GUID) -> windows_core::Result; fn CreateVertexBuffer(&self, vertexbufferproperties: *const D2D1_VERTEX_BUFFER_PROPERTIES, resourceid: *const windows_core::GUID, customvertexbufferproperties: *const D2D1_CUSTOM_VERTEX_BUFFER_PROPERTIES) -> windows_core::Result; @@ -7258,7 +7258,7 @@ pub trait ID2D1EffectContext_Impl: windows_core::IUnknownImpl { fn CreateColorContextFromFilename(&self, filename: &windows_core::PCWSTR) -> windows_core::Result; fn CreateColorContextFromWicColorContext(&self, wiccolorcontext: windows_core::Ref) -> windows_core::Result; fn CheckFeatureSupport(&self, feature: D2D1_FEATURE, featuresupportdata: *mut core::ffi::c_void, featuresupportdatasize: u32) -> windows_core::Result<()>; - fn IsBufferPrecisionSupported(&self, bufferprecision: D2D1_BUFFER_PRECISION) -> super::super::Foundation::BOOL; + fn IsBufferPrecisionSupported(&self, bufferprecision: D2D1_BUFFER_PRECISION) -> windows_core::BOOL; } #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1EffectContext_Vtbl { @@ -7371,7 +7371,7 @@ impl ID2D1EffectContext_Vtbl { ID2D1EffectContext_Impl::LoadComputeShader(this, core::mem::transmute_copy(&resourceid), core::mem::transmute_copy(&shaderbuffer), core::mem::transmute_copy(&shaderbuffercount)).into() } } - unsafe extern "system" fn IsShaderLoaded(this: *mut core::ffi::c_void, shaderid: *const windows_core::GUID) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsShaderLoaded(this: *mut core::ffi::c_void, shaderid: *const windows_core::GUID) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1EffectContext_Impl::IsShaderLoaded(this, core::mem::transmute_copy(&shaderid)) @@ -7467,7 +7467,7 @@ impl ID2D1EffectContext_Vtbl { ID2D1EffectContext_Impl::CheckFeatureSupport(this, core::mem::transmute_copy(&feature), core::mem::transmute_copy(&featuresupportdata), core::mem::transmute_copy(&featuresupportdatasize)).into() } } - unsafe extern "system" fn IsBufferPrecisionSupported(this: *mut core::ffi::c_void, bufferprecision: D2D1_BUFFER_PRECISION) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsBufferPrecisionSupported(this: *mut core::ffi::c_void, bufferprecision: D2D1_BUFFER_PRECISION) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1EffectContext_Impl::IsBufferPrecisionSupported(this, core::mem::transmute_copy(&bufferprecision)) @@ -9034,7 +9034,7 @@ impl ID2D1Geometry { } } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub unsafe fn StrokeContainsPoint(&self, point: Common::D2D_POINT_2F, strokewidth: f32, strokestyle: P2, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result + pub unsafe fn StrokeContainsPoint(&self, point: Common::D2D_POINT_2F, strokewidth: f32, strokestyle: P2, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result where P2: windows_core::Param, { @@ -9044,7 +9044,7 @@ impl ID2D1Geometry { } } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub unsafe fn FillContainsPoint(&self, point: Common::D2D_POINT_2F, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result { + pub unsafe fn FillContainsPoint(&self, point: Common::D2D_POINT_2F, worldtransform: Option<*const super::super::super::Foundation::Numerics::Matrix3x2>, flatteningtolerance: f32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FillContainsPoint)(windows_core::Interface::as_raw(self), core::mem::transmute(point), worldtransform.unwrap_or(core::mem::zeroed()) as _, flatteningtolerance, &mut result__).map(|| result__) @@ -9128,11 +9128,11 @@ pub struct ID2D1Geometry_Vtbl { #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] GetWidenedBounds: usize, #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub StrokeContainsPoint: unsafe extern "system" fn(*mut core::ffi::c_void, Common::D2D_POINT_2F, f32, *mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub StrokeContainsPoint: unsafe extern "system" fn(*mut core::ffi::c_void, Common::D2D_POINT_2F, f32, *mut core::ffi::c_void, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] StrokeContainsPoint: usize, #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] - pub FillContainsPoint: unsafe extern "system" fn(*mut core::ffi::c_void, Common::D2D_POINT_2F, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub FillContainsPoint: unsafe extern "system" fn(*mut core::ffi::c_void, Common::D2D_POINT_2F, *const super::super::super::Foundation::Numerics::Matrix3x2, f32, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] FillContainsPoint: usize, #[cfg(feature = "Foundation_Numerics")] @@ -9178,8 +9178,8 @@ unsafe impl Sync for ID2D1Geometry {} pub trait ID2D1Geometry_Impl: ID2D1Resource_Impl { fn GetBounds(&self, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result; fn GetWidenedBounds(&self, strokewidth: f32, strokestyle: windows_core::Ref, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32) -> windows_core::Result; - fn StrokeContainsPoint(&self, point: &Common::D2D_POINT_2F, strokewidth: f32, strokestyle: windows_core::Ref, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32) -> windows_core::Result; - fn FillContainsPoint(&self, point: &Common::D2D_POINT_2F, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32) -> windows_core::Result; + fn StrokeContainsPoint(&self, point: &Common::D2D_POINT_2F, strokewidth: f32, strokestyle: windows_core::Ref, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32) -> windows_core::Result; + fn FillContainsPoint(&self, point: &Common::D2D_POINT_2F, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32) -> windows_core::Result; fn CompareWithGeometry(&self, inputgeometry: windows_core::Ref, inputgeometrytransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32) -> windows_core::Result; fn Simplify(&self, simplificationoption: D2D1_GEOMETRY_SIMPLIFICATION_OPTION, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, geometrysink: windows_core::Ref) -> windows_core::Result<()>; fn Tessellate(&self, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, tessellationsink: windows_core::Ref) -> windows_core::Result<()>; @@ -9217,7 +9217,7 @@ impl ID2D1Geometry_Vtbl { } } } - unsafe extern "system" fn StrokeContainsPoint(this: *mut core::ffi::c_void, point: Common::D2D_POINT_2F, strokewidth: f32, strokestyle: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, contains: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn StrokeContainsPoint(this: *mut core::ffi::c_void, point: Common::D2D_POINT_2F, strokewidth: f32, strokestyle: *mut core::ffi::c_void, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, contains: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Geometry_Impl::StrokeContainsPoint(this, core::mem::transmute(&point), core::mem::transmute_copy(&strokewidth), core::mem::transmute_copy(&strokestyle), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance)) { @@ -9229,7 +9229,7 @@ impl ID2D1Geometry_Vtbl { } } } - unsafe extern "system" fn FillContainsPoint(this: *mut core::ffi::c_void, point: Common::D2D_POINT_2F, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, contains: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn FillContainsPoint(this: *mut core::ffi::c_void, point: Common::D2D_POINT_2F, worldtransform: *const super::super::super::Foundation::Numerics::Matrix3x2, flatteningtolerance: f32, contains: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1Geometry_Impl::FillContainsPoint(this, core::mem::transmute(&point), core::mem::transmute_copy(&worldtransform), core::mem::transmute_copy(&flatteningtolerance)) { @@ -10050,7 +10050,7 @@ impl ID2D1ImageSource { pub unsafe fn OfferResources(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).OfferResources)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn TryReclaimResources(&self) -> windows_core::Result { + pub unsafe fn TryReclaimResources(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).TryReclaimResources)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -10061,13 +10061,13 @@ impl ID2D1ImageSource { pub struct ID2D1ImageSource_Vtbl { pub base__: ID2D1Image_Vtbl, pub OfferResources: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub TryReclaimResources: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub TryReclaimResources: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } unsafe impl Send for ID2D1ImageSource {} unsafe impl Sync for ID2D1ImageSource {} pub trait ID2D1ImageSource_Impl: ID2D1Image_Impl { fn OfferResources(&self) -> windows_core::Result<()>; - fn TryReclaimResources(&self) -> windows_core::Result; + fn TryReclaimResources(&self) -> windows_core::Result; } impl ID2D1ImageSource_Vtbl { pub const fn new() -> Self { @@ -10077,7 +10077,7 @@ impl ID2D1ImageSource_Vtbl { ID2D1ImageSource_Impl::OfferResources(this).into() } } - unsafe extern "system" fn TryReclaimResources(this: *mut core::ffi::c_void, resourcesdiscarded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn TryReclaimResources(this: *mut core::ffi::c_void, resourcesdiscarded: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID2D1ImageSource_Impl::TryReclaimResources(this) { @@ -10695,7 +10695,7 @@ impl windows_core::RuntimeName for ID2D1Mesh {} windows_core::imp::define_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 { + pub unsafe fn GetMultithreadProtected(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetMultithreadProtected)(windows_core::Interface::as_raw(self)) } } pub unsafe fn Enter(&self) { @@ -10708,20 +10708,20 @@ impl ID2D1Multithread { #[repr(C)] pub struct ID2D1Multithread_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetMultithreadProtected: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub GetMultithreadProtected: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub Enter: unsafe extern "system" fn(*mut core::ffi::c_void), pub Leave: unsafe extern "system" fn(*mut core::ffi::c_void), } unsafe impl Send for ID2D1Multithread {} unsafe impl Sync for ID2D1Multithread {} pub trait ID2D1Multithread_Impl: windows_core::IUnknownImpl { - fn GetMultithreadProtected(&self) -> super::super::Foundation::BOOL; + fn GetMultithreadProtected(&self) -> windows_core::BOOL; fn Enter(&self); fn Leave(&self); } impl ID2D1Multithread_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetMultithreadProtected(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetMultithreadProtected(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1Multithread_Impl::GetMultithreadProtected(this) @@ -11432,7 +11432,7 @@ pub struct ID2D1RenderInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetInputDescription: unsafe extern "system" fn(*mut core::ffi::c_void, u32, D2D1_INPUT_DESCRIPTION) -> windows_core::HRESULT, pub SetOutputBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, D2D1_BUFFER_PRECISION, D2D1_CHANNEL_DEPTH) -> windows_core::HRESULT, - pub SetCached: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL), + pub SetCached: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), pub SetInstructionCountHint: unsafe extern "system" fn(*mut core::ffi::c_void, u32), } unsafe impl Send for ID2D1RenderInfo {} @@ -11440,7 +11440,7 @@ unsafe impl Sync for ID2D1RenderInfo {} pub trait ID2D1RenderInfo_Impl: windows_core::IUnknownImpl { fn SetInputDescription(&self, inputindex: u32, inputdescription: &D2D1_INPUT_DESCRIPTION) -> windows_core::Result<()>; fn SetOutputBuffer(&self, bufferprecision: D2D1_BUFFER_PRECISION, channeldepth: D2D1_CHANNEL_DEPTH) -> windows_core::Result<()>; - fn SetCached(&self, iscached: super::super::Foundation::BOOL); + fn SetCached(&self, iscached: windows_core::BOOL); fn SetInstructionCountHint(&self, instructioncount: u32); } impl ID2D1RenderInfo_Vtbl { @@ -11457,7 +11457,7 @@ impl ID2D1RenderInfo_Vtbl { ID2D1RenderInfo_Impl::SetOutputBuffer(this, core::mem::transmute_copy(&bufferprecision), core::mem::transmute_copy(&channeldepth)).into() } } - unsafe extern "system" fn SetCached(this: *mut core::ffi::c_void, iscached: super::super::Foundation::BOOL) { + unsafe extern "system" fn SetCached(this: *mut core::ffi::c_void, iscached: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderInfo_Impl::SetCached(this, core::mem::transmute_copy(&iscached)) @@ -11807,7 +11807,7 @@ impl ID2D1RenderTarget { unsafe { (windows_core::Interface::vtable(self).GetMaximumBitmapSize)(windows_core::Interface::as_raw(self)) } } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] - pub unsafe fn IsSupported(&self, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> super::super::Foundation::BOOL { + pub unsafe fn IsSupported(&self, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsSupported)(windows_core::Interface::as_raw(self), rendertargetproperties) } } } @@ -11963,7 +11963,7 @@ pub struct ID2D1RenderTarget_Vtbl { GetPixelSize: usize, pub GetMaximumBitmapSize: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] - pub IsSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *const D2D1_RENDER_TARGET_PROPERTIES) -> super::super::Foundation::BOOL, + pub IsSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *const D2D1_RENDER_TARGET_PROPERTIES) -> windows_core::BOOL, #[cfg(not(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common")))] IsSupported: usize, } @@ -12023,7 +12023,7 @@ pub trait ID2D1RenderTarget_Impl: ID2D1Resource_Impl { fn GetSize(&self) -> Common::D2D_SIZE_F; fn GetPixelSize(&self) -> Common::D2D_SIZE_U; fn GetMaximumBitmapSize(&self) -> u32; - fn IsSupported(&self, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> super::super::Foundation::BOOL; + fn IsSupported(&self, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> windows_core::BOOL; } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite", feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Imaging"))] impl ID2D1RenderTarget_Vtbl { @@ -12400,7 +12400,7 @@ impl ID2D1RenderTarget_Vtbl { ID2D1RenderTarget_Impl::GetMaximumBitmapSize(this) } } - unsafe extern "system" fn IsSupported(this: *mut core::ffi::c_void, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsSupported(this: *mut core::ffi::c_void, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1RenderTarget_Impl::IsSupported(this, core::mem::transmute_copy(&rendertargetproperties)) @@ -13337,7 +13337,7 @@ impl ID2D1SvgElement { pub unsafe fn GetTagNameLength(&self) -> u32 { unsafe { (windows_core::Interface::vtable(self).GetTagNameLength)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn IsTextContent(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsTextContent(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsTextContent)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetParent(&self) -> windows_core::Result { @@ -13347,7 +13347,7 @@ impl ID2D1SvgElement { windows_core::Type::from_abi(result__) } } - pub unsafe fn HasChildren(&self) -> super::super::Foundation::BOOL { + pub unsafe fn HasChildren(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).HasChildren)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetFirstChild(&self) -> windows_core::Result { @@ -13417,7 +13417,7 @@ impl ID2D1SvgElement { (windows_core::Interface::vtable(self).CreateChild)(windows_core::Interface::as_raw(self), tagname.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn IsAttributeSpecified(&self, name: P0, inherited: Option<*mut super::super::Foundation::BOOL>) -> super::super::Foundation::BOOL + pub unsafe fn IsAttributeSpecified(&self, name: P0, inherited: Option<*mut windows_core::BOOL>) -> windows_core::BOOL where P0: windows_core::Param, { @@ -13426,10 +13426,10 @@ impl ID2D1SvgElement { pub unsafe fn GetSpecifiedAttributeCount(&self) -> u32 { unsafe { (windows_core::Interface::vtable(self).GetSpecifiedAttributeCount)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn GetSpecifiedAttributeName(&self, index: u32, name: &mut [u16], inherited: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { + pub unsafe fn GetSpecifiedAttributeName(&self, index: u32, name: &mut [u16], inherited: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetSpecifiedAttributeName)(windows_core::Interface::as_raw(self), index, core::mem::transmute(name.as_ptr()), name.len().try_into().unwrap(), inherited.unwrap_or(core::mem::zeroed()) as _).ok() } } - pub unsafe fn GetSpecifiedAttributeNameLength(&self, index: u32, namelength: *mut u32, inherited: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { + pub unsafe fn GetSpecifiedAttributeNameLength(&self, index: u32, namelength: *mut u32, inherited: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetSpecifiedAttributeNameLength)(windows_core::Interface::as_raw(self), index, namelength as _, inherited.unwrap_or(core::mem::zeroed()) as _).ok() } } pub unsafe fn RemoveAttribute(&self, name: P0) -> windows_core::Result<()> @@ -13503,9 +13503,9 @@ pub struct ID2D1SvgElement_Vtbl { pub GetDocument: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void), pub GetTagName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32) -> windows_core::HRESULT, pub GetTagNameLength: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, - pub IsTextContent: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsTextContent: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetParent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void), - pub HasChildren: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub HasChildren: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetFirstChild: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void), pub GetLastChild: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void), pub GetPreviousChild: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -13515,10 +13515,10 @@ pub struct ID2D1SvgElement_Vtbl { pub ReplaceChild: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveChild: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateChild: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsAttributeSpecified: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL, + pub IsAttributeSpecified: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::BOOL, pub GetSpecifiedAttributeCount: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, - pub GetSpecifiedAttributeName: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PWSTR, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetSpecifiedAttributeNameLength: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetSpecifiedAttributeName: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PWSTR, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub GetSpecifiedAttributeNameLength: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub RemoveAttribute: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub SetTextValue: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32) -> windows_core::HRESULT, pub GetTextValue: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32) -> windows_core::HRESULT, @@ -13537,9 +13537,9 @@ pub trait ID2D1SvgElement_Impl: ID2D1Resource_Impl { fn GetDocument(&self, document: windows_core::OutRef<'_, ID2D1SvgDocument>); fn GetTagName(&self, name: windows_core::PWSTR, namecount: u32) -> windows_core::Result<()>; fn GetTagNameLength(&self) -> u32; - fn IsTextContent(&self) -> super::super::Foundation::BOOL; + fn IsTextContent(&self) -> windows_core::BOOL; fn GetParent(&self, parent: windows_core::OutRef<'_, ID2D1SvgElement>); - fn HasChildren(&self) -> super::super::Foundation::BOOL; + fn HasChildren(&self) -> windows_core::BOOL; fn GetFirstChild(&self, child: windows_core::OutRef<'_, ID2D1SvgElement>); fn GetLastChild(&self, child: windows_core::OutRef<'_, ID2D1SvgElement>); fn GetPreviousChild(&self, referencechild: windows_core::Ref) -> windows_core::Result; @@ -13549,10 +13549,10 @@ pub trait ID2D1SvgElement_Impl: ID2D1Resource_Impl { fn ReplaceChild(&self, newchild: windows_core::Ref, oldchild: windows_core::Ref) -> windows_core::Result<()>; fn RemoveChild(&self, oldchild: windows_core::Ref) -> windows_core::Result<()>; fn CreateChild(&self, tagname: &windows_core::PCWSTR) -> windows_core::Result; - fn IsAttributeSpecified(&self, name: &windows_core::PCWSTR, inherited: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; + fn IsAttributeSpecified(&self, name: &windows_core::PCWSTR, inherited: *mut windows_core::BOOL) -> windows_core::BOOL; fn GetSpecifiedAttributeCount(&self) -> u32; - fn GetSpecifiedAttributeName(&self, index: u32, name: windows_core::PWSTR, namecount: u32, inherited: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetSpecifiedAttributeNameLength(&self, index: u32, namelength: *mut u32, inherited: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetSpecifiedAttributeName(&self, index: u32, name: windows_core::PWSTR, namecount: u32, inherited: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn GetSpecifiedAttributeNameLength(&self, index: u32, namelength: *mut u32, inherited: *mut windows_core::BOOL) -> windows_core::Result<()>; fn RemoveAttribute(&self, name: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetTextValue(&self, name: &windows_core::PCWSTR, namecount: u32) -> windows_core::Result<()>; fn GetTextValue(&self, name: windows_core::PWSTR, namecount: u32) -> windows_core::Result<()>; @@ -13585,7 +13585,7 @@ impl ID2D1SvgElement_Vtbl { ID2D1SvgElement_Impl::GetTagNameLength(this) } } - unsafe extern "system" fn IsTextContent(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsTextContent(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::IsTextContent(this) @@ -13597,7 +13597,7 @@ impl ID2D1SvgElement_Vtbl { ID2D1SvgElement_Impl::GetParent(this, core::mem::transmute_copy(&parent)) } } - unsafe extern "system" fn HasChildren(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn HasChildren(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::HasChildren(this) @@ -13675,7 +13675,7 @@ impl ID2D1SvgElement_Vtbl { } } } - unsafe extern "system" fn IsAttributeSpecified(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, inherited: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsAttributeSpecified(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, inherited: *mut windows_core::BOOL) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::IsAttributeSpecified(this, core::mem::transmute(&name), core::mem::transmute_copy(&inherited)) @@ -13687,13 +13687,13 @@ impl ID2D1SvgElement_Vtbl { ID2D1SvgElement_Impl::GetSpecifiedAttributeCount(this) } } - unsafe extern "system" fn GetSpecifiedAttributeName(this: *mut core::ffi::c_void, index: u32, name: windows_core::PWSTR, namecount: u32, inherited: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetSpecifiedAttributeName(this: *mut core::ffi::c_void, index: u32, name: windows_core::PWSTR, namecount: u32, inherited: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::GetSpecifiedAttributeName(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&name), core::mem::transmute_copy(&namecount), core::mem::transmute_copy(&inherited)).into() } } - unsafe extern "system" fn GetSpecifiedAttributeNameLength(this: *mut core::ffi::c_void, index: u32, namelength: *mut u32, inherited: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetSpecifiedAttributeNameLength(this: *mut core::ffi::c_void, index: u32, namelength: *mut u32, inherited: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID2D1SvgElement_Impl::GetSpecifiedAttributeNameLength(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&namelength), core::mem::transmute_copy(&inherited)).into() 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 dc0a56f83c..e4f6375de2 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 @@ -224,21 +224,21 @@ impl core::ops::Deref for IDxcBlobEncoding { } windows_core::imp::interface_hierarchy!(IDxcBlobEncoding, windows_core::IUnknown, IDxcBlob); impl IDxcBlobEncoding { - pub unsafe fn GetEncoding(&self, pknown: *mut super::super::super::Foundation::BOOL, pcodepage: *mut DXC_CP) -> windows_core::Result<()> { + pub unsafe fn GetEncoding(&self, pknown: *mut windows_core::BOOL, pcodepage: *mut DXC_CP) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetEncoding)(windows_core::Interface::as_raw(self), pknown as _, pcodepage as _).ok() } } } #[repr(C)] pub struct IDxcBlobEncoding_Vtbl { pub base__: IDxcBlob_Vtbl, - pub GetEncoding: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL, *mut DXC_CP) -> windows_core::HRESULT, + pub GetEncoding: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut DXC_CP) -> windows_core::HRESULT, } pub trait IDxcBlobEncoding_Impl: IDxcBlob_Impl { - fn GetEncoding(&self, pknown: *mut super::super::super::Foundation::BOOL, pcodepage: *mut DXC_CP) -> windows_core::Result<()>; + fn GetEncoding(&self, pknown: *mut windows_core::BOOL, pcodepage: *mut DXC_CP) -> windows_core::Result<()>; } impl IDxcBlobEncoding_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetEncoding(this: *mut core::ffi::c_void, pknown: *mut super::super::super::Foundation::BOOL, pcodepage: *mut DXC_CP) -> windows_core::HRESULT { + unsafe extern "system" fn GetEncoding(this: *mut core::ffi::c_void, pknown: *mut windows_core::BOOL, pcodepage: *mut DXC_CP) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcBlobEncoding_Impl::GetEncoding(this, core::mem::transmute_copy(&pknown), core::mem::transmute_copy(&pcodepage)).into() @@ -1663,7 +1663,7 @@ impl IDxcPdbUtils { (windows_core::Interface::vtable(self).GetName)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn IsFullPDB(&self) -> super::super::super::Foundation::BOOL { + pub unsafe fn IsFullPDB(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsFullPDB)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetFullPDB(&self) -> windows_core::Result { @@ -1720,7 +1720,7 @@ pub struct IDxcPdbUtils_Vtbl { pub GetMainFileName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetHash: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsFullPDB: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::super::Foundation::BOOL, + pub IsFullPDB: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetFullPDB: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetVersionInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCompiler: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1746,7 +1746,7 @@ pub trait IDxcPdbUtils_Impl: windows_core::IUnknownImpl { fn GetMainFileName(&self) -> windows_core::Result; fn GetHash(&self) -> windows_core::Result; fn GetName(&self) -> windows_core::Result; - fn IsFullPDB(&self) -> super::super::super::Foundation::BOOL; + fn IsFullPDB(&self) -> windows_core::BOOL; fn GetFullPDB(&self) -> windows_core::Result; fn GetVersionInfo(&self) -> windows_core::Result; fn SetCompiler(&self, pcompiler: windows_core::Ref) -> windows_core::Result<()>; @@ -1948,7 +1948,7 @@ impl IDxcPdbUtils_Vtbl { } } } - unsafe extern "system" fn IsFullPDB(this: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn IsFullPDB(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcPdbUtils_Impl::IsFullPDB(this) @@ -2050,7 +2050,7 @@ impl core::ops::Deref for IDxcResult { } windows_core::imp::interface_hierarchy!(IDxcResult, windows_core::IUnknown, IDxcOperationResult); impl IDxcResult { - pub unsafe fn HasOutput(&self, dxcoutkind: DXC_OUT_KIND) -> super::super::super::Foundation::BOOL { + pub unsafe fn HasOutput(&self, dxcoutkind: DXC_OUT_KIND) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).HasOutput)(windows_core::Interface::as_raw(self), dxcoutkind) } } pub unsafe fn GetOutput(&self, dxcoutkind: DXC_OUT_KIND, ppoutputname: *mut Option, result__: *mut Option) -> windows_core::Result<()> @@ -2072,14 +2072,14 @@ impl IDxcResult { #[repr(C)] pub struct IDxcResult_Vtbl { pub base__: IDxcOperationResult_Vtbl, - pub HasOutput: unsafe extern "system" fn(*mut core::ffi::c_void, DXC_OUT_KIND) -> super::super::super::Foundation::BOOL, + pub HasOutput: unsafe extern "system" fn(*mut core::ffi::c_void, DXC_OUT_KIND) -> windows_core::BOOL, pub GetOutput: unsafe extern "system" fn(*mut core::ffi::c_void, DXC_OUT_KIND, *const windows_core::GUID, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetNumOutputs: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, pub GetOutputByIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> DXC_OUT_KIND, pub PrimaryOutput: unsafe extern "system" fn(*mut core::ffi::c_void) -> DXC_OUT_KIND, } pub trait IDxcResult_Impl: IDxcOperationResult_Impl { - fn HasOutput(&self, dxcoutkind: DXC_OUT_KIND) -> super::super::super::Foundation::BOOL; + fn HasOutput(&self, dxcoutkind: DXC_OUT_KIND) -> windows_core::BOOL; fn GetOutput(&self, dxcoutkind: DXC_OUT_KIND, iid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void, ppoutputname: windows_core::OutRef<'_, IDxcBlobUtf16>) -> windows_core::Result<()>; fn GetNumOutputs(&self) -> u32; fn GetOutputByIndex(&self, index: u32) -> DXC_OUT_KIND; @@ -2087,7 +2087,7 @@ pub trait IDxcResult_Impl: IDxcOperationResult_Impl { } impl IDxcResult_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn HasOutput(this: *mut core::ffi::c_void, dxcoutkind: DXC_OUT_KIND) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn HasOutput(this: *mut core::ffi::c_void, dxcoutkind: DXC_OUT_KIND) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDxcResult_Impl::HasOutput(this, core::mem::transmute_copy(&dxcoutkind)) diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Fxc/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Fxc/mod.rs index cc78a95e06..85d8b5c552 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Fxc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Fxc/mod.rs @@ -207,7 +207,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DWriteBlobToFile(pblob : * mut core::ffi::c_void, pfilename : windows_core::PCWSTR, boverwrite : super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("d3dcompiler_47.dll" "system" fn D3DWriteBlobToFile(pblob : * mut core::ffi::c_void, pfilename : windows_core::PCWSTR, boverwrite : windows_core::BOOL) -> windows_core::HRESULT); unsafe { D3DWriteBlobToFile(pblob.param().abi(), pfilename.param().abi(), boverwrite.into()).ok() } } pub const D3DCOMPILER_DLL_A: windows_core::PCSTR = windows_core::s!("d3dcompiler_47.dll"); 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 bbcad47b97..7179f48866 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/mod.rs @@ -105,7 +105,7 @@ pub unsafe fn D3D10DisassembleEffect(peffect: P0, enablecolorcode: bool) -> where P0: windows_core::Param, { - windows_targets::link!("d3d10.dll" "system" fn D3D10DisassembleEffect(peffect : * mut core::ffi::c_void, enablecolorcode : super::super::Foundation:: BOOL, ppdisassembly : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("d3d10.dll" "system" fn D3D10DisassembleEffect(peffect : * mut core::ffi::c_void, enablecolorcode : windows_core::BOOL, ppdisassembly : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); D3D10DisassembleEffect(peffect.param().abi(), enablecolorcode.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -117,7 +117,7 @@ pub unsafe fn D3D10DisassembleShader(pshader: *const core::ffi::c_void, byte where P3: windows_core::Param, { - windows_targets::link!("d3d10.dll" "system" fn D3D10DisassembleShader(pshader : *const core::ffi::c_void, bytecodelength : usize, enablecolorcode : super::super::Foundation:: BOOL, pcomments : windows_core::PCSTR, ppdisassembly : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("d3d10.dll" "system" fn D3D10DisassembleShader(pshader : *const core::ffi::c_void, bytecodelength : usize, enablecolorcode : windows_core::BOOL, pcomments : windows_core::PCSTR, ppdisassembly : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); D3D10DisassembleShader(pshader, bytecodelength, enablecolorcode.into(), pcomments.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -227,8 +227,8 @@ pub unsafe fn D3D10StateBlockMaskEnableCapture(pmask: *mut D3D10_STATE_BLOCK_MAS unsafe { D3D10StateBlockMaskEnableCapture(pmask as _, statetype, rangestart, rangelength).ok() } } #[inline] -pub unsafe fn D3D10StateBlockMaskGetSetting(pmask: *const D3D10_STATE_BLOCK_MASK, statetype: D3D10_DEVICE_STATE_TYPES, entry: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("d3d10.dll" "system" fn D3D10StateBlockMaskGetSetting(pmask : *const D3D10_STATE_BLOCK_MASK, statetype : D3D10_DEVICE_STATE_TYPES, entry : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn D3D10StateBlockMaskGetSetting(pmask: *const D3D10_STATE_BLOCK_MASK, statetype: D3D10_DEVICE_STATE_TYPES, entry: u32) -> windows_core::BOOL { + windows_targets::link!("d3d10.dll" "system" fn D3D10StateBlockMaskGetSetting(pmask : *const D3D10_STATE_BLOCK_MASK, statetype : D3D10_DEVICE_STATE_TYPES, entry : u32) -> windows_core::BOOL); unsafe { D3D10StateBlockMaskGetSetting(pmask, statetype, entry) } } #[inline] @@ -292,8 +292,8 @@ pub const D3D10_BLEND_BLEND_FACTOR: D3D10_BLEND = D3D10_BLEND(14i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D10_BLEND_DESC { - pub AlphaToCoverageEnable: super::super::Foundation::BOOL, - pub BlendEnable: [super::super::Foundation::BOOL; 8], + pub AlphaToCoverageEnable: windows_core::BOOL, + pub BlendEnable: [windows_core::BOOL; 8], pub SrcBlend: D3D10_BLEND, pub DestBlend: D3D10_BLEND, pub BlendOp: D3D10_BLEND_OP, @@ -310,8 +310,8 @@ impl Default for D3D10_BLEND_DESC { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D10_BLEND_DESC1 { - pub AlphaToCoverageEnable: super::super::Foundation::BOOL, - pub IndependentBlendEnable: super::super::Foundation::BOOL, + pub AlphaToCoverageEnable: windows_core::BOOL, + pub IndependentBlendEnable: windows_core::BOOL, pub RenderTarget: [D3D10_RENDER_TARGET_BLEND_DESC1; 8], } impl Default for D3D10_BLEND_DESC1 { @@ -624,10 +624,10 @@ impl Default for D3D10_DEPTH_STENCILOP_DESC { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D10_DEPTH_STENCIL_DESC { - pub DepthEnable: super::super::Foundation::BOOL, + pub DepthEnable: windows_core::BOOL, pub DepthWriteMask: D3D10_DEPTH_WRITE_MASK, pub DepthFunc: D3D10_COMPARISON_FUNC, - pub StencilEnable: super::super::Foundation::BOOL, + pub StencilEnable: windows_core::BOOL, pub StencilReadMask: u8, pub StencilWriteMask: u8, pub FrontFace: D3D10_DEPTH_STENCILOP_DESC, @@ -724,7 +724,7 @@ pub const D3D10_EFFECT_COMPILE_CHILD_EFFECT: u32 = 1u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D10_EFFECT_DESC { - pub IsChildEffect: super::super::Foundation::BOOL, + pub IsChildEffect: windows_core::BOOL, pub ConstantBuffers: u32, pub SharedConstantBuffers: u32, pub GlobalVariables: u32, @@ -740,7 +740,7 @@ impl Default for D3D10_EFFECT_DESC { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D10_EFFECT_SHADER_DESC { pub pInputSignature: *const u8, - pub IsInline: super::super::Foundation::BOOL, + pub IsInline: windows_core::BOOL, pub pBytecode: *const u8, pub BytecodeLength: u32, pub SODecl: windows_core::PCSTR, @@ -1640,7 +1640,7 @@ impl Default for D3D10_QUERY_DATA_SO_STATISTICS { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D10_QUERY_DATA_TIMESTAMP_DISJOINT { pub Frequency: u64, - pub Disjoint: super::super::Foundation::BOOL, + pub Disjoint: windows_core::BOOL, } impl Default for D3D10_QUERY_DATA_TIMESTAMP_DISJOINT { fn default() -> Self { @@ -1679,14 +1679,14 @@ pub const D3D10_RAISE_FLAG_DRIVER_INTERNAL_ERROR: D3D10_RAISE_FLAG = D3D10_RAISE pub struct D3D10_RASTERIZER_DESC { pub FillMode: D3D10_FILL_MODE, pub CullMode: D3D10_CULL_MODE, - pub FrontCounterClockwise: super::super::Foundation::BOOL, + pub FrontCounterClockwise: windows_core::BOOL, pub DepthBias: i32, pub DepthBiasClamp: f32, pub SlopeScaledDepthBias: f32, - pub DepthClipEnable: super::super::Foundation::BOOL, - pub ScissorEnable: super::super::Foundation::BOOL, - pub MultisampleEnable: super::super::Foundation::BOOL, - pub AntialiasedLineEnable: super::super::Foundation::BOOL, + pub DepthClipEnable: windows_core::BOOL, + pub ScissorEnable: windows_core::BOOL, + pub MultisampleEnable: windows_core::BOOL, + pub AntialiasedLineEnable: windows_core::BOOL, } impl Default for D3D10_RASTERIZER_DESC { fn default() -> Self { @@ -1697,7 +1697,7 @@ pub const D3D10_REGKEY_PATH: windows_core::PCWSTR = windows_core::w!("Software\\ #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D10_RENDER_TARGET_BLEND_DESC1 { - pub BlendEnable: super::super::Foundation::BOOL, + pub BlendEnable: windows_core::BOOL, pub SrcBlend: D3D10_BLEND, pub DestBlend: D3D10_BLEND, pub BlendOp: D3D10_BLEND_OP, @@ -1940,8 +1940,8 @@ pub struct D3D10_SHADER_DEBUG_OUTPUTVAR { pub iValueMax: i32, pub fValueMin: f32, pub fValueMax: f32, - pub bNaNPossible: super::super::Foundation::BOOL, - pub bInfPossible: super::super::Foundation::BOOL, + pub bNaNPossible: windows_core::BOOL, + pub bInfPossible: windows_core::BOOL, } impl Default for D3D10_SHADER_DEBUG_OUTPUTVAR { fn default() -> Self { @@ -3435,7 +3435,7 @@ impl ID3D10Device { pub unsafe fn VSGetSamplers(&self, startslot: u32, ppsamplers: Option<&mut [Option]>) { unsafe { (windows_core::Interface::vtable(self).VSGetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } } - pub unsafe fn GetPredication(&self, pppredicate: Option<*mut Option>, ppredicatevalue: Option<*mut super::super::Foundation::BOOL>) { + pub unsafe fn GetPredication(&self, pppredicate: Option<*mut Option>, ppredicatevalue: Option<*mut windows_core::BOOL>) { unsafe { (windows_core::Interface::vtable(self).GetPredication)(windows_core::Interface::as_raw(self), pppredicate.unwrap_or(core::mem::zeroed()) as _, ppredicatevalue.unwrap_or(core::mem::zeroed()) as _) } } pub unsafe fn GSGetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&mut [Option]>) { @@ -3642,7 +3642,7 @@ pub struct ID3D10Device_Vtbl { IASetPrimitiveTopology: usize, pub VSSetShaderResources: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const *mut core::ffi::c_void), pub VSSetSamplers: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const *mut core::ffi::c_void), - pub SetPredication: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL), + pub SetPredication: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL), pub GSSetShaderResources: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const *mut core::ffi::c_void), pub GSSetSamplers: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const *mut core::ffi::c_void), pub OMSetRenderTargets: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const *mut core::ffi::c_void, *mut core::ffi::c_void), @@ -3683,7 +3683,7 @@ pub struct ID3D10Device_Vtbl { IAGetPrimitiveTopology: usize, pub VSGetShaderResources: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void), pub VSGetSamplers: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void), - pub GetPredication: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut super::super::Foundation::BOOL), + pub GetPredication: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut windows_core::BOOL), pub GSGetShaderResources: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void), pub GSGetSamplers: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void), pub OMGetRenderTargets: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void), @@ -3778,7 +3778,7 @@ pub trait ID3D10Device_Impl: windows_core::IUnknownImpl { fn IASetPrimitiveTopology(&self, topology: super::Direct3D::D3D_PRIMITIVE_TOPOLOGY); fn VSSetShaderResources(&self, startslot: u32, numviews: u32, ppshaderresourceviews: *const Option); fn VSSetSamplers(&self, startslot: u32, numsamplers: u32, ppsamplers: *const Option); - fn SetPredication(&self, ppredicate: windows_core::Ref, predicatevalue: super::super::Foundation::BOOL); + fn SetPredication(&self, ppredicate: windows_core::Ref, predicatevalue: windows_core::BOOL); fn GSSetShaderResources(&self, startslot: u32, numviews: u32, ppshaderresourceviews: *const Option); fn GSSetSamplers(&self, startslot: u32, numsamplers: u32, ppsamplers: *const Option); fn OMSetRenderTargets(&self, numviews: u32, pprendertargetviews: *const Option, pdepthstencilview: windows_core::Ref); @@ -3810,7 +3810,7 @@ pub trait ID3D10Device_Impl: windows_core::IUnknownImpl { fn IAGetPrimitiveTopology(&self, ptopology: *mut super::Direct3D::D3D_PRIMITIVE_TOPOLOGY); fn VSGetShaderResources(&self, startslot: u32, numviews: u32, ppshaderresourceviews: windows_core::OutRef<'_, ID3D10ShaderResourceView>); fn VSGetSamplers(&self, startslot: u32, numsamplers: u32, ppsamplers: windows_core::OutRef<'_, ID3D10SamplerState>); - fn GetPredication(&self, pppredicate: windows_core::OutRef<'_, ID3D10Predicate>, ppredicatevalue: *mut super::super::Foundation::BOOL); + fn GetPredication(&self, pppredicate: windows_core::OutRef<'_, ID3D10Predicate>, ppredicatevalue: *mut windows_core::BOOL); fn GSGetShaderResources(&self, startslot: u32, numviews: u32, ppshaderresourceviews: windows_core::OutRef<'_, ID3D10ShaderResourceView>); fn GSGetSamplers(&self, startslot: u32, numsamplers: u32, ppsamplers: windows_core::OutRef<'_, ID3D10SamplerState>); fn OMGetRenderTargets(&self, numviews: u32, pprendertargetviews: windows_core::OutRef<'_, ID3D10RenderTargetView>, ppdepthstencilview: windows_core::OutRef<'_, ID3D10DepthStencilView>); @@ -3967,7 +3967,7 @@ impl ID3D10Device_Vtbl { ID3D10Device_Impl::VSSetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } } - unsafe extern "system" fn SetPredication(this: *mut core::ffi::c_void, ppredicate: *mut core::ffi::c_void, predicatevalue: super::super::Foundation::BOOL) { + unsafe extern "system" fn SetPredication(this: *mut core::ffi::c_void, ppredicate: *mut core::ffi::c_void, predicatevalue: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::SetPredication(this, core::mem::transmute_copy(&ppredicate), core::mem::transmute_copy(&predicatevalue)) @@ -4159,7 +4159,7 @@ impl ID3D10Device_Vtbl { ID3D10Device_Impl::VSGetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } } - unsafe extern "system" fn GetPredication(this: *mut core::ffi::c_void, pppredicate: *mut *mut core::ffi::c_void, ppredicatevalue: *mut super::super::Foundation::BOOL) { + unsafe extern "system" fn GetPredication(this: *mut core::ffi::c_void, pppredicate: *mut *mut core::ffi::c_void, ppredicatevalue: *mut windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Device_Impl::GetPredication(this, core::mem::transmute_copy(&pppredicate), core::mem::transmute_copy(&ppredicatevalue)) @@ -4720,10 +4720,10 @@ impl windows_core::RuntimeName for ID3D10DeviceChild {} windows_core::imp::define_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 { + pub unsafe fn IsValid(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsValid)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn IsPool(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsPool(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsPool)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetDevice(&self) -> windows_core::Result { @@ -4771,15 +4771,15 @@ impl ID3D10Effect { pub unsafe fn Optimize(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Optimize)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn IsOptimized(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsOptimized(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsOptimized)(windows_core::Interface::as_raw(self)) } } } #[repr(C)] pub struct ID3D10Effect_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsValid: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, - pub IsPool: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsValid: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, + pub IsPool: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetDevice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDesc: unsafe extern "system" fn(*mut core::ffi::c_void, *mut D3D10_EFFECT_DESC) -> windows_core::HRESULT, pub GetConstantBufferByIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> Option, @@ -4790,13 +4790,13 @@ pub struct ID3D10Effect_Vtbl { pub GetTechniqueByIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> Option, pub GetTechniqueByName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR) -> Option, pub Optimize: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsOptimized: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsOptimized: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } unsafe impl Send for ID3D10Effect {} unsafe impl Sync for ID3D10Effect {} pub trait ID3D10Effect_Impl: windows_core::IUnknownImpl { - fn IsValid(&self) -> super::super::Foundation::BOOL; - fn IsPool(&self) -> super::super::Foundation::BOOL; + fn IsValid(&self) -> windows_core::BOOL; + fn IsPool(&self) -> windows_core::BOOL; fn GetDevice(&self) -> windows_core::Result; fn GetDesc(&self, pdesc: *mut D3D10_EFFECT_DESC) -> windows_core::Result<()>; fn GetConstantBufferByIndex(&self, index: u32) -> Option; @@ -4807,17 +4807,17 @@ pub trait ID3D10Effect_Impl: windows_core::IUnknownImpl { fn GetTechniqueByIndex(&self, index: u32) -> Option; fn GetTechniqueByName(&self, name: &windows_core::PCSTR) -> Option; fn Optimize(&self) -> windows_core::Result<()>; - fn IsOptimized(&self) -> super::super::Foundation::BOOL; + fn IsOptimized(&self) -> windows_core::BOOL; } impl ID3D10Effect_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsValid(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsValid(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Effect_Impl::IsValid(this) } } - unsafe extern "system" fn IsPool(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsPool(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Effect_Impl::IsPool(this) @@ -4889,7 +4889,7 @@ impl ID3D10Effect_Vtbl { ID3D10Effect_Impl::Optimize(this).into() } } - unsafe extern "system" fn IsOptimized(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsOptimized(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Effect_Impl::IsOptimized(this) @@ -5409,7 +5409,7 @@ impl ID3D10EffectMatrixVariable { } windows_core::imp::define_interface!(ID3D10EffectPass, ID3D10EffectPass_Vtbl); impl ID3D10EffectPass { - pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsValid(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsValid)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetDesc(&self, pdesc: *mut D3D10_PASS_DESC) -> windows_core::Result<()> { @@ -5442,7 +5442,7 @@ impl ID3D10EffectPass { } #[repr(C)] pub struct ID3D10EffectPass_Vtbl { - pub IsValid: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsValid: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetDesc: unsafe extern "system" fn(*mut core::ffi::c_void, *mut D3D10_PASS_DESC) -> windows_core::HRESULT, pub GetVertexShaderDesc: unsafe extern "system" fn(*mut core::ffi::c_void, *mut D3D10_PASS_SHADER_DESC) -> windows_core::HRESULT, pub GetGeometryShaderDesc: unsafe extern "system" fn(*mut core::ffi::c_void, *mut D3D10_PASS_SHADER_DESC) -> windows_core::HRESULT, @@ -5455,7 +5455,7 @@ pub struct ID3D10EffectPass_Vtbl { unsafe impl Send for ID3D10EffectPass {} unsafe impl Sync for ID3D10EffectPass {} pub trait ID3D10EffectPass_Impl { - fn IsValid(&self) -> super::super::Foundation::BOOL; + fn IsValid(&self) -> windows_core::BOOL; fn GetDesc(&self, pdesc: *mut D3D10_PASS_DESC) -> windows_core::Result<()>; fn GetVertexShaderDesc(&self, pdesc: *mut D3D10_PASS_SHADER_DESC) -> windows_core::Result<()>; fn GetGeometryShaderDesc(&self, pdesc: *mut D3D10_PASS_SHADER_DESC) -> windows_core::Result<()>; @@ -5467,7 +5467,7 @@ pub trait ID3D10EffectPass_Impl { } impl ID3D10EffectPass_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsValid(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsValid(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this = (this as *mut *mut core::ffi::c_void) as *const windows_core::ScopedHeap; let this = &*((*this).this as *const Identity); @@ -5866,16 +5866,16 @@ impl ID3D10EffectScalarVariable { pub unsafe fn SetBool(&self, value: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBool)(windows_core::Interface::as_raw(self), value.into()).ok() } } - pub unsafe fn GetBool(&self) -> windows_core::Result { + pub unsafe fn GetBool(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBool)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn SetBoolArray(&self, pdata: &[super::super::Foundation::BOOL], offset: u32) -> windows_core::Result<()> { + pub unsafe fn SetBoolArray(&self, pdata: &[windows_core::BOOL], offset: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBoolArray)(windows_core::Interface::as_raw(self), core::mem::transmute(pdata.as_ptr()), offset, pdata.len().try_into().unwrap()).ok() } } - pub unsafe fn GetBoolArray(&self, pdata: &mut [super::super::Foundation::BOOL], offset: u32) -> windows_core::Result<()> { + pub unsafe fn GetBoolArray(&self, pdata: &mut [windows_core::BOOL], offset: u32) -> windows_core::Result<()> { unsafe { (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() } } } @@ -5890,10 +5890,10 @@ pub struct ID3D10EffectScalarVariable_Vtbl { pub GetInt: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetIntArray: unsafe extern "system" fn(*mut core::ffi::c_void, *const i32, u32, u32) -> windows_core::HRESULT, pub GetIntArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32, u32, u32) -> windows_core::HRESULT, - pub SetBool: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetBool: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetBoolArray: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::BOOL, u32, u32) -> windows_core::HRESULT, - pub GetBoolArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, u32, u32) -> windows_core::HRESULT, + pub SetBool: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetBool: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetBoolArray: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::BOOL, u32, u32) -> windows_core::HRESULT, + pub GetBoolArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, u32, u32) -> windows_core::HRESULT, } unsafe impl Send for ID3D10EffectScalarVariable {} unsafe impl Sync for ID3D10EffectScalarVariable {} @@ -5906,10 +5906,10 @@ pub trait ID3D10EffectScalarVariable_Impl: ID3D10EffectVariable_Impl { fn GetInt(&self) -> windows_core::Result; fn SetIntArray(&self, pdata: *const i32, offset: u32, count: u32) -> windows_core::Result<()>; fn GetIntArray(&self, pdata: *mut i32, offset: u32, count: u32) -> windows_core::Result<()>; - fn SetBool(&self, value: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetBool(&self) -> windows_core::Result; - fn SetBoolArray(&self, pdata: *const super::super::Foundation::BOOL, offset: u32, count: u32) -> windows_core::Result<()>; - fn GetBoolArray(&self, pdata: *mut super::super::Foundation::BOOL, offset: u32, count: u32) -> windows_core::Result<()>; + fn SetBool(&self, value: windows_core::BOOL) -> windows_core::Result<()>; + fn GetBool(&self) -> windows_core::Result; + fn SetBoolArray(&self, pdata: *const windows_core::BOOL, offset: u32, count: u32) -> windows_core::Result<()>; + fn GetBoolArray(&self, pdata: *mut windows_core::BOOL, offset: u32, count: u32) -> windows_core::Result<()>; } impl ID3D10EffectScalarVariable_Vtbl { pub const fn new() -> Self { @@ -5981,14 +5981,14 @@ impl ID3D10EffectScalarVariable_Vtbl { ID3D10EffectScalarVariable_Impl::GetIntArray(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&count)).into() } } - unsafe extern "system" fn SetBool(this: *mut core::ffi::c_void, value: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBool(this: *mut core::ffi::c_void, value: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this = (this as *mut *mut core::ffi::c_void) as *const windows_core::ScopedHeap; let this = &*((*this).this as *const Identity); ID3D10EffectScalarVariable_Impl::SetBool(this, core::mem::transmute_copy(&value)).into() } } - unsafe extern "system" fn GetBool(this: *mut core::ffi::c_void, pvalue: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetBool(this: *mut core::ffi::c_void, pvalue: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this = (this as *mut *mut core::ffi::c_void) as *const windows_core::ScopedHeap; let this = &*((*this).this as *const Identity); @@ -6001,14 +6001,14 @@ impl ID3D10EffectScalarVariable_Vtbl { } } } - unsafe extern "system" fn SetBoolArray(this: *mut core::ffi::c_void, pdata: *const super::super::Foundation::BOOL, offset: u32, count: u32) -> windows_core::HRESULT { + unsafe extern "system" fn SetBoolArray(this: *mut core::ffi::c_void, pdata: *const windows_core::BOOL, offset: u32, count: u32) -> windows_core::HRESULT { unsafe { let this = (this as *mut *mut core::ffi::c_void) as *const windows_core::ScopedHeap; let this = &*((*this).this as *const Identity); ID3D10EffectScalarVariable_Impl::SetBoolArray(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&count)).into() } } - unsafe extern "system" fn GetBoolArray(this: *mut core::ffi::c_void, pdata: *mut super::super::Foundation::BOOL, offset: u32, count: u32) -> windows_core::HRESULT { + unsafe extern "system" fn GetBoolArray(this: *mut core::ffi::c_void, pdata: *mut windows_core::BOOL, offset: u32, count: u32) -> windows_core::HRESULT { unsafe { let this = (this as *mut *mut core::ffi::c_void) as *const windows_core::ScopedHeap; let this = &*((*this).this as *const Identity); @@ -6366,7 +6366,7 @@ impl ID3D10EffectStringVariable { } windows_core::imp::define_interface!(ID3D10EffectTechnique, ID3D10EffectTechnique_Vtbl); impl ID3D10EffectTechnique { - pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsValid(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsValid)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetDesc(&self, pdesc: *mut D3D10_TECHNIQUE_DESC) -> windows_core::Result<()> { @@ -6396,7 +6396,7 @@ impl ID3D10EffectTechnique { } #[repr(C)] pub struct ID3D10EffectTechnique_Vtbl { - pub IsValid: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsValid: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetDesc: unsafe extern "system" fn(*mut core::ffi::c_void, *mut D3D10_TECHNIQUE_DESC) -> windows_core::HRESULT, pub GetAnnotationByIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> Option, pub GetAnnotationByName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR) -> Option, @@ -6407,7 +6407,7 @@ pub struct ID3D10EffectTechnique_Vtbl { unsafe impl Send for ID3D10EffectTechnique {} unsafe impl Sync for ID3D10EffectTechnique {} pub trait ID3D10EffectTechnique_Impl { - fn IsValid(&self) -> super::super::Foundation::BOOL; + fn IsValid(&self) -> windows_core::BOOL; fn GetDesc(&self, pdesc: *mut D3D10_TECHNIQUE_DESC) -> windows_core::Result<()>; fn GetAnnotationByIndex(&self, index: u32) -> Option; fn GetAnnotationByName(&self, name: &windows_core::PCSTR) -> Option; @@ -6417,7 +6417,7 @@ pub trait ID3D10EffectTechnique_Impl { } impl ID3D10EffectTechnique_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsValid(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsValid(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this = (this as *mut *mut core::ffi::c_void) as *const windows_core::ScopedHeap; let this = &*((*this).this as *const Identity); @@ -6490,7 +6490,7 @@ impl ID3D10EffectTechnique { } windows_core::imp::define_interface!(ID3D10EffectType, ID3D10EffectType_Vtbl); impl ID3D10EffectType { - pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsValid(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsValid)(windows_core::Interface::as_raw(self)) } } #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -6521,7 +6521,7 @@ impl ID3D10EffectType { } #[repr(C)] pub struct ID3D10EffectType_Vtbl { - pub IsValid: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsValid: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, #[cfg(feature = "Win32_Graphics_Direct3D")] pub GetDesc: unsafe extern "system" fn(*mut core::ffi::c_void, *mut D3D10_EFFECT_TYPE_DESC) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Direct3D"))] @@ -6536,7 +6536,7 @@ unsafe impl Send for ID3D10EffectType {} unsafe impl Sync for ID3D10EffectType {} #[cfg(feature = "Win32_Graphics_Direct3D")] pub trait ID3D10EffectType_Impl { - fn IsValid(&self) -> super::super::Foundation::BOOL; + fn IsValid(&self) -> windows_core::BOOL; fn GetDesc(&self, pdesc: *mut D3D10_EFFECT_TYPE_DESC) -> windows_core::Result<()>; fn GetMemberTypeByIndex(&self, index: u32) -> Option; fn GetMemberTypeByName(&self, name: &windows_core::PCSTR) -> Option; @@ -6547,7 +6547,7 @@ pub trait ID3D10EffectType_Impl { #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D10EffectType_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsValid(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsValid(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this = (this as *mut *mut core::ffi::c_void) as *const windows_core::ScopedHeap; let this = &*((*this).this as *const Identity); @@ -6623,7 +6623,7 @@ impl ID3D10EffectType { } windows_core::imp::define_interface!(ID3D10EffectVariable, ID3D10EffectVariable_Vtbl); impl ID3D10EffectVariable { - pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsValid(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsValid)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetType(&self) -> Option { @@ -6710,7 +6710,7 @@ impl ID3D10EffectVariable { } #[repr(C)] pub struct ID3D10EffectVariable_Vtbl { - pub IsValid: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsValid: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetType: unsafe extern "system" fn(*mut core::ffi::c_void) -> Option, pub GetDesc: unsafe extern "system" fn(*mut core::ffi::c_void, *mut D3D10_EFFECT_VARIABLE_DESC) -> windows_core::HRESULT, pub GetAnnotationByIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> Option, @@ -6739,7 +6739,7 @@ pub struct ID3D10EffectVariable_Vtbl { unsafe impl Send for ID3D10EffectVariable {} unsafe impl Sync for ID3D10EffectVariable {} pub trait ID3D10EffectVariable_Impl { - fn IsValid(&self) -> super::super::Foundation::BOOL; + fn IsValid(&self) -> windows_core::BOOL; fn GetType(&self) -> Option; fn GetDesc(&self, pdesc: *mut D3D10_EFFECT_VARIABLE_DESC) -> windows_core::Result<()>; fn GetAnnotationByIndex(&self, index: u32) -> Option; @@ -6767,7 +6767,7 @@ pub trait ID3D10EffectVariable_Impl { } impl ID3D10EffectVariable_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsValid(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsValid(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this = (this as *mut *mut core::ffi::c_void) as *const windows_core::ScopedHeap; let this = &*((*this).this as *const Identity); @@ -6991,7 +6991,7 @@ impl core::ops::Deref for ID3D10EffectVectorVariable { } windows_core::imp::interface_hierarchy!(ID3D10EffectVectorVariable, ID3D10EffectVariable); impl ID3D10EffectVectorVariable { - pub unsafe fn SetBoolVector(&self, pdata: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn SetBoolVector(&self, pdata: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBoolVector)(windows_core::Interface::as_raw(self), pdata as _).ok() } } pub unsafe fn SetIntVector(&self, pdata: *mut i32) -> windows_core::Result<()> { @@ -7000,7 +7000,7 @@ impl ID3D10EffectVectorVariable { pub unsafe fn SetFloatVector(&self, pdata: *mut f32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetFloatVector)(windows_core::Interface::as_raw(self), pdata as _).ok() } } - pub unsafe fn GetBoolVector(&self, pdata: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetBoolVector(&self, pdata: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetBoolVector)(windows_core::Interface::as_raw(self), pdata as _).ok() } } pub unsafe fn GetIntVector(&self, pdata: *mut i32) -> windows_core::Result<()> { @@ -7009,7 +7009,7 @@ impl ID3D10EffectVectorVariable { pub unsafe fn GetFloatVector(&self, pdata: *mut f32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetFloatVector)(windows_core::Interface::as_raw(self), pdata as _).ok() } } - pub unsafe fn SetBoolVectorArray(&self, pdata: *mut super::super::Foundation::BOOL, offset: u32, count: u32) -> windows_core::Result<()> { + pub unsafe fn SetBoolVectorArray(&self, pdata: *mut windows_core::BOOL, offset: u32, count: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBoolVectorArray)(windows_core::Interface::as_raw(self), pdata as _, offset, count).ok() } } pub unsafe fn SetIntVectorArray(&self, pdata: *mut i32, offset: u32, count: u32) -> windows_core::Result<()> { @@ -7018,7 +7018,7 @@ impl ID3D10EffectVectorVariable { pub unsafe fn SetFloatVectorArray(&self, pdata: *mut f32, offset: u32, count: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetFloatVectorArray)(windows_core::Interface::as_raw(self), pdata as _, offset, count).ok() } } - pub unsafe fn GetBoolVectorArray(&self, pdata: *mut super::super::Foundation::BOOL, offset: u32, count: u32) -> windows_core::Result<()> { + pub unsafe fn GetBoolVectorArray(&self, pdata: *mut windows_core::BOOL, offset: u32, count: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetBoolVectorArray)(windows_core::Interface::as_raw(self), pdata as _, offset, count).ok() } } pub unsafe fn GetIntVectorArray(&self, pdata: *mut i32, offset: u32, count: u32) -> windows_core::Result<()> { @@ -7031,38 +7031,38 @@ impl ID3D10EffectVectorVariable { #[repr(C)] pub struct ID3D10EffectVectorVariable_Vtbl { pub base__: ID3D10EffectVariable_Vtbl, - pub SetBoolVector: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetBoolVector: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetIntVector: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetFloatVector: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, - pub GetBoolVector: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetBoolVector: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetIntVector: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub GetFloatVector: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, - pub SetBoolVectorArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, u32, u32) -> windows_core::HRESULT, + pub SetBoolVectorArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, u32, u32) -> windows_core::HRESULT, pub SetIntVectorArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32, u32, u32) -> windows_core::HRESULT, pub SetFloatVectorArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32, u32, u32) -> windows_core::HRESULT, - pub GetBoolVectorArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, u32, u32) -> windows_core::HRESULT, + pub GetBoolVectorArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, u32, u32) -> windows_core::HRESULT, pub GetIntVectorArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32, u32, u32) -> windows_core::HRESULT, pub GetFloatVectorArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32, u32, u32) -> windows_core::HRESULT, } unsafe impl Send for ID3D10EffectVectorVariable {} unsafe impl Sync for ID3D10EffectVectorVariable {} pub trait ID3D10EffectVectorVariable_Impl: ID3D10EffectVariable_Impl { - fn SetBoolVector(&self, pdata: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetBoolVector(&self, pdata: *mut windows_core::BOOL) -> windows_core::Result<()>; fn SetIntVector(&self, pdata: *mut i32) -> windows_core::Result<()>; fn SetFloatVector(&self, pdata: *mut f32) -> windows_core::Result<()>; - fn GetBoolVector(&self, pdata: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetBoolVector(&self, pdata: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetIntVector(&self, pdata: *mut i32) -> windows_core::Result<()>; fn GetFloatVector(&self, pdata: *mut f32) -> windows_core::Result<()>; - fn SetBoolVectorArray(&self, pdata: *mut super::super::Foundation::BOOL, offset: u32, count: u32) -> windows_core::Result<()>; + fn SetBoolVectorArray(&self, pdata: *mut windows_core::BOOL, offset: u32, count: u32) -> windows_core::Result<()>; fn SetIntVectorArray(&self, pdata: *mut i32, offset: u32, count: u32) -> windows_core::Result<()>; fn SetFloatVectorArray(&self, pdata: *mut f32, offset: u32, count: u32) -> windows_core::Result<()>; - fn GetBoolVectorArray(&self, pdata: *mut super::super::Foundation::BOOL, offset: u32, count: u32) -> windows_core::Result<()>; + fn GetBoolVectorArray(&self, pdata: *mut windows_core::BOOL, offset: u32, count: u32) -> windows_core::Result<()>; fn GetIntVectorArray(&self, pdata: *mut i32, offset: u32, count: u32) -> windows_core::Result<()>; fn GetFloatVectorArray(&self, pdata: *mut f32, offset: u32, count: u32) -> windows_core::Result<()>; } impl ID3D10EffectVectorVariable_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetBoolVector(this: *mut core::ffi::c_void, pdata: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBoolVector(this: *mut core::ffi::c_void, pdata: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this = (this as *mut *mut core::ffi::c_void) as *const windows_core::ScopedHeap; let this = &*((*this).this as *const Identity); @@ -7083,7 +7083,7 @@ impl ID3D10EffectVectorVariable_Vtbl { ID3D10EffectVectorVariable_Impl::SetFloatVector(this, core::mem::transmute_copy(&pdata)).into() } } - unsafe extern "system" fn GetBoolVector(this: *mut core::ffi::c_void, pdata: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetBoolVector(this: *mut core::ffi::c_void, pdata: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this = (this as *mut *mut core::ffi::c_void) as *const windows_core::ScopedHeap; let this = &*((*this).this as *const Identity); @@ -7104,7 +7104,7 @@ impl ID3D10EffectVectorVariable_Vtbl { ID3D10EffectVectorVariable_Impl::GetFloatVector(this, core::mem::transmute_copy(&pdata)).into() } } - unsafe extern "system" fn SetBoolVectorArray(this: *mut core::ffi::c_void, pdata: *mut super::super::Foundation::BOOL, offset: u32, count: u32) -> windows_core::HRESULT { + unsafe extern "system" fn SetBoolVectorArray(this: *mut core::ffi::c_void, pdata: *mut windows_core::BOOL, offset: u32, count: u32) -> windows_core::HRESULT { unsafe { let this = (this as *mut *mut core::ffi::c_void) as *const windows_core::ScopedHeap; let this = &*((*this).this as *const Identity); @@ -7125,7 +7125,7 @@ impl ID3D10EffectVectorVariable_Vtbl { ID3D10EffectVectorVariable_Impl::SetFloatVectorArray(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&offset), core::mem::transmute_copy(&count)).into() } } - unsafe extern "system" fn GetBoolVectorArray(this: *mut core::ffi::c_void, pdata: *mut super::super::Foundation::BOOL, offset: u32, count: u32) -> windows_core::HRESULT { + unsafe extern "system" fn GetBoolVectorArray(this: *mut core::ffi::c_void, pdata: *mut windows_core::BOOL, offset: u32, count: u32) -> windows_core::HRESULT { unsafe { let this = (this as *mut *mut core::ffi::c_void) as *const windows_core::ScopedHeap; let this = &*((*this).this as *const Identity); @@ -7297,19 +7297,19 @@ impl ID3D10InfoQueue { pub unsafe fn SetBreakOnID(&self, id: D3D10_MESSAGE_ID, benable: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), id, benable.into()).ok() } } - pub unsafe fn GetBreakOnCategory(&self, category: D3D10_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL { + pub unsafe fn GetBreakOnCategory(&self, category: D3D10_MESSAGE_CATEGORY) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetBreakOnCategory)(windows_core::Interface::as_raw(self), category) } } - pub unsafe fn GetBreakOnSeverity(&self, severity: D3D10_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL { + pub unsafe fn GetBreakOnSeverity(&self, severity: D3D10_MESSAGE_SEVERITY) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetBreakOnSeverity)(windows_core::Interface::as_raw(self), severity) } } - pub unsafe fn GetBreakOnID(&self, id: D3D10_MESSAGE_ID) -> super::super::Foundation::BOOL { + pub unsafe fn GetBreakOnID(&self, id: D3D10_MESSAGE_ID) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetBreakOnID)(windows_core::Interface::as_raw(self), id) } } pub unsafe fn SetMuteDebugOutput(&self, bmute: bool) { unsafe { (windows_core::Interface::vtable(self).SetMuteDebugOutput)(windows_core::Interface::as_raw(self), bmute.into()) } } - pub unsafe fn GetMuteDebugOutput(&self) -> super::super::Foundation::BOOL { + pub unsafe fn GetMuteDebugOutput(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetMuteDebugOutput)(windows_core::Interface::as_raw(self)) } } } @@ -7343,14 +7343,14 @@ pub struct ID3D10InfoQueue_Vtbl { pub GetRetrievalFilterStackSize: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, pub AddMessage: unsafe extern "system" fn(*mut core::ffi::c_void, D3D10_MESSAGE_CATEGORY, D3D10_MESSAGE_SEVERITY, D3D10_MESSAGE_ID, windows_core::PCSTR) -> windows_core::HRESULT, pub AddApplicationMessage: unsafe extern "system" fn(*mut core::ffi::c_void, D3D10_MESSAGE_SEVERITY, windows_core::PCSTR) -> windows_core::HRESULT, - pub SetBreakOnCategory: unsafe extern "system" fn(*mut core::ffi::c_void, D3D10_MESSAGE_CATEGORY, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetBreakOnSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, D3D10_MESSAGE_SEVERITY, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetBreakOnID: unsafe extern "system" fn(*mut core::ffi::c_void, D3D10_MESSAGE_ID, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetBreakOnCategory: unsafe extern "system" fn(*mut core::ffi::c_void, D3D10_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL, - pub GetBreakOnSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, D3D10_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL, - pub GetBreakOnID: unsafe extern "system" fn(*mut core::ffi::c_void, D3D10_MESSAGE_ID) -> super::super::Foundation::BOOL, - pub SetMuteDebugOutput: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL), - pub GetMuteDebugOutput: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub SetBreakOnCategory: unsafe extern "system" fn(*mut core::ffi::c_void, D3D10_MESSAGE_CATEGORY, windows_core::BOOL) -> windows_core::HRESULT, + pub SetBreakOnSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, D3D10_MESSAGE_SEVERITY, windows_core::BOOL) -> windows_core::HRESULT, + pub SetBreakOnID: unsafe extern "system" fn(*mut core::ffi::c_void, D3D10_MESSAGE_ID, windows_core::BOOL) -> windows_core::HRESULT, + pub GetBreakOnCategory: unsafe extern "system" fn(*mut core::ffi::c_void, D3D10_MESSAGE_CATEGORY) -> windows_core::BOOL, + pub GetBreakOnSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, D3D10_MESSAGE_SEVERITY) -> windows_core::BOOL, + pub GetBreakOnID: unsafe extern "system" fn(*mut core::ffi::c_void, D3D10_MESSAGE_ID) -> windows_core::BOOL, + pub SetMuteDebugOutput: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), + pub GetMuteDebugOutput: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } unsafe impl Send for ID3D10InfoQueue {} unsafe impl Sync for ID3D10InfoQueue {} @@ -7382,14 +7382,14 @@ pub trait ID3D10InfoQueue_Impl: windows_core::IUnknownImpl { fn GetRetrievalFilterStackSize(&self) -> u32; fn AddMessage(&self, category: D3D10_MESSAGE_CATEGORY, severity: D3D10_MESSAGE_SEVERITY, id: D3D10_MESSAGE_ID, pdescription: &windows_core::PCSTR) -> windows_core::Result<()>; fn AddApplicationMessage(&self, severity: D3D10_MESSAGE_SEVERITY, pdescription: &windows_core::PCSTR) -> windows_core::Result<()>; - fn SetBreakOnCategory(&self, category: D3D10_MESSAGE_CATEGORY, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetBreakOnSeverity(&self, severity: D3D10_MESSAGE_SEVERITY, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetBreakOnID(&self, id: D3D10_MESSAGE_ID, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetBreakOnCategory(&self, category: D3D10_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL; - fn GetBreakOnSeverity(&self, severity: D3D10_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL; - fn GetBreakOnID(&self, id: D3D10_MESSAGE_ID) -> super::super::Foundation::BOOL; - fn SetMuteDebugOutput(&self, bmute: super::super::Foundation::BOOL); - fn GetMuteDebugOutput(&self) -> super::super::Foundation::BOOL; + fn SetBreakOnCategory(&self, category: D3D10_MESSAGE_CATEGORY, benable: windows_core::BOOL) -> windows_core::Result<()>; + fn SetBreakOnSeverity(&self, severity: D3D10_MESSAGE_SEVERITY, benable: windows_core::BOOL) -> windows_core::Result<()>; + fn SetBreakOnID(&self, id: D3D10_MESSAGE_ID, benable: windows_core::BOOL) -> windows_core::Result<()>; + fn GetBreakOnCategory(&self, category: D3D10_MESSAGE_CATEGORY) -> windows_core::BOOL; + fn GetBreakOnSeverity(&self, severity: D3D10_MESSAGE_SEVERITY) -> windows_core::BOOL; + fn GetBreakOnID(&self, id: D3D10_MESSAGE_ID) -> windows_core::BOOL; + fn SetMuteDebugOutput(&self, bmute: windows_core::BOOL); + fn GetMuteDebugOutput(&self) -> windows_core::BOOL; } impl ID3D10InfoQueue_Vtbl { pub const fn new() -> Self { @@ -7555,49 +7555,49 @@ impl ID3D10InfoQueue_Vtbl { ID3D10InfoQueue_Impl::AddApplicationMessage(this, core::mem::transmute_copy(&severity), core::mem::transmute(&pdescription)).into() } } - unsafe extern "system" fn SetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D10_MESSAGE_CATEGORY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D10_MESSAGE_CATEGORY, benable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::SetBreakOnCategory(this, core::mem::transmute_copy(&category), core::mem::transmute_copy(&benable)).into() } } - unsafe extern "system" fn SetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D10_MESSAGE_SEVERITY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D10_MESSAGE_SEVERITY, benable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::SetBreakOnSeverity(this, core::mem::transmute_copy(&severity), core::mem::transmute_copy(&benable)).into() } } - unsafe extern "system" fn SetBreakOnID(this: *mut core::ffi::c_void, id: D3D10_MESSAGE_ID, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBreakOnID(this: *mut core::ffi::c_void, id: D3D10_MESSAGE_ID, benable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::SetBreakOnID(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&benable)).into() } } - unsafe extern "system" fn GetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D10_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D10_MESSAGE_CATEGORY) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetBreakOnCategory(this, core::mem::transmute_copy(&category)) } } - unsafe extern "system" fn GetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D10_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D10_MESSAGE_SEVERITY) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetBreakOnSeverity(this, core::mem::transmute_copy(&severity)) } } - unsafe extern "system" fn GetBreakOnID(this: *mut core::ffi::c_void, id: D3D10_MESSAGE_ID) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetBreakOnID(this: *mut core::ffi::c_void, id: D3D10_MESSAGE_ID) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetBreakOnID(this, core::mem::transmute_copy(&id)) } } - unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, bmute: super::super::Foundation::BOOL) { + unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, bmute: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::SetMuteDebugOutput(this, core::mem::transmute_copy(&bmute)) } } - unsafe extern "system" fn GetMuteDebugOutput(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetMuteDebugOutput(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10InfoQueue_Impl::GetMuteDebugOutput(this) @@ -7680,10 +7680,10 @@ impl ID3D10Multithread { pub unsafe fn Leave(&self) { unsafe { (windows_core::Interface::vtable(self).Leave)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn SetMultithreadProtected(&self, bmtprotect: bool) -> super::super::Foundation::BOOL { + pub unsafe fn SetMultithreadProtected(&self, bmtprotect: bool) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).SetMultithreadProtected)(windows_core::Interface::as_raw(self), bmtprotect.into()) } } - pub unsafe fn GetMultithreadProtected(&self) -> super::super::Foundation::BOOL { + pub unsafe fn GetMultithreadProtected(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetMultithreadProtected)(windows_core::Interface::as_raw(self)) } } } @@ -7692,16 +7692,16 @@ pub struct ID3D10Multithread_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Enter: unsafe extern "system" fn(*mut core::ffi::c_void), pub Leave: unsafe extern "system" fn(*mut core::ffi::c_void), - pub SetMultithreadProtected: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> super::super::Foundation::BOOL, - pub GetMultithreadProtected: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub SetMultithreadProtected: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::BOOL, + pub GetMultithreadProtected: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } unsafe impl Send for ID3D10Multithread {} unsafe impl Sync for ID3D10Multithread {} pub trait ID3D10Multithread_Impl: windows_core::IUnknownImpl { fn Enter(&self); fn Leave(&self); - fn SetMultithreadProtected(&self, bmtprotect: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - fn GetMultithreadProtected(&self) -> super::super::Foundation::BOOL; + fn SetMultithreadProtected(&self, bmtprotect: windows_core::BOOL) -> windows_core::BOOL; + fn GetMultithreadProtected(&self) -> windows_core::BOOL; } impl ID3D10Multithread_Vtbl { pub const fn new() -> Self { @@ -7717,13 +7717,13 @@ impl ID3D10Multithread_Vtbl { ID3D10Multithread_Impl::Leave(this) } } - unsafe extern "system" fn SetMultithreadProtected(this: *mut core::ffi::c_void, bmtprotect: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { + unsafe extern "system" fn SetMultithreadProtected(this: *mut core::ffi::c_void, bmtprotect: windows_core::BOOL) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Multithread_Impl::SetMultithreadProtected(this, core::mem::transmute_copy(&bmtprotect)) } } - unsafe extern "system" fn GetMultithreadProtected(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetMultithreadProtected(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10Multithread_Impl::GetMultithreadProtected(this) @@ -8211,13 +8211,13 @@ impl ID3D10ShaderReflection1 { (windows_core::Interface::vtable(self).GetGSInputPrimitive)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsLevel9Shader(&self) -> windows_core::Result { + pub unsafe fn IsLevel9Shader(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsLevel9Shader)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsSampleFrequencyShader(&self) -> windows_core::Result { + pub unsafe fn IsSampleFrequencyShader(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsSampleFrequencyShader)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -8258,8 +8258,8 @@ pub struct ID3D10ShaderReflection1_Vtbl { pub GetGSInputPrimitive: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::Direct3D::D3D_PRIMITIVE) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Direct3D"))] GetGSInputPrimitive: usize, - pub IsLevel9Shader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsSampleFrequencyShader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsLevel9Shader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsSampleFrequencyShader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } unsafe impl Send for ID3D10ShaderReflection1 {} unsafe impl Sync for ID3D10ShaderReflection1 {} @@ -8278,8 +8278,8 @@ pub trait ID3D10ShaderReflection1_Impl: windows_core::IUnknownImpl { fn GetConversionInstructionCount(&self) -> windows_core::Result; fn GetBitwiseInstructionCount(&self) -> windows_core::Result; fn GetGSInputPrimitive(&self) -> windows_core::Result; - fn IsLevel9Shader(&self) -> windows_core::Result; - fn IsSampleFrequencyShader(&self) -> windows_core::Result; + fn IsLevel9Shader(&self) -> windows_core::Result; + fn IsSampleFrequencyShader(&self) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Direct3D")] impl ID3D10ShaderReflection1_Vtbl { @@ -8392,7 +8392,7 @@ impl ID3D10ShaderReflection1_Vtbl { } } } - unsafe extern "system" fn IsLevel9Shader(this: *mut core::ffi::c_void, pblevel9shader: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsLevel9Shader(this: *mut core::ffi::c_void, pblevel9shader: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10ShaderReflection1_Impl::IsLevel9Shader(this) { @@ -8404,7 +8404,7 @@ impl ID3D10ShaderReflection1_Vtbl { } } } - unsafe extern "system" fn IsSampleFrequencyShader(this: *mut core::ffi::c_void, pbsamplefrequency: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsSampleFrequencyShader(this: *mut core::ffi::c_void, pbsamplefrequency: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D10ShaderReflection1_Impl::IsSampleFrequencyShader(this) { @@ -8829,34 +8829,34 @@ impl windows_core::RuntimeName for ID3D10StateBlock {} windows_core::imp::define_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: bool) -> super::super::Foundation::BOOL { + pub unsafe fn SetUseRef(&self, useref: bool) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).SetUseRef)(windows_core::Interface::as_raw(self), useref.into()) } } - pub unsafe fn GetUseRef(&self) -> super::super::Foundation::BOOL { + pub unsafe fn GetUseRef(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetUseRef)(windows_core::Interface::as_raw(self)) } } } #[repr(C)] pub struct ID3D10SwitchToRef_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetUseRef: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> super::super::Foundation::BOOL, - pub GetUseRef: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub SetUseRef: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::BOOL, + pub GetUseRef: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } unsafe impl Send for ID3D10SwitchToRef {} unsafe impl Sync for ID3D10SwitchToRef {} pub trait ID3D10SwitchToRef_Impl: windows_core::IUnknownImpl { - fn SetUseRef(&self, useref: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - fn GetUseRef(&self) -> super::super::Foundation::BOOL; + fn SetUseRef(&self, useref: windows_core::BOOL) -> windows_core::BOOL; + fn GetUseRef(&self) -> windows_core::BOOL; } impl ID3D10SwitchToRef_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetUseRef(this: *mut core::ffi::c_void, useref: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { + unsafe extern "system" fn SetUseRef(this: *mut core::ffi::c_void, useref: windows_core::BOOL) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10SwitchToRef_Impl::SetUseRef(this, core::mem::transmute_copy(&useref)) } } - unsafe extern "system" fn GetUseRef(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetUseRef(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D10SwitchToRef_Impl::GetUseRef(this) 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 7752a9803c..8ae90b852d 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/mod.rs @@ -244,7 +244,7 @@ pub struct D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT { pub Parameters: D3D11_AUTHENTICATED_CONFIGURE_INPUT, pub ProcessType: D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE, pub ProcessHandle: super::super::Foundation::HANDLE, - pub AllowAccess: super::super::Foundation::BOOL, + pub AllowAccess: windows_core::BOOL, } impl Default for D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT { fn default() -> Self { @@ -315,8 +315,8 @@ impl Default for D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT pub struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_OUTPUT { pub Output: D3D11_AUTHENTICATED_QUERY_OUTPUT, pub BusType: D3D11_BUS_TYPE, - pub AccessibleInContiguousBlocks: super::super::Foundation::BOOL, - pub AccessibleInNonContiguousBlocks: super::super::Foundation::BOOL, + pub AccessibleInContiguousBlocks: windows_core::BOOL, + pub AccessibleInNonContiguousBlocks: windows_core::BOOL, } impl Default for D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_OUTPUT { fn default() -> Self { @@ -580,8 +580,8 @@ pub const D3D11_BLEND_BLEND_FACTOR: D3D11_BLEND = D3D11_BLEND(14i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_BLEND_DESC { - pub AlphaToCoverageEnable: super::super::Foundation::BOOL, - pub IndependentBlendEnable: super::super::Foundation::BOOL, + pub AlphaToCoverageEnable: windows_core::BOOL, + pub IndependentBlendEnable: windows_core::BOOL, pub RenderTarget: [D3D11_RENDER_TARGET_BLEND_DESC; 8], } impl Default for D3D11_BLEND_DESC { @@ -592,8 +592,8 @@ impl Default for D3D11_BLEND_DESC { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_BLEND_DESC1 { - pub AlphaToCoverageEnable: super::super::Foundation::BOOL, - pub IndependentBlendEnable: super::super::Foundation::BOOL, + pub AlphaToCoverageEnable: windows_core::BOOL, + pub IndependentBlendEnable: windows_core::BOOL, pub RenderTarget: [D3D11_RENDER_TARGET_BLEND_DESC1; 8], } impl Default for D3D11_BLEND_DESC1 { @@ -788,7 +788,7 @@ pub struct D3D11_CLASS_INSTANCE_DESC { pub BaseConstantBufferOffset: u32, pub BaseTexture: u32, pub BaseSampler: u32, - pub Created: super::super::Foundation::BOOL, + pub Created: windows_core::BOOL, } impl Default for D3D11_CLASS_INSTANCE_DESC { fn default() -> Self { @@ -1263,10 +1263,10 @@ impl Default for D3D11_DEPTH_STENCILOP_DESC { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_DEPTH_STENCIL_DESC { - pub DepthEnable: super::super::Foundation::BOOL, + pub DepthEnable: windows_core::BOOL, pub DepthWriteMask: D3D11_DEPTH_WRITE_MASK, pub DepthFunc: D3D11_COMPARISON_FUNC, - pub StencilEnable: super::super::Foundation::BOOL, + pub StencilEnable: windows_core::BOOL, pub StencilReadMask: u8, pub StencilWriteMask: u8, pub FrontFace: D3D11_DEPTH_STENCILOP_DESC, @@ -1427,7 +1427,7 @@ pub const D3D11_FEATURE_D3D9_SIMPLE_INSTANCING_SUPPORT: D3D11_FEATURE = D3D11_FE #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_FEATURE_DATA_ARCHITECTURE_INFO { - pub TileBasedDeferredRenderer: super::super::Foundation::BOOL, + pub TileBasedDeferredRenderer: windows_core::BOOL, } impl Default for D3D11_FEATURE_DATA_ARCHITECTURE_INFO { fn default() -> Self { @@ -1437,7 +1437,7 @@ impl Default for D3D11_FEATURE_DATA_ARCHITECTURE_INFO { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS { - pub ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x: super::super::Foundation::BOOL, + pub ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x: windows_core::BOOL, } impl Default for D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS { fn default() -> Self { @@ -1447,20 +1447,20 @@ impl Default for D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_FEATURE_DATA_D3D11_OPTIONS { - pub OutputMergerLogicOp: super::super::Foundation::BOOL, - pub UAVOnlyRenderingForcedSampleCount: super::super::Foundation::BOOL, - pub DiscardAPIsSeenByDriver: super::super::Foundation::BOOL, - pub FlagsForUpdateAndCopySeenByDriver: super::super::Foundation::BOOL, - pub ClearView: super::super::Foundation::BOOL, - pub CopyWithOverlap: super::super::Foundation::BOOL, - pub ConstantBufferPartialUpdate: super::super::Foundation::BOOL, - pub ConstantBufferOffsetting: super::super::Foundation::BOOL, - pub MapNoOverwriteOnDynamicConstantBuffer: super::super::Foundation::BOOL, - pub MapNoOverwriteOnDynamicBufferSRV: super::super::Foundation::BOOL, - pub MultisampleRTVWithForcedSampleCountOne: super::super::Foundation::BOOL, - pub SAD4ShaderInstructions: super::super::Foundation::BOOL, - pub ExtendedDoublesShaderInstructions: super::super::Foundation::BOOL, - pub ExtendedResourceSharing: super::super::Foundation::BOOL, + pub OutputMergerLogicOp: windows_core::BOOL, + pub UAVOnlyRenderingForcedSampleCount: windows_core::BOOL, + pub DiscardAPIsSeenByDriver: windows_core::BOOL, + pub FlagsForUpdateAndCopySeenByDriver: windows_core::BOOL, + pub ClearView: windows_core::BOOL, + pub CopyWithOverlap: windows_core::BOOL, + pub ConstantBufferPartialUpdate: windows_core::BOOL, + pub ConstantBufferOffsetting: windows_core::BOOL, + pub MapNoOverwriteOnDynamicConstantBuffer: windows_core::BOOL, + pub MapNoOverwriteOnDynamicBufferSRV: windows_core::BOOL, + pub MultisampleRTVWithForcedSampleCountOne: windows_core::BOOL, + pub SAD4ShaderInstructions: windows_core::BOOL, + pub ExtendedDoublesShaderInstructions: windows_core::BOOL, + pub ExtendedResourceSharing: windows_core::BOOL, } impl Default for D3D11_FEATURE_DATA_D3D11_OPTIONS { fn default() -> Self { @@ -1471,9 +1471,9 @@ impl Default for D3D11_FEATURE_DATA_D3D11_OPTIONS { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_FEATURE_DATA_D3D11_OPTIONS1 { pub TiledResourcesTier: D3D11_TILED_RESOURCES_TIER, - pub MinMaxFiltering: super::super::Foundation::BOOL, - pub ClearViewAlsoSupportsDepthOnlyFormats: super::super::Foundation::BOOL, - pub MapOnDefaultBuffers: super::super::Foundation::BOOL, + pub MinMaxFiltering: windows_core::BOOL, + pub ClearViewAlsoSupportsDepthOnlyFormats: windows_core::BOOL, + pub MapOnDefaultBuffers: windows_core::BOOL, } impl Default for D3D11_FEATURE_DATA_D3D11_OPTIONS1 { fn default() -> Self { @@ -1483,14 +1483,14 @@ impl Default for D3D11_FEATURE_DATA_D3D11_OPTIONS1 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_FEATURE_DATA_D3D11_OPTIONS2 { - pub PSSpecifiedStencilRefSupported: super::super::Foundation::BOOL, - pub TypedUAVLoadAdditionalFormats: super::super::Foundation::BOOL, - pub ROVsSupported: super::super::Foundation::BOOL, + pub PSSpecifiedStencilRefSupported: windows_core::BOOL, + pub TypedUAVLoadAdditionalFormats: windows_core::BOOL, + pub ROVsSupported: windows_core::BOOL, pub ConservativeRasterizationTier: D3D11_CONSERVATIVE_RASTERIZATION_TIER, pub TiledResourcesTier: D3D11_TILED_RESOURCES_TIER, - pub MapOnDefaultTextures: super::super::Foundation::BOOL, - pub StandardSwizzle: super::super::Foundation::BOOL, - pub UnifiedMemoryArchitecture: super::super::Foundation::BOOL, + pub MapOnDefaultTextures: windows_core::BOOL, + pub StandardSwizzle: windows_core::BOOL, + pub UnifiedMemoryArchitecture: windows_core::BOOL, } impl Default for D3D11_FEATURE_DATA_D3D11_OPTIONS2 { fn default() -> Self { @@ -1500,7 +1500,7 @@ impl Default for D3D11_FEATURE_DATA_D3D11_OPTIONS2 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_FEATURE_DATA_D3D11_OPTIONS3 { - pub VPAndRTArrayIndexFromAnyShaderFeedingRasterizer: super::super::Foundation::BOOL, + pub VPAndRTArrayIndexFromAnyShaderFeedingRasterizer: windows_core::BOOL, } impl Default for D3D11_FEATURE_DATA_D3D11_OPTIONS3 { fn default() -> Self { @@ -1510,7 +1510,7 @@ impl Default for D3D11_FEATURE_DATA_D3D11_OPTIONS3 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_FEATURE_DATA_D3D11_OPTIONS4 { - pub ExtendedNV12SharedTextureSupported: super::super::Foundation::BOOL, + pub ExtendedNV12SharedTextureSupported: windows_core::BOOL, } impl Default for D3D11_FEATURE_DATA_D3D11_OPTIONS4 { fn default() -> Self { @@ -1530,7 +1530,7 @@ impl Default for D3D11_FEATURE_DATA_D3D11_OPTIONS5 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_FEATURE_DATA_D3D9_OPTIONS { - pub FullNonPow2TextureSupport: super::super::Foundation::BOOL, + pub FullNonPow2TextureSupport: windows_core::BOOL, } impl Default for D3D11_FEATURE_DATA_D3D9_OPTIONS { fn default() -> Self { @@ -1540,10 +1540,10 @@ impl Default for D3D11_FEATURE_DATA_D3D9_OPTIONS { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_FEATURE_DATA_D3D9_OPTIONS1 { - pub FullNonPow2TextureSupported: super::super::Foundation::BOOL, - pub DepthAsTextureWithLessEqualComparisonFilterSupported: super::super::Foundation::BOOL, - pub SimpleInstancingSupported: super::super::Foundation::BOOL, - pub TextureCubeFaceRenderTargetWithNonCubeDepthStencilSupported: super::super::Foundation::BOOL, + pub FullNonPow2TextureSupported: windows_core::BOOL, + pub DepthAsTextureWithLessEqualComparisonFilterSupported: windows_core::BOOL, + pub SimpleInstancingSupported: windows_core::BOOL, + pub TextureCubeFaceRenderTargetWithNonCubeDepthStencilSupported: windows_core::BOOL, } impl Default for D3D11_FEATURE_DATA_D3D9_OPTIONS1 { fn default() -> Self { @@ -1553,7 +1553,7 @@ impl Default for D3D11_FEATURE_DATA_D3D9_OPTIONS1 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT { - pub SupportsDepthAsTextureWithLessEqualComparisonFilter: super::super::Foundation::BOOL, + pub SupportsDepthAsTextureWithLessEqualComparisonFilter: windows_core::BOOL, } impl Default for D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT { fn default() -> Self { @@ -1563,7 +1563,7 @@ impl Default for D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT { - pub SimpleInstancingSupported: super::super::Foundation::BOOL, + pub SimpleInstancingSupported: windows_core::BOOL, } impl Default for D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT { fn default() -> Self { @@ -1573,7 +1573,7 @@ impl Default for D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_FEATURE_DATA_DISPLAYABLE { - pub DisplayableTexture: super::super::Foundation::BOOL, + pub DisplayableTexture: windows_core::BOOL, pub SharedResourceTier: D3D11_SHARED_RESOURCE_TIER, } impl Default for D3D11_FEATURE_DATA_DISPLAYABLE { @@ -1584,7 +1584,7 @@ impl Default for D3D11_FEATURE_DATA_DISPLAYABLE { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_FEATURE_DATA_DOUBLES { - pub DoublePrecisionFloatShaderOps: super::super::Foundation::BOOL, + pub DoublePrecisionFloatShaderOps: windows_core::BOOL, } impl Default for D3D11_FEATURE_DATA_DOUBLES { fn default() -> Self { @@ -1631,7 +1631,7 @@ impl Default for D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_FEATURE_DATA_MARKER_SUPPORT { - pub Profile: super::super::Foundation::BOOL, + pub Profile: windows_core::BOOL, } impl Default for D3D11_FEATURE_DATA_MARKER_SUPPORT { fn default() -> Self { @@ -1662,8 +1662,8 @@ impl Default for D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_FEATURE_DATA_THREADING { - pub DriverConcurrentCreates: super::super::Foundation::BOOL, - pub DriverCommandLists: super::super::Foundation::BOOL, + pub DriverConcurrentCreates: windows_core::BOOL, + pub DriverCommandLists: windows_core::BOOL, } impl Default for D3D11_FEATURE_DATA_THREADING { fn default() -> Self { @@ -1896,9 +1896,9 @@ pub struct D3D11_FUNCTION_DESC { pub RequiredFeatureFlags: u64, pub Name: windows_core::PCSTR, pub FunctionParameterCount: i32, - pub HasReturn: super::super::Foundation::BOOL, - pub Has10Level9VertexShader: super::super::Foundation::BOOL, - pub Has10Level9PixelShader: super::super::Foundation::BOOL, + pub HasReturn: windows_core::BOOL, + pub Has10Level9VertexShader: windows_core::BOOL, + pub Has10Level9PixelShader: windows_core::BOOL, } #[cfg(feature = "Win32_Graphics_Direct3D")] impl Default for D3D11_FUNCTION_DESC { @@ -3680,7 +3680,7 @@ impl Default for D3D11_QUERY_DATA_SO_STATISTICS { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT { pub Frequency: u64, - pub Disjoint: super::super::Foundation::BOOL, + pub Disjoint: windows_core::BOOL, } impl Default for D3D11_QUERY_DATA_TIMESTAMP_DISJOINT { fn default() -> Self { @@ -3739,14 +3739,14 @@ pub const D3D11_RAISE_FLAG_DRIVER_INTERNAL_ERROR: D3D11_RAISE_FLAG = D3D11_RAISE pub struct D3D11_RASTERIZER_DESC { pub FillMode: D3D11_FILL_MODE, pub CullMode: D3D11_CULL_MODE, - pub FrontCounterClockwise: super::super::Foundation::BOOL, + pub FrontCounterClockwise: windows_core::BOOL, pub DepthBias: i32, pub DepthBiasClamp: f32, pub SlopeScaledDepthBias: f32, - pub DepthClipEnable: super::super::Foundation::BOOL, - pub ScissorEnable: super::super::Foundation::BOOL, - pub MultisampleEnable: super::super::Foundation::BOOL, - pub AntialiasedLineEnable: super::super::Foundation::BOOL, + pub DepthClipEnable: windows_core::BOOL, + pub ScissorEnable: windows_core::BOOL, + pub MultisampleEnable: windows_core::BOOL, + pub AntialiasedLineEnable: windows_core::BOOL, } impl Default for D3D11_RASTERIZER_DESC { fn default() -> Self { @@ -3758,14 +3758,14 @@ impl Default for D3D11_RASTERIZER_DESC { pub struct D3D11_RASTERIZER_DESC1 { pub FillMode: D3D11_FILL_MODE, pub CullMode: D3D11_CULL_MODE, - pub FrontCounterClockwise: super::super::Foundation::BOOL, + pub FrontCounterClockwise: windows_core::BOOL, pub DepthBias: i32, pub DepthBiasClamp: f32, pub SlopeScaledDepthBias: f32, - pub DepthClipEnable: super::super::Foundation::BOOL, - pub ScissorEnable: super::super::Foundation::BOOL, - pub MultisampleEnable: super::super::Foundation::BOOL, - pub AntialiasedLineEnable: super::super::Foundation::BOOL, + pub DepthClipEnable: windows_core::BOOL, + pub ScissorEnable: windows_core::BOOL, + pub MultisampleEnable: windows_core::BOOL, + pub AntialiasedLineEnable: windows_core::BOOL, pub ForcedSampleCount: u32, } impl Default for D3D11_RASTERIZER_DESC1 { @@ -3778,14 +3778,14 @@ impl Default for D3D11_RASTERIZER_DESC1 { pub struct D3D11_RASTERIZER_DESC2 { pub FillMode: D3D11_FILL_MODE, pub CullMode: D3D11_CULL_MODE, - pub FrontCounterClockwise: super::super::Foundation::BOOL, + pub FrontCounterClockwise: windows_core::BOOL, pub DepthBias: i32, pub DepthBiasClamp: f32, pub SlopeScaledDepthBias: f32, - pub DepthClipEnable: super::super::Foundation::BOOL, - pub ScissorEnable: super::super::Foundation::BOOL, - pub MultisampleEnable: super::super::Foundation::BOOL, - pub AntialiasedLineEnable: super::super::Foundation::BOOL, + pub DepthClipEnable: windows_core::BOOL, + pub ScissorEnable: windows_core::BOOL, + pub MultisampleEnable: windows_core::BOOL, + pub AntialiasedLineEnable: windows_core::BOOL, pub ForcedSampleCount: u32, pub ConservativeRaster: D3D11_CONSERVATIVE_RASTERIZATION_MODE, } @@ -3799,7 +3799,7 @@ pub const D3D11_REGKEY_PATH: windows_core::PCWSTR = windows_core::w!("Software\\ #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_RENDER_TARGET_BLEND_DESC { - pub BlendEnable: super::super::Foundation::BOOL, + pub BlendEnable: windows_core::BOOL, pub SrcBlend: D3D11_BLEND, pub DestBlend: D3D11_BLEND, pub BlendOp: D3D11_BLEND_OP, @@ -3816,8 +3816,8 @@ impl Default for D3D11_RENDER_TARGET_BLEND_DESC { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_RENDER_TARGET_BLEND_DESC1 { - pub BlendEnable: super::super::Foundation::BOOL, - pub LogicOpEnable: super::super::Foundation::BOOL, + pub BlendEnable: windows_core::BOOL, + pub LogicOpEnable: windows_core::BOOL, pub SrcBlend: D3D11_BLEND, pub DestBlend: D3D11_BLEND, pub BlendOp: D3D11_BLEND_OP, @@ -5046,7 +5046,7 @@ pub const D3D11_TILE_RANGE_SKIP: D3D11_TILE_RANGE_FLAG = D3D11_TILE_RANGE_FLAG(2 #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_TILE_REGION_SIZE { pub NumTiles: u32, - pub bUseBox: super::super::Foundation::BOOL, + pub bUseBox: windows_core::BOOL, pub Width: u32, pub Height: u16, pub Depth: u16, @@ -5167,10 +5167,10 @@ pub struct D3D11_TRACE_STATS { pub PixelCoverageMaskAfterA2CSampleMask: [u64; 4], pub PixelCoverageMaskAfterA2CSampleMaskDepth: [u64; 4], pub PixelCoverageMaskAfterA2CSampleMaskDepthStencil: [u64; 4], - pub PSOutputsDepth: super::super::Foundation::BOOL, - pub PSOutputsMask: super::super::Foundation::BOOL, + pub PSOutputsDepth: windows_core::BOOL, + pub PSOutputsMask: windows_core::BOOL, pub GSInputPrimitive: D3D11_TRACE_GS_INPUT_PRIMITIVE, - pub GSInputsPrimitiveID: super::super::Foundation::BOOL, + pub GSInputsPrimitiveID: windows_core::BOOL, pub HSOutputPatchConstantMask: [u8; 32], pub DSInputPatchConstantMask: [u8; 32], } @@ -5183,7 +5183,7 @@ impl Default for D3D11_TRACE_STATS { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_TRACE_STEP { pub ID: u32, - pub InstructionActive: super::super::Foundation::BOOL, + pub InstructionActive: windows_core::BOOL, pub NumRegistersWritten: u8, pub NumRegistersRead: u8, pub MiscOperations: u16, @@ -5400,7 +5400,7 @@ pub struct D3D11_VIDEO_DECODER_BUFFER_DESC { pub ReservedBits: u32, pub pIV: *mut core::ffi::c_void, pub IVSize: u32, - pub PartialEncryption: super::super::Foundation::BOOL, + pub PartialEncryption: windows_core::BOOL, pub EncryptedBlockInfo: D3D11_ENCRYPTED_BLOCK_INFO, } impl Default for D3D11_VIDEO_DECODER_BUFFER_DESC { @@ -5688,7 +5688,7 @@ impl Default for D3D11_VIDEO_PROCESSOR_CONTENT_DESC { pub struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE { pub CustomRate: super::Dxgi::Common::DXGI_RATIONAL, pub OutputFrames: u32, - pub InputInterlaced: super::super::Foundation::BOOL, + pub InputInterlaced: windows_core::BOOL, pub InputFramesOrFields: u32, } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -5894,7 +5894,7 @@ pub const D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_VERTICAL: D3D11_VIDEO_PROCESSOR_ST #[repr(C)] #[derive(Clone, Debug, PartialEq)] pub struct D3D11_VIDEO_PROCESSOR_STREAM { - pub Enable: super::super::Foundation::BOOL, + pub Enable: windows_core::BOOL, pub OutputIndex: u32, pub InputFrameOrField: u32, pub PastFrames: u32, @@ -5915,7 +5915,7 @@ impl Default for D3D11_VIDEO_PROCESSOR_STREAM { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT { - pub Enable: super::super::Foundation::BOOL, + pub Enable: windows_core::BOOL, pub Width: u32, pub Height: u32, pub Format: super::Dxgi::Common::DXGI_FORMAT, @@ -8559,7 +8559,7 @@ impl ID3D11DeviceContext { pub unsafe fn VSGetSamplers(&self, startslot: u32, ppsamplers: Option<&mut [Option]>) { unsafe { (windows_core::Interface::vtable(self).VSGetSamplers)(windows_core::Interface::as_raw(self), startslot, ppsamplers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(ppsamplers.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } } - pub unsafe fn GetPredication(&self, pppredicate: Option<*mut Option>, ppredicatevalue: Option<*mut super::super::Foundation::BOOL>) { + pub unsafe fn GetPredication(&self, pppredicate: Option<*mut Option>, ppredicatevalue: Option<*mut windows_core::BOOL>) { unsafe { (windows_core::Interface::vtable(self).GetPredication)(windows_core::Interface::as_raw(self), pppredicate.unwrap_or(core::mem::zeroed()) as _, ppredicatevalue.unwrap_or(core::mem::zeroed()) as _) } } pub unsafe fn GSGetShaderResources(&self, startslot: u32, ppshaderresourceviews: Option<&mut [Option]>) { @@ -8693,7 +8693,7 @@ pub struct ID3D11DeviceContext_Vtbl { pub Begin: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void), pub End: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void), pub GetData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, - pub SetPredication: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL), + pub SetPredication: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL), pub GSSetShaderResources: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const *mut core::ffi::c_void), pub GSSetSamplers: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const *mut core::ffi::c_void), pub OMSetRenderTargets: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const *mut core::ffi::c_void, *mut core::ffi::c_void), @@ -8724,7 +8724,7 @@ pub struct ID3D11DeviceContext_Vtbl { pub ResolveSubresource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut core::ffi::c_void, u32, super::Dxgi::Common::DXGI_FORMAT), #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] ResolveSubresource: usize, - pub ExecuteCommandList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL), + pub ExecuteCommandList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL), pub HSSetShaderResources: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const *mut core::ffi::c_void), pub HSSetShader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const *mut core::ffi::c_void, u32), pub HSSetSamplers: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const *mut core::ffi::c_void), @@ -8758,7 +8758,7 @@ pub struct ID3D11DeviceContext_Vtbl { IAGetPrimitiveTopology: usize, pub VSGetShaderResources: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void), pub VSGetSamplers: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void), - pub GetPredication: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut super::super::Foundation::BOOL), + pub GetPredication: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut windows_core::BOOL), pub GSGetShaderResources: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void), pub GSGetSamplers: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void), pub OMGetRenderTargets: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void), @@ -8786,7 +8786,7 @@ pub struct ID3D11DeviceContext_Vtbl { pub Flush: unsafe extern "system" fn(*mut core::ffi::c_void), pub GetType: unsafe extern "system" fn(*mut core::ffi::c_void) -> D3D11_DEVICE_CONTEXT_TYPE, pub GetContextFlags: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, - pub FinishCommandList: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub FinishCommandList: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } unsafe impl Send for ID3D11DeviceContext {} unsafe impl Sync for ID3D11DeviceContext {} @@ -8815,7 +8815,7 @@ pub trait ID3D11DeviceContext_Impl: ID3D11DeviceChild_Impl { fn Begin(&self, pasync: windows_core::Ref); fn End(&self, pasync: windows_core::Ref); fn GetData(&self, pasync: windows_core::Ref, pdata: *mut core::ffi::c_void, datasize: u32, getdataflags: u32) -> windows_core::Result<()>; - fn SetPredication(&self, ppredicate: windows_core::Ref, predicatevalue: super::super::Foundation::BOOL); + fn SetPredication(&self, ppredicate: windows_core::Ref, predicatevalue: windows_core::BOOL); fn GSSetShaderResources(&self, startslot: u32, numviews: u32, ppshaderresourceviews: *const Option); fn GSSetSamplers(&self, startslot: u32, numsamplers: u32, ppsamplers: *const Option); fn OMSetRenderTargets(&self, numviews: u32, pprendertargetviews: *const Option, pdepthstencilview: windows_core::Ref); @@ -8843,7 +8843,7 @@ pub trait ID3D11DeviceContext_Impl: ID3D11DeviceChild_Impl { fn SetResourceMinLOD(&self, presource: windows_core::Ref, minlod: f32); fn GetResourceMinLOD(&self, presource: windows_core::Ref) -> f32; fn ResolveSubresource(&self, pdstresource: windows_core::Ref, dstsubresource: u32, psrcresource: windows_core::Ref, srcsubresource: u32, format: super::Dxgi::Common::DXGI_FORMAT); - fn ExecuteCommandList(&self, pcommandlist: windows_core::Ref, restorecontextstate: super::super::Foundation::BOOL); + fn ExecuteCommandList(&self, pcommandlist: windows_core::Ref, restorecontextstate: windows_core::BOOL); fn HSSetShaderResources(&self, startslot: u32, numviews: u32, ppshaderresourceviews: *const Option); fn HSSetShader(&self, phullshader: windows_core::Ref, ppclassinstances: *const Option, numclassinstances: u32); fn HSSetSamplers(&self, startslot: u32, numsamplers: u32, ppsamplers: *const Option); @@ -8871,7 +8871,7 @@ pub trait ID3D11DeviceContext_Impl: ID3D11DeviceChild_Impl { fn IAGetPrimitiveTopology(&self, ptopology: *mut super::Direct3D::D3D_PRIMITIVE_TOPOLOGY); fn VSGetShaderResources(&self, startslot: u32, numviews: u32, ppshaderresourceviews: windows_core::OutRef<'_, ID3D11ShaderResourceView>); fn VSGetSamplers(&self, startslot: u32, numsamplers: u32, ppsamplers: windows_core::OutRef<'_, ID3D11SamplerState>); - fn GetPredication(&self, pppredicate: windows_core::OutRef<'_, ID3D11Predicate>, ppredicatevalue: *mut super::super::Foundation::BOOL); + fn GetPredication(&self, pppredicate: windows_core::OutRef<'_, ID3D11Predicate>, ppredicatevalue: *mut windows_core::BOOL); fn GSGetShaderResources(&self, startslot: u32, numviews: u32, ppshaderresourceviews: windows_core::OutRef<'_, ID3D11ShaderResourceView>); fn GSGetSamplers(&self, startslot: u32, numsamplers: u32, ppsamplers: windows_core::OutRef<'_, ID3D11SamplerState>); fn OMGetRenderTargets(&self, numviews: u32, pprendertargetviews: windows_core::OutRef<'_, ID3D11RenderTargetView>, ppdepthstencilview: windows_core::OutRef<'_, ID3D11DepthStencilView>); @@ -8899,7 +8899,7 @@ pub trait ID3D11DeviceContext_Impl: ID3D11DeviceChild_Impl { fn Flush(&self); fn GetType(&self) -> D3D11_DEVICE_CONTEXT_TYPE; fn GetContextFlags(&self) -> u32; - fn FinishCommandList(&self, restoredeferredcontextstate: super::super::Foundation::BOOL, ppcommandlist: windows_core::OutRef<'_, ID3D11CommandList>) -> windows_core::Result<()>; + fn FinishCommandList(&self, restoredeferredcontextstate: windows_core::BOOL, ppcommandlist: windows_core::OutRef<'_, ID3D11CommandList>) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D11DeviceContext_Vtbl { @@ -9042,7 +9042,7 @@ impl ID3D11DeviceContext_Vtbl { ID3D11DeviceContext_Impl::GetData(this, core::mem::transmute_copy(&pasync), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&getdataflags)).into() } } - unsafe extern "system" fn SetPredication(this: *mut core::ffi::c_void, ppredicate: *mut core::ffi::c_void, predicatevalue: super::super::Foundation::BOOL) { + unsafe extern "system" fn SetPredication(this: *mut core::ffi::c_void, ppredicate: *mut core::ffi::c_void, predicatevalue: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::SetPredication(this, core::mem::transmute_copy(&ppredicate), core::mem::transmute_copy(&predicatevalue)) @@ -9210,7 +9210,7 @@ impl ID3D11DeviceContext_Vtbl { ID3D11DeviceContext_Impl::ResolveSubresource(this, core::mem::transmute_copy(&pdstresource), core::mem::transmute_copy(&dstsubresource), core::mem::transmute_copy(&psrcresource), core::mem::transmute_copy(&srcsubresource), core::mem::transmute_copy(&format)) } } - unsafe extern "system" fn ExecuteCommandList(this: *mut core::ffi::c_void, pcommandlist: *mut core::ffi::c_void, restorecontextstate: super::super::Foundation::BOOL) { + unsafe extern "system" fn ExecuteCommandList(this: *mut core::ffi::c_void, pcommandlist: *mut core::ffi::c_void, restorecontextstate: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::ExecuteCommandList(this, core::mem::transmute_copy(&pcommandlist), core::mem::transmute_copy(&restorecontextstate)) @@ -9378,7 +9378,7 @@ impl ID3D11DeviceContext_Vtbl { ID3D11DeviceContext_Impl::VSGetSamplers(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numsamplers), core::mem::transmute_copy(&ppsamplers)) } } - unsafe extern "system" fn GetPredication(this: *mut core::ffi::c_void, pppredicate: *mut *mut core::ffi::c_void, ppredicatevalue: *mut super::super::Foundation::BOOL) { + unsafe extern "system" fn GetPredication(this: *mut core::ffi::c_void, pppredicate: *mut *mut core::ffi::c_void, ppredicatevalue: *mut windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::GetPredication(this, core::mem::transmute_copy(&pppredicate), core::mem::transmute_copy(&ppredicatevalue)) @@ -9546,7 +9546,7 @@ impl ID3D11DeviceContext_Vtbl { ID3D11DeviceContext_Impl::GetContextFlags(this) } } - unsafe extern "system" fn FinishCommandList(this: *mut core::ffi::c_void, restoredeferredcontextstate: super::super::Foundation::BOOL, ppcommandlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn FinishCommandList(this: *mut core::ffi::c_void, restoredeferredcontextstate: windows_core::BOOL, ppcommandlist: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext_Impl::FinishCommandList(this, core::mem::transmute_copy(&restoredeferredcontextstate), core::mem::transmute_copy(&ppcommandlist)).into() @@ -10001,7 +10001,7 @@ impl ID3D11DeviceContext2 { { unsafe { (windows_core::Interface::vtable(self).TiledResourceBarrier)(windows_core::Interface::as_raw(self), ptiledresourceorviewaccessbeforebarrier.param().abi(), ptiledresourceorviewaccessafterbarrier.param().abi()) } } - pub unsafe fn IsAnnotationEnabled(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsAnnotationEnabled(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsAnnotationEnabled)(windows_core::Interface::as_raw(self)) } } pub unsafe fn SetMarkerInt(&self, plabel: P0, data: i32) @@ -10029,7 +10029,7 @@ pub struct ID3D11DeviceContext2_Vtbl { pub UpdateTiles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const D3D11_TILED_RESOURCE_COORDINATE, *const D3D11_TILE_REGION_SIZE, *const core::ffi::c_void, u32), pub ResizeTilePool: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u64) -> windows_core::HRESULT, pub TiledResourceBarrier: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void), - pub IsAnnotationEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsAnnotationEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub SetMarkerInt: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, i32), pub BeginEventInt: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, i32), pub EndEvent: unsafe extern "system" fn(*mut core::ffi::c_void), @@ -10044,7 +10044,7 @@ pub trait ID3D11DeviceContext2_Impl: ID3D11DeviceContext1_Impl { fn UpdateTiles(&self, pdesttiledresource: windows_core::Ref, pdesttileregionstartcoordinate: *const D3D11_TILED_RESOURCE_COORDINATE, pdesttileregionsize: *const D3D11_TILE_REGION_SIZE, psourcetiledata: *const core::ffi::c_void, flags: u32); fn ResizeTilePool(&self, ptilepool: windows_core::Ref, newsizeinbytes: u64) -> windows_core::Result<()>; fn TiledResourceBarrier(&self, ptiledresourceorviewaccessbeforebarrier: windows_core::Ref, ptiledresourceorviewaccessafterbarrier: windows_core::Ref); - fn IsAnnotationEnabled(&self) -> super::super::Foundation::BOOL; + fn IsAnnotationEnabled(&self) -> windows_core::BOOL; fn SetMarkerInt(&self, plabel: &windows_core::PCWSTR, data: i32); fn BeginEventInt(&self, plabel: &windows_core::PCWSTR, data: i32); fn EndEvent(&self); @@ -10088,7 +10088,7 @@ impl ID3D11DeviceContext2_Vtbl { ID3D11DeviceContext2_Impl::TiledResourceBarrier(this, core::mem::transmute_copy(&ptiledresourceorviewaccessbeforebarrier), core::mem::transmute_copy(&ptiledresourceorviewaccessafterbarrier)) } } - unsafe extern "system" fn IsAnnotationEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsAnnotationEnabled(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext2_Impl::IsAnnotationEnabled(this) @@ -10147,7 +10147,7 @@ impl ID3D11DeviceContext3 { pub unsafe fn SetHardwareProtectionState(&self, hwprotectionenable: bool) { unsafe { (windows_core::Interface::vtable(self).SetHardwareProtectionState)(windows_core::Interface::as_raw(self), hwprotectionenable.into()) } } - pub unsafe fn GetHardwareProtectionState(&self) -> super::super::Foundation::BOOL { + pub unsafe fn GetHardwareProtectionState(&self) -> windows_core::BOOL { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHardwareProtectionState)(windows_core::Interface::as_raw(self), &mut result__); @@ -10159,16 +10159,16 @@ impl ID3D11DeviceContext3 { pub struct ID3D11DeviceContext3_Vtbl { pub base__: ID3D11DeviceContext2_Vtbl, pub Flush1: unsafe extern "system" fn(*mut core::ffi::c_void, D3D11_CONTEXT_TYPE, super::super::Foundation::HANDLE), - pub SetHardwareProtectionState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL), - pub GetHardwareProtectionState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL), + pub SetHardwareProtectionState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), + pub GetHardwareProtectionState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL), } unsafe impl Send for ID3D11DeviceContext3 {} unsafe impl Sync for ID3D11DeviceContext3 {} #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] pub trait ID3D11DeviceContext3_Impl: ID3D11DeviceContext2_Impl { fn Flush1(&self, contexttype: D3D11_CONTEXT_TYPE, hevent: super::super::Foundation::HANDLE); - fn SetHardwareProtectionState(&self, hwprotectionenable: super::super::Foundation::BOOL); - fn GetHardwareProtectionState(&self, phwprotectionenable: *mut super::super::Foundation::BOOL); + fn SetHardwareProtectionState(&self, hwprotectionenable: windows_core::BOOL); + fn GetHardwareProtectionState(&self, phwprotectionenable: *mut windows_core::BOOL); } #[cfg(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common"))] impl ID3D11DeviceContext3_Vtbl { @@ -10179,13 +10179,13 @@ impl ID3D11DeviceContext3_Vtbl { ID3D11DeviceContext3_Impl::Flush1(this, core::mem::transmute_copy(&contexttype), core::mem::transmute_copy(&hevent)) } } - unsafe extern "system" fn SetHardwareProtectionState(this: *mut core::ffi::c_void, hwprotectionenable: super::super::Foundation::BOOL) { + unsafe extern "system" fn SetHardwareProtectionState(this: *mut core::ffi::c_void, hwprotectionenable: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext3_Impl::SetHardwareProtectionState(this, core::mem::transmute_copy(&hwprotectionenable)) } } - unsafe extern "system" fn GetHardwareProtectionState(this: *mut core::ffi::c_void, phwprotectionenable: *mut super::super::Foundation::BOOL) { + unsafe extern "system" fn GetHardwareProtectionState(this: *mut core::ffi::c_void, phwprotectionenable: *mut windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11DeviceContext3_Impl::GetHardwareProtectionState(this, core::mem::transmute_copy(&phwprotectionenable)) @@ -10901,19 +10901,19 @@ impl ID3D11InfoQueue { pub unsafe fn SetBreakOnID(&self, id: D3D11_MESSAGE_ID, benable: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), id, benable.into()).ok() } } - pub unsafe fn GetBreakOnCategory(&self, category: D3D11_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL { + pub unsafe fn GetBreakOnCategory(&self, category: D3D11_MESSAGE_CATEGORY) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetBreakOnCategory)(windows_core::Interface::as_raw(self), category) } } - pub unsafe fn GetBreakOnSeverity(&self, severity: D3D11_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL { + pub unsafe fn GetBreakOnSeverity(&self, severity: D3D11_MESSAGE_SEVERITY) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetBreakOnSeverity)(windows_core::Interface::as_raw(self), severity) } } - pub unsafe fn GetBreakOnID(&self, id: D3D11_MESSAGE_ID) -> super::super::Foundation::BOOL { + pub unsafe fn GetBreakOnID(&self, id: D3D11_MESSAGE_ID) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetBreakOnID)(windows_core::Interface::as_raw(self), id) } } pub unsafe fn SetMuteDebugOutput(&self, bmute: bool) { unsafe { (windows_core::Interface::vtable(self).SetMuteDebugOutput)(windows_core::Interface::as_raw(self), bmute.into()) } } - pub unsafe fn GetMuteDebugOutput(&self) -> super::super::Foundation::BOOL { + pub unsafe fn GetMuteDebugOutput(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetMuteDebugOutput)(windows_core::Interface::as_raw(self)) } } } @@ -10947,14 +10947,14 @@ pub struct ID3D11InfoQueue_Vtbl { pub GetRetrievalFilterStackSize: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, pub AddMessage: unsafe extern "system" fn(*mut core::ffi::c_void, D3D11_MESSAGE_CATEGORY, D3D11_MESSAGE_SEVERITY, D3D11_MESSAGE_ID, windows_core::PCSTR) -> windows_core::HRESULT, pub AddApplicationMessage: unsafe extern "system" fn(*mut core::ffi::c_void, D3D11_MESSAGE_SEVERITY, windows_core::PCSTR) -> windows_core::HRESULT, - pub SetBreakOnCategory: unsafe extern "system" fn(*mut core::ffi::c_void, D3D11_MESSAGE_CATEGORY, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetBreakOnSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, D3D11_MESSAGE_SEVERITY, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetBreakOnID: unsafe extern "system" fn(*mut core::ffi::c_void, D3D11_MESSAGE_ID, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetBreakOnCategory: unsafe extern "system" fn(*mut core::ffi::c_void, D3D11_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL, - pub GetBreakOnSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, D3D11_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL, - pub GetBreakOnID: unsafe extern "system" fn(*mut core::ffi::c_void, D3D11_MESSAGE_ID) -> super::super::Foundation::BOOL, - pub SetMuteDebugOutput: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL), - pub GetMuteDebugOutput: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub SetBreakOnCategory: unsafe extern "system" fn(*mut core::ffi::c_void, D3D11_MESSAGE_CATEGORY, windows_core::BOOL) -> windows_core::HRESULT, + pub SetBreakOnSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, D3D11_MESSAGE_SEVERITY, windows_core::BOOL) -> windows_core::HRESULT, + pub SetBreakOnID: unsafe extern "system" fn(*mut core::ffi::c_void, D3D11_MESSAGE_ID, windows_core::BOOL) -> windows_core::HRESULT, + pub GetBreakOnCategory: unsafe extern "system" fn(*mut core::ffi::c_void, D3D11_MESSAGE_CATEGORY) -> windows_core::BOOL, + pub GetBreakOnSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, D3D11_MESSAGE_SEVERITY) -> windows_core::BOOL, + pub GetBreakOnID: unsafe extern "system" fn(*mut core::ffi::c_void, D3D11_MESSAGE_ID) -> windows_core::BOOL, + pub SetMuteDebugOutput: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), + pub GetMuteDebugOutput: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } unsafe impl Send for ID3D11InfoQueue {} unsafe impl Sync for ID3D11InfoQueue {} @@ -10986,14 +10986,14 @@ pub trait ID3D11InfoQueue_Impl: windows_core::IUnknownImpl { fn GetRetrievalFilterStackSize(&self) -> u32; fn AddMessage(&self, category: D3D11_MESSAGE_CATEGORY, severity: D3D11_MESSAGE_SEVERITY, id: D3D11_MESSAGE_ID, pdescription: &windows_core::PCSTR) -> windows_core::Result<()>; fn AddApplicationMessage(&self, severity: D3D11_MESSAGE_SEVERITY, pdescription: &windows_core::PCSTR) -> windows_core::Result<()>; - fn SetBreakOnCategory(&self, category: D3D11_MESSAGE_CATEGORY, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetBreakOnSeverity(&self, severity: D3D11_MESSAGE_SEVERITY, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetBreakOnID(&self, id: D3D11_MESSAGE_ID, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetBreakOnCategory(&self, category: D3D11_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL; - fn GetBreakOnSeverity(&self, severity: D3D11_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL; - fn GetBreakOnID(&self, id: D3D11_MESSAGE_ID) -> super::super::Foundation::BOOL; - fn SetMuteDebugOutput(&self, bmute: super::super::Foundation::BOOL); - fn GetMuteDebugOutput(&self) -> super::super::Foundation::BOOL; + fn SetBreakOnCategory(&self, category: D3D11_MESSAGE_CATEGORY, benable: windows_core::BOOL) -> windows_core::Result<()>; + fn SetBreakOnSeverity(&self, severity: D3D11_MESSAGE_SEVERITY, benable: windows_core::BOOL) -> windows_core::Result<()>; + fn SetBreakOnID(&self, id: D3D11_MESSAGE_ID, benable: windows_core::BOOL) -> windows_core::Result<()>; + fn GetBreakOnCategory(&self, category: D3D11_MESSAGE_CATEGORY) -> windows_core::BOOL; + fn GetBreakOnSeverity(&self, severity: D3D11_MESSAGE_SEVERITY) -> windows_core::BOOL; + fn GetBreakOnID(&self, id: D3D11_MESSAGE_ID) -> windows_core::BOOL; + fn SetMuteDebugOutput(&self, bmute: windows_core::BOOL); + fn GetMuteDebugOutput(&self) -> windows_core::BOOL; } impl ID3D11InfoQueue_Vtbl { pub const fn new() -> Self { @@ -11159,49 +11159,49 @@ impl ID3D11InfoQueue_Vtbl { ID3D11InfoQueue_Impl::AddApplicationMessage(this, core::mem::transmute_copy(&severity), core::mem::transmute(&pdescription)).into() } } - unsafe extern "system" fn SetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D11_MESSAGE_CATEGORY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D11_MESSAGE_CATEGORY, benable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::SetBreakOnCategory(this, core::mem::transmute_copy(&category), core::mem::transmute_copy(&benable)).into() } } - unsafe extern "system" fn SetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D11_MESSAGE_SEVERITY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D11_MESSAGE_SEVERITY, benable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::SetBreakOnSeverity(this, core::mem::transmute_copy(&severity), core::mem::transmute_copy(&benable)).into() } } - unsafe extern "system" fn SetBreakOnID(this: *mut core::ffi::c_void, id: D3D11_MESSAGE_ID, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBreakOnID(this: *mut core::ffi::c_void, id: D3D11_MESSAGE_ID, benable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::SetBreakOnID(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&benable)).into() } } - unsafe extern "system" fn GetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D11_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D11_MESSAGE_CATEGORY) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetBreakOnCategory(this, core::mem::transmute_copy(&category)) } } - unsafe extern "system" fn GetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D11_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D11_MESSAGE_SEVERITY) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetBreakOnSeverity(this, core::mem::transmute_copy(&severity)) } } - unsafe extern "system" fn GetBreakOnID(this: *mut core::ffi::c_void, id: D3D11_MESSAGE_ID) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetBreakOnID(this: *mut core::ffi::c_void, id: D3D11_MESSAGE_ID) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetBreakOnID(this, core::mem::transmute_copy(&id)) } } - unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, bmute: super::super::Foundation::BOOL) { + unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, bmute: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::SetMuteDebugOutput(this, core::mem::transmute_copy(&bmute)) } } - unsafe extern "system" fn GetMuteDebugOutput(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetMuteDebugOutput(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11InfoQueue_Impl::GetMuteDebugOutput(this) @@ -11634,10 +11634,10 @@ impl ID3D11Multithread { pub unsafe fn Leave(&self) { unsafe { (windows_core::Interface::vtable(self).Leave)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn SetMultithreadProtected(&self, bmtprotect: bool) -> super::super::Foundation::BOOL { + pub unsafe fn SetMultithreadProtected(&self, bmtprotect: bool) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).SetMultithreadProtected)(windows_core::Interface::as_raw(self), bmtprotect.into()) } } - pub unsafe fn GetMultithreadProtected(&self) -> super::super::Foundation::BOOL { + pub unsafe fn GetMultithreadProtected(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetMultithreadProtected)(windows_core::Interface::as_raw(self)) } } } @@ -11646,16 +11646,16 @@ pub struct ID3D11Multithread_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Enter: unsafe extern "system" fn(*mut core::ffi::c_void), pub Leave: unsafe extern "system" fn(*mut core::ffi::c_void), - pub SetMultithreadProtected: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> super::super::Foundation::BOOL, - pub GetMultithreadProtected: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub SetMultithreadProtected: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::BOOL, + pub GetMultithreadProtected: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } unsafe impl Send for ID3D11Multithread {} unsafe impl Sync for ID3D11Multithread {} pub trait ID3D11Multithread_Impl: windows_core::IUnknownImpl { fn Enter(&self); fn Leave(&self); - fn SetMultithreadProtected(&self, bmtprotect: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - fn GetMultithreadProtected(&self) -> super::super::Foundation::BOOL; + fn SetMultithreadProtected(&self, bmtprotect: windows_core::BOOL) -> windows_core::BOOL; + fn GetMultithreadProtected(&self) -> windows_core::BOOL; } impl ID3D11Multithread_Vtbl { pub const fn new() -> Self { @@ -11671,13 +11671,13 @@ impl ID3D11Multithread_Vtbl { ID3D11Multithread_Impl::Leave(this) } } - unsafe extern "system" fn SetMultithreadProtected(this: *mut core::ffi::c_void, bmtprotect: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { + unsafe extern "system" fn SetMultithreadProtected(this: *mut core::ffi::c_void, bmtprotect: windows_core::BOOL) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Multithread_Impl::SetMultithreadProtected(this, core::mem::transmute_copy(&bmtprotect)) } } - unsafe extern "system" fn GetMultithreadProtected(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetMultithreadProtected(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11Multithread_Impl::GetMultithreadProtected(this) @@ -12264,7 +12264,7 @@ impl ID3D11ShaderReflection { pub unsafe fn GetGSInputPrimitive(&self) -> super::Direct3D::D3D_PRIMITIVE { unsafe { (windows_core::Interface::vtable(self).GetGSInputPrimitive)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn IsSampleFrequencyShader(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsSampleFrequencyShader(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsSampleFrequencyShader)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetNumInterfaceSlots(&self) -> u32 { @@ -12322,7 +12322,7 @@ pub struct ID3D11ShaderReflection_Vtbl { pub GetGSInputPrimitive: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::Direct3D::D3D_PRIMITIVE, #[cfg(not(feature = "Win32_Graphics_Direct3D"))] GetGSInputPrimitive: usize, - pub IsSampleFrequencyShader: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsSampleFrequencyShader: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetNumInterfaceSlots: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, #[cfg(feature = "Win32_Graphics_Direct3D")] pub GetMinFeatureLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::Direct3D::D3D_FEATURE_LEVEL) -> windows_core::HRESULT, @@ -12349,7 +12349,7 @@ pub trait ID3D11ShaderReflection_Impl: windows_core::IUnknownImpl { fn GetConversionInstructionCount(&self) -> u32; fn GetBitwiseInstructionCount(&self) -> u32; fn GetGSInputPrimitive(&self) -> super::Direct3D::D3D_PRIMITIVE; - fn IsSampleFrequencyShader(&self) -> super::super::Foundation::BOOL; + fn IsSampleFrequencyShader(&self) -> windows_core::BOOL; fn GetNumInterfaceSlots(&self) -> u32; fn GetMinFeatureLevel(&self) -> windows_core::Result; fn GetThreadGroupSize(&self, psizex: *mut u32, psizey: *mut u32, psizez: *mut u32) -> u32; @@ -12442,7 +12442,7 @@ impl ID3D11ShaderReflection_Vtbl { ID3D11ShaderReflection_Impl::GetGSInputPrimitive(this) } } - unsafe extern "system" fn IsSampleFrequencyShader(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsSampleFrequencyShader(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11ShaderReflection_Impl::IsSampleFrequencyShader(this) @@ -13102,34 +13102,34 @@ impl windows_core::RuntimeName for ID3D11ShaderTraceFactory {} windows_core::imp::define_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: bool) -> super::super::Foundation::BOOL { + pub unsafe fn SetUseRef(&self, useref: bool) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).SetUseRef)(windows_core::Interface::as_raw(self), useref.into()) } } - pub unsafe fn GetUseRef(&self) -> super::super::Foundation::BOOL { + pub unsafe fn GetUseRef(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetUseRef)(windows_core::Interface::as_raw(self)) } } } #[repr(C)] pub struct ID3D11SwitchToRef_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetUseRef: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> super::super::Foundation::BOOL, - pub GetUseRef: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub SetUseRef: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::BOOL, + pub GetUseRef: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } unsafe impl Send for ID3D11SwitchToRef {} unsafe impl Sync for ID3D11SwitchToRef {} pub trait ID3D11SwitchToRef_Impl: windows_core::IUnknownImpl { - fn SetUseRef(&self, useref: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; - fn GetUseRef(&self) -> super::super::Foundation::BOOL; + fn SetUseRef(&self, useref: windows_core::BOOL) -> windows_core::BOOL; + fn GetUseRef(&self) -> windows_core::BOOL; } impl ID3D11SwitchToRef_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetUseRef(this: *mut core::ffi::c_void, useref: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { + unsafe extern "system" fn SetUseRef(this: *mut core::ffi::c_void, useref: windows_core::BOOL) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11SwitchToRef_Impl::SetUseRef(this, core::mem::transmute_copy(&useref)) } } - unsafe extern "system" fn GetUseRef(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetUseRef(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11SwitchToRef_Impl::GetUseRef(this) @@ -13623,13 +13623,13 @@ impl ID3D11VideoContext { { unsafe { (windows_core::Interface::vtable(self).VideoProcessorSetOutputExtension)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), pextensionguid, datasize, pdata) } } - pub unsafe fn VideoProcessorGetOutputTargetRect(&self, pvideoprocessor: P0, enabled: *mut super::super::Foundation::BOOL, prect: *mut super::super::Foundation::RECT) + pub unsafe fn VideoProcessorGetOutputTargetRect(&self, pvideoprocessor: P0, enabled: *mut windows_core::BOOL, prect: *mut super::super::Foundation::RECT) where P0: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).VideoProcessorGetOutputTargetRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), enabled as _, prect as _) } } - pub unsafe fn VideoProcessorGetOutputBackgroundColor(&self, pvideoprocessor: P0, pycbcr: *mut super::super::Foundation::BOOL, pcolor: *mut D3D11_VIDEO_COLOR) + pub unsafe fn VideoProcessorGetOutputBackgroundColor(&self, pvideoprocessor: P0, pycbcr: *mut windows_core::BOOL, pcolor: *mut D3D11_VIDEO_COLOR) where P0: windows_core::Param, { @@ -13651,13 +13651,13 @@ impl ID3D11VideoContext { { unsafe { (windows_core::Interface::vtable(self).VideoProcessorGetOutputAlphaFillMode)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), palphafillmode as _, pstreamindex as _) } } - pub unsafe fn VideoProcessorGetOutputConstriction(&self, pvideoprocessor: P0, penabled: *mut super::super::Foundation::BOOL, psize: *mut super::super::Foundation::SIZE) + pub unsafe fn VideoProcessorGetOutputConstriction(&self, pvideoprocessor: P0, penabled: *mut windows_core::BOOL, psize: *mut super::super::Foundation::SIZE) where P0: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).VideoProcessorGetOutputConstriction)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), penabled as _, psize as _) } } - pub unsafe fn VideoProcessorGetOutputStereoMode(&self, pvideoprocessor: P0) -> super::super::Foundation::BOOL + pub unsafe fn VideoProcessorGetOutputStereoMode(&self, pvideoprocessor: P0) -> windows_core::BOOL where P0: windows_core::Param, { @@ -13774,25 +13774,25 @@ impl ID3D11VideoContext { } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] - pub unsafe fn VideoProcessorGetStreamOutputRate(&self, pvideoprocessor: P0, streamindex: u32, poutputrate: *mut D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, prepeatframe: *mut super::super::Foundation::BOOL, pcustomrate: *mut super::Dxgi::Common::DXGI_RATIONAL) + pub unsafe fn VideoProcessorGetStreamOutputRate(&self, pvideoprocessor: P0, streamindex: u32, poutputrate: *mut D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, prepeatframe: *mut windows_core::BOOL, pcustomrate: *mut super::Dxgi::Common::DXGI_RATIONAL) where P0: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).VideoProcessorGetStreamOutputRate)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, poutputrate as _, prepeatframe as _, pcustomrate as _) } } - pub unsafe fn VideoProcessorGetStreamSourceRect(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, prect: *mut super::super::Foundation::RECT) + pub unsafe fn VideoProcessorGetStreamSourceRect(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut windows_core::BOOL, prect: *mut super::super::Foundation::RECT) where P0: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).VideoProcessorGetStreamSourceRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled as _, prect as _) } } - pub unsafe fn VideoProcessorGetStreamDestRect(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, prect: *mut super::super::Foundation::RECT) + pub unsafe fn VideoProcessorGetStreamDestRect(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut windows_core::BOOL, prect: *mut super::super::Foundation::RECT) where P0: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).VideoProcessorGetStreamDestRect)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled as _, prect as _) } } - pub unsafe fn VideoProcessorGetStreamAlpha(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, palpha: *mut f32) + pub unsafe fn VideoProcessorGetStreamAlpha(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut windows_core::BOOL, palpha: *mut f32) where P0: windows_core::Param, { @@ -13805,25 +13805,25 @@ impl ID3D11VideoContext { unsafe { (windows_core::Interface::vtable(self).VideoProcessorGetStreamPalette)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, pentries.len().try_into().unwrap(), core::mem::transmute(pentries.as_ptr())) } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] - pub unsafe fn VideoProcessorGetStreamPixelAspectRatio(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, psourceaspectratio: *mut super::Dxgi::Common::DXGI_RATIONAL, pdestinationaspectratio: *mut super::Dxgi::Common::DXGI_RATIONAL) + pub unsafe fn VideoProcessorGetStreamPixelAspectRatio(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut windows_core::BOOL, psourceaspectratio: *mut super::Dxgi::Common::DXGI_RATIONAL, pdestinationaspectratio: *mut super::Dxgi::Common::DXGI_RATIONAL) where P0: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).VideoProcessorGetStreamPixelAspectRatio)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled as _, psourceaspectratio as _, pdestinationaspectratio as _) } } - pub unsafe fn VideoProcessorGetStreamLumaKey(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, plower: *mut f32, pupper: *mut f32) + pub unsafe fn VideoProcessorGetStreamLumaKey(&self, pvideoprocessor: P0, streamindex: u32, penabled: *mut windows_core::BOOL, plower: *mut f32, pupper: *mut f32) where P0: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).VideoProcessorGetStreamLumaKey)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penabled as _, plower as _, pupper as _) } } - pub unsafe fn VideoProcessorGetStreamStereoFormat(&self, pvideoprocessor: P0, streamindex: u32, penable: *mut super::super::Foundation::BOOL, pformat: *mut D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, pleftviewframe0: *mut super::super::Foundation::BOOL, pbaseviewframe0: *mut super::super::Foundation::BOOL, pflipmode: *mut D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: *mut i32) + pub unsafe fn VideoProcessorGetStreamStereoFormat(&self, pvideoprocessor: P0, streamindex: u32, penable: *mut windows_core::BOOL, pformat: *mut D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, pleftviewframe0: *mut windows_core::BOOL, pbaseviewframe0: *mut windows_core::BOOL, pflipmode: *mut D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: *mut i32) where P0: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).VideoProcessorGetStreamStereoFormat)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, penable as _, pformat as _, pleftviewframe0 as _, pbaseviewframe0 as _, pflipmode as _, monooffset as _) } } - pub unsafe fn VideoProcessorGetStreamAutoProcessingMode(&self, pvideoprocessor: P0, streamindex: u32) -> super::super::Foundation::BOOL + pub unsafe fn VideoProcessorGetStreamAutoProcessingMode(&self, pvideoprocessor: P0, streamindex: u32) -> windows_core::BOOL where P0: windows_core::Param, { @@ -13833,7 +13833,7 @@ impl ID3D11VideoContext { result__ } } - pub unsafe fn VideoProcessorGetStreamFilter(&self, pvideoprocessor: P0, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, penabled: *mut super::super::Foundation::BOOL, plevel: *mut i32) + pub unsafe fn VideoProcessorGetStreamFilter(&self, pvideoprocessor: P0, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, penabled: *mut windows_core::BOOL, plevel: *mut i32) where P0: windows_core::Param, { @@ -13916,7 +13916,7 @@ impl ID3D11VideoContext { { unsafe { (windows_core::Interface::vtable(self).VideoProcessorSetStreamRotation)(windows_core::Interface::as_raw(self), pvideoprocessor.param().abi(), streamindex, enable.into(), rotation) } } - pub unsafe fn VideoProcessorGetStreamRotation(&self, pvideoprocessor: P0, streamindex: u32, penable: *mut super::super::Foundation::BOOL, protation: *mut D3D11_VIDEO_PROCESSOR_ROTATION) + pub unsafe fn VideoProcessorGetStreamRotation(&self, pvideoprocessor: P0, streamindex: u32, penable: *mut windows_core::BOOL, protation: *mut D3D11_VIDEO_PROCESSOR_ROTATION) where P0: windows_core::Param, { @@ -13932,57 +13932,57 @@ pub struct ID3D11VideoContext_Vtbl { pub DecoderEndFrame: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SubmitDecoderBuffers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const D3D11_VIDEO_DECODER_BUFFER_DESC) -> windows_core::HRESULT, pub DecoderExtension: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const D3D11_VIDEO_DECODER_EXTENSION) -> i32, - pub VideoProcessorSetOutputTargetRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *const super::super::Foundation::RECT), - pub VideoProcessorSetOutputBackgroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *const D3D11_VIDEO_COLOR), + pub VideoProcessorSetOutputTargetRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *const super::super::Foundation::RECT), + pub VideoProcessorSetOutputBackgroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *const D3D11_VIDEO_COLOR), pub VideoProcessorSetOutputColorSpace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const D3D11_VIDEO_PROCESSOR_COLOR_SPACE), pub VideoProcessorSetOutputAlphaFillMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE, u32), - pub VideoProcessorSetOutputConstriction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::SIZE), - pub VideoProcessorSetOutputStereoMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL), + pub VideoProcessorSetOutputConstriction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, super::super::Foundation::SIZE), + pub VideoProcessorSetOutputStereoMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL), pub VideoProcessorSetOutputExtension: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, u32, *const core::ffi::c_void) -> i32, - pub VideoProcessorGetOutputTargetRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::RECT), - pub VideoProcessorGetOutputBackgroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut D3D11_VIDEO_COLOR), + pub VideoProcessorGetOutputTargetRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL, *mut super::super::Foundation::RECT), + pub VideoProcessorGetOutputBackgroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL, *mut D3D11_VIDEO_COLOR), pub VideoProcessorGetOutputColorSpace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut D3D11_VIDEO_PROCESSOR_COLOR_SPACE), pub VideoProcessorGetOutputAlphaFillMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE, *mut u32), - pub VideoProcessorGetOutputConstriction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::SIZE), - pub VideoProcessorGetOutputStereoMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL), + pub VideoProcessorGetOutputConstriction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL, *mut super::super::Foundation::SIZE), + pub VideoProcessorGetOutputStereoMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL), pub VideoProcessorGetOutputExtension: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, u32, *mut core::ffi::c_void) -> i32, pub VideoProcessorSetStreamFrameFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, D3D11_VIDEO_FRAME_FORMAT), pub VideoProcessorSetStreamColorSpace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const D3D11_VIDEO_PROCESSOR_COLOR_SPACE), #[cfg(feature = "Win32_Graphics_Dxgi_Common")] - pub VideoProcessorSetStreamOutputRate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, super::super::Foundation::BOOL, *const super::Dxgi::Common::DXGI_RATIONAL), + pub VideoProcessorSetStreamOutputRate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, windows_core::BOOL, *const super::Dxgi::Common::DXGI_RATIONAL), #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] VideoProcessorSetStreamOutputRate: usize, - pub VideoProcessorSetStreamSourceRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, super::super::Foundation::BOOL, *const super::super::Foundation::RECT), - pub VideoProcessorSetStreamDestRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, super::super::Foundation::BOOL, *const super::super::Foundation::RECT), - pub VideoProcessorSetStreamAlpha: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, super::super::Foundation::BOOL, f32), + pub VideoProcessorSetStreamSourceRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, windows_core::BOOL, *const super::super::Foundation::RECT), + pub VideoProcessorSetStreamDestRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, windows_core::BOOL, *const super::super::Foundation::RECT), + pub VideoProcessorSetStreamAlpha: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, windows_core::BOOL, f32), pub VideoProcessorSetStreamPalette: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, *const u32), #[cfg(feature = "Win32_Graphics_Dxgi_Common")] - pub VideoProcessorSetStreamPixelAspectRatio: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, super::super::Foundation::BOOL, *const super::Dxgi::Common::DXGI_RATIONAL, *const super::Dxgi::Common::DXGI_RATIONAL), + pub VideoProcessorSetStreamPixelAspectRatio: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, windows_core::BOOL, *const super::Dxgi::Common::DXGI_RATIONAL, *const super::Dxgi::Common::DXGI_RATIONAL), #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] VideoProcessorSetStreamPixelAspectRatio: usize, - pub VideoProcessorSetStreamLumaKey: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, super::super::Foundation::BOOL, f32, f32), - pub VideoProcessorSetStreamStereoFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, super::super::Foundation::BOOL, D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, super::super::Foundation::BOOL, super::super::Foundation::BOOL, D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, i32), - pub VideoProcessorSetStreamAutoProcessingMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, super::super::Foundation::BOOL), - pub VideoProcessorSetStreamFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, D3D11_VIDEO_PROCESSOR_FILTER, super::super::Foundation::BOOL, i32), + pub VideoProcessorSetStreamLumaKey: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, windows_core::BOOL, f32, f32), + pub VideoProcessorSetStreamStereoFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, windows_core::BOOL, D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, windows_core::BOOL, windows_core::BOOL, D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, i32), + pub VideoProcessorSetStreamAutoProcessingMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, windows_core::BOOL), + pub VideoProcessorSetStreamFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, D3D11_VIDEO_PROCESSOR_FILTER, windows_core::BOOL, i32), pub VideoProcessorSetStreamExtension: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const windows_core::GUID, u32, *const core::ffi::c_void) -> i32, pub VideoProcessorGetStreamFrameFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut D3D11_VIDEO_FRAME_FORMAT), pub VideoProcessorGetStreamColorSpace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut D3D11_VIDEO_PROCESSOR_COLOR_SPACE), #[cfg(feature = "Win32_Graphics_Dxgi_Common")] - pub VideoProcessorGetStreamOutputRate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, *mut super::super::Foundation::BOOL, *mut super::Dxgi::Common::DXGI_RATIONAL), + pub VideoProcessorGetStreamOutputRate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, *mut windows_core::BOOL, *mut super::Dxgi::Common::DXGI_RATIONAL), #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] VideoProcessorGetStreamOutputRate: usize, - pub VideoProcessorGetStreamSourceRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::RECT), - pub VideoProcessorGetStreamDestRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::RECT), - pub VideoProcessorGetStreamAlpha: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL, *mut f32), + pub VideoProcessorGetStreamSourceRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut windows_core::BOOL, *mut super::super::Foundation::RECT), + pub VideoProcessorGetStreamDestRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut windows_core::BOOL, *mut super::super::Foundation::RECT), + pub VideoProcessorGetStreamAlpha: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut windows_core::BOOL, *mut f32), pub VideoProcessorGetStreamPalette: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, *mut u32), #[cfg(feature = "Win32_Graphics_Dxgi_Common")] - pub VideoProcessorGetStreamPixelAspectRatio: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL, *mut super::Dxgi::Common::DXGI_RATIONAL, *mut super::Dxgi::Common::DXGI_RATIONAL), + pub VideoProcessorGetStreamPixelAspectRatio: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut windows_core::BOOL, *mut super::Dxgi::Common::DXGI_RATIONAL, *mut super::Dxgi::Common::DXGI_RATIONAL), #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] VideoProcessorGetStreamPixelAspectRatio: usize, - pub VideoProcessorGetStreamLumaKey: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL, *mut f32, *mut f32), - pub VideoProcessorGetStreamStereoFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL, *mut D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL, *mut D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, *mut i32), - pub VideoProcessorGetStreamAutoProcessingMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL), - pub VideoProcessorGetStreamFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, D3D11_VIDEO_PROCESSOR_FILTER, *mut super::super::Foundation::BOOL, *mut i32), + pub VideoProcessorGetStreamLumaKey: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut windows_core::BOOL, *mut f32, *mut f32), + pub VideoProcessorGetStreamStereoFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut windows_core::BOOL, *mut D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, *mut windows_core::BOOL, *mut windows_core::BOOL, *mut D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, *mut i32), + pub VideoProcessorGetStreamAutoProcessingMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut windows_core::BOOL), + pub VideoProcessorGetStreamFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, D3D11_VIDEO_PROCESSOR_FILTER, *mut windows_core::BOOL, *mut i32), pub VideoProcessorGetStreamExtension: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const windows_core::GUID, u32, *mut core::ffi::c_void) -> i32, pub VideoProcessorBlt: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, *const D3D11_VIDEO_PROCESSOR_STREAM) -> windows_core::HRESULT, pub NegotiateCryptoSessionKeyExchange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -13994,8 +13994,8 @@ pub struct ID3D11VideoContext_Vtbl { pub NegotiateAuthenticatedChannelKeyExchange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, pub QueryAuthenticatedChannel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const core::ffi::c_void, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, pub ConfigureAuthenticatedChannel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const core::ffi::c_void, *mut D3D11_AUTHENTICATED_CONFIGURE_OUTPUT) -> windows_core::HRESULT, - pub VideoProcessorSetStreamRotation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, super::super::Foundation::BOOL, D3D11_VIDEO_PROCESSOR_ROTATION), - pub VideoProcessorGetStreamRotation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL, *mut D3D11_VIDEO_PROCESSOR_ROTATION), + pub VideoProcessorSetStreamRotation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, windows_core::BOOL, D3D11_VIDEO_PROCESSOR_ROTATION), + pub VideoProcessorGetStreamRotation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut windows_core::BOOL, *mut D3D11_VIDEO_PROCESSOR_ROTATION), } unsafe impl Send for ID3D11VideoContext {} unsafe impl Sync for ID3D11VideoContext {} @@ -14007,45 +14007,45 @@ pub trait ID3D11VideoContext_Impl: ID3D11DeviceChild_Impl { fn DecoderEndFrame(&self, pdecoder: windows_core::Ref) -> windows_core::Result<()>; fn SubmitDecoderBuffers(&self, pdecoder: windows_core::Ref, numbuffers: u32, pbufferdesc: *const D3D11_VIDEO_DECODER_BUFFER_DESC) -> windows_core::Result<()>; fn DecoderExtension(&self, pdecoder: windows_core::Ref, pextensiondata: *const D3D11_VIDEO_DECODER_EXTENSION) -> i32; - fn VideoProcessorSetOutputTargetRect(&self, pvideoprocessor: windows_core::Ref, enable: super::super::Foundation::BOOL, prect: *const super::super::Foundation::RECT); - fn VideoProcessorSetOutputBackgroundColor(&self, pvideoprocessor: windows_core::Ref, ycbcr: super::super::Foundation::BOOL, pcolor: *const D3D11_VIDEO_COLOR); + fn VideoProcessorSetOutputTargetRect(&self, pvideoprocessor: windows_core::Ref, enable: windows_core::BOOL, prect: *const super::super::Foundation::RECT); + fn VideoProcessorSetOutputBackgroundColor(&self, pvideoprocessor: windows_core::Ref, ycbcr: windows_core::BOOL, pcolor: *const D3D11_VIDEO_COLOR); fn VideoProcessorSetOutputColorSpace(&self, pvideoprocessor: windows_core::Ref, pcolorspace: *const D3D11_VIDEO_PROCESSOR_COLOR_SPACE); fn VideoProcessorSetOutputAlphaFillMode(&self, pvideoprocessor: windows_core::Ref, alphafillmode: D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE, streamindex: u32); - fn VideoProcessorSetOutputConstriction(&self, pvideoprocessor: windows_core::Ref, enable: super::super::Foundation::BOOL, size: &super::super::Foundation::SIZE); - fn VideoProcessorSetOutputStereoMode(&self, pvideoprocessor: windows_core::Ref, enable: super::super::Foundation::BOOL); + fn VideoProcessorSetOutputConstriction(&self, pvideoprocessor: windows_core::Ref, enable: windows_core::BOOL, size: &super::super::Foundation::SIZE); + fn VideoProcessorSetOutputStereoMode(&self, pvideoprocessor: windows_core::Ref, enable: windows_core::BOOL); fn VideoProcessorSetOutputExtension(&self, pvideoprocessor: windows_core::Ref, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> i32; - fn VideoProcessorGetOutputTargetRect(&self, pvideoprocessor: windows_core::Ref, enabled: *mut super::super::Foundation::BOOL, prect: *mut super::super::Foundation::RECT); - fn VideoProcessorGetOutputBackgroundColor(&self, pvideoprocessor: windows_core::Ref, pycbcr: *mut super::super::Foundation::BOOL, pcolor: *mut D3D11_VIDEO_COLOR); + fn VideoProcessorGetOutputTargetRect(&self, pvideoprocessor: windows_core::Ref, enabled: *mut windows_core::BOOL, prect: *mut super::super::Foundation::RECT); + fn VideoProcessorGetOutputBackgroundColor(&self, pvideoprocessor: windows_core::Ref, pycbcr: *mut windows_core::BOOL, pcolor: *mut D3D11_VIDEO_COLOR); fn VideoProcessorGetOutputColorSpace(&self, pvideoprocessor: windows_core::Ref, pcolorspace: *mut D3D11_VIDEO_PROCESSOR_COLOR_SPACE); fn VideoProcessorGetOutputAlphaFillMode(&self, pvideoprocessor: windows_core::Ref, palphafillmode: *mut D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE, pstreamindex: *mut u32); - fn VideoProcessorGetOutputConstriction(&self, pvideoprocessor: windows_core::Ref, penabled: *mut super::super::Foundation::BOOL, psize: *mut super::super::Foundation::SIZE); - fn VideoProcessorGetOutputStereoMode(&self, pvideoprocessor: windows_core::Ref, penabled: *mut super::super::Foundation::BOOL); + fn VideoProcessorGetOutputConstriction(&self, pvideoprocessor: windows_core::Ref, penabled: *mut windows_core::BOOL, psize: *mut super::super::Foundation::SIZE); + fn VideoProcessorGetOutputStereoMode(&self, pvideoprocessor: windows_core::Ref, penabled: *mut windows_core::BOOL); fn VideoProcessorGetOutputExtension(&self, pvideoprocessor: windows_core::Ref, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *mut core::ffi::c_void) -> i32; fn VideoProcessorSetStreamFrameFormat(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, frameformat: D3D11_VIDEO_FRAME_FORMAT); fn VideoProcessorSetStreamColorSpace(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, pcolorspace: *const D3D11_VIDEO_PROCESSOR_COLOR_SPACE); - fn VideoProcessorSetStreamOutputRate(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, outputrate: D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, repeatframe: super::super::Foundation::BOOL, pcustomrate: *const super::Dxgi::Common::DXGI_RATIONAL); - fn VideoProcessorSetStreamSourceRect(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, enable: super::super::Foundation::BOOL, prect: *const super::super::Foundation::RECT); - fn VideoProcessorSetStreamDestRect(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, enable: super::super::Foundation::BOOL, prect: *const super::super::Foundation::RECT); - fn VideoProcessorSetStreamAlpha(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, enable: super::super::Foundation::BOOL, alpha: f32); + fn VideoProcessorSetStreamOutputRate(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, outputrate: D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, repeatframe: windows_core::BOOL, pcustomrate: *const super::Dxgi::Common::DXGI_RATIONAL); + fn VideoProcessorSetStreamSourceRect(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, enable: windows_core::BOOL, prect: *const super::super::Foundation::RECT); + fn VideoProcessorSetStreamDestRect(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, enable: windows_core::BOOL, prect: *const super::super::Foundation::RECT); + fn VideoProcessorSetStreamAlpha(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, enable: windows_core::BOOL, alpha: f32); fn VideoProcessorSetStreamPalette(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, count: u32, pentries: *const u32); - fn VideoProcessorSetStreamPixelAspectRatio(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, enable: super::super::Foundation::BOOL, psourceaspectratio: *const super::Dxgi::Common::DXGI_RATIONAL, pdestinationaspectratio: *const super::Dxgi::Common::DXGI_RATIONAL); - fn VideoProcessorSetStreamLumaKey(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, enable: super::super::Foundation::BOOL, lower: f32, upper: f32); - fn VideoProcessorSetStreamStereoFormat(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, enable: super::super::Foundation::BOOL, format: D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, leftviewframe0: super::super::Foundation::BOOL, baseviewframe0: super::super::Foundation::BOOL, flipmode: D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: i32); - fn VideoProcessorSetStreamAutoProcessingMode(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, enable: super::super::Foundation::BOOL); - fn VideoProcessorSetStreamFilter(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, enable: super::super::Foundation::BOOL, level: i32); + fn VideoProcessorSetStreamPixelAspectRatio(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, enable: windows_core::BOOL, psourceaspectratio: *const super::Dxgi::Common::DXGI_RATIONAL, pdestinationaspectratio: *const super::Dxgi::Common::DXGI_RATIONAL); + fn VideoProcessorSetStreamLumaKey(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, enable: windows_core::BOOL, lower: f32, upper: f32); + fn VideoProcessorSetStreamStereoFormat(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, enable: windows_core::BOOL, format: D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, leftviewframe0: windows_core::BOOL, baseviewframe0: windows_core::BOOL, flipmode: D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: i32); + fn VideoProcessorSetStreamAutoProcessingMode(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, enable: windows_core::BOOL); + fn VideoProcessorSetStreamFilter(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, enable: windows_core::BOOL, level: i32); fn VideoProcessorSetStreamExtension(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *const core::ffi::c_void) -> i32; fn VideoProcessorGetStreamFrameFormat(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, pframeformat: *mut D3D11_VIDEO_FRAME_FORMAT); fn VideoProcessorGetStreamColorSpace(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, pcolorspace: *mut D3D11_VIDEO_PROCESSOR_COLOR_SPACE); - fn VideoProcessorGetStreamOutputRate(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, poutputrate: *mut D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, prepeatframe: *mut super::super::Foundation::BOOL, pcustomrate: *mut super::Dxgi::Common::DXGI_RATIONAL); - fn VideoProcessorGetStreamSourceRect(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, prect: *mut super::super::Foundation::RECT); - fn VideoProcessorGetStreamDestRect(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, prect: *mut super::super::Foundation::RECT); - fn VideoProcessorGetStreamAlpha(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, palpha: *mut f32); + fn VideoProcessorGetStreamOutputRate(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, poutputrate: *mut D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, prepeatframe: *mut windows_core::BOOL, pcustomrate: *mut super::Dxgi::Common::DXGI_RATIONAL); + fn VideoProcessorGetStreamSourceRect(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, penabled: *mut windows_core::BOOL, prect: *mut super::super::Foundation::RECT); + fn VideoProcessorGetStreamDestRect(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, penabled: *mut windows_core::BOOL, prect: *mut super::super::Foundation::RECT); + fn VideoProcessorGetStreamAlpha(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, penabled: *mut windows_core::BOOL, palpha: *mut f32); fn VideoProcessorGetStreamPalette(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, count: u32, pentries: *mut u32); - fn VideoProcessorGetStreamPixelAspectRatio(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, psourceaspectratio: *mut super::Dxgi::Common::DXGI_RATIONAL, pdestinationaspectratio: *mut super::Dxgi::Common::DXGI_RATIONAL); - fn VideoProcessorGetStreamLumaKey(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, plower: *mut f32, pupper: *mut f32); - fn VideoProcessorGetStreamStereoFormat(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, penable: *mut super::super::Foundation::BOOL, pformat: *mut D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, pleftviewframe0: *mut super::super::Foundation::BOOL, pbaseviewframe0: *mut super::super::Foundation::BOOL, pflipmode: *mut D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: *mut i32); - fn VideoProcessorGetStreamAutoProcessingMode(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, penabled: *mut super::super::Foundation::BOOL); - fn VideoProcessorGetStreamFilter(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, penabled: *mut super::super::Foundation::BOOL, plevel: *mut i32); + fn VideoProcessorGetStreamPixelAspectRatio(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, penabled: *mut windows_core::BOOL, psourceaspectratio: *mut super::Dxgi::Common::DXGI_RATIONAL, pdestinationaspectratio: *mut super::Dxgi::Common::DXGI_RATIONAL); + fn VideoProcessorGetStreamLumaKey(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, penabled: *mut windows_core::BOOL, plower: *mut f32, pupper: *mut f32); + fn VideoProcessorGetStreamStereoFormat(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, penable: *mut windows_core::BOOL, pformat: *mut D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, pleftviewframe0: *mut windows_core::BOOL, pbaseviewframe0: *mut windows_core::BOOL, pflipmode: *mut D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: *mut i32); + fn VideoProcessorGetStreamAutoProcessingMode(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, penabled: *mut windows_core::BOOL); + fn VideoProcessorGetStreamFilter(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, penabled: *mut windows_core::BOOL, plevel: *mut i32); fn VideoProcessorGetStreamExtension(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, pextensionguid: *const windows_core::GUID, datasize: u32, pdata: *mut core::ffi::c_void) -> i32; fn VideoProcessorBlt(&self, pvideoprocessor: windows_core::Ref, pview: windows_core::Ref, outputframe: u32, streamcount: u32, pstreams: *const D3D11_VIDEO_PROCESSOR_STREAM) -> windows_core::Result<()>; fn NegotiateCryptoSessionKeyExchange(&self, pcryptosession: windows_core::Ref, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -14057,8 +14057,8 @@ pub trait ID3D11VideoContext_Impl: ID3D11DeviceChild_Impl { fn NegotiateAuthenticatedChannelKeyExchange(&self, pchannel: windows_core::Ref, datasize: u32, pdata: *mut core::ffi::c_void) -> windows_core::Result<()>; fn QueryAuthenticatedChannel(&self, pchannel: windows_core::Ref, inputsize: u32, pinput: *const core::ffi::c_void, outputsize: u32, poutput: *mut core::ffi::c_void) -> windows_core::Result<()>; fn ConfigureAuthenticatedChannel(&self, pchannel: windows_core::Ref, inputsize: u32, pinput: *const core::ffi::c_void, poutput: *mut D3D11_AUTHENTICATED_CONFIGURE_OUTPUT) -> windows_core::Result<()>; - fn VideoProcessorSetStreamRotation(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, enable: super::super::Foundation::BOOL, rotation: D3D11_VIDEO_PROCESSOR_ROTATION); - fn VideoProcessorGetStreamRotation(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, penable: *mut super::super::Foundation::BOOL, protation: *mut D3D11_VIDEO_PROCESSOR_ROTATION); + fn VideoProcessorSetStreamRotation(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, enable: windows_core::BOOL, rotation: D3D11_VIDEO_PROCESSOR_ROTATION); + fn VideoProcessorGetStreamRotation(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, penable: *mut windows_core::BOOL, protation: *mut D3D11_VIDEO_PROCESSOR_ROTATION); } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11VideoContext_Vtbl { @@ -14099,13 +14099,13 @@ impl ID3D11VideoContext_Vtbl { ID3D11VideoContext_Impl::DecoderExtension(this, core::mem::transmute_copy(&pdecoder), core::mem::transmute_copy(&pextensiondata)) } } - unsafe extern "system" fn VideoProcessorSetOutputTargetRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL, prect: *const super::super::Foundation::RECT) { + unsafe extern "system" fn VideoProcessorSetOutputTargetRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, enable: windows_core::BOOL, prect: *const super::super::Foundation::RECT) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetOutputTargetRect(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&prect)) } } - unsafe extern "system" fn VideoProcessorSetOutputBackgroundColor(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, ycbcr: super::super::Foundation::BOOL, pcolor: *const D3D11_VIDEO_COLOR) { + unsafe extern "system" fn VideoProcessorSetOutputBackgroundColor(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, ycbcr: windows_core::BOOL, pcolor: *const D3D11_VIDEO_COLOR) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetOutputBackgroundColor(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&ycbcr), core::mem::transmute_copy(&pcolor)) @@ -14123,13 +14123,13 @@ impl ID3D11VideoContext_Vtbl { ID3D11VideoContext_Impl::VideoProcessorSetOutputAlphaFillMode(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&alphafillmode), core::mem::transmute_copy(&streamindex)) } } - unsafe extern "system" fn VideoProcessorSetOutputConstriction(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL, size: super::super::Foundation::SIZE) { + unsafe extern "system" fn VideoProcessorSetOutputConstriction(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, enable: windows_core::BOOL, size: super::super::Foundation::SIZE) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetOutputConstriction(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&enable), core::mem::transmute(&size)) } } - unsafe extern "system" fn VideoProcessorSetOutputStereoMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) { + unsafe extern "system" fn VideoProcessorSetOutputStereoMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, enable: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetOutputStereoMode(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&enable)) @@ -14141,13 +14141,13 @@ impl ID3D11VideoContext_Vtbl { ID3D11VideoContext_Impl::VideoProcessorSetOutputExtension(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&pextensionguid), core::mem::transmute_copy(&datasize), core::mem::transmute_copy(&pdata)) } } - unsafe extern "system" fn VideoProcessorGetOutputTargetRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::BOOL, prect: *mut super::super::Foundation::RECT) { + unsafe extern "system" fn VideoProcessorGetOutputTargetRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, enabled: *mut windows_core::BOOL, prect: *mut super::super::Foundation::RECT) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetOutputTargetRect(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&enabled), core::mem::transmute_copy(&prect)) } } - unsafe extern "system" fn VideoProcessorGetOutputBackgroundColor(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pycbcr: *mut super::super::Foundation::BOOL, pcolor: *mut D3D11_VIDEO_COLOR) { + unsafe extern "system" fn VideoProcessorGetOutputBackgroundColor(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pycbcr: *mut windows_core::BOOL, pcolor: *mut D3D11_VIDEO_COLOR) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetOutputBackgroundColor(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&pycbcr), core::mem::transmute_copy(&pcolor)) @@ -14165,13 +14165,13 @@ impl ID3D11VideoContext_Vtbl { ID3D11VideoContext_Impl::VideoProcessorGetOutputAlphaFillMode(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&palphafillmode), core::mem::transmute_copy(&pstreamindex)) } } - unsafe extern "system" fn VideoProcessorGetOutputConstriction(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, penabled: *mut super::super::Foundation::BOOL, psize: *mut super::super::Foundation::SIZE) { + unsafe extern "system" fn VideoProcessorGetOutputConstriction(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, penabled: *mut windows_core::BOOL, psize: *mut super::super::Foundation::SIZE) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetOutputConstriction(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&penabled), core::mem::transmute_copy(&psize)) } } - unsafe extern "system" fn VideoProcessorGetOutputStereoMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, penabled: *mut super::super::Foundation::BOOL) { + unsafe extern "system" fn VideoProcessorGetOutputStereoMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, penabled: *mut windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetOutputStereoMode(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&penabled)) @@ -14195,25 +14195,25 @@ impl ID3D11VideoContext_Vtbl { ID3D11VideoContext_Impl::VideoProcessorSetStreamColorSpace(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&pcolorspace)) } } - unsafe extern "system" fn VideoProcessorSetStreamOutputRate(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, outputrate: D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, repeatframe: super::super::Foundation::BOOL, pcustomrate: *const super::Dxgi::Common::DXGI_RATIONAL) { + unsafe extern "system" fn VideoProcessorSetStreamOutputRate(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, outputrate: D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, repeatframe: windows_core::BOOL, pcustomrate: *const super::Dxgi::Common::DXGI_RATIONAL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamOutputRate(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&outputrate), core::mem::transmute_copy(&repeatframe), core::mem::transmute_copy(&pcustomrate)) } } - unsafe extern "system" fn VideoProcessorSetStreamSourceRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, prect: *const super::super::Foundation::RECT) { + unsafe extern "system" fn VideoProcessorSetStreamSourceRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: windows_core::BOOL, prect: *const super::super::Foundation::RECT) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamSourceRect(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&prect)) } } - unsafe extern "system" fn VideoProcessorSetStreamDestRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, prect: *const super::super::Foundation::RECT) { + unsafe extern "system" fn VideoProcessorSetStreamDestRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: windows_core::BOOL, prect: *const super::super::Foundation::RECT) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamDestRect(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&prect)) } } - unsafe extern "system" fn VideoProcessorSetStreamAlpha(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, alpha: f32) { + unsafe extern "system" fn VideoProcessorSetStreamAlpha(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: windows_core::BOOL, alpha: f32) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamAlpha(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&alpha)) @@ -14225,31 +14225,31 @@ impl ID3D11VideoContext_Vtbl { ID3D11VideoContext_Impl::VideoProcessorSetStreamPalette(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&count), core::mem::transmute_copy(&pentries)) } } - unsafe extern "system" fn VideoProcessorSetStreamPixelAspectRatio(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, psourceaspectratio: *const super::Dxgi::Common::DXGI_RATIONAL, pdestinationaspectratio: *const super::Dxgi::Common::DXGI_RATIONAL) { + unsafe extern "system" fn VideoProcessorSetStreamPixelAspectRatio(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: windows_core::BOOL, psourceaspectratio: *const super::Dxgi::Common::DXGI_RATIONAL, pdestinationaspectratio: *const super::Dxgi::Common::DXGI_RATIONAL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamPixelAspectRatio(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&psourceaspectratio), core::mem::transmute_copy(&pdestinationaspectratio)) } } - unsafe extern "system" fn VideoProcessorSetStreamLumaKey(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, lower: f32, upper: f32) { + unsafe extern "system" fn VideoProcessorSetStreamLumaKey(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: windows_core::BOOL, lower: f32, upper: f32) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamLumaKey(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&lower), core::mem::transmute_copy(&upper)) } } - unsafe extern "system" fn VideoProcessorSetStreamStereoFormat(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, format: D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, leftviewframe0: super::super::Foundation::BOOL, baseviewframe0: super::super::Foundation::BOOL, flipmode: D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: i32) { + unsafe extern "system" fn VideoProcessorSetStreamStereoFormat(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: windows_core::BOOL, format: D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, leftviewframe0: windows_core::BOOL, baseviewframe0: windows_core::BOOL, flipmode: D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: i32) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamStereoFormat(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&format), core::mem::transmute_copy(&leftviewframe0), core::mem::transmute_copy(&baseviewframe0), core::mem::transmute_copy(&flipmode), core::mem::transmute_copy(&monooffset)) } } - unsafe extern "system" fn VideoProcessorSetStreamAutoProcessingMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL) { + unsafe extern "system" fn VideoProcessorSetStreamAutoProcessingMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamAutoProcessingMode(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&enable)) } } - unsafe extern "system" fn VideoProcessorSetStreamFilter(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, enable: super::super::Foundation::BOOL, level: i32) { + unsafe extern "system" fn VideoProcessorSetStreamFilter(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, enable: windows_core::BOOL, level: i32) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamFilter(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&filter), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&level)) @@ -14273,25 +14273,25 @@ impl ID3D11VideoContext_Vtbl { ID3D11VideoContext_Impl::VideoProcessorGetStreamColorSpace(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&pcolorspace)) } } - unsafe extern "system" fn VideoProcessorGetStreamOutputRate(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, poutputrate: *mut D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, prepeatframe: *mut super::super::Foundation::BOOL, pcustomrate: *mut super::Dxgi::Common::DXGI_RATIONAL) { + unsafe extern "system" fn VideoProcessorGetStreamOutputRate(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, poutputrate: *mut D3D11_VIDEO_PROCESSOR_OUTPUT_RATE, prepeatframe: *mut windows_core::BOOL, pcustomrate: *mut super::Dxgi::Common::DXGI_RATIONAL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamOutputRate(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&poutputrate), core::mem::transmute_copy(&prepeatframe), core::mem::transmute_copy(&pcustomrate)) } } - unsafe extern "system" fn VideoProcessorGetStreamSourceRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, prect: *mut super::super::Foundation::RECT) { + unsafe extern "system" fn VideoProcessorGetStreamSourceRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut windows_core::BOOL, prect: *mut super::super::Foundation::RECT) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamSourceRect(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&penabled), core::mem::transmute_copy(&prect)) } } - unsafe extern "system" fn VideoProcessorGetStreamDestRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, prect: *mut super::super::Foundation::RECT) { + unsafe extern "system" fn VideoProcessorGetStreamDestRect(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut windows_core::BOOL, prect: *mut super::super::Foundation::RECT) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamDestRect(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&penabled), core::mem::transmute_copy(&prect)) } } - unsafe extern "system" fn VideoProcessorGetStreamAlpha(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, palpha: *mut f32) { + unsafe extern "system" fn VideoProcessorGetStreamAlpha(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut windows_core::BOOL, palpha: *mut f32) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamAlpha(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&penabled), core::mem::transmute_copy(&palpha)) @@ -14303,31 +14303,31 @@ impl ID3D11VideoContext_Vtbl { ID3D11VideoContext_Impl::VideoProcessorGetStreamPalette(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&count), core::mem::transmute_copy(&pentries)) } } - unsafe extern "system" fn VideoProcessorGetStreamPixelAspectRatio(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, psourceaspectratio: *mut super::Dxgi::Common::DXGI_RATIONAL, pdestinationaspectratio: *mut super::Dxgi::Common::DXGI_RATIONAL) { + unsafe extern "system" fn VideoProcessorGetStreamPixelAspectRatio(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut windows_core::BOOL, psourceaspectratio: *mut super::Dxgi::Common::DXGI_RATIONAL, pdestinationaspectratio: *mut super::Dxgi::Common::DXGI_RATIONAL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamPixelAspectRatio(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&penabled), core::mem::transmute_copy(&psourceaspectratio), core::mem::transmute_copy(&pdestinationaspectratio)) } } - unsafe extern "system" fn VideoProcessorGetStreamLumaKey(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut super::super::Foundation::BOOL, plower: *mut f32, pupper: *mut f32) { + unsafe extern "system" fn VideoProcessorGetStreamLumaKey(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut windows_core::BOOL, plower: *mut f32, pupper: *mut f32) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamLumaKey(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&penabled), core::mem::transmute_copy(&plower), core::mem::transmute_copy(&pupper)) } } - unsafe extern "system" fn VideoProcessorGetStreamStereoFormat(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penable: *mut super::super::Foundation::BOOL, pformat: *mut D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, pleftviewframe0: *mut super::super::Foundation::BOOL, pbaseviewframe0: *mut super::super::Foundation::BOOL, pflipmode: *mut D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: *mut i32) { + unsafe extern "system" fn VideoProcessorGetStreamStereoFormat(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penable: *mut windows_core::BOOL, pformat: *mut D3D11_VIDEO_PROCESSOR_STEREO_FORMAT, pleftviewframe0: *mut windows_core::BOOL, pbaseviewframe0: *mut windows_core::BOOL, pflipmode: *mut D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE, monooffset: *mut i32) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamStereoFormat(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&penable), core::mem::transmute_copy(&pformat), core::mem::transmute_copy(&pleftviewframe0), core::mem::transmute_copy(&pbaseviewframe0), core::mem::transmute_copy(&pflipmode), core::mem::transmute_copy(&monooffset)) } } - unsafe extern "system" fn VideoProcessorGetStreamAutoProcessingMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut super::super::Foundation::BOOL) { + unsafe extern "system" fn VideoProcessorGetStreamAutoProcessingMode(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penabled: *mut windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamAutoProcessingMode(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&penabled)) } } - unsafe extern "system" fn VideoProcessorGetStreamFilter(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, penabled: *mut super::super::Foundation::BOOL, plevel: *mut i32) { + unsafe extern "system" fn VideoProcessorGetStreamFilter(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, filter: D3D11_VIDEO_PROCESSOR_FILTER, penabled: *mut windows_core::BOOL, plevel: *mut i32) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamFilter(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&filter), core::mem::transmute_copy(&penabled), core::mem::transmute_copy(&plevel)) @@ -14399,13 +14399,13 @@ impl ID3D11VideoContext_Vtbl { ID3D11VideoContext_Impl::ConfigureAuthenticatedChannel(this, core::mem::transmute_copy(&pchannel), core::mem::transmute_copy(&inputsize), core::mem::transmute_copy(&pinput), core::mem::transmute_copy(&poutput)).into() } } - unsafe extern "system" fn VideoProcessorSetStreamRotation(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, rotation: D3D11_VIDEO_PROCESSOR_ROTATION) { + unsafe extern "system" fn VideoProcessorSetStreamRotation(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: windows_core::BOOL, rotation: D3D11_VIDEO_PROCESSOR_ROTATION) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorSetStreamRotation(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&rotation)) } } - unsafe extern "system" fn VideoProcessorGetStreamRotation(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penable: *mut super::super::Foundation::BOOL, protation: *mut D3D11_VIDEO_PROCESSOR_ROTATION) { + unsafe extern "system" fn VideoProcessorGetStreamRotation(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penable: *mut windows_core::BOOL, protation: *mut D3D11_VIDEO_PROCESSOR_ROTATION) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext_Impl::VideoProcessorGetStreamRotation(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&penable), core::mem::transmute_copy(&protation)) @@ -14550,7 +14550,7 @@ impl ID3D11VideoContext1 { result__ } } - pub unsafe fn VideoProcessorGetOutputShaderUsage(&self, pvideoprocessor: P0) -> super::super::Foundation::BOOL + pub unsafe fn VideoProcessorGetOutputShaderUsage(&self, pvideoprocessor: P0) -> windows_core::BOOL where P0: windows_core::Param, { @@ -14584,7 +14584,7 @@ impl ID3D11VideoContext1 { result__ } } - pub unsafe fn VideoProcessorGetStreamMirror(&self, pvideoprocessor: P0, streamindex: u32, penable: *mut super::super::Foundation::BOOL, pfliphorizontal: *mut super::super::Foundation::BOOL, pflipvertical: *mut super::super::Foundation::BOOL) + pub unsafe fn VideoProcessorGetStreamMirror(&self, pvideoprocessor: P0, streamindex: u32, penable: *mut windows_core::BOOL, pfliphorizontal: *mut windows_core::BOOL, pflipvertical: *mut windows_core::BOOL) where P0: windows_core::Param, { @@ -14619,22 +14619,22 @@ pub struct ID3D11VideoContext1_Vtbl { pub VideoProcessorSetOutputColorSpace1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE), #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] VideoProcessorSetOutputColorSpace1: usize, - pub VideoProcessorSetOutputShaderUsage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL), + pub VideoProcessorSetOutputShaderUsage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL), #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub VideoProcessorGetOutputColorSpace1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE), #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] VideoProcessorGetOutputColorSpace1: usize, - pub VideoProcessorGetOutputShaderUsage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL), + pub VideoProcessorGetOutputShaderUsage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL), #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub VideoProcessorSetStreamColorSpace1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE), #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] VideoProcessorSetStreamColorSpace1: usize, - pub VideoProcessorSetStreamMirror: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, super::super::Foundation::BOOL, super::super::Foundation::BOOL, super::super::Foundation::BOOL), + pub VideoProcessorSetStreamMirror: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, windows_core::BOOL, windows_core::BOOL, windows_core::BOOL), #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub VideoProcessorGetStreamColorSpace1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE), #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] VideoProcessorGetStreamColorSpace1: usize, - pub VideoProcessorGetStreamMirror: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL), + pub VideoProcessorGetStreamMirror: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut windows_core::BOOL, *mut windows_core::BOOL, *mut windows_core::BOOL), #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub VideoProcessorGetBehaviorHints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, super::Dxgi::Common::DXGI_FORMAT, u32, *const D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT, *mut u32) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] @@ -14650,13 +14650,13 @@ pub trait ID3D11VideoContext1_Impl: ID3D11VideoContext_Impl { fn DecoderEnableDownsampling(&self, pdecoder: windows_core::Ref, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC, referenceframecount: u32) -> windows_core::Result<()>; fn DecoderUpdateDownsampling(&self, pdecoder: windows_core::Ref, poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC) -> windows_core::Result<()>; fn VideoProcessorSetOutputColorSpace1(&self, pvideoprocessor: windows_core::Ref, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE); - fn VideoProcessorSetOutputShaderUsage(&self, pvideoprocessor: windows_core::Ref, shaderusage: super::super::Foundation::BOOL); + fn VideoProcessorSetOutputShaderUsage(&self, pvideoprocessor: windows_core::Ref, shaderusage: windows_core::BOOL); fn VideoProcessorGetOutputColorSpace1(&self, pvideoprocessor: windows_core::Ref, pcolorspace: *mut super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE); - fn VideoProcessorGetOutputShaderUsage(&self, pvideoprocessor: windows_core::Ref, pshaderusage: *mut super::super::Foundation::BOOL); + fn VideoProcessorGetOutputShaderUsage(&self, pvideoprocessor: windows_core::Ref, pshaderusage: *mut windows_core::BOOL); fn VideoProcessorSetStreamColorSpace1(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, colorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE); - fn VideoProcessorSetStreamMirror(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, enable: super::super::Foundation::BOOL, fliphorizontal: super::super::Foundation::BOOL, flipvertical: super::super::Foundation::BOOL); + fn VideoProcessorSetStreamMirror(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, enable: windows_core::BOOL, fliphorizontal: windows_core::BOOL, flipvertical: windows_core::BOOL); fn VideoProcessorGetStreamColorSpace1(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, pcolorspace: *mut super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE); - fn VideoProcessorGetStreamMirror(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, penable: *mut super::super::Foundation::BOOL, pfliphorizontal: *mut super::super::Foundation::BOOL, pflipvertical: *mut super::super::Foundation::BOOL); + fn VideoProcessorGetStreamMirror(&self, pvideoprocessor: windows_core::Ref, streamindex: u32, penable: *mut windows_core::BOOL, pfliphorizontal: *mut windows_core::BOOL, pflipvertical: *mut windows_core::BOOL); fn VideoProcessorGetBehaviorHints(&self, pvideoprocessor: windows_core::Ref, outputwidth: u32, outputheight: u32, outputformat: super::Dxgi::Common::DXGI_FORMAT, streamcount: u32, pstreams: *const D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -14710,7 +14710,7 @@ impl ID3D11VideoContext1_Vtbl { ID3D11VideoContext1_Impl::VideoProcessorSetOutputColorSpace1(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&colorspace)) } } - unsafe extern "system" fn VideoProcessorSetOutputShaderUsage(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, shaderusage: super::super::Foundation::BOOL) { + unsafe extern "system" fn VideoProcessorSetOutputShaderUsage(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, shaderusage: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext1_Impl::VideoProcessorSetOutputShaderUsage(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&shaderusage)) @@ -14722,7 +14722,7 @@ impl ID3D11VideoContext1_Vtbl { ID3D11VideoContext1_Impl::VideoProcessorGetOutputColorSpace1(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&pcolorspace)) } } - unsafe extern "system" fn VideoProcessorGetOutputShaderUsage(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pshaderusage: *mut super::super::Foundation::BOOL) { + unsafe extern "system" fn VideoProcessorGetOutputShaderUsage(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, pshaderusage: *mut windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext1_Impl::VideoProcessorGetOutputShaderUsage(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&pshaderusage)) @@ -14734,7 +14734,7 @@ impl ID3D11VideoContext1_Vtbl { ID3D11VideoContext1_Impl::VideoProcessorSetStreamColorSpace1(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&colorspace)) } } - unsafe extern "system" fn VideoProcessorSetStreamMirror(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, fliphorizontal: super::super::Foundation::BOOL, flipvertical: super::super::Foundation::BOOL) { + unsafe extern "system" fn VideoProcessorSetStreamMirror(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, enable: windows_core::BOOL, fliphorizontal: windows_core::BOOL, flipvertical: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext1_Impl::VideoProcessorSetStreamMirror(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&enable), core::mem::transmute_copy(&fliphorizontal), core::mem::transmute_copy(&flipvertical)) @@ -14746,7 +14746,7 @@ impl ID3D11VideoContext1_Vtbl { ID3D11VideoContext1_Impl::VideoProcessorGetStreamColorSpace1(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&pcolorspace)) } } - unsafe extern "system" fn VideoProcessorGetStreamMirror(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penable: *mut super::super::Foundation::BOOL, pfliphorizontal: *mut super::super::Foundation::BOOL, pflipvertical: *mut super::super::Foundation::BOOL) { + unsafe extern "system" fn VideoProcessorGetStreamMirror(this: *mut core::ffi::c_void, pvideoprocessor: *mut core::ffi::c_void, streamindex: u32, penable: *mut windows_core::BOOL, pfliphorizontal: *mut windows_core::BOOL, pflipvertical: *mut windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoContext1_Impl::VideoProcessorGetStreamMirror(this, core::mem::transmute_copy(&pvideoprocessor), core::mem::transmute_copy(&streamindex), core::mem::transmute_copy(&penable), core::mem::transmute_copy(&pfliphorizontal), core::mem::transmute_copy(&pflipvertical)) @@ -15134,7 +15134,7 @@ impl ID3D11VideoDevice { } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] - pub unsafe fn CheckVideoDecoderFormat(&self, pdecoderprofile: *const windows_core::GUID, format: super::Dxgi::Common::DXGI_FORMAT) -> windows_core::Result { + pub unsafe fn CheckVideoDecoderFormat(&self, pdecoderprofile: *const windows_core::GUID, format: super::Dxgi::Common::DXGI_FORMAT) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CheckVideoDecoderFormat)(windows_core::Interface::as_raw(self), pdecoderprofile, format, &mut result__).map(|| result__) @@ -15190,7 +15190,7 @@ pub struct ID3D11VideoDevice_Vtbl { pub GetVideoDecoderProfileCount: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, pub GetVideoDecoderProfile: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::GUID) -> windows_core::HRESULT, #[cfg(feature = "Win32_Graphics_Dxgi_Common")] - pub CheckVideoDecoderFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, super::Dxgi::Common::DXGI_FORMAT, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CheckVideoDecoderFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, super::Dxgi::Common::DXGI_FORMAT, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] CheckVideoDecoderFormat: usize, #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -15220,7 +15220,7 @@ pub trait ID3D11VideoDevice_Impl: windows_core::IUnknownImpl { fn CreateVideoProcessorEnumerator(&self, pdesc: *const D3D11_VIDEO_PROCESSOR_CONTENT_DESC) -> windows_core::Result; fn GetVideoDecoderProfileCount(&self) -> u32; fn GetVideoDecoderProfile(&self, index: u32) -> windows_core::Result; - fn CheckVideoDecoderFormat(&self, pdecoderprofile: *const windows_core::GUID, format: super::Dxgi::Common::DXGI_FORMAT) -> windows_core::Result; + fn CheckVideoDecoderFormat(&self, pdecoderprofile: *const windows_core::GUID, format: super::Dxgi::Common::DXGI_FORMAT) -> windows_core::Result; fn GetVideoDecoderConfigCount(&self, pdesc: *const D3D11_VIDEO_DECODER_DESC) -> windows_core::Result; fn GetVideoDecoderConfig(&self, pdesc: *const D3D11_VIDEO_DECODER_DESC, index: u32, pconfig: *mut D3D11_VIDEO_DECODER_CONFIG) -> windows_core::Result<()>; fn GetContentProtectionCaps(&self, pcryptotype: *const windows_core::GUID, pdecoderprofile: *const windows_core::GUID, pcaps: *mut D3D11_VIDEO_CONTENT_PROTECTION_CAPS) -> windows_core::Result<()>; @@ -15327,7 +15327,7 @@ impl ID3D11VideoDevice_Vtbl { } } } - unsafe extern "system" fn CheckVideoDecoderFormat(this: *mut core::ffi::c_void, pdecoderprofile: *const windows_core::GUID, format: super::Dxgi::Common::DXGI_FORMAT, psupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CheckVideoDecoderFormat(this: *mut core::ffi::c_void, pdecoderprofile: *const windows_core::GUID, format: super::Dxgi::Common::DXGI_FORMAT, psupported: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoDevice_Impl::CheckVideoDecoderFormat(this, core::mem::transmute_copy(&pdecoderprofile), core::mem::transmute_copy(&format)) { @@ -15434,7 +15434,7 @@ impl ID3D11VideoDevice1 { } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] - pub unsafe fn CheckVideoDecoderDownsampling(&self, pinputdesc: *const D3D11_VIDEO_DECODER_DESC, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, pinputconfig: *const D3D11_VIDEO_DECODER_CONFIG, pframerate: *const super::Dxgi::Common::DXGI_RATIONAL, poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC, psupported: *mut super::super::Foundation::BOOL, prealtimehint: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn CheckVideoDecoderDownsampling(&self, pinputdesc: *const D3D11_VIDEO_DECODER_DESC, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, pinputconfig: *const D3D11_VIDEO_DECODER_CONFIG, pframerate: *const super::Dxgi::Common::DXGI_RATIONAL, poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC, psupported: *mut windows_core::BOOL, prealtimehint: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).CheckVideoDecoderDownsampling)(windows_core::Interface::as_raw(self), pinputdesc, inputcolorspace, pinputconfig, pframerate, poutputdesc, psupported as _, prealtimehint as _).ok() } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -15454,7 +15454,7 @@ pub struct ID3D11VideoDevice1_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetVideoDecoderCaps: usize, #[cfg(feature = "Win32_Graphics_Dxgi_Common")] - pub CheckVideoDecoderDownsampling: unsafe extern "system" fn(*mut core::ffi::c_void, *const D3D11_VIDEO_DECODER_DESC, super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, *const D3D11_VIDEO_DECODER_CONFIG, *const super::Dxgi::Common::DXGI_RATIONAL, *const D3D11_VIDEO_SAMPLE_DESC, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CheckVideoDecoderDownsampling: unsafe extern "system" fn(*mut core::ffi::c_void, *const D3D11_VIDEO_DECODER_DESC, super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, *const D3D11_VIDEO_DECODER_CONFIG, *const super::Dxgi::Common::DXGI_RATIONAL, *const D3D11_VIDEO_SAMPLE_DESC, *mut windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] CheckVideoDecoderDownsampling: usize, #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -15468,7 +15468,7 @@ unsafe impl Sync for ID3D11VideoDevice1 {} pub trait ID3D11VideoDevice1_Impl: ID3D11VideoDevice_Impl { fn GetCryptoSessionPrivateDataSize(&self, pcryptotype: *const windows_core::GUID, pdecoderprofile: *const windows_core::GUID, pkeyexchangetype: *const windows_core::GUID, pprivateinputsize: *mut u32, pprivateoutputsize: *mut u32) -> windows_core::Result<()>; fn GetVideoDecoderCaps(&self, pdecoderprofile: *const windows_core::GUID, samplewidth: u32, sampleheight: u32, pframerate: *const super::Dxgi::Common::DXGI_RATIONAL, bitrate: u32, pcryptotype: *const windows_core::GUID) -> windows_core::Result; - fn CheckVideoDecoderDownsampling(&self, pinputdesc: *const D3D11_VIDEO_DECODER_DESC, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, pinputconfig: *const D3D11_VIDEO_DECODER_CONFIG, pframerate: *const super::Dxgi::Common::DXGI_RATIONAL, poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC, psupported: *mut super::super::Foundation::BOOL, prealtimehint: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn CheckVideoDecoderDownsampling(&self, pinputdesc: *const D3D11_VIDEO_DECODER_DESC, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, pinputconfig: *const D3D11_VIDEO_DECODER_CONFIG, pframerate: *const super::Dxgi::Common::DXGI_RATIONAL, poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC, psupported: *mut windows_core::BOOL, prealtimehint: *mut windows_core::BOOL) -> windows_core::Result<()>; fn RecommendVideoDecoderDownsampleParameters(&self, pinputdesc: *const D3D11_VIDEO_DECODER_DESC, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, pinputconfig: *const D3D11_VIDEO_DECODER_CONFIG, pframerate: *const super::Dxgi::Common::DXGI_RATIONAL) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -15492,7 +15492,7 @@ impl ID3D11VideoDevice1_Vtbl { } } } - unsafe extern "system" fn CheckVideoDecoderDownsampling(this: *mut core::ffi::c_void, pinputdesc: *const D3D11_VIDEO_DECODER_DESC, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, pinputconfig: *const D3D11_VIDEO_DECODER_CONFIG, pframerate: *const super::Dxgi::Common::DXGI_RATIONAL, poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC, psupported: *mut super::super::Foundation::BOOL, prealtimehint: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CheckVideoDecoderDownsampling(this: *mut core::ffi::c_void, pinputdesc: *const D3D11_VIDEO_DECODER_DESC, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, pinputconfig: *const D3D11_VIDEO_DECODER_CONFIG, pframerate: *const super::Dxgi::Common::DXGI_RATIONAL, poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC, psupported: *mut windows_core::BOOL, prealtimehint: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D11VideoDevice1_Impl::CheckVideoDecoderDownsampling(this, core::mem::transmute_copy(&pinputdesc), core::mem::transmute_copy(&inputcolorspace), core::mem::transmute_copy(&pinputconfig), core::mem::transmute_copy(&pframerate), core::mem::transmute_copy(&poutputdesc), core::mem::transmute_copy(&psupported), core::mem::transmute_copy(&prealtimehint)).into() @@ -15787,7 +15787,7 @@ impl core::ops::Deref for ID3D11VideoProcessorEnumerator1 { windows_core::imp::interface_hierarchy!(ID3D11VideoProcessorEnumerator1, windows_core::IUnknown, ID3D11DeviceChild, ID3D11VideoProcessorEnumerator); impl ID3D11VideoProcessorEnumerator1 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] - pub unsafe fn CheckVideoProcessorFormatConversion(&self, inputformat: super::Dxgi::Common::DXGI_FORMAT, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, outputformat: super::Dxgi::Common::DXGI_FORMAT, outputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::Result { + pub unsafe fn CheckVideoProcessorFormatConversion(&self, inputformat: super::Dxgi::Common::DXGI_FORMAT, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, outputformat: super::Dxgi::Common::DXGI_FORMAT, outputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CheckVideoProcessorFormatConversion)(windows_core::Interface::as_raw(self), inputformat, inputcolorspace, outputformat, outputcolorspace, &mut result__).map(|| result__) @@ -15798,7 +15798,7 @@ impl ID3D11VideoProcessorEnumerator1 { pub struct ID3D11VideoProcessorEnumerator1_Vtbl { pub base__: ID3D11VideoProcessorEnumerator_Vtbl, #[cfg(feature = "Win32_Graphics_Dxgi_Common")] - pub CheckVideoProcessorFormatConversion: unsafe extern "system" fn(*mut core::ffi::c_void, super::Dxgi::Common::DXGI_FORMAT, super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, super::Dxgi::Common::DXGI_FORMAT, super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CheckVideoProcessorFormatConversion: unsafe extern "system" fn(*mut core::ffi::c_void, super::Dxgi::Common::DXGI_FORMAT, super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, super::Dxgi::Common::DXGI_FORMAT, super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] CheckVideoProcessorFormatConversion: usize, } @@ -15806,12 +15806,12 @@ unsafe impl Send for ID3D11VideoProcessorEnumerator1 {} unsafe impl Sync for ID3D11VideoProcessorEnumerator1 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub trait ID3D11VideoProcessorEnumerator1_Impl: ID3D11VideoProcessorEnumerator_Impl { - fn CheckVideoProcessorFormatConversion(&self, inputformat: super::Dxgi::Common::DXGI_FORMAT, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, outputformat: super::Dxgi::Common::DXGI_FORMAT, outputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::Result; + fn CheckVideoProcessorFormatConversion(&self, inputformat: super::Dxgi::Common::DXGI_FORMAT, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, outputformat: super::Dxgi::Common::DXGI_FORMAT, outputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ID3D11VideoProcessorEnumerator1_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CheckVideoProcessorFormatConversion(this: *mut core::ffi::c_void, inputformat: super::Dxgi::Common::DXGI_FORMAT, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, outputformat: super::Dxgi::Common::DXGI_FORMAT, outputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, psupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CheckVideoProcessorFormatConversion(this: *mut core::ffi::c_void, inputformat: super::Dxgi::Common::DXGI_FORMAT, inputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, outputformat: super::Dxgi::Common::DXGI_FORMAT, outputcolorspace: super::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, psupported: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ID3D11VideoProcessorEnumerator1_Impl::CheckVideoProcessorFormatConversion(this, core::mem::transmute_copy(&inputformat), core::mem::transmute_copy(&inputcolorspace), core::mem::transmute_copy(&outputformat), core::mem::transmute_copy(&outputcolorspace)) { @@ -16002,7 +16002,7 @@ impl ID3DUserDefinedAnnotation { { unsafe { (windows_core::Interface::vtable(self).SetMarker)(windows_core::Interface::as_raw(self), name.param().abi()) } } - pub unsafe fn GetStatus(&self) -> super::super::Foundation::BOOL { + pub unsafe fn GetStatus(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self)) } } } @@ -16012,7 +16012,7 @@ pub struct ID3DUserDefinedAnnotation_Vtbl { pub BeginEvent: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> i32, pub EndEvent: unsafe extern "system" fn(*mut core::ffi::c_void) -> i32, pub SetMarker: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR), - pub GetStatus: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub GetStatus: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } unsafe impl Send for ID3DUserDefinedAnnotation {} unsafe impl Sync for ID3DUserDefinedAnnotation {} @@ -16020,7 +16020,7 @@ pub trait ID3DUserDefinedAnnotation_Impl: windows_core::IUnknownImpl { fn BeginEvent(&self, name: &windows_core::PCWSTR) -> i32; fn EndEvent(&self) -> i32; fn SetMarker(&self, name: &windows_core::PCWSTR); - fn GetStatus(&self) -> super::super::Foundation::BOOL; + fn GetStatus(&self) -> windows_core::BOOL; } impl ID3DUserDefinedAnnotation_Vtbl { pub const fn new() -> Self { @@ -16042,7 +16042,7 @@ impl ID3DUserDefinedAnnotation_Vtbl { ID3DUserDefinedAnnotation_Impl::SetMarker(this, core::mem::transmute(&name)) } } - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3DUserDefinedAnnotation_Impl::GetStatus(this) 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 1ab7f2327e..bb1d646388 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/mod.rs @@ -381,8 +381,8 @@ pub const D3D12_BLEND_BLEND_FACTOR: D3D12_BLEND = D3D12_BLEND(14i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_BLEND_DESC { - pub AlphaToCoverageEnable: super::super::Foundation::BOOL, - pub IndependentBlendEnable: super::super::Foundation::BOOL, + pub AlphaToCoverageEnable: windows_core::BOOL, + pub IndependentBlendEnable: windows_core::BOOL, pub RenderTarget: [D3D12_RENDER_TARGET_BLEND_DESC; 8], } impl Default for D3D12_BLEND_DESC { @@ -434,7 +434,7 @@ impl Default for D3D12_BOX { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_BROADCASTING_LAUNCH_OVERRIDES { pub pLocalRootArgumentsTableIndex: *const u32, - pub pProgramEntry: *const super::super::Foundation::BOOL, + pub pProgramEntry: *const windows_core::BOOL, pub pNewName: *const D3D12_NODE_ID, pub pShareInputOf: *const D3D12_NODE_ID, pub pDispatchGrid: *const u32, @@ -715,7 +715,7 @@ pub const D3D12_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT: u32 = 2u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_COALESCING_LAUNCH_OVERRIDES { pub pLocalRootArgumentsTableIndex: *const u32, - pub pProgramEntry: *const super::super::Foundation::BOOL, + pub pProgramEntry: *const windows_core::BOOL, pub pNewName: *const D3D12_NODE_ID, pub pShareInputOf: *const D3D12_NODE_ID, pub NumOutputOverrides: u32, @@ -1009,7 +1009,7 @@ pub const D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE: u32 = 7u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_COMMON_COMPUTE_NODE_OVERRIDES { pub pLocalRootArgumentsTableIndex: *const u32, - pub pProgramEntry: *const super::super::Foundation::BOOL, + pub pProgramEntry: *const windows_core::BOOL, pub pNewName: *const D3D12_NODE_ID, pub pShareInputOf: *const D3D12_NODE_ID, pub NumOutputOverrides: u32, @@ -1303,10 +1303,10 @@ impl Default for D3D12_DEPTH_STENCILOP_DESC1 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_DEPTH_STENCIL_DESC { - pub DepthEnable: super::super::Foundation::BOOL, + pub DepthEnable: windows_core::BOOL, pub DepthWriteMask: D3D12_DEPTH_WRITE_MASK, pub DepthFunc: D3D12_COMPARISON_FUNC, - pub StencilEnable: super::super::Foundation::BOOL, + pub StencilEnable: windows_core::BOOL, pub StencilReadMask: u8, pub StencilWriteMask: u8, pub FrontFace: D3D12_DEPTH_STENCILOP_DESC, @@ -1320,15 +1320,15 @@ impl Default for D3D12_DEPTH_STENCIL_DESC { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_DEPTH_STENCIL_DESC1 { - pub DepthEnable: super::super::Foundation::BOOL, + pub DepthEnable: windows_core::BOOL, pub DepthWriteMask: D3D12_DEPTH_WRITE_MASK, pub DepthFunc: D3D12_COMPARISON_FUNC, - pub StencilEnable: super::super::Foundation::BOOL, + pub StencilEnable: windows_core::BOOL, pub StencilReadMask: u8, pub StencilWriteMask: u8, pub FrontFace: D3D12_DEPTH_STENCILOP_DESC, pub BackFace: D3D12_DEPTH_STENCILOP_DESC, - pub DepthBoundsTestEnable: super::super::Foundation::BOOL, + pub DepthBoundsTestEnable: windows_core::BOOL, } impl Default for D3D12_DEPTH_STENCIL_DESC1 { fn default() -> Self { @@ -1338,13 +1338,13 @@ impl Default for D3D12_DEPTH_STENCIL_DESC1 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_DEPTH_STENCIL_DESC2 { - pub DepthEnable: super::super::Foundation::BOOL, + pub DepthEnable: windows_core::BOOL, pub DepthWriteMask: D3D12_DEPTH_WRITE_MASK, pub DepthFunc: D3D12_COMPARISON_FUNC, - pub StencilEnable: super::super::Foundation::BOOL, + pub StencilEnable: windows_core::BOOL, pub FrontFace: D3D12_DEPTH_STENCILOP_DESC1, pub BackFace: D3D12_DEPTH_STENCILOP_DESC1, - pub DepthBoundsTestEnable: super::super::Foundation::BOOL, + pub DepthBoundsTestEnable: windows_core::BOOL, } impl Default for D3D12_DEPTH_STENCIL_DESC2 { fn default() -> Self { @@ -2243,9 +2243,9 @@ pub const D3D12_FEATURE_D3D12_OPTIONS9: D3D12_FEATURE = D3D12_FEATURE(37i32); #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_ARCHITECTURE { pub NodeIndex: u32, - pub TileBasedRenderer: super::super::Foundation::BOOL, - pub UMA: super::super::Foundation::BOOL, - pub CacheCoherentUMA: super::super::Foundation::BOOL, + pub TileBasedRenderer: windows_core::BOOL, + pub UMA: windows_core::BOOL, + pub CacheCoherentUMA: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_ARCHITECTURE { fn default() -> Self { @@ -2256,10 +2256,10 @@ impl Default for D3D12_FEATURE_DATA_ARCHITECTURE { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_ARCHITECTURE1 { pub NodeIndex: u32, - pub TileBasedRenderer: super::super::Foundation::BOOL, - pub UMA: super::super::Foundation::BOOL, - pub CacheCoherentUMA: super::super::Foundation::BOOL, - pub IsolatedMMU: super::super::Foundation::BOOL, + pub TileBasedRenderer: windows_core::BOOL, + pub UMA: windows_core::BOOL, + pub CacheCoherentUMA: windows_core::BOOL, + pub IsolatedMMU: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_ARCHITECTURE1 { fn default() -> Self { @@ -2271,7 +2271,7 @@ impl Default for D3D12_FEATURE_DATA_ARCHITECTURE1 { pub struct D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY { pub CommandListType: D3D12_COMMAND_LIST_TYPE, pub Priority: u32, - pub PriorityForTypeIsSupported: super::super::Foundation::BOOL, + pub PriorityForTypeIsSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY { fn default() -> Self { @@ -2282,7 +2282,7 @@ impl Default for D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_CROSS_NODE { pub SharingTier: D3D12_CROSS_NODE_SHARING_TIER, - pub AtomicShaderInstructions: super::super::Foundation::BOOL, + pub AtomicShaderInstructions: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_CROSS_NODE { fn default() -> Self { @@ -2292,20 +2292,20 @@ impl Default for D3D12_FEATURE_DATA_CROSS_NODE { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS { - pub DoublePrecisionFloatShaderOps: super::super::Foundation::BOOL, - pub OutputMergerLogicOp: super::super::Foundation::BOOL, + pub DoublePrecisionFloatShaderOps: windows_core::BOOL, + pub OutputMergerLogicOp: windows_core::BOOL, pub MinPrecisionSupport: D3D12_SHADER_MIN_PRECISION_SUPPORT, pub TiledResourcesTier: D3D12_TILED_RESOURCES_TIER, pub ResourceBindingTier: D3D12_RESOURCE_BINDING_TIER, - pub PSSpecifiedStencilRefSupported: super::super::Foundation::BOOL, - pub TypedUAVLoadAdditionalFormats: super::super::Foundation::BOOL, - pub ROVsSupported: super::super::Foundation::BOOL, + pub PSSpecifiedStencilRefSupported: windows_core::BOOL, + pub TypedUAVLoadAdditionalFormats: windows_core::BOOL, + pub ROVsSupported: windows_core::BOOL, pub ConservativeRasterizationTier: D3D12_CONSERVATIVE_RASTERIZATION_TIER, pub MaxGPUVirtualAddressBitsPerResource: u32, - pub StandardSwizzle64KBSupported: super::super::Foundation::BOOL, + pub StandardSwizzle64KBSupported: windows_core::BOOL, pub CrossNodeSharingTier: D3D12_CROSS_NODE_SHARING_TIER, - pub CrossAdapterRowMajorTextureSupported: super::super::Foundation::BOOL, - pub VPAndRTArrayIndexFromAnyShaderFeedingRasterizerSupportedWithoutGSEmulation: super::super::Foundation::BOOL, + pub CrossAdapterRowMajorTextureSupported: windows_core::BOOL, + pub VPAndRTArrayIndexFromAnyShaderFeedingRasterizerSupportedWithoutGSEmulation: windows_core::BOOL, pub ResourceHeapTier: D3D12_RESOURCE_HEAP_TIER, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS { @@ -2316,12 +2316,12 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS1 { - pub WaveOps: super::super::Foundation::BOOL, + pub WaveOps: windows_core::BOOL, pub WaveLaneCountMin: u32, pub WaveLaneCountMax: u32, pub TotalLaneCount: u32, - pub ExpandedComputeResourceStates: super::super::Foundation::BOOL, - pub Int64ShaderOps: super::super::Foundation::BOOL, + pub ExpandedComputeResourceStates: windows_core::BOOL, + pub Int64ShaderOps: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS1 { fn default() -> Self { @@ -2331,8 +2331,8 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS1 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS10 { - pub VariableRateShadingSumCombinerSupported: super::super::Foundation::BOOL, - pub MeshShaderPerPrimitiveShadingRateSupported: super::super::Foundation::BOOL, + pub VariableRateShadingSumCombinerSupported: windows_core::BOOL, + pub MeshShaderPerPrimitiveShadingRateSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS10 { fn default() -> Self { @@ -2342,7 +2342,7 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS10 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS11 { - pub AtomicInt64OnDescriptorHeapResourceSupported: super::super::Foundation::BOOL, + pub AtomicInt64OnDescriptorHeapResourceSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS11 { fn default() -> Self { @@ -2353,8 +2353,8 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS11 { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS12 { pub MSPrimitivesPipelineStatisticIncludesCulledPrimitives: D3D12_TRI_STATE, - pub EnhancedBarriersSupported: super::super::Foundation::BOOL, - pub RelaxedFormatCastingSupported: super::super::Foundation::BOOL, + pub EnhancedBarriersSupported: windows_core::BOOL, + pub RelaxedFormatCastingSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS12 { fn default() -> Self { @@ -2364,12 +2364,12 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS12 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS13 { - pub UnrestrictedBufferTextureCopyPitchSupported: super::super::Foundation::BOOL, - pub UnrestrictedVertexElementAlignmentSupported: super::super::Foundation::BOOL, - pub InvertedViewportHeightFlipsYSupported: super::super::Foundation::BOOL, - pub InvertedViewportDepthFlipsZSupported: super::super::Foundation::BOOL, - pub TextureCopyBetweenDimensionsSupported: super::super::Foundation::BOOL, - pub AlphaBlendFactorSupported: super::super::Foundation::BOOL, + pub UnrestrictedBufferTextureCopyPitchSupported: windows_core::BOOL, + pub UnrestrictedVertexElementAlignmentSupported: windows_core::BOOL, + pub InvertedViewportHeightFlipsYSupported: windows_core::BOOL, + pub InvertedViewportDepthFlipsZSupported: windows_core::BOOL, + pub TextureCopyBetweenDimensionsSupported: windows_core::BOOL, + pub AlphaBlendFactorSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS13 { fn default() -> Self { @@ -2379,9 +2379,9 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS13 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS14 { - pub AdvancedTextureOpsSupported: super::super::Foundation::BOOL, - pub WriteableMSAATexturesSupported: super::super::Foundation::BOOL, - pub IndependentFrontAndBackStencilRefMaskSupported: super::super::Foundation::BOOL, + pub AdvancedTextureOpsSupported: windows_core::BOOL, + pub WriteableMSAATexturesSupported: windows_core::BOOL, + pub IndependentFrontAndBackStencilRefMaskSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS14 { fn default() -> Self { @@ -2391,8 +2391,8 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS14 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS15 { - pub TriangleFanSupported: super::super::Foundation::BOOL, - pub DynamicIndexBufferStripCutSupported: super::super::Foundation::BOOL, + pub TriangleFanSupported: windows_core::BOOL, + pub DynamicIndexBufferStripCutSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS15 { fn default() -> Self { @@ -2402,8 +2402,8 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS15 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS16 { - pub DynamicDepthBiasSupported: super::super::Foundation::BOOL, - pub GPUUploadHeapSupported: super::super::Foundation::BOOL, + pub DynamicDepthBiasSupported: windows_core::BOOL, + pub GPUUploadHeapSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS16 { fn default() -> Self { @@ -2413,8 +2413,8 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS16 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS17 { - pub NonNormalizedCoordinateSamplersSupported: super::super::Foundation::BOOL, - pub ManualWriteTrackingResourceSupported: super::super::Foundation::BOOL, + pub NonNormalizedCoordinateSamplersSupported: windows_core::BOOL, + pub ManualWriteTrackingResourceSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS17 { fn default() -> Self { @@ -2424,7 +2424,7 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS17 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS18 { - pub RenderPassesValid: super::super::Foundation::BOOL, + pub RenderPassesValid: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS18 { fn default() -> Self { @@ -2434,16 +2434,16 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS18 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS19 { - pub MismatchingOutputDimensionsSupported: super::super::Foundation::BOOL, + pub MismatchingOutputDimensionsSupported: windows_core::BOOL, pub SupportedSampleCountsWithNoOutputs: u32, - pub PointSamplingAddressesNeverRoundUp: super::super::Foundation::BOOL, - pub RasterizerDesc2Supported: super::super::Foundation::BOOL, - pub NarrowQuadrilateralLinesSupported: super::super::Foundation::BOOL, - pub AnisoFilterWithPointMipSupported: super::super::Foundation::BOOL, + pub PointSamplingAddressesNeverRoundUp: windows_core::BOOL, + pub RasterizerDesc2Supported: windows_core::BOOL, + pub NarrowQuadrilateralLinesSupported: windows_core::BOOL, + pub AnisoFilterWithPointMipSupported: windows_core::BOOL, pub MaxSamplerDescriptorHeapSize: u32, pub MaxSamplerDescriptorHeapSizeWithStaticSamplers: u32, pub MaxViewDescriptorHeapSize: u32, - pub ComputeOnlyCustomHeapSupported: super::super::Foundation::BOOL, + pub ComputeOnlyCustomHeapSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS19 { fn default() -> Self { @@ -2453,7 +2453,7 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS19 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS2 { - pub DepthBoundsTestSupported: super::super::Foundation::BOOL, + pub DepthBoundsTestSupported: windows_core::BOOL, pub ProgrammableSamplePositionsTier: D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS2 { @@ -2464,7 +2464,7 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS2 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS20 { - pub ComputeOnlyWriteWatchSupported: super::super::Foundation::BOOL, + pub ComputeOnlyWriteWatchSupported: windows_core::BOOL, pub RecreateAtTier: D3D12_RECREATE_AT_TIER, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS20 { @@ -2477,8 +2477,8 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS20 { pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS21 { pub WorkGraphsTier: D3D12_WORK_GRAPHS_TIER, pub ExecuteIndirectTier: D3D12_EXECUTE_INDIRECT_TIER, - pub SampleCmpGradientAndBiasSupported: super::super::Foundation::BOOL, - pub ExtendedCommandInfoSupported: super::super::Foundation::BOOL, + pub SampleCmpGradientAndBiasSupported: windows_core::BOOL, + pub ExtendedCommandInfoSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS21 { fn default() -> Self { @@ -2488,11 +2488,11 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS21 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS3 { - pub CopyQueueTimestampQueriesSupported: super::super::Foundation::BOOL, - pub CastingFullyTypedFormatSupported: super::super::Foundation::BOOL, + pub CopyQueueTimestampQueriesSupported: windows_core::BOOL, + pub CastingFullyTypedFormatSupported: windows_core::BOOL, pub WriteBufferImmediateSupportFlags: D3D12_COMMAND_LIST_SUPPORT_FLAGS, pub ViewInstancingTier: D3D12_VIEW_INSTANCING_TIER, - pub BarycentricsSupported: super::super::Foundation::BOOL, + pub BarycentricsSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS3 { fn default() -> Self { @@ -2502,9 +2502,9 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS3 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS4 { - pub MSAA64KBAlignedTextureSupported: super::super::Foundation::BOOL, + pub MSAA64KBAlignedTextureSupported: windows_core::BOOL, pub SharedResourceCompatibilityTier: D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER, - pub Native16BitShaderOpsSupported: super::super::Foundation::BOOL, + pub Native16BitShaderOpsSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS4 { fn default() -> Self { @@ -2514,7 +2514,7 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS4 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS5 { - pub SRVOnlyTiledResourceTier3: super::super::Foundation::BOOL, + pub SRVOnlyTiledResourceTier3: windows_core::BOOL, pub RenderPassesTier: D3D12_RENDER_PASS_TIER, pub RaytracingTier: D3D12_RAYTRACING_TIER, } @@ -2526,11 +2526,11 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS5 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS6 { - pub AdditionalShadingRatesSupported: super::super::Foundation::BOOL, - pub PerPrimitiveShadingRateSupportedWithViewportIndexing: super::super::Foundation::BOOL, + pub AdditionalShadingRatesSupported: windows_core::BOOL, + pub PerPrimitiveShadingRateSupportedWithViewportIndexing: windows_core::BOOL, pub VariableShadingRateTier: D3D12_VARIABLE_SHADING_RATE_TIER, pub ShadingRateImageTileSize: u32, - pub BackgroundProcessingSupported: super::super::Foundation::BOOL, + pub BackgroundProcessingSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS6 { fn default() -> Self { @@ -2551,7 +2551,7 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS7 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS8 { - pub UnalignedBlockTexturesSupported: super::super::Foundation::BOOL, + pub UnalignedBlockTexturesSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS8 { fn default() -> Self { @@ -2561,11 +2561,11 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS8 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_D3D12_OPTIONS9 { - pub MeshShaderPipelineStatsSupported: super::super::Foundation::BOOL, - pub MeshShaderSupportsFullRangeRenderTargetArrayIndex: super::super::Foundation::BOOL, - pub AtomicInt64OnTypedResourceSupported: super::super::Foundation::BOOL, - pub AtomicInt64OnGroupSharedSupported: super::super::Foundation::BOOL, - pub DerivativesInMeshAndAmplificationShadersSupported: super::super::Foundation::BOOL, + pub MeshShaderPipelineStatsSupported: windows_core::BOOL, + pub MeshShaderSupportsFullRangeRenderTargetArrayIndex: windows_core::BOOL, + pub AtomicInt64OnTypedResourceSupported: windows_core::BOOL, + pub AtomicInt64OnGroupSharedSupported: windows_core::BOOL, + pub DerivativesInMeshAndAmplificationShadersSupported: windows_core::BOOL, pub WaveMMATier: D3D12_WAVE_MMA_TIER, } impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS9 { @@ -2576,7 +2576,7 @@ impl Default for D3D12_FEATURE_DATA_D3D12_OPTIONS9 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_DISPLAYABLE { - pub DisplayableTexture: super::super::Foundation::BOOL, + pub DisplayableTexture: windows_core::BOOL, pub SharedResourceCompatibilityTier: D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER, } impl Default for D3D12_FEATURE_DATA_DISPLAYABLE { @@ -2587,7 +2587,7 @@ impl Default for D3D12_FEATURE_DATA_DISPLAYABLE { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_EXISTING_HEAPS { - pub Supported: super::super::Foundation::BOOL, + pub Supported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_EXISTING_HEAPS { fn default() -> Self { @@ -2649,7 +2649,7 @@ impl Default for D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_HARDWARE_COPY { - pub Supported: super::super::Foundation::BOOL, + pub Supported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_HARDWARE_COPY { fn default() -> Self { @@ -2678,7 +2678,7 @@ pub struct D3D12_FEATURE_DATA_PLACED_RESOURCE_SUPPORT_INFO { pub Format: super::Dxgi::Common::DXGI_FORMAT, pub Dimension: D3D12_RESOURCE_DIMENSION, pub DestHeapProperties: D3D12_HEAP_PROPERTIES, - pub Supported: super::super::Foundation::BOOL, + pub Supported: windows_core::BOOL, } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl Default for D3D12_FEATURE_DATA_PLACED_RESOURCE_SUPPORT_INFO { @@ -2689,7 +2689,7 @@ impl Default for D3D12_FEATURE_DATA_PLACED_RESOURCE_SUPPORT_INFO { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_PREDICATION { - pub Supported: super::super::Foundation::BOOL, + pub Supported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_PREDICATION { fn default() -> Self { @@ -3069,9 +3069,9 @@ pub struct D3D12_FUNCTION_DESC { pub RequiredFeatureFlags: u64, pub Name: windows_core::PCSTR, pub FunctionParameterCount: i32, - pub HasReturn: super::super::Foundation::BOOL, - pub Has10Level9VertexShader: super::super::Foundation::BOOL, - pub Has10Level9PixelShader: super::super::Foundation::BOOL, + pub HasReturn: windows_core::BOOL, + pub Has10Level9VertexShader: windows_core::BOOL, + pub Has10Level9PixelShader: windows_core::BOOL, } #[cfg(feature = "Win32_Graphics_Direct3D")] impl Default for D3D12_FUNCTION_DESC { @@ -5156,7 +5156,7 @@ impl Default for D3D12_NODE_MASK { pub struct D3D12_NODE_OUTPUT_OVERRIDES { pub OutputIndex: u32, pub pNewName: *const D3D12_NODE_ID, - pub pAllowSparseNodes: *const super::super::Foundation::BOOL, + pub pAllowSparseNodes: *const windows_core::BOOL, pub pMaxRecords: *const u32, pub pMaxRecordsSharedWithOutputIndex: *const u32, } @@ -5604,13 +5604,13 @@ impl Default for D3D12_RANGE_UINT64 { pub struct D3D12_RASTERIZER_DESC { pub FillMode: D3D12_FILL_MODE, pub CullMode: D3D12_CULL_MODE, - pub FrontCounterClockwise: super::super::Foundation::BOOL, + pub FrontCounterClockwise: windows_core::BOOL, pub DepthBias: i32, pub DepthBiasClamp: f32, pub SlopeScaledDepthBias: f32, - pub DepthClipEnable: super::super::Foundation::BOOL, - pub MultisampleEnable: super::super::Foundation::BOOL, - pub AntialiasedLineEnable: super::super::Foundation::BOOL, + pub DepthClipEnable: windows_core::BOOL, + pub MultisampleEnable: windows_core::BOOL, + pub AntialiasedLineEnable: windows_core::BOOL, pub ForcedSampleCount: u32, pub ConservativeRaster: D3D12_CONSERVATIVE_RASTERIZATION_MODE, } @@ -5624,13 +5624,13 @@ impl Default for D3D12_RASTERIZER_DESC { pub struct D3D12_RASTERIZER_DESC1 { pub FillMode: D3D12_FILL_MODE, pub CullMode: D3D12_CULL_MODE, - pub FrontCounterClockwise: super::super::Foundation::BOOL, + pub FrontCounterClockwise: windows_core::BOOL, pub DepthBias: f32, pub DepthBiasClamp: f32, pub SlopeScaledDepthBias: f32, - pub DepthClipEnable: super::super::Foundation::BOOL, - pub MultisampleEnable: super::super::Foundation::BOOL, - pub AntialiasedLineEnable: super::super::Foundation::BOOL, + pub DepthClipEnable: windows_core::BOOL, + pub MultisampleEnable: windows_core::BOOL, + pub AntialiasedLineEnable: windows_core::BOOL, pub ForcedSampleCount: u32, pub ConservativeRaster: D3D12_CONSERVATIVE_RASTERIZATION_MODE, } @@ -5644,11 +5644,11 @@ impl Default for D3D12_RASTERIZER_DESC1 { pub struct D3D12_RASTERIZER_DESC2 { pub FillMode: D3D12_FILL_MODE, pub CullMode: D3D12_CULL_MODE, - pub FrontCounterClockwise: super::super::Foundation::BOOL, + pub FrontCounterClockwise: windows_core::BOOL, pub DepthBias: f32, pub DepthBiasClamp: f32, pub SlopeScaledDepthBias: f32, - pub DepthClipEnable: super::super::Foundation::BOOL, + pub DepthClipEnable: windows_core::BOOL, pub LineRasterizationMode: D3D12_LINE_RASTERIZATION_MODE, pub ForcedSampleCount: u32, pub ConservativeRaster: D3D12_CONSERVATIVE_RASTERIZATION_MODE, @@ -6244,7 +6244,7 @@ pub struct D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS { pub pSubresourceParameters: *const D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS, pub Format: super::Dxgi::Common::DXGI_FORMAT, pub ResolveMode: D3D12_RESOLVE_MODE, - pub PreserveResolveSource: super::super::Foundation::BOOL, + pub PreserveResolveSource: windows_core::BOOL, } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl Default for D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS { @@ -6346,8 +6346,8 @@ pub const D3D12_RENDER_PASS_TIER_2: D3D12_RENDER_PASS_TIER = D3D12_RENDER_PASS_T #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_RENDER_TARGET_BLEND_DESC { - pub BlendEnable: super::super::Foundation::BOOL, - pub LogicOpEnable: super::super::Foundation::BOOL, + pub BlendEnable: windows_core::BOOL, + pub LogicOpEnable: windows_core::BOOL, pub SrcBlend: D3D12_BLEND, pub DestBlend: D3D12_BLEND, pub BlendOp: D3D12_BLEND_OP, @@ -8656,7 +8656,7 @@ pub const D3D12_TEXTURE_LAYOUT_UNKNOWN: D3D12_TEXTURE_LAYOUT = D3D12_TEXTURE_LAY #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_THREAD_LAUNCH_OVERRIDES { pub pLocalRootArgumentsTableIndex: *const u32, - pub pProgramEntry: *const super::super::Foundation::BOOL, + pub pProgramEntry: *const windows_core::BOOL, pub pNewName: *const D3D12_NODE_ID, pub pShareInputOf: *const D3D12_NODE_ID, pub NumOutputOverrides: u32, @@ -8778,7 +8778,7 @@ pub const D3D12_TILE_RANGE_FLAG_SKIP: D3D12_TILE_RANGE_FLAGS = D3D12_TILE_RANGE_ #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_TILE_REGION_SIZE { pub NumTiles: u32, - pub UseBox: super::super::Foundation::BOOL, + pub UseBox: windows_core::BOOL, pub Width: u32, pub Height: u16, pub Depth: u16, @@ -9508,15 +9508,15 @@ impl ID3D12Debug1 { pub struct ID3D12Debug1_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub EnableDebugLayer: unsafe extern "system" fn(*mut core::ffi::c_void), - pub SetEnableGPUBasedValidation: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL), - pub SetEnableSynchronizedCommandQueueValidation: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL), + pub SetEnableGPUBasedValidation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), + pub SetEnableSynchronizedCommandQueueValidation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), } unsafe impl Send for ID3D12Debug1 {} unsafe impl Sync for ID3D12Debug1 {} pub trait ID3D12Debug1_Impl: windows_core::IUnknownImpl { fn EnableDebugLayer(&self); - fn SetEnableGPUBasedValidation(&self, enable: super::super::Foundation::BOOL); - fn SetEnableSynchronizedCommandQueueValidation(&self, enable: super::super::Foundation::BOOL); + fn SetEnableGPUBasedValidation(&self, enable: windows_core::BOOL); + fn SetEnableSynchronizedCommandQueueValidation(&self, enable: windows_core::BOOL); } impl ID3D12Debug1_Vtbl { pub const fn new() -> Self { @@ -9526,13 +9526,13 @@ impl ID3D12Debug1_Vtbl { ID3D12Debug1_Impl::EnableDebugLayer(this) } } - unsafe extern "system" fn SetEnableGPUBasedValidation(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) { + unsafe extern "system" fn SetEnableGPUBasedValidation(this: *mut core::ffi::c_void, enable: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Debug1_Impl::SetEnableGPUBasedValidation(this, core::mem::transmute_copy(&enable)) } } - unsafe extern "system" fn SetEnableSynchronizedCommandQueueValidation(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) { + unsafe extern "system" fn SetEnableSynchronizedCommandQueueValidation(this: *mut core::ffi::c_void, enable: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Debug1_Impl::SetEnableSynchronizedCommandQueueValidation(this, core::mem::transmute_copy(&enable)) @@ -9604,26 +9604,26 @@ impl ID3D12Debug3 { #[repr(C)] pub struct ID3D12Debug3_Vtbl { pub base__: ID3D12Debug_Vtbl, - pub SetEnableGPUBasedValidation: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL), - pub SetEnableSynchronizedCommandQueueValidation: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL), + pub SetEnableGPUBasedValidation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), + pub SetEnableSynchronizedCommandQueueValidation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), pub SetGPUBasedValidationFlags: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_GPU_BASED_VALIDATION_FLAGS), } unsafe impl Send for ID3D12Debug3 {} unsafe impl Sync for ID3D12Debug3 {} pub trait ID3D12Debug3_Impl: ID3D12Debug_Impl { - fn SetEnableGPUBasedValidation(&self, enable: super::super::Foundation::BOOL); - fn SetEnableSynchronizedCommandQueueValidation(&self, enable: super::super::Foundation::BOOL); + fn SetEnableGPUBasedValidation(&self, enable: windows_core::BOOL); + fn SetEnableSynchronizedCommandQueueValidation(&self, enable: windows_core::BOOL); fn SetGPUBasedValidationFlags(&self, flags: D3D12_GPU_BASED_VALIDATION_FLAGS); } impl ID3D12Debug3_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetEnableGPUBasedValidation(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) { + unsafe extern "system" fn SetEnableGPUBasedValidation(this: *mut core::ffi::c_void, enable: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Debug3_Impl::SetEnableGPUBasedValidation(this, core::mem::transmute_copy(&enable)) } } - unsafe extern "system" fn SetEnableSynchronizedCommandQueueValidation(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) { + unsafe extern "system" fn SetEnableSynchronizedCommandQueueValidation(this: *mut core::ffi::c_void, enable: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Debug3_Impl::SetEnableSynchronizedCommandQueueValidation(this, core::mem::transmute_copy(&enable)) @@ -9701,16 +9701,16 @@ impl ID3D12Debug5 { #[repr(C)] pub struct ID3D12Debug5_Vtbl { pub base__: ID3D12Debug4_Vtbl, - pub SetEnableAutoName: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL), + pub SetEnableAutoName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), } unsafe impl Send for ID3D12Debug5 {} unsafe impl Sync for ID3D12Debug5 {} pub trait ID3D12Debug5_Impl: ID3D12Debug4_Impl { - fn SetEnableAutoName(&self, enable: super::super::Foundation::BOOL); + fn SetEnableAutoName(&self, enable: windows_core::BOOL); } impl ID3D12Debug5_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetEnableAutoName(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) { + unsafe extern "system" fn SetEnableAutoName(this: *mut core::ffi::c_void, enable: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Debug5_Impl::SetEnableAutoName(this, core::mem::transmute_copy(&enable)) @@ -9739,16 +9739,16 @@ impl ID3D12Debug6 { #[repr(C)] pub struct ID3D12Debug6_Vtbl { pub base__: ID3D12Debug5_Vtbl, - pub SetForceLegacyBarrierValidation: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL), + pub SetForceLegacyBarrierValidation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), } unsafe impl Send for ID3D12Debug6 {} unsafe impl Sync for ID3D12Debug6 {} pub trait ID3D12Debug6_Impl: ID3D12Debug5_Impl { - fn SetForceLegacyBarrierValidation(&self, enable: super::super::Foundation::BOOL); + fn SetForceLegacyBarrierValidation(&self, enable: windows_core::BOOL); } impl ID3D12Debug6_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetForceLegacyBarrierValidation(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) { + unsafe extern "system" fn SetForceLegacyBarrierValidation(this: *mut core::ffi::c_void, enable: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Debug6_Impl::SetForceLegacyBarrierValidation(this, core::mem::transmute_copy(&enable)) @@ -9764,7 +9764,7 @@ impl windows_core::RuntimeName for ID3D12Debug6 {} windows_core::imp::define_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 + pub unsafe fn AssertResourceState(&self, presource: P0, subresource: u32, state: u32) -> windows_core::BOOL where P0: windows_core::Param, { @@ -9780,20 +9780,20 @@ impl ID3D12DebugCommandList { #[repr(C)] pub struct ID3D12DebugCommandList_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub AssertResourceState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32) -> super::super::Foundation::BOOL, + pub AssertResourceState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32) -> windows_core::BOOL, pub SetFeatureMask: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_DEBUG_FEATURE) -> windows_core::HRESULT, pub GetFeatureMask: unsafe extern "system" fn(*mut core::ffi::c_void) -> D3D12_DEBUG_FEATURE, } unsafe impl Send for ID3D12DebugCommandList {} unsafe impl Sync for ID3D12DebugCommandList {} pub trait ID3D12DebugCommandList_Impl: windows_core::IUnknownImpl { - fn AssertResourceState(&self, presource: windows_core::Ref, subresource: u32, state: u32) -> super::super::Foundation::BOOL; + fn AssertResourceState(&self, presource: windows_core::Ref, subresource: u32, state: u32) -> windows_core::BOOL; fn SetFeatureMask(&self, mask: D3D12_DEBUG_FEATURE) -> windows_core::Result<()>; fn GetFeatureMask(&self) -> D3D12_DEBUG_FEATURE; } impl ID3D12DebugCommandList_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn AssertResourceState(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, state: u32) -> super::super::Foundation::BOOL { + unsafe extern "system" fn AssertResourceState(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, state: u32) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugCommandList_Impl::AssertResourceState(this, core::mem::transmute_copy(&presource), core::mem::transmute_copy(&subresource), core::mem::transmute_copy(&state)) @@ -9826,7 +9826,7 @@ impl windows_core::RuntimeName for ID3D12DebugCommandList {} windows_core::imp::define_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 + pub unsafe fn AssertResourceState(&self, presource: P0, subresource: u32, state: u32) -> windows_core::BOOL where P0: windows_core::Param, { @@ -9842,20 +9842,20 @@ impl ID3D12DebugCommandList1 { #[repr(C)] pub struct ID3D12DebugCommandList1_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub AssertResourceState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32) -> super::super::Foundation::BOOL, + pub AssertResourceState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32) -> windows_core::BOOL, pub SetDebugParameter: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, *const core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetDebugParameter: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, } unsafe impl Send for ID3D12DebugCommandList1 {} unsafe impl Sync for ID3D12DebugCommandList1 {} pub trait ID3D12DebugCommandList1_Impl: windows_core::IUnknownImpl { - fn AssertResourceState(&self, presource: windows_core::Ref, subresource: u32, state: u32) -> super::super::Foundation::BOOL; + fn AssertResourceState(&self, presource: windows_core::Ref, subresource: u32, state: u32) -> windows_core::BOOL; fn SetDebugParameter(&self, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *const core::ffi::c_void, datasize: u32) -> windows_core::Result<()>; fn GetDebugParameter(&self, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *mut core::ffi::c_void, datasize: u32) -> windows_core::Result<()>; } impl ID3D12DebugCommandList1_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn AssertResourceState(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, state: u32) -> super::super::Foundation::BOOL { + unsafe extern "system" fn AssertResourceState(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, state: u32) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugCommandList1_Impl::AssertResourceState(this, core::mem::transmute_copy(&presource), core::mem::transmute_copy(&subresource), core::mem::transmute_copy(&state)) @@ -10000,7 +10000,7 @@ impl windows_core::RuntimeName for ID3D12DebugCommandList3 {} windows_core::imp::define_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 + pub unsafe fn AssertResourceState(&self, presource: P0, subresource: u32, state: u32) -> windows_core::BOOL where P0: windows_core::Param, { @@ -10010,16 +10010,16 @@ impl ID3D12DebugCommandQueue { #[repr(C)] pub struct ID3D12DebugCommandQueue_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub AssertResourceState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32) -> super::super::Foundation::BOOL, + pub AssertResourceState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32) -> windows_core::BOOL, } unsafe impl Send for ID3D12DebugCommandQueue {} unsafe impl Sync for ID3D12DebugCommandQueue {} pub trait ID3D12DebugCommandQueue_Impl: windows_core::IUnknownImpl { - fn AssertResourceState(&self, presource: windows_core::Ref, subresource: u32, state: u32) -> super::super::Foundation::BOOL; + fn AssertResourceState(&self, presource: windows_core::Ref, subresource: u32, state: u32) -> windows_core::BOOL; } impl ID3D12DebugCommandQueue_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn AssertResourceState(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, state: u32) -> super::super::Foundation::BOOL { + unsafe extern "system" fn AssertResourceState(this: *mut core::ffi::c_void, presource: *mut core::ffi::c_void, subresource: u32, state: u32) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DebugCommandQueue_Impl::AssertResourceState(this, core::mem::transmute_copy(&presource), core::mem::transmute_copy(&subresource), core::mem::transmute_copy(&state)) @@ -10638,7 +10638,7 @@ pub struct ID3D12Device_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetCopyableFootprints: usize, pub CreateQueryHeap: unsafe extern "system" fn(*mut core::ffi::c_void, *const D3D12_QUERY_HEAP_DESC, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetStablePowerState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetStablePowerState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub CreateCommandSignature: unsafe extern "system" fn(*mut core::ffi::c_void, *const D3D12_COMMAND_SIGNATURE_DESC, *mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetResourceTiling: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u32, *mut D3D12_PACKED_MIP_INFO, *mut D3D12_TILE_SHAPE, *mut u32, u32, *mut D3D12_SUBRESOURCE_TILING), pub GetAdapterLuid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::LUID), @@ -10680,7 +10680,7 @@ pub trait ID3D12Device_Impl: ID3D12Object_Impl { fn GetDeviceRemovedReason(&self) -> windows_core::Result<()>; fn GetCopyableFootprints(&self, presourcedesc: *const D3D12_RESOURCE_DESC, firstsubresource: u32, numsubresources: u32, baseoffset: u64, playouts: *mut D3D12_PLACED_SUBRESOURCE_FOOTPRINT, pnumrows: *mut u32, prowsizeinbytes: *mut u64, ptotalbytes: *mut u64); fn CreateQueryHeap(&self, pdesc: *const D3D12_QUERY_HEAP_DESC, riid: *const windows_core::GUID, ppvheap: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; - fn SetStablePowerState(&self, enable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetStablePowerState(&self, enable: windows_core::BOOL) -> windows_core::Result<()>; fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: windows_core::Ref, riid: *const windows_core::GUID, ppvcommandsignature: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetResourceTiling(&self, ptiledresource: windows_core::Ref, pnumtilesforentireresource: *mut u32, ppackedmipdesc: *mut D3D12_PACKED_MIP_INFO, pstandardtileshapefornonpackedmips: *mut D3D12_TILE_SHAPE, pnumsubresourcetilings: *mut u32, firstsubresourcetilingtoget: u32, psubresourcetilingsfornonpackedmips: *mut D3D12_SUBRESOURCE_TILING); fn GetAdapterLuid(&self) -> super::super::Foundation::LUID; @@ -10898,7 +10898,7 @@ impl ID3D12Device_Vtbl { ID3D12Device_Impl::CreateQueryHeap(this, core::mem::transmute_copy(&pdesc), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvheap)).into() } } - unsafe extern "system" fn SetStablePowerState(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetStablePowerState(this: *mut core::ffi::c_void, enable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device_Impl::SetStablePowerState(this, core::mem::transmute_copy(&enable)).into() @@ -11777,25 +11777,25 @@ impl core::ops::Deref for ID3D12Device6 { } windows_core::imp::interface_hierarchy!(ID3D12Device6, windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5); impl ID3D12Device6 { - pub unsafe fn SetBackgroundProcessingMode(&self, mode: D3D12_BACKGROUND_PROCESSING_MODE, measurementsaction: D3D12_MEASUREMENTS_ACTION, heventtosignaluponcompletion: Option, pbfurthermeasurementsdesired: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { + pub unsafe fn SetBackgroundProcessingMode(&self, mode: D3D12_BACKGROUND_PROCESSING_MODE, measurementsaction: D3D12_MEASUREMENTS_ACTION, heventtosignaluponcompletion: Option, pbfurthermeasurementsdesired: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBackgroundProcessingMode)(windows_core::Interface::as_raw(self), mode, measurementsaction, heventtosignaluponcompletion.unwrap_or(core::mem::zeroed()) as _, pbfurthermeasurementsdesired.unwrap_or(core::mem::zeroed()) as _).ok() } } } #[repr(C)] pub struct ID3D12Device6_Vtbl { pub base__: ID3D12Device5_Vtbl, - pub SetBackgroundProcessingMode: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_BACKGROUND_PROCESSING_MODE, D3D12_MEASUREMENTS_ACTION, super::super::Foundation::HANDLE, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetBackgroundProcessingMode: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_BACKGROUND_PROCESSING_MODE, D3D12_MEASUREMENTS_ACTION, super::super::Foundation::HANDLE, *mut windows_core::BOOL) -> windows_core::HRESULT, } unsafe impl Send for ID3D12Device6 {} unsafe impl Sync for ID3D12Device6 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Security"))] pub trait ID3D12Device6_Impl: ID3D12Device5_Impl { - fn SetBackgroundProcessingMode(&self, mode: D3D12_BACKGROUND_PROCESSING_MODE, measurementsaction: D3D12_MEASUREMENTS_ACTION, heventtosignaluponcompletion: super::super::Foundation::HANDLE, pbfurthermeasurementsdesired: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetBackgroundProcessingMode(&self, mode: D3D12_BACKGROUND_PROCESSING_MODE, measurementsaction: D3D12_MEASUREMENTS_ACTION, heventtosignaluponcompletion: super::super::Foundation::HANDLE, pbfurthermeasurementsdesired: *mut windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Security"))] impl ID3D12Device6_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetBackgroundProcessingMode(this: *mut core::ffi::c_void, mode: D3D12_BACKGROUND_PROCESSING_MODE, measurementsaction: D3D12_MEASUREMENTS_ACTION, heventtosignaluponcompletion: super::super::Foundation::HANDLE, pbfurthermeasurementsdesired: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBackgroundProcessingMode(this: *mut core::ffi::c_void, mode: D3D12_BACKGROUND_PROCESSING_MODE, measurementsaction: D3D12_MEASUREMENTS_ACTION, heventtosignaluponcompletion: super::super::Foundation::HANDLE, pbfurthermeasurementsdesired: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Device6_Impl::SetBackgroundProcessingMode(this, core::mem::transmute_copy(&mode), core::mem::transmute_copy(&measurementsaction), core::mem::transmute_copy(&heventtosignaluponcompletion), core::mem::transmute_copy(&pbfurthermeasurementsdesired)).into() @@ -12676,16 +12676,16 @@ impl ID3D12DeviceRemovedExtendedDataSettings2 { #[repr(C)] pub struct ID3D12DeviceRemovedExtendedDataSettings2_Vtbl { pub base__: ID3D12DeviceRemovedExtendedDataSettings1_Vtbl, - pub UseMarkersOnlyAutoBreadcrumbs: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL), + pub UseMarkersOnlyAutoBreadcrumbs: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), } unsafe impl Send for ID3D12DeviceRemovedExtendedDataSettings2 {} unsafe impl Sync for ID3D12DeviceRemovedExtendedDataSettings2 {} pub trait ID3D12DeviceRemovedExtendedDataSettings2_Impl: ID3D12DeviceRemovedExtendedDataSettings1_Impl { - fn UseMarkersOnlyAutoBreadcrumbs(&self, markersonly: super::super::Foundation::BOOL); + fn UseMarkersOnlyAutoBreadcrumbs(&self, markersonly: windows_core::BOOL); } impl ID3D12DeviceRemovedExtendedDataSettings2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn UseMarkersOnlyAutoBreadcrumbs(this: *mut core::ffi::c_void, markersonly: super::super::Foundation::BOOL) { + unsafe extern "system" fn UseMarkersOnlyAutoBreadcrumbs(this: *mut core::ffi::c_void, markersonly: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12DeviceRemovedExtendedDataSettings2_Impl::UseMarkersOnlyAutoBreadcrumbs(this, core::mem::transmute_copy(&markersonly)) @@ -13408,7 +13408,7 @@ pub struct ID3D12GraphicsCommandList_Vtbl { IASetIndexBuffer: usize, pub IASetVertexBuffers: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const D3D12_VERTEX_BUFFER_VIEW), pub SOSetTargets: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const D3D12_STREAM_OUTPUT_BUFFER_VIEW), - pub OMSetRenderTargets: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const D3D12_CPU_DESCRIPTOR_HANDLE, super::super::Foundation::BOOL, *const D3D12_CPU_DESCRIPTOR_HANDLE), + pub OMSetRenderTargets: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const D3D12_CPU_DESCRIPTOR_HANDLE, windows_core::BOOL, *const D3D12_CPU_DESCRIPTOR_HANDLE), pub ClearDepthStencilView: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_CPU_DESCRIPTOR_HANDLE, D3D12_CLEAR_FLAGS, f32, u8, u32, *const super::super::Foundation::RECT), pub ClearRenderTargetView: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_CPU_DESCRIPTOR_HANDLE, *const f32, u32, *const super::super::Foundation::RECT), pub ClearUnorderedAccessViewUint: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_GPU_DESCRIPTOR_HANDLE, D3D12_CPU_DESCRIPTOR_HANDLE, *mut core::ffi::c_void, *const u32, u32, *const super::super::Foundation::RECT), @@ -13464,7 +13464,7 @@ pub trait ID3D12GraphicsCommandList_Impl: ID3D12CommandList_Impl { fn IASetIndexBuffer(&self, pview: *const D3D12_INDEX_BUFFER_VIEW); fn IASetVertexBuffers(&self, startslot: u32, numviews: u32, pviews: *const D3D12_VERTEX_BUFFER_VIEW); fn SOSetTargets(&self, startslot: u32, numviews: u32, pviews: *const D3D12_STREAM_OUTPUT_BUFFER_VIEW); - fn OMSetRenderTargets(&self, numrendertargetdescriptors: u32, prendertargetdescriptors: *const D3D12_CPU_DESCRIPTOR_HANDLE, rtssinglehandletodescriptorrange: super::super::Foundation::BOOL, pdepthstencildescriptor: *const D3D12_CPU_DESCRIPTOR_HANDLE); + fn OMSetRenderTargets(&self, numrendertargetdescriptors: u32, prendertargetdescriptors: *const D3D12_CPU_DESCRIPTOR_HANDLE, rtssinglehandletodescriptorrange: windows_core::BOOL, pdepthstencildescriptor: *const D3D12_CPU_DESCRIPTOR_HANDLE); fn ClearDepthStencilView(&self, depthstencilview: &D3D12_CPU_DESCRIPTOR_HANDLE, clearflags: D3D12_CLEAR_FLAGS, depth: f32, stencil: u8, numrects: u32, prects: *const super::super::Foundation::RECT); fn ClearRenderTargetView(&self, rendertargetview: &D3D12_CPU_DESCRIPTOR_HANDLE, colorrgba: *const f32, numrects: u32, prects: *const super::super::Foundation::RECT); fn ClearUnorderedAccessViewUint(&self, viewgpuhandleincurrentheap: &D3D12_GPU_DESCRIPTOR_HANDLE, viewcpuhandle: &D3D12_CPU_DESCRIPTOR_HANDLE, presource: windows_core::Ref, values: *const u32, numrects: u32, prects: *const super::super::Foundation::RECT); @@ -13704,7 +13704,7 @@ impl ID3D12GraphicsCommandList_Vtbl { ID3D12GraphicsCommandList_Impl::SOSetTargets(this, core::mem::transmute_copy(&startslot), core::mem::transmute_copy(&numviews), core::mem::transmute_copy(&pviews)) } } - unsafe extern "system" fn OMSetRenderTargets(this: *mut core::ffi::c_void, numrendertargetdescriptors: u32, prendertargetdescriptors: *const D3D12_CPU_DESCRIPTOR_HANDLE, rtssinglehandletodescriptorrange: super::super::Foundation::BOOL, pdepthstencildescriptor: *const D3D12_CPU_DESCRIPTOR_HANDLE) { + unsafe extern "system" fn OMSetRenderTargets(this: *mut core::ffi::c_void, numrendertargetdescriptors: u32, prendertargetdescriptors: *const D3D12_CPU_DESCRIPTOR_HANDLE, rtssinglehandletodescriptorrange: windows_core::BOOL, pdepthstencildescriptor: *const D3D12_CPU_DESCRIPTOR_HANDLE) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12GraphicsCommandList_Impl::OMSetRenderTargets(this, core::mem::transmute_copy(&numrendertargetdescriptors), core::mem::transmute_copy(&prendertargetdescriptors), core::mem::transmute_copy(&rtssinglehandletodescriptorrange), core::mem::transmute_copy(&pdepthstencildescriptor)) @@ -14723,19 +14723,19 @@ impl ID3D12InfoQueue { pub unsafe fn SetBreakOnID(&self, id: D3D12_MESSAGE_ID, benable: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), id, benable.into()).ok() } } - pub unsafe fn GetBreakOnCategory(&self, category: D3D12_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL { + pub unsafe fn GetBreakOnCategory(&self, category: D3D12_MESSAGE_CATEGORY) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetBreakOnCategory)(windows_core::Interface::as_raw(self), category) } } - pub unsafe fn GetBreakOnSeverity(&self, severity: D3D12_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL { + pub unsafe fn GetBreakOnSeverity(&self, severity: D3D12_MESSAGE_SEVERITY) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetBreakOnSeverity)(windows_core::Interface::as_raw(self), severity) } } - pub unsafe fn GetBreakOnID(&self, id: D3D12_MESSAGE_ID) -> super::super::Foundation::BOOL { + pub unsafe fn GetBreakOnID(&self, id: D3D12_MESSAGE_ID) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetBreakOnID)(windows_core::Interface::as_raw(self), id) } } pub unsafe fn SetMuteDebugOutput(&self, bmute: bool) { unsafe { (windows_core::Interface::vtable(self).SetMuteDebugOutput)(windows_core::Interface::as_raw(self), bmute.into()) } } - pub unsafe fn GetMuteDebugOutput(&self) -> super::super::Foundation::BOOL { + pub unsafe fn GetMuteDebugOutput(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetMuteDebugOutput)(windows_core::Interface::as_raw(self)) } } } @@ -14769,14 +14769,14 @@ pub struct ID3D12InfoQueue_Vtbl { pub GetRetrievalFilterStackSize: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, pub AddMessage: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_MESSAGE_CATEGORY, D3D12_MESSAGE_SEVERITY, D3D12_MESSAGE_ID, windows_core::PCSTR) -> windows_core::HRESULT, pub AddApplicationMessage: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_MESSAGE_SEVERITY, windows_core::PCSTR) -> windows_core::HRESULT, - pub SetBreakOnCategory: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_MESSAGE_CATEGORY, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetBreakOnSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_MESSAGE_SEVERITY, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetBreakOnID: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_MESSAGE_ID, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetBreakOnCategory: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL, - pub GetBreakOnSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL, - pub GetBreakOnID: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_MESSAGE_ID) -> super::super::Foundation::BOOL, - pub SetMuteDebugOutput: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL), - pub GetMuteDebugOutput: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub SetBreakOnCategory: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_MESSAGE_CATEGORY, windows_core::BOOL) -> windows_core::HRESULT, + pub SetBreakOnSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_MESSAGE_SEVERITY, windows_core::BOOL) -> windows_core::HRESULT, + pub SetBreakOnID: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_MESSAGE_ID, windows_core::BOOL) -> windows_core::HRESULT, + pub GetBreakOnCategory: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_MESSAGE_CATEGORY) -> windows_core::BOOL, + pub GetBreakOnSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_MESSAGE_SEVERITY) -> windows_core::BOOL, + pub GetBreakOnID: unsafe extern "system" fn(*mut core::ffi::c_void, D3D12_MESSAGE_ID) -> windows_core::BOOL, + pub SetMuteDebugOutput: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), + pub GetMuteDebugOutput: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } unsafe impl Send for ID3D12InfoQueue {} unsafe impl Sync for ID3D12InfoQueue {} @@ -14808,14 +14808,14 @@ pub trait ID3D12InfoQueue_Impl: windows_core::IUnknownImpl { fn GetRetrievalFilterStackSize(&self) -> u32; fn AddMessage(&self, category: D3D12_MESSAGE_CATEGORY, severity: D3D12_MESSAGE_SEVERITY, id: D3D12_MESSAGE_ID, pdescription: &windows_core::PCSTR) -> windows_core::Result<()>; fn AddApplicationMessage(&self, severity: D3D12_MESSAGE_SEVERITY, pdescription: &windows_core::PCSTR) -> windows_core::Result<()>; - fn SetBreakOnCategory(&self, category: D3D12_MESSAGE_CATEGORY, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetBreakOnSeverity(&self, severity: D3D12_MESSAGE_SEVERITY, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetBreakOnID(&self, id: D3D12_MESSAGE_ID, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetBreakOnCategory(&self, category: D3D12_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL; - fn GetBreakOnSeverity(&self, severity: D3D12_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL; - fn GetBreakOnID(&self, id: D3D12_MESSAGE_ID) -> super::super::Foundation::BOOL; - fn SetMuteDebugOutput(&self, bmute: super::super::Foundation::BOOL); - fn GetMuteDebugOutput(&self) -> super::super::Foundation::BOOL; + fn SetBreakOnCategory(&self, category: D3D12_MESSAGE_CATEGORY, benable: windows_core::BOOL) -> windows_core::Result<()>; + fn SetBreakOnSeverity(&self, severity: D3D12_MESSAGE_SEVERITY, benable: windows_core::BOOL) -> windows_core::Result<()>; + fn SetBreakOnID(&self, id: D3D12_MESSAGE_ID, benable: windows_core::BOOL) -> windows_core::Result<()>; + fn GetBreakOnCategory(&self, category: D3D12_MESSAGE_CATEGORY) -> windows_core::BOOL; + fn GetBreakOnSeverity(&self, severity: D3D12_MESSAGE_SEVERITY) -> windows_core::BOOL; + fn GetBreakOnID(&self, id: D3D12_MESSAGE_ID) -> windows_core::BOOL; + fn SetMuteDebugOutput(&self, bmute: windows_core::BOOL); + fn GetMuteDebugOutput(&self) -> windows_core::BOOL; } impl ID3D12InfoQueue_Vtbl { pub const fn new() -> Self { @@ -14981,49 +14981,49 @@ impl ID3D12InfoQueue_Vtbl { ID3D12InfoQueue_Impl::AddApplicationMessage(this, core::mem::transmute_copy(&severity), core::mem::transmute(&pdescription)).into() } } - unsafe extern "system" fn SetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D12_MESSAGE_CATEGORY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D12_MESSAGE_CATEGORY, benable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::SetBreakOnCategory(this, core::mem::transmute_copy(&category), core::mem::transmute_copy(&benable)).into() } } - unsafe extern "system" fn SetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D12_MESSAGE_SEVERITY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D12_MESSAGE_SEVERITY, benable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::SetBreakOnSeverity(this, core::mem::transmute_copy(&severity), core::mem::transmute_copy(&benable)).into() } } - unsafe extern "system" fn SetBreakOnID(this: *mut core::ffi::c_void, id: D3D12_MESSAGE_ID, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBreakOnID(this: *mut core::ffi::c_void, id: D3D12_MESSAGE_ID, benable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::SetBreakOnID(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&benable)).into() } } - unsafe extern "system" fn GetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D12_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetBreakOnCategory(this: *mut core::ffi::c_void, category: D3D12_MESSAGE_CATEGORY) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetBreakOnCategory(this, core::mem::transmute_copy(&category)) } } - unsafe extern "system" fn GetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D12_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetBreakOnSeverity(this: *mut core::ffi::c_void, severity: D3D12_MESSAGE_SEVERITY) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetBreakOnSeverity(this, core::mem::transmute_copy(&severity)) } } - unsafe extern "system" fn GetBreakOnID(this: *mut core::ffi::c_void, id: D3D12_MESSAGE_ID) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetBreakOnID(this: *mut core::ffi::c_void, id: D3D12_MESSAGE_ID) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetBreakOnID(this, core::mem::transmute_copy(&id)) } } - unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, bmute: super::super::Foundation::BOOL) { + unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, bmute: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::SetMuteDebugOutput(this, core::mem::transmute_copy(&bmute)) } } - unsafe extern "system" fn GetMuteDebugOutput(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetMuteDebugOutput(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12InfoQueue_Impl::GetMuteDebugOutput(this) @@ -16308,7 +16308,7 @@ impl ID3D12ShaderReflection { pub unsafe fn GetGSInputPrimitive(&self) -> super::Direct3D::D3D_PRIMITIVE { unsafe { (windows_core::Interface::vtable(self).GetGSInputPrimitive)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn IsSampleFrequencyShader(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsSampleFrequencyShader(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsSampleFrequencyShader)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetNumInterfaceSlots(&self) -> u32 { @@ -16366,7 +16366,7 @@ pub struct ID3D12ShaderReflection_Vtbl { pub GetGSInputPrimitive: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::Direct3D::D3D_PRIMITIVE, #[cfg(not(feature = "Win32_Graphics_Direct3D"))] GetGSInputPrimitive: usize, - pub IsSampleFrequencyShader: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsSampleFrequencyShader: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetNumInterfaceSlots: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, #[cfg(feature = "Win32_Graphics_Direct3D")] pub GetMinFeatureLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::Direct3D::D3D_FEATURE_LEVEL) -> windows_core::HRESULT, @@ -16393,7 +16393,7 @@ pub trait ID3D12ShaderReflection_Impl: windows_core::IUnknownImpl { fn GetConversionInstructionCount(&self) -> u32; fn GetBitwiseInstructionCount(&self) -> u32; fn GetGSInputPrimitive(&self) -> super::Direct3D::D3D_PRIMITIVE; - fn IsSampleFrequencyShader(&self) -> super::super::Foundation::BOOL; + fn IsSampleFrequencyShader(&self) -> windows_core::BOOL; fn GetNumInterfaceSlots(&self) -> u32; fn GetMinFeatureLevel(&self) -> windows_core::Result; fn GetThreadGroupSize(&self, psizex: *mut u32, psizey: *mut u32, psizez: *mut u32) -> u32; @@ -16486,7 +16486,7 @@ impl ID3D12ShaderReflection_Vtbl { ID3D12ShaderReflection_Impl::GetGSInputPrimitive(this) } } - unsafe extern "system" fn IsSampleFrequencyShader(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsSampleFrequencyShader(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12ShaderReflection_Impl::IsSampleFrequencyShader(this) @@ -17202,31 +17202,31 @@ impl ID3D12Tools { pub unsafe fn EnableShaderInstrumentation(&self, benable: bool) { unsafe { (windows_core::Interface::vtable(self).EnableShaderInstrumentation)(windows_core::Interface::as_raw(self), benable.into()) } } - pub unsafe fn ShaderInstrumentationEnabled(&self) -> super::super::Foundation::BOOL { + pub unsafe fn ShaderInstrumentationEnabled(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).ShaderInstrumentationEnabled)(windows_core::Interface::as_raw(self)) } } } #[repr(C)] pub struct ID3D12Tools_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub EnableShaderInstrumentation: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL), - pub ShaderInstrumentationEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub EnableShaderInstrumentation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), + pub ShaderInstrumentationEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } unsafe impl Send for ID3D12Tools {} unsafe impl Sync for ID3D12Tools {} pub trait ID3D12Tools_Impl: windows_core::IUnknownImpl { - fn EnableShaderInstrumentation(&self, benable: super::super::Foundation::BOOL); - fn ShaderInstrumentationEnabled(&self) -> super::super::Foundation::BOOL; + fn EnableShaderInstrumentation(&self, benable: windows_core::BOOL); + fn ShaderInstrumentationEnabled(&self) -> windows_core::BOOL; } impl ID3D12Tools_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn EnableShaderInstrumentation(this: *mut core::ffi::c_void, benable: super::super::Foundation::BOOL) { + unsafe extern "system" fn EnableShaderInstrumentation(this: *mut core::ffi::c_void, benable: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Tools_Impl::EnableShaderInstrumentation(this, core::mem::transmute_copy(&benable)) } } - unsafe extern "system" fn ShaderInstrumentationEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn ShaderInstrumentationEnabled(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ID3D12Tools_Impl::ShaderInstrumentationEnabled(this) 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 aeb82a4080..7babf98140 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/mod.rs @@ -17,8 +17,8 @@ pub unsafe fn D3DPERF_GetStatus() -> u32 { unsafe { D3DPERF_GetStatus() } } #[inline] -pub unsafe fn D3DPERF_QueryRepeatFrame() -> super::super::Foundation::BOOL { - windows_targets::link!("d3d9.dll" "system" fn D3DPERF_QueryRepeatFrame() -> super::super::Foundation:: BOOL); +pub unsafe fn D3DPERF_QueryRepeatFrame() -> windows_core::BOOL { + windows_targets::link!("d3d9.dll" "system" fn D3DPERF_QueryRepeatFrame() -> windows_core::BOOL); unsafe { D3DPERF_QueryRepeatFrame() } } #[inline] @@ -181,7 +181,7 @@ pub struct D3DAUTHENTICATEDCHANNEL_CONFIGURESHAREDRESOURCE { pub Parameters: D3DAUTHENTICATEDCHANNEL_CONFIGURE_INPUT, pub ProcessIdentiferType: D3DAUTHENTICATEDCHANNEL_PROCESSIDENTIFIERTYPE, pub ProcessHandle: super::super::Foundation::HANDLE, - pub AllowAccess: super::super::Foundation::BOOL, + pub AllowAccess: windows_core::BOOL, } impl Default for D3DAUTHENTICATEDCHANNEL_CONFIGURESHAREDRESOURCE { fn default() -> Self { @@ -348,8 +348,8 @@ impl Default for D3DAUTHENTICATEDCHANNEL_QUERYEVICTIONENCRYPTIONGUID_OUTPUT { pub struct D3DAUTHENTICATEDCHANNEL_QUERYINFOBUSTYPE_OUTPUT { pub Output: D3DAUTHENTICATEDCHANNEL_QUERY_OUTPUT, pub BusType: D3DBUSTYPE, - pub bAccessibleInContiguousBlocks: super::super::Foundation::BOOL, - pub bAccessibleInNonContiguousBlocks: super::super::Foundation::BOOL, + pub bAccessibleInContiguousBlocks: windows_core::BOOL, + pub bAccessibleInNonContiguousBlocks: windows_core::BOOL, } impl Default for D3DAUTHENTICATEDCHANNEL_QUERYINFOBUSTYPE_OUTPUT { fn default() -> Self { @@ -598,7 +598,7 @@ impl Default for D3DBOX { pub struct D3DBRANCH { pub dwMask: u32, pub dwValue: u32, - pub bNegate: super::super::Foundation::BOOL, + pub bNegate: windows_core::BOOL, pub dwOffset: u32, } impl Default for D3DBRANCH { @@ -997,7 +997,7 @@ pub struct D3DDEVICEDESC { pub dcmColorModel: u32, pub dwDevCaps: u32, pub dtcTransformCaps: D3DTRANSFORMCAPS, - pub bClipping: super::super::Foundation::BOOL, + pub bClipping: windows_core::BOOL, pub dlcLightingCaps: D3DLIGHTINGCAPS, pub dpcLineCaps: D3DPRIMCAPS, pub dpcTriCaps: D3DPRIMCAPS, @@ -1371,7 +1371,7 @@ impl Default for D3DFINDDEVICERESULT { pub struct D3DFINDDEVICESEARCH { pub dwSize: u32, pub dwFlags: u32, - pub bHardware: super::super::Foundation::BOOL, + pub bHardware: windows_core::BOOL, pub dcmColorModel: u32, pub guid: windows_core::GUID, pub dwCaps: u32, @@ -2351,8 +2351,8 @@ pub struct D3DPRESENT_PARAMETERS { pub MultiSampleQuality: u32, pub SwapEffect: D3DSWAPEFFECT, pub hDeviceWindow: super::super::Foundation::HWND, - pub Windowed: super::super::Foundation::BOOL, - pub EnableAutoDepthStencil: super::super::Foundation::BOOL, + pub Windowed: windows_core::BOOL, + pub EnableAutoDepthStencil: windows_core::BOOL, pub AutoDepthStencilFormat: D3DFORMAT, pub Flags: u32, pub FullScreen_RefreshRateInHz: u32, @@ -2554,7 +2554,7 @@ impl Default for D3DRANGE { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DRASTER_STATUS { - pub InVBlank: super::super::Foundation::BOOL, + pub InVBlank: windows_core::BOOL, pub ScanLine: u32, } impl Default for D3DRASTER_STATUS { @@ -2598,7 +2598,7 @@ pub const D3DRENDERSTATE_WRAPBIAS: u32 = 128u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3DRESOURCESTATS { - pub bThrashing: super::super::Foundation::BOOL, + pub bThrashing: windows_core::BOOL, pub ApproxBytesDownloaded: u32, pub NumEvicts: u32, pub NumVidCreates: u32, @@ -3926,9 +3926,9 @@ pub struct IDirect3D9_Vtbl { pub GetAdapterModeCount: unsafe extern "system" fn(*mut core::ffi::c_void, u32, D3DFORMAT) -> u32, pub EnumAdapterModes: unsafe extern "system" fn(*mut core::ffi::c_void, u32, D3DFORMAT, u32, *mut D3DDISPLAYMODE) -> windows_core::HRESULT, pub GetAdapterDisplayMode: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut D3DDISPLAYMODE) -> windows_core::HRESULT, - pub CheckDeviceType: unsafe extern "system" fn(*mut core::ffi::c_void, u32, D3DDEVTYPE, D3DFORMAT, D3DFORMAT, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CheckDeviceType: unsafe extern "system" fn(*mut core::ffi::c_void, u32, D3DDEVTYPE, D3DFORMAT, D3DFORMAT, windows_core::BOOL) -> windows_core::HRESULT, pub CheckDeviceFormat: unsafe extern "system" fn(*mut core::ffi::c_void, u32, D3DDEVTYPE, D3DFORMAT, u32, D3DRESOURCETYPE, D3DFORMAT) -> windows_core::HRESULT, - pub CheckDeviceMultiSampleType: unsafe extern "system" fn(*mut core::ffi::c_void, u32, D3DDEVTYPE, D3DFORMAT, super::super::Foundation::BOOL, D3DMULTISAMPLE_TYPE, *mut u32) -> windows_core::HRESULT, + pub CheckDeviceMultiSampleType: unsafe extern "system" fn(*mut core::ffi::c_void, u32, D3DDEVTYPE, D3DFORMAT, windows_core::BOOL, D3DMULTISAMPLE_TYPE, *mut u32) -> windows_core::HRESULT, pub CheckDepthStencilMatch: unsafe extern "system" fn(*mut core::ffi::c_void, u32, D3DDEVTYPE, D3DFORMAT, D3DFORMAT, D3DFORMAT) -> windows_core::HRESULT, pub CheckDeviceFormatConversion: unsafe extern "system" fn(*mut core::ffi::c_void, u32, D3DDEVTYPE, D3DFORMAT, D3DFORMAT) -> windows_core::HRESULT, pub GetDeviceCaps: unsafe extern "system" fn(*mut core::ffi::c_void, u32, D3DDEVTYPE, *mut D3DCAPS9) -> windows_core::HRESULT, @@ -3946,9 +3946,9 @@ pub trait IDirect3D9_Impl: windows_core::IUnknownImpl { fn GetAdapterModeCount(&self, adapter: u32, format: D3DFORMAT) -> u32; fn EnumAdapterModes(&self, adapter: u32, format: D3DFORMAT, mode: u32, pmode: *mut D3DDISPLAYMODE) -> windows_core::Result<()>; fn GetAdapterDisplayMode(&self, adapter: u32, pmode: *mut D3DDISPLAYMODE) -> windows_core::Result<()>; - fn CheckDeviceType(&self, adapter: u32, devtype: D3DDEVTYPE, adapterformat: D3DFORMAT, backbufferformat: D3DFORMAT, bwindowed: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn CheckDeviceType(&self, adapter: u32, devtype: D3DDEVTYPE, adapterformat: D3DFORMAT, backbufferformat: D3DFORMAT, bwindowed: windows_core::BOOL) -> windows_core::Result<()>; fn CheckDeviceFormat(&self, adapter: u32, devicetype: D3DDEVTYPE, adapterformat: D3DFORMAT, usage: u32, rtype: D3DRESOURCETYPE, checkformat: D3DFORMAT) -> windows_core::Result<()>; - fn CheckDeviceMultiSampleType(&self, adapter: u32, devicetype: D3DDEVTYPE, surfaceformat: D3DFORMAT, windowed: super::super::Foundation::BOOL, multisampletype: D3DMULTISAMPLE_TYPE, pqualitylevels: *mut u32) -> windows_core::Result<()>; + fn CheckDeviceMultiSampleType(&self, adapter: u32, devicetype: D3DDEVTYPE, surfaceformat: D3DFORMAT, windowed: windows_core::BOOL, multisampletype: D3DMULTISAMPLE_TYPE, pqualitylevels: *mut u32) -> windows_core::Result<()>; fn CheckDepthStencilMatch(&self, adapter: u32, devicetype: D3DDEVTYPE, adapterformat: D3DFORMAT, rendertargetformat: D3DFORMAT, depthstencilformat: D3DFORMAT) -> windows_core::Result<()>; fn CheckDeviceFormatConversion(&self, adapter: u32, devicetype: D3DDEVTYPE, sourceformat: D3DFORMAT, targetformat: D3DFORMAT) -> windows_core::Result<()>; fn GetDeviceCaps(&self, adapter: u32, devicetype: D3DDEVTYPE, pcaps: *mut D3DCAPS9) -> windows_core::Result<()>; @@ -3994,7 +3994,7 @@ impl IDirect3D9_Vtbl { IDirect3D9_Impl::GetAdapterDisplayMode(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&pmode)).into() } } - unsafe extern "system" fn CheckDeviceType(this: *mut core::ffi::c_void, adapter: u32, devtype: D3DDEVTYPE, adapterformat: D3DFORMAT, backbufferformat: D3DFORMAT, bwindowed: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CheckDeviceType(this: *mut core::ffi::c_void, adapter: u32, devtype: D3DDEVTYPE, adapterformat: D3DFORMAT, backbufferformat: D3DFORMAT, bwindowed: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9_Impl::CheckDeviceType(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&devtype), core::mem::transmute_copy(&adapterformat), core::mem::transmute_copy(&backbufferformat), core::mem::transmute_copy(&bwindowed)).into() @@ -4006,7 +4006,7 @@ impl IDirect3D9_Vtbl { IDirect3D9_Impl::CheckDeviceFormat(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&devicetype), core::mem::transmute_copy(&adapterformat), core::mem::transmute_copy(&usage), core::mem::transmute_copy(&rtype), core::mem::transmute_copy(&checkformat)).into() } } - unsafe extern "system" fn CheckDeviceMultiSampleType(this: *mut core::ffi::c_void, adapter: u32, devicetype: D3DDEVTYPE, surfaceformat: D3DFORMAT, windowed: super::super::Foundation::BOOL, multisampletype: D3DMULTISAMPLE_TYPE, pqualitylevels: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn CheckDeviceMultiSampleType(this: *mut core::ffi::c_void, adapter: u32, devicetype: D3DDEVTYPE, surfaceformat: D3DFORMAT, windowed: windows_core::BOOL, multisampletype: D3DMULTISAMPLE_TYPE, pqualitylevels: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3D9_Impl::CheckDeviceMultiSampleType(this, core::mem::transmute_copy(&adapter), core::mem::transmute_copy(&devicetype), core::mem::transmute_copy(&surfaceformat), core::mem::transmute_copy(&windowed), core::mem::transmute_copy(&multisampletype), core::mem::transmute_copy(&pqualitylevels)).into() @@ -4387,7 +4387,7 @@ impl IDirect3DDevice9 { pub unsafe fn SetCursorPosition(&self, x: i32, y: i32, flags: u32) { unsafe { (windows_core::Interface::vtable(self).SetCursorPosition)(windows_core::Interface::as_raw(self), x, y, flags) } } - pub unsafe fn ShowCursor(&self, bshow: bool) -> super::super::Foundation::BOOL { + pub unsafe fn ShowCursor(&self, bshow: bool) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).ShowCursor)(windows_core::Interface::as_raw(self), bshow.into()) } } pub unsafe fn CreateAdditionalSwapChain(&self, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pswapchain: *mut Option) -> windows_core::Result<()> { @@ -4559,7 +4559,7 @@ impl IDirect3DDevice9 { pub unsafe fn LightEnable(&self, index: u32, enable: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).LightEnable)(windows_core::Interface::as_raw(self), index, enable.into()).ok() } } - pub unsafe fn GetLightEnable(&self, index: u32, penable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetLightEnable(&self, index: u32, penable: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetLightEnable)(windows_core::Interface::as_raw(self), index, penable as _).ok() } } pub unsafe fn SetClipPlane(&self, index: u32, pplane: *const f32) -> windows_core::Result<()> { @@ -4645,7 +4645,7 @@ impl IDirect3DDevice9 { pub unsafe fn SetSoftwareVertexProcessing(&self, bsoftware: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetSoftwareVertexProcessing)(windows_core::Interface::as_raw(self), bsoftware.into()).ok() } } - pub unsafe fn GetSoftwareVertexProcessing(&self) -> super::super::Foundation::BOOL { + pub unsafe fn GetSoftwareVertexProcessing(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetSoftwareVertexProcessing)(windows_core::Interface::as_raw(self)) } } pub unsafe fn SetNPatchMode(&self, nsegments: f32) -> windows_core::Result<()> { @@ -4727,10 +4727,10 @@ impl IDirect3DDevice9 { pub unsafe fn GetVertexShaderConstantI(&self, startregister: u32, pconstantdata: *mut i32, vector4icount: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetVertexShaderConstantI)(windows_core::Interface::as_raw(self), startregister, pconstantdata as _, vector4icount).ok() } } - pub unsafe fn SetVertexShaderConstantB(&self, startregister: u32, pconstantdata: *const super::super::Foundation::BOOL, boolcount: u32) -> windows_core::Result<()> { + pub unsafe fn SetVertexShaderConstantB(&self, startregister: u32, pconstantdata: *const windows_core::BOOL, boolcount: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetVertexShaderConstantB)(windows_core::Interface::as_raw(self), startregister, pconstantdata, boolcount).ok() } } - pub unsafe fn GetVertexShaderConstantB(&self, startregister: u32, pconstantdata: *mut super::super::Foundation::BOOL, boolcount: u32) -> windows_core::Result<()> { + pub unsafe fn GetVertexShaderConstantB(&self, startregister: u32, pconstantdata: *mut windows_core::BOOL, boolcount: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetVertexShaderConstantB)(windows_core::Interface::as_raw(self), startregister, pconstantdata as _, boolcount).ok() } } pub unsafe fn SetStreamSource(&self, streamnumber: u32, pstreamdata: P1, offsetinbytes: u32, stride: u32) -> windows_core::Result<()> @@ -4790,10 +4790,10 @@ impl IDirect3DDevice9 { pub unsafe fn GetPixelShaderConstantI(&self, startregister: u32, pconstantdata: *mut i32, vector4icount: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetPixelShaderConstantI)(windows_core::Interface::as_raw(self), startregister, pconstantdata as _, vector4icount).ok() } } - pub unsafe fn SetPixelShaderConstantB(&self, startregister: u32, pconstantdata: *const super::super::Foundation::BOOL, boolcount: u32) -> windows_core::Result<()> { + pub unsafe fn SetPixelShaderConstantB(&self, startregister: u32, pconstantdata: *const windows_core::BOOL, boolcount: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetPixelShaderConstantB)(windows_core::Interface::as_raw(self), startregister, pconstantdata, boolcount).ok() } } - pub unsafe fn GetPixelShaderConstantB(&self, startregister: u32, pconstantdata: *mut super::super::Foundation::BOOL, boolcount: u32) -> windows_core::Result<()> { + pub unsafe fn GetPixelShaderConstantB(&self, startregister: u32, pconstantdata: *mut windows_core::BOOL, boolcount: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetPixelShaderConstantB)(windows_core::Interface::as_raw(self), startregister, pconstantdata as _, boolcount).ok() } } pub unsafe fn DrawRectPatch(&self, handle: u32, pnumsegs: *const f32, prectpatchinfo: *const D3DRECTPATCH_INFO) -> windows_core::Result<()> { @@ -4824,7 +4824,7 @@ pub struct IDirect3DDevice9_Vtbl { pub GetCreationParameters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut D3DDEVICE_CREATION_PARAMETERS) -> windows_core::HRESULT, pub SetCursorProperties: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCursorPosition: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, u32), - pub ShowCursor: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> super::super::Foundation::BOOL, + pub ShowCursor: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::BOOL, pub CreateAdditionalSwapChain: unsafe extern "system" fn(*mut core::ffi::c_void, *mut D3DPRESENT_PARAMETERS, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSwapChain: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetNumberOfSwapChains: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, @@ -4835,7 +4835,7 @@ pub struct IDirect3DDevice9_Vtbl { Present: usize, pub GetBackBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, D3DBACKBUFFER_TYPE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetRasterStatus: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut D3DRASTER_STATUS) -> windows_core::HRESULT, - pub SetDialogBoxMode: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetDialogBoxMode: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetGammaRamp: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const D3DGAMMARAMP), pub GetGammaRamp: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut D3DGAMMARAMP), pub CreateTexture: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, u32, u32, D3DFORMAT, D3DPOOL, *mut *mut core::ffi::c_void, *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT, @@ -4843,8 +4843,8 @@ pub struct IDirect3DDevice9_Vtbl { pub CreateCubeTexture: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, u32, D3DFORMAT, D3DPOOL, *mut *mut core::ffi::c_void, *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT, pub CreateVertexBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, u32, D3DPOOL, *mut *mut core::ffi::c_void, *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT, pub CreateIndexBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, D3DFORMAT, D3DPOOL, *mut *mut core::ffi::c_void, *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT, - pub CreateRenderTarget: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, D3DFORMAT, D3DMULTISAMPLE_TYPE, u32, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void, *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT, - pub CreateDepthStencilSurface: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, D3DFORMAT, D3DMULTISAMPLE_TYPE, u32, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void, *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT, + pub CreateRenderTarget: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, D3DFORMAT, D3DMULTISAMPLE_TYPE, u32, windows_core::BOOL, *mut *mut core::ffi::c_void, *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT, + pub CreateDepthStencilSurface: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, D3DFORMAT, D3DMULTISAMPLE_TYPE, u32, windows_core::BOOL, *mut *mut core::ffi::c_void, *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT, pub UpdateSurface: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const super::super::Foundation::RECT, *mut core::ffi::c_void, *const super::super::Foundation::POINT) -> windows_core::HRESULT, pub UpdateTexture: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetRenderTargetData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -4883,8 +4883,8 @@ pub struct IDirect3DDevice9_Vtbl { pub GetLight: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut D3DLIGHT9) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Direct3D"))] GetLight: usize, - pub LightEnable: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetLightEnable: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub LightEnable: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, + pub GetLightEnable: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetClipPlane: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const f32) -> windows_core::HRESULT, pub GetClipPlane: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut f32) -> windows_core::HRESULT, pub SetRenderState: unsafe extern "system" fn(*mut core::ffi::c_void, D3DRENDERSTATETYPE, u32) -> windows_core::HRESULT, @@ -4913,8 +4913,8 @@ pub struct IDirect3DDevice9_Vtbl { pub GetCurrentTexturePalette: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetScissorRect: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT) -> windows_core::HRESULT, pub GetScissorRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::RECT) -> windows_core::HRESULT, - pub SetSoftwareVertexProcessing: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetSoftwareVertexProcessing: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub SetSoftwareVertexProcessing: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetSoftwareVertexProcessing: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub SetNPatchMode: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub GetNPatchMode: unsafe extern "system" fn(*mut core::ffi::c_void) -> f32, pub DrawPrimitive: unsafe extern "system" fn(*mut core::ffi::c_void, D3DPRIMITIVETYPE, u32, u32) -> windows_core::HRESULT, @@ -4934,8 +4934,8 @@ pub struct IDirect3DDevice9_Vtbl { pub GetVertexShaderConstantF: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut f32, u32) -> windows_core::HRESULT, pub SetVertexShaderConstantI: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const i32, u32) -> windows_core::HRESULT, pub GetVertexShaderConstantI: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut i32, u32) -> windows_core::HRESULT, - pub SetVertexShaderConstantB: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::super::Foundation::BOOL, u32) -> windows_core::HRESULT, - pub GetVertexShaderConstantB: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL, u32) -> windows_core::HRESULT, + pub SetVertexShaderConstantB: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_core::BOOL, u32) -> windows_core::HRESULT, + pub GetVertexShaderConstantB: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL, u32) -> windows_core::HRESULT, pub SetStreamSource: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, pub GetStreamSource: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void, *mut u32, *mut u32) -> windows_core::HRESULT, pub SetStreamSourceFreq: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, @@ -4949,8 +4949,8 @@ pub struct IDirect3DDevice9_Vtbl { pub GetPixelShaderConstantF: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut f32, u32) -> windows_core::HRESULT, pub SetPixelShaderConstantI: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const i32, u32) -> windows_core::HRESULT, pub GetPixelShaderConstantI: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut i32, u32) -> windows_core::HRESULT, - pub SetPixelShaderConstantB: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::super::Foundation::BOOL, u32) -> windows_core::HRESULT, - pub GetPixelShaderConstantB: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL, u32) -> windows_core::HRESULT, + pub SetPixelShaderConstantB: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_core::BOOL, u32) -> windows_core::HRESULT, + pub GetPixelShaderConstantB: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL, u32) -> windows_core::HRESULT, pub DrawRectPatch: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const f32, *const D3DRECTPATCH_INFO) -> windows_core::HRESULT, pub DrawTriPatch: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const f32, *const D3DTRIPATCH_INFO) -> windows_core::HRESULT, pub DeletePatch: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -4967,7 +4967,7 @@ pub trait IDirect3DDevice9_Impl: windows_core::IUnknownImpl { fn GetCreationParameters(&self, pparameters: *mut D3DDEVICE_CREATION_PARAMETERS) -> windows_core::Result<()>; fn SetCursorProperties(&self, xhotspot: u32, yhotspot: u32, pcursorbitmap: windows_core::Ref) -> windows_core::Result<()>; fn SetCursorPosition(&self, x: i32, y: i32, flags: u32); - fn ShowCursor(&self, bshow: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; + fn ShowCursor(&self, bshow: windows_core::BOOL) -> windows_core::BOOL; fn CreateAdditionalSwapChain(&self, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pswapchain: windows_core::OutRef<'_, IDirect3DSwapChain9>) -> windows_core::Result<()>; fn GetSwapChain(&self, iswapchain: u32) -> windows_core::Result; fn GetNumberOfSwapChains(&self) -> u32; @@ -4975,7 +4975,7 @@ pub trait IDirect3DDevice9_Impl: windows_core::IUnknownImpl { fn Present(&self, psourcerect: *const super::super::Foundation::RECT, pdestrect: *const super::super::Foundation::RECT, hdestwindowoverride: super::super::Foundation::HWND, pdirtyregion: *const super::Gdi::RGNDATA) -> windows_core::Result<()>; fn GetBackBuffer(&self, iswapchain: u32, ibackbuffer: u32, r#type: D3DBACKBUFFER_TYPE) -> windows_core::Result; fn GetRasterStatus(&self, iswapchain: u32, prasterstatus: *mut D3DRASTER_STATUS) -> windows_core::Result<()>; - fn SetDialogBoxMode(&self, benabledialogs: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetDialogBoxMode(&self, benabledialogs: windows_core::BOOL) -> windows_core::Result<()>; fn SetGammaRamp(&self, iswapchain: u32, flags: u32, pramp: *const D3DGAMMARAMP); fn GetGammaRamp(&self, iswapchain: u32, pramp: *mut D3DGAMMARAMP); fn CreateTexture(&self, width: u32, height: u32, levels: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, pptexture: windows_core::OutRef<'_, IDirect3DTexture9>, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()>; @@ -4983,8 +4983,8 @@ pub trait IDirect3DDevice9_Impl: windows_core::IUnknownImpl { fn CreateCubeTexture(&self, edgelength: u32, levels: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, ppcubetexture: windows_core::OutRef<'_, IDirect3DCubeTexture9>, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn CreateVertexBuffer(&self, length: u32, usage: u32, fvf: u32, pool: D3DPOOL, ppvertexbuffer: windows_core::OutRef<'_, IDirect3DVertexBuffer9>, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn CreateIndexBuffer(&self, length: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, ppindexbuffer: windows_core::OutRef<'_, IDirect3DIndexBuffer9>, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()>; - fn CreateRenderTarget(&self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: super::super::Foundation::BOOL, ppsurface: windows_core::OutRef<'_, IDirect3DSurface9>, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()>; - fn CreateDepthStencilSurface(&self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: super::super::Foundation::BOOL, ppsurface: windows_core::OutRef<'_, IDirect3DSurface9>, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()>; + fn CreateRenderTarget(&self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: windows_core::BOOL, ppsurface: windows_core::OutRef<'_, IDirect3DSurface9>, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()>; + fn CreateDepthStencilSurface(&self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: windows_core::BOOL, ppsurface: windows_core::OutRef<'_, IDirect3DSurface9>, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn UpdateSurface(&self, psourcesurface: windows_core::Ref, psourcerect: *const super::super::Foundation::RECT, pdestinationsurface: windows_core::Ref, pdestpoint: *const super::super::Foundation::POINT) -> windows_core::Result<()>; fn UpdateTexture(&self, psourcetexture: windows_core::Ref, pdestinationtexture: windows_core::Ref) -> windows_core::Result<()>; fn GetRenderTargetData(&self, prendertarget: windows_core::Ref, pdestsurface: windows_core::Ref) -> windows_core::Result<()>; @@ -5008,8 +5008,8 @@ pub trait IDirect3DDevice9_Impl: windows_core::IUnknownImpl { fn GetMaterial(&self, pmaterial: *mut D3DMATERIAL9) -> windows_core::Result<()>; fn SetLight(&self, index: u32, param1: *const D3DLIGHT9) -> windows_core::Result<()>; fn GetLight(&self, index: u32, param1: *mut D3DLIGHT9) -> windows_core::Result<()>; - fn LightEnable(&self, index: u32, enable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetLightEnable(&self, index: u32, penable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn LightEnable(&self, index: u32, enable: windows_core::BOOL) -> windows_core::Result<()>; + fn GetLightEnable(&self, index: u32, penable: *mut windows_core::BOOL) -> windows_core::Result<()>; fn SetClipPlane(&self, index: u32, pplane: *const f32) -> windows_core::Result<()>; fn GetClipPlane(&self, index: u32, pplane: *mut f32) -> windows_core::Result<()>; fn SetRenderState(&self, state: D3DRENDERSTATETYPE, value: u32) -> windows_core::Result<()>; @@ -5032,8 +5032,8 @@ pub trait IDirect3DDevice9_Impl: windows_core::IUnknownImpl { fn GetCurrentTexturePalette(&self, palettenumber: *mut u32) -> windows_core::Result<()>; fn SetScissorRect(&self, prect: *const super::super::Foundation::RECT) -> windows_core::Result<()>; fn GetScissorRect(&self, prect: *mut super::super::Foundation::RECT) -> windows_core::Result<()>; - fn SetSoftwareVertexProcessing(&self, bsoftware: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetSoftwareVertexProcessing(&self) -> super::super::Foundation::BOOL; + fn SetSoftwareVertexProcessing(&self, bsoftware: windows_core::BOOL) -> windows_core::Result<()>; + fn GetSoftwareVertexProcessing(&self) -> windows_core::BOOL; fn SetNPatchMode(&self, nsegments: f32) -> windows_core::Result<()>; fn GetNPatchMode(&self) -> f32; fn DrawPrimitive(&self, primitivetype: D3DPRIMITIVETYPE, startvertex: u32, primitivecount: u32) -> windows_core::Result<()>; @@ -5053,8 +5053,8 @@ pub trait IDirect3DDevice9_Impl: windows_core::IUnknownImpl { fn GetVertexShaderConstantF(&self, startregister: u32, pconstantdata: *mut f32, vector4fcount: u32) -> windows_core::Result<()>; fn SetVertexShaderConstantI(&self, startregister: u32, pconstantdata: *const i32, vector4icount: u32) -> windows_core::Result<()>; fn GetVertexShaderConstantI(&self, startregister: u32, pconstantdata: *mut i32, vector4icount: u32) -> windows_core::Result<()>; - fn SetVertexShaderConstantB(&self, startregister: u32, pconstantdata: *const super::super::Foundation::BOOL, boolcount: u32) -> windows_core::Result<()>; - fn GetVertexShaderConstantB(&self, startregister: u32, pconstantdata: *mut super::super::Foundation::BOOL, boolcount: u32) -> windows_core::Result<()>; + fn SetVertexShaderConstantB(&self, startregister: u32, pconstantdata: *const windows_core::BOOL, boolcount: u32) -> windows_core::Result<()>; + fn GetVertexShaderConstantB(&self, startregister: u32, pconstantdata: *mut windows_core::BOOL, boolcount: u32) -> windows_core::Result<()>; fn SetStreamSource(&self, streamnumber: u32, pstreamdata: windows_core::Ref, offsetinbytes: u32, stride: u32) -> windows_core::Result<()>; fn GetStreamSource(&self, streamnumber: u32, ppstreamdata: windows_core::OutRef<'_, IDirect3DVertexBuffer9>, poffsetinbytes: *mut u32, pstride: *mut u32) -> windows_core::Result<()>; fn SetStreamSourceFreq(&self, streamnumber: u32, setting: u32) -> windows_core::Result<()>; @@ -5068,8 +5068,8 @@ pub trait IDirect3DDevice9_Impl: windows_core::IUnknownImpl { fn GetPixelShaderConstantF(&self, startregister: u32, pconstantdata: *mut f32, vector4fcount: u32) -> windows_core::Result<()>; fn SetPixelShaderConstantI(&self, startregister: u32, pconstantdata: *const i32, vector4icount: u32) -> windows_core::Result<()>; fn GetPixelShaderConstantI(&self, startregister: u32, pconstantdata: *mut i32, vector4icount: u32) -> windows_core::Result<()>; - fn SetPixelShaderConstantB(&self, startregister: u32, pconstantdata: *const super::super::Foundation::BOOL, boolcount: u32) -> windows_core::Result<()>; - fn GetPixelShaderConstantB(&self, startregister: u32, pconstantdata: *mut super::super::Foundation::BOOL, boolcount: u32) -> windows_core::Result<()>; + fn SetPixelShaderConstantB(&self, startregister: u32, pconstantdata: *const windows_core::BOOL, boolcount: u32) -> windows_core::Result<()>; + fn GetPixelShaderConstantB(&self, startregister: u32, pconstantdata: *mut windows_core::BOOL, boolcount: u32) -> windows_core::Result<()>; fn DrawRectPatch(&self, handle: u32, pnumsegs: *const f32, prectpatchinfo: *const D3DRECTPATCH_INFO) -> windows_core::Result<()>; fn DrawTriPatch(&self, handle: u32, pnumsegs: *const f32, ptripatchinfo: *const D3DTRIPATCH_INFO) -> windows_core::Result<()>; fn DeletePatch(&self, handle: u32) -> windows_core::Result<()>; @@ -5138,7 +5138,7 @@ impl IDirect3DDevice9_Vtbl { IDirect3DDevice9_Impl::SetCursorPosition(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&flags)) } } - unsafe extern "system" fn ShowCursor(this: *mut core::ffi::c_void, bshow: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { + unsafe extern "system" fn ShowCursor(this: *mut core::ffi::c_void, bshow: windows_core::BOOL) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::ShowCursor(this, core::mem::transmute_copy(&bshow)) @@ -5198,7 +5198,7 @@ impl IDirect3DDevice9_Vtbl { IDirect3DDevice9_Impl::GetRasterStatus(this, core::mem::transmute_copy(&iswapchain), core::mem::transmute_copy(&prasterstatus)).into() } } - unsafe extern "system" fn SetDialogBoxMode(this: *mut core::ffi::c_void, benabledialogs: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetDialogBoxMode(this: *mut core::ffi::c_void, benabledialogs: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetDialogBoxMode(this, core::mem::transmute_copy(&benabledialogs)).into() @@ -5246,13 +5246,13 @@ impl IDirect3DDevice9_Vtbl { IDirect3DDevice9_Impl::CreateIndexBuffer(this, core::mem::transmute_copy(&length), core::mem::transmute_copy(&usage), core::mem::transmute_copy(&format), core::mem::transmute_copy(&pool), core::mem::transmute_copy(&ppindexbuffer), core::mem::transmute_copy(&psharedhandle)).into() } } - unsafe extern "system" fn CreateRenderTarget(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: super::super::Foundation::BOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { + unsafe extern "system" fn CreateRenderTarget(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: windows_core::BOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::CreateRenderTarget(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&format), core::mem::transmute_copy(&multisample), core::mem::transmute_copy(&multisamplequality), core::mem::transmute_copy(&lockable), core::mem::transmute_copy(&ppsurface), core::mem::transmute_copy(&psharedhandle)).into() } } - unsafe extern "system" fn CreateDepthStencilSurface(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: super::super::Foundation::BOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { + unsafe extern "system" fn CreateDepthStencilSurface(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: windows_core::BOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::CreateDepthStencilSurface(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&format), core::mem::transmute_copy(&multisample), core::mem::transmute_copy(&multisamplequality), core::mem::transmute_copy(&discard), core::mem::transmute_copy(&ppsurface), core::mem::transmute_copy(&psharedhandle)).into() @@ -5408,13 +5408,13 @@ impl IDirect3DDevice9_Vtbl { IDirect3DDevice9_Impl::GetLight(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(¶m1)).into() } } - unsafe extern "system" fn LightEnable(this: *mut core::ffi::c_void, index: u32, enable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn LightEnable(this: *mut core::ffi::c_void, index: u32, enable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::LightEnable(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&enable)).into() } } - unsafe extern "system" fn GetLightEnable(this: *mut core::ffi::c_void, index: u32, penable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetLightEnable(this: *mut core::ffi::c_void, index: u32, penable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetLightEnable(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&penable)).into() @@ -5570,13 +5570,13 @@ impl IDirect3DDevice9_Vtbl { IDirect3DDevice9_Impl::GetScissorRect(this, core::mem::transmute_copy(&prect)).into() } } - unsafe extern "system" fn SetSoftwareVertexProcessing(this: *mut core::ffi::c_void, bsoftware: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetSoftwareVertexProcessing(this: *mut core::ffi::c_void, bsoftware: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetSoftwareVertexProcessing(this, core::mem::transmute_copy(&bsoftware)).into() } } - unsafe extern "system" fn GetSoftwareVertexProcessing(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetSoftwareVertexProcessing(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetSoftwareVertexProcessing(this) @@ -5720,13 +5720,13 @@ impl IDirect3DDevice9_Vtbl { IDirect3DDevice9_Impl::GetVertexShaderConstantI(this, core::mem::transmute_copy(&startregister), core::mem::transmute_copy(&pconstantdata), core::mem::transmute_copy(&vector4icount)).into() } } - unsafe extern "system" fn SetVertexShaderConstantB(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *const super::super::Foundation::BOOL, boolcount: u32) -> windows_core::HRESULT { + unsafe extern "system" fn SetVertexShaderConstantB(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *const windows_core::BOOL, boolcount: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetVertexShaderConstantB(this, core::mem::transmute_copy(&startregister), core::mem::transmute_copy(&pconstantdata), core::mem::transmute_copy(&boolcount)).into() } } - unsafe extern "system" fn GetVertexShaderConstantB(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *mut super::super::Foundation::BOOL, boolcount: u32) -> windows_core::HRESULT { + unsafe extern "system" fn GetVertexShaderConstantB(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *mut windows_core::BOOL, boolcount: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetVertexShaderConstantB(this, core::mem::transmute_copy(&startregister), core::mem::transmute_copy(&pconstantdata), core::mem::transmute_copy(&boolcount)).into() @@ -5828,13 +5828,13 @@ impl IDirect3DDevice9_Vtbl { IDirect3DDevice9_Impl::GetPixelShaderConstantI(this, core::mem::transmute_copy(&startregister), core::mem::transmute_copy(&pconstantdata), core::mem::transmute_copy(&vector4icount)).into() } } - unsafe extern "system" fn SetPixelShaderConstantB(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *const super::super::Foundation::BOOL, boolcount: u32) -> windows_core::HRESULT { + unsafe extern "system" fn SetPixelShaderConstantB(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *const windows_core::BOOL, boolcount: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::SetPixelShaderConstantB(this, core::mem::transmute_copy(&startregister), core::mem::transmute_copy(&pconstantdata), core::mem::transmute_copy(&boolcount)).into() } } - unsafe extern "system" fn GetPixelShaderConstantB(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *mut super::super::Foundation::BOOL, boolcount: u32) -> windows_core::HRESULT { + unsafe extern "system" fn GetPixelShaderConstantB(this: *mut core::ffi::c_void, startregister: u32, pconstantdata: *mut windows_core::BOOL, boolcount: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9_Impl::GetPixelShaderConstantB(this, core::mem::transmute_copy(&startregister), core::mem::transmute_copy(&pconstantdata), core::mem::transmute_copy(&boolcount)).into() @@ -6074,9 +6074,9 @@ pub struct IDirect3DDevice9Ex_Vtbl { pub SetMaximumFrameLatency: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetMaximumFrameLatency: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub CheckDeviceState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND) -> windows_core::HRESULT, - pub CreateRenderTargetEx: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, D3DFORMAT, D3DMULTISAMPLE_TYPE, u32, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void, *mut super::super::Foundation::HANDLE, u32) -> windows_core::HRESULT, + pub CreateRenderTargetEx: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, D3DFORMAT, D3DMULTISAMPLE_TYPE, u32, windows_core::BOOL, *mut *mut core::ffi::c_void, *mut super::super::Foundation::HANDLE, u32) -> windows_core::HRESULT, pub CreateOffscreenPlainSurfaceEx: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, D3DFORMAT, D3DPOOL, *mut *mut core::ffi::c_void, *mut super::super::Foundation::HANDLE, u32) -> windows_core::HRESULT, - pub CreateDepthStencilSurfaceEx: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, D3DFORMAT, D3DMULTISAMPLE_TYPE, u32, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void, *mut super::super::Foundation::HANDLE, u32) -> windows_core::HRESULT, + pub CreateDepthStencilSurfaceEx: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, D3DFORMAT, D3DMULTISAMPLE_TYPE, u32, windows_core::BOOL, *mut *mut core::ffi::c_void, *mut super::super::Foundation::HANDLE, u32) -> windows_core::HRESULT, pub ResetEx: unsafe extern "system" fn(*mut core::ffi::c_void, *mut D3DPRESENT_PARAMETERS, *mut D3DDISPLAYMODEEX) -> windows_core::HRESULT, pub GetDisplayModeEx: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut D3DDISPLAYMODEEX, *mut D3DDISPLAYROTATION) -> windows_core::HRESULT, } @@ -6092,9 +6092,9 @@ pub trait IDirect3DDevice9Ex_Impl: IDirect3DDevice9_Impl { fn SetMaximumFrameLatency(&self, maxlatency: u32) -> windows_core::Result<()>; fn GetMaximumFrameLatency(&self, pmaxlatency: *mut u32) -> windows_core::Result<()>; fn CheckDeviceState(&self, hdestinationwindow: super::super::Foundation::HWND) -> windows_core::Result<()>; - fn CreateRenderTargetEx(&self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: super::super::Foundation::BOOL, ppsurface: windows_core::OutRef<'_, IDirect3DSurface9>, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::Result<()>; + fn CreateRenderTargetEx(&self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: windows_core::BOOL, ppsurface: windows_core::OutRef<'_, IDirect3DSurface9>, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::Result<()>; fn CreateOffscreenPlainSurfaceEx(&self, width: u32, height: u32, format: D3DFORMAT, pool: D3DPOOL, ppsurface: windows_core::OutRef<'_, IDirect3DSurface9>, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::Result<()>; - fn CreateDepthStencilSurfaceEx(&self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: super::super::Foundation::BOOL, ppsurface: windows_core::OutRef<'_, IDirect3DSurface9>, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::Result<()>; + fn CreateDepthStencilSurfaceEx(&self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: windows_core::BOOL, ppsurface: windows_core::OutRef<'_, IDirect3DSurface9>, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::Result<()>; fn ResetEx(&self, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pfullscreendisplaymode: *mut D3DDISPLAYMODEEX) -> windows_core::Result<()>; fn GetDisplayModeEx(&self, iswapchain: u32, pmode: *mut D3DDISPLAYMODEEX, protation: *mut D3DDISPLAYROTATION) -> windows_core::Result<()>; } @@ -6161,7 +6161,7 @@ impl IDirect3DDevice9Ex_Vtbl { IDirect3DDevice9Ex_Impl::CheckDeviceState(this, core::mem::transmute_copy(&hdestinationwindow)).into() } } - unsafe extern "system" fn CreateRenderTargetEx(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: super::super::Foundation::BOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::HRESULT { + unsafe extern "system" fn CreateRenderTargetEx(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: windows_core::BOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Ex_Impl::CreateRenderTargetEx(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&format), core::mem::transmute_copy(&multisample), core::mem::transmute_copy(&multisamplequality), core::mem::transmute_copy(&lockable), core::mem::transmute_copy(&ppsurface), core::mem::transmute_copy(&psharedhandle), core::mem::transmute_copy(&usage)).into() @@ -6173,7 +6173,7 @@ impl IDirect3DDevice9Ex_Vtbl { IDirect3DDevice9Ex_Impl::CreateOffscreenPlainSurfaceEx(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&format), core::mem::transmute_copy(&pool), core::mem::transmute_copy(&ppsurface), core::mem::transmute_copy(&psharedhandle), core::mem::transmute_copy(&usage)).into() } } - unsafe extern "system" fn CreateDepthStencilSurfaceEx(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: super::super::Foundation::BOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::HRESULT { + unsafe extern "system" fn CreateDepthStencilSurfaceEx(this: *mut core::ffi::c_void, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: windows_core::BOOL, ppsurface: *mut *mut core::ffi::c_void, psharedhandle: *mut super::super::Foundation::HANDLE, usage: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDevice9Ex_Impl::CreateDepthStencilSurfaceEx(this, core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&format), core::mem::transmute_copy(&multisample), core::mem::transmute_copy(&multisamplequality), core::mem::transmute_copy(&discard), core::mem::transmute_copy(&ppsurface), core::mem::transmute_copy(&psharedhandle), core::mem::transmute_copy(&usage)).into() 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 5682303f55..59bcd56669 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9on12/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9on12/mod.rs @@ -13,7 +13,7 @@ pub unsafe fn Direct3DCreate9On12Ex(sdkversion: u32, poverridelist: *mut D3D9ON1 #[repr(C)] #[derive(Clone, Debug, PartialEq)] pub struct D3D9ON12_ARGS { - pub Enable9On12: super::super::Foundation::BOOL, + pub Enable9On12: windows_core::BOOL, pub pD3D12Device: core::mem::ManuallyDrop>, pub ppD3D12Queues: [core::mem::ManuallyDrop>; 2], pub NumQueues: u32, 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 97edd2bf97..827039b571 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/mod.rs @@ -3,7 +3,7 @@ pub unsafe fn DCompositionAttachMouseDragToHwnd(visual: P0, hwnd: super::sup where P0: windows_core::Param, { - windows_targets::link!("dcomp.dll" "system" fn DCompositionAttachMouseDragToHwnd(visual : * mut core::ffi::c_void, hwnd : super::super::Foundation:: HWND, enable : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("dcomp.dll" "system" fn DCompositionAttachMouseDragToHwnd(visual : * mut core::ffi::c_void, hwnd : super::super::Foundation:: HWND, enable : windows_core::BOOL) -> windows_core::HRESULT); unsafe { DCompositionAttachMouseDragToHwnd(visual.param().abi(), hwnd, enable.into()).ok() } } #[inline] @@ -11,12 +11,12 @@ pub unsafe fn DCompositionAttachMouseWheelToHwnd(visual: P0, hwnd: super::su where P0: windows_core::Param, { - windows_targets::link!("dcomp.dll" "system" fn DCompositionAttachMouseWheelToHwnd(visual : * mut core::ffi::c_void, hwnd : super::super::Foundation:: HWND, enable : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("dcomp.dll" "system" fn DCompositionAttachMouseWheelToHwnd(visual : * mut core::ffi::c_void, hwnd : super::super::Foundation:: HWND, enable : windows_core::BOOL) -> windows_core::HRESULT); unsafe { DCompositionAttachMouseWheelToHwnd(visual.param().abi(), hwnd, enable.into()).ok() } } #[inline] pub unsafe fn DCompositionBoostCompositorClock(enable: bool) -> windows_core::Result<()> { - windows_targets::link!("dcomp.dll" "system" fn DCompositionBoostCompositorClock(enable : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("dcomp.dll" "system" fn DCompositionBoostCompositorClock(enable : windows_core::BOOL) -> windows_core::HRESULT); unsafe { DCompositionBoostCompositorClock(enable.into()).ok() } } #[cfg(feature = "Win32_Graphics_Dxgi")] @@ -499,7 +499,7 @@ pub struct IDCompositionArithmeticCompositeEffect_Vtbl { pub SetCoefficients: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::Direct2D::Common::D2D_VECTOR_4F) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] SetCoefficients: usize, - pub SetClampOutput: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetClampOutput: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetCoefficient1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCoefficient12: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub SetCoefficient2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -512,7 +512,7 @@ pub struct IDCompositionArithmeticCompositeEffect_Vtbl { #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait IDCompositionArithmeticCompositeEffect_Impl: IDCompositionFilterEffect_Impl { fn SetCoefficients(&self, coefficients: *const super::Direct2D::Common::D2D_VECTOR_4F) -> windows_core::Result<()>; - fn SetClampOutput(&self, clampoutput: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetClampOutput(&self, clampoutput: windows_core::BOOL) -> windows_core::Result<()>; fn SetCoefficient1(&self, animation: windows_core::Ref) -> windows_core::Result<()>; fn SetCoefficient12(&self, coeffcient1: f32) -> windows_core::Result<()>; fn SetCoefficient2(&self, animation: windows_core::Ref) -> windows_core::Result<()>; @@ -531,7 +531,7 @@ impl IDCompositionArithmeticCompositeEffect_Vtbl { IDCompositionArithmeticCompositeEffect_Impl::SetCoefficients(this, core::mem::transmute_copy(&coefficients)).into() } } - unsafe extern "system" fn SetClampOutput(this: *mut core::ffi::c_void, clampoutput: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetClampOutput(this: *mut core::ffi::c_void, clampoutput: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionArithmeticCompositeEffect_Impl::SetClampOutput(this, core::mem::transmute_copy(&clampoutput)).into() @@ -877,7 +877,7 @@ pub struct IDCompositionColorMatrixEffect_Vtbl { pub SetAlphaMode: unsafe extern "system" fn(*mut core::ffi::c_void, super::Direct2D::Common::D2D1_COLORMATRIX_ALPHA_MODE) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] SetAlphaMode: usize, - pub SetClampOutput: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetClampOutput: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait IDCompositionColorMatrixEffect_Impl: IDCompositionFilterEffect_Impl { @@ -885,7 +885,7 @@ pub trait IDCompositionColorMatrixEffect_Impl: IDCompositionFilterEffect_Impl { fn SetMatrixElement(&self, row: i32, column: i32, animation: windows_core::Ref) -> windows_core::Result<()>; fn SetMatrixElement2(&self, row: i32, column: i32, value: f32) -> windows_core::Result<()>; fn SetAlphaMode(&self, mode: super::Direct2D::Common::D2D1_COLORMATRIX_ALPHA_MODE) -> windows_core::Result<()>; - fn SetClampOutput(&self, clamp: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetClampOutput(&self, clamp: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDCompositionColorMatrixEffect_Vtbl { @@ -914,7 +914,7 @@ impl IDCompositionColorMatrixEffect_Vtbl { IDCompositionColorMatrixEffect_Impl::SetAlphaMode(this, core::mem::transmute_copy(&mode)).into() } } - unsafe extern "system" fn SetClampOutput(this: *mut core::ffi::c_void, clamp: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetClampOutput(this: *mut core::ffi::c_void, clamp: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionColorMatrixEffect_Impl::SetClampOutput(this, core::mem::transmute_copy(&clamp)).into() @@ -1103,20 +1103,20 @@ impl IDCompositionDesktopDevice { #[repr(C)] pub struct IDCompositionDesktopDevice_Vtbl { pub base__: IDCompositionDevice2_Vtbl, - pub CreateTargetForHwnd: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateTargetForHwnd: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateSurfaceFromHandle: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateSurfaceFromHwnd: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub trait IDCompositionDesktopDevice_Impl: IDCompositionDevice2_Impl { - fn CreateTargetForHwnd(&self, hwnd: super::super::Foundation::HWND, topmost: super::super::Foundation::BOOL) -> windows_core::Result; + fn CreateTargetForHwnd(&self, hwnd: super::super::Foundation::HWND, topmost: windows_core::BOOL) -> windows_core::Result; fn CreateSurfaceFromHandle(&self, handle: super::super::Foundation::HANDLE) -> windows_core::Result; fn CreateSurfaceFromHwnd(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDCompositionDesktopDevice_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CreateTargetForHwnd(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, topmost: super::super::Foundation::BOOL, target: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateTargetForHwnd(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, topmost: windows_core::BOOL, target: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDesktopDevice_Impl::CreateTargetForHwnd(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&topmost)) { @@ -1303,7 +1303,7 @@ impl IDCompositionDevice { (windows_core::Interface::vtable(self).CreateAnimation)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn CheckDeviceState(&self) -> windows_core::Result { + pub unsafe fn CheckDeviceState(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CheckDeviceState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1319,7 +1319,7 @@ pub struct IDCompositionDevice_Vtbl { pub GetFrameStatistics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DCOMPOSITION_FRAME_STATISTICS) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetFrameStatistics: usize, - pub CreateTargetForHwnd: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateTargetForHwnd: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateVisual: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub CreateSurface: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, super::Dxgi::Common::DXGI_FORMAT, super::Dxgi::Common::DXGI_ALPHA_MODE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1345,14 +1345,14 @@ pub struct IDCompositionDevice_Vtbl { pub CreateEffectGroup: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateRectangleClip: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateAnimation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CheckDeviceState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CheckDeviceState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub trait IDCompositionDevice_Impl: windows_core::IUnknownImpl { fn Commit(&self) -> windows_core::Result<()>; fn WaitForCommitCompletion(&self) -> windows_core::Result<()>; fn GetFrameStatistics(&self) -> windows_core::Result; - fn CreateTargetForHwnd(&self, hwnd: super::super::Foundation::HWND, topmost: super::super::Foundation::BOOL) -> windows_core::Result; + fn CreateTargetForHwnd(&self, hwnd: super::super::Foundation::HWND, topmost: windows_core::BOOL) -> windows_core::Result; fn CreateVisual(&self) -> windows_core::Result; fn CreateSurface(&self, width: u32, height: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE) -> windows_core::Result; fn CreateVirtualSurface(&self, initialwidth: u32, initialheight: u32, pixelformat: super::Dxgi::Common::DXGI_FORMAT, alphamode: super::Dxgi::Common::DXGI_ALPHA_MODE) -> windows_core::Result; @@ -1372,7 +1372,7 @@ pub trait IDCompositionDevice_Impl: windows_core::IUnknownImpl { fn CreateEffectGroup(&self) -> windows_core::Result; fn CreateRectangleClip(&self) -> windows_core::Result; fn CreateAnimation(&self) -> windows_core::Result; - fn CheckDeviceState(&self) -> windows_core::Result; + fn CheckDeviceState(&self) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDCompositionDevice_Vtbl { @@ -1401,7 +1401,7 @@ impl IDCompositionDevice_Vtbl { } } } - unsafe extern "system" fn CreateTargetForHwnd(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, topmost: super::super::Foundation::BOOL, target: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateTargetForHwnd(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, topmost: windows_core::BOOL, target: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CreateTargetForHwnd(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&topmost)) { @@ -1641,7 +1641,7 @@ impl IDCompositionDevice_Vtbl { } } } - unsafe extern "system" fn CheckDeviceState(this: *mut core::ffi::c_void, pfvalid: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CheckDeviceState(this: *mut core::ffi::c_void, pfvalid: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice_Impl::CheckDeviceState(this) { @@ -2461,7 +2461,7 @@ impl core::ops::Deref for IDCompositionDevice4 { } windows_core::imp::interface_hierarchy!(IDCompositionDevice4, windows_core::IUnknown, IDCompositionDevice2, IDCompositionDevice3); impl IDCompositionDevice4 { - pub unsafe fn CheckCompositionTextureSupport(&self, renderingdevice: P0) -> windows_core::Result + pub unsafe fn CheckCompositionTextureSupport(&self, renderingdevice: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -2483,18 +2483,18 @@ impl IDCompositionDevice4 { #[repr(C)] pub struct IDCompositionDevice4_Vtbl { pub base__: IDCompositionDevice3_Vtbl, - pub CheckCompositionTextureSupport: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CheckCompositionTextureSupport: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CreateCompositionTexture: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub trait IDCompositionDevice4_Impl: IDCompositionDevice3_Impl { - fn CheckCompositionTextureSupport(&self, renderingdevice: windows_core::Ref) -> windows_core::Result; + fn CheckCompositionTextureSupport(&self, renderingdevice: windows_core::Ref) -> windows_core::Result; fn CreateCompositionTexture(&self, d3dtexture: windows_core::Ref) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDCompositionDevice4_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CheckCompositionTextureSupport(this: *mut core::ffi::c_void, renderingdevice: *mut core::ffi::c_void, supportscompositiontextures: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CheckCompositionTextureSupport(this: *mut core::ffi::c_void, renderingdevice: *mut core::ffi::c_void, supportscompositiontextures: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDCompositionDevice4_Impl::CheckCompositionTextureSupport(this, core::mem::transmute_copy(&renderingdevice)) { @@ -2996,46 +2996,46 @@ pub struct IDCompositionLinearTransferEffect_Vtbl { pub SetRedYIntercept2: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub SetRedSlope: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetRedSlope2: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - pub SetRedDisable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetRedDisable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetGreenYIntercept: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetGreenYIntercept2: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub SetGreenSlope: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetGreenSlope2: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - pub SetGreenDisable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetGreenDisable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetBlueYIntercept: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetBlueYIntercept2: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub SetBlueSlope: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetBlueSlope2: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - pub SetBlueDisable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetBlueDisable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetAlphaYIntercept: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetAlphaYIntercept2: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub SetAlphaSlope: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetAlphaSlope2: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - pub SetAlphaDisable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetClampOutput: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetAlphaDisable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub SetClampOutput: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IDCompositionLinearTransferEffect_Impl: IDCompositionFilterEffect_Impl { fn SetRedYIntercept(&self, animation: windows_core::Ref) -> windows_core::Result<()>; fn SetRedYIntercept2(&self, redyintercept: f32) -> windows_core::Result<()>; fn SetRedSlope(&self, animation: windows_core::Ref) -> windows_core::Result<()>; fn SetRedSlope2(&self, redslope: f32) -> windows_core::Result<()>; - fn SetRedDisable(&self, reddisable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetRedDisable(&self, reddisable: windows_core::BOOL) -> windows_core::Result<()>; fn SetGreenYIntercept(&self, animation: windows_core::Ref) -> windows_core::Result<()>; fn SetGreenYIntercept2(&self, greenyintercept: f32) -> windows_core::Result<()>; fn SetGreenSlope(&self, animation: windows_core::Ref) -> windows_core::Result<()>; fn SetGreenSlope2(&self, greenslope: f32) -> windows_core::Result<()>; - fn SetGreenDisable(&self, greendisable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetGreenDisable(&self, greendisable: windows_core::BOOL) -> windows_core::Result<()>; fn SetBlueYIntercept(&self, animation: windows_core::Ref) -> windows_core::Result<()>; fn SetBlueYIntercept2(&self, blueyintercept: f32) -> windows_core::Result<()>; fn SetBlueSlope(&self, animation: windows_core::Ref) -> windows_core::Result<()>; fn SetBlueSlope2(&self, blueslope: f32) -> windows_core::Result<()>; - fn SetBlueDisable(&self, bluedisable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetBlueDisable(&self, bluedisable: windows_core::BOOL) -> windows_core::Result<()>; fn SetAlphaYIntercept(&self, animation: windows_core::Ref) -> windows_core::Result<()>; fn SetAlphaYIntercept2(&self, alphayintercept: f32) -> windows_core::Result<()>; fn SetAlphaSlope(&self, animation: windows_core::Ref) -> windows_core::Result<()>; fn SetAlphaSlope2(&self, alphaslope: f32) -> windows_core::Result<()>; - fn SetAlphaDisable(&self, alphadisable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetClampOutput(&self, clampoutput: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetAlphaDisable(&self, alphadisable: windows_core::BOOL) -> windows_core::Result<()>; + fn SetClampOutput(&self, clampoutput: windows_core::BOOL) -> windows_core::Result<()>; } impl IDCompositionLinearTransferEffect_Vtbl { pub const fn new() -> Self { @@ -3063,7 +3063,7 @@ impl IDCompositionLinearTransferEffect_Vtbl { IDCompositionLinearTransferEffect_Impl::SetRedSlope2(this, core::mem::transmute_copy(&redslope)).into() } } - unsafe extern "system" fn SetRedDisable(this: *mut core::ffi::c_void, reddisable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetRedDisable(this: *mut core::ffi::c_void, reddisable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetRedDisable(this, core::mem::transmute_copy(&reddisable)).into() @@ -3093,7 +3093,7 @@ impl IDCompositionLinearTransferEffect_Vtbl { IDCompositionLinearTransferEffect_Impl::SetGreenSlope2(this, core::mem::transmute_copy(&greenslope)).into() } } - unsafe extern "system" fn SetGreenDisable(this: *mut core::ffi::c_void, greendisable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetGreenDisable(this: *mut core::ffi::c_void, greendisable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetGreenDisable(this, core::mem::transmute_copy(&greendisable)).into() @@ -3123,7 +3123,7 @@ impl IDCompositionLinearTransferEffect_Vtbl { IDCompositionLinearTransferEffect_Impl::SetBlueSlope2(this, core::mem::transmute_copy(&blueslope)).into() } } - unsafe extern "system" fn SetBlueDisable(this: *mut core::ffi::c_void, bluedisable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBlueDisable(this: *mut core::ffi::c_void, bluedisable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetBlueDisable(this, core::mem::transmute_copy(&bluedisable)).into() @@ -3153,13 +3153,13 @@ impl IDCompositionLinearTransferEffect_Vtbl { IDCompositionLinearTransferEffect_Impl::SetAlphaSlope2(this, core::mem::transmute_copy(&alphaslope)).into() } } - unsafe extern "system" fn SetAlphaDisable(this: *mut core::ffi::c_void, alphadisable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAlphaDisable(this: *mut core::ffi::c_void, alphadisable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetAlphaDisable(this, core::mem::transmute_copy(&alphadisable)).into() } } - unsafe extern "system" fn SetClampOutput(this: *mut core::ffi::c_void, clampoutput: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetClampOutput(this: *mut core::ffi::c_void, clampoutput: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionLinearTransferEffect_Impl::SetClampOutput(this, core::mem::transmute_copy(&clampoutput)).into() @@ -4949,11 +4949,11 @@ pub struct IDCompositionTableTransferEffect_Vtbl { pub SetGreenTable: unsafe extern "system" fn(*mut core::ffi::c_void, *const f32, u32) -> windows_core::HRESULT, pub SetBlueTable: unsafe extern "system" fn(*mut core::ffi::c_void, *const f32, u32) -> windows_core::HRESULT, pub SetAlphaTable: unsafe extern "system" fn(*mut core::ffi::c_void, *const f32, u32) -> windows_core::HRESULT, - pub SetRedDisable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetGreenDisable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetBlueDisable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetAlphaDisable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetClampOutput: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetRedDisable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub SetGreenDisable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub SetBlueDisable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub SetAlphaDisable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub SetClampOutput: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetRedTableValue: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetRedTableValue2: unsafe extern "system" fn(*mut core::ffi::c_void, u32, f32) -> windows_core::HRESULT, pub SetGreenTableValue: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -4968,11 +4968,11 @@ pub trait IDCompositionTableTransferEffect_Impl: IDCompositionFilterEffect_Impl fn SetGreenTable(&self, tablevalues: *const f32, count: u32) -> windows_core::Result<()>; fn SetBlueTable(&self, tablevalues: *const f32, count: u32) -> windows_core::Result<()>; fn SetAlphaTable(&self, tablevalues: *const f32, count: u32) -> windows_core::Result<()>; - fn SetRedDisable(&self, reddisable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetGreenDisable(&self, greendisable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetBlueDisable(&self, bluedisable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetAlphaDisable(&self, alphadisable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetClampOutput(&self, clampoutput: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetRedDisable(&self, reddisable: windows_core::BOOL) -> windows_core::Result<()>; + fn SetGreenDisable(&self, greendisable: windows_core::BOOL) -> windows_core::Result<()>; + fn SetBlueDisable(&self, bluedisable: windows_core::BOOL) -> windows_core::Result<()>; + fn SetAlphaDisable(&self, alphadisable: windows_core::BOOL) -> windows_core::Result<()>; + fn SetClampOutput(&self, clampoutput: windows_core::BOOL) -> windows_core::Result<()>; fn SetRedTableValue(&self, index: u32, animation: windows_core::Ref) -> windows_core::Result<()>; fn SetRedTableValue2(&self, index: u32, value: f32) -> windows_core::Result<()>; fn SetGreenTableValue(&self, index: u32, animation: windows_core::Ref) -> windows_core::Result<()>; @@ -5008,31 +5008,31 @@ impl IDCompositionTableTransferEffect_Vtbl { IDCompositionTableTransferEffect_Impl::SetAlphaTable(this, core::mem::transmute_copy(&tablevalues), core::mem::transmute_copy(&count)).into() } } - unsafe extern "system" fn SetRedDisable(this: *mut core::ffi::c_void, reddisable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetRedDisable(this: *mut core::ffi::c_void, reddisable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetRedDisable(this, core::mem::transmute_copy(&reddisable)).into() } } - unsafe extern "system" fn SetGreenDisable(this: *mut core::ffi::c_void, greendisable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetGreenDisable(this: *mut core::ffi::c_void, greendisable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetGreenDisable(this, core::mem::transmute_copy(&greendisable)).into() } } - unsafe extern "system" fn SetBlueDisable(this: *mut core::ffi::c_void, bluedisable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBlueDisable(this: *mut core::ffi::c_void, bluedisable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetBlueDisable(this, core::mem::transmute_copy(&bluedisable)).into() } } - unsafe extern "system" fn SetAlphaDisable(this: *mut core::ffi::c_void, alphadisable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAlphaDisable(this: *mut core::ffi::c_void, alphadisable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetAlphaDisable(this, core::mem::transmute_copy(&alphadisable)).into() } } - unsafe extern "system" fn SetClampOutput(this: *mut core::ffi::c_void, clampoutput: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetClampOutput(this: *mut core::ffi::c_void, clampoutput: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTableTransferEffect_Impl::SetClampOutput(this, core::mem::transmute_copy(&clampoutput)).into() @@ -5522,7 +5522,7 @@ pub struct IDCompositionTurbulenceEffect_Vtbl { pub SetNoise: unsafe extern "system" fn(*mut core::ffi::c_void, super::Direct2D::Common::D2D1_TURBULENCE_NOISE) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] SetNoise: usize, - pub SetStitchable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetStitchable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait IDCompositionTurbulenceEffect_Impl: IDCompositionFilterEffect_Impl { @@ -5532,7 +5532,7 @@ pub trait IDCompositionTurbulenceEffect_Impl: IDCompositionFilterEffect_Impl { fn SetNumOctaves(&self, numoctaves: u32) -> windows_core::Result<()>; fn SetSeed(&self, seed: u32) -> windows_core::Result<()>; fn SetNoise(&self, noise: super::Direct2D::Common::D2D1_TURBULENCE_NOISE) -> windows_core::Result<()>; - fn SetStitchable(&self, stitchable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetStitchable(&self, stitchable: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDCompositionTurbulenceEffect_Vtbl { @@ -5573,7 +5573,7 @@ impl IDCompositionTurbulenceEffect_Vtbl { IDCompositionTurbulenceEffect_Impl::SetNoise(this, core::mem::transmute_copy(&noise)).into() } } - unsafe extern "system" fn SetStitchable(this: *mut core::ffi::c_void, stitchable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetStitchable(this: *mut core::ffi::c_void, stitchable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionTurbulenceEffect_Impl::SetStitchable(this, core::mem::transmute_copy(&stitchable)).into() @@ -5750,7 +5750,7 @@ pub struct IDCompositionVisual_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] SetClip2: usize, pub SetContent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub AddVisual: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub AddVisual: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveVisual: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveAllVisuals: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCompositeMode: unsafe extern "system" fn(*mut core::ffi::c_void, DCOMPOSITION_COMPOSITE_MODE) -> windows_core::HRESULT, @@ -5770,7 +5770,7 @@ pub trait IDCompositionVisual_Impl: windows_core::IUnknownImpl { fn SetClip(&self, clip: windows_core::Ref) -> windows_core::Result<()>; fn SetClip2(&self, rect: *const super::Direct2D::Common::D2D_RECT_F) -> windows_core::Result<()>; fn SetContent(&self, content: windows_core::Ref) -> windows_core::Result<()>; - fn AddVisual(&self, visual: windows_core::Ref, insertabove: super::super::Foundation::BOOL, referencevisual: windows_core::Ref) -> windows_core::Result<()>; + fn AddVisual(&self, visual: windows_core::Ref, insertabove: windows_core::BOOL, referencevisual: windows_core::Ref) -> windows_core::Result<()>; fn RemoveVisual(&self, visual: windows_core::Ref) -> windows_core::Result<()>; fn RemoveAllVisuals(&self) -> windows_core::Result<()>; fn SetCompositeMode(&self, compositemode: DCOMPOSITION_COMPOSITE_MODE) -> windows_core::Result<()>; @@ -5856,7 +5856,7 @@ impl IDCompositionVisual_Vtbl { IDCompositionVisual_Impl::SetContent(this, core::mem::transmute_copy(&content)).into() } } - unsafe extern "system" fn AddVisual(this: *mut core::ffi::c_void, visual: *mut core::ffi::c_void, insertabove: super::super::Foundation::BOOL, referencevisual: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn AddVisual(this: *mut core::ffi::c_void, visual: *mut core::ffi::c_void, insertabove: windows_core::BOOL, referencevisual: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual_Impl::AddVisual(this, core::mem::transmute_copy(&visual), core::mem::transmute_copy(&insertabove), core::mem::transmute_copy(&referencevisual)).into() @@ -6018,7 +6018,7 @@ pub struct IDCompositionVisual3_Vtbl { pub SetTransform2: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::Direct2D::Common::D2D_MATRIX_4X4_F) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] SetTransform2: usize, - pub SetVisible: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetVisible: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] pub trait IDCompositionVisual3_Impl: IDCompositionVisualDebug_Impl { @@ -6029,7 +6029,7 @@ pub trait IDCompositionVisual3_Impl: IDCompositionVisualDebug_Impl { fn SetOpacity2(&self, opacity: f32) -> windows_core::Result<()>; fn SetTransform(&self, transform: windows_core::Ref) -> windows_core::Result<()>; fn SetTransform2(&self, matrix: *const super::Direct2D::Common::D2D_MATRIX_4X4_F) -> windows_core::Result<()>; - fn SetVisible(&self, visible: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetVisible(&self, visible: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common"))] impl IDCompositionVisual3_Vtbl { @@ -6076,7 +6076,7 @@ impl IDCompositionVisual3_Vtbl { IDCompositionVisual3_Impl::SetTransform2(this, core::mem::transmute_copy(&matrix)).into() } } - unsafe extern "system" fn SetVisible(this: *mut core::ffi::c_void, visible: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetVisible(this: *mut core::ffi::c_void, visible: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDCompositionVisual3_Impl::SetVisible(this, core::mem::transmute_copy(&visible)).into() 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 9804e38de8..017b8e4e6f 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectDraw/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectDraw/mod.rs @@ -1207,7 +1207,7 @@ pub struct DDHAL_BLTDATA { pub bltFX: DDBLTFX, pub ddRVal: windows_core::HRESULT, pub Blt: LPDDHALSURFCB_BLT, - pub IsClipped: super::super::Foundation::BOOL, + pub IsClipped: windows_core::BOOL, pub rOrigDest: super::super::Foundation::RECTL, pub rOrigSrc: super::super::Foundation::RECTL, pub dwRectCnt: u32, @@ -1348,7 +1348,7 @@ pub struct DDHAL_CREATEPALETTEDATA { pub lpColorTable: *mut super::Gdi::PALETTEENTRY, pub ddRVal: windows_core::HRESULT, pub CreatePalette: LPDDHAL_CREATEPALETTE, - pub is_excl: super::super::Foundation::BOOL, + pub is_excl: windows_core::BOOL, } #[cfg(feature = "Win32_Graphics_Gdi")] impl Default for DDHAL_CREATEPALETTEDATA { @@ -2025,7 +2025,7 @@ impl Default for DDHAL_GETVPORTCONNECTDATA { pub struct DDHAL_GETVPORTFIELDDATA { pub lpDD: *mut DDRAWI_DIRECTDRAW_LCL, pub lpVideoPort: *mut DDRAWI_DDVIDEOPORT_LCL, - pub bField: super::super::Foundation::BOOL, + pub bField: windows_core::BOOL, pub ddRVal: windows_core::HRESULT, pub GetVideoPortField: LPDDHALVPORTCB_GETFIELD, } @@ -2282,8 +2282,8 @@ pub struct DDHAL_SETMODEDATA { pub dwModeIndex: u32, pub ddRVal: windows_core::HRESULT, pub SetMode: LPDDHAL_SETMODE, - pub inexcl: super::super::Foundation::BOOL, - pub useRefreshRate: super::super::Foundation::BOOL, + pub inexcl: windows_core::BOOL, + pub useRefreshRate: windows_core::BOOL, } #[cfg(feature = "Win32_Graphics_Gdi")] impl Default for DDHAL_SETMODEDATA { @@ -2318,7 +2318,7 @@ pub struct DDHAL_SETPALETTEDATA { pub lpDDPalette: *mut DDRAWI_DDRAWPALETTE_GBL, pub ddRVal: windows_core::HRESULT, pub SetPalette: LPDDHALSURFCB_SETPALETTE, - pub Attach: super::super::Foundation::BOOL, + pub Attach: windows_core::BOOL, } #[cfg(feature = "Win32_Graphics_Gdi")] impl Default for DDHAL_SETPALETTEDATA { @@ -3974,7 +3974,7 @@ impl Default for DDSETSTATEININFO { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DDSETSTATEOUTINFO { - pub bSoftwareAutoflip: super::super::Foundation::BOOL, + pub bSoftwareAutoflip: windows_core::BOOL, pub dwSurfaceIndex: u32, pub dwVBISurfaceIndex: u32, } @@ -4010,7 +4010,7 @@ pub struct DDSTEREOMODE { pub dwWidth: u32, pub dwBpp: u32, pub dwRefreshRate: u32, - pub bSupported: super::super::Foundation::BOOL, + pub bSupported: windows_core::BOOL, } impl Default for DDSTEREOMODE { fn default() -> Self { @@ -4363,7 +4363,7 @@ impl Default for DDVIDEOPORTNOTIFY { #[derive(Clone, Copy, Debug, PartialEq)] pub struct DDVIDEOPORTSTATUS { pub dwSize: u32, - pub bInUse: super::super::Foundation::BOOL, + pub bInUse: windows_core::BOOL, pub dwFlags: u32, pub dwReserved1: u32, pub VideoPortType: DDVIDEOPORTCONNECT, @@ -4528,7 +4528,7 @@ pub struct DD_BLTDATA { pub bltFX: DDBLTFX, pub ddRVal: windows_core::HRESULT, pub Blt: *mut core::ffi::c_void, - pub IsClipped: super::super::Foundation::BOOL, + pub IsClipped: windows_core::BOOL, pub rOrigDest: super::super::Foundation::RECTL, pub rOrigSrc: super::super::Foundation::RECTL, pub dwRectCnt: u32, @@ -4669,7 +4669,7 @@ pub struct DD_CREATEPALETTEDATA { pub lpColorTable: *mut super::Gdi::PALETTEENTRY, pub ddRVal: windows_core::HRESULT, pub CreatePalette: *mut core::ffi::c_void, - pub is_excl: super::super::Foundation::BOOL, + pub is_excl: windows_core::BOOL, } #[cfg(feature = "Win32_Graphics_Gdi")] impl Default for DD_CREATEPALETTEDATA { @@ -5118,7 +5118,7 @@ impl Default for DD_GETVPORTCONNECTDATA { pub struct DD_GETVPORTFIELDDATA { pub lpDD: *mut DD_DIRECTDRAW_LOCAL, pub lpVideoPort: *mut DD_VIDEOPORT_LOCAL, - pub bField: super::super::Foundation::BOOL, + pub bField: windows_core::BOOL, pub ddRVal: windows_core::HRESULT, pub GetVideoPortField: *mut core::ffi::c_void, } @@ -5268,7 +5268,7 @@ impl Default for DD_LOCKDATA { #[derive(Clone, Copy, Debug, PartialEq)] pub struct DD_MAPMEMORYDATA { pub lpDD: *mut DD_DIRECTDRAW_GLOBAL, - pub bMap: super::super::Foundation::BOOL, + pub bMap: windows_core::BOOL, pub hProcess: super::super::Foundation::HANDLE, pub fpProcess: usize, pub ddRVal: windows_core::HRESULT, @@ -5581,7 +5581,7 @@ pub struct DD_SETPALETTEDATA { pub lpDDPalette: *mut DD_PALETTE_GLOBAL, pub ddRVal: windows_core::HRESULT, pub SetPalette: *mut core::ffi::c_void, - pub Attach: super::super::Foundation::BOOL, + pub Attach: windows_core::BOOL, } impl Default for DD_SETPALETTEDATA { fn default() -> Self { @@ -5596,7 +5596,7 @@ pub struct DD_STEREOMODE { pub dwWidth: u32, pub dwBpp: u32, pub dwRefreshRate: u32, - pub bSupported: super::super::Foundation::BOOL, + pub bSupported: windows_core::BOOL, } impl Default for DD_STEREOMODE { fn default() -> Self { @@ -6206,7 +6206,7 @@ impl IDirectDraw { pub unsafe fn GetScanLine(&self, param0: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetScanLine)(windows_core::Interface::as_raw(self), param0 as _).ok() } } - pub unsafe fn GetVerticalBlankStatus(&self, param0: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetVerticalBlankStatus(&self, param0: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetVerticalBlankStatus)(windows_core::Interface::as_raw(self), param0 as _).ok() } } pub unsafe fn Initialize(&self, param0: *mut windows_core::GUID) -> windows_core::Result<()> { @@ -6245,7 +6245,7 @@ pub struct IDirectDraw_Vtbl { pub GetGDISurface: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetMonitorFrequency: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetScanLine: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub GetVerticalBlankStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetVerticalBlankStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub RestoreDisplayMode: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCooperativeLevel: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, u32) -> windows_core::HRESULT, @@ -6268,7 +6268,7 @@ pub trait IDirectDraw_Impl: windows_core::IUnknownImpl { fn GetGDISurface(&self) -> windows_core::Result; fn GetMonitorFrequency(&self, param0: *mut u32) -> windows_core::Result<()>; fn GetScanLine(&self, param0: *mut u32) -> windows_core::Result<()>; - fn GetVerticalBlankStatus(&self, param0: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetVerticalBlankStatus(&self, param0: *mut windows_core::BOOL) -> windows_core::Result<()>; fn Initialize(&self, param0: *mut windows_core::GUID) -> windows_core::Result<()>; fn RestoreDisplayMode(&self) -> windows_core::Result<()>; fn SetCooperativeLevel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()>; @@ -6374,7 +6374,7 @@ impl IDirectDraw_Vtbl { IDirectDraw_Impl::GetScanLine(this, core::mem::transmute_copy(¶m0)).into() } } - unsafe extern "system" fn GetVerticalBlankStatus(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetVerticalBlankStatus(this: *mut core::ffi::c_void, param0: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw_Impl::GetVerticalBlankStatus(this, core::mem::transmute_copy(¶m0)).into() @@ -6504,7 +6504,7 @@ impl IDirectDraw2 { pub unsafe fn GetScanLine(&self, param0: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetScanLine)(windows_core::Interface::as_raw(self), param0 as _).ok() } } - pub unsafe fn GetVerticalBlankStatus(&self, param0: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetVerticalBlankStatus(&self, param0: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetVerticalBlankStatus)(windows_core::Interface::as_raw(self), param0 as _).ok() } } pub unsafe fn Initialize(&self, param0: *mut windows_core::GUID) -> windows_core::Result<()> { @@ -6546,7 +6546,7 @@ pub struct IDirectDraw2_Vtbl { pub GetGDISurface: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetMonitorFrequency: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetScanLine: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub GetVerticalBlankStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetVerticalBlankStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub RestoreDisplayMode: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCooperativeLevel: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, u32) -> windows_core::HRESULT, @@ -6570,7 +6570,7 @@ pub trait IDirectDraw2_Impl: windows_core::IUnknownImpl { fn GetGDISurface(&self) -> windows_core::Result; fn GetMonitorFrequency(&self, param0: *mut u32) -> windows_core::Result<()>; fn GetScanLine(&self, param0: *mut u32) -> windows_core::Result<()>; - fn GetVerticalBlankStatus(&self, param0: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetVerticalBlankStatus(&self, param0: *mut windows_core::BOOL) -> windows_core::Result<()>; fn Initialize(&self, param0: *mut windows_core::GUID) -> windows_core::Result<()>; fn RestoreDisplayMode(&self) -> windows_core::Result<()>; fn SetCooperativeLevel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()>; @@ -6677,7 +6677,7 @@ impl IDirectDraw2_Vtbl { IDirectDraw2_Impl::GetScanLine(this, core::mem::transmute_copy(¶m0)).into() } } - unsafe extern "system" fn GetVerticalBlankStatus(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetVerticalBlankStatus(this: *mut core::ffi::c_void, param0: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw2_Impl::GetVerticalBlankStatus(this, core::mem::transmute_copy(¶m0)).into() @@ -6814,7 +6814,7 @@ impl IDirectDraw4 { pub unsafe fn GetScanLine(&self, param0: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetScanLine)(windows_core::Interface::as_raw(self), param0 as _).ok() } } - pub unsafe fn GetVerticalBlankStatus(&self, param0: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetVerticalBlankStatus(&self, param0: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetVerticalBlankStatus)(windows_core::Interface::as_raw(self), param0 as _).ok() } } pub unsafe fn Initialize(&self, param0: *mut windows_core::GUID) -> windows_core::Result<()> { @@ -6872,7 +6872,7 @@ pub struct IDirectDraw4_Vtbl { pub GetGDISurface: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetMonitorFrequency: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetScanLine: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub GetVerticalBlankStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetVerticalBlankStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub RestoreDisplayMode: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCooperativeLevel: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, u32) -> windows_core::HRESULT, @@ -6903,7 +6903,7 @@ pub trait IDirectDraw4_Impl: windows_core::IUnknownImpl { fn GetGDISurface(&self) -> windows_core::Result; fn GetMonitorFrequency(&self, param0: *mut u32) -> windows_core::Result<()>; fn GetScanLine(&self, param0: *mut u32) -> windows_core::Result<()>; - fn GetVerticalBlankStatus(&self, param0: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetVerticalBlankStatus(&self, param0: *mut windows_core::BOOL) -> windows_core::Result<()>; fn Initialize(&self, param0: *mut windows_core::GUID) -> windows_core::Result<()>; fn RestoreDisplayMode(&self) -> windows_core::Result<()>; fn SetCooperativeLevel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()>; @@ -7014,7 +7014,7 @@ impl IDirectDraw4_Vtbl { IDirectDraw4_Impl::GetScanLine(this, core::mem::transmute_copy(¶m0)).into() } } - unsafe extern "system" fn GetVerticalBlankStatus(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetVerticalBlankStatus(this: *mut core::ffi::c_void, param0: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw4_Impl::GetVerticalBlankStatus(this, core::mem::transmute_copy(¶m0)).into() @@ -7185,7 +7185,7 @@ impl IDirectDraw7 { pub unsafe fn GetScanLine(&self, param0: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetScanLine)(windows_core::Interface::as_raw(self), param0 as _).ok() } } - pub unsafe fn GetVerticalBlankStatus(&self, param0: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetVerticalBlankStatus(&self, param0: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetVerticalBlankStatus)(windows_core::Interface::as_raw(self), param0 as _).ok() } } pub unsafe fn Initialize(&self, param0: *mut windows_core::GUID) -> windows_core::Result<()> { @@ -7249,7 +7249,7 @@ pub struct IDirectDraw7_Vtbl { pub GetGDISurface: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetMonitorFrequency: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetScanLine: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub GetVerticalBlankStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetVerticalBlankStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub RestoreDisplayMode: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCooperativeLevel: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, u32) -> windows_core::HRESULT, @@ -7282,7 +7282,7 @@ pub trait IDirectDraw7_Impl: windows_core::IUnknownImpl { fn GetGDISurface(&self) -> windows_core::Result; fn GetMonitorFrequency(&self, param0: *mut u32) -> windows_core::Result<()>; fn GetScanLine(&self, param0: *mut u32) -> windows_core::Result<()>; - fn GetVerticalBlankStatus(&self, param0: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetVerticalBlankStatus(&self, param0: *mut windows_core::BOOL) -> windows_core::Result<()>; fn Initialize(&self, param0: *mut windows_core::GUID) -> windows_core::Result<()>; fn RestoreDisplayMode(&self) -> windows_core::Result<()>; fn SetCooperativeLevel(&self, param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()>; @@ -7395,7 +7395,7 @@ impl IDirectDraw7_Vtbl { IDirectDraw7_Impl::GetScanLine(this, core::mem::transmute_copy(¶m0)).into() } } - unsafe extern "system" fn GetVerticalBlankStatus(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetVerticalBlankStatus(this: *mut core::ffi::c_void, param0: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDraw7_Impl::GetVerticalBlankStatus(this, core::mem::transmute_copy(¶m0)).into() @@ -7532,7 +7532,7 @@ impl IDirectDrawClipper { { unsafe { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), param0.param().abi(), param1).ok() } } - pub unsafe fn IsClipListChanged(&self, param0: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn IsClipListChanged(&self, param0: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsClipListChanged)(windows_core::Interface::as_raw(self), param0 as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -7552,7 +7552,7 @@ pub struct IDirectDrawClipper_Vtbl { GetClipList: usize, pub GetHWnd: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::HWND) -> windows_core::HRESULT, pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub IsClipListChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsClipListChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_Graphics_Gdi")] pub SetClipList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::Gdi::RGNDATA, u32) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] @@ -7564,7 +7564,7 @@ pub trait IDirectDrawClipper_Impl: windows_core::IUnknownImpl { fn GetClipList(&self, param0: *mut super::super::Foundation::RECT, param1: *mut super::Gdi::RGNDATA, param2: *mut u32) -> windows_core::Result<()>; fn GetHWnd(&self, param0: *mut super::super::Foundation::HWND) -> windows_core::Result<()>; fn Initialize(&self, param0: windows_core::Ref, param1: u32) -> windows_core::Result<()>; - fn IsClipListChanged(&self, param0: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsClipListChanged(&self, param0: *mut windows_core::BOOL) -> windows_core::Result<()>; fn SetClipList(&self, param0: *mut super::Gdi::RGNDATA, param1: u32) -> windows_core::Result<()>; fn SetHWnd(&self, param0: u32, param1: super::super::Foundation::HWND) -> windows_core::Result<()>; } @@ -7589,7 +7589,7 @@ impl IDirectDrawClipper_Vtbl { IDirectDrawClipper_Impl::Initialize(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } } - unsafe extern "system" fn IsClipListChanged(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsClipListChanged(this: *mut core::ffi::c_void, param0: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawClipper_Impl::IsClipListChanged(this, core::mem::transmute_copy(¶m0)).into() @@ -10651,7 +10651,7 @@ impl IDirectDrawVideoPort { pub unsafe fn GetOutputFormats(&self, param0: *mut DDPIXELFORMAT, lpnumformats: *mut u32, param2: Option<*mut DDPIXELFORMAT>, param3: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetOutputFormats)(windows_core::Interface::as_raw(self), param0 as _, lpnumformats as _, param2.unwrap_or(core::mem::zeroed()) as _, param3).ok() } } - pub unsafe fn GetFieldPolarity(&self, param0: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetFieldPolarity(&self, param0: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetFieldPolarity)(windows_core::Interface::as_raw(self), param0 as _).ok() } } pub unsafe fn GetVideoLine(&self, param0: *mut u32) -> windows_core::Result<()> { @@ -10690,7 +10690,7 @@ pub struct IDirectDrawVideoPort_Vtbl { pub GetColorControls: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DDCOLORCONTROL) -> windows_core::HRESULT, pub GetInputFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut DDPIXELFORMAT, u32) -> windows_core::HRESULT, pub GetOutputFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DDPIXELFORMAT, *mut u32, *mut DDPIXELFORMAT, u32) -> windows_core::HRESULT, - pub GetFieldPolarity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetFieldPolarity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetVideoLine: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetVideoSignalStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetColorControls: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DDCOLORCONTROL) -> windows_core::HRESULT, @@ -10706,7 +10706,7 @@ pub trait IDirectDrawVideoPort_Impl: windows_core::IUnknownImpl { fn GetColorControls(&self, param0: *mut DDCOLORCONTROL) -> windows_core::Result<()>; fn GetInputFormats(&self, lpnumformats: *mut u32, param1: *mut DDPIXELFORMAT, param2: u32) -> windows_core::Result<()>; fn GetOutputFormats(&self, param0: *mut DDPIXELFORMAT, lpnumformats: *mut u32, param2: *mut DDPIXELFORMAT, param3: u32) -> windows_core::Result<()>; - fn GetFieldPolarity(&self, param0: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetFieldPolarity(&self, param0: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetVideoLine(&self, param0: *mut u32) -> windows_core::Result<()>; fn GetVideoSignalStatus(&self, param0: *mut u32) -> windows_core::Result<()>; fn SetColorControls(&self, param0: *mut DDCOLORCONTROL) -> windows_core::Result<()>; @@ -10748,7 +10748,7 @@ impl IDirectDrawVideoPort_Vtbl { IDirectDrawVideoPort_Impl::GetOutputFormats(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(&lpnumformats), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3)).into() } } - unsafe extern "system" fn GetFieldPolarity(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetFieldPolarity(this: *mut core::ffi::c_void, param0: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectDrawVideoPort_Impl::GetFieldPolarity(this, core::mem::transmute_copy(¶m0)).into() @@ -10886,12 +10886,12 @@ impl Default for IUNKNOWN_LIST { } pub type LPCLIPPERCALLBACK = Option, hwnd: super::super::Foundation::HWND, code: u32, lpcontext: *mut core::ffi::c_void) -> u32>; pub type LPDD32BITDRIVERINIT = Option u32>; -pub type LPDDENUMCALLBACKA = Option super::super::Foundation::BOOL>; +pub type LPDDENUMCALLBACKA = Option windows_core::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] -pub type LPDDENUMCALLBACKEXA = Option super::super::Foundation::BOOL>; +pub type LPDDENUMCALLBACKEXA = Option windows_core::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] -pub type LPDDENUMCALLBACKEXW = Option super::super::Foundation::BOOL>; -pub type LPDDENUMCALLBACKW = Option super::super::Foundation::BOOL>; +pub type LPDDENUMCALLBACKEXW = Option windows_core::BOOL>; +pub type LPDDENUMCALLBACKW = Option windows_core::BOOL>; pub type LPDDENUMMODESCALLBACK = Option windows_core::HRESULT>; pub type LPDDENUMMODESCALLBACK2 = Option windows_core::HRESULT>; pub type LPDDENUMSURFACESCALLBACK = Option, param1: *mut DDSURFACEDESC, param2: *mut core::ffi::c_void) -> windows_core::HRESULT>; @@ -11024,7 +11024,7 @@ pub type LPDDHAL_SETCOLORKEY = Option u32>; #[cfg(feature = "Win32_Graphics_Gdi")] -pub type LPDDHAL_SETINFO = Option super::super::Foundation::BOOL>; +pub type LPDDHAL_SETINFO = Option windows_core::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] pub type LPDDHAL_SETMODE = Option u32>; #[cfg(feature = "Win32_Graphics_Gdi")] @@ -11036,7 +11036,7 @@ pub type LPDDHAL_VIDMEMFREE = Option u32>; #[cfg(feature = "Win32_Graphics_Gdi")] -pub type LPDDHEL_INIT = Option super::super::Foundation::BOOL>; +pub type LPDDHEL_INIT = Option windows_core::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] pub type LPDIRECTDRAWENUMERATEEXA = Option windows_core::HRESULT>; #[cfg(feature = "Win32_Graphics_Gdi")] @@ -11375,7 +11375,7 @@ pub struct VMEML { pub next: *mut VMEML, pub ptr: usize, pub size: u32, - pub bDiscardable: super::super::Foundation::BOOL, + pub bDiscardable: windows_core::BOOL, } impl Default for VMEML { fn default() -> Self { @@ -11399,7 +11399,7 @@ pub struct VMEMR { pub cy: u32, pub flags: u32, pub pBits: usize, - pub bDiscardable: super::super::Foundation::BOOL, + pub bDiscardable: windows_core::BOOL, } impl Default for VMEMR { fn default() -> Self { 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 b7d6de4ab4..4d591c1e15 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectManipulation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectManipulation/mod.rs @@ -943,7 +943,7 @@ impl IDirectManipulationManager { unsafe { (windows_core::Interface::vtable(self).RegisterHitTestTarget)(windows_core::Interface::as_raw(self), window, hittestwindow.unwrap_or(core::mem::zeroed()) as _, r#type).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub unsafe fn ProcessInput(&self, message: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::Result { + pub unsafe fn ProcessInput(&self, message: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ProcessInput)(windows_core::Interface::as_raw(self), message, &mut result__).map(|| result__) @@ -980,7 +980,7 @@ pub struct IDirectManipulationManager_Vtbl { pub Deactivate: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND) -> windows_core::HRESULT, pub RegisterHitTestTarget: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, super::super::Foundation::HWND, DIRECTMANIPULATION_HITTEST_TYPE) -> windows_core::HRESULT, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub ProcessInput: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::UI::WindowsAndMessaging::MSG, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ProcessInput: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::UI::WindowsAndMessaging::MSG, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] ProcessInput: usize, pub GetUpdateManager: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -992,7 +992,7 @@ pub trait IDirectManipulationManager_Impl: windows_core::IUnknownImpl { fn Activate(&self, window: super::super::Foundation::HWND) -> windows_core::Result<()>; fn Deactivate(&self, window: super::super::Foundation::HWND) -> windows_core::Result<()>; fn RegisterHitTestTarget(&self, window: super::super::Foundation::HWND, hittestwindow: super::super::Foundation::HWND, r#type: DIRECTMANIPULATION_HITTEST_TYPE) -> windows_core::Result<()>; - fn ProcessInput(&self, message: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::Result; + fn ProcessInput(&self, message: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::Result; fn GetUpdateManager(&self, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn CreateViewport(&self, frameinfo: windows_core::Ref, window: super::super::Foundation::HWND, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn CreateContent(&self, frameinfo: windows_core::Ref, clsid: *const windows_core::GUID, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -1018,7 +1018,7 @@ impl IDirectManipulationManager_Vtbl { IDirectManipulationManager_Impl::RegisterHitTestTarget(this, core::mem::transmute_copy(&window), core::mem::transmute_copy(&hittestwindow), core::mem::transmute_copy(&r#type)).into() } } - unsafe extern "system" fn ProcessInput(this: *mut core::ffi::c_void, message: *const super::super::UI::WindowsAndMessaging::MSG, handled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ProcessInput(this: *mut core::ffi::c_void, message: *const super::super::UI::WindowsAndMessaging::MSG, handled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDirectManipulationManager_Impl::ProcessInput(this, core::mem::transmute_copy(&message)) { @@ -1511,7 +1511,7 @@ pub struct IDirectManipulationViewport_Vtbl { pub SetTag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetViewportRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::RECT) -> windows_core::HRESULT, pub SetViewportRect: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT) -> windows_core::HRESULT, - pub ZoomToRect: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, f32, f32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ZoomToRect: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, f32, f32, windows_core::BOOL) -> windows_core::HRESULT, pub SetViewportTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *const f32, u32) -> windows_core::HRESULT, pub SyncDisplayTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *const f32, u32) -> windows_core::HRESULT, pub GetPrimaryContent: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1541,7 +1541,7 @@ pub trait IDirectManipulationViewport_Impl: windows_core::IUnknownImpl { fn SetTag(&self, object: windows_core::Ref, id: u32) -> windows_core::Result<()>; fn GetViewportRect(&self) -> windows_core::Result; fn SetViewportRect(&self, viewport: *const super::super::Foundation::RECT) -> windows_core::Result<()>; - fn ZoomToRect(&self, left: f32, top: f32, right: f32, bottom: f32, animate: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ZoomToRect(&self, left: f32, top: f32, right: f32, bottom: f32, animate: windows_core::BOOL) -> windows_core::Result<()>; fn SetViewportTransform(&self, matrix: *const f32, pointcount: u32) -> windows_core::Result<()>; fn SyncDisplayTransform(&self, matrix: *const f32, pointcount: u32) -> windows_core::Result<()>; fn GetPrimaryContent(&self, riid: *const windows_core::GUID, object: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -1634,7 +1634,7 @@ impl IDirectManipulationViewport_Vtbl { IDirectManipulationViewport_Impl::SetViewportRect(this, core::mem::transmute_copy(&viewport)).into() } } - unsafe extern "system" fn ZoomToRect(this: *mut core::ffi::c_void, left: f32, top: f32, right: f32, bottom: f32, animate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ZoomToRect(this: *mut core::ffi::c_void, left: f32, top: f32, right: f32, bottom: f32, animate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectManipulationViewport_Impl::ZoomToRect(this, core::mem::transmute_copy(&left), core::mem::transmute_copy(&top), core::mem::transmute_copy(&right), core::mem::transmute_copy(&bottom), core::mem::transmute_copy(&animate)).into() 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 8194c31c3d..965c823a72 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/mod.rs @@ -441,7 +441,7 @@ pub struct DWRITE_FONT_METRICS1 { pub superscriptPositionY: i16, pub superscriptSizeX: i16, pub superscriptSizeY: i16, - pub hasTypographicMetrics: super::super::Foundation::BOOL, + pub hasTypographicMetrics: windows_core::BOOL, } impl Default for DWRITE_FONT_METRICS1 { fn default() -> Self { @@ -678,7 +678,7 @@ pub struct DWRITE_GLYPH_RUN { pub glyphIndices: *const u16, pub glyphAdvances: *const f32, pub glyphOffsets: *const DWRITE_GLYPH_OFFSET, - pub isSideways: super::super::Foundation::BOOL, + pub isSideways: windows_core::BOOL, pub bidiLevel: u32, } impl Default for DWRITE_GLYPH_RUN { @@ -716,8 +716,8 @@ pub struct DWRITE_HIT_TEST_METRICS { pub width: f32, pub height: f32, pub bidiLevel: u32, - pub isText: super::super::Foundation::BOOL, - pub isTrimmed: super::super::Foundation::BOOL, + pub isText: windows_core::BOOL, + pub isTrimmed: windows_core::BOOL, } impl Default for DWRITE_HIT_TEST_METRICS { fn default() -> Self { @@ -758,7 +758,7 @@ pub struct DWRITE_INLINE_OBJECT_METRICS { pub width: f32, pub height: f32, pub baseline: f32, - pub supportsSideways: super::super::Foundation::BOOL, + pub supportsSideways: windows_core::BOOL, } impl Default for DWRITE_INLINE_OBJECT_METRICS { fn default() -> Self { @@ -796,7 +796,7 @@ pub struct DWRITE_LINE_METRICS { pub newlineLength: u32, pub height: f32, pub baseline: f32, - pub isTrimmed: super::super::Foundation::BOOL, + pub isTrimmed: windows_core::BOOL, } impl Default for DWRITE_LINE_METRICS { fn default() -> Self { @@ -2205,7 +2205,7 @@ impl windows_core::RuntimeName for IDWriteBitmapRenderTarget3 {} windows_core::imp::define_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 { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2221,18 +2221,18 @@ impl IDWriteColorGlyphRunEnumerator { #[repr(C)] pub struct IDWriteColorGlyphRunEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetCurrentRun: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut DWRITE_COLOR_GLYPH_RUN) -> windows_core::HRESULT, } unsafe impl Send for IDWriteColorGlyphRunEnumerator {} unsafe impl Sync for IDWriteColorGlyphRunEnumerator {} pub trait IDWriteColorGlyphRunEnumerator_Impl: windows_core::IUnknownImpl { - fn MoveNext(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; fn GetCurrentRun(&self) -> windows_core::Result<*mut DWRITE_COLOR_GLYPH_RUN>; } impl IDWriteColorGlyphRunEnumerator_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasrun: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasrun: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteColorGlyphRunEnumerator_Impl::MoveNext(this) { @@ -2471,7 +2471,7 @@ impl IDWriteFactory { #[repr(C)] pub struct IDWriteFactory_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetSystemFontCollection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetSystemFontCollection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub CreateCustomFontCollection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RegisterFontCollectionLoader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub UnregisterFontCollectionLoader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2490,17 +2490,17 @@ pub struct IDWriteFactory_Vtbl { pub CreateTypography: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetGdiInterop: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateTextLayout: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *mut core::ffi::c_void, f32, f32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CreateGdiCompatibleTextLayout: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *mut core::ffi::c_void, f32, f32, f32, *const DWRITE_MATRIX, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateGdiCompatibleTextLayout: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *mut core::ffi::c_void, f32, f32, f32, *const DWRITE_MATRIX, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateEllipsisTrimmingSign: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateTextAnalyzer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CreateNumberSubstitution: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_NUMBER_SUBSTITUTION_METHOD, windows_core::PCWSTR, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateNumberSubstitution: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_NUMBER_SUBSTITUTION_METHOD, windows_core::PCWSTR, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateGlyphRunAnalysis: unsafe extern "system" fn(*mut core::ffi::c_void, *const DWRITE_GLYPH_RUN, f32, *const DWRITE_MATRIX, DWRITE_RENDERING_MODE, DWRITE_MEASURING_MODE, f32, f32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } unsafe impl Send for IDWriteFactory {} unsafe impl Sync for IDWriteFactory {} #[cfg(feature = "Win32_Graphics_Gdi")] pub trait IDWriteFactory_Impl: windows_core::IUnknownImpl { - fn GetSystemFontCollection(&self, fontcollection: windows_core::OutRef<'_, IDWriteFontCollection>, checkforupdates: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetSystemFontCollection(&self, fontcollection: windows_core::OutRef<'_, IDWriteFontCollection>, checkforupdates: windows_core::BOOL) -> windows_core::Result<()>; fn CreateCustomFontCollection(&self, collectionloader: windows_core::Ref, collectionkey: *const core::ffi::c_void, collectionkeysize: u32) -> windows_core::Result; fn RegisterFontCollectionLoader(&self, fontcollectionloader: windows_core::Ref) -> windows_core::Result<()>; fn UnregisterFontCollectionLoader(&self, fontcollectionloader: windows_core::Ref) -> windows_core::Result<()>; @@ -2516,16 +2516,16 @@ pub trait IDWriteFactory_Impl: windows_core::IUnknownImpl { fn CreateTypography(&self) -> windows_core::Result; fn GetGdiInterop(&self) -> windows_core::Result; fn CreateTextLayout(&self, string: &windows_core::PCWSTR, stringlength: u32, textformat: windows_core::Ref, maxwidth: f32, maxheight: f32) -> windows_core::Result; - fn CreateGdiCompatibleTextLayout(&self, string: &windows_core::PCWSTR, stringlength: u32, textformat: windows_core::Ref, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: super::super::Foundation::BOOL) -> windows_core::Result; + fn CreateGdiCompatibleTextLayout(&self, string: &windows_core::PCWSTR, stringlength: u32, textformat: windows_core::Ref, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: windows_core::BOOL) -> windows_core::Result; fn CreateEllipsisTrimmingSign(&self, textformat: windows_core::Ref) -> windows_core::Result; fn CreateTextAnalyzer(&self) -> windows_core::Result; - fn CreateNumberSubstitution(&self, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: &windows_core::PCWSTR, ignoreuseroverride: super::super::Foundation::BOOL) -> windows_core::Result; + fn CreateNumberSubstitution(&self, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: &windows_core::PCWSTR, ignoreuseroverride: windows_core::BOOL) -> windows_core::Result; fn CreateGlyphRunAnalysis(&self, glyphrun: *const DWRITE_GLYPH_RUN, pixelsperdip: f32, transform: *const DWRITE_MATRIX, renderingmode: DWRITE_RENDERING_MODE, measuringmode: DWRITE_MEASURING_MODE, baselineoriginx: f32, baselineoriginy: f32) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Gdi")] impl IDWriteFactory_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetSystemFontCollection(this: *mut core::ffi::c_void, fontcollection: *mut *mut core::ffi::c_void, checkforupdates: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetSystemFontCollection(this: *mut core::ffi::c_void, fontcollection: *mut *mut core::ffi::c_void, checkforupdates: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFactory_Impl::GetSystemFontCollection(this, core::mem::transmute_copy(&fontcollection), core::mem::transmute_copy(&checkforupdates)).into() @@ -2687,7 +2687,7 @@ impl IDWriteFactory_Vtbl { } } } - unsafe extern "system" fn CreateGdiCompatibleTextLayout(this: *mut core::ffi::c_void, string: windows_core::PCWSTR, stringlength: u32, textformat: *mut core::ffi::c_void, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: super::super::Foundation::BOOL, textlayout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateGdiCompatibleTextLayout(this: *mut core::ffi::c_void, string: windows_core::PCWSTR, stringlength: u32, textformat: *mut core::ffi::c_void, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: windows_core::BOOL, textlayout: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory_Impl::CreateGdiCompatibleTextLayout(this, core::mem::transmute(&string), core::mem::transmute_copy(&stringlength), core::mem::transmute_copy(&textformat), core::mem::transmute_copy(&layoutwidth), core::mem::transmute_copy(&layoutheight), core::mem::transmute_copy(&pixelsperdip), core::mem::transmute_copy(&transform), core::mem::transmute_copy(&usegdinatural)) { @@ -2723,7 +2723,7 @@ impl IDWriteFactory_Vtbl { } } } - unsafe extern "system" fn CreateNumberSubstitution(this: *mut core::ffi::c_void, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: windows_core::PCWSTR, ignoreuseroverride: super::super::Foundation::BOOL, numbersubstitution: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateNumberSubstitution(this: *mut core::ffi::c_void, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: windows_core::PCWSTR, ignoreuseroverride: windows_core::BOOL, numbersubstitution: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory_Impl::CreateNumberSubstitution(this, core::mem::transmute_copy(&substitutionmethod), core::mem::transmute(&localename), core::mem::transmute_copy(&ignoreuseroverride)) { @@ -2800,20 +2800,20 @@ impl IDWriteFactory1 { #[repr(C)] pub struct IDWriteFactory1_Vtbl { pub base__: IDWriteFactory_Vtbl, - pub GetEudcFontCollection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetEudcFontCollection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub CreateCustomRenderingParams: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, f32, f32, DWRITE_PIXEL_GEOMETRY, DWRITE_RENDERING_MODE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } unsafe impl Send for IDWriteFactory1 {} unsafe impl Sync for IDWriteFactory1 {} #[cfg(feature = "Win32_Graphics_Gdi")] pub trait IDWriteFactory1_Impl: IDWriteFactory_Impl { - fn GetEudcFontCollection(&self, fontcollection: windows_core::OutRef<'_, IDWriteFontCollection>, checkforupdates: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetEudcFontCollection(&self, fontcollection: windows_core::OutRef<'_, IDWriteFontCollection>, checkforupdates: windows_core::BOOL) -> windows_core::Result<()>; fn CreateCustomRenderingParams(&self, gamma: f32, enhancedcontrast: f32, enhancedcontrastgrayscale: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Gdi")] impl IDWriteFactory1_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetEudcFontCollection(this: *mut core::ffi::c_void, fontcollection: *mut *mut core::ffi::c_void, checkforupdates: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetEudcFontCollection(this: *mut core::ffi::c_void, fontcollection: *mut *mut core::ffi::c_void, checkforupdates: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFactory1_Impl::GetEudcFontCollection(this, core::mem::transmute_copy(&fontcollection), core::mem::transmute_copy(&checkforupdates)).into() @@ -3060,7 +3060,7 @@ pub struct IDWriteFactory3_Vtbl { pub GetSystemFontSet: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateFontSetBuilder: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateFontCollectionFromFontSet: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetSystemFontCollection: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetSystemFontCollection: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetFontDownloadQueue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } unsafe impl Send for IDWriteFactory3 {} @@ -3074,7 +3074,7 @@ pub trait IDWriteFactory3_Impl: IDWriteFactory2_Impl { fn GetSystemFontSet(&self) -> windows_core::Result; fn CreateFontSetBuilder(&self) -> windows_core::Result; fn CreateFontCollectionFromFontSet(&self, fontset: windows_core::Ref) -> windows_core::Result; - fn GetSystemFontCollection(&self, includedownloadablefonts: super::super::Foundation::BOOL, fontcollection: windows_core::OutRef<'_, IDWriteFontCollection1>, checkforupdates: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetSystemFontCollection(&self, includedownloadablefonts: windows_core::BOOL, fontcollection: windows_core::OutRef<'_, IDWriteFontCollection1>, checkforupdates: windows_core::BOOL) -> windows_core::Result<()>; fn GetFontDownloadQueue(&self) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -3164,7 +3164,7 @@ impl IDWriteFactory3_Vtbl { } } } - unsafe extern "system" fn GetSystemFontCollection(this: *mut core::ffi::c_void, includedownloadablefonts: super::super::Foundation::BOOL, fontcollection: *mut *mut core::ffi::c_void, checkforupdates: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetSystemFontCollection(this: *mut core::ffi::c_void, includedownloadablefonts: windows_core::BOOL, fontcollection: *mut *mut core::ffi::c_void, checkforupdates: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFactory3_Impl::GetSystemFontCollection(this, core::mem::transmute_copy(&includedownloadablefonts), core::mem::transmute_copy(&fontcollection), core::mem::transmute_copy(&checkforupdates)).into() @@ -3511,8 +3511,8 @@ pub struct IDWriteFactory6_Vtbl { pub base__: IDWriteFactory5_Vtbl, pub CreateFontFaceReference: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, DWRITE_FONT_SIMULATIONS, *const DWRITE_FONT_AXIS_VALUE, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateFontResource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetSystemFontSet: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetSystemFontCollection: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, DWRITE_FONT_FAMILY_MODEL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetSystemFontSet: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetSystemFontCollection: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, DWRITE_FONT_FAMILY_MODEL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateFontCollectionFromFontSet: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, DWRITE_FONT_FAMILY_MODEL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateFontSetBuilder: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateTextFormat: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, *const DWRITE_FONT_AXIS_VALUE, u32, f32, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -3523,8 +3523,8 @@ unsafe impl Sync for IDWriteFactory6 {} pub trait IDWriteFactory6_Impl: IDWriteFactory5_Impl { fn CreateFontFaceReference(&self, fontfile: windows_core::Ref, faceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32) -> windows_core::Result; fn CreateFontResource(&self, fontfile: windows_core::Ref, faceindex: u32) -> windows_core::Result; - fn GetSystemFontSet(&self, includedownloadablefonts: super::super::Foundation::BOOL) -> windows_core::Result; - fn GetSystemFontCollection(&self, includedownloadablefonts: super::super::Foundation::BOOL, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result; + fn GetSystemFontSet(&self, includedownloadablefonts: windows_core::BOOL) -> windows_core::Result; + fn GetSystemFontCollection(&self, includedownloadablefonts: windows_core::BOOL, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result; fn CreateFontCollectionFromFontSet(&self, fontset: windows_core::Ref, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result; fn CreateFontSetBuilder(&self) -> windows_core::Result; fn CreateTextFormat(&self, fontfamilyname: &windows_core::PCWSTR, fontcollection: windows_core::Ref, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontsize: f32, localename: &windows_core::PCWSTR) -> windows_core::Result; @@ -3556,7 +3556,7 @@ impl IDWriteFactory6_Vtbl { } } } - unsafe extern "system" fn GetSystemFontSet(this: *mut core::ffi::c_void, includedownloadablefonts: super::super::Foundation::BOOL, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetSystemFontSet(this: *mut core::ffi::c_void, includedownloadablefonts: windows_core::BOOL, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory6_Impl::GetSystemFontSet(this, core::mem::transmute_copy(&includedownloadablefonts)) { @@ -3568,7 +3568,7 @@ impl IDWriteFactory6_Vtbl { } } } - unsafe extern "system" fn GetSystemFontCollection(this: *mut core::ffi::c_void, includedownloadablefonts: super::super::Foundation::BOOL, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, fontcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetSystemFontCollection(this: *mut core::ffi::c_void, includedownloadablefonts: windows_core::BOOL, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, fontcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory6_Impl::GetSystemFontCollection(this, core::mem::transmute_copy(&includedownloadablefonts), core::mem::transmute_copy(&fontfamilymodel)) { @@ -3658,20 +3658,20 @@ impl IDWriteFactory7 { #[repr(C)] pub struct IDWriteFactory7_Vtbl { pub base__: IDWriteFactory6_Vtbl, - pub GetSystemFontSet: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetSystemFontCollection: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, DWRITE_FONT_FAMILY_MODEL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetSystemFontSet: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetSystemFontCollection: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, DWRITE_FONT_FAMILY_MODEL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } unsafe impl Send for IDWriteFactory7 {} unsafe impl Sync for IDWriteFactory7 {} #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Gdi"))] pub trait IDWriteFactory7_Impl: IDWriteFactory6_Impl { - fn GetSystemFontSet(&self, includedownloadablefonts: super::super::Foundation::BOOL) -> windows_core::Result; - fn GetSystemFontCollection(&self, includedownloadablefonts: super::super::Foundation::BOOL, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result; + fn GetSystemFontSet(&self, includedownloadablefonts: windows_core::BOOL) -> windows_core::Result; + fn GetSystemFontCollection(&self, includedownloadablefonts: windows_core::BOOL, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL) -> windows_core::Result; } #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Gdi"))] impl IDWriteFactory7_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetSystemFontSet(this: *mut core::ffi::c_void, includedownloadablefonts: super::super::Foundation::BOOL, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetSystemFontSet(this: *mut core::ffi::c_void, includedownloadablefonts: windows_core::BOOL, fontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory7_Impl::GetSystemFontSet(this, core::mem::transmute_copy(&includedownloadablefonts)) { @@ -3683,7 +3683,7 @@ impl IDWriteFactory7_Vtbl { } } } - unsafe extern "system" fn GetSystemFontCollection(this: *mut core::ffi::c_void, includedownloadablefonts: super::super::Foundation::BOOL, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, fontcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetSystemFontCollection(this: *mut core::ffi::c_void, includedownloadablefonts: windows_core::BOOL, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, fontcollection: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFactory7_Impl::GetSystemFontCollection(this, core::mem::transmute_copy(&includedownloadablefonts), core::mem::transmute_copy(&fontfamilymodel)) { @@ -3779,7 +3779,7 @@ impl IDWriteFont { pub unsafe fn GetStyle(&self) -> DWRITE_FONT_STYLE { unsafe { (windows_core::Interface::vtable(self).GetStyle)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn IsSymbolFont(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsSymbolFont(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsSymbolFont)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetFaceNames(&self) -> windows_core::Result { @@ -3788,7 +3788,7 @@ impl IDWriteFont { (windows_core::Interface::vtable(self).GetFaceNames)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetInformationalStrings(&self, informationalstringid: DWRITE_INFORMATIONAL_STRING_ID, informationalstrings: *mut Option, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetInformationalStrings(&self, informationalstringid: DWRITE_INFORMATIONAL_STRING_ID, informationalstrings: *mut Option, exists: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetInformationalStrings)(windows_core::Interface::as_raw(self), informationalstringid, core::mem::transmute(informationalstrings), exists as _).ok() } } pub unsafe fn GetSimulations(&self) -> DWRITE_FONT_SIMULATIONS { @@ -3797,7 +3797,7 @@ impl IDWriteFont { pub unsafe fn GetMetrics(&self, fontmetrics: *mut DWRITE_FONT_METRICS) { unsafe { (windows_core::Interface::vtable(self).GetMetrics)(windows_core::Interface::as_raw(self), fontmetrics as _) } } - pub unsafe fn HasCharacter(&self, unicodevalue: u32) -> windows_core::Result { + pub unsafe fn HasCharacter(&self, unicodevalue: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HasCharacter)(windows_core::Interface::as_raw(self), unicodevalue, &mut result__).map(|| result__) @@ -3817,12 +3817,12 @@ pub struct IDWriteFont_Vtbl { pub GetWeight: unsafe extern "system" fn(*mut core::ffi::c_void) -> DWRITE_FONT_WEIGHT, pub GetStretch: unsafe extern "system" fn(*mut core::ffi::c_void) -> DWRITE_FONT_STRETCH, pub GetStyle: unsafe extern "system" fn(*mut core::ffi::c_void) -> DWRITE_FONT_STYLE, - pub IsSymbolFont: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsSymbolFont: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetFaceNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetInformationalStrings: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_INFORMATIONAL_STRING_ID, *mut *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetInformationalStrings: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_INFORMATIONAL_STRING_ID, *mut *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetSimulations: unsafe extern "system" fn(*mut core::ffi::c_void) -> DWRITE_FONT_SIMULATIONS, pub GetMetrics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DWRITE_FONT_METRICS), - pub HasCharacter: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub HasCharacter: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CreateFontFace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } unsafe impl Send for IDWriteFont {} @@ -3832,12 +3832,12 @@ pub trait IDWriteFont_Impl: windows_core::IUnknownImpl { fn GetWeight(&self) -> DWRITE_FONT_WEIGHT; fn GetStretch(&self) -> DWRITE_FONT_STRETCH; fn GetStyle(&self) -> DWRITE_FONT_STYLE; - fn IsSymbolFont(&self) -> super::super::Foundation::BOOL; + fn IsSymbolFont(&self) -> windows_core::BOOL; fn GetFaceNames(&self) -> windows_core::Result; - fn GetInformationalStrings(&self, informationalstringid: DWRITE_INFORMATIONAL_STRING_ID, informationalstrings: windows_core::OutRef<'_, IDWriteLocalizedStrings>, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetInformationalStrings(&self, informationalstringid: DWRITE_INFORMATIONAL_STRING_ID, informationalstrings: windows_core::OutRef<'_, IDWriteLocalizedStrings>, exists: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetSimulations(&self) -> DWRITE_FONT_SIMULATIONS; fn GetMetrics(&self, fontmetrics: *mut DWRITE_FONT_METRICS); - fn HasCharacter(&self, unicodevalue: u32) -> windows_core::Result; + fn HasCharacter(&self, unicodevalue: u32) -> windows_core::Result; fn CreateFontFace(&self) -> windows_core::Result; } impl IDWriteFont_Vtbl { @@ -3872,7 +3872,7 @@ impl IDWriteFont_Vtbl { IDWriteFont_Impl::GetStyle(this) } } - unsafe extern "system" fn IsSymbolFont(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsSymbolFont(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont_Impl::IsSymbolFont(this) @@ -3890,7 +3890,7 @@ impl IDWriteFont_Vtbl { } } } - unsafe extern "system" fn GetInformationalStrings(this: *mut core::ffi::c_void, informationalstringid: DWRITE_INFORMATIONAL_STRING_ID, informationalstrings: *mut *mut core::ffi::c_void, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetInformationalStrings(this: *mut core::ffi::c_void, informationalstringid: DWRITE_INFORMATIONAL_STRING_ID, informationalstrings: *mut *mut core::ffi::c_void, exists: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont_Impl::GetInformationalStrings(this, core::mem::transmute_copy(&informationalstringid), core::mem::transmute_copy(&informationalstrings), core::mem::transmute_copy(&exists)).into() @@ -3908,7 +3908,7 @@ impl IDWriteFont_Vtbl { IDWriteFont_Impl::GetMetrics(this, core::mem::transmute_copy(&fontmetrics)) } } - unsafe extern "system" fn HasCharacter(this: *mut core::ffi::c_void, unicodevalue: u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn HasCharacter(this: *mut core::ffi::c_void, unicodevalue: u32, exists: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFont_Impl::HasCharacter(this, core::mem::transmute_copy(&unicodevalue)) { @@ -3974,7 +3974,7 @@ impl IDWriteFont1 { pub unsafe fn GetUnicodeRanges(&self, unicoderanges: Option<&mut [DWRITE_UNICODE_RANGE]>, actualrangecount: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetUnicodeRanges)(windows_core::Interface::as_raw(self), unicoderanges.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(unicoderanges.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), actualrangecount as _).ok() } } - pub unsafe fn IsMonospacedFont(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsMonospacedFont(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsMonospacedFont)(windows_core::Interface::as_raw(self)) } } } @@ -3984,7 +3984,7 @@ pub struct IDWriteFont1_Vtbl { pub GetMetrics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DWRITE_FONT_METRICS1), pub GetPanose: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DWRITE_PANOSE), pub GetUnicodeRanges: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut DWRITE_UNICODE_RANGE, *mut u32) -> windows_core::HRESULT, - pub IsMonospacedFont: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsMonospacedFont: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } unsafe impl Send for IDWriteFont1 {} unsafe impl Sync for IDWriteFont1 {} @@ -3992,7 +3992,7 @@ pub trait IDWriteFont1_Impl: IDWriteFont_Impl { fn GetMetrics(&self, fontmetrics: *mut DWRITE_FONT_METRICS1); fn GetPanose(&self, panose: *mut DWRITE_PANOSE); fn GetUnicodeRanges(&self, maxrangecount: u32, unicoderanges: *mut DWRITE_UNICODE_RANGE, actualrangecount: *mut u32) -> windows_core::Result<()>; - fn IsMonospacedFont(&self) -> super::super::Foundation::BOOL; + fn IsMonospacedFont(&self) -> windows_core::BOOL; } impl IDWriteFont1_Vtbl { pub const fn new() -> Self { @@ -4014,7 +4014,7 @@ impl IDWriteFont1_Vtbl { IDWriteFont1_Impl::GetUnicodeRanges(this, core::mem::transmute_copy(&maxrangecount), core::mem::transmute_copy(&unicoderanges), core::mem::transmute_copy(&actualrangecount)).into() } } - unsafe extern "system" fn IsMonospacedFont(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsMonospacedFont(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont1_Impl::IsMonospacedFont(this) @@ -4042,23 +4042,23 @@ impl core::ops::Deref for IDWriteFont2 { } windows_core::imp::interface_hierarchy!(IDWriteFont2, windows_core::IUnknown, IDWriteFont, IDWriteFont1); impl IDWriteFont2 { - pub unsafe fn IsColorFont(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsColorFont(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsColorFont)(windows_core::Interface::as_raw(self)) } } } #[repr(C)] pub struct IDWriteFont2_Vtbl { pub base__: IDWriteFont1_Vtbl, - pub IsColorFont: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsColorFont: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } unsafe impl Send for IDWriteFont2 {} unsafe impl Sync for IDWriteFont2 {} pub trait IDWriteFont2_Impl: IDWriteFont1_Impl { - fn IsColorFont(&self) -> super::super::Foundation::BOOL; + fn IsColorFont(&self) -> windows_core::BOOL; } impl IDWriteFont2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsColorFont(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsColorFont(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont2_Impl::IsColorFont(this) @@ -4086,7 +4086,7 @@ impl IDWriteFont3 { (windows_core::Interface::vtable(self).CreateFontFace)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn Equals(&self, font: P0) -> super::super::Foundation::BOOL + pub unsafe fn Equals(&self, font: P0) -> windows_core::BOOL where P0: windows_core::Param, { @@ -4098,7 +4098,7 @@ impl IDWriteFont3 { (windows_core::Interface::vtable(self).GetFontFaceReference)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn HasCharacter(&self, unicodevalue: u32) -> super::super::Foundation::BOOL { + pub unsafe fn HasCharacter(&self, unicodevalue: u32) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).HasCharacter)(windows_core::Interface::as_raw(self), unicodevalue) } } pub unsafe fn GetLocality(&self) -> DWRITE_LOCALITY { @@ -4109,18 +4109,18 @@ impl IDWriteFont3 { pub struct IDWriteFont3_Vtbl { pub base__: IDWriteFont2_Vtbl, pub CreateFontFace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Equals: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub Equals: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::BOOL, pub GetFontFaceReference: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub HasCharacter: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> super::super::Foundation::BOOL, + pub HasCharacter: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::BOOL, pub GetLocality: unsafe extern "system" fn(*mut core::ffi::c_void) -> DWRITE_LOCALITY, } unsafe impl Send for IDWriteFont3 {} unsafe impl Sync for IDWriteFont3 {} pub trait IDWriteFont3_Impl: IDWriteFont2_Impl { fn CreateFontFace(&self) -> windows_core::Result; - fn Equals(&self, font: windows_core::Ref) -> super::super::Foundation::BOOL; + fn Equals(&self, font: windows_core::Ref) -> windows_core::BOOL; fn GetFontFaceReference(&self) -> windows_core::Result; - fn HasCharacter(&self, unicodevalue: u32) -> super::super::Foundation::BOOL; + fn HasCharacter(&self, unicodevalue: u32) -> windows_core::BOOL; fn GetLocality(&self) -> DWRITE_LOCALITY; } impl IDWriteFont3_Vtbl { @@ -4137,7 +4137,7 @@ impl IDWriteFont3_Vtbl { } } } - unsafe extern "system" fn Equals(this: *mut core::ffi::c_void, font: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn Equals(this: *mut core::ffi::c_void, font: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont3_Impl::Equals(this, core::mem::transmute_copy(&font)) @@ -4155,7 +4155,7 @@ impl IDWriteFont3_Vtbl { } } } - unsafe extern "system" fn HasCharacter(this: *mut core::ffi::c_void, unicodevalue: u32) -> super::super::Foundation::BOOL { + unsafe extern "system" fn HasCharacter(this: *mut core::ffi::c_void, unicodevalue: u32) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFont3_Impl::HasCharacter(this, core::mem::transmute_copy(&unicodevalue)) @@ -4193,7 +4193,7 @@ impl IDWriteFontCollection { (windows_core::Interface::vtable(self).GetFontFamily)(windows_core::Interface::as_raw(self), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn FindFamilyName(&self, familyname: P0, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn FindFamilyName(&self, familyname: P0, index: *mut u32, exists: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -4214,7 +4214,7 @@ pub struct IDWriteFontCollection_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetFontFamilyCount: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, pub GetFontFamily: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub FindFamilyName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub FindFamilyName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetFontFromFontFace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } unsafe impl Send for IDWriteFontCollection {} @@ -4222,7 +4222,7 @@ unsafe impl Sync for IDWriteFontCollection {} pub trait IDWriteFontCollection_Impl: windows_core::IUnknownImpl { fn GetFontFamilyCount(&self) -> u32; fn GetFontFamily(&self, index: u32) -> windows_core::Result; - fn FindFamilyName(&self, familyname: &windows_core::PCWSTR, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn FindFamilyName(&self, familyname: &windows_core::PCWSTR, index: *mut u32, exists: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetFontFromFontFace(&self, fontface: windows_core::Ref) -> windows_core::Result; } impl IDWriteFontCollection_Vtbl { @@ -4245,7 +4245,7 @@ impl IDWriteFontCollection_Vtbl { } } } - unsafe extern "system" fn FindFamilyName(this: *mut core::ffi::c_void, familyname: windows_core::PCWSTR, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn FindFamilyName(this: *mut core::ffi::c_void, familyname: windows_core::PCWSTR, index: *mut u32, exists: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontCollection_Impl::FindFamilyName(this, core::mem::transmute(&familyname), core::mem::transmute_copy(&index), core::mem::transmute_copy(&exists)).into() @@ -4587,7 +4587,7 @@ impl IDWriteFontDownloadQueue { pub unsafe fn RemoveListener(&self, token: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).RemoveListener)(windows_core::Interface::as_raw(self), token).ok() } } - pub unsafe fn IsEmpty(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsEmpty(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsEmpty)(windows_core::Interface::as_raw(self)) } } pub unsafe fn BeginDownload(&self, context: P0) -> windows_core::Result<()> @@ -4608,7 +4608,7 @@ pub struct IDWriteFontDownloadQueue_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub AddListener: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub RemoveListener: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub IsEmpty: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsEmpty: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub BeginDownload: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub CancelDownload: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetGenerationCount: unsafe extern "system" fn(*mut core::ffi::c_void) -> u64, @@ -4618,7 +4618,7 @@ unsafe impl Sync for IDWriteFontDownloadQueue {} pub trait IDWriteFontDownloadQueue_Impl: windows_core::IUnknownImpl { fn AddListener(&self, listener: windows_core::Ref) -> windows_core::Result; fn RemoveListener(&self, token: u32) -> windows_core::Result<()>; - fn IsEmpty(&self) -> super::super::Foundation::BOOL; + fn IsEmpty(&self) -> windows_core::BOOL; fn BeginDownload(&self, context: windows_core::Ref) -> windows_core::Result<()>; fn CancelDownload(&self) -> windows_core::Result<()>; fn GetGenerationCount(&self) -> u64; @@ -4643,7 +4643,7 @@ impl IDWriteFontDownloadQueue_Vtbl { IDWriteFontDownloadQueue_Impl::RemoveListener(this, core::mem::transmute_copy(&token)).into() } } - unsafe extern "system" fn IsEmpty(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsEmpty(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontDownloadQueue_Impl::IsEmpty(this) @@ -4697,7 +4697,7 @@ impl IDWriteFontFace { pub unsafe fn GetSimulations(&self) -> DWRITE_FONT_SIMULATIONS { unsafe { (windows_core::Interface::vtable(self).GetSimulations)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn IsSymbolFont(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsSymbolFont(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsSymbolFont)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetMetrics(&self, fontfacemetrics: *mut DWRITE_FONT_METRICS) { @@ -4712,7 +4712,7 @@ impl IDWriteFontFace { pub unsafe fn GetGlyphIndices(&self, codepoints: *const u32, codepointcount: u32, glyphindices: *mut u16) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetGlyphIndices)(windows_core::Interface::as_raw(self), codepoints, codepointcount, glyphindices as _).ok() } } - pub unsafe fn TryGetFontTable(&self, opentypetabletag: u32, tabledata: *mut *mut core::ffi::c_void, tablesize: *mut u32, tablecontext: *mut *mut core::ffi::c_void, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn TryGetFontTable(&self, opentypetabletag: u32, tabledata: *mut *mut core::ffi::c_void, tablesize: *mut u32, tablecontext: *mut *mut core::ffi::c_void, exists: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).TryGetFontTable)(windows_core::Interface::as_raw(self), opentypetabletag, tabledata as _, tablesize as _, tablecontext as _, exists as _).ok() } } pub unsafe fn ReleaseFontTable(&self, tablecontext: *const core::ffi::c_void) { @@ -4748,20 +4748,20 @@ pub struct IDWriteFontFace_Vtbl { pub GetFiles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetIndex: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, pub GetSimulations: unsafe extern "system" fn(*mut core::ffi::c_void) -> DWRITE_FONT_SIMULATIONS, - pub IsSymbolFont: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsSymbolFont: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetMetrics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DWRITE_FONT_METRICS), pub GetGlyphCount: unsafe extern "system" fn(*mut core::ffi::c_void) -> u16, - pub GetDesignGlyphMetrics: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, u32, *mut DWRITE_GLYPH_METRICS, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetDesignGlyphMetrics: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, u32, *mut DWRITE_GLYPH_METRICS, windows_core::BOOL) -> windows_core::HRESULT, pub GetGlyphIndices: unsafe extern "system" fn(*mut core::ffi::c_void, *const u32, u32, *mut u16) -> windows_core::HRESULT, - pub TryGetFontTable: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void, *mut u32, *mut *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub TryGetFontTable: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void, *mut u32, *mut *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub ReleaseFontTable: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void), #[cfg(feature = "Win32_Graphics_Direct2D_Common")] - pub GetGlyphRunOutline: unsafe extern "system" fn(*mut core::ffi::c_void, f32, *const u16, *const f32, *const DWRITE_GLYPH_OFFSET, u32, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetGlyphRunOutline: unsafe extern "system" fn(*mut core::ffi::c_void, f32, *const u16, *const f32, *const DWRITE_GLYPH_OFFSET, u32, windows_core::BOOL, windows_core::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] GetGlyphRunOutline: usize, pub GetRecommendedRenderingMode: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, DWRITE_MEASURING_MODE, *mut core::ffi::c_void, *mut DWRITE_RENDERING_MODE) -> windows_core::HRESULT, pub GetGdiCompatibleMetrics: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, *const DWRITE_MATRIX, *mut DWRITE_FONT_METRICS) -> windows_core::HRESULT, - pub GetGdiCompatibleGlyphMetrics: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, *const DWRITE_MATRIX, super::super::Foundation::BOOL, *const u16, u32, *mut DWRITE_GLYPH_METRICS, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetGdiCompatibleGlyphMetrics: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, *const DWRITE_MATRIX, windows_core::BOOL, *const u16, u32, *mut DWRITE_GLYPH_METRICS, windows_core::BOOL) -> windows_core::HRESULT, } unsafe impl Send for IDWriteFontFace {} unsafe impl Sync for IDWriteFontFace {} @@ -4771,17 +4771,17 @@ pub trait IDWriteFontFace_Impl: windows_core::IUnknownImpl { fn GetFiles(&self, numberoffiles: *mut u32, fontfiles: windows_core::OutRef<'_, IDWriteFontFile>) -> windows_core::Result<()>; fn GetIndex(&self) -> u32; fn GetSimulations(&self) -> DWRITE_FONT_SIMULATIONS; - fn IsSymbolFont(&self) -> super::super::Foundation::BOOL; + fn IsSymbolFont(&self) -> windows_core::BOOL; fn GetMetrics(&self, fontfacemetrics: *mut DWRITE_FONT_METRICS); fn GetGlyphCount(&self) -> u16; - fn GetDesignGlyphMetrics(&self, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetDesignGlyphMetrics(&self, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: windows_core::BOOL) -> windows_core::Result<()>; fn GetGlyphIndices(&self, codepoints: *const u32, codepointcount: u32, glyphindices: *mut u16) -> windows_core::Result<()>; - fn TryGetFontTable(&self, opentypetabletag: u32, tabledata: *mut *mut core::ffi::c_void, tablesize: *mut u32, tablecontext: *mut *mut core::ffi::c_void, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn TryGetFontTable(&self, opentypetabletag: u32, tabledata: *mut *mut core::ffi::c_void, tablesize: *mut u32, tablecontext: *mut *mut core::ffi::c_void, exists: *mut windows_core::BOOL) -> windows_core::Result<()>; fn ReleaseFontTable(&self, tablecontext: *const core::ffi::c_void); - fn GetGlyphRunOutline(&self, emsize: f32, glyphindices: *const u16, glyphadvances: *const f32, glyphoffsets: *const DWRITE_GLYPH_OFFSET, glyphcount: u32, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, geometrysink: windows_core::Ref) -> windows_core::Result<()>; + fn GetGlyphRunOutline(&self, emsize: f32, glyphindices: *const u16, glyphadvances: *const f32, glyphoffsets: *const DWRITE_GLYPH_OFFSET, glyphcount: u32, issideways: windows_core::BOOL, isrighttoleft: windows_core::BOOL, geometrysink: windows_core::Ref) -> windows_core::Result<()>; fn GetRecommendedRenderingMode(&self, emsize: f32, pixelsperdip: f32, measuringmode: DWRITE_MEASURING_MODE, renderingparams: windows_core::Ref) -> windows_core::Result; fn GetGdiCompatibleMetrics(&self, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, fontfacemetrics: *mut DWRITE_FONT_METRICS) -> windows_core::Result<()>; - fn GetGdiCompatibleGlyphMetrics(&self, 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::Result<()>; + fn GetGdiCompatibleGlyphMetrics(&self, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: windows_core::BOOL, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDWriteFontFace_Vtbl { @@ -4810,7 +4810,7 @@ impl IDWriteFontFace_Vtbl { IDWriteFontFace_Impl::GetSimulations(this) } } - unsafe extern "system" fn IsSymbolFont(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsSymbolFont(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::IsSymbolFont(this) @@ -4828,7 +4828,7 @@ impl IDWriteFontFace_Vtbl { IDWriteFontFace_Impl::GetGlyphCount(this) } } - unsafe extern "system" fn GetDesignGlyphMetrics(this: *mut core::ffi::c_void, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetDesignGlyphMetrics(this: *mut core::ffi::c_void, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::GetDesignGlyphMetrics(this, core::mem::transmute_copy(&glyphindices), core::mem::transmute_copy(&glyphcount), core::mem::transmute_copy(&glyphmetrics), core::mem::transmute_copy(&issideways)).into() @@ -4840,7 +4840,7 @@ impl IDWriteFontFace_Vtbl { IDWriteFontFace_Impl::GetGlyphIndices(this, core::mem::transmute_copy(&codepoints), core::mem::transmute_copy(&codepointcount), core::mem::transmute_copy(&glyphindices)).into() } } - unsafe extern "system" fn TryGetFontTable(this: *mut core::ffi::c_void, opentypetabletag: u32, tabledata: *mut *mut core::ffi::c_void, tablesize: *mut u32, tablecontext: *mut *mut core::ffi::c_void, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn TryGetFontTable(this: *mut core::ffi::c_void, opentypetabletag: u32, tabledata: *mut *mut core::ffi::c_void, tablesize: *mut u32, tablecontext: *mut *mut core::ffi::c_void, exists: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::TryGetFontTable(this, core::mem::transmute_copy(&opentypetabletag), core::mem::transmute_copy(&tabledata), core::mem::transmute_copy(&tablesize), core::mem::transmute_copy(&tablecontext), core::mem::transmute_copy(&exists)).into() @@ -4852,7 +4852,7 @@ impl IDWriteFontFace_Vtbl { IDWriteFontFace_Impl::ReleaseFontTable(this, core::mem::transmute_copy(&tablecontext)) } } - unsafe extern "system" fn GetGlyphRunOutline(this: *mut core::ffi::c_void, emsize: f32, glyphindices: *const u16, glyphadvances: *const f32, glyphoffsets: *const DWRITE_GLYPH_OFFSET, glyphcount: u32, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetGlyphRunOutline(this: *mut core::ffi::c_void, emsize: f32, glyphindices: *const u16, glyphadvances: *const f32, glyphoffsets: *const DWRITE_GLYPH_OFFSET, glyphcount: u32, issideways: windows_core::BOOL, isrighttoleft: windows_core::BOOL, geometrysink: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::GetGlyphRunOutline(this, core::mem::transmute_copy(&emsize), core::mem::transmute_copy(&glyphindices), core::mem::transmute_copy(&glyphadvances), core::mem::transmute_copy(&glyphoffsets), core::mem::transmute_copy(&glyphcount), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&isrighttoleft), core::mem::transmute_copy(&geometrysink)).into() @@ -4876,7 +4876,7 @@ impl IDWriteFontFace_Vtbl { IDWriteFontFace_Impl::GetGdiCompatibleMetrics(this, core::mem::transmute_copy(&emsize), core::mem::transmute_copy(&pixelsperdip), core::mem::transmute_copy(&transform), core::mem::transmute_copy(&fontfacemetrics)).into() } } - unsafe extern "system" fn GetGdiCompatibleGlyphMetrics(this: *mut core::ffi::c_void, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: super::super::Foundation::BOOL, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetGdiCompatibleGlyphMetrics(this: *mut core::ffi::c_void, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: windows_core::BOOL, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace_Impl::GetGdiCompatibleGlyphMetrics(this, core::mem::transmute_copy(&emsize), core::mem::transmute_copy(&pixelsperdip), core::mem::transmute_copy(&transform), core::mem::transmute_copy(&usegdinatural), core::mem::transmute_copy(&glyphindices), core::mem::transmute_copy(&glyphcount), core::mem::transmute_copy(&glyphmetrics), core::mem::transmute_copy(&issideways)).into() @@ -4932,7 +4932,7 @@ impl IDWriteFontFace1 { pub unsafe fn GetUnicodeRanges(&self, unicoderanges: Option<&mut [DWRITE_UNICODE_RANGE]>, actualrangecount: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetUnicodeRanges)(windows_core::Interface::as_raw(self), unicoderanges.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(unicoderanges.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), actualrangecount as _).ok() } } - pub unsafe fn IsMonospacedFont(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsMonospacedFont(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsMonospacedFont)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetDesignGlyphAdvances(&self, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32, issideways: bool) -> windows_core::Result<()> { @@ -4944,7 +4944,7 @@ impl IDWriteFontFace1 { pub unsafe fn GetKerningPairAdjustments(&self, glyphcount: u32, glyphindices: *const u16, glyphadvanceadjustments: *mut i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetKerningPairAdjustments)(windows_core::Interface::as_raw(self), glyphcount, glyphindices, glyphadvanceadjustments as _).ok() } } - pub unsafe fn HasKerningPairs(&self) -> super::super::Foundation::BOOL { + pub unsafe fn HasKerningPairs(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).HasKerningPairs)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetRecommendedRenderingMode(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: bool, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE) -> windows_core::Result { @@ -4956,7 +4956,7 @@ impl IDWriteFontFace1 { pub unsafe fn GetVerticalGlyphVariants(&self, glyphcount: u32, nominalglyphindices: *const u16, verticalglyphindices: *mut u16) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetVerticalGlyphVariants)(windows_core::Interface::as_raw(self), glyphcount, nominalglyphindices, verticalglyphindices as _).ok() } } - pub unsafe fn HasVerticalGlyphVariants(&self) -> super::super::Foundation::BOOL { + pub unsafe fn HasVerticalGlyphVariants(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).HasVerticalGlyphVariants)(windows_core::Interface::as_raw(self)) } } } @@ -4967,14 +4967,14 @@ pub struct IDWriteFontFace1_Vtbl { pub GetGdiCompatibleMetrics: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, *const DWRITE_MATRIX, *mut DWRITE_FONT_METRICS1) -> windows_core::HRESULT, pub GetCaretMetrics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DWRITE_CARET_METRICS), pub GetUnicodeRanges: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut DWRITE_UNICODE_RANGE, *mut u32) -> windows_core::HRESULT, - pub IsMonospacedFont: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, - pub GetDesignGlyphAdvances: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const u16, *mut i32, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetGdiCompatibleGlyphAdvances: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, *const DWRITE_MATRIX, super::super::Foundation::BOOL, super::super::Foundation::BOOL, u32, *const u16, *mut i32) -> windows_core::HRESULT, + pub IsMonospacedFont: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, + pub GetDesignGlyphAdvances: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const u16, *mut i32, windows_core::BOOL) -> windows_core::HRESULT, + pub GetGdiCompatibleGlyphAdvances: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, *const DWRITE_MATRIX, windows_core::BOOL, windows_core::BOOL, u32, *const u16, *mut i32) -> windows_core::HRESULT, pub GetKerningPairAdjustments: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const u16, *mut i32) -> windows_core::HRESULT, - pub HasKerningPairs: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, - pub GetRecommendedRenderingMode: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, f32, *const DWRITE_MATRIX, super::super::Foundation::BOOL, DWRITE_OUTLINE_THRESHOLD, DWRITE_MEASURING_MODE, *mut DWRITE_RENDERING_MODE) -> windows_core::HRESULT, + pub HasKerningPairs: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, + pub GetRecommendedRenderingMode: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, f32, *const DWRITE_MATRIX, windows_core::BOOL, DWRITE_OUTLINE_THRESHOLD, DWRITE_MEASURING_MODE, *mut DWRITE_RENDERING_MODE) -> windows_core::HRESULT, pub GetVerticalGlyphVariants: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const u16, *mut u16) -> windows_core::HRESULT, - pub HasVerticalGlyphVariants: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub HasVerticalGlyphVariants: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } unsafe impl Send for IDWriteFontFace1 {} unsafe impl Sync for IDWriteFontFace1 {} @@ -4984,14 +4984,14 @@ pub trait IDWriteFontFace1_Impl: IDWriteFontFace_Impl { fn GetGdiCompatibleMetrics(&self, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, fontmetrics: *mut DWRITE_FONT_METRICS1) -> windows_core::Result<()>; fn GetCaretMetrics(&self, caretmetrics: *mut DWRITE_CARET_METRICS); fn GetUnicodeRanges(&self, maxrangecount: u32, unicoderanges: *mut DWRITE_UNICODE_RANGE, actualrangecount: *mut u32) -> windows_core::Result<()>; - fn IsMonospacedFont(&self) -> super::super::Foundation::BOOL; - fn GetDesignGlyphAdvances(&self, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32, issideways: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetGdiCompatibleGlyphAdvances(&self, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: super::super::Foundation::BOOL, issideways: super::super::Foundation::BOOL, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32) -> windows_core::Result<()>; + fn IsMonospacedFont(&self) -> windows_core::BOOL; + fn GetDesignGlyphAdvances(&self, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32, issideways: windows_core::BOOL) -> windows_core::Result<()>; + fn GetGdiCompatibleGlyphAdvances(&self, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: windows_core::BOOL, issideways: windows_core::BOOL, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32) -> windows_core::Result<()>; fn GetKerningPairAdjustments(&self, glyphcount: u32, glyphindices: *const u16, glyphadvanceadjustments: *mut i32) -> windows_core::Result<()>; - fn HasKerningPairs(&self) -> super::super::Foundation::BOOL; - fn GetRecommendedRenderingMode(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: super::super::Foundation::BOOL, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE) -> windows_core::Result; + fn HasKerningPairs(&self) -> windows_core::BOOL; + fn GetRecommendedRenderingMode(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: windows_core::BOOL, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE) -> windows_core::Result; fn GetVerticalGlyphVariants(&self, glyphcount: u32, nominalglyphindices: *const u16, verticalglyphindices: *mut u16) -> windows_core::Result<()>; - fn HasVerticalGlyphVariants(&self) -> super::super::Foundation::BOOL; + fn HasVerticalGlyphVariants(&self) -> windows_core::BOOL; } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDWriteFontFace1_Vtbl { @@ -5020,19 +5020,19 @@ impl IDWriteFontFace1_Vtbl { IDWriteFontFace1_Impl::GetUnicodeRanges(this, core::mem::transmute_copy(&maxrangecount), core::mem::transmute_copy(&unicoderanges), core::mem::transmute_copy(&actualrangecount)).into() } } - unsafe extern "system" fn IsMonospacedFont(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsMonospacedFont(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace1_Impl::IsMonospacedFont(this) } } - unsafe extern "system" fn GetDesignGlyphAdvances(this: *mut core::ffi::c_void, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32, issideways: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetDesignGlyphAdvances(this: *mut core::ffi::c_void, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32, issideways: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace1_Impl::GetDesignGlyphAdvances(this, core::mem::transmute_copy(&glyphcount), core::mem::transmute_copy(&glyphindices), core::mem::transmute_copy(&glyphadvances), core::mem::transmute_copy(&issideways)).into() } } - unsafe extern "system" fn GetGdiCompatibleGlyphAdvances(this: *mut core::ffi::c_void, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: super::super::Foundation::BOOL, issideways: super::super::Foundation::BOOL, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32) -> windows_core::HRESULT { + unsafe extern "system" fn GetGdiCompatibleGlyphAdvances(this: *mut core::ffi::c_void, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: windows_core::BOOL, issideways: windows_core::BOOL, glyphcount: u32, glyphindices: *const u16, glyphadvances: *mut i32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace1_Impl::GetGdiCompatibleGlyphAdvances(this, core::mem::transmute_copy(&emsize), core::mem::transmute_copy(&pixelsperdip), core::mem::transmute_copy(&transform), core::mem::transmute_copy(&usegdinatural), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&glyphcount), core::mem::transmute_copy(&glyphindices), core::mem::transmute_copy(&glyphadvances)).into() @@ -5044,13 +5044,13 @@ impl IDWriteFontFace1_Vtbl { IDWriteFontFace1_Impl::GetKerningPairAdjustments(this, core::mem::transmute_copy(&glyphcount), core::mem::transmute_copy(&glyphindices), core::mem::transmute_copy(&glyphadvanceadjustments)).into() } } - unsafe extern "system" fn HasKerningPairs(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn HasKerningPairs(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace1_Impl::HasKerningPairs(this) } } - unsafe extern "system" fn GetRecommendedRenderingMode(this: *mut core::ffi::c_void, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: super::super::Foundation::BOOL, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingmode: *mut DWRITE_RENDERING_MODE) -> windows_core::HRESULT { + unsafe extern "system" fn GetRecommendedRenderingMode(this: *mut core::ffi::c_void, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: windows_core::BOOL, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingmode: *mut DWRITE_RENDERING_MODE) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFace1_Impl::GetRecommendedRenderingMode(this, core::mem::transmute_copy(&fontemsize), core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy), core::mem::transmute_copy(&transform), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&outlinethreshold), core::mem::transmute_copy(&measuringmode)) { @@ -5068,7 +5068,7 @@ impl IDWriteFontFace1_Vtbl { IDWriteFontFace1_Impl::GetVerticalGlyphVariants(this, core::mem::transmute_copy(&glyphcount), core::mem::transmute_copy(&nominalglyphindices), core::mem::transmute_copy(&verticalglyphindices)).into() } } - unsafe extern "system" fn HasVerticalGlyphVariants(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn HasVerticalGlyphVariants(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace1_Impl::HasVerticalGlyphVariants(this) @@ -5105,7 +5105,7 @@ impl core::ops::Deref for IDWriteFontFace2 { } windows_core::imp::interface_hierarchy!(IDWriteFontFace2, windows_core::IUnknown, IDWriteFontFace, IDWriteFontFace1); impl IDWriteFontFace2 { - pub unsafe fn IsColorFont(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsColorFont(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsColorFont)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetColorPaletteCount(&self) -> u32 { @@ -5127,26 +5127,26 @@ impl IDWriteFontFace2 { #[repr(C)] pub struct IDWriteFontFace2_Vtbl { pub base__: IDWriteFontFace1_Vtbl, - pub IsColorFont: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsColorFont: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetColorPaletteCount: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, pub GetPaletteEntryCount: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, pub GetPaletteEntries: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, u32, *mut DWRITE_COLOR_F) -> windows_core::HRESULT, - pub GetRecommendedRenderingMode: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, f32, *const DWRITE_MATRIX, super::super::Foundation::BOOL, DWRITE_OUTLINE_THRESHOLD, DWRITE_MEASURING_MODE, *mut core::ffi::c_void, *mut DWRITE_RENDERING_MODE, *mut DWRITE_GRID_FIT_MODE) -> windows_core::HRESULT, + pub GetRecommendedRenderingMode: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, f32, *const DWRITE_MATRIX, windows_core::BOOL, DWRITE_OUTLINE_THRESHOLD, DWRITE_MEASURING_MODE, *mut core::ffi::c_void, *mut DWRITE_RENDERING_MODE, *mut DWRITE_GRID_FIT_MODE) -> windows_core::HRESULT, } unsafe impl Send for IDWriteFontFace2 {} unsafe impl Sync for IDWriteFontFace2 {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] pub trait IDWriteFontFace2_Impl: IDWriteFontFace1_Impl { - fn IsColorFont(&self) -> super::super::Foundation::BOOL; + fn IsColorFont(&self) -> windows_core::BOOL; fn GetColorPaletteCount(&self) -> u32; fn GetPaletteEntryCount(&self) -> u32; fn GetPaletteEntries(&self, colorpaletteindex: u32, firstentryindex: u32, entrycount: u32, paletteentries: *mut DWRITE_COLOR_F) -> windows_core::Result<()>; - fn GetRecommendedRenderingMode(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: super::super::Foundation::BOOL, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: windows_core::Ref, renderingmode: *mut DWRITE_RENDERING_MODE, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::Result<()>; + fn GetRecommendedRenderingMode(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: windows_core::BOOL, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: windows_core::Ref, renderingmode: *mut DWRITE_RENDERING_MODE, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDWriteFontFace2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsColorFont(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsColorFont(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace2_Impl::IsColorFont(this) @@ -5170,7 +5170,7 @@ impl IDWriteFontFace2_Vtbl { IDWriteFontFace2_Impl::GetPaletteEntries(this, core::mem::transmute_copy(&colorpaletteindex), core::mem::transmute_copy(&firstentryindex), core::mem::transmute_copy(&entrycount), core::mem::transmute_copy(&paletteentries)).into() } } - unsafe extern "system" fn GetRecommendedRenderingMode(this: *mut core::ffi::c_void, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: super::super::Foundation::BOOL, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: *mut core::ffi::c_void, renderingmode: *mut DWRITE_RENDERING_MODE, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::HRESULT { + unsafe extern "system" fn GetRecommendedRenderingMode(this: *mut core::ffi::c_void, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: windows_core::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 { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace2_Impl::GetRecommendedRenderingMode(this, core::mem::transmute_copy(&fontemsize), core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy), core::mem::transmute_copy(&transform), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&outlinethreshold), core::mem::transmute_copy(&measuringmode), core::mem::transmute_copy(&renderingparams), core::mem::transmute_copy(&renderingmode), core::mem::transmute_copy(&gridfitmode)).into() @@ -5234,10 +5234,10 @@ impl IDWriteFontFace3 { (windows_core::Interface::vtable(self).GetFaceNames)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetInformationalStrings(&self, informationalstringid: DWRITE_INFORMATIONAL_STRING_ID, informationalstrings: *mut Option, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetInformationalStrings(&self, informationalstringid: DWRITE_INFORMATIONAL_STRING_ID, informationalstrings: *mut Option, exists: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetInformationalStrings)(windows_core::Interface::as_raw(self), informationalstringid, core::mem::transmute(informationalstrings), exists as _).ok() } } - pub unsafe fn HasCharacter(&self, unicodevalue: u32) -> super::super::Foundation::BOOL { + pub unsafe fn HasCharacter(&self, unicodevalue: u32) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).HasCharacter)(windows_core::Interface::as_raw(self), unicodevalue) } } pub unsafe fn GetRecommendedRenderingMode(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: Option<*const DWRITE_MATRIX>, issideways: bool, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: P7, renderingmode: *mut DWRITE_RENDERING_MODE1, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::Result<()> @@ -5246,19 +5246,19 @@ impl IDWriteFontFace3 { { unsafe { (windows_core::Interface::vtable(self).GetRecommendedRenderingMode)(windows_core::Interface::as_raw(self), fontemsize, dpix, dpiy, transform.unwrap_or(core::mem::zeroed()) as _, issideways.into(), outlinethreshold, measuringmode, renderingparams.param().abi(), renderingmode as _, gridfitmode as _).ok() } } - pub unsafe fn IsCharacterLocal(&self, unicodevalue: u32) -> super::super::Foundation::BOOL { + pub unsafe fn IsCharacterLocal(&self, unicodevalue: u32) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsCharacterLocal)(windows_core::Interface::as_raw(self), unicodevalue) } } - pub unsafe fn IsGlyphLocal(&self, glyphid: u16) -> super::super::Foundation::BOOL { + pub unsafe fn IsGlyphLocal(&self, glyphid: u16) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsGlyphLocal)(windows_core::Interface::as_raw(self), glyphid) } } - pub unsafe fn AreCharactersLocal(&self, characters: &[u16], enqueueifnotlocal: bool) -> windows_core::Result { + pub unsafe fn AreCharactersLocal(&self, characters: &[u16], enqueueifnotlocal: bool) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AreCharactersLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(characters.as_ptr()), characters.len().try_into().unwrap(), enqueueifnotlocal.into(), &mut result__).map(|| result__) } } - pub unsafe fn AreGlyphsLocal(&self, glyphindices: &[u16], enqueueifnotlocal: bool) -> windows_core::Result { + pub unsafe fn AreGlyphsLocal(&self, glyphindices: &[u16], enqueueifnotlocal: bool) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AreGlyphsLocal)(windows_core::Interface::as_raw(self), core::mem::transmute(glyphindices.as_ptr()), glyphindices.len().try_into().unwrap(), enqueueifnotlocal.into(), &mut result__).map(|| result__) @@ -5275,13 +5275,13 @@ pub struct IDWriteFontFace3_Vtbl { pub GetStyle: unsafe extern "system" fn(*mut core::ffi::c_void) -> DWRITE_FONT_STYLE, pub GetFamilyNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetFaceNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetInformationalStrings: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_INFORMATIONAL_STRING_ID, *mut *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub HasCharacter: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> super::super::Foundation::BOOL, - pub GetRecommendedRenderingMode: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, f32, *const DWRITE_MATRIX, super::super::Foundation::BOOL, DWRITE_OUTLINE_THRESHOLD, DWRITE_MEASURING_MODE, *mut core::ffi::c_void, *mut DWRITE_RENDERING_MODE1, *mut DWRITE_GRID_FIT_MODE) -> windows_core::HRESULT, - pub IsCharacterLocal: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> super::super::Foundation::BOOL, - pub IsGlyphLocal: unsafe extern "system" fn(*mut core::ffi::c_void, u16) -> super::super::Foundation::BOOL, - pub AreCharactersLocal: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub AreGlyphsLocal: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, u32, super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetInformationalStrings: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_INFORMATIONAL_STRING_ID, *mut *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub HasCharacter: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::BOOL, + pub GetRecommendedRenderingMode: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, f32, *const DWRITE_MATRIX, windows_core::BOOL, DWRITE_OUTLINE_THRESHOLD, DWRITE_MEASURING_MODE, *mut core::ffi::c_void, *mut DWRITE_RENDERING_MODE1, *mut DWRITE_GRID_FIT_MODE) -> windows_core::HRESULT, + pub IsCharacterLocal: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::BOOL, + pub IsGlyphLocal: unsafe extern "system" fn(*mut core::ffi::c_void, u16) -> windows_core::BOOL, + pub AreCharactersLocal: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub AreGlyphsLocal: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, u32, windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, } unsafe impl Send for IDWriteFontFace3 {} unsafe impl Sync for IDWriteFontFace3 {} @@ -5294,13 +5294,13 @@ pub trait IDWriteFontFace3_Impl: IDWriteFontFace2_Impl { fn GetStyle(&self) -> DWRITE_FONT_STYLE; fn GetFamilyNames(&self) -> windows_core::Result; fn GetFaceNames(&self) -> windows_core::Result; - fn GetInformationalStrings(&self, informationalstringid: DWRITE_INFORMATIONAL_STRING_ID, informationalstrings: windows_core::OutRef<'_, IDWriteLocalizedStrings>, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn HasCharacter(&self, unicodevalue: u32) -> super::super::Foundation::BOOL; - fn GetRecommendedRenderingMode(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: super::super::Foundation::BOOL, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: windows_core::Ref, renderingmode: *mut DWRITE_RENDERING_MODE1, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::Result<()>; - fn IsCharacterLocal(&self, unicodevalue: u32) -> super::super::Foundation::BOOL; - fn IsGlyphLocal(&self, glyphid: u16) -> super::super::Foundation::BOOL; - fn AreCharactersLocal(&self, characters: &windows_core::PCWSTR, charactercount: u32, enqueueifnotlocal: super::super::Foundation::BOOL) -> windows_core::Result; - fn AreGlyphsLocal(&self, glyphindices: *const u16, glyphcount: u32, enqueueifnotlocal: super::super::Foundation::BOOL) -> windows_core::Result; + fn GetInformationalStrings(&self, informationalstringid: DWRITE_INFORMATIONAL_STRING_ID, informationalstrings: windows_core::OutRef<'_, IDWriteLocalizedStrings>, exists: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn HasCharacter(&self, unicodevalue: u32) -> windows_core::BOOL; + fn GetRecommendedRenderingMode(&self, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: windows_core::BOOL, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: windows_core::Ref, renderingmode: *mut DWRITE_RENDERING_MODE1, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::Result<()>; + fn IsCharacterLocal(&self, unicodevalue: u32) -> windows_core::BOOL; + fn IsGlyphLocal(&self, glyphid: u16) -> windows_core::BOOL; + fn AreCharactersLocal(&self, characters: &windows_core::PCWSTR, charactercount: u32, enqueueifnotlocal: windows_core::BOOL) -> windows_core::Result; + fn AreGlyphsLocal(&self, glyphindices: *const u16, glyphcount: u32, enqueueifnotlocal: windows_core::BOOL) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDWriteFontFace3_Vtbl { @@ -5365,37 +5365,37 @@ impl IDWriteFontFace3_Vtbl { } } } - unsafe extern "system" fn GetInformationalStrings(this: *mut core::ffi::c_void, informationalstringid: DWRITE_INFORMATIONAL_STRING_ID, informationalstrings: *mut *mut core::ffi::c_void, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetInformationalStrings(this: *mut core::ffi::c_void, informationalstringid: DWRITE_INFORMATIONAL_STRING_ID, informationalstrings: *mut *mut core::ffi::c_void, exists: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace3_Impl::GetInformationalStrings(this, core::mem::transmute_copy(&informationalstringid), core::mem::transmute_copy(&informationalstrings), core::mem::transmute_copy(&exists)).into() } } - unsafe extern "system" fn HasCharacter(this: *mut core::ffi::c_void, unicodevalue: u32) -> super::super::Foundation::BOOL { + unsafe extern "system" fn HasCharacter(this: *mut core::ffi::c_void, unicodevalue: u32) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace3_Impl::HasCharacter(this, core::mem::transmute_copy(&unicodevalue)) } } - unsafe extern "system" fn GetRecommendedRenderingMode(this: *mut core::ffi::c_void, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: super::super::Foundation::BOOL, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: *mut core::ffi::c_void, renderingmode: *mut DWRITE_RENDERING_MODE1, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::HRESULT { + unsafe extern "system" fn GetRecommendedRenderingMode(this: *mut core::ffi::c_void, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: windows_core::BOOL, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: *mut core::ffi::c_void, renderingmode: *mut DWRITE_RENDERING_MODE1, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace3_Impl::GetRecommendedRenderingMode(this, core::mem::transmute_copy(&fontemsize), core::mem::transmute_copy(&dpix), core::mem::transmute_copy(&dpiy), core::mem::transmute_copy(&transform), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&outlinethreshold), core::mem::transmute_copy(&measuringmode), core::mem::transmute_copy(&renderingparams), core::mem::transmute_copy(&renderingmode), core::mem::transmute_copy(&gridfitmode)).into() } } - unsafe extern "system" fn IsCharacterLocal(this: *mut core::ffi::c_void, unicodevalue: u32) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsCharacterLocal(this: *mut core::ffi::c_void, unicodevalue: u32) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace3_Impl::IsCharacterLocal(this, core::mem::transmute_copy(&unicodevalue)) } } - unsafe extern "system" fn IsGlyphLocal(this: *mut core::ffi::c_void, glyphid: u16) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsGlyphLocal(this: *mut core::ffi::c_void, glyphid: u16) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace3_Impl::IsGlyphLocal(this, core::mem::transmute_copy(&glyphid)) } } - unsafe extern "system" fn AreCharactersLocal(this: *mut core::ffi::c_void, characters: windows_core::PCWSTR, charactercount: u32, enqueueifnotlocal: super::super::Foundation::BOOL, islocal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AreCharactersLocal(this: *mut core::ffi::c_void, characters: windows_core::PCWSTR, charactercount: u32, enqueueifnotlocal: windows_core::BOOL, islocal: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFace3_Impl::AreCharactersLocal(this, core::mem::transmute(&characters), core::mem::transmute_copy(&charactercount), core::mem::transmute_copy(&enqueueifnotlocal)) { @@ -5407,7 +5407,7 @@ impl IDWriteFontFace3_Vtbl { } } } - unsafe extern "system" fn AreGlyphsLocal(this: *mut core::ffi::c_void, glyphindices: *const u16, glyphcount: u32, enqueueifnotlocal: super::super::Foundation::BOOL, islocal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AreGlyphsLocal(this: *mut core::ffi::c_void, glyphindices: *const u16, glyphcount: u32, enqueueifnotlocal: windows_core::BOOL, islocal: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFace3_Impl::AreGlyphsLocal(this, core::mem::transmute_copy(&glyphindices), core::mem::transmute_copy(&glyphcount), core::mem::transmute_copy(&enqueueifnotlocal)) { @@ -5551,7 +5551,7 @@ impl IDWriteFontFace5 { pub unsafe fn GetFontAxisValues(&self, fontaxisvalues: &mut [DWRITE_FONT_AXIS_VALUE]) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetFontAxisValues)(windows_core::Interface::as_raw(self), core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap()).ok() } } - pub unsafe fn HasVariations(&self) -> super::super::Foundation::BOOL { + pub unsafe fn HasVariations(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).HasVariations)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetFontResource(&self) -> windows_core::Result { @@ -5560,7 +5560,7 @@ impl IDWriteFontFace5 { (windows_core::Interface::vtable(self).GetFontResource)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn Equals(&self, fontface: P0) -> super::super::Foundation::BOOL + pub unsafe fn Equals(&self, fontface: P0) -> windows_core::BOOL where P0: windows_core::Param, { @@ -5572,9 +5572,9 @@ pub struct IDWriteFontFace5_Vtbl { pub base__: IDWriteFontFace4_Vtbl, pub GetFontAxisValueCount: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, pub GetFontAxisValues: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DWRITE_FONT_AXIS_VALUE, u32) -> windows_core::HRESULT, - pub HasVariations: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub HasVariations: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetFontResource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Equals: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub Equals: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::BOOL, } unsafe impl Send for IDWriteFontFace5 {} unsafe impl Sync for IDWriteFontFace5 {} @@ -5582,9 +5582,9 @@ unsafe impl Sync for IDWriteFontFace5 {} pub trait IDWriteFontFace5_Impl: IDWriteFontFace4_Impl { fn GetFontAxisValueCount(&self) -> u32; fn GetFontAxisValues(&self, fontaxisvalues: *mut DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32) -> windows_core::Result<()>; - fn HasVariations(&self) -> super::super::Foundation::BOOL; + fn HasVariations(&self) -> windows_core::BOOL; fn GetFontResource(&self) -> windows_core::Result; - fn Equals(&self, fontface: windows_core::Ref) -> super::super::Foundation::BOOL; + fn Equals(&self, fontface: windows_core::Ref) -> windows_core::BOOL; } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl IDWriteFontFace5_Vtbl { @@ -5601,7 +5601,7 @@ impl IDWriteFontFace5_Vtbl { IDWriteFontFace5_Impl::GetFontAxisValues(this, core::mem::transmute_copy(&fontaxisvalues), core::mem::transmute_copy(&fontaxisvaluecount)).into() } } - unsafe extern "system" fn HasVariations(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn HasVariations(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace5_Impl::HasVariations(this) @@ -5619,7 +5619,7 @@ impl IDWriteFontFace5_Vtbl { } } } - unsafe extern "system" fn Equals(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn Equals(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFace5_Impl::Equals(this, core::mem::transmute_copy(&fontface)) @@ -5794,7 +5794,7 @@ impl IDWriteFontFaceReference { (windows_core::Interface::vtable(self).CreateFontFaceWithSimulations)(windows_core::Interface::as_raw(self), fontfacesimulationflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn Equals(&self, fontfacereference: P0) -> super::super::Foundation::BOOL + pub unsafe fn Equals(&self, fontfacereference: P0) -> windows_core::BOOL where P0: windows_core::Param, { @@ -5845,7 +5845,7 @@ pub struct IDWriteFontFaceReference_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub CreateFontFace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateFontFaceWithSimulations: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_FONT_SIMULATIONS, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Equals: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub Equals: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::BOOL, pub GetFontFaceIndex: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, pub GetSimulations: unsafe extern "system" fn(*mut core::ffi::c_void) -> DWRITE_FONT_SIMULATIONS, pub GetFontFile: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -5863,7 +5863,7 @@ unsafe impl Sync for IDWriteFontFaceReference {} pub trait IDWriteFontFaceReference_Impl: windows_core::IUnknownImpl { fn CreateFontFace(&self) -> windows_core::Result; fn CreateFontFaceWithSimulations(&self, fontfacesimulationflags: DWRITE_FONT_SIMULATIONS) -> windows_core::Result; - fn Equals(&self, fontfacereference: windows_core::Ref) -> super::super::Foundation::BOOL; + fn Equals(&self, fontfacereference: windows_core::Ref) -> windows_core::BOOL; fn GetFontFaceIndex(&self) -> u32; fn GetSimulations(&self) -> DWRITE_FONT_SIMULATIONS; fn GetFontFile(&self) -> windows_core::Result; @@ -5902,7 +5902,7 @@ impl IDWriteFontFaceReference_Vtbl { } } } - unsafe extern "system" fn Equals(this: *mut core::ffi::c_void, fontfacereference: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn Equals(this: *mut core::ffi::c_void, fontfacereference: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFaceReference_Impl::Equals(this, core::mem::transmute_copy(&fontfacereference)) @@ -6497,7 +6497,7 @@ impl IDWriteFontFile { (windows_core::Interface::vtable(self).GetLoader)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn Analyze(&self, issupportedfonttype: *mut super::super::Foundation::BOOL, fontfiletype: *mut DWRITE_FONT_FILE_TYPE, fontfacetype: Option<*mut DWRITE_FONT_FACE_TYPE>, numberoffaces: *mut u32) -> windows_core::Result<()> { + pub unsafe fn Analyze(&self, issupportedfonttype: *mut windows_core::BOOL, fontfiletype: *mut DWRITE_FONT_FILE_TYPE, fontfacetype: Option<*mut DWRITE_FONT_FACE_TYPE>, numberoffaces: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Analyze)(windows_core::Interface::as_raw(self), issupportedfonttype as _, fontfiletype as _, fontfacetype.unwrap_or(core::mem::zeroed()) as _, numberoffaces as _).ok() } } } @@ -6506,14 +6506,14 @@ pub struct IDWriteFontFile_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetReferenceKey: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetLoader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Analyze: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut DWRITE_FONT_FILE_TYPE, *mut DWRITE_FONT_FACE_TYPE, *mut u32) -> windows_core::HRESULT, + pub Analyze: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut DWRITE_FONT_FILE_TYPE, *mut DWRITE_FONT_FACE_TYPE, *mut u32) -> windows_core::HRESULT, } unsafe impl Send for IDWriteFontFile {} unsafe impl Sync for IDWriteFontFile {} pub trait IDWriteFontFile_Impl: windows_core::IUnknownImpl { fn GetReferenceKey(&self, fontfilereferencekey: *mut *mut core::ffi::c_void, fontfilereferencekeysize: *mut u32) -> windows_core::Result<()>; fn GetLoader(&self) -> windows_core::Result; - fn Analyze(&self, issupportedfonttype: *mut super::super::Foundation::BOOL, fontfiletype: *mut DWRITE_FONT_FILE_TYPE, fontfacetype: *mut DWRITE_FONT_FACE_TYPE, numberoffaces: *mut u32) -> windows_core::Result<()>; + fn Analyze(&self, issupportedfonttype: *mut windows_core::BOOL, fontfiletype: *mut DWRITE_FONT_FILE_TYPE, fontfacetype: *mut DWRITE_FONT_FACE_TYPE, numberoffaces: *mut u32) -> windows_core::Result<()>; } impl IDWriteFontFile_Vtbl { pub const fn new() -> Self { @@ -6535,7 +6535,7 @@ impl IDWriteFontFile_Vtbl { } } } - unsafe extern "system" fn Analyze(this: *mut core::ffi::c_void, issupportedfonttype: *mut super::super::Foundation::BOOL, fontfiletype: *mut DWRITE_FONT_FILE_TYPE, fontfacetype: *mut DWRITE_FONT_FACE_TYPE, numberoffaces: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn Analyze(this: *mut core::ffi::c_void, issupportedfonttype: *mut windows_core::BOOL, fontfiletype: *mut DWRITE_FONT_FILE_TYPE, fontfacetype: *mut DWRITE_FONT_FACE_TYPE, numberoffaces: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontFile_Impl::Analyze(this, core::mem::transmute_copy(&issupportedfonttype), core::mem::transmute_copy(&fontfiletype), core::mem::transmute_copy(&fontfacetype), core::mem::transmute_copy(&numberoffaces)).into() @@ -6556,7 +6556,7 @@ impl windows_core::RuntimeName for IDWriteFontFile {} windows_core::imp::define_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 { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6572,18 +6572,18 @@ impl IDWriteFontFileEnumerator { #[repr(C)] pub struct IDWriteFontFileEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetCurrentFontFile: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } unsafe impl Send for IDWriteFontFileEnumerator {} unsafe impl Sync for IDWriteFontFileEnumerator {} pub trait IDWriteFontFileEnumerator_Impl: windows_core::IUnknownImpl { - fn MoveNext(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; fn GetCurrentFontFile(&self) -> windows_core::Result; } impl IDWriteFontFileEnumerator_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hascurrentfile: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hascurrentfile: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontFileEnumerator_Impl::MoveNext(this) { @@ -6991,7 +6991,7 @@ impl IDWriteFontResource { pub unsafe fn GetAxisValueNames(&self, axisindex: u32, axisvalueindex: u32, fontaxisrange: *mut DWRITE_FONT_AXIS_RANGE, names: *mut Option) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetAxisValueNames)(windows_core::Interface::as_raw(self), axisindex, axisvalueindex, fontaxisrange as _, core::mem::transmute(names)).ok() } } - pub unsafe fn HasVariations(&self) -> super::super::Foundation::BOOL { + pub unsafe fn HasVariations(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).HasVariations)(windows_core::Interface::as_raw(self)) } } pub unsafe fn CreateFontFace(&self, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: &[DWRITE_FONT_AXIS_VALUE]) -> windows_core::Result { @@ -7019,7 +7019,7 @@ pub struct IDWriteFontResource_Vtbl { pub GetAxisNames: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetAxisValueNameCount: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> u32, pub GetAxisValueNames: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut DWRITE_FONT_AXIS_RANGE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub HasVariations: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub HasVariations: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub CreateFontFace: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_FONT_SIMULATIONS, *const DWRITE_FONT_AXIS_VALUE, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateFontFaceReference: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_FONT_SIMULATIONS, *const DWRITE_FONT_AXIS_VALUE, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -7035,7 +7035,7 @@ pub trait IDWriteFontResource_Impl: windows_core::IUnknownImpl { fn GetAxisNames(&self, axisindex: u32) -> windows_core::Result; fn GetAxisValueNameCount(&self, axisindex: u32) -> u32; fn GetAxisValueNames(&self, axisindex: u32, axisvalueindex: u32, fontaxisrange: *mut DWRITE_FONT_AXIS_RANGE, names: windows_core::OutRef<'_, IDWriteLocalizedStrings>) -> windows_core::Result<()>; - fn HasVariations(&self) -> super::super::Foundation::BOOL; + fn HasVariations(&self) -> windows_core::BOOL; fn CreateFontFace(&self, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32) -> windows_core::Result; fn CreateFontFaceReference(&self, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32) -> windows_core::Result; } @@ -7107,7 +7107,7 @@ impl IDWriteFontResource_Vtbl { IDWriteFontResource_Impl::GetAxisValueNames(this, core::mem::transmute_copy(&axisindex), core::mem::transmute_copy(&axisvalueindex), core::mem::transmute_copy(&fontaxisrange), core::mem::transmute_copy(&names)).into() } } - unsafe extern "system" fn HasVariations(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn HasVariations(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontResource_Impl::HasVariations(this) @@ -7170,13 +7170,13 @@ impl IDWriteFontSet { (windows_core::Interface::vtable(self).GetFontFaceReference)(windows_core::Interface::as_raw(self), listindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn FindFontFaceReference(&self, fontfacereference: P0, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn FindFontFaceReference(&self, fontfacereference: P0, listindex: *mut u32, exists: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).FindFontFaceReference)(windows_core::Interface::as_raw(self), fontfacereference.param().abi(), listindex as _, exists as _).ok() } } - pub unsafe fn FindFontFace(&self, fontface: P0, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn FindFontFace(&self, fontface: P0, listindex: *mut u32, exists: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -7197,7 +7197,7 @@ impl IDWriteFontSet { (windows_core::Interface::vtable(self).GetPropertyValues2)(windows_core::Interface::as_raw(self), propertyid, preferredlocalenames.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetPropertyValues3(&self, listindex: u32, propertyid: DWRITE_FONT_PROPERTY_ID, exists: *mut super::super::Foundation::BOOL, values: *mut Option) -> windows_core::Result<()> { + pub unsafe fn GetPropertyValues3(&self, listindex: u32, propertyid: DWRITE_FONT_PROPERTY_ID, exists: *mut windows_core::BOOL, values: *mut Option) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetPropertyValues3)(windows_core::Interface::as_raw(self), listindex, propertyid, exists as _, core::mem::transmute(values)).ok() } } pub unsafe fn GetPropertyOccurrenceCount(&self, property: *const DWRITE_FONT_PROPERTY) -> windows_core::Result { @@ -7227,11 +7227,11 @@ pub struct IDWriteFontSet_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetFontCount: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, pub GetFontFaceReference: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub FindFontFaceReference: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub FindFontFace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub FindFontFaceReference: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub FindFontFace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetPropertyValues: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_FONT_PROPERTY_ID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetPropertyValues2: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_FONT_PROPERTY_ID, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetPropertyValues3: unsafe extern "system" fn(*mut core::ffi::c_void, u32, DWRITE_FONT_PROPERTY_ID, *mut super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetPropertyValues3: unsafe extern "system" fn(*mut core::ffi::c_void, u32, DWRITE_FONT_PROPERTY_ID, *mut windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetPropertyOccurrenceCount: unsafe extern "system" fn(*mut core::ffi::c_void, *const DWRITE_FONT_PROPERTY, *mut u32) -> windows_core::HRESULT, pub GetMatchingFonts: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, DWRITE_FONT_WEIGHT, DWRITE_FONT_STRETCH, DWRITE_FONT_STYLE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetMatchingFonts2: unsafe extern "system" fn(*mut core::ffi::c_void, *const DWRITE_FONT_PROPERTY, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -7241,11 +7241,11 @@ unsafe impl Sync for IDWriteFontSet {} pub trait IDWriteFontSet_Impl: windows_core::IUnknownImpl { fn GetFontCount(&self) -> u32; fn GetFontFaceReference(&self, listindex: u32) -> windows_core::Result; - fn FindFontFaceReference(&self, fontfacereference: windows_core::Ref, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn FindFontFace(&self, fontface: windows_core::Ref, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn FindFontFaceReference(&self, fontfacereference: windows_core::Ref, listindex: *mut u32, exists: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn FindFontFace(&self, fontface: windows_core::Ref, listindex: *mut u32, exists: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetPropertyValues(&self, propertyid: DWRITE_FONT_PROPERTY_ID) -> windows_core::Result; fn GetPropertyValues2(&self, propertyid: DWRITE_FONT_PROPERTY_ID, preferredlocalenames: &windows_core::PCWSTR) -> windows_core::Result; - fn GetPropertyValues3(&self, listindex: u32, propertyid: DWRITE_FONT_PROPERTY_ID, exists: *mut super::super::Foundation::BOOL, values: windows_core::OutRef<'_, IDWriteLocalizedStrings>) -> windows_core::Result<()>; + fn GetPropertyValues3(&self, listindex: u32, propertyid: DWRITE_FONT_PROPERTY_ID, exists: *mut windows_core::BOOL, values: windows_core::OutRef<'_, IDWriteLocalizedStrings>) -> windows_core::Result<()>; fn GetPropertyOccurrenceCount(&self, property: *const DWRITE_FONT_PROPERTY) -> windows_core::Result; fn GetMatchingFonts(&self, familyname: &windows_core::PCWSTR, fontweight: DWRITE_FONT_WEIGHT, fontstretch: DWRITE_FONT_STRETCH, fontstyle: DWRITE_FONT_STYLE) -> windows_core::Result; fn GetMatchingFonts2(&self, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32) -> windows_core::Result; @@ -7270,13 +7270,13 @@ impl IDWriteFontSet_Vtbl { } } } - unsafe extern "system" fn FindFontFaceReference(this: *mut core::ffi::c_void, fontfacereference: *mut core::ffi::c_void, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn FindFontFaceReference(this: *mut core::ffi::c_void, fontfacereference: *mut core::ffi::c_void, listindex: *mut u32, exists: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet_Impl::FindFontFaceReference(this, core::mem::transmute_copy(&fontfacereference), core::mem::transmute_copy(&listindex), core::mem::transmute_copy(&exists)).into() } } - unsafe extern "system" fn FindFontFace(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, listindex: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn FindFontFace(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, listindex: *mut u32, exists: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet_Impl::FindFontFace(this, core::mem::transmute_copy(&fontface), core::mem::transmute_copy(&listindex), core::mem::transmute_copy(&exists)).into() @@ -7306,7 +7306,7 @@ impl IDWriteFontSet_Vtbl { } } } - unsafe extern "system" fn GetPropertyValues3(this: *mut core::ffi::c_void, listindex: u32, propertyid: DWRITE_FONT_PROPERTY_ID, exists: *mut super::super::Foundation::BOOL, values: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetPropertyValues3(this: *mut core::ffi::c_void, listindex: u32, propertyid: DWRITE_FONT_PROPERTY_ID, exists: *mut windows_core::BOOL, values: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet_Impl::GetPropertyValues3(this, core::mem::transmute_copy(&listindex), core::mem::transmute_copy(&propertyid), core::mem::transmute_copy(&exists), core::mem::transmute_copy(&values)).into() @@ -7446,10 +7446,10 @@ pub struct IDWriteFontSet1_Vtbl { pub GetMatchingFonts: unsafe extern "system" fn(*mut core::ffi::c_void, *const DWRITE_FONT_PROPERTY, *const DWRITE_FONT_AXIS_VALUE, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetFirstFontResources: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetFilteredFonts: unsafe extern "system" fn(*mut core::ffi::c_void, *const u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetFilteredFonts2: unsafe extern "system" fn(*mut core::ffi::c_void, *const DWRITE_FONT_AXIS_RANGE, u32, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetFilteredFonts3: unsafe extern "system" fn(*mut core::ffi::c_void, *const DWRITE_FONT_PROPERTY, u32, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetFilteredFontIndices: unsafe extern "system" fn(*mut core::ffi::c_void, *const DWRITE_FONT_AXIS_RANGE, u32, super::super::Foundation::BOOL, *mut u32, u32, *mut u32) -> windows_core::HRESULT, - pub GetFilteredFontIndices2: unsafe extern "system" fn(*mut core::ffi::c_void, *const DWRITE_FONT_PROPERTY, u32, super::super::Foundation::BOOL, *mut u32, u32, *mut u32) -> windows_core::HRESULT, + pub GetFilteredFonts2: unsafe extern "system" fn(*mut core::ffi::c_void, *const DWRITE_FONT_AXIS_RANGE, u32, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetFilteredFonts3: unsafe extern "system" fn(*mut core::ffi::c_void, *const DWRITE_FONT_PROPERTY, u32, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetFilteredFontIndices: unsafe extern "system" fn(*mut core::ffi::c_void, *const DWRITE_FONT_AXIS_RANGE, u32, windows_core::BOOL, *mut u32, u32, *mut u32) -> windows_core::HRESULT, + pub GetFilteredFontIndices2: unsafe extern "system" fn(*mut core::ffi::c_void, *const DWRITE_FONT_PROPERTY, u32, windows_core::BOOL, *mut u32, u32, *mut u32) -> windows_core::HRESULT, pub GetFontAxisRanges: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut DWRITE_FONT_AXIS_RANGE, u32, *mut u32) -> windows_core::HRESULT, pub GetFontAxisRanges2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DWRITE_FONT_AXIS_RANGE, u32, *mut u32) -> windows_core::HRESULT, pub GetFontFaceReference: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -7463,10 +7463,10 @@ pub trait IDWriteFontSet1_Impl: IDWriteFontSet_Impl { fn GetMatchingFonts(&self, fontproperty: *const DWRITE_FONT_PROPERTY, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32) -> windows_core::Result; fn GetFirstFontResources(&self) -> windows_core::Result; fn GetFilteredFonts(&self, indices: *const u32, indexcount: u32) -> windows_core::Result; - fn GetFilteredFonts2(&self, fontaxisranges: *const DWRITE_FONT_AXIS_RANGE, fontaxisrangecount: u32, selectanyrange: super::super::Foundation::BOOL) -> windows_core::Result; - fn GetFilteredFonts3(&self, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32, selectanyproperty: super::super::Foundation::BOOL) -> windows_core::Result; - fn GetFilteredFontIndices(&self, fontaxisranges: *const DWRITE_FONT_AXIS_RANGE, fontaxisrangecount: u32, selectanyrange: super::super::Foundation::BOOL, indices: *mut u32, maxindexcount: u32, actualindexcount: *mut u32) -> windows_core::Result<()>; - fn GetFilteredFontIndices2(&self, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32, selectanyproperty: super::super::Foundation::BOOL, indices: *mut u32, maxindexcount: u32, actualindexcount: *mut u32) -> windows_core::Result<()>; + fn GetFilteredFonts2(&self, fontaxisranges: *const DWRITE_FONT_AXIS_RANGE, fontaxisrangecount: u32, selectanyrange: windows_core::BOOL) -> windows_core::Result; + fn GetFilteredFonts3(&self, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32, selectanyproperty: windows_core::BOOL) -> windows_core::Result; + fn GetFilteredFontIndices(&self, fontaxisranges: *const DWRITE_FONT_AXIS_RANGE, fontaxisrangecount: u32, selectanyrange: windows_core::BOOL, indices: *mut u32, maxindexcount: u32, actualindexcount: *mut u32) -> windows_core::Result<()>; + fn GetFilteredFontIndices2(&self, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32, selectanyproperty: windows_core::BOOL, indices: *mut u32, maxindexcount: u32, actualindexcount: *mut u32) -> windows_core::Result<()>; fn GetFontAxisRanges(&self, listindex: u32, fontaxisranges: *mut DWRITE_FONT_AXIS_RANGE, maxfontaxisrangecount: u32, actualfontaxisrangecount: *mut u32) -> windows_core::Result<()>; fn GetFontAxisRanges2(&self, fontaxisranges: *mut DWRITE_FONT_AXIS_RANGE, maxfontaxisrangecount: u32, actualfontaxisrangecount: *mut u32) -> windows_core::Result<()>; fn GetFontFaceReference(&self, listindex: u32) -> windows_core::Result; @@ -7512,7 +7512,7 @@ impl IDWriteFontSet1_Vtbl { } } } - unsafe extern "system" fn GetFilteredFonts2(this: *mut core::ffi::c_void, fontaxisranges: *const DWRITE_FONT_AXIS_RANGE, fontaxisrangecount: u32, selectanyrange: super::super::Foundation::BOOL, filteredfontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetFilteredFonts2(this: *mut core::ffi::c_void, fontaxisranges: *const DWRITE_FONT_AXIS_RANGE, fontaxisrangecount: u32, selectanyrange: windows_core::BOOL, filteredfontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontSet1_Impl::GetFilteredFonts2(this, core::mem::transmute_copy(&fontaxisranges), core::mem::transmute_copy(&fontaxisrangecount), core::mem::transmute_copy(&selectanyrange)) { @@ -7524,7 +7524,7 @@ impl IDWriteFontSet1_Vtbl { } } } - unsafe extern "system" fn GetFilteredFonts3(this: *mut core::ffi::c_void, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32, selectanyproperty: super::super::Foundation::BOOL, filteredfontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetFilteredFonts3(this: *mut core::ffi::c_void, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32, selectanyproperty: windows_core::BOOL, filteredfontset: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWriteFontSet1_Impl::GetFilteredFonts3(this, core::mem::transmute_copy(&properties), core::mem::transmute_copy(&propertycount), core::mem::transmute_copy(&selectanyproperty)) { @@ -7536,13 +7536,13 @@ impl IDWriteFontSet1_Vtbl { } } } - unsafe extern "system" fn GetFilteredFontIndices(this: *mut core::ffi::c_void, fontaxisranges: *const DWRITE_FONT_AXIS_RANGE, fontaxisrangecount: u32, selectanyrange: super::super::Foundation::BOOL, indices: *mut u32, maxindexcount: u32, actualindexcount: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn GetFilteredFontIndices(this: *mut core::ffi::c_void, fontaxisranges: *const DWRITE_FONT_AXIS_RANGE, fontaxisrangecount: u32, selectanyrange: windows_core::BOOL, indices: *mut u32, maxindexcount: u32, actualindexcount: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet1_Impl::GetFilteredFontIndices(this, core::mem::transmute_copy(&fontaxisranges), core::mem::transmute_copy(&fontaxisrangecount), core::mem::transmute_copy(&selectanyrange), core::mem::transmute_copy(&indices), core::mem::transmute_copy(&maxindexcount), core::mem::transmute_copy(&actualindexcount)).into() } } - unsafe extern "system" fn GetFilteredFontIndices2(this: *mut core::ffi::c_void, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32, selectanyproperty: super::super::Foundation::BOOL, indices: *mut u32, maxindexcount: u32, actualindexcount: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn GetFilteredFontIndices2(this: *mut core::ffi::c_void, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32, selectanyproperty: windows_core::BOOL, indices: *mut u32, maxindexcount: u32, actualindexcount: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteFontSet1_Impl::GetFilteredFontIndices2(this, core::mem::transmute_copy(&properties), core::mem::transmute_copy(&propertycount), core::mem::transmute_copy(&selectanyproperty), core::mem::transmute_copy(&indices), core::mem::transmute_copy(&maxindexcount), core::mem::transmute_copy(&actualindexcount)).into() @@ -7992,7 +7992,7 @@ impl IDWriteGdiInterop { } } #[cfg(feature = "Win32_Graphics_Gdi")] - pub unsafe fn ConvertFontToLOGFONT(&self, font: P0, logfont: *mut super::Gdi::LOGFONTW, issystemfont: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn ConvertFontToLOGFONT(&self, font: P0, logfont: *mut super::Gdi::LOGFONTW, issystemfont: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -8028,7 +8028,7 @@ pub struct IDWriteGdiInterop_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] CreateFontFromLOGFONT: usize, #[cfg(feature = "Win32_Graphics_Gdi")] - pub ConvertFontToLOGFONT: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::Gdi::LOGFONTW, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ConvertFontToLOGFONT: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::Gdi::LOGFONTW, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] ConvertFontToLOGFONT: usize, #[cfg(feature = "Win32_Graphics_Gdi")] @@ -8049,7 +8049,7 @@ unsafe impl Sync for IDWriteGdiInterop {} #[cfg(feature = "Win32_Graphics_Gdi")] pub trait IDWriteGdiInterop_Impl: windows_core::IUnknownImpl { fn CreateFontFromLOGFONT(&self, logfont: *const super::Gdi::LOGFONTW) -> windows_core::Result; - fn ConvertFontToLOGFONT(&self, font: windows_core::Ref, logfont: *mut super::Gdi::LOGFONTW, issystemfont: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ConvertFontToLOGFONT(&self, font: windows_core::Ref, logfont: *mut super::Gdi::LOGFONTW, issystemfont: *mut windows_core::BOOL) -> windows_core::Result<()>; fn ConvertFontFaceToLOGFONT(&self, font: windows_core::Ref, logfont: *mut super::Gdi::LOGFONTW) -> windows_core::Result<()>; fn CreateFontFaceFromHdc(&self, hdc: super::Gdi::HDC) -> windows_core::Result; fn CreateBitmapRenderTarget(&self, hdc: super::Gdi::HDC, width: u32, height: u32) -> windows_core::Result; @@ -8069,7 +8069,7 @@ impl IDWriteGdiInterop_Vtbl { } } } - unsafe extern "system" fn ConvertFontToLOGFONT(this: *mut core::ffi::c_void, font: *mut core::ffi::c_void, logfont: *mut super::Gdi::LOGFONTW, issystemfont: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ConvertFontToLOGFONT(this: *mut core::ffi::c_void, font: *mut core::ffi::c_void, logfont: *mut super::Gdi::LOGFONTW, issystemfont: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteGdiInterop_Impl::ConvertFontToLOGFONT(this, core::mem::transmute_copy(&font), core::mem::transmute_copy(&logfont), core::mem::transmute_copy(&issystemfont)).into() @@ -8412,7 +8412,7 @@ impl IDWriteInlineObject { #[repr(C)] pub struct IDWriteInlineObject_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Draw: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, *mut core::ffi::c_void, f32, f32, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub Draw: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, *mut core::ffi::c_void, f32, f32, windows_core::BOOL, windows_core::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetMetrics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DWRITE_INLINE_OBJECT_METRICS) -> windows_core::HRESULT, pub GetOverhangMetrics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DWRITE_OVERHANG_METRICS) -> windows_core::HRESULT, pub GetBreakConditions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DWRITE_BREAK_CONDITION, *mut DWRITE_BREAK_CONDITION) -> windows_core::HRESULT, @@ -8420,14 +8420,14 @@ pub struct IDWriteInlineObject_Vtbl { unsafe impl Send for IDWriteInlineObject {} unsafe impl Sync for IDWriteInlineObject {} pub trait IDWriteInlineObject_Impl: windows_core::IUnknownImpl { - fn Draw(&self, clientdrawingcontext: *const core::ffi::c_void, renderer: windows_core::Ref, originx: f32, originy: f32, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, clientdrawingeffect: windows_core::Ref) -> windows_core::Result<()>; + fn Draw(&self, clientdrawingcontext: *const core::ffi::c_void, renderer: windows_core::Ref, originx: f32, originy: f32, issideways: windows_core::BOOL, isrighttoleft: windows_core::BOOL, clientdrawingeffect: windows_core::Ref) -> windows_core::Result<()>; fn GetMetrics(&self) -> windows_core::Result; fn GetOverhangMetrics(&self) -> windows_core::Result; fn GetBreakConditions(&self, breakconditionbefore: *mut DWRITE_BREAK_CONDITION, breakconditionafter: *mut DWRITE_BREAK_CONDITION) -> windows_core::Result<()>; } impl IDWriteInlineObject_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, renderer: *mut core::ffi::c_void, originx: f32, originy: f32, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, renderer: *mut core::ffi::c_void, originx: f32, originy: f32, issideways: windows_core::BOOL, isrighttoleft: windows_core::BOOL, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteInlineObject_Impl::Draw(this, core::mem::transmute_copy(&clientdrawingcontext), core::mem::transmute_copy(&renderer), core::mem::transmute_copy(&originx), core::mem::transmute_copy(&originy), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&isrighttoleft), core::mem::transmute_copy(&clientdrawingeffect)).into() @@ -8565,7 +8565,7 @@ impl IDWriteLocalizedStrings { pub unsafe fn GetCount(&self) -> u32 { unsafe { (windows_core::Interface::vtable(self).GetCount)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn FindLocaleName(&self, localename: P0, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn FindLocaleName(&self, localename: P0, index: *mut u32, exists: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -8594,7 +8594,7 @@ impl IDWriteLocalizedStrings { pub struct IDWriteLocalizedStrings_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCount: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, - pub FindLocaleName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub FindLocaleName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetLocaleNameLength: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, pub GetLocaleName: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PWSTR, u32) -> windows_core::HRESULT, pub GetStringLength: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, @@ -8604,7 +8604,7 @@ unsafe impl Send for IDWriteLocalizedStrings {} unsafe impl Sync for IDWriteLocalizedStrings {} pub trait IDWriteLocalizedStrings_Impl: windows_core::IUnknownImpl { fn GetCount(&self) -> u32; - fn FindLocaleName(&self, localename: &windows_core::PCWSTR, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn FindLocaleName(&self, localename: &windows_core::PCWSTR, index: *mut u32, exists: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetLocaleNameLength(&self, index: u32) -> windows_core::Result; fn GetLocaleName(&self, index: u32, localename: windows_core::PWSTR, size: u32) -> windows_core::Result<()>; fn GetStringLength(&self, index: u32) -> windows_core::Result; @@ -8618,7 +8618,7 @@ impl IDWriteLocalizedStrings_Vtbl { IDWriteLocalizedStrings_Impl::GetCount(this) } } - unsafe extern "system" fn FindLocaleName(this: *mut core::ffi::c_void, localename: windows_core::PCWSTR, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn FindLocaleName(this: *mut core::ffi::c_void, localename: windows_core::PCWSTR, index: *mut u32, exists: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteLocalizedStrings_Impl::FindLocaleName(this, core::mem::transmute(&localename), core::mem::transmute_copy(&index), core::mem::transmute_copy(&exists)).into() @@ -8846,7 +8846,7 @@ impl windows_core::RuntimeName for IDWritePaintReader {} windows_core::imp::define_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: Option<*const core::ffi::c_void>) -> windows_core::Result { + pub unsafe fn IsPixelSnappingDisabled(&self, clientdrawingcontext: Option<*const core::ffi::c_void>) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsPixelSnappingDisabled)(windows_core::Interface::as_raw(self), clientdrawingcontext.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| result__) @@ -8865,20 +8865,20 @@ impl IDWritePixelSnapping { #[repr(C)] pub struct IDWritePixelSnapping_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsPixelSnappingDisabled: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsPixelSnappingDisabled: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetCurrentTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, *mut DWRITE_MATRIX) -> windows_core::HRESULT, pub GetPixelsPerDip: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, *mut f32) -> windows_core::HRESULT, } unsafe impl Send for IDWritePixelSnapping {} unsafe impl Sync for IDWritePixelSnapping {} pub trait IDWritePixelSnapping_Impl: windows_core::IUnknownImpl { - fn IsPixelSnappingDisabled(&self, clientdrawingcontext: *const core::ffi::c_void) -> windows_core::Result; + fn IsPixelSnappingDisabled(&self, clientdrawingcontext: *const core::ffi::c_void) -> windows_core::Result; fn GetCurrentTransform(&self, clientdrawingcontext: *const core::ffi::c_void, transform: *mut DWRITE_MATRIX) -> windows_core::Result<()>; fn GetPixelsPerDip(&self, clientdrawingcontext: *const core::ffi::c_void) -> windows_core::Result; } impl IDWritePixelSnapping_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsPixelSnappingDisabled(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, isdisabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsPixelSnappingDisabled(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, isdisabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDWritePixelSnapping_Impl::IsPixelSnappingDisabled(this, core::mem::transmute_copy(&clientdrawingcontext)) { @@ -9032,7 +9032,7 @@ impl IDWriteRemoteFontFileStream { (windows_core::Interface::vtable(self).GetLocalFileSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetFileFragmentLocality(&self, fileoffset: u64, fragmentsize: u64, islocal: *mut super::super::Foundation::BOOL, partialsize: *mut u64) -> windows_core::Result<()> { + pub unsafe fn GetFileFragmentLocality(&self, fileoffset: u64, fragmentsize: u64, islocal: *mut windows_core::BOOL, partialsize: *mut u64) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetFileFragmentLocality)(windows_core::Interface::as_raw(self), fileoffset, fragmentsize, islocal as _, partialsize as _).ok() } } pub unsafe fn GetLocality(&self) -> DWRITE_LOCALITY { @@ -9049,7 +9049,7 @@ impl IDWriteRemoteFontFileStream { pub struct IDWriteRemoteFontFileStream_Vtbl { pub base__: IDWriteFontFileStream_Vtbl, pub GetLocalFileSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, - pub GetFileFragmentLocality: unsafe extern "system" fn(*mut core::ffi::c_void, u64, u64, *mut super::super::Foundation::BOOL, *mut u64) -> windows_core::HRESULT, + pub GetFileFragmentLocality: unsafe extern "system" fn(*mut core::ffi::c_void, u64, u64, *mut windows_core::BOOL, *mut u64) -> windows_core::HRESULT, pub GetLocality: unsafe extern "system" fn(*mut core::ffi::c_void) -> DWRITE_LOCALITY, pub BeginDownload: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const DWRITE_FILE_FRAGMENT, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -9057,7 +9057,7 @@ unsafe impl Send for IDWriteRemoteFontFileStream {} unsafe impl Sync for IDWriteRemoteFontFileStream {} pub trait IDWriteRemoteFontFileStream_Impl: IDWriteFontFileStream_Impl { fn GetLocalFileSize(&self) -> windows_core::Result; - fn GetFileFragmentLocality(&self, fileoffset: u64, fragmentsize: u64, islocal: *mut super::super::Foundation::BOOL, partialsize: *mut u64) -> windows_core::Result<()>; + fn GetFileFragmentLocality(&self, fileoffset: u64, fragmentsize: u64, islocal: *mut windows_core::BOOL, partialsize: *mut u64) -> windows_core::Result<()>; fn GetLocality(&self) -> DWRITE_LOCALITY; fn BeginDownload(&self, downloadoperationid: *const windows_core::GUID, filefragments: *const DWRITE_FILE_FRAGMENT, fragmentcount: u32) -> windows_core::Result; } @@ -9075,7 +9075,7 @@ impl IDWriteRemoteFontFileStream_Vtbl { } } } - unsafe extern "system" fn GetFileFragmentLocality(this: *mut core::ffi::c_void, fileoffset: u64, fragmentsize: u64, islocal: *mut super::super::Foundation::BOOL, partialsize: *mut u64) -> windows_core::HRESULT { + unsafe extern "system" fn GetFileFragmentLocality(this: *mut core::ffi::c_void, fileoffset: u64, fragmentsize: u64, islocal: *mut windows_core::BOOL, partialsize: *mut u64) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteRemoteFontFileStream_Impl::GetFileFragmentLocality(this, core::mem::transmute_copy(&fileoffset), core::mem::transmute_copy(&fragmentsize), core::mem::transmute_copy(&islocal), core::mem::transmute_copy(&partialsize)).into() @@ -9500,16 +9500,16 @@ impl IDWriteTextAnalysisSink1 { #[repr(C)] pub struct IDWriteTextAnalysisSink1_Vtbl { pub base__: IDWriteTextAnalysisSink_Vtbl, - pub SetGlyphOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, DWRITE_GLYPH_ORIENTATION_ANGLE, u8, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetGlyphOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, DWRITE_GLYPH_ORIENTATION_ANGLE, u8, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, } unsafe impl Send for IDWriteTextAnalysisSink1 {} unsafe impl Sync for IDWriteTextAnalysisSink1 {} pub trait IDWriteTextAnalysisSink1_Impl: IDWriteTextAnalysisSink_Impl { - fn SetGlyphOrientation(&self, textposition: u32, textlength: u32, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, adjustedbidilevel: u8, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetGlyphOrientation(&self, textposition: u32, textlength: u32, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, adjustedbidilevel: u8, issideways: windows_core::BOOL, isrighttoleft: windows_core::BOOL) -> windows_core::Result<()>; } impl IDWriteTextAnalysisSink1_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetGlyphOrientation(this: *mut core::ffi::c_void, textposition: u32, textlength: u32, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, adjustedbidilevel: u8, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetGlyphOrientation(this: *mut core::ffi::c_void, textposition: u32, textlength: u32, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, adjustedbidilevel: u8, issideways: windows_core::BOOL, isrighttoleft: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalysisSink1_Impl::SetGlyphOrientation(this, core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), core::mem::transmute_copy(&glyphorientationangle), core::mem::transmute_copy(&adjustedbidilevel), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&isrighttoleft)).into() @@ -9733,9 +9733,9 @@ pub struct IDWriteTextAnalyzer_Vtbl { pub AnalyzeBidi: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, pub AnalyzeNumberSubstitution: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, pub AnalyzeLineBreakpoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetGlyphs: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *const DWRITE_SCRIPT_ANALYSIS, windows_core::PCWSTR, *mut core::ffi::c_void, *const *const DWRITE_TYPOGRAPHIC_FEATURES, *const u32, u32, u32, *mut u16, *mut DWRITE_SHAPING_TEXT_PROPERTIES, *mut u16, *mut DWRITE_SHAPING_GLYPH_PROPERTIES, *mut u32) -> windows_core::HRESULT, - pub GetGlyphPlacements: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const u16, *mut DWRITE_SHAPING_TEXT_PROPERTIES, u32, *const u16, *const DWRITE_SHAPING_GLYPH_PROPERTIES, u32, *mut core::ffi::c_void, f32, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *const DWRITE_SCRIPT_ANALYSIS, windows_core::PCWSTR, *const *const DWRITE_TYPOGRAPHIC_FEATURES, *const u32, u32, *mut f32, *mut DWRITE_GLYPH_OFFSET) -> windows_core::HRESULT, - pub GetGdiCompatibleGlyphPlacements: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const u16, *const DWRITE_SHAPING_TEXT_PROPERTIES, u32, *const u16, *const DWRITE_SHAPING_GLYPH_PROPERTIES, u32, *mut core::ffi::c_void, f32, f32, *const DWRITE_MATRIX, super::super::Foundation::BOOL, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *const DWRITE_SCRIPT_ANALYSIS, windows_core::PCWSTR, *const *const DWRITE_TYPOGRAPHIC_FEATURES, *const u32, u32, *mut f32, *mut DWRITE_GLYPH_OFFSET) -> windows_core::HRESULT, + pub GetGlyphs: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL, *const DWRITE_SCRIPT_ANALYSIS, windows_core::PCWSTR, *mut core::ffi::c_void, *const *const DWRITE_TYPOGRAPHIC_FEATURES, *const u32, u32, u32, *mut u16, *mut DWRITE_SHAPING_TEXT_PROPERTIES, *mut u16, *mut DWRITE_SHAPING_GLYPH_PROPERTIES, *mut u32) -> windows_core::HRESULT, + pub GetGlyphPlacements: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const u16, *mut DWRITE_SHAPING_TEXT_PROPERTIES, u32, *const u16, *const DWRITE_SHAPING_GLYPH_PROPERTIES, u32, *mut core::ffi::c_void, f32, windows_core::BOOL, windows_core::BOOL, *const DWRITE_SCRIPT_ANALYSIS, windows_core::PCWSTR, *const *const DWRITE_TYPOGRAPHIC_FEATURES, *const u32, u32, *mut f32, *mut DWRITE_GLYPH_OFFSET) -> windows_core::HRESULT, + pub GetGdiCompatibleGlyphPlacements: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const u16, *const DWRITE_SHAPING_TEXT_PROPERTIES, u32, *const u16, *const DWRITE_SHAPING_GLYPH_PROPERTIES, u32, *mut core::ffi::c_void, f32, f32, *const DWRITE_MATRIX, windows_core::BOOL, windows_core::BOOL, windows_core::BOOL, *const DWRITE_SCRIPT_ANALYSIS, windows_core::PCWSTR, *const *const DWRITE_TYPOGRAPHIC_FEATURES, *const u32, u32, *mut f32, *mut DWRITE_GLYPH_OFFSET) -> windows_core::HRESULT, } unsafe impl Send for IDWriteTextAnalyzer {} unsafe impl Sync for IDWriteTextAnalyzer {} @@ -9744,32 +9744,9 @@ pub trait IDWriteTextAnalyzer_Impl: windows_core::IUnknownImpl { fn AnalyzeBidi(&self, analysissource: windows_core::Ref, textposition: u32, textlength: u32, analysissink: windows_core::Ref) -> windows_core::Result<()>; fn AnalyzeNumberSubstitution(&self, analysissource: windows_core::Ref, textposition: u32, textlength: u32, analysissink: windows_core::Ref) -> windows_core::Result<()>; fn AnalyzeLineBreakpoints(&self, analysissource: windows_core::Ref, textposition: u32, textlength: u32, analysissink: windows_core::Ref) -> windows_core::Result<()>; - fn GetGlyphs(&self, textstring: &windows_core::PCWSTR, textlength: u32, fontface: windows_core::Ref, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: &windows_core::PCWSTR, numbersubstitution: windows_core::Ref, features: *const *const DWRITE_TYPOGRAPHIC_FEATURES, featurerangelengths: *const u32, featureranges: u32, maxglyphcount: u32, clustermap: *mut u16, textprops: *mut DWRITE_SHAPING_TEXT_PROPERTIES, glyphindices: *mut u16, glyphprops: *mut DWRITE_SHAPING_GLYPH_PROPERTIES, actualglyphcount: *mut u32) -> windows_core::Result<()>; - fn GetGlyphPlacements(&self, textstring: &windows_core::PCWSTR, clustermap: *const u16, textprops: *mut DWRITE_SHAPING_TEXT_PROPERTIES, textlength: u32, glyphindices: *const u16, glyphprops: *const DWRITE_SHAPING_GLYPH_PROPERTIES, glyphcount: u32, fontface: windows_core::Ref, fontemsize: f32, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: &windows_core::PCWSTR, features: *const *const DWRITE_TYPOGRAPHIC_FEATURES, featurerangelengths: *const u32, featureranges: u32, glyphadvances: *mut f32, glyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::Result<()>; - fn GetGdiCompatibleGlyphPlacements( - &self, - textstring: &windows_core::PCWSTR, - clustermap: *const u16, - textprops: *const DWRITE_SHAPING_TEXT_PROPERTIES, - textlength: u32, - glyphindices: *const u16, - glyphprops: *const DWRITE_SHAPING_GLYPH_PROPERTIES, - glyphcount: u32, - fontface: windows_core::Ref, - fontemsize: f32, - pixelsperdip: f32, - transform: *const DWRITE_MATRIX, - usegdinatural: super::super::Foundation::BOOL, - issideways: super::super::Foundation::BOOL, - isrighttoleft: super::super::Foundation::BOOL, - scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, - localename: &windows_core::PCWSTR, - features: *const *const DWRITE_TYPOGRAPHIC_FEATURES, - featurerangelengths: *const u32, - featureranges: u32, - glyphadvances: *mut f32, - glyphoffsets: *mut DWRITE_GLYPH_OFFSET, - ) -> windows_core::Result<()>; + fn GetGlyphs(&self, textstring: &windows_core::PCWSTR, textlength: u32, fontface: windows_core::Ref, issideways: windows_core::BOOL, isrighttoleft: windows_core::BOOL, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: &windows_core::PCWSTR, numbersubstitution: windows_core::Ref, features: *const *const DWRITE_TYPOGRAPHIC_FEATURES, featurerangelengths: *const u32, featureranges: u32, maxglyphcount: u32, clustermap: *mut u16, textprops: *mut DWRITE_SHAPING_TEXT_PROPERTIES, glyphindices: *mut u16, glyphprops: *mut DWRITE_SHAPING_GLYPH_PROPERTIES, actualglyphcount: *mut u32) -> windows_core::Result<()>; + fn GetGlyphPlacements(&self, textstring: &windows_core::PCWSTR, clustermap: *const u16, textprops: *mut DWRITE_SHAPING_TEXT_PROPERTIES, textlength: u32, glyphindices: *const u16, glyphprops: *const DWRITE_SHAPING_GLYPH_PROPERTIES, glyphcount: u32, fontface: windows_core::Ref, fontemsize: f32, issideways: windows_core::BOOL, isrighttoleft: windows_core::BOOL, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: &windows_core::PCWSTR, features: *const *const DWRITE_TYPOGRAPHIC_FEATURES, featurerangelengths: *const u32, featureranges: u32, glyphadvances: *mut f32, glyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::Result<()>; + fn GetGdiCompatibleGlyphPlacements(&self, textstring: &windows_core::PCWSTR, clustermap: *const u16, textprops: *const DWRITE_SHAPING_TEXT_PROPERTIES, textlength: u32, glyphindices: *const u16, glyphprops: *const DWRITE_SHAPING_GLYPH_PROPERTIES, glyphcount: u32, fontface: windows_core::Ref, fontemsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: windows_core::BOOL, issideways: windows_core::BOOL, isrighttoleft: windows_core::BOOL, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: &windows_core::PCWSTR, features: *const *const DWRITE_TYPOGRAPHIC_FEATURES, featurerangelengths: *const u32, featureranges: u32, glyphadvances: *mut f32, glyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::Result<()>; } impl IDWriteTextAnalyzer_Vtbl { pub const fn new() -> Self { @@ -9797,7 +9774,7 @@ impl IDWriteTextAnalyzer_Vtbl { IDWriteTextAnalyzer_Impl::AnalyzeLineBreakpoints(this, core::mem::transmute_copy(&analysissource), core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), core::mem::transmute_copy(&analysissink)).into() } } - unsafe extern "system" fn GetGlyphs(this: *mut core::ffi::c_void, textstring: windows_core::PCWSTR, textlength: u32, fontface: *mut core::ffi::c_void, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: windows_core::PCWSTR, numbersubstitution: *mut core::ffi::c_void, features: *const *const DWRITE_TYPOGRAPHIC_FEATURES, featurerangelengths: *const u32, featureranges: u32, maxglyphcount: u32, clustermap: *mut u16, textprops: *mut DWRITE_SHAPING_TEXT_PROPERTIES, glyphindices: *mut u16, glyphprops: *mut DWRITE_SHAPING_GLYPH_PROPERTIES, actualglyphcount: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn GetGlyphs(this: *mut core::ffi::c_void, textstring: windows_core::PCWSTR, textlength: u32, fontface: *mut core::ffi::c_void, issideways: windows_core::BOOL, isrighttoleft: windows_core::BOOL, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: windows_core::PCWSTR, numbersubstitution: *mut core::ffi::c_void, features: *const *const DWRITE_TYPOGRAPHIC_FEATURES, featurerangelengths: *const u32, featureranges: u32, maxglyphcount: u32, clustermap: *mut u16, textprops: *mut DWRITE_SHAPING_TEXT_PROPERTIES, glyphindices: *mut u16, glyphprops: *mut DWRITE_SHAPING_GLYPH_PROPERTIES, actualglyphcount: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer_Impl::GetGlyphs( @@ -9823,7 +9800,7 @@ impl IDWriteTextAnalyzer_Vtbl { .into() } } - unsafe extern "system" fn GetGlyphPlacements(this: *mut core::ffi::c_void, textstring: windows_core::PCWSTR, clustermap: *const u16, textprops: *mut DWRITE_SHAPING_TEXT_PROPERTIES, textlength: u32, glyphindices: *const u16, glyphprops: *const DWRITE_SHAPING_GLYPH_PROPERTIES, glyphcount: u32, fontface: *mut core::ffi::c_void, fontemsize: f32, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: windows_core::PCWSTR, features: *const *const DWRITE_TYPOGRAPHIC_FEATURES, featurerangelengths: *const u32, featureranges: u32, glyphadvances: *mut f32, glyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::HRESULT { + unsafe extern "system" fn GetGlyphPlacements(this: *mut core::ffi::c_void, textstring: windows_core::PCWSTR, clustermap: *const u16, textprops: *mut DWRITE_SHAPING_TEXT_PROPERTIES, textlength: u32, glyphindices: *const u16, glyphprops: *const DWRITE_SHAPING_GLYPH_PROPERTIES, glyphcount: u32, fontface: *mut core::ffi::c_void, fontemsize: f32, issideways: windows_core::BOOL, isrighttoleft: windows_core::BOOL, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: windows_core::PCWSTR, features: *const *const DWRITE_TYPOGRAPHIC_FEATURES, featurerangelengths: *const u32, featureranges: u32, glyphadvances: *mut f32, glyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer_Impl::GetGlyphPlacements( @@ -9863,9 +9840,9 @@ impl IDWriteTextAnalyzer_Vtbl { fontemsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, - usegdinatural: super::super::Foundation::BOOL, - issideways: super::super::Foundation::BOOL, - isrighttoleft: super::super::Foundation::BOOL, + usegdinatural: windows_core::BOOL, + issideways: windows_core::BOOL, + isrighttoleft: windows_core::BOOL, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS, localename: windows_core::PCWSTR, features: *const *const DWRITE_TYPOGRAPHIC_FEATURES, @@ -9931,7 +9908,7 @@ impl IDWriteTextAnalyzer1 { pub unsafe fn ApplyCharacterSpacing(&self, leadingspacing: f32, trailingspacing: f32, minimumadvancewidth: f32, glyphcount: u32, clustermap: &[u16], glyphadvances: *const f32, glyphoffsets: *const DWRITE_GLYPH_OFFSET, glyphproperties: *const DWRITE_SHAPING_GLYPH_PROPERTIES, modifiedglyphadvances: *mut f32, modifiedglyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).ApplyCharacterSpacing)(windows_core::Interface::as_raw(self), leadingspacing, trailingspacing, minimumadvancewidth, clustermap.len().try_into().unwrap(), glyphcount, core::mem::transmute(clustermap.as_ptr()), glyphadvances, glyphoffsets, glyphproperties, modifiedglyphadvances as _, modifiedglyphoffsets as _).ok() } } - pub unsafe fn GetBaseline(&self, fontface: P0, baseline: DWRITE_BASELINE, isvertical: bool, issimulationallowed: bool, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, localename: P5, baselinecoordinate: *mut i32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn GetBaseline(&self, fontface: P0, baseline: DWRITE_BASELINE, isvertical: bool, issimulationallowed: bool, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, localename: P5, baselinecoordinate: *mut i32, exists: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, P5: windows_core::Param, @@ -9951,7 +9928,7 @@ impl IDWriteTextAnalyzer1 { pub unsafe fn GetScriptProperties(&self, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, scriptproperties: *mut DWRITE_SCRIPT_PROPERTIES) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetScriptProperties)(windows_core::Interface::as_raw(self), core::mem::transmute(scriptanalysis), scriptproperties as _).ok() } } - pub unsafe fn GetTextComplexity(&self, textstring: P0, textlength: u32, fontface: P2, istextsimple: *mut super::super::Foundation::BOOL, textlengthread: *mut u32, glyphindices: Option<*mut u16>) -> windows_core::Result<()> + pub unsafe fn GetTextComplexity(&self, textstring: P0, textlength: u32, fontface: P2, istextsimple: *mut windows_core::BOOL, textlengthread: *mut u32, glyphindices: Option<*mut u16>) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, @@ -9979,11 +9956,11 @@ impl IDWriteTextAnalyzer1 { pub struct IDWriteTextAnalyzer1_Vtbl { pub base__: IDWriteTextAnalyzer_Vtbl, pub ApplyCharacterSpacing: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, f32, u32, u32, *const u16, *const f32, *const DWRITE_GLYPH_OFFSET, *const DWRITE_SHAPING_GLYPH_PROPERTIES, *mut f32, *mut DWRITE_GLYPH_OFFSET) -> windows_core::HRESULT, - pub GetBaseline: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, DWRITE_BASELINE, super::super::Foundation::BOOL, super::super::Foundation::BOOL, DWRITE_SCRIPT_ANALYSIS, windows_core::PCWSTR, *mut i32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetBaseline: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, DWRITE_BASELINE, windows_core::BOOL, windows_core::BOOL, DWRITE_SCRIPT_ANALYSIS, windows_core::PCWSTR, *mut i32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub AnalyzeVerticalGlyphOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetGlyphOrientationTransform: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_GLYPH_ORIENTATION_ANGLE, super::super::Foundation::BOOL, *mut DWRITE_MATRIX) -> windows_core::HRESULT, + pub GetGlyphOrientationTransform: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_GLYPH_ORIENTATION_ANGLE, windows_core::BOOL, *mut DWRITE_MATRIX) -> windows_core::HRESULT, pub GetScriptProperties: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_SCRIPT_ANALYSIS, *mut DWRITE_SCRIPT_PROPERTIES) -> windows_core::HRESULT, - pub GetTextComplexity: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut u32, *mut u16) -> windows_core::HRESULT, + pub GetTextComplexity: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *mut core::ffi::c_void, *mut windows_core::BOOL, *mut u32, *mut u16) -> windows_core::HRESULT, pub GetJustificationOpportunities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, f32, DWRITE_SCRIPT_ANALYSIS, u32, u32, windows_core::PCWSTR, *const u16, *const DWRITE_SHAPING_GLYPH_PROPERTIES, *mut DWRITE_JUSTIFICATION_OPPORTUNITY) -> windows_core::HRESULT, pub JustifyGlyphAdvances: unsafe extern "system" fn(*mut core::ffi::c_void, f32, u32, *const DWRITE_JUSTIFICATION_OPPORTUNITY, *const f32, *const DWRITE_GLYPH_OFFSET, *mut f32, *mut DWRITE_GLYPH_OFFSET) -> windows_core::HRESULT, pub GetJustifiedGlyphs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, f32, DWRITE_SCRIPT_ANALYSIS, u32, u32, u32, *const u16, *const u16, *const f32, *const f32, *const DWRITE_GLYPH_OFFSET, *const DWRITE_SHAPING_GLYPH_PROPERTIES, *mut u32, *mut u16, *mut u16, *mut f32, *mut DWRITE_GLYPH_OFFSET) -> windows_core::HRESULT, @@ -9992,11 +9969,11 @@ unsafe impl Send for IDWriteTextAnalyzer1 {} unsafe impl Sync for IDWriteTextAnalyzer1 {} pub trait IDWriteTextAnalyzer1_Impl: IDWriteTextAnalyzer_Impl { fn ApplyCharacterSpacing(&self, leadingspacing: f32, trailingspacing: f32, minimumadvancewidth: f32, textlength: u32, glyphcount: u32, clustermap: *const u16, glyphadvances: *const f32, glyphoffsets: *const DWRITE_GLYPH_OFFSET, glyphproperties: *const DWRITE_SHAPING_GLYPH_PROPERTIES, modifiedglyphadvances: *mut f32, modifiedglyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> windows_core::Result<()>; - fn GetBaseline(&self, fontface: windows_core::Ref, baseline: DWRITE_BASELINE, isvertical: super::super::Foundation::BOOL, issimulationallowed: super::super::Foundation::BOOL, scriptanalysis: &DWRITE_SCRIPT_ANALYSIS, localename: &windows_core::PCWSTR, baselinecoordinate: *mut i32, exists: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetBaseline(&self, fontface: windows_core::Ref, baseline: DWRITE_BASELINE, isvertical: windows_core::BOOL, issimulationallowed: windows_core::BOOL, scriptanalysis: &DWRITE_SCRIPT_ANALYSIS, localename: &windows_core::PCWSTR, baselinecoordinate: *mut i32, exists: *mut windows_core::BOOL) -> windows_core::Result<()>; fn AnalyzeVerticalGlyphOrientation(&self, analysissource: windows_core::Ref, textposition: u32, textlength: u32, analysissink: windows_core::Ref) -> windows_core::Result<()>; - fn GetGlyphOrientationTransform(&self, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, issideways: super::super::Foundation::BOOL, transform: *mut DWRITE_MATRIX) -> windows_core::Result<()>; + fn GetGlyphOrientationTransform(&self, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, issideways: windows_core::BOOL, transform: *mut DWRITE_MATRIX) -> windows_core::Result<()>; fn GetScriptProperties(&self, scriptanalysis: &DWRITE_SCRIPT_ANALYSIS, scriptproperties: *mut DWRITE_SCRIPT_PROPERTIES) -> windows_core::Result<()>; - fn GetTextComplexity(&self, textstring: &windows_core::PCWSTR, textlength: u32, fontface: windows_core::Ref, istextsimple: *mut super::super::Foundation::BOOL, textlengthread: *mut u32, glyphindices: *mut u16) -> windows_core::Result<()>; + fn GetTextComplexity(&self, textstring: &windows_core::PCWSTR, textlength: u32, fontface: windows_core::Ref, istextsimple: *mut windows_core::BOOL, textlengthread: *mut u32, glyphindices: *mut u16) -> windows_core::Result<()>; fn GetJustificationOpportunities(&self, fontface: windows_core::Ref, fontemsize: f32, scriptanalysis: &DWRITE_SCRIPT_ANALYSIS, textlength: u32, glyphcount: u32, textstring: &windows_core::PCWSTR, clustermap: *const u16, glyphproperties: *const DWRITE_SHAPING_GLYPH_PROPERTIES, justificationopportunities: *mut DWRITE_JUSTIFICATION_OPPORTUNITY) -> windows_core::Result<()>; fn JustifyGlyphAdvances(&self, 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::Result<()>; fn GetJustifiedGlyphs(&self, fontface: windows_core::Ref, 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::Result<()>; @@ -10023,7 +10000,7 @@ impl IDWriteTextAnalyzer1_Vtbl { .into() } } - unsafe extern "system" fn GetBaseline(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, baseline: DWRITE_BASELINE, isvertical: super::super::Foundation::BOOL, issimulationallowed: super::super::Foundation::BOOL, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, localename: windows_core::PCWSTR, baselinecoordinate: *mut i32, exists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetBaseline(this: *mut core::ffi::c_void, fontface: *mut core::ffi::c_void, baseline: DWRITE_BASELINE, isvertical: windows_core::BOOL, issimulationallowed: windows_core::BOOL, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, localename: windows_core::PCWSTR, baselinecoordinate: *mut i32, exists: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer1_Impl::GetBaseline(this, core::mem::transmute_copy(&fontface), core::mem::transmute_copy(&baseline), core::mem::transmute_copy(&isvertical), core::mem::transmute_copy(&issimulationallowed), core::mem::transmute(&scriptanalysis), core::mem::transmute(&localename), core::mem::transmute_copy(&baselinecoordinate), core::mem::transmute_copy(&exists)).into() @@ -10035,7 +10012,7 @@ impl IDWriteTextAnalyzer1_Vtbl { IDWriteTextAnalyzer1_Impl::AnalyzeVerticalGlyphOrientation(this, core::mem::transmute_copy(&analysissource), core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&textlength), core::mem::transmute_copy(&analysissink)).into() } } - unsafe extern "system" fn GetGlyphOrientationTransform(this: *mut core::ffi::c_void, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, issideways: super::super::Foundation::BOOL, transform: *mut DWRITE_MATRIX) -> windows_core::HRESULT { + unsafe extern "system" fn GetGlyphOrientationTransform(this: *mut core::ffi::c_void, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, issideways: windows_core::BOOL, transform: *mut DWRITE_MATRIX) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer1_Impl::GetGlyphOrientationTransform(this, core::mem::transmute_copy(&glyphorientationangle), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&transform)).into() @@ -10047,7 +10024,7 @@ impl IDWriteTextAnalyzer1_Vtbl { IDWriteTextAnalyzer1_Impl::GetScriptProperties(this, core::mem::transmute(&scriptanalysis), core::mem::transmute_copy(&scriptproperties)).into() } } - unsafe extern "system" fn GetTextComplexity(this: *mut core::ffi::c_void, textstring: windows_core::PCWSTR, textlength: u32, fontface: *mut core::ffi::c_void, istextsimple: *mut super::super::Foundation::BOOL, textlengthread: *mut u32, glyphindices: *mut u16) -> windows_core::HRESULT { + unsafe extern "system" fn GetTextComplexity(this: *mut core::ffi::c_void, textstring: windows_core::PCWSTR, textlength: u32, fontface: *mut core::ffi::c_void, istextsimple: *mut windows_core::BOOL, textlengthread: *mut u32, glyphindices: *mut u16) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer1_Impl::GetTextComplexity(this, core::mem::transmute(&textstring), core::mem::transmute_copy(&textlength), core::mem::transmute_copy(&fontface), core::mem::transmute_copy(&istextsimple), core::mem::transmute_copy(&textlengthread), core::mem::transmute_copy(&glyphindices)).into() @@ -10139,20 +10116,20 @@ impl IDWriteTextAnalyzer2 { #[repr(C)] pub struct IDWriteTextAnalyzer2_Vtbl { pub base__: IDWriteTextAnalyzer1_Vtbl, - pub GetGlyphOrientationTransform: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_GLYPH_ORIENTATION_ANGLE, super::super::Foundation::BOOL, f32, f32, *mut DWRITE_MATRIX) -> windows_core::HRESULT, + pub GetGlyphOrientationTransform: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_GLYPH_ORIENTATION_ANGLE, windows_core::BOOL, f32, f32, *mut DWRITE_MATRIX) -> windows_core::HRESULT, pub GetTypographicFeatures: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, DWRITE_SCRIPT_ANALYSIS, windows_core::PCWSTR, u32, *mut u32, *mut DWRITE_FONT_FEATURE_TAG) -> windows_core::HRESULT, pub CheckTypographicFeature: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, DWRITE_SCRIPT_ANALYSIS, windows_core::PCWSTR, DWRITE_FONT_FEATURE_TAG, u32, *const u16, *mut u8) -> windows_core::HRESULT, } unsafe impl Send for IDWriteTextAnalyzer2 {} unsafe impl Sync for IDWriteTextAnalyzer2 {} pub trait IDWriteTextAnalyzer2_Impl: IDWriteTextAnalyzer1_Impl { - fn GetGlyphOrientationTransform(&self, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, issideways: super::super::Foundation::BOOL, originx: f32, originy: f32, transform: *mut DWRITE_MATRIX) -> windows_core::Result<()>; + fn GetGlyphOrientationTransform(&self, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, issideways: windows_core::BOOL, originx: f32, originy: f32, transform: *mut DWRITE_MATRIX) -> windows_core::Result<()>; fn GetTypographicFeatures(&self, fontface: windows_core::Ref, scriptanalysis: &DWRITE_SCRIPT_ANALYSIS, localename: &windows_core::PCWSTR, maxtagcount: u32, actualtagcount: *mut u32, tags: *mut DWRITE_FONT_FEATURE_TAG) -> windows_core::Result<()>; fn CheckTypographicFeature(&self, fontface: windows_core::Ref, scriptanalysis: &DWRITE_SCRIPT_ANALYSIS, localename: &windows_core::PCWSTR, featuretag: DWRITE_FONT_FEATURE_TAG, glyphcount: u32, glyphindices: *const u16, featureapplies: *mut u8) -> windows_core::Result<()>; } impl IDWriteTextAnalyzer2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetGlyphOrientationTransform(this: *mut core::ffi::c_void, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, issideways: super::super::Foundation::BOOL, originx: f32, originy: f32, transform: *mut DWRITE_MATRIX) -> windows_core::HRESULT { + unsafe extern "system" fn GetGlyphOrientationTransform(this: *mut core::ffi::c_void, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, issideways: windows_core::BOOL, originx: f32, originy: f32, transform: *mut DWRITE_MATRIX) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextAnalyzer2_Impl::GetGlyphOrientationTransform(this, core::mem::transmute_copy(&glyphorientationangle), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&originx), core::mem::transmute_copy(&originy), core::mem::transmute_copy(&transform)).into() @@ -10535,7 +10512,7 @@ impl IDWriteTextFormat1 { pub unsafe fn SetLastLineWrapping(&self, islastlinewrappingenabled: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetLastLineWrapping)(windows_core::Interface::as_raw(self), islastlinewrappingenabled.into()).ok() } } - pub unsafe fn GetLastLineWrapping(&self) -> super::super::Foundation::BOOL { + pub unsafe fn GetLastLineWrapping(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetLastLineWrapping)(windows_core::Interface::as_raw(self)) } } pub unsafe fn SetOpticalAlignment(&self, opticalalignment: DWRITE_OPTICAL_ALIGNMENT) -> windows_core::Result<()> { @@ -10562,8 +10539,8 @@ pub struct IDWriteTextFormat1_Vtbl { pub base__: IDWriteTextFormat_Vtbl, pub SetVerticalGlyphOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_VERTICAL_GLYPH_ORIENTATION) -> windows_core::HRESULT, pub GetVerticalGlyphOrientation: unsafe extern "system" fn(*mut core::ffi::c_void) -> DWRITE_VERTICAL_GLYPH_ORIENTATION, - pub SetLastLineWrapping: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetLastLineWrapping: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub SetLastLineWrapping: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetLastLineWrapping: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub SetOpticalAlignment: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_OPTICAL_ALIGNMENT) -> windows_core::HRESULT, pub GetOpticalAlignment: unsafe extern "system" fn(*mut core::ffi::c_void) -> DWRITE_OPTICAL_ALIGNMENT, pub SetFontFallback: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -10574,8 +10551,8 @@ unsafe impl Sync for IDWriteTextFormat1 {} pub trait IDWriteTextFormat1_Impl: IDWriteTextFormat_Impl { fn SetVerticalGlyphOrientation(&self, glyphorientation: DWRITE_VERTICAL_GLYPH_ORIENTATION) -> windows_core::Result<()>; fn GetVerticalGlyphOrientation(&self) -> DWRITE_VERTICAL_GLYPH_ORIENTATION; - fn SetLastLineWrapping(&self, islastlinewrappingenabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetLastLineWrapping(&self) -> super::super::Foundation::BOOL; + fn SetLastLineWrapping(&self, islastlinewrappingenabled: windows_core::BOOL) -> windows_core::Result<()>; + fn GetLastLineWrapping(&self) -> windows_core::BOOL; fn SetOpticalAlignment(&self, opticalalignment: DWRITE_OPTICAL_ALIGNMENT) -> windows_core::Result<()>; fn GetOpticalAlignment(&self) -> DWRITE_OPTICAL_ALIGNMENT; fn SetFontFallback(&self, fontfallback: windows_core::Ref) -> windows_core::Result<()>; @@ -10595,13 +10572,13 @@ impl IDWriteTextFormat1_Vtbl { IDWriteTextFormat1_Impl::GetVerticalGlyphOrientation(this) } } - unsafe extern "system" fn SetLastLineWrapping(this: *mut core::ffi::c_void, islastlinewrappingenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetLastLineWrapping(this: *mut core::ffi::c_void, islastlinewrappingenabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat1_Impl::SetLastLineWrapping(this, core::mem::transmute_copy(&islastlinewrappingenabled)).into() } } - unsafe extern "system" fn GetLastLineWrapping(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetLastLineWrapping(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextFormat1_Impl::GetLastLineWrapping(this) @@ -10892,10 +10869,10 @@ impl IDWriteTextLayout { pub unsafe fn GetFontSize(&self, currentposition: u32, fontsize: *mut f32, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetFontSize)(windows_core::Interface::as_raw(self), currentposition, fontsize as _, textrange.unwrap_or(core::mem::zeroed()) as _).ok() } } - pub unsafe fn GetUnderline(&self, currentposition: u32, hasunderline: *mut super::super::Foundation::BOOL, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { + pub unsafe fn GetUnderline(&self, currentposition: u32, hasunderline: *mut windows_core::BOOL, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetUnderline)(windows_core::Interface::as_raw(self), currentposition, hasunderline as _, textrange.unwrap_or(core::mem::zeroed()) as _).ok() } } - pub unsafe fn GetStrikethrough(&self, currentposition: u32, hasstrikethrough: *mut super::super::Foundation::BOOL, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { + pub unsafe fn GetStrikethrough(&self, currentposition: u32, hasstrikethrough: *mut windows_core::BOOL, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetStrikethrough)(windows_core::Interface::as_raw(self), currentposition, hasstrikethrough as _, textrange.unwrap_or(core::mem::zeroed()) as _).ok() } } pub unsafe fn GetDrawingEffect(&self, currentposition: u32, drawingeffect: *mut Option, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { @@ -10940,7 +10917,7 @@ impl IDWriteTextLayout { (windows_core::Interface::vtable(self).DetermineMinWidth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn HitTestPoint(&self, pointx: f32, pointy: f32, istrailinghit: *mut super::super::Foundation::BOOL, isinside: *mut super::super::Foundation::BOOL, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::Result<()> { + pub unsafe fn HitTestPoint(&self, pointx: f32, pointy: f32, istrailinghit: *mut windows_core::BOOL, isinside: *mut windows_core::BOOL, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).HitTestPoint)(windows_core::Interface::as_raw(self), pointx, pointy, istrailinghit as _, isinside as _, hittestmetrics as _).ok() } } pub unsafe fn HitTestTextPosition(&self, textposition: u32, istrailinghit: bool, pointx: *mut f32, pointy: *mut f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::Result<()> { @@ -10961,8 +10938,8 @@ pub struct IDWriteTextLayout_Vtbl { pub SetFontStyle: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_FONT_STYLE, DWRITE_TEXT_RANGE) -> windows_core::HRESULT, pub SetFontStretch: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_FONT_STRETCH, DWRITE_TEXT_RANGE) -> windows_core::HRESULT, pub SetFontSize: unsafe extern "system" fn(*mut core::ffi::c_void, f32, DWRITE_TEXT_RANGE) -> windows_core::HRESULT, - pub SetUnderline: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, DWRITE_TEXT_RANGE) -> windows_core::HRESULT, - pub SetStrikethrough: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, DWRITE_TEXT_RANGE) -> windows_core::HRESULT, + pub SetUnderline: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, DWRITE_TEXT_RANGE) -> windows_core::HRESULT, + pub SetStrikethrough: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, DWRITE_TEXT_RANGE) -> windows_core::HRESULT, pub SetDrawingEffect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, DWRITE_TEXT_RANGE) -> windows_core::HRESULT, pub SetInlineObject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, DWRITE_TEXT_RANGE) -> windows_core::HRESULT, pub SetTypography: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, DWRITE_TEXT_RANGE) -> windows_core::HRESULT, @@ -10976,8 +10953,8 @@ pub struct IDWriteTextLayout_Vtbl { pub GetFontStyle: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut DWRITE_FONT_STYLE, *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT, pub GetFontStretch: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut DWRITE_FONT_STRETCH, *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT, pub GetFontSize: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut f32, *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT, - pub GetUnderline: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL, *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT, - pub GetStrikethrough: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL, *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT, + pub GetUnderline: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL, *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT, + pub GetStrikethrough: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL, *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT, pub GetDrawingEffect: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void, *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT, pub GetInlineObject: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void, *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT, pub GetTypography: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void, *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT, @@ -10989,8 +10966,8 @@ pub struct IDWriteTextLayout_Vtbl { pub GetOverhangMetrics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DWRITE_OVERHANG_METRICS) -> windows_core::HRESULT, pub GetClusterMetrics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DWRITE_CLUSTER_METRICS, u32, *mut u32) -> windows_core::HRESULT, pub DetermineMinWidth: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, - pub HitTestPoint: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL, *mut DWRITE_HIT_TEST_METRICS) -> windows_core::HRESULT, - pub HitTestTextPosition: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL, *mut f32, *mut f32, *mut DWRITE_HIT_TEST_METRICS) -> windows_core::HRESULT, + pub HitTestPoint: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, *mut windows_core::BOOL, *mut windows_core::BOOL, *mut DWRITE_HIT_TEST_METRICS) -> windows_core::HRESULT, + pub HitTestTextPosition: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL, *mut f32, *mut f32, *mut DWRITE_HIT_TEST_METRICS) -> windows_core::HRESULT, pub HitTestTextRange: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, f32, f32, *mut DWRITE_HIT_TEST_METRICS, u32, *mut u32) -> windows_core::HRESULT, } unsafe impl Send for IDWriteTextLayout {} @@ -11004,8 +10981,8 @@ pub trait IDWriteTextLayout_Impl: IDWriteTextFormat_Impl { fn SetFontStyle(&self, fontstyle: DWRITE_FONT_STYLE, textrange: &DWRITE_TEXT_RANGE) -> windows_core::Result<()>; fn SetFontStretch(&self, fontstretch: DWRITE_FONT_STRETCH, textrange: &DWRITE_TEXT_RANGE) -> windows_core::Result<()>; fn SetFontSize(&self, fontsize: f32, textrange: &DWRITE_TEXT_RANGE) -> windows_core::Result<()>; - fn SetUnderline(&self, hasunderline: super::super::Foundation::BOOL, textrange: &DWRITE_TEXT_RANGE) -> windows_core::Result<()>; - fn SetStrikethrough(&self, hasstrikethrough: super::super::Foundation::BOOL, textrange: &DWRITE_TEXT_RANGE) -> windows_core::Result<()>; + fn SetUnderline(&self, hasunderline: windows_core::BOOL, textrange: &DWRITE_TEXT_RANGE) -> windows_core::Result<()>; + fn SetStrikethrough(&self, hasstrikethrough: windows_core::BOOL, textrange: &DWRITE_TEXT_RANGE) -> windows_core::Result<()>; fn SetDrawingEffect(&self, drawingeffect: windows_core::Ref, textrange: &DWRITE_TEXT_RANGE) -> windows_core::Result<()>; fn SetInlineObject(&self, inlineobject: windows_core::Ref, textrange: &DWRITE_TEXT_RANGE) -> windows_core::Result<()>; fn SetTypography(&self, typography: windows_core::Ref, textrange: &DWRITE_TEXT_RANGE) -> windows_core::Result<()>; @@ -11019,8 +10996,8 @@ pub trait IDWriteTextLayout_Impl: IDWriteTextFormat_Impl { fn GetFontStyle(&self, currentposition: u32, fontstyle: *mut DWRITE_FONT_STYLE, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::Result<()>; fn GetFontStretch(&self, currentposition: u32, fontstretch: *mut DWRITE_FONT_STRETCH, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::Result<()>; fn GetFontSize(&self, currentposition: u32, fontsize: *mut f32, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::Result<()>; - fn GetUnderline(&self, currentposition: u32, hasunderline: *mut super::super::Foundation::BOOL, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::Result<()>; - fn GetStrikethrough(&self, currentposition: u32, hasstrikethrough: *mut super::super::Foundation::BOOL, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::Result<()>; + fn GetUnderline(&self, currentposition: u32, hasunderline: *mut windows_core::BOOL, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::Result<()>; + fn GetStrikethrough(&self, currentposition: u32, hasstrikethrough: *mut windows_core::BOOL, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::Result<()>; fn GetDrawingEffect(&self, currentposition: u32, drawingeffect: windows_core::OutRef<'_, windows_core::IUnknown>, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::Result<()>; fn GetInlineObject(&self, currentposition: u32, inlineobject: windows_core::OutRef<'_, IDWriteInlineObject>, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::Result<()>; fn GetTypography(&self, currentposition: u32, typography: windows_core::OutRef<'_, IDWriteTypography>, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::Result<()>; @@ -11032,8 +11009,8 @@ pub trait IDWriteTextLayout_Impl: IDWriteTextFormat_Impl { fn GetOverhangMetrics(&self) -> windows_core::Result; fn GetClusterMetrics(&self, clustermetrics: *mut DWRITE_CLUSTER_METRICS, maxclustercount: u32, actualclustercount: *mut u32) -> windows_core::Result<()>; fn DetermineMinWidth(&self) -> windows_core::Result; - fn HitTestPoint(&self, pointx: f32, pointy: f32, istrailinghit: *mut super::super::Foundation::BOOL, isinside: *mut super::super::Foundation::BOOL, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::Result<()>; - fn HitTestTextPosition(&self, textposition: u32, istrailinghit: super::super::Foundation::BOOL, pointx: *mut f32, pointy: *mut f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::Result<()>; + fn HitTestPoint(&self, pointx: f32, pointy: f32, istrailinghit: *mut windows_core::BOOL, isinside: *mut windows_core::BOOL, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::Result<()>; + fn HitTestTextPosition(&self, textposition: u32, istrailinghit: windows_core::BOOL, pointx: *mut f32, pointy: *mut f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::Result<()>; fn HitTestTextRange(&self, textposition: u32, textlength: u32, originx: f32, originy: f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS, maxhittestmetricscount: u32, actualhittestmetricscount: *mut u32) -> windows_core::Result<()>; } impl IDWriteTextLayout_Vtbl { @@ -11086,13 +11063,13 @@ impl IDWriteTextLayout_Vtbl { IDWriteTextLayout_Impl::SetFontSize(this, core::mem::transmute_copy(&fontsize), core::mem::transmute(&textrange)).into() } } - unsafe extern "system" fn SetUnderline(this: *mut core::ffi::c_void, hasunderline: super::super::Foundation::BOOL, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { + unsafe extern "system" fn SetUnderline(this: *mut core::ffi::c_void, hasunderline: windows_core::BOOL, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::SetUnderline(this, core::mem::transmute_copy(&hasunderline), core::mem::transmute(&textrange)).into() } } - unsafe extern "system" fn SetStrikethrough(this: *mut core::ffi::c_void, hasstrikethrough: super::super::Foundation::BOOL, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { + unsafe extern "system" fn SetStrikethrough(this: *mut core::ffi::c_void, hasstrikethrough: windows_core::BOOL, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::SetStrikethrough(this, core::mem::transmute_copy(&hasstrikethrough), core::mem::transmute(&textrange)).into() @@ -11176,13 +11153,13 @@ impl IDWriteTextLayout_Vtbl { IDWriteTextLayout_Impl::GetFontSize(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&fontsize), core::mem::transmute_copy(&textrange)).into() } } - unsafe extern "system" fn GetUnderline(this: *mut core::ffi::c_void, currentposition: u32, hasunderline: *mut super::super::Foundation::BOOL, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { + unsafe extern "system" fn GetUnderline(this: *mut core::ffi::c_void, currentposition: u32, hasunderline: *mut windows_core::BOOL, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetUnderline(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&hasunderline), core::mem::transmute_copy(&textrange)).into() } } - unsafe extern "system" fn GetStrikethrough(this: *mut core::ffi::c_void, currentposition: u32, hasstrikethrough: *mut super::super::Foundation::BOOL, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { + unsafe extern "system" fn GetStrikethrough(this: *mut core::ffi::c_void, currentposition: u32, hasstrikethrough: *mut windows_core::BOOL, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::GetStrikethrough(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&hasstrikethrough), core::mem::transmute_copy(&textrange)).into() @@ -11266,13 +11243,13 @@ impl IDWriteTextLayout_Vtbl { } } } - unsafe extern "system" fn HitTestPoint(this: *mut core::ffi::c_void, pointx: f32, pointy: f32, istrailinghit: *mut super::super::Foundation::BOOL, isinside: *mut super::super::Foundation::BOOL, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::HRESULT { + unsafe extern "system" fn HitTestPoint(this: *mut core::ffi::c_void, pointx: f32, pointy: f32, istrailinghit: *mut windows_core::BOOL, isinside: *mut windows_core::BOOL, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::HitTestPoint(this, core::mem::transmute_copy(&pointx), core::mem::transmute_copy(&pointy), core::mem::transmute_copy(&istrailinghit), core::mem::transmute_copy(&isinside), core::mem::transmute_copy(&hittestmetrics)).into() } } - unsafe extern "system" fn HitTestTextPosition(this: *mut core::ffi::c_void, textposition: u32, istrailinghit: super::super::Foundation::BOOL, pointx: *mut f32, pointy: *mut f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::HRESULT { + unsafe extern "system" fn HitTestTextPosition(this: *mut core::ffi::c_void, textposition: u32, istrailinghit: windows_core::BOOL, pointx: *mut f32, pointy: *mut f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout_Impl::HitTestTextPosition(this, core::mem::transmute_copy(&textposition), core::mem::transmute_copy(&istrailinghit), core::mem::transmute_copy(&pointx), core::mem::transmute_copy(&pointy), core::mem::transmute_copy(&hittestmetrics)).into() @@ -11344,7 +11321,7 @@ impl IDWriteTextLayout1 { pub unsafe fn SetPairKerning(&self, ispairkerningenabled: bool, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetPairKerning)(windows_core::Interface::as_raw(self), ispairkerningenabled.into(), core::mem::transmute(textrange)).ok() } } - pub unsafe fn GetPairKerning(&self, currentposition: u32, ispairkerningenabled: *mut super::super::Foundation::BOOL, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { + pub unsafe fn GetPairKerning(&self, currentposition: u32, ispairkerningenabled: *mut windows_core::BOOL, textrange: Option<*mut DWRITE_TEXT_RANGE>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetPairKerning)(windows_core::Interface::as_raw(self), currentposition, ispairkerningenabled as _, textrange.unwrap_or(core::mem::zeroed()) as _).ok() } } pub unsafe fn SetCharacterSpacing(&self, leadingspacing: f32, trailingspacing: f32, minimumadvancewidth: f32, textrange: DWRITE_TEXT_RANGE) -> windows_core::Result<()> { @@ -11357,28 +11334,28 @@ impl IDWriteTextLayout1 { #[repr(C)] pub struct IDWriteTextLayout1_Vtbl { pub base__: IDWriteTextLayout_Vtbl, - pub SetPairKerning: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, DWRITE_TEXT_RANGE) -> windows_core::HRESULT, - pub GetPairKerning: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL, *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT, + pub SetPairKerning: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, DWRITE_TEXT_RANGE) -> windows_core::HRESULT, + pub GetPairKerning: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL, *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT, pub SetCharacterSpacing: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, f32, DWRITE_TEXT_RANGE) -> windows_core::HRESULT, pub GetCharacterSpacing: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut f32, *mut f32, *mut f32, *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT, } unsafe impl Send for IDWriteTextLayout1 {} unsafe impl Sync for IDWriteTextLayout1 {} pub trait IDWriteTextLayout1_Impl: IDWriteTextLayout_Impl { - fn SetPairKerning(&self, ispairkerningenabled: super::super::Foundation::BOOL, textrange: &DWRITE_TEXT_RANGE) -> windows_core::Result<()>; - fn GetPairKerning(&self, currentposition: u32, ispairkerningenabled: *mut super::super::Foundation::BOOL, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::Result<()>; + fn SetPairKerning(&self, ispairkerningenabled: windows_core::BOOL, textrange: &DWRITE_TEXT_RANGE) -> windows_core::Result<()>; + fn GetPairKerning(&self, currentposition: u32, ispairkerningenabled: *mut windows_core::BOOL, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::Result<()>; fn SetCharacterSpacing(&self, leadingspacing: f32, trailingspacing: f32, minimumadvancewidth: f32, textrange: &DWRITE_TEXT_RANGE) -> windows_core::Result<()>; fn GetCharacterSpacing(&self, currentposition: u32, leadingspacing: *mut f32, trailingspacing: *mut f32, minimumadvancewidth: *mut f32, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::Result<()>; } impl IDWriteTextLayout1_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetPairKerning(this: *mut core::ffi::c_void, ispairkerningenabled: super::super::Foundation::BOOL, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { + unsafe extern "system" fn SetPairKerning(this: *mut core::ffi::c_void, ispairkerningenabled: windows_core::BOOL, textrange: DWRITE_TEXT_RANGE) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout1_Impl::SetPairKerning(this, core::mem::transmute_copy(&ispairkerningenabled), core::mem::transmute(&textrange)).into() } } - unsafe extern "system" fn GetPairKerning(this: *mut core::ffi::c_void, currentposition: u32, ispairkerningenabled: *mut super::super::Foundation::BOOL, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { + unsafe extern "system" fn GetPairKerning(this: *mut core::ffi::c_void, currentposition: u32, ispairkerningenabled: *mut windows_core::BOOL, textrange: *mut DWRITE_TEXT_RANGE) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout1_Impl::GetPairKerning(this, core::mem::transmute_copy(¤tposition), core::mem::transmute_copy(&ispairkerningenabled), core::mem::transmute_copy(&textrange)).into() @@ -11430,7 +11407,7 @@ impl IDWriteTextLayout2 { pub unsafe fn SetLastLineWrapping(&self, islastlinewrappingenabled: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetLastLineWrapping)(windows_core::Interface::as_raw(self), islastlinewrappingenabled.into()).ok() } } - pub unsafe fn GetLastLineWrapping(&self) -> super::super::Foundation::BOOL { + pub unsafe fn GetLastLineWrapping(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetLastLineWrapping)(windows_core::Interface::as_raw(self)) } } pub unsafe fn SetOpticalAlignment(&self, opticalalignment: DWRITE_OPTICAL_ALIGNMENT) -> windows_core::Result<()> { @@ -11458,8 +11435,8 @@ pub struct IDWriteTextLayout2_Vtbl { pub GetMetrics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DWRITE_TEXT_METRICS1) -> windows_core::HRESULT, pub SetVerticalGlyphOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_VERTICAL_GLYPH_ORIENTATION) -> windows_core::HRESULT, pub GetVerticalGlyphOrientation: unsafe extern "system" fn(*mut core::ffi::c_void) -> DWRITE_VERTICAL_GLYPH_ORIENTATION, - pub SetLastLineWrapping: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetLastLineWrapping: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub SetLastLineWrapping: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetLastLineWrapping: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub SetOpticalAlignment: unsafe extern "system" fn(*mut core::ffi::c_void, DWRITE_OPTICAL_ALIGNMENT) -> windows_core::HRESULT, pub GetOpticalAlignment: unsafe extern "system" fn(*mut core::ffi::c_void) -> DWRITE_OPTICAL_ALIGNMENT, pub SetFontFallback: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -11471,8 +11448,8 @@ pub trait IDWriteTextLayout2_Impl: IDWriteTextLayout1_Impl { fn GetMetrics(&self, textmetrics: *mut DWRITE_TEXT_METRICS1) -> windows_core::Result<()>; fn SetVerticalGlyphOrientation(&self, glyphorientation: DWRITE_VERTICAL_GLYPH_ORIENTATION) -> windows_core::Result<()>; fn GetVerticalGlyphOrientation(&self) -> DWRITE_VERTICAL_GLYPH_ORIENTATION; - fn SetLastLineWrapping(&self, islastlinewrappingenabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetLastLineWrapping(&self) -> super::super::Foundation::BOOL; + fn SetLastLineWrapping(&self, islastlinewrappingenabled: windows_core::BOOL) -> windows_core::Result<()>; + fn GetLastLineWrapping(&self) -> windows_core::BOOL; fn SetOpticalAlignment(&self, opticalalignment: DWRITE_OPTICAL_ALIGNMENT) -> windows_core::Result<()>; fn GetOpticalAlignment(&self) -> DWRITE_OPTICAL_ALIGNMENT; fn SetFontFallback(&self, fontfallback: windows_core::Ref) -> windows_core::Result<()>; @@ -11498,13 +11475,13 @@ impl IDWriteTextLayout2_Vtbl { IDWriteTextLayout2_Impl::GetVerticalGlyphOrientation(this) } } - unsafe extern "system" fn SetLastLineWrapping(this: *mut core::ffi::c_void, islastlinewrappingenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetLastLineWrapping(this: *mut core::ffi::c_void, islastlinewrappingenabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout2_Impl::SetLastLineWrapping(this, core::mem::transmute_copy(&islastlinewrappingenabled)).into() } } - unsafe extern "system" fn GetLastLineWrapping(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetLastLineWrapping(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextLayout2_Impl::GetLastLineWrapping(this) @@ -11765,7 +11742,7 @@ pub struct IDWriteTextRenderer_Vtbl { pub DrawGlyphRun: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, f32, f32, DWRITE_MEASURING_MODE, *const DWRITE_GLYPH_RUN, *const DWRITE_GLYPH_RUN_DESCRIPTION, *mut core::ffi::c_void) -> windows_core::HRESULT, pub DrawUnderline: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, f32, f32, *const DWRITE_UNDERLINE, *mut core::ffi::c_void) -> windows_core::HRESULT, pub DrawStrikethrough: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, f32, f32, *const DWRITE_STRIKETHROUGH, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub DrawInlineObject: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, f32, f32, *mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub DrawInlineObject: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, f32, f32, *mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, } unsafe impl Send for IDWriteTextRenderer {} unsafe impl Sync for IDWriteTextRenderer {} @@ -11773,7 +11750,7 @@ pub trait IDWriteTextRenderer_Impl: IDWritePixelSnapping_Impl { fn DrawGlyphRun(&self, clientdrawingcontext: *const core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, clientdrawingeffect: windows_core::Ref) -> windows_core::Result<()>; fn DrawUnderline(&self, clientdrawingcontext: *const core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, underline: *const DWRITE_UNDERLINE, clientdrawingeffect: windows_core::Ref) -> windows_core::Result<()>; fn DrawStrikethrough(&self, clientdrawingcontext: *const core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, strikethrough: *const DWRITE_STRIKETHROUGH, clientdrawingeffect: windows_core::Ref) -> windows_core::Result<()>; - fn DrawInlineObject(&self, clientdrawingcontext: *const core::ffi::c_void, originx: f32, originy: f32, inlineobject: windows_core::Ref, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, clientdrawingeffect: windows_core::Ref) -> windows_core::Result<()>; + fn DrawInlineObject(&self, clientdrawingcontext: *const core::ffi::c_void, originx: f32, originy: f32, inlineobject: windows_core::Ref, issideways: windows_core::BOOL, isrighttoleft: windows_core::BOOL, clientdrawingeffect: windows_core::Ref) -> windows_core::Result<()>; } impl IDWriteTextRenderer_Vtbl { pub const fn new() -> Self { @@ -11795,7 +11772,7 @@ impl IDWriteTextRenderer_Vtbl { IDWriteTextRenderer_Impl::DrawStrikethrough(this, core::mem::transmute_copy(&clientdrawingcontext), core::mem::transmute_copy(&baselineoriginx), core::mem::transmute_copy(&baselineoriginy), core::mem::transmute_copy(&strikethrough), core::mem::transmute_copy(&clientdrawingeffect)).into() } } - unsafe extern "system" fn DrawInlineObject(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, originx: f32, originy: f32, inlineobject: *mut core::ffi::c_void, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn DrawInlineObject(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, originx: f32, originy: f32, inlineobject: *mut core::ffi::c_void, issideways: windows_core::BOOL, isrighttoleft: windows_core::BOOL, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextRenderer_Impl::DrawInlineObject(this, core::mem::transmute_copy(&clientdrawingcontext), core::mem::transmute_copy(&originx), core::mem::transmute_copy(&originy), core::mem::transmute_copy(&inlineobject), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&isrighttoleft), core::mem::transmute_copy(&clientdrawingeffect)).into() @@ -11855,7 +11832,7 @@ pub struct IDWriteTextRenderer1_Vtbl { pub DrawGlyphRun: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, f32, f32, DWRITE_GLYPH_ORIENTATION_ANGLE, DWRITE_MEASURING_MODE, *const DWRITE_GLYPH_RUN, *const DWRITE_GLYPH_RUN_DESCRIPTION, *mut core::ffi::c_void) -> windows_core::HRESULT, pub DrawUnderline: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, f32, f32, DWRITE_GLYPH_ORIENTATION_ANGLE, *const DWRITE_UNDERLINE, *mut core::ffi::c_void) -> windows_core::HRESULT, pub DrawStrikethrough: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, f32, f32, DWRITE_GLYPH_ORIENTATION_ANGLE, *const DWRITE_STRIKETHROUGH, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub DrawInlineObject: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, f32, f32, DWRITE_GLYPH_ORIENTATION_ANGLE, *mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub DrawInlineObject: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, f32, f32, DWRITE_GLYPH_ORIENTATION_ANGLE, *mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, } unsafe impl Send for IDWriteTextRenderer1 {} unsafe impl Sync for IDWriteTextRenderer1 {} @@ -11863,7 +11840,7 @@ pub trait IDWriteTextRenderer1_Impl: IDWriteTextRenderer_Impl { fn DrawGlyphRun(&self, clientdrawingcontext: *const core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, measuringmode: DWRITE_MEASURING_MODE, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, clientdrawingeffect: windows_core::Ref) -> windows_core::Result<()>; fn DrawUnderline(&self, clientdrawingcontext: *const core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, underline: *const DWRITE_UNDERLINE, clientdrawingeffect: windows_core::Ref) -> windows_core::Result<()>; fn DrawStrikethrough(&self, clientdrawingcontext: *const core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, strikethrough: *const DWRITE_STRIKETHROUGH, clientdrawingeffect: windows_core::Ref) -> windows_core::Result<()>; - fn DrawInlineObject(&self, clientdrawingcontext: *const core::ffi::c_void, originx: f32, originy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, inlineobject: windows_core::Ref, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, clientdrawingeffect: windows_core::Ref) -> windows_core::Result<()>; + fn DrawInlineObject(&self, clientdrawingcontext: *const core::ffi::c_void, originx: f32, originy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, inlineobject: windows_core::Ref, issideways: windows_core::BOOL, isrighttoleft: windows_core::BOOL, clientdrawingeffect: windows_core::Ref) -> windows_core::Result<()>; } impl IDWriteTextRenderer1_Vtbl { pub const fn new() -> Self { @@ -11885,7 +11862,7 @@ impl IDWriteTextRenderer1_Vtbl { IDWriteTextRenderer1_Impl::DrawStrikethrough(this, core::mem::transmute_copy(&clientdrawingcontext), core::mem::transmute_copy(&baselineoriginx), core::mem::transmute_copy(&baselineoriginy), core::mem::transmute_copy(&orientationangle), core::mem::transmute_copy(&strikethrough), core::mem::transmute_copy(&clientdrawingeffect)).into() } } - unsafe extern "system" fn DrawInlineObject(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, originx: f32, originy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, inlineobject: *mut core::ffi::c_void, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn DrawInlineObject(this: *mut core::ffi::c_void, clientdrawingcontext: *const core::ffi::c_void, originx: f32, originy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, inlineobject: *mut core::ffi::c_void, issideways: windows_core::BOOL, isrighttoleft: windows_core::BOOL, clientdrawingeffect: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDWriteTextRenderer1_Impl::DrawInlineObject(this, core::mem::transmute_copy(&clientdrawingcontext), core::mem::transmute_copy(&originx), core::mem::transmute_copy(&originy), core::mem::transmute_copy(&orientationangle), core::mem::transmute_copy(&inlineobject), core::mem::transmute_copy(&issideways), core::mem::transmute_copy(&isrighttoleft), core::mem::transmute_copy(&clientdrawingeffect)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Dwm/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Dwm/mod.rs index 8a9abab61a..faf1a3fa56 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Dwm/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Dwm/mod.rs @@ -4,8 +4,8 @@ pub unsafe fn DwmAttachMilContent(hwnd: super::super::Foundation::HWND) -> windo unsafe { DwmAttachMilContent(hwnd).ok() } } #[inline] -pub unsafe fn DwmDefWindowProc(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT) -> super::super::Foundation::BOOL { - windows_targets::link!("dwmapi.dll" "system" fn DwmDefWindowProc(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM, plresult : *mut super::super::Foundation:: LRESULT) -> super::super::Foundation:: BOOL); +pub unsafe fn DwmDefWindowProc(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT) -> windows_core::BOOL { + windows_targets::link!("dwmapi.dll" "system" fn DwmDefWindowProc(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM, plresult : *mut super::super::Foundation:: LRESULT) -> windows_core::BOOL); unsafe { DwmDefWindowProc(hwnd, msg, wparam, lparam, plresult as _) } } #[inline] @@ -26,7 +26,7 @@ pub unsafe fn DwmEnableComposition(ucompositionaction: u32) -> windows_core::Res } #[inline] pub unsafe fn DwmEnableMMCSS(fenablemmcss: bool) -> windows_core::Result<()> { - windows_targets::link!("dwmapi.dll" "system" fn DwmEnableMMCSS(fenablemmcss : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("dwmapi.dll" "system" fn DwmEnableMMCSS(fenablemmcss : windows_core::BOOL) -> windows_core::HRESULT); unsafe { DwmEnableMMCSS(fenablemmcss.into()).ok() } } #[cfg(feature = "Win32_UI_Controls")] @@ -41,8 +41,8 @@ pub unsafe fn DwmFlush() -> windows_core::Result<()> { unsafe { DwmFlush().ok() } } #[inline] -pub unsafe fn DwmGetColorizationColor(pcrcolorization: *mut u32, pfopaqueblend: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("dwmapi.dll" "system" fn DwmGetColorizationColor(pcrcolorization : *mut u32, pfopaqueblend : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn DwmGetColorizationColor(pcrcolorization: *mut u32, pfopaqueblend: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("dwmapi.dll" "system" fn DwmGetColorizationColor(pcrcolorization : *mut u32, pfopaqueblend : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { DwmGetColorizationColor(pcrcolorization as _, pfopaqueblend as _).ok() } } #[inline] @@ -64,8 +64,8 @@ pub unsafe fn DwmGetGraphicsStreamTransformHint(uindex: u32, ptransform: *mut Mi unsafe { DwmGetGraphicsStreamTransformHint(uindex, ptransform as _).ok() } } #[inline] -pub unsafe fn DwmGetTransportAttributes(pfisremoting: *mut super::super::Foundation::BOOL, pfisconnected: *mut super::super::Foundation::BOOL, pdwgeneration: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("dwmapi.dll" "system" fn DwmGetTransportAttributes(pfisremoting : *mut super::super::Foundation:: BOOL, pfisconnected : *mut super::super::Foundation:: BOOL, pdwgeneration : *mut u32) -> windows_core::HRESULT); +pub unsafe fn DwmGetTransportAttributes(pfisremoting: *mut windows_core::BOOL, pfisconnected: *mut windows_core::BOOL, pdwgeneration: *mut u32) -> windows_core::Result<()> { + windows_targets::link!("dwmapi.dll" "system" fn DwmGetTransportAttributes(pfisremoting : *mut windows_core::BOOL, pfisconnected : *mut windows_core::BOOL, pdwgeneration : *mut u32) -> windows_core::HRESULT); unsafe { DwmGetTransportAttributes(pfisremoting as _, pfisconnected as _, pdwgeneration as _).ok() } } #[inline] @@ -87,8 +87,8 @@ pub unsafe fn DwmInvalidateIconicBitmaps(hwnd: super::super::Foundation::HWND) - unsafe { DwmInvalidateIconicBitmaps(hwnd).ok() } } #[inline] -pub unsafe fn DwmIsCompositionEnabled() -> windows_core::Result { - windows_targets::link!("dwmapi.dll" "system" fn DwmIsCompositionEnabled(pfenabled : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn DwmIsCompositionEnabled() -> windows_core::Result { + windows_targets::link!("dwmapi.dll" "system" fn DwmIsCompositionEnabled(pfenabled : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); DwmIsCompositionEnabled(&mut result__).map(|| core::mem::transmute(result__)) @@ -96,7 +96,7 @@ pub unsafe fn DwmIsCompositionEnabled() -> windows_core::Result windows_core::Result<()> { - windows_targets::link!("dwmapi.dll" "system" fn DwmModifyPreviousDxFrameDuration(hwnd : super::super::Foundation:: HWND, crefreshes : i32, frelative : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("dwmapi.dll" "system" fn DwmModifyPreviousDxFrameDuration(hwnd : super::super::Foundation:: HWND, crefreshes : i32, frelative : windows_core::BOOL) -> windows_core::HRESULT); unsafe { DwmModifyPreviousDxFrameDuration(hwnd, crefreshes, frelative.into()).ok() } } #[inline] @@ -154,7 +154,7 @@ pub unsafe fn DwmShowContact(dwpointerid: u32, eshowcontact: DWM_SHOWCONTACT) -> } #[inline] pub unsafe fn DwmTetherContact(dwpointerid: u32, fenable: bool, pttether: super::super::Foundation::POINT) -> windows_core::Result<()> { - windows_targets::link!("dwmapi.dll" "system" fn DwmTetherContact(dwpointerid : u32, fenable : super::super::Foundation:: BOOL, pttether : super::super::Foundation:: POINT) -> windows_core::HRESULT); + windows_targets::link!("dwmapi.dll" "system" fn DwmTetherContact(dwpointerid : u32, fenable : windows_core::BOOL, pttether : super::super::Foundation:: POINT) -> windows_core::HRESULT); unsafe { DwmTetherContact(dwpointerid, fenable.into(), core::mem::transmute(pttether)).ok() } } #[inline] @@ -256,9 +256,9 @@ pub const DWM_BB_TRANSITIONONMAXIMIZED: u32 = 4u32; #[derive(Clone, Copy)] pub struct DWM_BLURBEHIND { pub dwFlags: u32, - pub fEnable: super::super::Foundation::BOOL, + pub fEnable: windows_core::BOOL, pub hRgnBlur: super::Gdi::HRGN, - pub fTransitionOnMaximized: super::super::Foundation::BOOL, + pub fTransitionOnMaximized: windows_core::BOOL, } #[cfg(feature = "Win32_Graphics_Gdi")] impl Default for DWM_BLURBEHIND { @@ -276,10 +276,10 @@ pub const DWM_FRAME_DURATION_DEFAULT: i32 = -1i32; #[derive(Clone, Copy)] pub struct DWM_PRESENT_PARAMETERS { pub cbSize: u32, - pub fQueue: super::super::Foundation::BOOL, + pub fQueue: windows_core::BOOL, pub cRefreshStart: u64, pub cBuffer: u32, - pub fUseSourceRate: super::super::Foundation::BOOL, + pub fUseSourceRate: windows_core::BOOL, pub rateSource: UNSIGNED_RATIO, pub cRefreshesPerFrame: u32, pub eSampling: DWM_SOURCE_FRAME_SAMPLING, @@ -378,8 +378,8 @@ pub struct DWM_THUMBNAIL_PROPERTIES { pub rcDestination: super::super::Foundation::RECT, pub rcSource: super::super::Foundation::RECT, pub opacity: u8, - pub fVisible: super::super::Foundation::BOOL, - pub fSourceClientAreaOnly: super::super::Foundation::BOOL, + pub fVisible: windows_core::BOOL, + pub fSourceClientAreaOnly: windows_core::BOOL, } impl Default for DWM_THUMBNAIL_PROPERTIES { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/Common/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/Common/mod.rs index b1396f0182..dec02db112 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/Common/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/Common/mod.rs @@ -181,7 +181,7 @@ impl Default for DXGI_GAMMA_CONTROL { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DXGI_GAMMA_CONTROL_CAPABILITIES { - pub ScaleAndOffsetSupported: super::super::super::Foundation::BOOL, + pub ScaleAndOffsetSupported: windows_core::BOOL, pub MaxConvertedValue: f32, pub MinConvertedValue: f32, pub NumGammaControlPoints: u32, 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 f7ce377d01..7be1f226af 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/mod.rs @@ -664,7 +664,7 @@ pub struct DXGI_MODE_DESC1 { pub Format: Common::DXGI_FORMAT, pub ScanlineOrdering: Common::DXGI_MODE_SCANLINE_ORDER, pub Scaling: Common::DXGI_MODE_SCALING, - pub Stereo: super::super::Foundation::BOOL, + pub Stereo: windows_core::BOOL, } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl Default for DXGI_MODE_DESC1 { @@ -1135,7 +1135,7 @@ pub const DXGI_OUTDUPL_COMPOSITED_UI_CAPTURE_ONLY: DXGI_OUTDUPL_FLAG = DXGI_OUTD pub struct DXGI_OUTDUPL_DESC { pub ModeDesc: Common::DXGI_MODE_DESC, pub Rotation: Common::DXGI_MODE_ROTATION, - pub DesktopImageInSystemMemory: super::super::Foundation::BOOL, + pub DesktopImageInSystemMemory: windows_core::BOOL, } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl Default for DXGI_OUTDUPL_DESC { @@ -1185,8 +1185,8 @@ pub struct DXGI_OUTDUPL_FRAME_INFO { pub LastPresentTime: i64, pub LastMouseUpdateTime: i64, pub AccumulatedFrames: u32, - pub RectsCoalesced: super::super::Foundation::BOOL, - pub ProtectedContentMaskedOut: super::super::Foundation::BOOL, + pub RectsCoalesced: windows_core::BOOL, + pub ProtectedContentMaskedOut: windows_core::BOOL, pub PointerPosition: DXGI_OUTDUPL_POINTER_POSITION, pub TotalMetadataBufferSize: u32, pub PointerShapeBufferSize: u32, @@ -1211,7 +1211,7 @@ impl Default for DXGI_OUTDUPL_MOVE_RECT { #[derive(Clone, Copy, Debug, PartialEq)] pub struct DXGI_OUTDUPL_POINTER_POSITION { pub Position: super::super::Foundation::POINT, - pub Visible: super::super::Foundation::BOOL, + pub Visible: windows_core::BOOL, } impl Default for DXGI_OUTDUPL_POINTER_POSITION { fn default() -> Self { @@ -1244,7 +1244,7 @@ pub const DXGI_OUTDUPL_POINTER_SHAPE_TYPE_MONOCHROME: DXGI_OUTDUPL_POINTER_SHAPE pub struct DXGI_OUTPUT_DESC { pub DeviceName: [u16; 32], pub DesktopCoordinates: super::super::Foundation::RECT, - pub AttachedToDesktop: super::super::Foundation::BOOL, + pub AttachedToDesktop: windows_core::BOOL, pub Rotation: Common::DXGI_MODE_ROTATION, pub Monitor: super::Gdi::HMONITOR, } @@ -1260,7 +1260,7 @@ impl Default for DXGI_OUTPUT_DESC { pub struct DXGI_OUTPUT_DESC1 { pub DeviceName: [u16; 32], pub DesktopCoordinates: super::super::Foundation::RECT, - pub AttachedToDesktop: super::super::Foundation::BOOL, + pub AttachedToDesktop: windows_core::BOOL, pub Rotation: Common::DXGI_MODE_ROTATION, pub Monitor: super::Gdi::HMONITOR, pub BitsPerColor: u32, @@ -1574,7 +1574,7 @@ pub struct DXGI_SWAP_CHAIN_DESC { pub BufferUsage: DXGI_USAGE, pub BufferCount: u32, pub OutputWindow: super::super::Foundation::HWND, - pub Windowed: super::super::Foundation::BOOL, + pub Windowed: windows_core::BOOL, pub SwapEffect: DXGI_SWAP_EFFECT, pub Flags: u32, } @@ -1591,7 +1591,7 @@ pub struct DXGI_SWAP_CHAIN_DESC1 { pub Width: u32, pub Height: u32, pub Format: Common::DXGI_FORMAT, - pub Stereo: super::super::Foundation::BOOL, + pub Stereo: windows_core::BOOL, pub SampleDesc: Common::DXGI_SAMPLE_DESC, pub BufferUsage: DXGI_USAGE, pub BufferCount: u32, @@ -1662,7 +1662,7 @@ pub struct DXGI_SWAP_CHAIN_FULLSCREEN_DESC { pub RefreshRate: Common::DXGI_RATIONAL, pub ScanlineOrdering: Common::DXGI_MODE_SCANLINE_ORDER, pub Scaling: Common::DXGI_MODE_SCALING, - pub Windowed: super::super::Foundation::BOOL, + pub Windowed: windows_core::BOOL, } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl Default for DXGI_SWAP_CHAIN_FULLSCREEN_DESC { @@ -2119,7 +2119,7 @@ impl IDXGIDebug1 { pub unsafe fn DisableLeakTrackingForThread(&self) { unsafe { (windows_core::Interface::vtable(self).DisableLeakTrackingForThread)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn IsLeakTrackingEnabledForThread(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsLeakTrackingEnabledForThread(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsLeakTrackingEnabledForThread)(windows_core::Interface::as_raw(self)) } } } @@ -2128,14 +2128,14 @@ pub struct IDXGIDebug1_Vtbl { pub base__: IDXGIDebug_Vtbl, pub EnableLeakTrackingForThread: unsafe extern "system" fn(*mut core::ffi::c_void), pub DisableLeakTrackingForThread: unsafe extern "system" fn(*mut core::ffi::c_void), - pub IsLeakTrackingEnabledForThread: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsLeakTrackingEnabledForThread: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } unsafe impl Send for IDXGIDebug1 {} unsafe impl Sync for IDXGIDebug1 {} pub trait IDXGIDebug1_Impl: IDXGIDebug_Impl { fn EnableLeakTrackingForThread(&self); fn DisableLeakTrackingForThread(&self); - fn IsLeakTrackingEnabledForThread(&self) -> super::super::Foundation::BOOL; + fn IsLeakTrackingEnabledForThread(&self) -> windows_core::BOOL; } impl IDXGIDebug1_Vtbl { pub const fn new() -> Self { @@ -2151,7 +2151,7 @@ impl IDXGIDebug1_Vtbl { IDXGIDebug1_Impl::DisableLeakTrackingForThread(this) } } - unsafe extern "system" fn IsLeakTrackingEnabledForThread(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsLeakTrackingEnabledForThread(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDebug1_Impl::IsLeakTrackingEnabledForThread(this) @@ -2509,7 +2509,7 @@ impl IDXGIDevice2 { pub unsafe fn OfferResources(&self, ppresources: &[Option], priority: DXGI_OFFER_RESOURCE_PRIORITY) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).OfferResources)(windows_core::Interface::as_raw(self), ppresources.len().try_into().unwrap(), core::mem::transmute(ppresources.as_ptr()), priority).ok() } } - pub unsafe fn ReclaimResources(&self, numresources: u32, ppresources: *const Option, pdiscarded: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { + pub unsafe fn ReclaimResources(&self, numresources: u32, ppresources: *const Option, pdiscarded: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).ReclaimResources)(windows_core::Interface::as_raw(self), numresources, core::mem::transmute(ppresources), pdiscarded.unwrap_or(core::mem::zeroed()) as _).ok() } } pub unsafe fn EnqueueSetEvent(&self, hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { @@ -2520,7 +2520,7 @@ impl IDXGIDevice2 { pub struct IDXGIDevice2_Vtbl { pub base__: IDXGIDevice1_Vtbl, pub OfferResources: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const *mut core::ffi::c_void, DXGI_OFFER_RESOURCE_PRIORITY) -> windows_core::HRESULT, - pub ReclaimResources: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ReclaimResources: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub EnqueueSetEvent: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE) -> windows_core::HRESULT, } unsafe impl Send for IDXGIDevice2 {} @@ -2528,7 +2528,7 @@ unsafe impl Sync for IDXGIDevice2 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub trait IDXGIDevice2_Impl: IDXGIDevice1_Impl { fn OfferResources(&self, numresources: u32, ppresources: *const Option, priority: DXGI_OFFER_RESOURCE_PRIORITY) -> windows_core::Result<()>; - fn ReclaimResources(&self, numresources: u32, ppresources: *const Option, pdiscarded: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ReclaimResources(&self, numresources: u32, ppresources: *const Option, pdiscarded: *mut windows_core::BOOL) -> windows_core::Result<()>; fn EnqueueSetEvent(&self, hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -2540,7 +2540,7 @@ impl IDXGIDevice2_Vtbl { IDXGIDevice2_Impl::OfferResources(this, core::mem::transmute_copy(&numresources), core::mem::transmute_copy(&ppresources), core::mem::transmute_copy(&priority)).into() } } - unsafe extern "system" fn ReclaimResources(this: *mut core::ffi::c_void, numresources: u32, ppresources: *const *mut core::ffi::c_void, pdiscarded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ReclaimResources(this: *mut core::ffi::c_void, numresources: u32, ppresources: *const *mut core::ffi::c_void, pdiscarded: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDevice2_Impl::ReclaimResources(this, core::mem::transmute_copy(&numresources), core::mem::transmute_copy(&ppresources), core::mem::transmute_copy(&pdiscarded)).into() @@ -2707,7 +2707,7 @@ impl windows_core::RuntimeName for IDXGIDeviceSubObject {} windows_core::imp::define_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 { + pub unsafe fn IsStereoEnabled(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsStereoEnabled)(windows_core::Interface::as_raw(self)) } } pub unsafe fn SetStereoEnabled(&self, enabled: bool) { @@ -2717,24 +2717,24 @@ impl IDXGIDisplayControl { #[repr(C)] pub struct IDXGIDisplayControl_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsStereoEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, - pub SetStereoEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL), + pub IsStereoEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, + pub SetStereoEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), } unsafe impl Send for IDXGIDisplayControl {} unsafe impl Sync for IDXGIDisplayControl {} pub trait IDXGIDisplayControl_Impl: windows_core::IUnknownImpl { - fn IsStereoEnabled(&self) -> super::super::Foundation::BOOL; - fn SetStereoEnabled(&self, enabled: super::super::Foundation::BOOL); + fn IsStereoEnabled(&self) -> windows_core::BOOL; + fn SetStereoEnabled(&self, enabled: windows_core::BOOL); } impl IDXGIDisplayControl_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsStereoEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsStereoEnabled(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDisplayControl_Impl::IsStereoEnabled(this) } } - unsafe extern "system" fn SetStereoEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::BOOL) { + unsafe extern "system" fn SetStereoEnabled(this: *mut core::ffi::c_void, enabled: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIDisplayControl_Impl::SetStereoEnabled(this, core::mem::transmute_copy(&enabled)) @@ -2892,7 +2892,7 @@ impl IDXGIFactory1 { (windows_core::Interface::vtable(self).EnumAdapters1)(windows_core::Interface::as_raw(self), adapter, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn IsCurrent(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsCurrent(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsCurrent)(windows_core::Interface::as_raw(self)) } } } @@ -2900,14 +2900,14 @@ impl IDXGIFactory1 { pub struct IDXGIFactory1_Vtbl { pub base__: IDXGIFactory_Vtbl, pub EnumAdapters1: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsCurrent: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsCurrent: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } unsafe impl Send for IDXGIFactory1 {} unsafe impl Sync for IDXGIFactory1 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub trait IDXGIFactory1_Impl: IDXGIFactory_Impl { fn EnumAdapters1(&self, adapter: u32) -> windows_core::Result; - fn IsCurrent(&self) -> super::super::Foundation::BOOL; + fn IsCurrent(&self) -> windows_core::BOOL; } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGIFactory1_Vtbl { @@ -2924,7 +2924,7 @@ impl IDXGIFactory1_Vtbl { } } } - unsafe extern "system" fn IsCurrent(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsCurrent(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIFactory1_Impl::IsCurrent(this) @@ -2947,7 +2947,7 @@ impl core::ops::Deref for IDXGIFactory2 { } windows_core::imp::interface_hierarchy!(IDXGIFactory2, windows_core::IUnknown, IDXGIObject, IDXGIFactory, IDXGIFactory1); impl IDXGIFactory2 { - pub unsafe fn IsWindowedStereoEnabled(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsWindowedStereoEnabled(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsWindowedStereoEnabled)(windows_core::Interface::as_raw(self)) } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -3024,7 +3024,7 @@ impl IDXGIFactory2 { #[repr(C)] pub struct IDXGIFactory2_Vtbl { pub base__: IDXGIFactory1_Vtbl, - pub IsWindowedStereoEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsWindowedStereoEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub CreateSwapChainForHwnd: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::HWND, *const DXGI_SWAP_CHAIN_DESC1, *const DXGI_SWAP_CHAIN_FULLSCREEN_DESC, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] @@ -3049,7 +3049,7 @@ unsafe impl Send for IDXGIFactory2 {} unsafe impl Sync for IDXGIFactory2 {} #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub trait IDXGIFactory2_Impl: IDXGIFactory1_Impl { - fn IsWindowedStereoEnabled(&self) -> super::super::Foundation::BOOL; + fn IsWindowedStereoEnabled(&self) -> windows_core::BOOL; fn CreateSwapChainForHwnd(&self, pdevice: windows_core::Ref, hwnd: super::super::Foundation::HWND, pdesc: *const DXGI_SWAP_CHAIN_DESC1, pfullscreendesc: *const DXGI_SWAP_CHAIN_FULLSCREEN_DESC, prestricttooutput: windows_core::Ref) -> windows_core::Result; fn CreateSwapChainForCoreWindow(&self, pdevice: windows_core::Ref, pwindow: windows_core::Ref, pdesc: *const DXGI_SWAP_CHAIN_DESC1, prestricttooutput: windows_core::Ref) -> windows_core::Result; fn GetSharedResourceAdapterLuid(&self, hresource: super::super::Foundation::HANDLE) -> windows_core::Result; @@ -3064,7 +3064,7 @@ pub trait IDXGIFactory2_Impl: IDXGIFactory1_Impl { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IDXGIFactory2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsWindowedStereoEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsWindowedStereoEnabled(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIFactory2_Impl::IsWindowedStereoEnabled(this) @@ -3641,19 +3641,19 @@ impl IDXGIInfoQueue { pub unsafe fn SetBreakOnID(&self, producer: windows_core::GUID, id: i32, benable: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBreakOnID)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), id, benable.into()).ok() } } - pub unsafe fn GetBreakOnCategory(&self, producer: windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL { + pub unsafe fn GetBreakOnCategory(&self, producer: windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetBreakOnCategory)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), category) } } - pub unsafe fn GetBreakOnSeverity(&self, producer: windows_core::GUID, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL { + pub unsafe fn GetBreakOnSeverity(&self, producer: windows_core::GUID, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetBreakOnSeverity)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), severity) } } - pub unsafe fn GetBreakOnID(&self, producer: windows_core::GUID, id: i32) -> super::super::Foundation::BOOL { + pub unsafe fn GetBreakOnID(&self, producer: windows_core::GUID, id: i32) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetBreakOnID)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), id) } } pub unsafe fn SetMuteDebugOutput(&self, producer: windows_core::GUID, bmute: bool) { unsafe { (windows_core::Interface::vtable(self).SetMuteDebugOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(producer), bmute.into()) } } - pub unsafe fn GetMuteDebugOutput(&self, producer: windows_core::GUID) -> super::super::Foundation::BOOL { + pub unsafe fn GetMuteDebugOutput(&self, producer: windows_core::GUID) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetMuteDebugOutput)(windows_core::Interface::as_raw(self), core::mem::transmute(producer)) } } } @@ -3689,14 +3689,14 @@ pub struct IDXGIInfoQueue_Vtbl { pub GetRetrievalFilterStackSize: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> u32, pub AddMessage: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, DXGI_INFO_QUEUE_MESSAGE_CATEGORY, DXGI_INFO_QUEUE_MESSAGE_SEVERITY, i32, windows_core::PCSTR) -> windows_core::HRESULT, pub AddApplicationMessage: unsafe extern "system" fn(*mut core::ffi::c_void, DXGI_INFO_QUEUE_MESSAGE_SEVERITY, windows_core::PCSTR) -> windows_core::HRESULT, - pub SetBreakOnCategory: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, DXGI_INFO_QUEUE_MESSAGE_CATEGORY, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetBreakOnSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, DXGI_INFO_QUEUE_MESSAGE_SEVERITY, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetBreakOnID: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, i32, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetBreakOnCategory: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, DXGI_INFO_QUEUE_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL, - pub GetBreakOnSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, DXGI_INFO_QUEUE_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL, - pub GetBreakOnID: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, i32) -> super::super::Foundation::BOOL, - pub SetMuteDebugOutput: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, super::super::Foundation::BOOL), - pub GetMuteDebugOutput: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> super::super::Foundation::BOOL, + pub SetBreakOnCategory: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, DXGI_INFO_QUEUE_MESSAGE_CATEGORY, windows_core::BOOL) -> windows_core::HRESULT, + pub SetBreakOnSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, DXGI_INFO_QUEUE_MESSAGE_SEVERITY, windows_core::BOOL) -> windows_core::HRESULT, + pub SetBreakOnID: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, i32, windows_core::BOOL) -> windows_core::HRESULT, + pub GetBreakOnCategory: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, DXGI_INFO_QUEUE_MESSAGE_CATEGORY) -> windows_core::BOOL, + pub GetBreakOnSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, DXGI_INFO_QUEUE_MESSAGE_SEVERITY) -> windows_core::BOOL, + pub GetBreakOnID: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, i32) -> windows_core::BOOL, + pub SetMuteDebugOutput: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, windows_core::BOOL), + pub GetMuteDebugOutput: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> windows_core::BOOL, } unsafe impl Send for IDXGIInfoQueue {} unsafe impl Sync for IDXGIInfoQueue {} @@ -3730,14 +3730,14 @@ pub trait IDXGIInfoQueue_Impl: windows_core::IUnknownImpl { fn GetRetrievalFilterStackSize(&self, producer: &windows_core::GUID) -> u32; fn AddMessage(&self, producer: &windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY, id: i32, pdescription: &windows_core::PCSTR) -> windows_core::Result<()>; fn AddApplicationMessage(&self, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY, pdescription: &windows_core::PCSTR) -> windows_core::Result<()>; - fn SetBreakOnCategory(&self, producer: &windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetBreakOnSeverity(&self, producer: &windows_core::GUID, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetBreakOnID(&self, producer: &windows_core::GUID, id: i32, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetBreakOnCategory(&self, producer: &windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL; - fn GetBreakOnSeverity(&self, producer: &windows_core::GUID, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL; - fn GetBreakOnID(&self, producer: &windows_core::GUID, id: i32) -> super::super::Foundation::BOOL; - fn SetMuteDebugOutput(&self, producer: &windows_core::GUID, bmute: super::super::Foundation::BOOL); - fn GetMuteDebugOutput(&self, producer: &windows_core::GUID) -> super::super::Foundation::BOOL; + fn SetBreakOnCategory(&self, producer: &windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY, benable: windows_core::BOOL) -> windows_core::Result<()>; + fn SetBreakOnSeverity(&self, producer: &windows_core::GUID, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY, benable: windows_core::BOOL) -> windows_core::Result<()>; + fn SetBreakOnID(&self, producer: &windows_core::GUID, id: i32, benable: windows_core::BOOL) -> windows_core::Result<()>; + fn GetBreakOnCategory(&self, producer: &windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY) -> windows_core::BOOL; + fn GetBreakOnSeverity(&self, producer: &windows_core::GUID, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY) -> windows_core::BOOL; + fn GetBreakOnID(&self, producer: &windows_core::GUID, id: i32) -> windows_core::BOOL; + fn SetMuteDebugOutput(&self, producer: &windows_core::GUID, bmute: windows_core::BOOL); + fn GetMuteDebugOutput(&self, producer: &windows_core::GUID) -> windows_core::BOOL; } impl IDXGIInfoQueue_Vtbl { pub const fn new() -> Self { @@ -3915,49 +3915,49 @@ impl IDXGIInfoQueue_Vtbl { IDXGIInfoQueue_Impl::AddApplicationMessage(this, core::mem::transmute_copy(&severity), core::mem::transmute(&pdescription)).into() } } - unsafe extern "system" fn SetBreakOnCategory(this: *mut core::ffi::c_void, producer: windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBreakOnCategory(this: *mut core::ffi::c_void, producer: windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY, benable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::SetBreakOnCategory(this, core::mem::transmute(&producer), core::mem::transmute_copy(&category), core::mem::transmute_copy(&benable)).into() } } - unsafe extern "system" fn SetBreakOnSeverity(this: *mut core::ffi::c_void, producer: windows_core::GUID, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBreakOnSeverity(this: *mut core::ffi::c_void, producer: windows_core::GUID, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY, benable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::SetBreakOnSeverity(this, core::mem::transmute(&producer), core::mem::transmute_copy(&severity), core::mem::transmute_copy(&benable)).into() } } - unsafe extern "system" fn SetBreakOnID(this: *mut core::ffi::c_void, producer: windows_core::GUID, id: i32, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBreakOnID(this: *mut core::ffi::c_void, producer: windows_core::GUID, id: i32, benable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::SetBreakOnID(this, core::mem::transmute(&producer), core::mem::transmute_copy(&id), core::mem::transmute_copy(&benable)).into() } } - unsafe extern "system" fn GetBreakOnCategory(this: *mut core::ffi::c_void, producer: windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetBreakOnCategory(this: *mut core::ffi::c_void, producer: windows_core::GUID, category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetBreakOnCategory(this, core::mem::transmute(&producer), core::mem::transmute_copy(&category)) } } - unsafe extern "system" fn GetBreakOnSeverity(this: *mut core::ffi::c_void, producer: windows_core::GUID, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetBreakOnSeverity(this: *mut core::ffi::c_void, producer: windows_core::GUID, severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetBreakOnSeverity(this, core::mem::transmute(&producer), core::mem::transmute_copy(&severity)) } } - unsafe extern "system" fn GetBreakOnID(this: *mut core::ffi::c_void, producer: windows_core::GUID, id: i32) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetBreakOnID(this: *mut core::ffi::c_void, producer: windows_core::GUID, id: i32) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetBreakOnID(this, core::mem::transmute(&producer), core::mem::transmute_copy(&id)) } } - unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, producer: windows_core::GUID, bmute: super::super::Foundation::BOOL) { + unsafe extern "system" fn SetMuteDebugOutput(this: *mut core::ffi::c_void, producer: windows_core::GUID, bmute: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::SetMuteDebugOutput(this, core::mem::transmute(&producer), core::mem::transmute_copy(&bmute)) } } - unsafe extern "system" fn GetMuteDebugOutput(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetMuteDebugOutput(this: *mut core::ffi::c_void, producer: windows_core::GUID) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIInfoQueue_Impl::GetMuteDebugOutput(this, core::mem::transmute(&producer)) @@ -4223,7 +4223,7 @@ pub struct IDXGIOutput_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] FindClosestMatchingMode: usize, pub WaitForVBlank: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub TakeOwnership: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub TakeOwnership: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub ReleaseOwnership: unsafe extern "system" fn(*mut core::ffi::c_void), #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub GetGammaControlCapabilities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut Common::DXGI_GAMMA_CONTROL_CAPABILITIES) -> windows_core::HRESULT, @@ -4249,7 +4249,7 @@ pub trait IDXGIOutput_Impl: IDXGIObject_Impl { fn GetDisplayModeList(&self, enumformat: Common::DXGI_FORMAT, flags: DXGI_ENUM_MODES, pnummodes: *mut u32, pdesc: *mut Common::DXGI_MODE_DESC) -> windows_core::Result<()>; fn FindClosestMatchingMode(&self, pmodetomatch: *const Common::DXGI_MODE_DESC, pclosestmatch: *mut Common::DXGI_MODE_DESC, pconcerneddevice: windows_core::Ref) -> windows_core::Result<()>; fn WaitForVBlank(&self) -> windows_core::Result<()>; - fn TakeOwnership(&self, pdevice: windows_core::Ref, exclusive: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn TakeOwnership(&self, pdevice: windows_core::Ref, exclusive: windows_core::BOOL) -> windows_core::Result<()>; fn ReleaseOwnership(&self); fn GetGammaControlCapabilities(&self, pgammacaps: *mut Common::DXGI_GAMMA_CONTROL_CAPABILITIES) -> windows_core::Result<()>; fn SetGammaControl(&self, parray: *const Common::DXGI_GAMMA_CONTROL) -> windows_core::Result<()>; @@ -4291,7 +4291,7 @@ impl IDXGIOutput_Vtbl { IDXGIOutput_Impl::WaitForVBlank(this).into() } } - unsafe extern "system" fn TakeOwnership(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, exclusive: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn TakeOwnership(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, exclusive: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutput_Impl::TakeOwnership(this, core::mem::transmute_copy(&pdevice), core::mem::transmute_copy(&exclusive)).into() @@ -4476,25 +4476,25 @@ impl core::ops::Deref for IDXGIOutput2 { } windows_core::imp::interface_hierarchy!(IDXGIOutput2, windows_core::IUnknown, IDXGIObject, IDXGIOutput, IDXGIOutput1); impl IDXGIOutput2 { - pub unsafe fn SupportsOverlays(&self) -> super::super::Foundation::BOOL { + pub unsafe fn SupportsOverlays(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).SupportsOverlays)(windows_core::Interface::as_raw(self)) } } } #[repr(C)] pub struct IDXGIOutput2_Vtbl { pub base__: IDXGIOutput1_Vtbl, - pub SupportsOverlays: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub SupportsOverlays: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } unsafe impl Send for IDXGIOutput2 {} unsafe impl Sync for IDXGIOutput2 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi"))] pub trait IDXGIOutput2_Impl: IDXGIOutput1_Impl { - fn SupportsOverlays(&self) -> super::super::Foundation::BOOL; + fn SupportsOverlays(&self) -> windows_core::BOOL; } #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi"))] impl IDXGIOutput2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SupportsOverlays(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn SupportsOverlays(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGIOutput2_Impl::SupportsOverlays(this) @@ -5192,7 +5192,7 @@ impl IDXGISurface1 { pub struct IDXGISurface1_Vtbl { pub base__: IDXGISurface_Vtbl, #[cfg(feature = "Win32_Graphics_Gdi")] - pub GetDC: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut super::Gdi::HDC) -> windows_core::HRESULT, + pub GetDC: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut super::Gdi::HDC) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetDC: usize, pub ReleaseDC: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT) -> windows_core::HRESULT, @@ -5201,13 +5201,13 @@ unsafe impl Send for IDXGISurface1 {} unsafe impl Sync for IDXGISurface1 {} #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi"))] pub trait IDXGISurface1_Impl: IDXGISurface_Impl { - fn GetDC(&self, discard: super::super::Foundation::BOOL) -> windows_core::Result; + fn GetDC(&self, discard: windows_core::BOOL) -> windows_core::Result; fn ReleaseDC(&self, pdirtyrect: *const super::super::Foundation::RECT) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Graphics_Gdi"))] impl IDXGISurface1_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, discard: super::super::Foundation::BOOL, phdc: *mut super::Gdi::HDC) -> windows_core::HRESULT { + unsafe extern "system" fn GetDC(this: *mut core::ffi::c_void, discard: windows_core::BOOL, phdc: *mut super::Gdi::HDC) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDXGISurface1_Impl::GetDC(this, core::mem::transmute_copy(&discard)) { @@ -5303,7 +5303,7 @@ impl IDXGISwapChain { { unsafe { (windows_core::Interface::vtable(self).SetFullscreenState)(windows_core::Interface::as_raw(self), fullscreen.into(), ptarget.param().abi()).ok() } } - pub unsafe fn GetFullscreenState(&self, pfullscreen: Option<*mut super::super::Foundation::BOOL>, pptarget: Option<*mut Option>) -> windows_core::Result<()> { + pub unsafe fn GetFullscreenState(&self, pfullscreen: Option<*mut windows_core::BOOL>, pptarget: Option<*mut Option>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetFullscreenState)(windows_core::Interface::as_raw(self), pfullscreen.unwrap_or(core::mem::zeroed()) as _, pptarget.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -5342,8 +5342,8 @@ pub struct IDXGISwapChain_Vtbl { pub base__: IDXGIDeviceSubObject_Vtbl, pub Present: unsafe extern "system" fn(*mut core::ffi::c_void, u32, DXGI_PRESENT) -> windows_core::HRESULT, pub GetBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetFullscreenState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetFullscreenState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub SetFullscreenState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetFullscreenState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub GetDesc: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DXGI_SWAP_CHAIN_DESC) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] @@ -5366,8 +5366,8 @@ unsafe impl Sync for IDXGISwapChain {} pub trait IDXGISwapChain_Impl: IDXGIDeviceSubObject_Impl { fn Present(&self, syncinterval: u32, flags: DXGI_PRESENT) -> windows_core::HRESULT; fn GetBuffer(&self, buffer: u32, riid: *const windows_core::GUID, ppsurface: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; - fn SetFullscreenState(&self, fullscreen: super::super::Foundation::BOOL, ptarget: windows_core::Ref) -> windows_core::Result<()>; - fn GetFullscreenState(&self, pfullscreen: *mut super::super::Foundation::BOOL, pptarget: windows_core::OutRef<'_, IDXGIOutput>) -> windows_core::Result<()>; + fn SetFullscreenState(&self, fullscreen: windows_core::BOOL, ptarget: windows_core::Ref) -> windows_core::Result<()>; + fn GetFullscreenState(&self, pfullscreen: *mut windows_core::BOOL, pptarget: windows_core::OutRef<'_, IDXGIOutput>) -> windows_core::Result<()>; fn GetDesc(&self) -> windows_core::Result; fn ResizeBuffers(&self, buffercount: u32, width: u32, height: u32, newformat: Common::DXGI_FORMAT, swapchainflags: &DXGI_SWAP_CHAIN_FLAG) -> windows_core::Result<()>; fn ResizeTarget(&self, pnewtargetparameters: *const Common::DXGI_MODE_DESC) -> windows_core::Result<()>; @@ -5390,13 +5390,13 @@ impl IDXGISwapChain_Vtbl { IDXGISwapChain_Impl::GetBuffer(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppsurface)).into() } } - unsafe extern "system" fn SetFullscreenState(this: *mut core::ffi::c_void, fullscreen: super::super::Foundation::BOOL, ptarget: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn SetFullscreenState(this: *mut core::ffi::c_void, fullscreen: windows_core::BOOL, ptarget: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain_Impl::SetFullscreenState(this, core::mem::transmute_copy(&fullscreen), core::mem::transmute_copy(&ptarget)).into() } } - unsafe extern "system" fn GetFullscreenState(this: *mut core::ffi::c_void, pfullscreen: *mut super::super::Foundation::BOOL, pptarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetFullscreenState(this: *mut core::ffi::c_void, pfullscreen: *mut windows_core::BOOL, pptarget: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain_Impl::GetFullscreenState(this, core::mem::transmute_copy(&pfullscreen), core::mem::transmute_copy(&pptarget)).into() @@ -5515,7 +5515,7 @@ impl IDXGISwapChain1 { pub unsafe fn Present1(&self, syncinterval: u32, presentflags: DXGI_PRESENT, ppresentparameters: *const DXGI_PRESENT_PARAMETERS) -> windows_core::HRESULT { unsafe { (windows_core::Interface::vtable(self).Present1)(windows_core::Interface::as_raw(self), syncinterval, presentflags, ppresentparameters) } } - pub unsafe fn IsTemporaryMonoSupported(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsTemporaryMonoSupported(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsTemporaryMonoSupported)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetRestrictToOutput(&self) -> windows_core::Result { @@ -5559,7 +5559,7 @@ pub struct IDXGISwapChain1_Vtbl { pub GetHwnd: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::HWND) -> windows_core::HRESULT, pub GetCoreWindow: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Present1: unsafe extern "system" fn(*mut core::ffi::c_void, u32, DXGI_PRESENT, *const DXGI_PRESENT_PARAMETERS) -> windows_core::HRESULT, - pub IsTemporaryMonoSupported: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsTemporaryMonoSupported: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetRestrictToOutput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetBackgroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, *const DXGI_RGBA) -> windows_core::HRESULT, pub GetBackgroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DXGI_RGBA) -> windows_core::HRESULT, @@ -5581,7 +5581,7 @@ pub trait IDXGISwapChain1_Impl: IDXGISwapChain_Impl { fn GetHwnd(&self) -> windows_core::Result; fn GetCoreWindow(&self, refiid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn Present1(&self, syncinterval: u32, presentflags: DXGI_PRESENT, ppresentparameters: *const DXGI_PRESENT_PARAMETERS) -> windows_core::HRESULT; - fn IsTemporaryMonoSupported(&self) -> super::super::Foundation::BOOL; + fn IsTemporaryMonoSupported(&self) -> windows_core::BOOL; fn GetRestrictToOutput(&self) -> windows_core::Result; fn SetBackgroundColor(&self, pcolor: *const DXGI_RGBA) -> windows_core::Result<()>; fn GetBackgroundColor(&self) -> windows_core::Result; @@ -5639,7 +5639,7 @@ impl IDXGISwapChain1_Vtbl { IDXGISwapChain1_Impl::Present1(this, core::mem::transmute_copy(&syncinterval), core::mem::transmute_copy(&presentflags), core::mem::transmute_copy(&ppresentparameters)) } } - unsafe extern "system" fn IsTemporaryMonoSupported(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsTemporaryMonoSupported(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDXGISwapChain1_Impl::IsTemporaryMonoSupported(this) diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs index a7e36fc970..72375feb7a 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Gdi/mod.rs @@ -1,6 +1,6 @@ #[inline] -pub unsafe fn AbortPath(hdc: HDC) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn AbortPath(hdc : HDC) -> super::super::Foundation:: BOOL); +pub unsafe fn AbortPath(hdc: HDC) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn AbortPath(hdc : HDC) -> windows_core::BOOL); unsafe { AbortPath(hdc) } } #[inline] @@ -41,28 +41,28 @@ where unsafe { AddFontResourceW(param0.param().abi()) } } #[inline] -pub unsafe fn AlphaBlend(hdcdest: HDC, xorigindest: i32, yorigindest: i32, wdest: i32, hdest: i32, hdcsrc: HDC, xoriginsrc: i32, yoriginsrc: i32, wsrc: i32, hsrc: i32, ftn: BLENDFUNCTION) -> super::super::Foundation::BOOL { - windows_targets::link!("msimg32.dll" "system" fn AlphaBlend(hdcdest : HDC, xorigindest : i32, yorigindest : i32, wdest : i32, hdest : i32, hdcsrc : HDC, xoriginsrc : i32, yoriginsrc : i32, wsrc : i32, hsrc : i32, ftn : BLENDFUNCTION) -> super::super::Foundation:: BOOL); +pub unsafe fn AlphaBlend(hdcdest: HDC, xorigindest: i32, yorigindest: i32, wdest: i32, hdest: i32, hdcsrc: HDC, xoriginsrc: i32, yoriginsrc: i32, wsrc: i32, hsrc: i32, ftn: BLENDFUNCTION) -> windows_core::BOOL { + windows_targets::link!("msimg32.dll" "system" fn AlphaBlend(hdcdest : HDC, xorigindest : i32, yorigindest : i32, wdest : i32, hdest : i32, hdcsrc : HDC, xoriginsrc : i32, yoriginsrc : i32, wsrc : i32, hsrc : i32, ftn : BLENDFUNCTION) -> windows_core::BOOL); unsafe { AlphaBlend(hdcdest, xorigindest, yorigindest, wdest, hdest, hdcsrc, xoriginsrc, yoriginsrc, wsrc, hsrc, core::mem::transmute(ftn)) } } #[inline] -pub unsafe fn AngleArc(hdc: HDC, x: i32, y: i32, r: u32, startangle: f32, sweepangle: f32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn AngleArc(hdc : HDC, x : i32, y : i32, r : u32, startangle : f32, sweepangle : f32) -> super::super::Foundation:: BOOL); +pub unsafe fn AngleArc(hdc: HDC, x: i32, y: i32, r: u32, startangle: f32, sweepangle: f32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn AngleArc(hdc : HDC, x : i32, y : i32, r : u32, startangle : f32, sweepangle : f32) -> windows_core::BOOL); unsafe { AngleArc(hdc, x, y, r, startangle, sweepangle) } } #[inline] -pub unsafe fn AnimatePalette(hpal: HPALETTE, istartindex: u32, ppe: &[PALETTEENTRY]) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn AnimatePalette(hpal : HPALETTE, istartindex : u32, centries : u32, ppe : *const PALETTEENTRY) -> super::super::Foundation:: BOOL); +pub unsafe fn AnimatePalette(hpal: HPALETTE, istartindex: u32, ppe: &[PALETTEENTRY]) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn AnimatePalette(hpal : HPALETTE, istartindex : u32, centries : u32, ppe : *const PALETTEENTRY) -> windows_core::BOOL); unsafe { AnimatePalette(hpal, istartindex, ppe.len().try_into().unwrap(), core::mem::transmute(ppe.as_ptr())) } } #[inline] -pub unsafe fn Arc(hdc: HDC, x1: i32, y1: i32, x2: i32, y2: i32, x3: i32, y3: i32, x4: i32, y4: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn Arc(hdc : HDC, x1 : i32, y1 : i32, x2 : i32, y2 : i32, x3 : i32, y3 : i32, x4 : i32, y4 : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn Arc(hdc: HDC, x1: i32, y1: i32, x2: i32, y2: i32, x3: i32, y3: i32, x4: i32, y4: i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn Arc(hdc : HDC, x1 : i32, y1 : i32, x2 : i32, y2 : i32, x3 : i32, y3 : i32, x4 : i32, y4 : i32) -> windows_core::BOOL); unsafe { Arc(hdc, x1, y1, x2, y2, x3, y3, x4, y4) } } #[inline] -pub unsafe fn ArcTo(hdc: HDC, left: i32, top: i32, right: i32, bottom: i32, xr1: i32, yr1: i32, xr2: i32, yr2: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn ArcTo(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32, xr1 : i32, yr1 : i32, xr2 : i32, yr2 : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn ArcTo(hdc: HDC, left: i32, top: i32, right: i32, bottom: i32, xr1: i32, yr1: i32, xr2: i32, yr2: i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn ArcTo(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32, xr1 : i32, yr1 : i32, xr2 : i32, yr2 : i32) -> windows_core::BOOL); unsafe { ArcTo(hdc, left, top, right, bottom, xr1, yr1, xr2, yr2) } } #[inline] @@ -71,18 +71,18 @@ pub unsafe fn BeginPaint(hwnd: super::super::Foundation::HWND, lppaint: *mut PAI unsafe { BeginPaint(hwnd, lppaint as _) } } #[inline] -pub unsafe fn BeginPath(hdc: HDC) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn BeginPath(hdc : HDC) -> super::super::Foundation:: BOOL); +pub unsafe fn BeginPath(hdc: HDC) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn BeginPath(hdc : HDC) -> windows_core::BOOL); unsafe { BeginPath(hdc) } } #[inline] pub unsafe fn BitBlt(hdc: HDC, x: i32, y: i32, cx: i32, cy: i32, hdcsrc: Option, x1: i32, y1: i32, rop: ROP_CODE) -> windows_core::Result<()> { - windows_targets::link!("gdi32.dll" "system" fn BitBlt(hdc : HDC, x : i32, y : i32, cx : i32, cy : i32, hdcsrc : HDC, x1 : i32, y1 : i32, rop : ROP_CODE) -> super::super::Foundation:: BOOL); + windows_targets::link!("gdi32.dll" "system" fn BitBlt(hdc : HDC, x : i32, y : i32, cx : i32, cy : i32, hdcsrc : HDC, x1 : i32, y1 : i32, rop : ROP_CODE) -> windows_core::BOOL); unsafe { BitBlt(hdc, x, y, cx, cy, hdcsrc.unwrap_or(core::mem::zeroed()) as _, x1, y1, rop).ok() } } #[inline] -pub unsafe fn CancelDC(hdc: HDC) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn CancelDC(hdc : HDC) -> super::super::Foundation:: BOOL); +pub unsafe fn CancelDC(hdc: HDC) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn CancelDC(hdc : HDC) -> windows_core::BOOL); unsafe { CancelDC(hdc) } } #[inline] @@ -112,13 +112,13 @@ pub unsafe fn ChangeDisplaySettingsW(lpdevmode: Option<*const DEVMODEW>, dwflags unsafe { ChangeDisplaySettingsW(lpdevmode.unwrap_or(core::mem::zeroed()) as _, dwflags) } } #[inline] -pub unsafe fn Chord(hdc: HDC, x1: i32, y1: i32, x2: i32, y2: i32, x3: i32, y3: i32, x4: i32, y4: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn Chord(hdc : HDC, x1 : i32, y1 : i32, x2 : i32, y2 : i32, x3 : i32, y3 : i32, x4 : i32, y4 : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn Chord(hdc: HDC, x1: i32, y1: i32, x2: i32, y2: i32, x3: i32, y3: i32, x4: i32, y4: i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn Chord(hdc : HDC, x1 : i32, y1 : i32, x2 : i32, y2 : i32, x3 : i32, y3 : i32, x4 : i32, y4 : i32) -> windows_core::BOOL); unsafe { Chord(hdc, x1, y1, x2, y2, x3, y3, x4, y4) } } #[inline] -pub unsafe fn ClientToScreen(hwnd: super::super::Foundation::HWND, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn ClientToScreen(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn ClientToScreen(hwnd: super::super::Foundation::HWND, lppoint: *mut super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn ClientToScreen(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { ClientToScreen(hwnd, lppoint as _) } } #[inline] @@ -127,8 +127,8 @@ pub unsafe fn CloseEnhMetaFile(hdc: HDC) -> HENHMETAFILE { unsafe { CloseEnhMetaFile(hdc) } } #[inline] -pub unsafe fn CloseFigure(hdc: HDC) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn CloseFigure(hdc : HDC) -> super::super::Foundation:: BOOL); +pub unsafe fn CloseFigure(hdc: HDC) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn CloseFigure(hdc : HDC) -> windows_core::BOOL); unsafe { CloseFigure(hdc) } } #[inline] @@ -142,8 +142,8 @@ pub unsafe fn CombineRgn(hrgndst: Option, hrgnsrc1: Option, hrgnsrc2 unsafe { CombineRgn(hrgndst.unwrap_or(core::mem::zeroed()) as _, hrgnsrc1.unwrap_or(core::mem::zeroed()) as _, hrgnsrc2.unwrap_or(core::mem::zeroed()) as _, imode) } } #[inline] -pub unsafe fn CombineTransform(lpxfout: *mut XFORM, lpxf1: *const XFORM, lpxf2: *const XFORM) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn CombineTransform(lpxfout : *mut XFORM, lpxf1 : *const XFORM, lpxf2 : *const XFORM) -> super::super::Foundation:: BOOL); +pub unsafe fn CombineTransform(lpxfout: *mut XFORM, lpxf1: *const XFORM, lpxf2: *const XFORM) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn CombineTransform(lpxfout : *mut XFORM, lpxf1 : *const XFORM, lpxf2 : *const XFORM) -> windows_core::BOOL); unsafe { CombineTransform(lpxfout as _, lpxf1, lpxf2) } } #[inline] @@ -179,8 +179,8 @@ where unsafe { CopyMetaFileW(param0, param1.param().abi()) } } #[inline] -pub unsafe fn CopyRect(lprcdst: *mut super::super::Foundation::RECT, lprcsrc: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn CopyRect(lprcdst : *mut super::super::Foundation:: RECT, lprcsrc : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn CopyRect(lprcdst: *mut super::super::Foundation::RECT, lprcsrc: *const super::super::Foundation::RECT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn CopyRect(lprcdst : *mut super::super::Foundation:: RECT, lprcsrc : *const super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { CopyRect(lprcdst as _, lprcsrc) } } #[inline] @@ -421,7 +421,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("gdi32.dll" "system" fn CreateScalableFontResourceA(fdwhidden : u32, lpszfont : windows_core::PCSTR, lpszfile : windows_core::PCSTR, lpszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("gdi32.dll" "system" fn CreateScalableFontResourceA(fdwhidden : u32, lpszfont : windows_core::PCSTR, lpszfile : windows_core::PCSTR, lpszpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { CreateScalableFontResourceA(fdwhidden, lpszfont.param().abi(), lpszfile.param().abi(), lpszpath.param().abi()).ok() } } #[inline] @@ -431,7 +431,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("gdi32.dll" "system" fn CreateScalableFontResourceW(fdwhidden : u32, lpszfont : windows_core::PCWSTR, lpszfile : windows_core::PCWSTR, lpszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("gdi32.dll" "system" fn CreateScalableFontResourceW(fdwhidden : u32, lpszfont : windows_core::PCWSTR, lpszfile : windows_core::PCWSTR, lpszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { CreateScalableFontResourceW(fdwhidden, lpszfont.param().abi(), lpszfile.param().abi(), lpszpath.param().abi()).ok() } } #[inline] @@ -440,43 +440,43 @@ pub unsafe fn CreateSolidBrush(color: super::super::Foundation::COLORREF) -> HBR unsafe { CreateSolidBrush(color) } } #[inline] -pub unsafe fn DPtoLP(hdc: HDC, lppt: &mut [super::super::Foundation::POINT]) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn DPtoLP(hdc : HDC, lppt : *mut super::super::Foundation:: POINT, c : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn DPtoLP(hdc: HDC, lppt: &mut [super::super::Foundation::POINT]) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn DPtoLP(hdc : HDC, lppt : *mut super::super::Foundation:: POINT, c : i32) -> windows_core::BOOL); unsafe { DPtoLP(hdc, core::mem::transmute(lppt.as_ptr()), lppt.len().try_into().unwrap()) } } #[inline] -pub unsafe fn DeleteDC(hdc: HDC) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn DeleteDC(hdc : HDC) -> super::super::Foundation:: BOOL); +pub unsafe fn DeleteDC(hdc: HDC) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn DeleteDC(hdc : HDC) -> windows_core::BOOL); unsafe { DeleteDC(hdc) } } #[inline] -pub unsafe fn DeleteEnhMetaFile(hmf: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn DeleteEnhMetaFile(hmf : HENHMETAFILE) -> super::super::Foundation:: BOOL); +pub unsafe fn DeleteEnhMetaFile(hmf: Option) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn DeleteEnhMetaFile(hmf : HENHMETAFILE) -> windows_core::BOOL); unsafe { DeleteEnhMetaFile(hmf.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn DeleteMetaFile(hmf: HMETAFILE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn DeleteMetaFile(hmf : HMETAFILE) -> super::super::Foundation:: BOOL); +pub unsafe fn DeleteMetaFile(hmf: HMETAFILE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn DeleteMetaFile(hmf : HMETAFILE) -> windows_core::BOOL); unsafe { DeleteMetaFile(hmf) } } #[inline] -pub unsafe fn DeleteObject(ho: HGDIOBJ) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn DeleteObject(ho : HGDIOBJ) -> super::super::Foundation:: BOOL); +pub unsafe fn DeleteObject(ho: HGDIOBJ) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn DeleteObject(ho : HGDIOBJ) -> windows_core::BOOL); unsafe { DeleteObject(ho) } } #[inline] -pub unsafe fn DrawAnimatedRects(hwnd: Option, idani: i32, lprcfrom: *const super::super::Foundation::RECT, lprcto: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DrawAnimatedRects(hwnd : super::super::Foundation:: HWND, idani : i32, lprcfrom : *const super::super::Foundation:: RECT, lprcto : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn DrawAnimatedRects(hwnd: Option, idani: i32, lprcfrom: *const super::super::Foundation::RECT, lprcto: *const super::super::Foundation::RECT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DrawAnimatedRects(hwnd : super::super::Foundation:: HWND, idani : i32, lprcfrom : *const super::super::Foundation:: RECT, lprcto : *const super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { DrawAnimatedRects(hwnd.unwrap_or(core::mem::zeroed()) as _, idani, lprcfrom, lprcto) } } #[inline] -pub unsafe fn DrawCaption(hwnd: super::super::Foundation::HWND, hdc: HDC, lprect: *const super::super::Foundation::RECT, flags: DRAW_CAPTION_FLAGS) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DrawCaption(hwnd : super::super::Foundation:: HWND, hdc : HDC, lprect : *const super::super::Foundation:: RECT, flags : DRAW_CAPTION_FLAGS) -> super::super::Foundation:: BOOL); +pub unsafe fn DrawCaption(hwnd: super::super::Foundation::HWND, hdc: HDC, lprect: *const super::super::Foundation::RECT, flags: DRAW_CAPTION_FLAGS) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DrawCaption(hwnd : super::super::Foundation:: HWND, hdc : HDC, lprect : *const super::super::Foundation:: RECT, flags : DRAW_CAPTION_FLAGS) -> windows_core::BOOL); unsafe { DrawCaption(hwnd, hdc, lprect, flags) } } #[inline] -pub unsafe fn DrawEdge(hdc: HDC, qrc: *mut super::super::Foundation::RECT, edge: DRAWEDGE_FLAGS, grfflags: DRAW_EDGE_FLAGS) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DrawEdge(hdc : HDC, qrc : *mut super::super::Foundation:: RECT, edge : DRAWEDGE_FLAGS, grfflags : DRAW_EDGE_FLAGS) -> super::super::Foundation:: BOOL); +pub unsafe fn DrawEdge(hdc: HDC, qrc: *mut super::super::Foundation::RECT, edge: DRAWEDGE_FLAGS, grfflags: DRAW_EDGE_FLAGS) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DrawEdge(hdc : HDC, qrc : *mut super::super::Foundation:: RECT, edge : DRAWEDGE_FLAGS, grfflags : DRAW_EDGE_FLAGS) -> windows_core::BOOL); unsafe { DrawEdge(hdc, qrc as _, edge, grfflags) } } #[inline] @@ -485,23 +485,23 @@ pub unsafe fn DrawEscape(hdc: HDC, iescape: i32, lpin: Option<&[u8]>) -> i32 { unsafe { DrawEscape(hdc, iescape, lpin.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpin.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } } #[inline] -pub unsafe fn DrawFocusRect(hdc: HDC, lprc: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DrawFocusRect(hdc : HDC, lprc : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn DrawFocusRect(hdc: HDC, lprc: *const super::super::Foundation::RECT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DrawFocusRect(hdc : HDC, lprc : *const super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { DrawFocusRect(hdc, lprc) } } #[inline] -pub unsafe fn DrawFrameControl(param0: HDC, param1: *mut super::super::Foundation::RECT, param2: DFC_TYPE, param3: DFCS_STATE) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DrawFrameControl(param0 : HDC, param1 : *mut super::super::Foundation:: RECT, param2 : DFC_TYPE, param3 : DFCS_STATE) -> super::super::Foundation:: BOOL); +pub unsafe fn DrawFrameControl(param0: HDC, param1: *mut super::super::Foundation::RECT, param2: DFC_TYPE, param3: DFCS_STATE) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DrawFrameControl(param0 : HDC, param1 : *mut super::super::Foundation:: RECT, param2 : DFC_TYPE, param3 : DFCS_STATE) -> windows_core::BOOL); unsafe { DrawFrameControl(param0, param1 as _, param2, param3) } } #[inline] -pub unsafe fn DrawStateA(hdc: HDC, hbrfore: Option, qfncallback: Option, ldata: super::super::Foundation::LPARAM, wdata: super::super::Foundation::WPARAM, x: i32, y: i32, cx: i32, cy: i32, uflags: DRAWSTATE_FLAGS) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DrawStateA(hdc : HDC, hbrfore : HBRUSH, qfncallback : DRAWSTATEPROC, ldata : super::super::Foundation:: LPARAM, wdata : super::super::Foundation:: WPARAM, x : i32, y : i32, cx : i32, cy : i32, uflags : DRAWSTATE_FLAGS) -> super::super::Foundation:: BOOL); +pub unsafe fn DrawStateA(hdc: HDC, hbrfore: Option, qfncallback: Option, ldata: super::super::Foundation::LPARAM, wdata: super::super::Foundation::WPARAM, x: i32, y: i32, cx: i32, cy: i32, uflags: DRAWSTATE_FLAGS) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DrawStateA(hdc : HDC, hbrfore : HBRUSH, qfncallback : DRAWSTATEPROC, ldata : super::super::Foundation:: LPARAM, wdata : super::super::Foundation:: WPARAM, x : i32, y : i32, cx : i32, cy : i32, uflags : DRAWSTATE_FLAGS) -> windows_core::BOOL); unsafe { DrawStateA(hdc, hbrfore.unwrap_or(core::mem::zeroed()) as _, qfncallback.unwrap_or(core::mem::zeroed()) as _, ldata, wdata, x, y, cx, cy, uflags) } } #[inline] -pub unsafe fn DrawStateW(hdc: HDC, hbrfore: Option, qfncallback: Option, ldata: super::super::Foundation::LPARAM, wdata: super::super::Foundation::WPARAM, x: i32, y: i32, cx: i32, cy: i32, uflags: DRAWSTATE_FLAGS) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DrawStateW(hdc : HDC, hbrfore : HBRUSH, qfncallback : DRAWSTATEPROC, ldata : super::super::Foundation:: LPARAM, wdata : super::super::Foundation:: WPARAM, x : i32, y : i32, cx : i32, cy : i32, uflags : DRAWSTATE_FLAGS) -> super::super::Foundation:: BOOL); +pub unsafe fn DrawStateW(hdc: HDC, hbrfore: Option, qfncallback: Option, ldata: super::super::Foundation::LPARAM, wdata: super::super::Foundation::WPARAM, x: i32, y: i32, cx: i32, cy: i32, uflags: DRAWSTATE_FLAGS) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DrawStateW(hdc : HDC, hbrfore : HBRUSH, qfncallback : DRAWSTATEPROC, ldata : super::super::Foundation:: LPARAM, wdata : super::super::Foundation:: WPARAM, x : i32, y : i32, cx : i32, cy : i32, uflags : DRAWSTATE_FLAGS) -> windows_core::BOOL); unsafe { DrawStateW(hdc, hbrfore.unwrap_or(core::mem::zeroed()) as _, qfncallback.unwrap_or(core::mem::zeroed()) as _, ldata, wdata, x, y, cx, cy, uflags) } } #[inline] @@ -525,76 +525,76 @@ pub unsafe fn DrawTextW(hdc: HDC, lpchtext: &mut [u16], lprc: *mut super::super: unsafe { DrawTextW(hdc, core::mem::transmute(lpchtext.as_ptr()), lpchtext.len().try_into().unwrap(), lprc as _, format) } } #[inline] -pub unsafe fn Ellipse(hdc: HDC, left: i32, top: i32, right: i32, bottom: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn Ellipse(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn Ellipse(hdc: HDC, left: i32, top: i32, right: i32, bottom: i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn Ellipse(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32) -> windows_core::BOOL); unsafe { Ellipse(hdc, left, top, right, bottom) } } #[inline] -pub unsafe fn EndPaint(hwnd: super::super::Foundation::HWND, lppaint: *const PAINTSTRUCT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn EndPaint(hwnd : super::super::Foundation:: HWND, lppaint : *const PAINTSTRUCT) -> super::super::Foundation:: BOOL); +pub unsafe fn EndPaint(hwnd: super::super::Foundation::HWND, lppaint: *const PAINTSTRUCT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn EndPaint(hwnd : super::super::Foundation:: HWND, lppaint : *const PAINTSTRUCT) -> windows_core::BOOL); unsafe { EndPaint(hwnd, lppaint) } } #[inline] -pub unsafe fn EndPath(hdc: HDC) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EndPath(hdc : HDC) -> super::super::Foundation:: BOOL); +pub unsafe fn EndPath(hdc: HDC) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EndPath(hdc : HDC) -> windows_core::BOOL); unsafe { EndPath(hdc) } } #[inline] -pub unsafe fn EnumDisplayDevicesA(lpdevice: P0, idevnum: u32, lpdisplaydevice: *mut DISPLAY_DEVICEA, dwflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn EnumDisplayDevicesA(lpdevice: P0, idevnum: u32, lpdisplaydevice: *mut DISPLAY_DEVICEA, dwflags: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn EnumDisplayDevicesA(lpdevice : windows_core::PCSTR, idevnum : u32, lpdisplaydevice : *mut DISPLAY_DEVICEA, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EnumDisplayDevicesA(lpdevice : windows_core::PCSTR, idevnum : u32, lpdisplaydevice : *mut DISPLAY_DEVICEA, dwflags : u32) -> windows_core::BOOL); unsafe { EnumDisplayDevicesA(lpdevice.param().abi(), idevnum, lpdisplaydevice as _, dwflags) } } #[inline] -pub unsafe fn EnumDisplayDevicesW(lpdevice: P0, idevnum: u32, lpdisplaydevice: *mut DISPLAY_DEVICEW, dwflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn EnumDisplayDevicesW(lpdevice: P0, idevnum: u32, lpdisplaydevice: *mut DISPLAY_DEVICEW, dwflags: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn EnumDisplayDevicesW(lpdevice : windows_core::PCWSTR, idevnum : u32, lpdisplaydevice : *mut DISPLAY_DEVICEW, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EnumDisplayDevicesW(lpdevice : windows_core::PCWSTR, idevnum : u32, lpdisplaydevice : *mut DISPLAY_DEVICEW, dwflags : u32) -> windows_core::BOOL); unsafe { EnumDisplayDevicesW(lpdevice.param().abi(), idevnum, lpdisplaydevice as _, dwflags) } } #[inline] -pub unsafe fn EnumDisplayMonitors(hdc: Option, lprcclip: Option<*const super::super::Foundation::RECT>, lpfnenum: MONITORENUMPROC, dwdata: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn EnumDisplayMonitors(hdc : HDC, lprcclip : *const super::super::Foundation:: RECT, lpfnenum : MONITORENUMPROC, dwdata : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); +pub unsafe fn EnumDisplayMonitors(hdc: Option, lprcclip: Option<*const super::super::Foundation::RECT>, lpfnenum: MONITORENUMPROC, dwdata: super::super::Foundation::LPARAM) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn EnumDisplayMonitors(hdc : HDC, lprcclip : *const super::super::Foundation:: RECT, lpfnenum : MONITORENUMPROC, dwdata : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { EnumDisplayMonitors(hdc.unwrap_or(core::mem::zeroed()) as _, lprcclip.unwrap_or(core::mem::zeroed()) as _, lpfnenum, dwdata) } } #[inline] -pub unsafe fn EnumDisplaySettingsA(lpszdevicename: P0, imodenum: ENUM_DISPLAY_SETTINGS_MODE, lpdevmode: *mut DEVMODEA) -> super::super::Foundation::BOOL +pub unsafe fn EnumDisplaySettingsA(lpszdevicename: P0, imodenum: ENUM_DISPLAY_SETTINGS_MODE, lpdevmode: *mut DEVMODEA) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn EnumDisplaySettingsA(lpszdevicename : windows_core::PCSTR, imodenum : ENUM_DISPLAY_SETTINGS_MODE, lpdevmode : *mut DEVMODEA) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EnumDisplaySettingsA(lpszdevicename : windows_core::PCSTR, imodenum : ENUM_DISPLAY_SETTINGS_MODE, lpdevmode : *mut DEVMODEA) -> windows_core::BOOL); unsafe { EnumDisplaySettingsA(lpszdevicename.param().abi(), imodenum, lpdevmode as _) } } #[inline] -pub unsafe fn EnumDisplaySettingsExA(lpszdevicename: P0, imodenum: ENUM_DISPLAY_SETTINGS_MODE, lpdevmode: *mut DEVMODEA, dwflags: ENUM_DISPLAY_SETTINGS_FLAGS) -> super::super::Foundation::BOOL +pub unsafe fn EnumDisplaySettingsExA(lpszdevicename: P0, imodenum: ENUM_DISPLAY_SETTINGS_MODE, lpdevmode: *mut DEVMODEA, dwflags: ENUM_DISPLAY_SETTINGS_FLAGS) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn EnumDisplaySettingsExA(lpszdevicename : windows_core::PCSTR, imodenum : ENUM_DISPLAY_SETTINGS_MODE, lpdevmode : *mut DEVMODEA, dwflags : ENUM_DISPLAY_SETTINGS_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EnumDisplaySettingsExA(lpszdevicename : windows_core::PCSTR, imodenum : ENUM_DISPLAY_SETTINGS_MODE, lpdevmode : *mut DEVMODEA, dwflags : ENUM_DISPLAY_SETTINGS_FLAGS) -> windows_core::BOOL); unsafe { EnumDisplaySettingsExA(lpszdevicename.param().abi(), imodenum, lpdevmode as _, dwflags) } } #[inline] -pub unsafe fn EnumDisplaySettingsExW(lpszdevicename: P0, imodenum: ENUM_DISPLAY_SETTINGS_MODE, lpdevmode: *mut DEVMODEW, dwflags: ENUM_DISPLAY_SETTINGS_FLAGS) -> super::super::Foundation::BOOL +pub unsafe fn EnumDisplaySettingsExW(lpszdevicename: P0, imodenum: ENUM_DISPLAY_SETTINGS_MODE, lpdevmode: *mut DEVMODEW, dwflags: ENUM_DISPLAY_SETTINGS_FLAGS) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn EnumDisplaySettingsExW(lpszdevicename : windows_core::PCWSTR, imodenum : ENUM_DISPLAY_SETTINGS_MODE, lpdevmode : *mut DEVMODEW, dwflags : ENUM_DISPLAY_SETTINGS_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EnumDisplaySettingsExW(lpszdevicename : windows_core::PCWSTR, imodenum : ENUM_DISPLAY_SETTINGS_MODE, lpdevmode : *mut DEVMODEW, dwflags : ENUM_DISPLAY_SETTINGS_FLAGS) -> windows_core::BOOL); unsafe { EnumDisplaySettingsExW(lpszdevicename.param().abi(), imodenum, lpdevmode as _, dwflags) } } #[inline] -pub unsafe fn EnumDisplaySettingsW(lpszdevicename: P0, imodenum: ENUM_DISPLAY_SETTINGS_MODE, lpdevmode: *mut DEVMODEW) -> super::super::Foundation::BOOL +pub unsafe fn EnumDisplaySettingsW(lpszdevicename: P0, imodenum: ENUM_DISPLAY_SETTINGS_MODE, lpdevmode: *mut DEVMODEW) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn EnumDisplaySettingsW(lpszdevicename : windows_core::PCWSTR, imodenum : ENUM_DISPLAY_SETTINGS_MODE, lpdevmode : *mut DEVMODEW) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EnumDisplaySettingsW(lpszdevicename : windows_core::PCWSTR, imodenum : ENUM_DISPLAY_SETTINGS_MODE, lpdevmode : *mut DEVMODEW) -> windows_core::BOOL); unsafe { EnumDisplaySettingsW(lpszdevicename.param().abi(), imodenum, lpdevmode as _) } } #[inline] -pub unsafe fn EnumEnhMetaFile(hdc: Option, hmf: HENHMETAFILE, proc: ENHMFENUMPROC, param3: Option<*const core::ffi::c_void>, lprect: Option<*const super::super::Foundation::RECT>) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EnumEnhMetaFile(hdc : HDC, hmf : HENHMETAFILE, proc : ENHMFENUMPROC, param3 : *const core::ffi::c_void, lprect : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn EnumEnhMetaFile(hdc: Option, hmf: HENHMETAFILE, proc: ENHMFENUMPROC, param3: Option<*const core::ffi::c_void>, lprect: Option<*const super::super::Foundation::RECT>) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EnumEnhMetaFile(hdc : HDC, hmf : HENHMETAFILE, proc : ENHMFENUMPROC, param3 : *const core::ffi::c_void, lprect : *const super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { EnumEnhMetaFile(hdc.unwrap_or(core::mem::zeroed()) as _, hmf, proc, param3.unwrap_or(core::mem::zeroed()) as _, lprect.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -640,8 +640,8 @@ where unsafe { EnumFontsW(hdc, lplogfont.param().abi(), lpproc, lparam) } } #[inline] -pub unsafe fn EnumMetaFile(hdc: HDC, hmf: HMETAFILE, proc: MFENUMPROC, param3: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EnumMetaFile(hdc : HDC, hmf : HMETAFILE, proc : MFENUMPROC, param3 : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); +pub unsafe fn EnumMetaFile(hdc: HDC, hmf: HMETAFILE, proc: MFENUMPROC, param3: Option) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EnumMetaFile(hdc : HDC, hmf : HMETAFILE, proc : MFENUMPROC, param3 : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { EnumMetaFile(hdc, hmf, proc, param3.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -650,13 +650,13 @@ pub unsafe fn EnumObjects(hdc: HDC, ntype: OBJ_TYPE, lpfunc: GOBJENUMPROC, lpara unsafe { EnumObjects(hdc, ntype, lpfunc, lparam) } } #[inline] -pub unsafe fn EqualRect(lprc1: *const super::super::Foundation::RECT, lprc2: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn EqualRect(lprc1 : *const super::super::Foundation:: RECT, lprc2 : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn EqualRect(lprc1: *const super::super::Foundation::RECT, lprc2: *const super::super::Foundation::RECT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn EqualRect(lprc1 : *const super::super::Foundation:: RECT, lprc2 : *const super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { EqualRect(lprc1, lprc2) } } #[inline] -pub unsafe fn EqualRgn(hrgn1: HRGN, hrgn2: HRGN) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn EqualRgn(hrgn1 : HRGN, hrgn2 : HRGN) -> super::super::Foundation:: BOOL); +pub unsafe fn EqualRgn(hrgn1: HRGN, hrgn2: HRGN) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn EqualRgn(hrgn1 : HRGN, hrgn2 : HRGN) -> windows_core::BOOL); unsafe { EqualRgn(hrgn1, hrgn2) } } #[inline] @@ -680,8 +680,8 @@ pub unsafe fn ExtCreateRegion(lpx: Option<*const XFORM>, ncount: u32, lpdata: *c unsafe { ExtCreateRegion(lpx.unwrap_or(core::mem::zeroed()) as _, ncount, lpdata) } } #[inline] -pub unsafe fn ExtFloodFill(hdc: HDC, x: i32, y: i32, color: super::super::Foundation::COLORREF, r#type: EXT_FLOOD_FILL_TYPE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn ExtFloodFill(hdc : HDC, x : i32, y : i32, color : super::super::Foundation:: COLORREF, r#type : EXT_FLOOD_FILL_TYPE) -> super::super::Foundation:: BOOL); +pub unsafe fn ExtFloodFill(hdc: HDC, x: i32, y: i32, color: super::super::Foundation::COLORREF, r#type: EXT_FLOOD_FILL_TYPE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn ExtFloodFill(hdc : HDC, x : i32, y : i32, color : super::super::Foundation:: COLORREF, r#type : EXT_FLOOD_FILL_TYPE) -> windows_core::BOOL); unsafe { ExtFloodFill(hdc, x, y, color, r#type) } } #[inline] @@ -690,24 +690,24 @@ pub unsafe fn ExtSelectClipRgn(hdc: HDC, hrgn: Option, mode: RGN_COMBINE_M unsafe { ExtSelectClipRgn(hdc, hrgn.unwrap_or(core::mem::zeroed()) as _, mode) } } #[inline] -pub unsafe fn ExtTextOutA(hdc: HDC, x: i32, y: i32, options: ETO_OPTIONS, lprect: Option<*const super::super::Foundation::RECT>, lpstring: P5, c: u32, lpdx: Option<*const i32>) -> super::super::Foundation::BOOL +pub unsafe fn ExtTextOutA(hdc: HDC, x: i32, y: i32, options: ETO_OPTIONS, lprect: Option<*const super::super::Foundation::RECT>, lpstring: P5, c: u32, lpdx: Option<*const i32>) -> windows_core::BOOL where P5: windows_core::Param, { - windows_targets::link!("gdi32.dll" "system" fn ExtTextOutA(hdc : HDC, x : i32, y : i32, options : ETO_OPTIONS, lprect : *const super::super::Foundation:: RECT, lpstring : windows_core::PCSTR, c : u32, lpdx : *const i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("gdi32.dll" "system" fn ExtTextOutA(hdc : HDC, x : i32, y : i32, options : ETO_OPTIONS, lprect : *const super::super::Foundation:: RECT, lpstring : windows_core::PCSTR, c : u32, lpdx : *const i32) -> windows_core::BOOL); unsafe { ExtTextOutA(hdc, x, y, options, lprect.unwrap_or(core::mem::zeroed()) as _, lpstring.param().abi(), c, lpdx.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn ExtTextOutW(hdc: HDC, x: i32, y: i32, options: ETO_OPTIONS, lprect: Option<*const super::super::Foundation::RECT>, lpstring: P5, c: u32, lpdx: Option<*const i32>) -> super::super::Foundation::BOOL +pub unsafe fn ExtTextOutW(hdc: HDC, x: i32, y: i32, options: ETO_OPTIONS, lprect: Option<*const super::super::Foundation::RECT>, lpstring: P5, c: u32, lpdx: Option<*const i32>) -> windows_core::BOOL where P5: windows_core::Param, { - windows_targets::link!("gdi32.dll" "system" fn ExtTextOutW(hdc : HDC, x : i32, y : i32, options : ETO_OPTIONS, lprect : *const super::super::Foundation:: RECT, lpstring : windows_core::PCWSTR, c : u32, lpdx : *const i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("gdi32.dll" "system" fn ExtTextOutW(hdc : HDC, x : i32, y : i32, options : ETO_OPTIONS, lprect : *const super::super::Foundation:: RECT, lpstring : windows_core::PCWSTR, c : u32, lpdx : *const i32) -> windows_core::BOOL); unsafe { ExtTextOutW(hdc, x, y, options, lprect.unwrap_or(core::mem::zeroed()) as _, lpstring.param().abi(), c, lpdx.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn FillPath(hdc: HDC) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn FillPath(hdc : HDC) -> super::super::Foundation:: BOOL); +pub unsafe fn FillPath(hdc: HDC) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn FillPath(hdc : HDC) -> windows_core::BOOL); unsafe { FillPath(hdc) } } #[inline] @@ -716,23 +716,23 @@ pub unsafe fn FillRect(hdc: HDC, lprc: *const super::super::Foundation::RECT, hb unsafe { FillRect(hdc, lprc, hbr) } } #[inline] -pub unsafe fn FillRgn(hdc: HDC, hrgn: HRGN, hbr: HBRUSH) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn FillRgn(hdc : HDC, hrgn : HRGN, hbr : HBRUSH) -> super::super::Foundation:: BOOL); +pub unsafe fn FillRgn(hdc: HDC, hrgn: HRGN, hbr: HBRUSH) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn FillRgn(hdc : HDC, hrgn : HRGN, hbr : HBRUSH) -> windows_core::BOOL); unsafe { FillRgn(hdc, hrgn, hbr) } } #[inline] -pub unsafe fn FixBrushOrgEx(hdc: HDC, x: i32, y: i32, ptl: Option<*const super::super::Foundation::POINT>) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn FixBrushOrgEx(hdc : HDC, x : i32, y : i32, ptl : *const super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn FixBrushOrgEx(hdc: HDC, x: i32, y: i32, ptl: Option<*const super::super::Foundation::POINT>) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn FixBrushOrgEx(hdc : HDC, x : i32, y : i32, ptl : *const super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { FixBrushOrgEx(hdc, x, y, ptl.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn FlattenPath(hdc: HDC) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn FlattenPath(hdc : HDC) -> super::super::Foundation:: BOOL); +pub unsafe fn FlattenPath(hdc: HDC) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn FlattenPath(hdc : HDC) -> windows_core::BOOL); unsafe { FlattenPath(hdc) } } #[inline] -pub unsafe fn FloodFill(hdc: HDC, x: i32, y: i32, color: super::super::Foundation::COLORREF) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn FloodFill(hdc : HDC, x : i32, y : i32, color : super::super::Foundation:: COLORREF) -> super::super::Foundation:: BOOL); +pub unsafe fn FloodFill(hdc: HDC, x: i32, y: i32, color: super::super::Foundation::COLORREF) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn FloodFill(hdc : HDC, x : i32, y : i32, color : super::super::Foundation:: COLORREF) -> windows_core::BOOL); unsafe { FloodFill(hdc, x, y, color) } } #[inline] @@ -741,23 +741,23 @@ pub unsafe fn FrameRect(hdc: HDC, lprc: *const super::super::Foundation::RECT, h unsafe { FrameRect(hdc, lprc, hbr) } } #[inline] -pub unsafe fn FrameRgn(hdc: HDC, hrgn: HRGN, hbr: HBRUSH, w: i32, h: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn FrameRgn(hdc : HDC, hrgn : HRGN, hbr : HBRUSH, w : i32, h : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn FrameRgn(hdc: HDC, hrgn: HRGN, hbr: HBRUSH, w: i32, h: i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn FrameRgn(hdc : HDC, hrgn : HRGN, hbr : HBRUSH, w : i32, h : i32) -> windows_core::BOOL); unsafe { FrameRgn(hdc, hrgn, hbr, w, h) } } #[inline] -pub unsafe fn GdiAlphaBlend(hdcdest: HDC, xorigindest: i32, yorigindest: i32, wdest: i32, hdest: i32, hdcsrc: HDC, xoriginsrc: i32, yoriginsrc: i32, wsrc: i32, hsrc: i32, ftn: BLENDFUNCTION) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GdiAlphaBlend(hdcdest : HDC, xorigindest : i32, yorigindest : i32, wdest : i32, hdest : i32, hdcsrc : HDC, xoriginsrc : i32, yoriginsrc : i32, wsrc : i32, hsrc : i32, ftn : BLENDFUNCTION) -> super::super::Foundation:: BOOL); +pub unsafe fn GdiAlphaBlend(hdcdest: HDC, xorigindest: i32, yorigindest: i32, wdest: i32, hdest: i32, hdcsrc: HDC, xoriginsrc: i32, yoriginsrc: i32, wsrc: i32, hsrc: i32, ftn: BLENDFUNCTION) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GdiAlphaBlend(hdcdest : HDC, xorigindest : i32, yorigindest : i32, wdest : i32, hdest : i32, hdcsrc : HDC, xoriginsrc : i32, yoriginsrc : i32, wsrc : i32, hsrc : i32, ftn : BLENDFUNCTION) -> windows_core::BOOL); unsafe { GdiAlphaBlend(hdcdest, xorigindest, yorigindest, wdest, hdest, hdcsrc, xoriginsrc, yoriginsrc, wsrc, hsrc, core::mem::transmute(ftn)) } } #[inline] -pub unsafe fn GdiComment(hdc: HDC, lpdata: &[u8]) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GdiComment(hdc : HDC, nsize : u32, lpdata : *const u8) -> super::super::Foundation:: BOOL); +pub unsafe fn GdiComment(hdc: HDC, lpdata: &[u8]) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GdiComment(hdc : HDC, nsize : u32, lpdata : *const u8) -> windows_core::BOOL); unsafe { GdiComment(hdc, lpdata.len().try_into().unwrap(), core::mem::transmute(lpdata.as_ptr())) } } #[inline] -pub unsafe fn GdiFlush() -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GdiFlush() -> super::super::Foundation:: BOOL); +pub unsafe fn GdiFlush() -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GdiFlush() -> windows_core::BOOL); unsafe { GdiFlush() } } #[inline] @@ -766,8 +766,8 @@ pub unsafe fn GdiGetBatchLimit() -> u32 { unsafe { GdiGetBatchLimit() } } #[inline] -pub unsafe fn GdiGradientFill(hdc: HDC, pvertex: &[TRIVERTEX], pmesh: *const core::ffi::c_void, ncount: u32, ulmode: GRADIENT_FILL) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GdiGradientFill(hdc : HDC, pvertex : *const TRIVERTEX, nvertex : u32, pmesh : *const core::ffi::c_void, ncount : u32, ulmode : GRADIENT_FILL) -> super::super::Foundation:: BOOL); +pub unsafe fn GdiGradientFill(hdc: HDC, pvertex: &[TRIVERTEX], pmesh: *const core::ffi::c_void, ncount: u32, ulmode: GRADIENT_FILL) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GdiGradientFill(hdc : HDC, pvertex : *const TRIVERTEX, nvertex : u32, pmesh : *const core::ffi::c_void, ncount : u32, ulmode : GRADIENT_FILL) -> windows_core::BOOL); unsafe { GdiGradientFill(hdc, core::mem::transmute(pvertex.as_ptr()), pvertex.len().try_into().unwrap(), pmesh, ncount, ulmode) } } #[inline] @@ -776,8 +776,8 @@ pub unsafe fn GdiSetBatchLimit(dw: u32) -> u32 { unsafe { GdiSetBatchLimit(dw) } } #[inline] -pub unsafe fn GdiTransparentBlt(hdcdest: HDC, xorigindest: i32, yorigindest: i32, wdest: i32, hdest: i32, hdcsrc: HDC, xoriginsrc: i32, yoriginsrc: i32, wsrc: i32, hsrc: i32, crtransparent: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GdiTransparentBlt(hdcdest : HDC, xorigindest : i32, yorigindest : i32, wdest : i32, hdest : i32, hdcsrc : HDC, xoriginsrc : i32, yoriginsrc : i32, wsrc : i32, hsrc : i32, crtransparent : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GdiTransparentBlt(hdcdest: HDC, xorigindest: i32, yorigindest: i32, wdest: i32, hdest: i32, hdcsrc: HDC, xoriginsrc: i32, yoriginsrc: i32, wsrc: i32, hsrc: i32, crtransparent: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GdiTransparentBlt(hdcdest : HDC, xorigindest : i32, yorigindest : i32, wdest : i32, hdest : i32, hdcsrc : HDC, xoriginsrc : i32, yoriginsrc : i32, wsrc : i32, hsrc : i32, crtransparent : u32) -> windows_core::BOOL); unsafe { GdiTransparentBlt(hdcdest, xorigindest, yorigindest, wdest, hdest, hdcsrc, xoriginsrc, yoriginsrc, wsrc, hsrc, crtransparent) } } #[inline] @@ -786,8 +786,8 @@ pub unsafe fn GetArcDirection(hdc: HDC) -> i32 { unsafe { GetArcDirection(hdc) } } #[inline] -pub unsafe fn GetAspectRatioFilterEx(hdc: HDC, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetAspectRatioFilterEx(hdc : HDC, lpsize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); +pub unsafe fn GetAspectRatioFilterEx(hdc: HDC, lpsize: *mut super::super::Foundation::SIZE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetAspectRatioFilterEx(hdc : HDC, lpsize : *mut super::super::Foundation:: SIZE) -> windows_core::BOOL); unsafe { GetAspectRatioFilterEx(hdc, lpsize as _) } } #[inline] @@ -796,8 +796,8 @@ pub unsafe fn GetBitmapBits(hbit: HBITMAP, cb: i32, lpvbits: *mut core::ffi::c_v unsafe { GetBitmapBits(hbit, cb, lpvbits as _) } } #[inline] -pub unsafe fn GetBitmapDimensionEx(hbit: HBITMAP, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetBitmapDimensionEx(hbit : HBITMAP, lpsize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); +pub unsafe fn GetBitmapDimensionEx(hbit: HBITMAP, lpsize: *mut super::super::Foundation::SIZE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetBitmapDimensionEx(hbit : HBITMAP, lpsize : *mut super::super::Foundation:: SIZE) -> windows_core::BOOL); unsafe { GetBitmapDimensionEx(hbit, lpsize as _) } } #[inline] @@ -816,68 +816,68 @@ pub unsafe fn GetBoundsRect(hdc: HDC, lprect: *mut super::super::Foundation::REC unsafe { GetBoundsRect(hdc, lprect as _, flags) } } #[inline] -pub unsafe fn GetBrushOrgEx(hdc: HDC, lppt: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetBrushOrgEx(hdc : HDC, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn GetBrushOrgEx(hdc: HDC, lppt: *mut super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetBrushOrgEx(hdc : HDC, lppt : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { GetBrushOrgEx(hdc, lppt as _) } } #[inline] -pub unsafe fn GetCharABCWidthsA(hdc: HDC, wfirst: u32, wlast: u32, lpabc: *mut ABC) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsA(hdc : HDC, wfirst : u32, wlast : u32, lpabc : *mut ABC) -> super::super::Foundation:: BOOL); +pub unsafe fn GetCharABCWidthsA(hdc: HDC, wfirst: u32, wlast: u32, lpabc: *mut ABC) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsA(hdc : HDC, wfirst : u32, wlast : u32, lpabc : *mut ABC) -> windows_core::BOOL); unsafe { GetCharABCWidthsA(hdc, wfirst, wlast, lpabc as _) } } #[inline] -pub unsafe fn GetCharABCWidthsFloatA(hdc: HDC, ifirst: u32, ilast: u32, lpabc: *mut ABCFLOAT) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsFloatA(hdc : HDC, ifirst : u32, ilast : u32, lpabc : *mut ABCFLOAT) -> super::super::Foundation:: BOOL); +pub unsafe fn GetCharABCWidthsFloatA(hdc: HDC, ifirst: u32, ilast: u32, lpabc: *mut ABCFLOAT) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsFloatA(hdc : HDC, ifirst : u32, ilast : u32, lpabc : *mut ABCFLOAT) -> windows_core::BOOL); unsafe { GetCharABCWidthsFloatA(hdc, ifirst, ilast, lpabc as _) } } #[inline] -pub unsafe fn GetCharABCWidthsFloatW(hdc: HDC, ifirst: u32, ilast: u32, lpabc: *mut ABCFLOAT) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsFloatW(hdc : HDC, ifirst : u32, ilast : u32, lpabc : *mut ABCFLOAT) -> super::super::Foundation:: BOOL); +pub unsafe fn GetCharABCWidthsFloatW(hdc: HDC, ifirst: u32, ilast: u32, lpabc: *mut ABCFLOAT) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsFloatW(hdc : HDC, ifirst : u32, ilast : u32, lpabc : *mut ABCFLOAT) -> windows_core::BOOL); unsafe { GetCharABCWidthsFloatW(hdc, ifirst, ilast, lpabc as _) } } #[inline] -pub unsafe fn GetCharABCWidthsI(hdc: HDC, gifirst: u32, cgi: u32, pgi: Option<*const u16>, pabc: *mut ABC) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsI(hdc : HDC, gifirst : u32, cgi : u32, pgi : *const u16, pabc : *mut ABC) -> super::super::Foundation:: BOOL); +pub unsafe fn GetCharABCWidthsI(hdc: HDC, gifirst: u32, cgi: u32, pgi: Option<*const u16>, pabc: *mut ABC) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsI(hdc : HDC, gifirst : u32, cgi : u32, pgi : *const u16, pabc : *mut ABC) -> windows_core::BOOL); unsafe { GetCharABCWidthsI(hdc, gifirst, cgi, pgi.unwrap_or(core::mem::zeroed()) as _, pabc as _) } } #[inline] -pub unsafe fn GetCharABCWidthsW(hdc: HDC, wfirst: u32, wlast: u32, lpabc: *mut ABC) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsW(hdc : HDC, wfirst : u32, wlast : u32, lpabc : *mut ABC) -> super::super::Foundation:: BOOL); +pub unsafe fn GetCharABCWidthsW(hdc: HDC, wfirst: u32, wlast: u32, lpabc: *mut ABC) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetCharABCWidthsW(hdc : HDC, wfirst : u32, wlast : u32, lpabc : *mut ABC) -> windows_core::BOOL); unsafe { GetCharABCWidthsW(hdc, wfirst, wlast, lpabc as _) } } #[inline] -pub unsafe fn GetCharWidth32A(hdc: HDC, ifirst: u32, ilast: u32, lpbuffer: *mut i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetCharWidth32A(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut i32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetCharWidth32A(hdc: HDC, ifirst: u32, ilast: u32, lpbuffer: *mut i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetCharWidth32A(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut i32) -> windows_core::BOOL); unsafe { GetCharWidth32A(hdc, ifirst, ilast, lpbuffer as _) } } #[inline] -pub unsafe fn GetCharWidth32W(hdc: HDC, ifirst: u32, ilast: u32, lpbuffer: *mut i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetCharWidth32W(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut i32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetCharWidth32W(hdc: HDC, ifirst: u32, ilast: u32, lpbuffer: *mut i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetCharWidth32W(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut i32) -> windows_core::BOOL); unsafe { GetCharWidth32W(hdc, ifirst, ilast, lpbuffer as _) } } #[inline] -pub unsafe fn GetCharWidthA(hdc: HDC, ifirst: u32, ilast: u32, lpbuffer: *mut i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetCharWidthA(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut i32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetCharWidthA(hdc: HDC, ifirst: u32, ilast: u32, lpbuffer: *mut i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetCharWidthA(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut i32) -> windows_core::BOOL); unsafe { GetCharWidthA(hdc, ifirst, ilast, lpbuffer as _) } } #[inline] -pub unsafe fn GetCharWidthFloatA(hdc: HDC, ifirst: u32, ilast: u32, lpbuffer: *mut f32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetCharWidthFloatA(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut f32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetCharWidthFloatA(hdc: HDC, ifirst: u32, ilast: u32, lpbuffer: *mut f32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetCharWidthFloatA(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut f32) -> windows_core::BOOL); unsafe { GetCharWidthFloatA(hdc, ifirst, ilast, lpbuffer as _) } } #[inline] -pub unsafe fn GetCharWidthFloatW(hdc: HDC, ifirst: u32, ilast: u32, lpbuffer: *mut f32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetCharWidthFloatW(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut f32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetCharWidthFloatW(hdc: HDC, ifirst: u32, ilast: u32, lpbuffer: *mut f32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetCharWidthFloatW(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut f32) -> windows_core::BOOL); unsafe { GetCharWidthFloatW(hdc, ifirst, ilast, lpbuffer as _) } } #[inline] -pub unsafe fn GetCharWidthI(hdc: HDC, gifirst: u32, cgi: u32, pgi: Option<*const u16>, piwidths: *mut i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetCharWidthI(hdc : HDC, gifirst : u32, cgi : u32, pgi : *const u16, piwidths : *mut i32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetCharWidthI(hdc: HDC, gifirst: u32, cgi: u32, pgi: Option<*const u16>, piwidths: *mut i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetCharWidthI(hdc : HDC, gifirst : u32, cgi : u32, pgi : *const u16, piwidths : *mut i32) -> windows_core::BOOL); unsafe { GetCharWidthI(hdc, gifirst, cgi, pgi.unwrap_or(core::mem::zeroed()) as _, piwidths as _) } } #[inline] -pub unsafe fn GetCharWidthW(hdc: HDC, ifirst: u32, ilast: u32, lpbuffer: *mut i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetCharWidthW(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut i32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetCharWidthW(hdc: HDC, ifirst: u32, ilast: u32, lpbuffer: *mut i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetCharWidthW(hdc : HDC, ifirst : u32, ilast : u32, lpbuffer : *mut i32) -> windows_core::BOOL); unsafe { GetCharWidthW(hdc, ifirst, ilast, lpbuffer as _) } } #[inline] @@ -901,8 +901,8 @@ pub unsafe fn GetClipRgn(hdc: HDC, hrgn: HRGN) -> i32 { unsafe { GetClipRgn(hdc, hrgn) } } #[inline] -pub unsafe fn GetColorAdjustment(hdc: HDC, lpca: *mut COLORADJUSTMENT) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetColorAdjustment(hdc : HDC, lpca : *mut COLORADJUSTMENT) -> super::super::Foundation:: BOOL); +pub unsafe fn GetColorAdjustment(hdc: HDC, lpca: *mut COLORADJUSTMENT) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetColorAdjustment(hdc : HDC, lpca : *mut COLORADJUSTMENT) -> windows_core::BOOL); unsafe { GetColorAdjustment(hdc, lpca as _) } } #[inline] @@ -911,8 +911,8 @@ pub unsafe fn GetCurrentObject(hdc: HDC, r#type: OBJ_TYPE) -> HGDIOBJ { unsafe { GetCurrentObject(hdc, r#type.0 as _) } } #[inline] -pub unsafe fn GetCurrentPositionEx(hdc: HDC, lppt: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetCurrentPositionEx(hdc : HDC, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn GetCurrentPositionEx(hdc: HDC, lppt: *mut super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetCurrentPositionEx(hdc : HDC, lppt : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { GetCurrentPositionEx(hdc, lppt as _) } } #[inline] @@ -931,8 +931,8 @@ pub unsafe fn GetDCEx(hwnd: Option, hrgnclip: Op unsafe { GetDCEx(hwnd.unwrap_or(core::mem::zeroed()) as _, hrgnclip.unwrap_or(core::mem::zeroed()) as _, flags) } } #[inline] -pub unsafe fn GetDCOrgEx(hdc: HDC, lppt: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetDCOrgEx(hdc : HDC, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn GetDCOrgEx(hdc: HDC, lppt: *mut super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetDCOrgEx(hdc : HDC, lppt : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { GetDCOrgEx(hdc, lppt as _) } } #[inline] @@ -1089,18 +1089,18 @@ pub unsafe fn GetMetaRgn(hdc: HDC, hrgn: HRGN) -> i32 { unsafe { GetMetaRgn(hdc, hrgn) } } #[inline] -pub unsafe fn GetMiterLimit(hdc: HDC, plimit: *mut f32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetMiterLimit(hdc : HDC, plimit : *mut f32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetMiterLimit(hdc: HDC, plimit: *mut f32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetMiterLimit(hdc : HDC, plimit : *mut f32) -> windows_core::BOOL); unsafe { GetMiterLimit(hdc, plimit as _) } } #[inline] -pub unsafe fn GetMonitorInfoA(hmonitor: HMONITOR, lpmi: *mut MONITORINFO) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn GetMonitorInfoA(hmonitor : HMONITOR, lpmi : *mut MONITORINFO) -> super::super::Foundation:: BOOL); +pub unsafe fn GetMonitorInfoA(hmonitor: HMONITOR, lpmi: *mut MONITORINFO) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn GetMonitorInfoA(hmonitor : HMONITOR, lpmi : *mut MONITORINFO) -> windows_core::BOOL); unsafe { GetMonitorInfoA(hmonitor, lpmi as _) } } #[inline] -pub unsafe fn GetMonitorInfoW(hmonitor: HMONITOR, lpmi: *mut MONITORINFO) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn GetMonitorInfoW(hmonitor : HMONITOR, lpmi : *mut MONITORINFO) -> super::super::Foundation:: BOOL); +pub unsafe fn GetMonitorInfoW(hmonitor: HMONITOR, lpmi: *mut MONITORINFO) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn GetMonitorInfoW(hmonitor : HMONITOR, lpmi : *mut MONITORINFO) -> windows_core::BOOL); unsafe { GetMonitorInfoW(hmonitor, lpmi as _) } } #[inline] @@ -1169,8 +1169,8 @@ pub unsafe fn GetRandomRgn(hdc: HDC, hrgn: HRGN, i: i32) -> i32 { unsafe { GetRandomRgn(hdc, hrgn, i) } } #[inline] -pub unsafe fn GetRasterizerCaps(lpraststat: *mut RASTERIZER_STATUS, cjbytes: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetRasterizerCaps(lpraststat : *mut RASTERIZER_STATUS, cjbytes : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetRasterizerCaps(lpraststat: *mut RASTERIZER_STATUS, cjbytes: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetRasterizerCaps(lpraststat : *mut RASTERIZER_STATUS, cjbytes : u32) -> windows_core::BOOL); unsafe { GetRasterizerCaps(lpraststat as _, cjbytes) } } #[inline] @@ -1239,49 +1239,49 @@ pub unsafe fn GetTextColor(hdc: HDC) -> super::super::Foundation::COLORREF { unsafe { GetTextColor(hdc) } } #[inline] -pub unsafe fn GetTextExtentExPointA(hdc: HDC, lpszstring: P1, cchstring: i32, nmaxextent: i32, lpnfit: Option<*mut i32>, lpndx: Option<*mut i32>, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL +pub unsafe fn GetTextExtentExPointA(hdc: HDC, lpszstring: P1, cchstring: i32, nmaxextent: i32, lpnfit: Option<*mut i32>, lpndx: Option<*mut i32>, lpsize: *mut super::super::Foundation::SIZE) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("gdi32.dll" "system" fn GetTextExtentExPointA(hdc : HDC, lpszstring : windows_core::PCSTR, cchstring : i32, nmaxextent : i32, lpnfit : *mut i32, lpndx : *mut i32, lpsize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); + windows_targets::link!("gdi32.dll" "system" fn GetTextExtentExPointA(hdc : HDC, lpszstring : windows_core::PCSTR, cchstring : i32, nmaxextent : i32, lpnfit : *mut i32, lpndx : *mut i32, lpsize : *mut super::super::Foundation:: SIZE) -> windows_core::BOOL); unsafe { GetTextExtentExPointA(hdc, lpszstring.param().abi(), cchstring, nmaxextent, lpnfit.unwrap_or(core::mem::zeroed()) as _, lpndx.unwrap_or(core::mem::zeroed()) as _, lpsize as _) } } #[inline] -pub unsafe fn GetTextExtentExPointI(hdc: HDC, lpwszstring: *const u16, cwchstring: i32, nmaxextent: i32, lpnfit: Option<*mut i32>, lpndx: Option<*mut i32>, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetTextExtentExPointI(hdc : HDC, lpwszstring : *const u16, cwchstring : i32, nmaxextent : i32, lpnfit : *mut i32, lpndx : *mut i32, lpsize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); +pub unsafe fn GetTextExtentExPointI(hdc: HDC, lpwszstring: *const u16, cwchstring: i32, nmaxextent: i32, lpnfit: Option<*mut i32>, lpndx: Option<*mut i32>, lpsize: *mut super::super::Foundation::SIZE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetTextExtentExPointI(hdc : HDC, lpwszstring : *const u16, cwchstring : i32, nmaxextent : i32, lpnfit : *mut i32, lpndx : *mut i32, lpsize : *mut super::super::Foundation:: SIZE) -> windows_core::BOOL); unsafe { GetTextExtentExPointI(hdc, lpwszstring, cwchstring, nmaxextent, lpnfit.unwrap_or(core::mem::zeroed()) as _, lpndx.unwrap_or(core::mem::zeroed()) as _, lpsize as _) } } #[inline] -pub unsafe fn GetTextExtentExPointW(hdc: HDC, lpszstring: P1, cchstring: i32, nmaxextent: i32, lpnfit: Option<*mut i32>, lpndx: Option<*mut i32>, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL +pub unsafe fn GetTextExtentExPointW(hdc: HDC, lpszstring: P1, cchstring: i32, nmaxextent: i32, lpnfit: Option<*mut i32>, lpndx: Option<*mut i32>, lpsize: *mut super::super::Foundation::SIZE) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("gdi32.dll" "system" fn GetTextExtentExPointW(hdc : HDC, lpszstring : windows_core::PCWSTR, cchstring : i32, nmaxextent : i32, lpnfit : *mut i32, lpndx : *mut i32, lpsize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); + windows_targets::link!("gdi32.dll" "system" fn GetTextExtentExPointW(hdc : HDC, lpszstring : windows_core::PCWSTR, cchstring : i32, nmaxextent : i32, lpnfit : *mut i32, lpndx : *mut i32, lpsize : *mut super::super::Foundation:: SIZE) -> windows_core::BOOL); unsafe { GetTextExtentExPointW(hdc, lpszstring.param().abi(), cchstring, nmaxextent, lpnfit.unwrap_or(core::mem::zeroed()) as _, lpndx.unwrap_or(core::mem::zeroed()) as _, lpsize as _) } } #[inline] -pub unsafe fn GetTextExtentPoint32A(hdc: HDC, lpstring: &[u8], psizl: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetTextExtentPoint32A(hdc : HDC, lpstring : windows_core::PCSTR, c : i32, psizl : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); +pub unsafe fn GetTextExtentPoint32A(hdc: HDC, lpstring: &[u8], psizl: *mut super::super::Foundation::SIZE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetTextExtentPoint32A(hdc : HDC, lpstring : windows_core::PCSTR, c : i32, psizl : *mut super::super::Foundation:: SIZE) -> windows_core::BOOL); unsafe { GetTextExtentPoint32A(hdc, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), psizl as _) } } #[inline] -pub unsafe fn GetTextExtentPoint32W(hdc: HDC, lpstring: &[u16], psizl: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetTextExtentPoint32W(hdc : HDC, lpstring : windows_core::PCWSTR, c : i32, psizl : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); +pub unsafe fn GetTextExtentPoint32W(hdc: HDC, lpstring: &[u16], psizl: *mut super::super::Foundation::SIZE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetTextExtentPoint32W(hdc : HDC, lpstring : windows_core::PCWSTR, c : i32, psizl : *mut super::super::Foundation:: SIZE) -> windows_core::BOOL); unsafe { GetTextExtentPoint32W(hdc, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), psizl as _) } } #[inline] -pub unsafe fn GetTextExtentPointA(hdc: HDC, lpstring: &[u8], lpsz: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetTextExtentPointA(hdc : HDC, lpstring : windows_core::PCSTR, c : i32, lpsz : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); +pub unsafe fn GetTextExtentPointA(hdc: HDC, lpstring: &[u8], lpsz: *mut super::super::Foundation::SIZE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetTextExtentPointA(hdc : HDC, lpstring : windows_core::PCSTR, c : i32, lpsz : *mut super::super::Foundation:: SIZE) -> windows_core::BOOL); unsafe { GetTextExtentPointA(hdc, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), lpsz as _) } } #[inline] -pub unsafe fn GetTextExtentPointI(hdc: HDC, pgiin: &[u16], psize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetTextExtentPointI(hdc : HDC, pgiin : *const u16, cgi : i32, psize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); +pub unsafe fn GetTextExtentPointI(hdc: HDC, pgiin: &[u16], psize: *mut super::super::Foundation::SIZE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetTextExtentPointI(hdc : HDC, pgiin : *const u16, cgi : i32, psize : *mut super::super::Foundation:: SIZE) -> windows_core::BOOL); unsafe { GetTextExtentPointI(hdc, core::mem::transmute(pgiin.as_ptr()), pgiin.len().try_into().unwrap(), psize as _) } } #[inline] -pub unsafe fn GetTextExtentPointW(hdc: HDC, lpstring: &[u16], lpsz: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetTextExtentPointW(hdc : HDC, lpstring : windows_core::PCWSTR, c : i32, lpsz : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); +pub unsafe fn GetTextExtentPointW(hdc: HDC, lpstring: &[u16], lpsz: *mut super::super::Foundation::SIZE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetTextExtentPointW(hdc : HDC, lpstring : windows_core::PCWSTR, c : i32, lpsz : *mut super::super::Foundation:: SIZE) -> windows_core::BOOL); unsafe { GetTextExtentPointW(hdc, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), lpsz as _) } } #[inline] @@ -1295,33 +1295,33 @@ pub unsafe fn GetTextFaceW(hdc: HDC, lpname: Option<&mut [u16]>) -> i32 { unsafe { GetTextFaceW(hdc, lpname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } } #[inline] -pub unsafe fn GetTextMetricsA(hdc: HDC, lptm: *mut TEXTMETRICA) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetTextMetricsA(hdc : HDC, lptm : *mut TEXTMETRICA) -> super::super::Foundation:: BOOL); +pub unsafe fn GetTextMetricsA(hdc: HDC, lptm: *mut TEXTMETRICA) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetTextMetricsA(hdc : HDC, lptm : *mut TEXTMETRICA) -> windows_core::BOOL); unsafe { GetTextMetricsA(hdc, lptm as _) } } #[inline] -pub unsafe fn GetTextMetricsW(hdc: HDC, lptm: *mut TEXTMETRICW) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetTextMetricsW(hdc : HDC, lptm : *mut TEXTMETRICW) -> super::super::Foundation:: BOOL); +pub unsafe fn GetTextMetricsW(hdc: HDC, lptm: *mut TEXTMETRICW) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetTextMetricsW(hdc : HDC, lptm : *mut TEXTMETRICW) -> windows_core::BOOL); unsafe { GetTextMetricsW(hdc, lptm as _) } } #[inline] -pub unsafe fn GetUpdateRect(hwnd: super::super::Foundation::HWND, lprect: Option<*mut super::super::Foundation::RECT>, berase: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn GetUpdateRect(hwnd : super::super::Foundation:: HWND, lprect : *mut super::super::Foundation:: RECT, berase : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn GetUpdateRect(hwnd: super::super::Foundation::HWND, lprect: Option<*mut super::super::Foundation::RECT>, berase: bool) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn GetUpdateRect(hwnd : super::super::Foundation:: HWND, lprect : *mut super::super::Foundation:: RECT, berase : windows_core::BOOL) -> windows_core::BOOL); unsafe { GetUpdateRect(hwnd, lprect.unwrap_or(core::mem::zeroed()) as _, berase.into()) } } #[inline] pub unsafe fn GetUpdateRgn(hwnd: super::super::Foundation::HWND, hrgn: HRGN, berase: bool) -> GDI_REGION_TYPE { - windows_targets::link!("user32.dll" "system" fn GetUpdateRgn(hwnd : super::super::Foundation:: HWND, hrgn : HRGN, berase : super::super::Foundation:: BOOL) -> GDI_REGION_TYPE); + windows_targets::link!("user32.dll" "system" fn GetUpdateRgn(hwnd : super::super::Foundation:: HWND, hrgn : HRGN, berase : windows_core::BOOL) -> GDI_REGION_TYPE); unsafe { GetUpdateRgn(hwnd, hrgn, berase.into()) } } #[inline] -pub unsafe fn GetViewportExtEx(hdc: HDC, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetViewportExtEx(hdc : HDC, lpsize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); +pub unsafe fn GetViewportExtEx(hdc: HDC, lpsize: *mut super::super::Foundation::SIZE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetViewportExtEx(hdc : HDC, lpsize : *mut super::super::Foundation:: SIZE) -> windows_core::BOOL); unsafe { GetViewportExtEx(hdc, lpsize as _) } } #[inline] -pub unsafe fn GetViewportOrgEx(hdc: HDC, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetViewportOrgEx(hdc : HDC, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn GetViewportOrgEx(hdc: HDC, lppoint: *mut super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetViewportOrgEx(hdc : HDC, lppoint : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { GetViewportOrgEx(hdc, lppoint as _) } } #[inline] @@ -1335,13 +1335,13 @@ pub unsafe fn GetWindowDC(hwnd: Option) -> HDC { unsafe { GetWindowDC(hwnd.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn GetWindowExtEx(hdc: HDC, lpsize: *mut super::super::Foundation::SIZE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetWindowExtEx(hdc : HDC, lpsize : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); +pub unsafe fn GetWindowExtEx(hdc: HDC, lpsize: *mut super::super::Foundation::SIZE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetWindowExtEx(hdc : HDC, lpsize : *mut super::super::Foundation:: SIZE) -> windows_core::BOOL); unsafe { GetWindowExtEx(hdc, lpsize as _) } } #[inline] -pub unsafe fn GetWindowOrgEx(hdc: HDC, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetWindowOrgEx(hdc : HDC, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn GetWindowOrgEx(hdc: HDC, lppoint: *mut super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetWindowOrgEx(hdc : HDC, lppoint : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { GetWindowOrgEx(hdc, lppoint as _) } } #[inline] @@ -1355,28 +1355,28 @@ pub unsafe fn GetWindowRgnBox(hwnd: super::super::Foundation::HWND, lprc: *mut s unsafe { GetWindowRgnBox(hwnd, lprc as _) } } #[inline] -pub unsafe fn GetWorldTransform(hdc: HDC, lpxf: *mut XFORM) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetWorldTransform(hdc : HDC, lpxf : *mut XFORM) -> super::super::Foundation:: BOOL); +pub unsafe fn GetWorldTransform(hdc: HDC, lpxf: *mut XFORM) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetWorldTransform(hdc : HDC, lpxf : *mut XFORM) -> windows_core::BOOL); unsafe { GetWorldTransform(hdc, lpxf as _) } } #[inline] -pub unsafe fn GradientFill(hdc: HDC, pvertex: &[TRIVERTEX], pmesh: *const core::ffi::c_void, nmesh: u32, ulmode: GRADIENT_FILL) -> super::super::Foundation::BOOL { - windows_targets::link!("msimg32.dll" "system" fn GradientFill(hdc : HDC, pvertex : *const TRIVERTEX, nvertex : u32, pmesh : *const core::ffi::c_void, nmesh : u32, ulmode : GRADIENT_FILL) -> super::super::Foundation:: BOOL); +pub unsafe fn GradientFill(hdc: HDC, pvertex: &[TRIVERTEX], pmesh: *const core::ffi::c_void, nmesh: u32, ulmode: GRADIENT_FILL) -> windows_core::BOOL { + windows_targets::link!("msimg32.dll" "system" fn GradientFill(hdc : HDC, pvertex : *const TRIVERTEX, nvertex : u32, pmesh : *const core::ffi::c_void, nmesh : u32, ulmode : GRADIENT_FILL) -> windows_core::BOOL); unsafe { GradientFill(hdc, core::mem::transmute(pvertex.as_ptr()), pvertex.len().try_into().unwrap(), pmesh, nmesh, ulmode) } } #[inline] -pub unsafe fn GrayStringA(hdc: HDC, hbrush: Option, lpoutputfunc: Option, lpdata: super::super::Foundation::LPARAM, ncount: i32, x: i32, y: i32, nwidth: i32, nheight: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn GrayStringA(hdc : HDC, hbrush : HBRUSH, lpoutputfunc : GRAYSTRINGPROC, lpdata : super::super::Foundation:: LPARAM, ncount : i32, x : i32, y : i32, nwidth : i32, nheight : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn GrayStringA(hdc: HDC, hbrush: Option, lpoutputfunc: Option, lpdata: super::super::Foundation::LPARAM, ncount: i32, x: i32, y: i32, nwidth: i32, nheight: i32) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn GrayStringA(hdc : HDC, hbrush : HBRUSH, lpoutputfunc : GRAYSTRINGPROC, lpdata : super::super::Foundation:: LPARAM, ncount : i32, x : i32, y : i32, nwidth : i32, nheight : i32) -> windows_core::BOOL); unsafe { GrayStringA(hdc, hbrush.unwrap_or(core::mem::zeroed()) as _, lpoutputfunc.unwrap_or(core::mem::zeroed()) as _, lpdata, ncount, x, y, nwidth, nheight) } } #[inline] -pub unsafe fn GrayStringW(hdc: HDC, hbrush: Option, lpoutputfunc: Option, lpdata: super::super::Foundation::LPARAM, ncount: i32, x: i32, y: i32, nwidth: i32, nheight: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn GrayStringW(hdc : HDC, hbrush : HBRUSH, lpoutputfunc : GRAYSTRINGPROC, lpdata : super::super::Foundation:: LPARAM, ncount : i32, x : i32, y : i32, nwidth : i32, nheight : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn GrayStringW(hdc: HDC, hbrush: Option, lpoutputfunc: Option, lpdata: super::super::Foundation::LPARAM, ncount: i32, x: i32, y: i32, nwidth: i32, nheight: i32) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn GrayStringW(hdc : HDC, hbrush : HBRUSH, lpoutputfunc : GRAYSTRINGPROC, lpdata : super::super::Foundation:: LPARAM, ncount : i32, x : i32, y : i32, nwidth : i32, nheight : i32) -> windows_core::BOOL); unsafe { GrayStringW(hdc, hbrush.unwrap_or(core::mem::zeroed()) as _, lpoutputfunc.unwrap_or(core::mem::zeroed()) as _, lpdata, ncount, x, y, nwidth, nheight) } } #[inline] -pub unsafe fn InflateRect(lprc: *mut super::super::Foundation::RECT, dx: i32, dy: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn InflateRect(lprc : *mut super::super::Foundation:: RECT, dx : i32, dy : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn InflateRect(lprc: *mut super::super::Foundation::RECT, dx: i32, dy: i32) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn InflateRect(lprc : *mut super::super::Foundation:: RECT, dx : i32, dy : i32) -> windows_core::BOOL); unsafe { InflateRect(lprc as _, dx, dy) } } #[inline] @@ -1385,48 +1385,48 @@ pub unsafe fn IntersectClipRect(hdc: HDC, left: i32, top: i32, right: i32, botto unsafe { IntersectClipRect(hdc, left, top, right, bottom) } } #[inline] -pub unsafe fn IntersectRect(lprcdst: *mut super::super::Foundation::RECT, lprcsrc1: *const super::super::Foundation::RECT, lprcsrc2: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IntersectRect(lprcdst : *mut super::super::Foundation:: RECT, lprcsrc1 : *const super::super::Foundation:: RECT, lprcsrc2 : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn IntersectRect(lprcdst: *mut super::super::Foundation::RECT, lprcsrc1: *const super::super::Foundation::RECT, lprcsrc2: *const super::super::Foundation::RECT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IntersectRect(lprcdst : *mut super::super::Foundation:: RECT, lprcsrc1 : *const super::super::Foundation:: RECT, lprcsrc2 : *const super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { IntersectRect(lprcdst as _, lprcsrc1, lprcsrc2) } } #[inline] -pub unsafe fn InvalidateRect(hwnd: Option, lprect: Option<*const super::super::Foundation::RECT>, berase: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn InvalidateRect(hwnd : super::super::Foundation:: HWND, lprect : *const super::super::Foundation:: RECT, berase : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn InvalidateRect(hwnd: Option, lprect: Option<*const super::super::Foundation::RECT>, berase: bool) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn InvalidateRect(hwnd : super::super::Foundation:: HWND, lprect : *const super::super::Foundation:: RECT, berase : windows_core::BOOL) -> windows_core::BOOL); unsafe { InvalidateRect(hwnd.unwrap_or(core::mem::zeroed()) as _, lprect.unwrap_or(core::mem::zeroed()) as _, berase.into()) } } #[inline] -pub unsafe fn InvalidateRgn(hwnd: super::super::Foundation::HWND, hrgn: Option, berase: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn InvalidateRgn(hwnd : super::super::Foundation:: HWND, hrgn : HRGN, berase : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn InvalidateRgn(hwnd: super::super::Foundation::HWND, hrgn: Option, berase: bool) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn InvalidateRgn(hwnd : super::super::Foundation:: HWND, hrgn : HRGN, berase : windows_core::BOOL) -> windows_core::BOOL); unsafe { InvalidateRgn(hwnd, hrgn.unwrap_or(core::mem::zeroed()) as _, berase.into()) } } #[inline] -pub unsafe fn InvertRect(hdc: HDC, lprc: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn InvertRect(hdc : HDC, lprc : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn InvertRect(hdc: HDC, lprc: *const super::super::Foundation::RECT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn InvertRect(hdc : HDC, lprc : *const super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { InvertRect(hdc, lprc) } } #[inline] -pub unsafe fn InvertRgn(hdc: HDC, hrgn: HRGN) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn InvertRgn(hdc : HDC, hrgn : HRGN) -> super::super::Foundation:: BOOL); +pub unsafe fn InvertRgn(hdc: HDC, hrgn: HRGN) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn InvertRgn(hdc : HDC, hrgn : HRGN) -> windows_core::BOOL); unsafe { InvertRgn(hdc, hrgn) } } #[inline] -pub unsafe fn IsRectEmpty(lprc: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsRectEmpty(lprc : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn IsRectEmpty(lprc: *const super::super::Foundation::RECT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsRectEmpty(lprc : *const super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { IsRectEmpty(lprc) } } #[inline] -pub unsafe fn LPtoDP(hdc: HDC, lppt: &mut [super::super::Foundation::POINT]) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn LPtoDP(hdc : HDC, lppt : *mut super::super::Foundation:: POINT, c : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn LPtoDP(hdc: HDC, lppt: &mut [super::super::Foundation::POINT]) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn LPtoDP(hdc : HDC, lppt : *mut super::super::Foundation:: POINT, c : i32) -> windows_core::BOOL); unsafe { LPtoDP(hdc, core::mem::transmute(lppt.as_ptr()), lppt.len().try_into().unwrap()) } } #[inline] -pub unsafe fn LineDDA(xstart: i32, ystart: i32, xend: i32, yend: i32, lpproc: LINEDDAPROC, data: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn LineDDA(xstart : i32, ystart : i32, xend : i32, yend : i32, lpproc : LINEDDAPROC, data : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); +pub unsafe fn LineDDA(xstart: i32, ystart: i32, xend: i32, yend: i32, lpproc: LINEDDAPROC, data: Option) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn LineDDA(xstart : i32, ystart : i32, xend : i32, yend : i32, lpproc : LINEDDAPROC, data : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { LineDDA(xstart, ystart, xend, yend, lpproc, data.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn LineTo(hdc: HDC, x: i32, y: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn LineTo(hdc : HDC, x : i32, y : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn LineTo(hdc: HDC, x: i32, y: i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn LineTo(hdc : HDC, x : i32, y : i32) -> windows_core::BOOL); unsafe { LineTo(hdc, x, y) } } #[inline] @@ -1446,8 +1446,8 @@ where unsafe { LoadBitmapW(hinstance.unwrap_or(core::mem::zeroed()) as _, lpbitmapname.param().abi()) } } #[inline] -pub unsafe fn LockWindowUpdate(hwndlock: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn LockWindowUpdate(hwndlock : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn LockWindowUpdate(hwndlock: Option) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn LockWindowUpdate(hwndlock : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { LockWindowUpdate(hwndlock.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1456,8 +1456,8 @@ pub unsafe fn MapWindowPoints(hwndfrom: Option, unsafe { MapWindowPoints(hwndfrom.unwrap_or(core::mem::zeroed()) as _, hwndto.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(lppoints.as_ptr()), lppoints.len().try_into().unwrap()) } } #[inline] -pub unsafe fn MaskBlt(hdcdest: HDC, xdest: i32, ydest: i32, width: i32, height: i32, hdcsrc: HDC, xsrc: i32, ysrc: i32, hbmmask: HBITMAP, xmask: i32, ymask: i32, rop: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn MaskBlt(hdcdest : HDC, xdest : i32, ydest : i32, width : i32, height : i32, hdcsrc : HDC, xsrc : i32, ysrc : i32, hbmmask : HBITMAP, xmask : i32, ymask : i32, rop : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn MaskBlt(hdcdest: HDC, xdest: i32, ydest: i32, width: i32, height: i32, hdcsrc: HDC, xsrc: i32, ysrc: i32, hbmmask: HBITMAP, xmask: i32, ymask: i32, rop: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn MaskBlt(hdcdest : HDC, xdest : i32, ydest : i32, width : i32, height : i32, hdcsrc : HDC, xsrc : i32, ysrc : i32, hbmmask : HBITMAP, xmask : i32, ymask : i32, rop : u32) -> windows_core::BOOL); unsafe { MaskBlt(hdcdest, xdest, ydest, width, height, hdcsrc, xsrc, ysrc, hbmmask, xmask, ymask, rop) } } #[inline] @@ -1466,8 +1466,8 @@ pub unsafe fn MergeFontPackage(puchmergefontbuffer: *const u8, ulmergefontbuffer unsafe { MergeFontPackage(puchmergefontbuffer, ulmergefontbuffersize, puchfontpackagebuffer, ulfontpackagebuffersize, ppuchdestbuffer as _, puldestbuffersize as _, pulbyteswritten as _, usmode, lpfnallocate, lpfnreallocate, lpfnfree, lpvreserved as _) } } #[inline] -pub unsafe fn ModifyWorldTransform(hdc: HDC, lpxf: Option<*const XFORM>, mode: MODIFY_WORLD_TRANSFORM_MODE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn ModifyWorldTransform(hdc : HDC, lpxf : *const XFORM, mode : MODIFY_WORLD_TRANSFORM_MODE) -> super::super::Foundation:: BOOL); +pub unsafe fn ModifyWorldTransform(hdc: HDC, lpxf: Option<*const XFORM>, mode: MODIFY_WORLD_TRANSFORM_MODE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn ModifyWorldTransform(hdc : HDC, lpxf : *const XFORM, mode : MODIFY_WORLD_TRANSFORM_MODE) -> windows_core::BOOL); unsafe { ModifyWorldTransform(hdc, lpxf.unwrap_or(core::mem::zeroed()) as _, mode) } } #[inline] @@ -1486,8 +1486,8 @@ pub unsafe fn MonitorFromWindow(hwnd: super::super::Foundation::HWND, dwflags: M unsafe { MonitorFromWindow(hwnd, dwflags) } } #[inline] -pub unsafe fn MoveToEx(hdc: HDC, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn MoveToEx(hdc : HDC, x : i32, y : i32, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn MoveToEx(hdc: HDC, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn MoveToEx(hdc : HDC, x : i32, y : i32, lppt : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { MoveToEx(hdc, x, y, lppt.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1496,8 +1496,8 @@ pub unsafe fn OffsetClipRgn(hdc: HDC, x: i32, y: i32) -> GDI_REGION_TYPE { unsafe { OffsetClipRgn(hdc, x, y) } } #[inline] -pub unsafe fn OffsetRect(lprc: *mut super::super::Foundation::RECT, dx: i32, dy: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn OffsetRect(lprc : *mut super::super::Foundation:: RECT, dx : i32, dy : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn OffsetRect(lprc: *mut super::super::Foundation::RECT, dx: i32, dy: i32) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn OffsetRect(lprc : *mut super::super::Foundation:: RECT, dx : i32, dy : i32) -> windows_core::BOOL); unsafe { OffsetRect(lprc as _, dx, dy) } } #[inline] @@ -1506,28 +1506,28 @@ pub unsafe fn OffsetRgn(hrgn: HRGN, x: i32, y: i32) -> GDI_REGION_TYPE { unsafe { OffsetRgn(hrgn, x, y) } } #[inline] -pub unsafe fn OffsetViewportOrgEx(hdc: HDC, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn OffsetViewportOrgEx(hdc : HDC, x : i32, y : i32, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn OffsetViewportOrgEx(hdc: HDC, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn OffsetViewportOrgEx(hdc : HDC, x : i32, y : i32, lppt : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { OffsetViewportOrgEx(hdc, x, y, lppt.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn OffsetWindowOrgEx(hdc: HDC, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn OffsetWindowOrgEx(hdc : HDC, x : i32, y : i32, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn OffsetWindowOrgEx(hdc: HDC, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn OffsetWindowOrgEx(hdc : HDC, x : i32, y : i32, lppt : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { OffsetWindowOrgEx(hdc, x, y, lppt.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn PaintDesktop(hdc: HDC) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn PaintDesktop(hdc : HDC) -> super::super::Foundation:: BOOL); +pub unsafe fn PaintDesktop(hdc: HDC) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn PaintDesktop(hdc : HDC) -> windows_core::BOOL); unsafe { PaintDesktop(hdc) } } #[inline] -pub unsafe fn PaintRgn(hdc: HDC, hrgn: HRGN) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PaintRgn(hdc : HDC, hrgn : HRGN) -> super::super::Foundation:: BOOL); +pub unsafe fn PaintRgn(hdc: HDC, hrgn: HRGN) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PaintRgn(hdc : HDC, hrgn : HRGN) -> windows_core::BOOL); unsafe { PaintRgn(hdc, hrgn) } } #[inline] -pub unsafe fn PatBlt(hdc: HDC, x: i32, y: i32, w: i32, h: i32, rop: ROP_CODE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PatBlt(hdc : HDC, x : i32, y : i32, w : i32, h : i32, rop : ROP_CODE) -> super::super::Foundation:: BOOL); +pub unsafe fn PatBlt(hdc: HDC, x: i32, y: i32, w: i32, h: i32, rop: ROP_CODE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PatBlt(hdc : HDC, x : i32, y : i32, w : i32, h : i32, rop : ROP_CODE) -> windows_core::BOOL); unsafe { PatBlt(hdc, x, y, w, h, rop) } } #[inline] @@ -1536,98 +1536,98 @@ pub unsafe fn PathToRegion(hdc: HDC) -> HRGN { unsafe { PathToRegion(hdc) } } #[inline] -pub unsafe fn Pie(hdc: HDC, left: i32, top: i32, right: i32, bottom: i32, xr1: i32, yr1: i32, xr2: i32, yr2: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn Pie(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32, xr1 : i32, yr1 : i32, xr2 : i32, yr2 : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn Pie(hdc: HDC, left: i32, top: i32, right: i32, bottom: i32, xr1: i32, yr1: i32, xr2: i32, yr2: i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn Pie(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32, xr1 : i32, yr1 : i32, xr2 : i32, yr2 : i32) -> windows_core::BOOL); unsafe { Pie(hdc, left, top, right, bottom, xr1, yr1, xr2, yr2) } } #[inline] -pub unsafe fn PlayEnhMetaFile(hdc: HDC, hmf: HENHMETAFILE, lprect: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PlayEnhMetaFile(hdc : HDC, hmf : HENHMETAFILE, lprect : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn PlayEnhMetaFile(hdc: HDC, hmf: HENHMETAFILE, lprect: *const super::super::Foundation::RECT) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PlayEnhMetaFile(hdc : HDC, hmf : HENHMETAFILE, lprect : *const super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { PlayEnhMetaFile(hdc, hmf, lprect) } } #[inline] -pub unsafe fn PlayEnhMetaFileRecord(hdc: HDC, pht: &[HANDLETABLE], pmr: *const ENHMETARECORD) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PlayEnhMetaFileRecord(hdc : HDC, pht : *const HANDLETABLE, pmr : *const ENHMETARECORD, cht : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn PlayEnhMetaFileRecord(hdc: HDC, pht: &[HANDLETABLE], pmr: *const ENHMETARECORD) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PlayEnhMetaFileRecord(hdc : HDC, pht : *const HANDLETABLE, pmr : *const ENHMETARECORD, cht : u32) -> windows_core::BOOL); unsafe { PlayEnhMetaFileRecord(hdc, core::mem::transmute(pht.as_ptr()), pmr, pht.len().try_into().unwrap()) } } #[inline] -pub unsafe fn PlayMetaFile(hdc: HDC, hmf: HMETAFILE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PlayMetaFile(hdc : HDC, hmf : HMETAFILE) -> super::super::Foundation:: BOOL); +pub unsafe fn PlayMetaFile(hdc: HDC, hmf: HMETAFILE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PlayMetaFile(hdc : HDC, hmf : HMETAFILE) -> windows_core::BOOL); unsafe { PlayMetaFile(hdc, hmf) } } #[inline] -pub unsafe fn PlayMetaFileRecord(hdc: HDC, lphandletable: &[HANDLETABLE], lpmr: *const METARECORD) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PlayMetaFileRecord(hdc : HDC, lphandletable : *const HANDLETABLE, lpmr : *const METARECORD, noobjs : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn PlayMetaFileRecord(hdc: HDC, lphandletable: &[HANDLETABLE], lpmr: *const METARECORD) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PlayMetaFileRecord(hdc : HDC, lphandletable : *const HANDLETABLE, lpmr : *const METARECORD, noobjs : u32) -> windows_core::BOOL); unsafe { PlayMetaFileRecord(hdc, core::mem::transmute(lphandletable.as_ptr()), lpmr, lphandletable.len().try_into().unwrap()) } } #[inline] -pub unsafe fn PlgBlt(hdcdest: HDC, lppoint: &[super::super::Foundation::POINT; 3], hdcsrc: HDC, xsrc: i32, ysrc: i32, width: i32, height: i32, hbmmask: Option, xmask: i32, ymask: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PlgBlt(hdcdest : HDC, lppoint : *const super::super::Foundation:: POINT, hdcsrc : HDC, xsrc : i32, ysrc : i32, width : i32, height : i32, hbmmask : HBITMAP, xmask : i32, ymask : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn PlgBlt(hdcdest: HDC, lppoint: &[super::super::Foundation::POINT; 3], hdcsrc: HDC, xsrc: i32, ysrc: i32, width: i32, height: i32, hbmmask: Option, xmask: i32, ymask: i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PlgBlt(hdcdest : HDC, lppoint : *const super::super::Foundation:: POINT, hdcsrc : HDC, xsrc : i32, ysrc : i32, width : i32, height : i32, hbmmask : HBITMAP, xmask : i32, ymask : i32) -> windows_core::BOOL); unsafe { PlgBlt(hdcdest, core::mem::transmute(lppoint.as_ptr()), hdcsrc, xsrc, ysrc, width, height, hbmmask.unwrap_or(core::mem::zeroed()) as _, xmask, ymask) } } #[inline] -pub unsafe fn PolyBezier(hdc: HDC, apt: &[super::super::Foundation::POINT]) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PolyBezier(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn PolyBezier(hdc: HDC, apt: &[super::super::Foundation::POINT]) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PolyBezier(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : u32) -> windows_core::BOOL); unsafe { PolyBezier(hdc, core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) } } #[inline] -pub unsafe fn PolyBezierTo(hdc: HDC, apt: &[super::super::Foundation::POINT]) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PolyBezierTo(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn PolyBezierTo(hdc: HDC, apt: &[super::super::Foundation::POINT]) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PolyBezierTo(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : u32) -> windows_core::BOOL); unsafe { PolyBezierTo(hdc, core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) } } #[inline] -pub unsafe fn PolyDraw(hdc: HDC, apt: *const super::super::Foundation::POINT, aj: *const u8, cpt: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PolyDraw(hdc : HDC, apt : *const super::super::Foundation:: POINT, aj : *const u8, cpt : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn PolyDraw(hdc: HDC, apt: *const super::super::Foundation::POINT, aj: *const u8, cpt: i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PolyDraw(hdc : HDC, apt : *const super::super::Foundation:: POINT, aj : *const u8, cpt : i32) -> windows_core::BOOL); unsafe { PolyDraw(hdc, apt, aj, cpt) } } #[inline] -pub unsafe fn PolyPolygon(hdc: HDC, apt: *const super::super::Foundation::POINT, asz: &[i32]) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PolyPolygon(hdc : HDC, apt : *const super::super::Foundation:: POINT, asz : *const i32, csz : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn PolyPolygon(hdc: HDC, apt: *const super::super::Foundation::POINT, asz: &[i32]) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PolyPolygon(hdc : HDC, apt : *const super::super::Foundation:: POINT, asz : *const i32, csz : i32) -> windows_core::BOOL); unsafe { PolyPolygon(hdc, apt, core::mem::transmute(asz.as_ptr()), asz.len().try_into().unwrap()) } } #[inline] -pub unsafe fn PolyPolyline(hdc: HDC, apt: *const super::super::Foundation::POINT, asz: &[u32]) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PolyPolyline(hdc : HDC, apt : *const super::super::Foundation:: POINT, asz : *const u32, csz : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn PolyPolyline(hdc: HDC, apt: *const super::super::Foundation::POINT, asz: &[u32]) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PolyPolyline(hdc : HDC, apt : *const super::super::Foundation:: POINT, asz : *const u32, csz : u32) -> windows_core::BOOL); unsafe { PolyPolyline(hdc, apt, core::mem::transmute(asz.as_ptr()), asz.len().try_into().unwrap()) } } #[inline] -pub unsafe fn PolyTextOutA(hdc: HDC, ppt: &[POLYTEXTA]) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PolyTextOutA(hdc : HDC, ppt : *const POLYTEXTA, nstrings : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn PolyTextOutA(hdc: HDC, ppt: &[POLYTEXTA]) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PolyTextOutA(hdc : HDC, ppt : *const POLYTEXTA, nstrings : i32) -> windows_core::BOOL); unsafe { PolyTextOutA(hdc, core::mem::transmute(ppt.as_ptr()), ppt.len().try_into().unwrap()) } } #[inline] -pub unsafe fn PolyTextOutW(hdc: HDC, ppt: &[POLYTEXTW]) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PolyTextOutW(hdc : HDC, ppt : *const POLYTEXTW, nstrings : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn PolyTextOutW(hdc: HDC, ppt: &[POLYTEXTW]) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PolyTextOutW(hdc : HDC, ppt : *const POLYTEXTW, nstrings : i32) -> windows_core::BOOL); unsafe { PolyTextOutW(hdc, core::mem::transmute(ppt.as_ptr()), ppt.len().try_into().unwrap()) } } #[inline] -pub unsafe fn Polygon(hdc: HDC, apt: &[super::super::Foundation::POINT]) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn Polygon(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn Polygon(hdc: HDC, apt: &[super::super::Foundation::POINT]) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn Polygon(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : i32) -> windows_core::BOOL); unsafe { Polygon(hdc, core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) } } #[inline] -pub unsafe fn Polyline(hdc: HDC, apt: &[super::super::Foundation::POINT]) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn Polyline(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn Polyline(hdc: HDC, apt: &[super::super::Foundation::POINT]) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn Polyline(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : i32) -> windows_core::BOOL); unsafe { Polyline(hdc, core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) } } #[inline] -pub unsafe fn PolylineTo(hdc: HDC, apt: &[super::super::Foundation::POINT]) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PolylineTo(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn PolylineTo(hdc: HDC, apt: &[super::super::Foundation::POINT]) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PolylineTo(hdc : HDC, apt : *const super::super::Foundation:: POINT, cpt : u32) -> windows_core::BOOL); unsafe { PolylineTo(hdc, core::mem::transmute(apt.as_ptr()), apt.len().try_into().unwrap()) } } #[inline] -pub unsafe fn PtInRect(lprc: *const super::super::Foundation::RECT, pt: super::super::Foundation::POINT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn PtInRect(lprc : *const super::super::Foundation:: RECT, pt : super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn PtInRect(lprc: *const super::super::Foundation::RECT, pt: super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn PtInRect(lprc : *const super::super::Foundation:: RECT, pt : super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { PtInRect(lprc, core::mem::transmute(pt)) } } #[inline] -pub unsafe fn PtInRegion(hrgn: HRGN, x: i32, y: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PtInRegion(hrgn : HRGN, x : i32, y : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn PtInRegion(hrgn: HRGN, x: i32, y: i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PtInRegion(hrgn : HRGN, x : i32, y : i32) -> windows_core::BOOL); unsafe { PtInRegion(hrgn, x, y) } } #[inline] -pub unsafe fn PtVisible(hdc: HDC, x: i32, y: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn PtVisible(hdc : HDC, x : i32, y : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn PtVisible(hdc: HDC, x: i32, y: i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn PtVisible(hdc : HDC, x : i32, y : i32) -> windows_core::BOOL); unsafe { PtVisible(hdc, x, y) } } #[inline] @@ -1636,23 +1636,23 @@ pub unsafe fn RealizePalette(hdc: HDC) -> u32 { unsafe { RealizePalette(hdc) } } #[inline] -pub unsafe fn RectInRegion(hrgn: HRGN, lprect: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn RectInRegion(hrgn : HRGN, lprect : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn RectInRegion(hrgn: HRGN, lprect: *const super::super::Foundation::RECT) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn RectInRegion(hrgn : HRGN, lprect : *const super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { RectInRegion(hrgn, lprect) } } #[inline] -pub unsafe fn RectVisible(hdc: HDC, lprect: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn RectVisible(hdc : HDC, lprect : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn RectVisible(hdc: HDC, lprect: *const super::super::Foundation::RECT) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn RectVisible(hdc : HDC, lprect : *const super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { RectVisible(hdc, lprect) } } #[inline] -pub unsafe fn Rectangle(hdc: HDC, left: i32, top: i32, right: i32, bottom: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn Rectangle(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn Rectangle(hdc: HDC, left: i32, top: i32, right: i32, bottom: i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn Rectangle(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32) -> windows_core::BOOL); unsafe { Rectangle(hdc, left, top, right, bottom) } } #[inline] -pub unsafe fn RedrawWindow(hwnd: Option, lprcupdate: Option<*const super::super::Foundation::RECT>, hrgnupdate: Option, flags: REDRAW_WINDOW_FLAGS) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn RedrawWindow(hwnd : super::super::Foundation:: HWND, lprcupdate : *const super::super::Foundation:: RECT, hrgnupdate : HRGN, flags : REDRAW_WINDOW_FLAGS) -> super::super::Foundation:: BOOL); +pub unsafe fn RedrawWindow(hwnd: Option, lprcupdate: Option<*const super::super::Foundation::RECT>, hrgnupdate: Option, flags: REDRAW_WINDOW_FLAGS) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn RedrawWindow(hwnd : super::super::Foundation:: HWND, lprcupdate : *const super::super::Foundation:: RECT, hrgnupdate : HRGN, flags : REDRAW_WINDOW_FLAGS) -> windows_core::BOOL); unsafe { RedrawWindow(hwnd.unwrap_or(core::mem::zeroed()) as _, lprcupdate.unwrap_or(core::mem::zeroed()) as _, hrgnupdate.unwrap_or(core::mem::zeroed()) as _, flags) } } #[inline] @@ -1661,40 +1661,40 @@ pub unsafe fn ReleaseDC(hwnd: Option, hdc: HDC) unsafe { ReleaseDC(hwnd.unwrap_or(core::mem::zeroed()) as _, hdc) } } #[inline] -pub unsafe fn RemoveFontMemResourceEx(h: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn RemoveFontMemResourceEx(h : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn RemoveFontMemResourceEx(h: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn RemoveFontMemResourceEx(h : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { RemoveFontMemResourceEx(h) } } #[inline] -pub unsafe fn RemoveFontResourceA(lpfilename: P0) -> super::super::Foundation::BOOL +pub unsafe fn RemoveFontResourceA(lpfilename: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("gdi32.dll" "system" fn RemoveFontResourceA(lpfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("gdi32.dll" "system" fn RemoveFontResourceA(lpfilename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { RemoveFontResourceA(lpfilename.param().abi()) } } #[inline] -pub unsafe fn RemoveFontResourceExA(name: P0, fl: u32, pdv: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL +pub unsafe fn RemoveFontResourceExA(name: P0, fl: u32, pdv: Option<*const core::ffi::c_void>) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("gdi32.dll" "system" fn RemoveFontResourceExA(name : windows_core::PCSTR, fl : u32, pdv : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("gdi32.dll" "system" fn RemoveFontResourceExA(name : windows_core::PCSTR, fl : u32, pdv : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { RemoveFontResourceExA(name.param().abi(), fl, pdv.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn RemoveFontResourceExW(name: P0, fl: u32, pdv: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL +pub unsafe fn RemoveFontResourceExW(name: P0, fl: u32, pdv: Option<*const core::ffi::c_void>) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("gdi32.dll" "system" fn RemoveFontResourceExW(name : windows_core::PCWSTR, fl : u32, pdv : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("gdi32.dll" "system" fn RemoveFontResourceExW(name : windows_core::PCWSTR, fl : u32, pdv : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { RemoveFontResourceExW(name.param().abi(), fl, pdv.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn RemoveFontResourceW(lpfilename: P0) -> super::super::Foundation::BOOL +pub unsafe fn RemoveFontResourceW(lpfilename: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("gdi32.dll" "system" fn RemoveFontResourceW(lpfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("gdi32.dll" "system" fn RemoveFontResourceW(lpfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { RemoveFontResourceW(lpfilename.param().abi()) } } #[inline] @@ -1708,18 +1708,18 @@ pub unsafe fn ResetDCW(hdc: HDC, lpdm: *const DEVMODEW) -> HDC { unsafe { ResetDCW(hdc, lpdm) } } #[inline] -pub unsafe fn ResizePalette(hpal: HPALETTE, n: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn ResizePalette(hpal : HPALETTE, n : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn ResizePalette(hpal: HPALETTE, n: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn ResizePalette(hpal : HPALETTE, n : u32) -> windows_core::BOOL); unsafe { ResizePalette(hpal, n) } } #[inline] -pub unsafe fn RestoreDC(hdc: HDC, nsaveddc: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn RestoreDC(hdc : HDC, nsaveddc : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn RestoreDC(hdc: HDC, nsaveddc: i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn RestoreDC(hdc : HDC, nsaveddc : i32) -> windows_core::BOOL); unsafe { RestoreDC(hdc, nsaveddc) } } #[inline] -pub unsafe fn RoundRect(hdc: HDC, left: i32, top: i32, right: i32, bottom: i32, width: i32, height: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn RoundRect(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32, width : i32, height : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn RoundRect(hdc: HDC, left: i32, top: i32, right: i32, bottom: i32, width: i32, height: i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn RoundRect(hdc : HDC, left : i32, top : i32, right : i32, bottom : i32, width : i32, height : i32) -> windows_core::BOOL); unsafe { RoundRect(hdc, left, top, right, bottom, width, height) } } #[inline] @@ -1728,23 +1728,23 @@ pub unsafe fn SaveDC(hdc: HDC) -> i32 { unsafe { SaveDC(hdc) } } #[inline] -pub unsafe fn ScaleViewportExtEx(hdc: HDC, xn: i32, dx: i32, yn: i32, yd: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn ScaleViewportExtEx(hdc : HDC, xn : i32, dx : i32, yn : i32, yd : i32, lpsz : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); +pub unsafe fn ScaleViewportExtEx(hdc: HDC, xn: i32, dx: i32, yn: i32, yd: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn ScaleViewportExtEx(hdc : HDC, xn : i32, dx : i32, yn : i32, yd : i32, lpsz : *mut super::super::Foundation:: SIZE) -> windows_core::BOOL); unsafe { ScaleViewportExtEx(hdc, xn, dx, yn, yd, lpsz.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn ScaleWindowExtEx(hdc: HDC, xn: i32, xd: i32, yn: i32, yd: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn ScaleWindowExtEx(hdc : HDC, xn : i32, xd : i32, yn : i32, yd : i32, lpsz : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); +pub unsafe fn ScaleWindowExtEx(hdc: HDC, xn: i32, xd: i32, yn: i32, yd: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn ScaleWindowExtEx(hdc : HDC, xn : i32, xd : i32, yn : i32, yd : i32, lpsz : *mut super::super::Foundation:: SIZE) -> windows_core::BOOL); unsafe { ScaleWindowExtEx(hdc, xn, xd, yn, yd, lpsz.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn ScreenToClient(hwnd: super::super::Foundation::HWND, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn ScreenToClient(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn ScreenToClient(hwnd: super::super::Foundation::HWND, lppoint: *mut super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn ScreenToClient(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { ScreenToClient(hwnd, lppoint as _) } } #[inline] -pub unsafe fn SelectClipPath(hdc: HDC, mode: RGN_COMBINE_MODE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn SelectClipPath(hdc : HDC, mode : RGN_COMBINE_MODE) -> super::super::Foundation:: BOOL); +pub unsafe fn SelectClipPath(hdc: HDC, mode: RGN_COMBINE_MODE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn SelectClipPath(hdc : HDC, mode : RGN_COMBINE_MODE) -> windows_core::BOOL); unsafe { SelectClipPath(hdc, mode) } } #[inline] @@ -1759,7 +1759,7 @@ pub unsafe fn SelectObject(hdc: HDC, h: HGDIOBJ) -> HGDIOBJ { } #[inline] pub unsafe fn SelectPalette(hdc: HDC, hpal: HPALETTE, bforcebkgd: bool) -> HPALETTE { - windows_targets::link!("gdi32.dll" "system" fn SelectPalette(hdc : HDC, hpal : HPALETTE, bforcebkgd : super::super::Foundation:: BOOL) -> HPALETTE); + windows_targets::link!("gdi32.dll" "system" fn SelectPalette(hdc : HDC, hpal : HPALETTE, bforcebkgd : windows_core::BOOL) -> HPALETTE); unsafe { SelectPalette(hdc, hpal, bforcebkgd.into()) } } #[inline] @@ -1773,8 +1773,8 @@ pub unsafe fn SetBitmapBits(hbm: HBITMAP, cb: u32, pvbits: *const core::ffi::c_v unsafe { SetBitmapBits(hbm, cb, pvbits) } } #[inline] -pub unsafe fn SetBitmapDimensionEx(hbm: HBITMAP, w: i32, h: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn SetBitmapDimensionEx(hbm : HBITMAP, w : i32, h : i32, lpsz : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); +pub unsafe fn SetBitmapDimensionEx(hbm: HBITMAP, w: i32, h: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn SetBitmapDimensionEx(hbm : HBITMAP, w : i32, h : i32, lpsz : *mut super::super::Foundation:: SIZE) -> windows_core::BOOL); unsafe { SetBitmapDimensionEx(hbm, w, h, lpsz.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1793,13 +1793,13 @@ pub unsafe fn SetBoundsRect(hdc: HDC, lprect: Option<*const super::super::Founda unsafe { SetBoundsRect(hdc, lprect.unwrap_or(core::mem::zeroed()) as _, flags) } } #[inline] -pub unsafe fn SetBrushOrgEx(hdc: HDC, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn SetBrushOrgEx(hdc : HDC, x : i32, y : i32, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn SetBrushOrgEx(hdc: HDC, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn SetBrushOrgEx(hdc : HDC, x : i32, y : i32, lppt : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { SetBrushOrgEx(hdc, x, y, lppt.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn SetColorAdjustment(hdc: HDC, lpca: *const COLORADJUSTMENT) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn SetColorAdjustment(hdc : HDC, lpca : *const COLORADJUSTMENT) -> super::super::Foundation:: BOOL); +pub unsafe fn SetColorAdjustment(hdc: HDC, lpca: *const COLORADJUSTMENT) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn SetColorAdjustment(hdc : HDC, lpca : *const COLORADJUSTMENT) -> windows_core::BOOL); unsafe { SetColorAdjustment(hdc, lpca) } } #[inline] @@ -1863,8 +1863,8 @@ pub unsafe fn SetMetaRgn(hdc: HDC) -> GDI_REGION_TYPE { unsafe { SetMetaRgn(hdc) } } #[inline] -pub unsafe fn SetMiterLimit(hdc: HDC, limit: f32, old: Option<*mut f32>) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn SetMiterLimit(hdc : HDC, limit : f32, old : *mut f32) -> super::super::Foundation:: BOOL); +pub unsafe fn SetMiterLimit(hdc: HDC, limit: f32, old: Option<*mut f32>) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn SetMiterLimit(hdc : HDC, limit : f32, old : *mut f32) -> windows_core::BOOL); unsafe { SetMiterLimit(hdc, limit, old.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1878,8 +1878,8 @@ pub unsafe fn SetPixel(hdc: HDC, x: i32, y: i32, color: super::super::Foundation unsafe { SetPixel(hdc, x, y, color) } } #[inline] -pub unsafe fn SetPixelV(hdc: HDC, x: i32, y: i32, color: super::super::Foundation::COLORREF) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn SetPixelV(hdc : HDC, x : i32, y : i32, color : super::super::Foundation:: COLORREF) -> super::super::Foundation:: BOOL); +pub unsafe fn SetPixelV(hdc: HDC, x: i32, y: i32, color: super::super::Foundation::COLORREF) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn SetPixelV(hdc : HDC, x : i32, y : i32, color : super::super::Foundation:: COLORREF) -> windows_core::BOOL); unsafe { SetPixelV(hdc, x, y, color) } } #[inline] @@ -1893,18 +1893,18 @@ pub unsafe fn SetROP2(hdc: HDC, rop2: R2_MODE) -> i32 { unsafe { SetROP2(hdc, rop2) } } #[inline] -pub unsafe fn SetRect(lprc: *mut super::super::Foundation::RECT, xleft: i32, ytop: i32, xright: i32, ybottom: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn SetRect(lprc : *mut super::super::Foundation:: RECT, xleft : i32, ytop : i32, xright : i32, ybottom : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn SetRect(lprc: *mut super::super::Foundation::RECT, xleft: i32, ytop: i32, xright: i32, ybottom: i32) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn SetRect(lprc : *mut super::super::Foundation:: RECT, xleft : i32, ytop : i32, xright : i32, ybottom : i32) -> windows_core::BOOL); unsafe { SetRect(lprc as _, xleft, ytop, xright, ybottom) } } #[inline] -pub unsafe fn SetRectEmpty(lprc: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn SetRectEmpty(lprc : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn SetRectEmpty(lprc: *mut super::super::Foundation::RECT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn SetRectEmpty(lprc : *mut super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { SetRectEmpty(lprc as _) } } #[inline] -pub unsafe fn SetRectRgn(hrgn: HRGN, left: i32, top: i32, right: i32, bottom: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn SetRectRgn(hrgn : HRGN, left : i32, top : i32, right : i32, bottom : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn SetRectRgn(hrgn: HRGN, left: i32, top: i32, right: i32, bottom: i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn SetRectRgn(hrgn : HRGN, left : i32, top : i32, right : i32, bottom : i32) -> windows_core::BOOL); unsafe { SetRectRgn(hrgn, left, top, right, bottom) } } #[inline] @@ -1914,7 +1914,7 @@ pub unsafe fn SetStretchBltMode(hdc: HDC, mode: STRETCH_BLT_MODE) -> i32 { } #[inline] pub unsafe fn SetSysColors(celements: i32, lpaelements: *const i32, lpargbvalues: *const super::super::Foundation::COLORREF) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetSysColors(celements : i32, lpaelements : *const i32, lpargbvalues : *const super::super::Foundation:: COLORREF) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetSysColors(celements : i32, lpaelements : *const i32, lpargbvalues : *const super::super::Foundation:: COLORREF) -> windows_core::BOOL); unsafe { SetSysColors(celements, lpaelements, lpargbvalues).ok() } } #[inline] @@ -1938,43 +1938,43 @@ pub unsafe fn SetTextColor(hdc: HDC, color: super::super::Foundation::COLORREF) unsafe { SetTextColor(hdc, color) } } #[inline] -pub unsafe fn SetTextJustification(hdc: HDC, extra: i32, count: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn SetTextJustification(hdc : HDC, extra : i32, count : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn SetTextJustification(hdc: HDC, extra: i32, count: i32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn SetTextJustification(hdc : HDC, extra : i32, count : i32) -> windows_core::BOOL); unsafe { SetTextJustification(hdc, extra, count) } } #[inline] -pub unsafe fn SetViewportExtEx(hdc: HDC, x: i32, y: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn SetViewportExtEx(hdc : HDC, x : i32, y : i32, lpsz : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); +pub unsafe fn SetViewportExtEx(hdc: HDC, x: i32, y: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn SetViewportExtEx(hdc : HDC, x : i32, y : i32, lpsz : *mut super::super::Foundation:: SIZE) -> windows_core::BOOL); unsafe { SetViewportExtEx(hdc, x, y, lpsz.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn SetViewportOrgEx(hdc: HDC, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn SetViewportOrgEx(hdc : HDC, x : i32, y : i32, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn SetViewportOrgEx(hdc: HDC, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn SetViewportOrgEx(hdc : HDC, x : i32, y : i32, lppt : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { SetViewportOrgEx(hdc, x, y, lppt.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn SetWindowExtEx(hdc: HDC, x: i32, y: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn SetWindowExtEx(hdc : HDC, x : i32, y : i32, lpsz : *mut super::super::Foundation:: SIZE) -> super::super::Foundation:: BOOL); +pub unsafe fn SetWindowExtEx(hdc: HDC, x: i32, y: i32, lpsz: Option<*mut super::super::Foundation::SIZE>) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn SetWindowExtEx(hdc : HDC, x : i32, y : i32, lpsz : *mut super::super::Foundation:: SIZE) -> windows_core::BOOL); unsafe { SetWindowExtEx(hdc, x, y, lpsz.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn SetWindowOrgEx(hdc: HDC, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn SetWindowOrgEx(hdc : HDC, x : i32, y : i32, lppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn SetWindowOrgEx(hdc: HDC, x: i32, y: i32, lppt: Option<*mut super::super::Foundation::POINT>) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn SetWindowOrgEx(hdc : HDC, x : i32, y : i32, lppt : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { SetWindowOrgEx(hdc, x, y, lppt.unwrap_or(core::mem::zeroed()) as _) } } #[inline] pub unsafe fn SetWindowRgn(hwnd: super::super::Foundation::HWND, hrgn: Option, bredraw: bool) -> i32 { - windows_targets::link!("user32.dll" "system" fn SetWindowRgn(hwnd : super::super::Foundation:: HWND, hrgn : HRGN, bredraw : super::super::Foundation:: BOOL) -> i32); + windows_targets::link!("user32.dll" "system" fn SetWindowRgn(hwnd : super::super::Foundation:: HWND, hrgn : HRGN, bredraw : windows_core::BOOL) -> i32); unsafe { SetWindowRgn(hwnd, hrgn.unwrap_or(core::mem::zeroed()) as _, bredraw.into()) } } #[inline] -pub unsafe fn SetWorldTransform(hdc: HDC, lpxf: *const XFORM) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn SetWorldTransform(hdc : HDC, lpxf : *const XFORM) -> super::super::Foundation:: BOOL); +pub unsafe fn SetWorldTransform(hdc: HDC, lpxf: *const XFORM) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn SetWorldTransform(hdc : HDC, lpxf : *const XFORM) -> windows_core::BOOL); unsafe { SetWorldTransform(hdc, lpxf) } } #[inline] -pub unsafe fn StretchBlt(hdcdest: HDC, xdest: i32, ydest: i32, wdest: i32, hdest: i32, hdcsrc: Option, xsrc: i32, ysrc: i32, wsrc: i32, hsrc: i32, rop: ROP_CODE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn StretchBlt(hdcdest : HDC, xdest : i32, ydest : i32, wdest : i32, hdest : i32, hdcsrc : HDC, xsrc : i32, ysrc : i32, wsrc : i32, hsrc : i32, rop : ROP_CODE) -> super::super::Foundation:: BOOL); +pub unsafe fn StretchBlt(hdcdest: HDC, xdest: i32, ydest: i32, wdest: i32, hdest: i32, hdcsrc: Option, xsrc: i32, ysrc: i32, wsrc: i32, hsrc: i32, rop: ROP_CODE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn StretchBlt(hdcdest : HDC, xdest : i32, ydest : i32, wdest : i32, hdest : i32, hdcsrc : HDC, xsrc : i32, ysrc : i32, wsrc : i32, hsrc : i32, rop : ROP_CODE) -> windows_core::BOOL); unsafe { StretchBlt(hdcdest, xdest, ydest, wdest, hdest, hdcsrc.unwrap_or(core::mem::zeroed()) as _, xsrc, ysrc, wsrc, hsrc, rop) } } #[inline] @@ -1983,18 +1983,18 @@ pub unsafe fn StretchDIBits(hdc: HDC, xdest: i32, ydest: i32, destwidth: i32, de unsafe { StretchDIBits(hdc, xdest, ydest, destwidth, destheight, xsrc, ysrc, srcwidth, srcheight, lpbits.unwrap_or(core::mem::zeroed()) as _, lpbmi, iusage, rop) } } #[inline] -pub unsafe fn StrokeAndFillPath(hdc: HDC) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn StrokeAndFillPath(hdc : HDC) -> super::super::Foundation:: BOOL); +pub unsafe fn StrokeAndFillPath(hdc: HDC) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn StrokeAndFillPath(hdc : HDC) -> windows_core::BOOL); unsafe { StrokeAndFillPath(hdc) } } #[inline] -pub unsafe fn StrokePath(hdc: HDC) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn StrokePath(hdc : HDC) -> super::super::Foundation:: BOOL); +pub unsafe fn StrokePath(hdc: HDC) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn StrokePath(hdc : HDC) -> windows_core::BOOL); unsafe { StrokePath(hdc) } } #[inline] -pub unsafe fn SubtractRect(lprcdst: *mut super::super::Foundation::RECT, lprcsrc1: *const super::super::Foundation::RECT, lprcsrc2: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn SubtractRect(lprcdst : *mut super::super::Foundation:: RECT, lprcsrc1 : *const super::super::Foundation:: RECT, lprcsrc2 : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn SubtractRect(lprcdst: *mut super::super::Foundation::RECT, lprcsrc1: *const super::super::Foundation::RECT, lprcsrc2: *const super::super::Foundation::RECT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn SubtractRect(lprcdst : *mut super::super::Foundation:: RECT, lprcsrc1 : *const super::super::Foundation:: RECT, lprcsrc2 : *const super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { SubtractRect(lprcdst as _, lprcsrc1, lprcsrc2) } } #[inline] @@ -2030,7 +2030,7 @@ pub unsafe fn TTEnableEmbeddingForFacename(lpszfacename: P0, benable: bool) where P0: windows_core::Param, { - windows_targets::link!("t2embed.dll" "system" fn TTEnableEmbeddingForFacename(lpszfacename : windows_core::PCSTR, benable : super::super::Foundation:: BOOL) -> i32); + windows_targets::link!("t2embed.dll" "system" fn TTEnableEmbeddingForFacename(lpszfacename : windows_core::PCSTR, benable : windows_core::BOOL) -> i32); unsafe { TTEnableEmbeddingForFacename(lpszfacename.param().abi(), benable.into()) } } #[inline] @@ -2049,16 +2049,16 @@ pub unsafe fn TTGetNewFontName(phfontreference: *const super::super::Foundation: unsafe { TTGetNewFontName(phfontreference, core::mem::transmute(wzwinfamilyname.as_ptr()), wzwinfamilyname.len().try_into().unwrap(), core::mem::transmute(szmacfamilyname.as_ptr()), szmacfamilyname.len().try_into().unwrap()) } } #[inline] -pub unsafe fn TTIsEmbeddingEnabled(hdc: HDC, pbenabled: *mut super::super::Foundation::BOOL) -> i32 { - windows_targets::link!("t2embed.dll" "system" fn TTIsEmbeddingEnabled(hdc : HDC, pbenabled : *mut super::super::Foundation:: BOOL) -> i32); +pub unsafe fn TTIsEmbeddingEnabled(hdc: HDC, pbenabled: *mut windows_core::BOOL) -> i32 { + windows_targets::link!("t2embed.dll" "system" fn TTIsEmbeddingEnabled(hdc : HDC, pbenabled : *mut windows_core::BOOL) -> i32); unsafe { TTIsEmbeddingEnabled(hdc, pbenabled as _) } } #[inline] -pub unsafe fn TTIsEmbeddingEnabledForFacename(lpszfacename: P0, pbenabled: *mut super::super::Foundation::BOOL) -> i32 +pub unsafe fn TTIsEmbeddingEnabledForFacename(lpszfacename: P0, pbenabled: *mut windows_core::BOOL) -> i32 where P0: windows_core::Param, { - windows_targets::link!("t2embed.dll" "system" fn TTIsEmbeddingEnabledForFacename(lpszfacename : windows_core::PCSTR, pbenabled : *mut super::super::Foundation:: BOOL) -> i32); + windows_targets::link!("t2embed.dll" "system" fn TTIsEmbeddingEnabledForFacename(lpszfacename : windows_core::PCSTR, pbenabled : *mut windows_core::BOOL) -> i32); unsafe { TTIsEmbeddingEnabledForFacename(lpszfacename.param().abi(), pbenabled as _) } } #[inline] @@ -2091,53 +2091,53 @@ pub unsafe fn TabbedTextOutW(hdc: HDC, x: i32, y: i32, lpstring: &[u16], lpntabs unsafe { TabbedTextOutW(hdc, x, y, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), lpntabstoppositions.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpntabstoppositions.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ntaborigin) } } #[inline] -pub unsafe fn TextOutA(hdc: HDC, x: i32, y: i32, lpstring: &[u8]) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn TextOutA(hdc : HDC, x : i32, y : i32, lpstring : windows_core::PCSTR, c : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn TextOutA(hdc: HDC, x: i32, y: i32, lpstring: &[u8]) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn TextOutA(hdc : HDC, x : i32, y : i32, lpstring : windows_core::PCSTR, c : i32) -> windows_core::BOOL); unsafe { TextOutA(hdc, x, y, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) } } #[inline] -pub unsafe fn TextOutW(hdc: HDC, x: i32, y: i32, lpstring: &[u16]) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn TextOutW(hdc : HDC, x : i32, y : i32, lpstring : windows_core::PCWSTR, c : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn TextOutW(hdc: HDC, x: i32, y: i32, lpstring: &[u16]) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn TextOutW(hdc : HDC, x : i32, y : i32, lpstring : windows_core::PCWSTR, c : i32) -> windows_core::BOOL); unsafe { TextOutW(hdc, x, y, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap()) } } #[inline] -pub unsafe fn TransparentBlt(hdcdest: HDC, xorigindest: i32, yorigindest: i32, wdest: i32, hdest: i32, hdcsrc: HDC, xoriginsrc: i32, yoriginsrc: i32, wsrc: i32, hsrc: i32, crtransparent: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("msimg32.dll" "system" fn TransparentBlt(hdcdest : HDC, xorigindest : i32, yorigindest : i32, wdest : i32, hdest : i32, hdcsrc : HDC, xoriginsrc : i32, yoriginsrc : i32, wsrc : i32, hsrc : i32, crtransparent : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn TransparentBlt(hdcdest: HDC, xorigindest: i32, yorigindest: i32, wdest: i32, hdest: i32, hdcsrc: HDC, xoriginsrc: i32, yoriginsrc: i32, wsrc: i32, hsrc: i32, crtransparent: u32) -> windows_core::BOOL { + windows_targets::link!("msimg32.dll" "system" fn TransparentBlt(hdcdest : HDC, xorigindest : i32, yorigindest : i32, wdest : i32, hdest : i32, hdcsrc : HDC, xoriginsrc : i32, yoriginsrc : i32, wsrc : i32, hsrc : i32, crtransparent : u32) -> windows_core::BOOL); unsafe { TransparentBlt(hdcdest, xorigindest, yorigindest, wdest, hdest, hdcsrc, xoriginsrc, yoriginsrc, wsrc, hsrc, crtransparent) } } #[inline] -pub unsafe fn UnionRect(lprcdst: *mut super::super::Foundation::RECT, lprcsrc1: *const super::super::Foundation::RECT, lprcsrc2: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn UnionRect(lprcdst : *mut super::super::Foundation:: RECT, lprcsrc1 : *const super::super::Foundation:: RECT, lprcsrc2 : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn UnionRect(lprcdst: *mut super::super::Foundation::RECT, lprcsrc1: *const super::super::Foundation::RECT, lprcsrc2: *const super::super::Foundation::RECT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn UnionRect(lprcdst : *mut super::super::Foundation:: RECT, lprcsrc1 : *const super::super::Foundation:: RECT, lprcsrc2 : *const super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { UnionRect(lprcdst as _, lprcsrc1, lprcsrc2) } } #[inline] -pub unsafe fn UnrealizeObject(h: HGDIOBJ) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn UnrealizeObject(h : HGDIOBJ) -> super::super::Foundation:: BOOL); +pub unsafe fn UnrealizeObject(h: HGDIOBJ) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn UnrealizeObject(h : HGDIOBJ) -> windows_core::BOOL); unsafe { UnrealizeObject(h) } } #[inline] -pub unsafe fn UpdateColors(hdc: HDC) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn UpdateColors(hdc : HDC) -> super::super::Foundation:: BOOL); +pub unsafe fn UpdateColors(hdc: HDC) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn UpdateColors(hdc : HDC) -> windows_core::BOOL); unsafe { UpdateColors(hdc) } } #[inline] -pub unsafe fn UpdateWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn UpdateWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn UpdateWindow(hwnd: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn UpdateWindow(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { UpdateWindow(hwnd) } } #[inline] -pub unsafe fn ValidateRect(hwnd: Option, lprect: Option<*const super::super::Foundation::RECT>) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn ValidateRect(hwnd : super::super::Foundation:: HWND, lprect : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn ValidateRect(hwnd: Option, lprect: Option<*const super::super::Foundation::RECT>) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn ValidateRect(hwnd : super::super::Foundation:: HWND, lprect : *const super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { ValidateRect(hwnd.unwrap_or(core::mem::zeroed()) as _, lprect.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn ValidateRgn(hwnd: super::super::Foundation::HWND, hrgn: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn ValidateRgn(hwnd : super::super::Foundation:: HWND, hrgn : HRGN) -> super::super::Foundation:: BOOL); +pub unsafe fn ValidateRgn(hwnd: super::super::Foundation::HWND, hrgn: Option) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn ValidateRgn(hwnd : super::super::Foundation:: HWND, hrgn : HRGN) -> windows_core::BOOL); unsafe { ValidateRgn(hwnd, hrgn.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn WidenPath(hdc: HDC) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn WidenPath(hdc : HDC) -> super::super::Foundation:: BOOL); +pub unsafe fn WidenPath(hdc: HDC) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn WidenPath(hdc : HDC) -> windows_core::BOOL); unsafe { WidenPath(hdc) } } #[inline] @@ -3477,7 +3477,7 @@ impl core::ops::Not for DRAWEDGE_FLAGS { } } pub const DRAWPATTERNRECT: u32 = 25u32; -pub type DRAWSTATEPROC = Option super::super::Foundation::BOOL>; +pub type DRAWSTATEPROC = Option windows_core::BOOL>; #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct DRAWSTATE_FLAGS(pub u32); @@ -5602,7 +5602,7 @@ impl Default for GRADIENT_TRIANGLE { #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct GRAPHICS_MODE(pub i32); -pub type GRAYSTRINGPROC = Option super::super::Foundation::BOOL>; +pub type GRAYSTRINGPROC = Option windows_core::BOOL>; pub const GRAY_BRUSH: GET_STOCK_OBJECT_FLAGS = GET_STOCK_OBJECT_FLAGS(2i32); pub const GREEK_CHARSET: FONT_CHARSET = FONT_CHARSET(161u8); pub const GS_8BIT_INDICES: u32 = 1u32; @@ -6209,7 +6209,7 @@ pub const MM_TWIPS: HDC_MAP_MODE = HDC_MAP_MODE(6i32); #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct MODIFY_WORLD_TRANSFORM_MODE(pub u32); -pub type MONITORENUMPROC = Option super::super::Foundation::BOOL>; +pub type MONITORENUMPROC = Option windows_core::BOOL>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct MONITORINFO { @@ -6465,10 +6465,10 @@ pub const OUT_TT_PRECIS: FONT_OUTPUT_PRECISION = FONT_OUTPUT_PRECISION(4u8); #[derive(Clone, Copy, Debug, PartialEq)] pub struct PAINTSTRUCT { pub hdc: HDC, - pub fErase: super::super::Foundation::BOOL, + pub fErase: windows_core::BOOL, pub rcPaint: super::super::Foundation::RECT, - pub fRestore: super::super::Foundation::BOOL, - pub fIncUpdate: super::super::Foundation::BOOL, + pub fRestore: windows_core::BOOL, + pub fIncUpdate: windows_core::BOOL, pub rgbReserved: [u8; 32], } impl Default for PAINTSTRUCT { 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 7b2970c99e..044c3fdc5f 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/mod.rs @@ -110,7 +110,7 @@ pub unsafe fn GdipAddPathLineI(path: *mut GpPath, x1: i32, y1: i32, x2: i32, y2: } #[inline] pub unsafe fn GdipAddPathPath(path: *mut GpPath, addingpath: *const GpPath, connect: bool) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathPath(path : *mut GpPath, addingpath : *const GpPath, connect : super::super::Foundation:: BOOL) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipAddPathPath(path : *mut GpPath, addingpath : *const GpPath, connect : windows_core::BOOL) -> Status); unsafe { GdipAddPathPath(path as _, addingpath, connect.into()) } } #[inline] @@ -191,7 +191,7 @@ pub unsafe fn GdipBeginContainerI(graphics: *mut GpGraphics, dstrect: *const Rec } #[inline] pub unsafe fn GdipBitmapApplyEffect(bitmap: *mut GpBitmap, effect: *mut CGpEffect, roi: *mut super::super::Foundation::RECT, useauxdata: bool, auxdata: *mut *mut core::ffi::c_void, auxdatasize: *mut i32) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipBitmapApplyEffect(bitmap : *mut GpBitmap, effect : *mut CGpEffect, roi : *mut super::super::Foundation:: RECT, useauxdata : super::super::Foundation:: BOOL, auxdata : *mut *mut core::ffi::c_void, auxdatasize : *mut i32) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipBitmapApplyEffect(bitmap : *mut GpBitmap, effect : *mut CGpEffect, roi : *mut super::super::Foundation:: RECT, useauxdata : windows_core::BOOL, auxdata : *mut *mut core::ffi::c_void, auxdatasize : *mut i32) -> Status); unsafe { GdipBitmapApplyEffect(bitmap as _, effect as _, roi as _, useauxdata.into(), auxdata as _, auxdatasize as _) } } #[inline] @@ -201,7 +201,7 @@ pub unsafe fn GdipBitmapConvertFormat(pinputbitmap: *mut GpBitmap, format: i32, } #[inline] pub unsafe fn GdipBitmapCreateApplyEffect(inputbitmaps: *mut *mut GpBitmap, numinputs: i32, effect: *mut CGpEffect, roi: *mut super::super::Foundation::RECT, outputrect: *mut super::super::Foundation::RECT, outputbitmap: *mut *mut GpBitmap, useauxdata: bool, auxdata: *mut *mut core::ffi::c_void, auxdatasize: *mut i32) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipBitmapCreateApplyEffect(inputbitmaps : *mut *mut GpBitmap, numinputs : i32, effect : *mut CGpEffect, roi : *mut super::super::Foundation:: RECT, outputrect : *mut super::super::Foundation:: RECT, outputbitmap : *mut *mut GpBitmap, useauxdata : super::super::Foundation:: BOOL, auxdata : *mut *mut core::ffi::c_void, auxdatasize : *mut i32) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipBitmapCreateApplyEffect(inputbitmaps : *mut *mut GpBitmap, numinputs : i32, effect : *mut CGpEffect, roi : *mut super::super::Foundation:: RECT, outputrect : *mut super::super::Foundation:: RECT, outputbitmap : *mut *mut GpBitmap, useauxdata : windows_core::BOOL, auxdata : *mut *mut core::ffi::c_void, auxdatasize : *mut i32) -> Status); unsafe { GdipBitmapCreateApplyEffect(inputbitmaps as _, numinputs, effect as _, roi as _, outputrect as _, outputbitmap as _, useauxdata.into(), auxdata as _, auxdatasize as _) } } #[inline] @@ -373,7 +373,7 @@ where } #[inline] pub unsafe fn GdipCreateAdjustableArrowCap(height: f32, width: f32, isfilled: bool, cap: *mut *mut GpAdjustableArrowCap) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipCreateAdjustableArrowCap(height : f32, width : f32, isfilled : super::super::Foundation:: BOOL, cap : *mut *mut GpAdjustableArrowCap) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipCreateAdjustableArrowCap(height : f32, width : f32, isfilled : windows_core::BOOL, cap : *mut *mut GpAdjustableArrowCap) -> Status); unsafe { GdipCreateAdjustableArrowCap(height, width, isfilled.into(), cap as _) } } #[cfg(feature = "Win32_Graphics_DirectDraw")] @@ -568,12 +568,12 @@ pub unsafe fn GdipCreateLineBrushFromRectI(rect: *const Rect, color1: u32, color } #[inline] pub unsafe fn GdipCreateLineBrushFromRectWithAngle(rect: *const RectF, color1: u32, color2: u32, angle: f32, isanglescalable: bool, wrapmode: WrapMode, linegradient: *mut *mut GpLineGradient) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipCreateLineBrushFromRectWithAngle(rect : *const RectF, color1 : u32, color2 : u32, angle : f32, isanglescalable : super::super::Foundation:: BOOL, wrapmode : WrapMode, linegradient : *mut *mut GpLineGradient) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipCreateLineBrushFromRectWithAngle(rect : *const RectF, color1 : u32, color2 : u32, angle : f32, isanglescalable : windows_core::BOOL, wrapmode : WrapMode, linegradient : *mut *mut GpLineGradient) -> Status); unsafe { GdipCreateLineBrushFromRectWithAngle(rect, color1, color2, angle, isanglescalable.into(), wrapmode, linegradient as _) } } #[inline] pub unsafe fn GdipCreateLineBrushFromRectWithAngleI(rect: *const Rect, color1: u32, color2: u32, angle: f32, isanglescalable: bool, wrapmode: WrapMode, linegradient: *mut *mut GpLineGradient) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipCreateLineBrushFromRectWithAngleI(rect : *const Rect, color1 : u32, color2 : u32, angle : f32, isanglescalable : super::super::Foundation:: BOOL, wrapmode : WrapMode, linegradient : *mut *mut GpLineGradient) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipCreateLineBrushFromRectWithAngleI(rect : *const Rect, color1 : u32, color2 : u32, angle : f32, isanglescalable : windows_core::BOOL, wrapmode : WrapMode, linegradient : *mut *mut GpLineGradient) -> Status); unsafe { GdipCreateLineBrushFromRectWithAngleI(rect, color1, color2, angle, isanglescalable.into(), wrapmode, linegradient as _) } } #[inline] @@ -604,7 +604,7 @@ pub unsafe fn GdipCreateMatrix3I(rect: *const Rect, dstplg: *const Point, matrix #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipCreateMetafileFromEmf(hemf: super::Gdi::HENHMETAFILE, deleteemf: bool, metafile: *mut *mut GpMetafile) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipCreateMetafileFromEmf(hemf : super::Gdi:: HENHMETAFILE, deleteemf : super::super::Foundation:: BOOL, metafile : *mut *mut GpMetafile) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipCreateMetafileFromEmf(hemf : super::Gdi:: HENHMETAFILE, deleteemf : windows_core::BOOL, metafile : *mut *mut GpMetafile) -> Status); unsafe { GdipCreateMetafileFromEmf(hemf, deleteemf.into(), metafile as _) } } #[inline] @@ -627,7 +627,7 @@ where #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GdipCreateMetafileFromWmf(hwmf: super::Gdi::HMETAFILE, deletewmf: bool, wmfplaceablefileheader: *const WmfPlaceableFileHeader, metafile: *mut *mut GpMetafile) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipCreateMetafileFromWmf(hwmf : super::Gdi:: HMETAFILE, deletewmf : super::super::Foundation:: BOOL, wmfplaceablefileheader : *const WmfPlaceableFileHeader, metafile : *mut *mut GpMetafile) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipCreateMetafileFromWmf(hwmf : super::Gdi:: HMETAFILE, deletewmf : windows_core::BOOL, wmfplaceablefileheader : *const WmfPlaceableFileHeader, metafile : *mut *mut GpMetafile) -> Status); unsafe { GdipCreateMetafileFromWmf(hwmf, deletewmf.into(), wmfplaceablefileheader, metafile as _) } } #[inline] @@ -1263,8 +1263,8 @@ pub unsafe fn GdipFree(ptr: *mut core::ffi::c_void) { unsafe { GdipFree(ptr as _) } } #[inline] -pub unsafe fn GdipGetAdjustableArrowCapFillState(cap: *mut GpAdjustableArrowCap, fillstate: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipGetAdjustableArrowCapFillState(cap : *mut GpAdjustableArrowCap, fillstate : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipGetAdjustableArrowCapFillState(cap: *mut GpAdjustableArrowCap, fillstate: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipGetAdjustableArrowCapFillState(cap : *mut GpAdjustableArrowCap, fillstate : *mut windows_core::BOOL) -> Status); unsafe { GdipGetAdjustableArrowCapFillState(cap as _, fillstate as _) } } #[inline] @@ -1600,8 +1600,8 @@ pub unsafe fn GdipGetLineColors(brush: *mut GpLineGradient, colors: *mut u32) -> unsafe { GdipGetLineColors(brush as _, colors as _) } } #[inline] -pub unsafe fn GdipGetLineGammaCorrection(brush: *mut GpLineGradient, usegammacorrection: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipGetLineGammaCorrection(brush : *mut GpLineGradient, usegammacorrection : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipGetLineGammaCorrection(brush: *mut GpLineGradient, usegammacorrection: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipGetLineGammaCorrection(brush : *mut GpLineGradient, usegammacorrection : *mut windows_core::BOOL) -> Status); unsafe { GdipGetLineGammaCorrection(brush as _, usegammacorrection as _) } } #[inline] @@ -1753,8 +1753,8 @@ pub unsafe fn GdipGetPathGradientFocusScales(brush: *mut GpPathGradient, xscale: unsafe { GdipGetPathGradientFocusScales(brush as _, xscale as _, yscale as _) } } #[inline] -pub unsafe fn GdipGetPathGradientGammaCorrection(brush: *mut GpPathGradient, usegammacorrection: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipGetPathGradientGammaCorrection(brush : *mut GpPathGradient, usegammacorrection : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipGetPathGradientGammaCorrection(brush: *mut GpPathGradient, usegammacorrection: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipGetPathGradientGammaCorrection(brush : *mut GpPathGradient, usegammacorrection : *mut windows_core::BOOL) -> Status); unsafe { GdipGetPathGradientGammaCorrection(brush as _, usegammacorrection as _) } } #[inline] @@ -2166,7 +2166,7 @@ where } #[inline] pub unsafe fn GdipInitializePalette(palette: *mut ColorPalette, palettetype: PaletteType, optimalcolors: i32, usetransparentcolor: bool, bitmap: *mut GpBitmap) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipInitializePalette(palette : *mut ColorPalette, palettetype : PaletteType, optimalcolors : i32, usetransparentcolor : super::super::Foundation:: BOOL, bitmap : *mut GpBitmap) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipInitializePalette(palette : *mut ColorPalette, palettetype : PaletteType, optimalcolors : i32, usetransparentcolor : windows_core::BOOL, bitmap : *mut GpBitmap) -> Status); unsafe { GdipInitializePalette(palette as _, palettetype, optimalcolors, usetransparentcolor.into(), bitmap as _) } } #[inline] @@ -2175,108 +2175,108 @@ pub unsafe fn GdipInvertMatrix(matrix: *mut Matrix) -> Status { unsafe { GdipInvertMatrix(matrix as _) } } #[inline] -pub unsafe fn GdipIsClipEmpty(graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsClipEmpty(graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsClipEmpty(graphics: *mut GpGraphics, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsClipEmpty(graphics : *mut GpGraphics, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsClipEmpty(graphics as _, result as _) } } #[inline] -pub unsafe fn GdipIsEmptyRegion(region: *mut GpRegion, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsEmptyRegion(region : *mut GpRegion, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsEmptyRegion(region: *mut GpRegion, graphics: *mut GpGraphics, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsEmptyRegion(region : *mut GpRegion, graphics : *mut GpGraphics, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsEmptyRegion(region as _, graphics as _, result as _) } } #[inline] -pub unsafe fn GdipIsEqualRegion(region: *mut GpRegion, region2: *mut GpRegion, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsEqualRegion(region : *mut GpRegion, region2 : *mut GpRegion, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsEqualRegion(region: *mut GpRegion, region2: *mut GpRegion, graphics: *mut GpGraphics, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsEqualRegion(region : *mut GpRegion, region2 : *mut GpRegion, graphics : *mut GpGraphics, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsEqualRegion(region as _, region2 as _, graphics as _, result as _) } } #[inline] -pub unsafe fn GdipIsInfiniteRegion(region: *mut GpRegion, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsInfiniteRegion(region : *mut GpRegion, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsInfiniteRegion(region: *mut GpRegion, graphics: *mut GpGraphics, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsInfiniteRegion(region : *mut GpRegion, graphics : *mut GpGraphics, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsInfiniteRegion(region as _, graphics as _, result as _) } } #[inline] -pub unsafe fn GdipIsMatrixEqual(matrix: *const Matrix, matrix2: *const Matrix, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsMatrixEqual(matrix : *const Matrix, matrix2 : *const Matrix, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsMatrixEqual(matrix: *const Matrix, matrix2: *const Matrix, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsMatrixEqual(matrix : *const Matrix, matrix2 : *const Matrix, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsMatrixEqual(matrix, matrix2, result as _) } } #[inline] -pub unsafe fn GdipIsMatrixIdentity(matrix: *const Matrix, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsMatrixIdentity(matrix : *const Matrix, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsMatrixIdentity(matrix: *const Matrix, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsMatrixIdentity(matrix : *const Matrix, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsMatrixIdentity(matrix, result as _) } } #[inline] -pub unsafe fn GdipIsMatrixInvertible(matrix: *const Matrix, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsMatrixInvertible(matrix : *const Matrix, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsMatrixInvertible(matrix: *const Matrix, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsMatrixInvertible(matrix : *const Matrix, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsMatrixInvertible(matrix, result as _) } } #[inline] -pub unsafe fn GdipIsOutlineVisiblePathPoint(path: *mut GpPath, x: f32, y: f32, pen: *mut GpPen, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsOutlineVisiblePathPoint(path : *mut GpPath, x : f32, y : f32, pen : *mut GpPen, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsOutlineVisiblePathPoint(path: *mut GpPath, x: f32, y: f32, pen: *mut GpPen, graphics: *mut GpGraphics, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsOutlineVisiblePathPoint(path : *mut GpPath, x : f32, y : f32, pen : *mut GpPen, graphics : *mut GpGraphics, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsOutlineVisiblePathPoint(path as _, x, y, pen as _, graphics as _, result as _) } } #[inline] -pub unsafe fn GdipIsOutlineVisiblePathPointI(path: *mut GpPath, x: i32, y: i32, pen: *mut GpPen, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsOutlineVisiblePathPointI(path : *mut GpPath, x : i32, y : i32, pen : *mut GpPen, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsOutlineVisiblePathPointI(path: *mut GpPath, x: i32, y: i32, pen: *mut GpPen, graphics: *mut GpGraphics, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsOutlineVisiblePathPointI(path : *mut GpPath, x : i32, y : i32, pen : *mut GpPen, graphics : *mut GpGraphics, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsOutlineVisiblePathPointI(path as _, x, y, pen as _, graphics as _, result as _) } } #[inline] -pub unsafe fn GdipIsStyleAvailable(family: *const GpFontFamily, style: i32, isstyleavailable: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsStyleAvailable(family : *const GpFontFamily, style : i32, isstyleavailable : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsStyleAvailable(family: *const GpFontFamily, style: i32, isstyleavailable: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsStyleAvailable(family : *const GpFontFamily, style : i32, isstyleavailable : *mut windows_core::BOOL) -> Status); unsafe { GdipIsStyleAvailable(family, style, isstyleavailable as _) } } #[inline] -pub unsafe fn GdipIsVisibleClipEmpty(graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleClipEmpty(graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsVisibleClipEmpty(graphics: *mut GpGraphics, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleClipEmpty(graphics : *mut GpGraphics, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsVisibleClipEmpty(graphics as _, result as _) } } #[inline] -pub unsafe fn GdipIsVisiblePathPoint(path: *mut GpPath, x: f32, y: f32, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisiblePathPoint(path : *mut GpPath, x : f32, y : f32, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsVisiblePathPoint(path: *mut GpPath, x: f32, y: f32, graphics: *mut GpGraphics, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisiblePathPoint(path : *mut GpPath, x : f32, y : f32, graphics : *mut GpGraphics, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsVisiblePathPoint(path as _, x, y, graphics as _, result as _) } } #[inline] -pub unsafe fn GdipIsVisiblePathPointI(path: *mut GpPath, x: i32, y: i32, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisiblePathPointI(path : *mut GpPath, x : i32, y : i32, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsVisiblePathPointI(path: *mut GpPath, x: i32, y: i32, graphics: *mut GpGraphics, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisiblePathPointI(path : *mut GpPath, x : i32, y : i32, graphics : *mut GpGraphics, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsVisiblePathPointI(path as _, x, y, graphics as _, result as _) } } #[inline] -pub unsafe fn GdipIsVisiblePoint(graphics: *mut GpGraphics, x: f32, y: f32, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisiblePoint(graphics : *mut GpGraphics, x : f32, y : f32, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsVisiblePoint(graphics: *mut GpGraphics, x: f32, y: f32, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisiblePoint(graphics : *mut GpGraphics, x : f32, y : f32, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsVisiblePoint(graphics as _, x, y, result as _) } } #[inline] -pub unsafe fn GdipIsVisiblePointI(graphics: *mut GpGraphics, x: i32, y: i32, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisiblePointI(graphics : *mut GpGraphics, x : i32, y : i32, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsVisiblePointI(graphics: *mut GpGraphics, x: i32, y: i32, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisiblePointI(graphics : *mut GpGraphics, x : i32, y : i32, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsVisiblePointI(graphics as _, x, y, result as _) } } #[inline] -pub unsafe fn GdipIsVisibleRect(graphics: *mut GpGraphics, x: f32, y: f32, width: f32, height: f32, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleRect(graphics : *mut GpGraphics, x : f32, y : f32, width : f32, height : f32, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsVisibleRect(graphics: *mut GpGraphics, x: f32, y: f32, width: f32, height: f32, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleRect(graphics : *mut GpGraphics, x : f32, y : f32, width : f32, height : f32, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsVisibleRect(graphics as _, x, y, width, height, result as _) } } #[inline] -pub unsafe fn GdipIsVisibleRectI(graphics: *mut GpGraphics, x: i32, y: i32, width: i32, height: i32, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleRectI(graphics : *mut GpGraphics, x : i32, y : i32, width : i32, height : i32, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsVisibleRectI(graphics: *mut GpGraphics, x: i32, y: i32, width: i32, height: i32, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleRectI(graphics : *mut GpGraphics, x : i32, y : i32, width : i32, height : i32, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsVisibleRectI(graphics as _, x, y, width, height, result as _) } } #[inline] -pub unsafe fn GdipIsVisibleRegionPoint(region: *mut GpRegion, x: f32, y: f32, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleRegionPoint(region : *mut GpRegion, x : f32, y : f32, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsVisibleRegionPoint(region: *mut GpRegion, x: f32, y: f32, graphics: *mut GpGraphics, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleRegionPoint(region : *mut GpRegion, x : f32, y : f32, graphics : *mut GpGraphics, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsVisibleRegionPoint(region as _, x, y, graphics as _, result as _) } } #[inline] -pub unsafe fn GdipIsVisibleRegionPointI(region: *mut GpRegion, x: i32, y: i32, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleRegionPointI(region : *mut GpRegion, x : i32, y : i32, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsVisibleRegionPointI(region: *mut GpRegion, x: i32, y: i32, graphics: *mut GpGraphics, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleRegionPointI(region : *mut GpRegion, x : i32, y : i32, graphics : *mut GpGraphics, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsVisibleRegionPointI(region as _, x, y, graphics as _, result as _) } } #[inline] -pub unsafe fn GdipIsVisibleRegionRect(region: *mut GpRegion, x: f32, y: f32, width: f32, height: f32, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleRegionRect(region : *mut GpRegion, x : f32, y : f32, width : f32, height : f32, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsVisibleRegionRect(region: *mut GpRegion, x: f32, y: f32, width: f32, height: f32, graphics: *mut GpGraphics, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleRegionRect(region : *mut GpRegion, x : f32, y : f32, width : f32, height : f32, graphics : *mut GpGraphics, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsVisibleRegionRect(region as _, x, y, width, height, graphics as _, result as _) } } #[inline] -pub unsafe fn GdipIsVisibleRegionRectI(region: *mut GpRegion, x: i32, y: i32, width: i32, height: i32, graphics: *mut GpGraphics, result: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleRegionRectI(region : *mut GpRegion, x : i32, y : i32, width : i32, height : i32, graphics : *mut GpGraphics, result : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipIsVisibleRegionRectI(region: *mut GpRegion, x: i32, y: i32, width: i32, height: i32, graphics: *mut GpGraphics, result: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipIsVisibleRegionRectI(region : *mut GpRegion, x : i32, y : i32, width : i32, height : i32, graphics : *mut GpGraphics, result : *mut windows_core::BOOL) -> Status); unsafe { GdipIsVisibleRegionRectI(region as _, x, y, width, height, graphics as _, result as _) } } #[inline] @@ -2395,13 +2395,13 @@ pub unsafe fn GdipPathIterGetSubpathCount(iterator: *mut GpPathIterator, count: unsafe { GdipPathIterGetSubpathCount(iterator as _, count as _) } } #[inline] -pub unsafe fn GdipPathIterHasCurve(iterator: *mut GpPathIterator, hascurve: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipPathIterHasCurve(iterator : *mut GpPathIterator, hascurve : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipPathIterHasCurve(iterator: *mut GpPathIterator, hascurve: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipPathIterHasCurve(iterator : *mut GpPathIterator, hascurve : *mut windows_core::BOOL) -> Status); unsafe { GdipPathIterHasCurve(iterator as _, hascurve as _) } } #[inline] -pub unsafe fn GdipPathIterIsValid(iterator: *mut GpPathIterator, valid: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipPathIterIsValid(iterator : *mut GpPathIterator, valid : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipPathIterIsValid(iterator: *mut GpPathIterator, valid: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipPathIterIsValid(iterator : *mut GpPathIterator, valid : *mut windows_core::BOOL) -> Status); unsafe { GdipPathIterIsValid(iterator as _, valid as _) } } #[inline] @@ -2420,13 +2420,13 @@ pub unsafe fn GdipPathIterNextPathType(iterator: *mut GpPathIterator, resultcoun unsafe { GdipPathIterNextPathType(iterator as _, resultcount as _, pathtype as _, startindex as _, endindex as _) } } #[inline] -pub unsafe fn GdipPathIterNextSubpath(iterator: *mut GpPathIterator, resultcount: *mut i32, startindex: *mut i32, endindex: *mut i32, isclosed: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipPathIterNextSubpath(iterator : *mut GpPathIterator, resultcount : *mut i32, startindex : *mut i32, endindex : *mut i32, isclosed : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipPathIterNextSubpath(iterator: *mut GpPathIterator, resultcount: *mut i32, startindex: *mut i32, endindex: *mut i32, isclosed: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipPathIterNextSubpath(iterator : *mut GpPathIterator, resultcount : *mut i32, startindex : *mut i32, endindex : *mut i32, isclosed : *mut windows_core::BOOL) -> Status); unsafe { GdipPathIterNextSubpath(iterator as _, resultcount as _, startindex as _, endindex as _, isclosed as _) } } #[inline] -pub unsafe fn GdipPathIterNextSubpathPath(iterator: *mut GpPathIterator, resultcount: *mut i32, path: *mut GpPath, isclosed: *mut super::super::Foundation::BOOL) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipPathIterNextSubpathPath(iterator : *mut GpPathIterator, resultcount : *mut i32, path : *mut GpPath, isclosed : *mut super::super::Foundation:: BOOL) -> Status); +pub unsafe fn GdipPathIterNextSubpathPath(iterator: *mut GpPathIterator, resultcount: *mut i32, path: *mut GpPath, isclosed: *mut windows_core::BOOL) -> Status { + windows_targets::link!("gdiplus.dll" "system" fn GdipPathIterNextSubpathPath(iterator : *mut GpPathIterator, resultcount : *mut i32, path : *mut GpPath, isclosed : *mut windows_core::BOOL) -> Status); unsafe { GdipPathIterNextSubpathPath(iterator as _, resultcount as _, path as _, isclosed as _) } } #[inline] @@ -2670,7 +2670,7 @@ pub unsafe fn GdipScaleWorldTransform(graphics: *mut GpGraphics, sx: f32, sy: f3 } #[inline] pub unsafe fn GdipSetAdjustableArrowCapFillState(cap: *mut GpAdjustableArrowCap, fillstate: bool) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipSetAdjustableArrowCapFillState(cap : *mut GpAdjustableArrowCap, fillstate : super::super::Foundation:: BOOL) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipSetAdjustableArrowCapFillState(cap : *mut GpAdjustableArrowCap, fillstate : windows_core::BOOL) -> Status); unsafe { GdipSetAdjustableArrowCapFillState(cap as _, fillstate.into()) } } #[inline] @@ -2766,32 +2766,32 @@ pub unsafe fn GdipSetEmpty(region: *mut GpRegion) -> Status { } #[inline] pub unsafe fn GdipSetImageAttributesCachedBackground(imageattr: *mut GpImageAttributes, enableflag: bool) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesCachedBackground(imageattr : *mut GpImageAttributes, enableflag : super::super::Foundation:: BOOL) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesCachedBackground(imageattr : *mut GpImageAttributes, enableflag : windows_core::BOOL) -> Status); unsafe { GdipSetImageAttributesCachedBackground(imageattr as _, enableflag.into()) } } #[inline] pub unsafe fn GdipSetImageAttributesColorKeys(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: bool, colorlow: u32, colorhigh: u32) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesColorKeys(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL, colorlow : u32, colorhigh : u32) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesColorKeys(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : windows_core::BOOL, colorlow : u32, colorhigh : u32) -> Status); unsafe { GdipSetImageAttributesColorKeys(imageattr as _, r#type, enableflag.into(), colorlow, colorhigh) } } #[inline] pub unsafe fn GdipSetImageAttributesColorMatrix(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: bool, colormatrix: *const ColorMatrix, graymatrix: *const ColorMatrix, flags: ColorMatrixFlags) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesColorMatrix(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL, colormatrix : *const ColorMatrix, graymatrix : *const ColorMatrix, flags : ColorMatrixFlags) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesColorMatrix(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : windows_core::BOOL, colormatrix : *const ColorMatrix, graymatrix : *const ColorMatrix, flags : ColorMatrixFlags) -> Status); unsafe { GdipSetImageAttributesColorMatrix(imageattr as _, r#type, enableflag.into(), colormatrix, graymatrix, flags) } } #[inline] pub unsafe fn GdipSetImageAttributesGamma(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: bool, gamma: f32) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesGamma(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL, gamma : f32) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesGamma(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : windows_core::BOOL, gamma : f32) -> Status); unsafe { GdipSetImageAttributesGamma(imageattr as _, r#type, enableflag.into(), gamma) } } #[inline] pub unsafe fn GdipSetImageAttributesNoOp(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: bool) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesNoOp(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesNoOp(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : windows_core::BOOL) -> Status); unsafe { GdipSetImageAttributesNoOp(imageattr as _, r#type, enableflag.into()) } } #[inline] pub unsafe fn GdipSetImageAttributesOutputChannel(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: bool, channelflags: ColorChannelFlags) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesOutputChannel(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL, channelflags : ColorChannelFlags) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesOutputChannel(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : windows_core::BOOL, channelflags : ColorChannelFlags) -> Status); unsafe { GdipSetImageAttributesOutputChannel(imageattr as _, r#type, enableflag.into(), channelflags) } } #[inline] @@ -2799,17 +2799,17 @@ pub unsafe fn GdipSetImageAttributesOutputChannelColorProfile(imageattr: *mu where P3: windows_core::Param, { - windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesOutputChannelColorProfile(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL, colorprofilefilename : windows_core::PCWSTR) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesOutputChannelColorProfile(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : windows_core::BOOL, colorprofilefilename : windows_core::PCWSTR) -> Status); unsafe { GdipSetImageAttributesOutputChannelColorProfile(imageattr as _, r#type, enableflag.into(), colorprofilefilename.param().abi()) } } #[inline] pub unsafe fn GdipSetImageAttributesRemapTable(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: bool, mapsize: u32, map: *const ColorMap) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesRemapTable(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL, mapsize : u32, map : *const ColorMap) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesRemapTable(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : windows_core::BOOL, mapsize : u32, map : *const ColorMap) -> Status); unsafe { GdipSetImageAttributesRemapTable(imageattr as _, r#type, enableflag.into(), mapsize, map) } } #[inline] pub unsafe fn GdipSetImageAttributesThreshold(imageattr: *mut GpImageAttributes, r#type: ColorAdjustType, enableflag: bool, threshold: f32) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesThreshold(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : super::super::Foundation:: BOOL, threshold : f32) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesThreshold(imageattr : *mut GpImageAttributes, r#type : ColorAdjustType, enableflag : windows_core::BOOL, threshold : f32) -> Status); unsafe { GdipSetImageAttributesThreshold(imageattr as _, r#type, enableflag.into(), threshold) } } #[inline] @@ -2819,7 +2819,7 @@ pub unsafe fn GdipSetImageAttributesToIdentity(imageattr: *mut GpImageAttributes } #[inline] pub unsafe fn GdipSetImageAttributesWrapMode(imageattr: *mut GpImageAttributes, wrap: WrapMode, argb: u32, clamp: bool) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesWrapMode(imageattr : *mut GpImageAttributes, wrap : WrapMode, argb : u32, clamp : super::super::Foundation:: BOOL) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipSetImageAttributesWrapMode(imageattr : *mut GpImageAttributes, wrap : WrapMode, argb : u32, clamp : windows_core::BOOL) -> Status); unsafe { GdipSetImageAttributesWrapMode(imageattr as _, wrap, argb, clamp.into()) } } #[inline] @@ -2849,7 +2849,7 @@ pub unsafe fn GdipSetLineColors(brush: *mut GpLineGradient, color1: u32, color2: } #[inline] pub unsafe fn GdipSetLineGammaCorrection(brush: *mut GpLineGradient, usegammacorrection: bool) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipSetLineGammaCorrection(brush : *mut GpLineGradient, usegammacorrection : super::super::Foundation:: BOOL) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipSetLineGammaCorrection(brush : *mut GpLineGradient, usegammacorrection : windows_core::BOOL) -> Status); unsafe { GdipSetLineGammaCorrection(brush as _, usegammacorrection.into()) } } #[inline] @@ -2929,7 +2929,7 @@ pub unsafe fn GdipSetPathGradientFocusScales(brush: *mut GpPathGradient, xscale: } #[inline] pub unsafe fn GdipSetPathGradientGammaCorrection(brush: *mut GpPathGradient, usegammacorrection: bool) -> Status { - windows_targets::link!("gdiplus.dll" "system" fn GdipSetPathGradientGammaCorrection(brush : *mut GpPathGradient, usegammacorrection : super::super::Foundation:: BOOL) -> Status); + windows_targets::link!("gdiplus.dll" "system" fn GdipSetPathGradientGammaCorrection(brush : *mut GpPathGradient, usegammacorrection : windows_core::BOOL) -> Status); unsafe { GdipSetPathGradientGammaCorrection(brush as _, usegammacorrection.into()) } } #[inline] @@ -3347,7 +3347,7 @@ pub const BlurEffectGuid: windows_core::GUID = windows_core::GUID::from_u128(0x6 #[derive(Clone, Copy, Debug, PartialEq)] pub struct BlurParams { pub radius: f32, - pub expandEdge: super::super::Foundation::BOOL, + pub expandEdge: windows_core::BOOL, } impl Default for BlurParams { fn default() -> Self { @@ -3795,7 +3795,7 @@ pub const DitherTypeOrdered8x8: DitherType = DitherType(3i32); pub const DitherTypeSolid: DitherType = DitherType(1i32); pub const DitherTypeSpiral4x4: DitherType = DitherType(5i32); pub const DitherTypeSpiral8x8: DitherType = DitherType(6i32); -pub type DrawImageAbort = Option super::super::Foundation::BOOL>; +pub type DrawImageAbort = Option windows_core::BOOL>; #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct DriverStringOptions(pub i32); @@ -3834,7 +3834,7 @@ pub struct Effect { pub nativeEffect: *mut CGpEffect, pub auxDataSize: i32, pub auxData: *mut core::ffi::c_void, - pub useAuxData: super::super::Foundation::BOOL, + pub useAuxData: windows_core::BOOL, } impl Default for Effect { fn default() -> Self { @@ -4121,7 +4121,7 @@ pub const EncoderValueTransformRotate90: EncoderValue = EncoderValue(13i32); pub const EncoderValueVersionGif87: EncoderValue = EncoderValue(9i32); pub const EncoderValueVersionGif89: EncoderValue = EncoderValue(10i32); pub const EncoderVersion: windows_core::GUID = windows_core::GUID::from_u128(0x24d18c76_814a_41a4_bf53_1c219cccf797); -pub type EnumerateMetafileProc = Option super::super::Foundation::BOOL>; +pub type EnumerateMetafileProc = Option windows_core::BOOL>; pub const FileNotFound: Status = Status(10i32); #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] @@ -4206,8 +4206,8 @@ pub const GdiplusStartupDefault: GdiplusStartupParams = GdiplusStartupParams(0i3 pub struct GdiplusStartupInput { pub GdiplusVersion: u32, pub DebugEventCallback: isize, - pub SuppressBackgroundThread: super::super::Foundation::BOOL, - pub SuppressExternalCodecs: super::super::Foundation::BOOL, + pub SuppressBackgroundThread: windows_core::BOOL, + pub SuppressExternalCodecs: windows_core::BOOL, } impl Default for GdiplusStartupInput { fn default() -> Self { @@ -4249,7 +4249,7 @@ pub struct GenericFontFamily(pub i32); pub const GenericFontFamilyMonospace: GenericFontFamily = GenericFontFamily(2i32); pub const GenericFontFamilySansSerif: GenericFontFamily = GenericFontFamily(1i32); pub const GenericFontFamilySerif: GenericFontFamily = GenericFontFamily(0i32); -pub type GetThumbnailImageAbort = Option super::super::Foundation::BOOL>; +pub type GetThumbnailImageAbort = Option windows_core::BOOL>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct GpAdjustableArrowCap(pub u8); @@ -4605,7 +4605,7 @@ impl windows_core::RuntimeName for IImageBytes {} #[repr(transparent)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Default)] pub struct Image(pub isize); -pub type ImageAbort = Option super::super::Foundation::BOOL>; +pub type ImageAbort = Option windows_core::BOOL>; #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct ImageCodecFlags(pub i32); 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 b3ade0ddc2..a0a5cbcc3d 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/mod.rs @@ -497,31 +497,31 @@ impl IWICBitmapCodecInfo { pub unsafe fn GetFileExtensions(&self, wzfileextensions: &mut [u16], pcchactual: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetFileExtensions)(windows_core::Interface::as_raw(self), wzfileextensions.len().try_into().unwrap(), core::mem::transmute(wzfileextensions.as_ptr()), pcchactual as _).ok() } } - pub unsafe fn DoesSupportAnimation(&self) -> windows_core::Result { + pub unsafe fn DoesSupportAnimation(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DoesSupportAnimation)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn DoesSupportChromakey(&self) -> windows_core::Result { + pub unsafe fn DoesSupportChromakey(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DoesSupportChromakey)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn DoesSupportLossless(&self) -> windows_core::Result { + pub unsafe fn DoesSupportLossless(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DoesSupportLossless)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn DoesSupportMultiframe(&self) -> windows_core::Result { + pub unsafe fn DoesSupportMultiframe(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DoesSupportMultiframe)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MatchesMimeType(&self, wzmimetype: P0) -> windows_core::Result + pub unsafe fn MatchesMimeType(&self, wzmimetype: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -541,11 +541,11 @@ pub struct IWICBitmapCodecInfo_Vtbl { pub GetDeviceModels: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PWSTR, *mut u32) -> windows_core::HRESULT, pub GetMimeTypes: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PWSTR, *mut u32) -> windows_core::HRESULT, pub GetFileExtensions: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PWSTR, *mut u32) -> windows_core::HRESULT, - pub DoesSupportAnimation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub DoesSupportChromakey: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub DoesSupportLossless: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub DoesSupportMultiframe: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MatchesMimeType: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub DoesSupportAnimation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub DoesSupportChromakey: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub DoesSupportLossless: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub DoesSupportMultiframe: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MatchesMimeType: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWICBitmapCodecInfo_Impl: IWICComponentInfo_Impl { fn GetContainerFormat(&self) -> windows_core::Result; @@ -555,11 +555,11 @@ pub trait IWICBitmapCodecInfo_Impl: IWICComponentInfo_Impl { fn GetDeviceModels(&self, cchdevicemodels: u32, wzdevicemodels: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::Result<()>; fn GetMimeTypes(&self, cchmimetypes: u32, wzmimetypes: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::Result<()>; fn GetFileExtensions(&self, cchfileextensions: u32, wzfileextensions: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::Result<()>; - fn DoesSupportAnimation(&self) -> windows_core::Result; - fn DoesSupportChromakey(&self) -> windows_core::Result; - fn DoesSupportLossless(&self) -> windows_core::Result; - fn DoesSupportMultiframe(&self) -> windows_core::Result; - fn MatchesMimeType(&self, wzmimetype: &windows_core::PCWSTR) -> windows_core::Result; + fn DoesSupportAnimation(&self) -> windows_core::Result; + fn DoesSupportChromakey(&self) -> windows_core::Result; + fn DoesSupportLossless(&self) -> windows_core::Result; + fn DoesSupportMultiframe(&self) -> windows_core::Result; + fn MatchesMimeType(&self, wzmimetype: &windows_core::PCWSTR) -> windows_core::Result; } impl IWICBitmapCodecInfo_Vtbl { pub const fn new() -> Self { @@ -611,7 +611,7 @@ impl IWICBitmapCodecInfo_Vtbl { IWICBitmapCodecInfo_Impl::GetFileExtensions(this, core::mem::transmute_copy(&cchfileextensions), core::mem::transmute_copy(&wzfileextensions), core::mem::transmute_copy(&pcchactual)).into() } } - unsafe extern "system" fn DoesSupportAnimation(this: *mut core::ffi::c_void, pfsupportanimation: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DoesSupportAnimation(this: *mut core::ffi::c_void, pfsupportanimation: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapCodecInfo_Impl::DoesSupportAnimation(this) { @@ -623,7 +623,7 @@ impl IWICBitmapCodecInfo_Vtbl { } } } - unsafe extern "system" fn DoesSupportChromakey(this: *mut core::ffi::c_void, pfsupportchromakey: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DoesSupportChromakey(this: *mut core::ffi::c_void, pfsupportchromakey: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapCodecInfo_Impl::DoesSupportChromakey(this) { @@ -635,7 +635,7 @@ impl IWICBitmapCodecInfo_Vtbl { } } } - unsafe extern "system" fn DoesSupportLossless(this: *mut core::ffi::c_void, pfsupportlossless: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DoesSupportLossless(this: *mut core::ffi::c_void, pfsupportlossless: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapCodecInfo_Impl::DoesSupportLossless(this) { @@ -647,7 +647,7 @@ impl IWICBitmapCodecInfo_Vtbl { } } } - unsafe extern "system" fn DoesSupportMultiframe(this: *mut core::ffi::c_void, pfsupportmultiframe: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DoesSupportMultiframe(this: *mut core::ffi::c_void, pfsupportmultiframe: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapCodecInfo_Impl::DoesSupportMultiframe(this) { @@ -659,7 +659,7 @@ impl IWICBitmapCodecInfo_Vtbl { } } } - unsafe extern "system" fn MatchesMimeType(this: *mut core::ffi::c_void, wzmimetype: windows_core::PCWSTR, pfmatches: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MatchesMimeType(this: *mut core::ffi::c_void, wzmimetype: windows_core::PCWSTR, pfmatches: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapCodecInfo_Impl::MatchesMimeType(this, core::mem::transmute(&wzmimetype)) { @@ -980,7 +980,7 @@ impl IWICBitmapDecoderInfo { unsafe { (windows_core::Interface::vtable(self).GetPatterns)(windows_core::Interface::as_raw(self), cbsizepatterns, ppatterns.unwrap_or(core::mem::zeroed()) as _, pcpatterns.unwrap_or(core::mem::zeroed()) as _, pcbpatternsactual as _).ok() } } #[cfg(feature = "Win32_System_Com")] - pub unsafe fn MatchesPattern(&self, pistream: P0) -> windows_core::Result + pub unsafe fn MatchesPattern(&self, pistream: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -1001,7 +1001,7 @@ pub struct IWICBitmapDecoderInfo_Vtbl { pub base__: IWICBitmapCodecInfo_Vtbl, pub GetPatterns: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut WICBitmapPattern, *mut u32, *mut u32) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub MatchesPattern: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MatchesPattern: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] MatchesPattern: usize, pub CreateInstance: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1009,7 +1009,7 @@ pub struct IWICBitmapDecoderInfo_Vtbl { #[cfg(feature = "Win32_System_Com")] pub trait IWICBitmapDecoderInfo_Impl: IWICBitmapCodecInfo_Impl { fn GetPatterns(&self, cbsizepatterns: u32, ppatterns: *mut WICBitmapPattern, pcpatterns: *mut u32, pcbpatternsactual: *mut u32) -> windows_core::Result<()>; - fn MatchesPattern(&self, pistream: windows_core::Ref) -> windows_core::Result; + fn MatchesPattern(&self, pistream: windows_core::Ref) -> windows_core::Result; fn CreateInstance(&self) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] @@ -1021,7 +1021,7 @@ impl IWICBitmapDecoderInfo_Vtbl { IWICBitmapDecoderInfo_Impl::GetPatterns(this, core::mem::transmute_copy(&cbsizepatterns), core::mem::transmute_copy(&ppatterns), core::mem::transmute_copy(&pcpatterns), core::mem::transmute_copy(&pcbpatternsactual)).into() } } - unsafe extern "system" fn MatchesPattern(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, pfmatches: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MatchesPattern(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, pfmatches: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapDecoderInfo_Impl::MatchesPattern(this, core::mem::transmute_copy(&pistream)) { @@ -1826,7 +1826,7 @@ impl IWICBitmapSourceTransform { pub unsafe fn GetClosestPixelFormat(&self, pguiddstformat: *mut windows_core::GUID) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetClosestPixelFormat)(windows_core::Interface::as_raw(self), pguiddstformat as _).ok() } } - pub unsafe fn DoesSupportTransform(&self, dsttransform: WICBitmapTransformOptions) -> windows_core::Result { + pub unsafe fn DoesSupportTransform(&self, dsttransform: WICBitmapTransformOptions) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DoesSupportTransform)(windows_core::Interface::as_raw(self), dsttransform, &mut result__).map(|| result__) @@ -1839,13 +1839,13 @@ pub struct IWICBitmapSourceTransform_Vtbl { pub CopyPixels: unsafe extern "system" fn(*mut core::ffi::c_void, *const WICRect, u32, u32, *const windows_core::GUID, WICBitmapTransformOptions, u32, u32, *mut u8) -> windows_core::HRESULT, pub GetClosestSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32) -> windows_core::HRESULT, pub GetClosestPixelFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - pub DoesSupportTransform: unsafe extern "system" fn(*mut core::ffi::c_void, WICBitmapTransformOptions, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub DoesSupportTransform: unsafe extern "system" fn(*mut core::ffi::c_void, WICBitmapTransformOptions, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWICBitmapSourceTransform_Impl: windows_core::IUnknownImpl { fn CopyPixels(&self, prc: *const WICRect, uiwidth: u32, uiheight: u32, pguiddstformat: *const windows_core::GUID, dsttransform: WICBitmapTransformOptions, nstride: u32, cbbuffersize: u32, pbbuffer: *mut u8) -> windows_core::Result<()>; fn GetClosestSize(&self, puiwidth: *mut u32, puiheight: *mut u32) -> windows_core::Result<()>; fn GetClosestPixelFormat(&self, pguiddstformat: *mut windows_core::GUID) -> windows_core::Result<()>; - fn DoesSupportTransform(&self, dsttransform: WICBitmapTransformOptions) -> windows_core::Result; + fn DoesSupportTransform(&self, dsttransform: WICBitmapTransformOptions) -> windows_core::Result; } impl IWICBitmapSourceTransform_Vtbl { pub const fn new() -> Self { @@ -1867,7 +1867,7 @@ impl IWICBitmapSourceTransform_Vtbl { IWICBitmapSourceTransform_Impl::GetClosestPixelFormat(this, core::mem::transmute_copy(&pguiddstformat)).into() } } - unsafe extern "system" fn DoesSupportTransform(this: *mut core::ffi::c_void, dsttransform: WICBitmapTransformOptions, pfissupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DoesSupportTransform(this: *mut core::ffi::c_void, dsttransform: WICBitmapTransformOptions, pfissupported: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICBitmapSourceTransform_Impl::DoesSupportTransform(this, core::mem::transmute_copy(&dsttransform)) { @@ -3323,7 +3323,7 @@ impl IWICFormatConverter { { unsafe { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), pisource.param().abi(), dstformat, dither, pipalette.param().abi(), alphathresholdpercent, palettetranslate).ok() } } - pub unsafe fn CanConvert(&self, srcpixelformat: *const windows_core::GUID, dstpixelformat: *const windows_core::GUID) -> windows_core::Result { + pub unsafe fn CanConvert(&self, srcpixelformat: *const windows_core::GUID, dstpixelformat: *const windows_core::GUID) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanConvert)(windows_core::Interface::as_raw(self), srcpixelformat, dstpixelformat, &mut result__).map(|| result__) @@ -3334,11 +3334,11 @@ impl IWICFormatConverter { pub struct IWICFormatConverter_Vtbl { pub base__: IWICBitmapSource_Vtbl, pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, WICBitmapDitherType, *mut core::ffi::c_void, f64, WICBitmapPaletteType) -> windows_core::HRESULT, - pub CanConvert: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const windows_core::GUID, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CanConvert: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const windows_core::GUID, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWICFormatConverter_Impl: IWICBitmapSource_Impl { fn Initialize(&self, pisource: windows_core::Ref, dstformat: *const windows_core::GUID, dither: WICBitmapDitherType, pipalette: windows_core::Ref, alphathresholdpercent: f64, palettetranslate: WICBitmapPaletteType) -> windows_core::Result<()>; - fn CanConvert(&self, srcpixelformat: *const windows_core::GUID, dstpixelformat: *const windows_core::GUID) -> windows_core::Result; + fn CanConvert(&self, srcpixelformat: *const windows_core::GUID, dstpixelformat: *const windows_core::GUID) -> windows_core::Result; } impl IWICFormatConverter_Vtbl { pub const fn new() -> Self { @@ -3348,7 +3348,7 @@ impl IWICFormatConverter_Vtbl { IWICFormatConverter_Impl::Initialize(this, core::mem::transmute_copy(&pisource), core::mem::transmute_copy(&dstformat), core::mem::transmute_copy(&dither), core::mem::transmute_copy(&pipalette), core::mem::transmute_copy(&alphathresholdpercent), core::mem::transmute_copy(&palettetranslate)).into() } } - unsafe extern "system" fn CanConvert(this: *mut core::ffi::c_void, srcpixelformat: *const windows_core::GUID, dstpixelformat: *const windows_core::GUID, pfcanconvert: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanConvert(this: *mut core::ffi::c_void, srcpixelformat: *const windows_core::GUID, dstpixelformat: *const windows_core::GUID, pfcanconvert: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICFormatConverter_Impl::CanConvert(this, core::mem::transmute_copy(&srcpixelformat), core::mem::transmute_copy(&dstpixelformat)) { @@ -4020,7 +4020,7 @@ impl windows_core::RuntimeName for IWICImagingFactory {} windows_core::imp::define_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 { + pub unsafe fn DoesSupportIndexing(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DoesSupportIndexing)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4060,7 +4060,7 @@ impl IWICJpegFrameDecode { #[repr(C)] pub struct IWICJpegFrameDecode_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub DoesSupportIndexing: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub DoesSupportIndexing: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetIndexing: unsafe extern "system" fn(*mut core::ffi::c_void, WICJpegIndexingOptions, u32) -> windows_core::HRESULT, pub ClearIndexing: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -4082,7 +4082,7 @@ pub struct IWICJpegFrameDecode_Vtbl { } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub trait IWICJpegFrameDecode_Impl: windows_core::IUnknownImpl { - fn DoesSupportIndexing(&self) -> windows_core::Result; + fn DoesSupportIndexing(&self) -> windows_core::Result; fn SetIndexing(&self, options: WICJpegIndexingOptions, horizontalintervalsize: u32) -> windows_core::Result<()>; fn ClearIndexing(&self) -> windows_core::Result<()>; fn GetAcHuffmanTable(&self, scanindex: u32, tableindex: u32, pachuffmantable: *mut super::Dxgi::Common::DXGI_JPEG_AC_HUFFMAN_TABLE) -> windows_core::Result<()>; @@ -4096,7 +4096,7 @@ pub trait IWICJpegFrameDecode_Impl: windows_core::IUnknownImpl { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl IWICJpegFrameDecode_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn DoesSupportIndexing(this: *mut core::ffi::c_void, pfindexingsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DoesSupportIndexing(this: *mut core::ffi::c_void, pfindexingsupported: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICJpegFrameDecode_Impl::DoesSupportIndexing(this) { @@ -4510,19 +4510,19 @@ impl IWICMetadataHandlerInfo { pub unsafe fn GetDeviceModels(&self, wzdevicemodels: &mut [u16], pcchactual: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetDeviceModels)(windows_core::Interface::as_raw(self), wzdevicemodels.len().try_into().unwrap(), core::mem::transmute(wzdevicemodels.as_ptr()), pcchactual as _).ok() } } - pub unsafe fn DoesRequireFullStream(&self) -> windows_core::Result { + pub unsafe fn DoesRequireFullStream(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DoesRequireFullStream)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn DoesSupportPadding(&self) -> windows_core::Result { + pub unsafe fn DoesSupportPadding(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DoesSupportPadding)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn DoesRequireFixedSize(&self) -> windows_core::Result { + pub unsafe fn DoesRequireFixedSize(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DoesRequireFixedSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4536,18 +4536,18 @@ pub struct IWICMetadataHandlerInfo_Vtbl { pub GetContainerFormats: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::GUID, *mut u32) -> windows_core::HRESULT, pub GetDeviceManufacturer: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PWSTR, *mut u32) -> windows_core::HRESULT, pub GetDeviceModels: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PWSTR, *mut u32) -> windows_core::HRESULT, - pub DoesRequireFullStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub DoesSupportPadding: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub DoesRequireFixedSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub DoesRequireFullStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub DoesSupportPadding: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub DoesRequireFixedSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWICMetadataHandlerInfo_Impl: IWICComponentInfo_Impl { fn GetMetadataFormat(&self) -> windows_core::Result; fn GetContainerFormats(&self, ccontainerformats: u32, pguidcontainerformats: *mut windows_core::GUID, pcchactual: *mut u32) -> windows_core::Result<()>; fn GetDeviceManufacturer(&self, cchdevicemanufacturer: u32, wzdevicemanufacturer: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::Result<()>; fn GetDeviceModels(&self, cchdevicemodels: u32, wzdevicemodels: windows_core::PWSTR, pcchactual: *mut u32) -> windows_core::Result<()>; - fn DoesRequireFullStream(&self) -> windows_core::Result; - fn DoesSupportPadding(&self) -> windows_core::Result; - fn DoesRequireFixedSize(&self) -> windows_core::Result; + fn DoesRequireFullStream(&self) -> windows_core::Result; + fn DoesSupportPadding(&self) -> windows_core::Result; + fn DoesRequireFixedSize(&self) -> windows_core::Result; } impl IWICMetadataHandlerInfo_Vtbl { pub const fn new() -> Self { @@ -4581,7 +4581,7 @@ impl IWICMetadataHandlerInfo_Vtbl { IWICMetadataHandlerInfo_Impl::GetDeviceModels(this, core::mem::transmute_copy(&cchdevicemodels), core::mem::transmute_copy(&wzdevicemodels), core::mem::transmute_copy(&pcchactual)).into() } } - unsafe extern "system" fn DoesRequireFullStream(this: *mut core::ffi::c_void, pfrequiresfullstream: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DoesRequireFullStream(this: *mut core::ffi::c_void, pfrequiresfullstream: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataHandlerInfo_Impl::DoesRequireFullStream(this) { @@ -4593,7 +4593,7 @@ impl IWICMetadataHandlerInfo_Vtbl { } } } - unsafe extern "system" fn DoesSupportPadding(this: *mut core::ffi::c_void, pfsupportspadding: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DoesSupportPadding(this: *mut core::ffi::c_void, pfsupportspadding: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataHandlerInfo_Impl::DoesSupportPadding(this) { @@ -4605,7 +4605,7 @@ impl IWICMetadataHandlerInfo_Vtbl { } } } - unsafe extern "system" fn DoesRequireFixedSize(this: *mut core::ffi::c_void, pffixedsize: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DoesRequireFixedSize(this: *mut core::ffi::c_void, pffixedsize: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataHandlerInfo_Impl::DoesRequireFixedSize(this) { @@ -4951,7 +4951,7 @@ impl IWICMetadataReaderInfo { unsafe { (windows_core::Interface::vtable(self).GetPatterns)(windows_core::Interface::as_raw(self), guidcontainerformat, cbsize, ppattern.unwrap_or(core::mem::zeroed()) as _, pccount.unwrap_or(core::mem::zeroed()) as _, pcbactual.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_System_Com")] - pub unsafe fn MatchesPattern(&self, guidcontainerformat: *const windows_core::GUID, pistream: P1) -> windows_core::Result + pub unsafe fn MatchesPattern(&self, guidcontainerformat: *const windows_core::GUID, pistream: P1) -> windows_core::Result where P1: windows_core::Param, { @@ -4972,7 +4972,7 @@ pub struct IWICMetadataReaderInfo_Vtbl { pub base__: IWICMetadataHandlerInfo_Vtbl, pub GetPatterns: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u32, *mut WICMetadataPattern, *mut u32, *mut u32) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub MatchesPattern: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MatchesPattern: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] MatchesPattern: usize, pub CreateInstance: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -4980,7 +4980,7 @@ pub struct IWICMetadataReaderInfo_Vtbl { #[cfg(feature = "Win32_System_Com")] pub trait IWICMetadataReaderInfo_Impl: IWICMetadataHandlerInfo_Impl { fn GetPatterns(&self, guidcontainerformat: *const windows_core::GUID, cbsize: u32, ppattern: *mut WICMetadataPattern, pccount: *mut u32, pcbactual: *mut u32) -> windows_core::Result<()>; - fn MatchesPattern(&self, guidcontainerformat: *const windows_core::GUID, pistream: windows_core::Ref) -> windows_core::Result; + fn MatchesPattern(&self, guidcontainerformat: *const windows_core::GUID, pistream: windows_core::Ref) -> windows_core::Result; fn CreateInstance(&self) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] @@ -4992,7 +4992,7 @@ impl IWICMetadataReaderInfo_Vtbl { IWICMetadataReaderInfo_Impl::GetPatterns(this, core::mem::transmute_copy(&guidcontainerformat), core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&ppattern), core::mem::transmute_copy(&pccount), core::mem::transmute_copy(&pcbactual)).into() } } - unsafe extern "system" fn MatchesPattern(this: *mut core::ffi::c_void, guidcontainerformat: *const windows_core::GUID, pistream: *mut core::ffi::c_void, pfmatches: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MatchesPattern(this: *mut core::ffi::c_void, guidcontainerformat: *const windows_core::GUID, pistream: *mut core::ffi::c_void, pfmatches: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICMetadataReaderInfo_Impl::MatchesPattern(this, core::mem::transmute_copy(&guidcontainerformat), core::mem::transmute_copy(&pistream)) { @@ -5215,19 +5215,19 @@ impl IWICPalette { pub unsafe fn GetColors(&self, pcolors: &mut [u32], pcactualcolors: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetColors)(windows_core::Interface::as_raw(self), pcolors.len().try_into().unwrap(), core::mem::transmute(pcolors.as_ptr()), pcactualcolors as _).ok() } } - pub unsafe fn IsBlackWhite(&self) -> windows_core::Result { + pub unsafe fn IsBlackWhite(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsBlackWhite)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsGrayscale(&self) -> windows_core::Result { + pub unsafe fn IsGrayscale(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsGrayscale)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn HasAlpha(&self) -> windows_core::Result { + pub unsafe fn HasAlpha(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HasAlpha)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -5237,32 +5237,32 @@ impl IWICPalette { #[repr(C)] pub struct IWICPalette_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub InitializePredefined: unsafe extern "system" fn(*mut core::ffi::c_void, WICBitmapPaletteType, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub InitializePredefined: unsafe extern "system" fn(*mut core::ffi::c_void, WICBitmapPaletteType, windows_core::BOOL) -> windows_core::HRESULT, pub InitializeCustom: unsafe extern "system" fn(*mut core::ffi::c_void, *const u32, u32) -> windows_core::HRESULT, - pub InitializeFromBitmap: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub InitializeFromBitmap: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, pub InitializeFromPalette: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WICBitmapPaletteType) -> windows_core::HRESULT, pub GetColorCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetColors: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32, *mut u32) -> windows_core::HRESULT, - pub IsBlackWhite: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsGrayscale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub HasAlpha: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsBlackWhite: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsGrayscale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub HasAlpha: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWICPalette_Impl: windows_core::IUnknownImpl { - fn InitializePredefined(&self, epalettetype: WICBitmapPaletteType, faddtransparentcolor: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn InitializePredefined(&self, epalettetype: WICBitmapPaletteType, faddtransparentcolor: windows_core::BOOL) -> windows_core::Result<()>; fn InitializeCustom(&self, pcolors: *const u32, ccount: u32) -> windows_core::Result<()>; - fn InitializeFromBitmap(&self, pisurface: windows_core::Ref, ccount: u32, faddtransparentcolor: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn InitializeFromBitmap(&self, pisurface: windows_core::Ref, ccount: u32, faddtransparentcolor: windows_core::BOOL) -> windows_core::Result<()>; fn InitializeFromPalette(&self, pipalette: windows_core::Ref) -> windows_core::Result<()>; fn GetType(&self) -> windows_core::Result; fn GetColorCount(&self) -> windows_core::Result; fn GetColors(&self, ccount: u32, pcolors: *mut u32, pcactualcolors: *mut u32) -> windows_core::Result<()>; - fn IsBlackWhite(&self) -> windows_core::Result; - fn IsGrayscale(&self) -> windows_core::Result; - fn HasAlpha(&self) -> windows_core::Result; + fn IsBlackWhite(&self) -> windows_core::Result; + fn IsGrayscale(&self) -> windows_core::Result; + fn HasAlpha(&self) -> windows_core::Result; } impl IWICPalette_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn InitializePredefined(this: *mut core::ffi::c_void, epalettetype: WICBitmapPaletteType, faddtransparentcolor: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn InitializePredefined(this: *mut core::ffi::c_void, epalettetype: WICBitmapPaletteType, faddtransparentcolor: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICPalette_Impl::InitializePredefined(this, core::mem::transmute_copy(&epalettetype), core::mem::transmute_copy(&faddtransparentcolor)).into() @@ -5274,7 +5274,7 @@ impl IWICPalette_Vtbl { IWICPalette_Impl::InitializeCustom(this, core::mem::transmute_copy(&pcolors), core::mem::transmute_copy(&ccount)).into() } } - unsafe extern "system" fn InitializeFromBitmap(this: *mut core::ffi::c_void, pisurface: *mut core::ffi::c_void, ccount: u32, faddtransparentcolor: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn InitializeFromBitmap(this: *mut core::ffi::c_void, pisurface: *mut core::ffi::c_void, ccount: u32, faddtransparentcolor: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICPalette_Impl::InitializeFromBitmap(this, core::mem::transmute_copy(&pisurface), core::mem::transmute_copy(&ccount), core::mem::transmute_copy(&faddtransparentcolor)).into() @@ -5316,7 +5316,7 @@ impl IWICPalette_Vtbl { IWICPalette_Impl::GetColors(this, core::mem::transmute_copy(&ccount), core::mem::transmute_copy(&pcolors), core::mem::transmute_copy(&pcactualcolors)).into() } } - unsafe extern "system" fn IsBlackWhite(this: *mut core::ffi::c_void, pfisblackwhite: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsBlackWhite(this: *mut core::ffi::c_void, pfisblackwhite: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICPalette_Impl::IsBlackWhite(this) { @@ -5328,7 +5328,7 @@ impl IWICPalette_Vtbl { } } } - unsafe extern "system" fn IsGrayscale(this: *mut core::ffi::c_void, pfisgrayscale: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsGrayscale(this: *mut core::ffi::c_void, pfisgrayscale: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICPalette_Impl::IsGrayscale(this) { @@ -5340,7 +5340,7 @@ impl IWICPalette_Vtbl { } } } - unsafe extern "system" fn HasAlpha(this: *mut core::ffi::c_void, pfhasalpha: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn HasAlpha(this: *mut core::ffi::c_void, pfhasalpha: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICPalette_Impl::HasAlpha(this) { @@ -5402,12 +5402,12 @@ impl IWICPersistStream { pub struct IWICPersistStream_Vtbl { pub base__: super::super::System::Com::IPersistStream_Vtbl, pub LoadEx: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, u32) -> windows_core::HRESULT, - pub SaveEx: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SaveEx: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait IWICPersistStream_Impl: super::super::System::Com::IPersistStream_Impl { fn LoadEx(&self, pistream: windows_core::Ref, pguidpreferredvendor: *const windows_core::GUID, dwpersistoptions: u32) -> windows_core::Result<()>; - fn SaveEx(&self, pistream: windows_core::Ref, dwpersistoptions: u32, fcleardirty: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SaveEx(&self, pistream: windows_core::Ref, dwpersistoptions: u32, fcleardirty: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl IWICPersistStream_Vtbl { @@ -5418,7 +5418,7 @@ impl IWICPersistStream_Vtbl { IWICPersistStream_Impl::LoadEx(this, core::mem::transmute_copy(&pistream), core::mem::transmute_copy(&pguidpreferredvendor), core::mem::transmute_copy(&dwpersistoptions)).into() } } - unsafe extern "system" fn SaveEx(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, dwpersistoptions: u32, fcleardirty: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SaveEx(this: *mut core::ffi::c_void, pistream: *mut core::ffi::c_void, dwpersistoptions: u32, fcleardirty: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICPersistStream_Impl::SaveEx(this, core::mem::transmute_copy(&pistream), core::mem::transmute_copy(&dwpersistoptions), core::mem::transmute_copy(&fcleardirty)).into() @@ -5568,7 +5568,7 @@ impl core::ops::Deref for IWICPixelFormatInfo2 { } windows_core::imp::interface_hierarchy!(IWICPixelFormatInfo2, windows_core::IUnknown, IWICComponentInfo, IWICPixelFormatInfo); impl IWICPixelFormatInfo2 { - pub unsafe fn SupportsTransparency(&self) -> windows_core::Result { + pub unsafe fn SupportsTransparency(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SupportsTransparency)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -5584,16 +5584,16 @@ impl IWICPixelFormatInfo2 { #[repr(C)] pub struct IWICPixelFormatInfo2_Vtbl { pub base__: IWICPixelFormatInfo_Vtbl, - pub SupportsTransparency: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SupportsTransparency: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetNumericRepresentation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WICPixelFormatNumericRepresentation) -> windows_core::HRESULT, } pub trait IWICPixelFormatInfo2_Impl: IWICPixelFormatInfo_Impl { - fn SupportsTransparency(&self) -> windows_core::Result; + fn SupportsTransparency(&self) -> windows_core::Result; fn GetNumericRepresentation(&self) -> windows_core::Result; } impl IWICPixelFormatInfo2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SupportsTransparency(this: *mut core::ffi::c_void, pfsupportstransparency: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SupportsTransparency(this: *mut core::ffi::c_void, pfsupportstransparency: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICPixelFormatInfo2_Impl::SupportsTransparency(this) { @@ -5676,7 +5676,7 @@ impl windows_core::RuntimeName for IWICPlanarBitmapFrameEncode {} windows_core::imp::define_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<()> { + 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 windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).DoesSupportTransform)(windows_core::Interface::as_raw(self), puiwidth as _, puiheight as _, dsttransform, dstplanaroptions, pguiddstformats, pplanedescriptions as _, cplanes, pfissupported as _).ok() } } pub unsafe fn CopyPixels(&self, prcsource: *const WICRect, uiwidth: u32, uiheight: u32, dsttransform: WICBitmapTransformOptions, dstplanaroptions: WICPlanarOptions, pdstplanes: &[WICBitmapPlane]) -> windows_core::Result<()> { @@ -5686,16 +5686,16 @@ impl IWICPlanarBitmapSourceTransform { #[repr(C)] pub struct IWICPlanarBitmapSourceTransform_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub DoesSupportTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32, WICBitmapTransformOptions, WICPlanarOptions, *const windows_core::GUID, *mut WICBitmapPlaneDescription, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub DoesSupportTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32, WICBitmapTransformOptions, WICPlanarOptions, *const windows_core::GUID, *mut WICBitmapPlaneDescription, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CopyPixels: unsafe extern "system" fn(*mut core::ffi::c_void, *const WICRect, u32, u32, WICBitmapTransformOptions, WICPlanarOptions, *const WICBitmapPlane, u32) -> windows_core::HRESULT, } pub trait IWICPlanarBitmapSourceTransform_Impl: windows_core::IUnknownImpl { - fn DoesSupportTransform(&self, puiwidth: *mut u32, puiheight: *mut u32, dsttransform: WICBitmapTransformOptions, dstplanaroptions: WICPlanarOptions, pguiddstformats: *const windows_core::GUID, pplanedescriptions: *mut WICBitmapPlaneDescription, cplanes: u32, pfissupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn DoesSupportTransform(&self, puiwidth: *mut u32, puiheight: *mut u32, dsttransform: WICBitmapTransformOptions, dstplanaroptions: WICPlanarOptions, pguiddstformats: *const windows_core::GUID, pplanedescriptions: *mut WICBitmapPlaneDescription, cplanes: u32, pfissupported: *mut windows_core::BOOL) -> windows_core::Result<()>; fn CopyPixels(&self, prcsource: *const WICRect, uiwidth: u32, uiheight: u32, dsttransform: WICBitmapTransformOptions, dstplanaroptions: WICPlanarOptions, pdstplanes: *const WICBitmapPlane, cplanes: u32) -> windows_core::Result<()>; } impl IWICPlanarBitmapSourceTransform_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn DoesSupportTransform(this: *mut core::ffi::c_void, puiwidth: *mut u32, puiheight: *mut u32, dsttransform: WICBitmapTransformOptions, dstplanaroptions: WICPlanarOptions, pguiddstformats: *const windows_core::GUID, pplanedescriptions: *mut WICBitmapPlaneDescription, cplanes: u32, pfissupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DoesSupportTransform(this: *mut core::ffi::c_void, puiwidth: *mut u32, puiheight: *mut u32, dsttransform: WICBitmapTransformOptions, dstplanaroptions: WICPlanarOptions, pguiddstformats: *const windows_core::GUID, pplanedescriptions: *mut WICBitmapPlaneDescription, cplanes: u32, pfissupported: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWICPlanarBitmapSourceTransform_Impl::DoesSupportTransform(this, core::mem::transmute_copy(&puiwidth), core::mem::transmute_copy(&puiheight), core::mem::transmute_copy(&dsttransform), core::mem::transmute_copy(&dstplanaroptions), core::mem::transmute_copy(&pguiddstformats), core::mem::transmute_copy(&pplanedescriptions), core::mem::transmute_copy(&cplanes), core::mem::transmute_copy(&pfissupported)).into() @@ -5733,7 +5733,7 @@ impl IWICPlanarFormatConverter { { unsafe { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), core::mem::transmute(ppplanes.as_ptr()), ppplanes.len().try_into().unwrap(), dstformat, dither, pipalette.param().abi(), alphathresholdpercent, palettetranslate).ok() } } - pub unsafe fn CanConvert(&self, psrcpixelformats: &[windows_core::GUID], dstpixelformat: *const windows_core::GUID) -> windows_core::Result { + pub unsafe fn CanConvert(&self, psrcpixelformats: &[windows_core::GUID], dstpixelformat: *const windows_core::GUID) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanConvert)(windows_core::Interface::as_raw(self), core::mem::transmute(psrcpixelformats.as_ptr()), psrcpixelformats.len().try_into().unwrap(), dstpixelformat, &mut result__).map(|| result__) @@ -5744,11 +5744,11 @@ impl IWICPlanarFormatConverter { pub struct IWICPlanarFormatConverter_Vtbl { pub base__: IWICBitmapSource_Vtbl, pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, *const *mut core::ffi::c_void, u32, *const windows_core::GUID, WICBitmapDitherType, *mut core::ffi::c_void, f64, WICBitmapPaletteType) -> windows_core::HRESULT, - pub CanConvert: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u32, *const windows_core::GUID, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CanConvert: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u32, *const windows_core::GUID, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWICPlanarFormatConverter_Impl: IWICBitmapSource_Impl { fn Initialize(&self, ppplanes: *const Option, cplanes: u32, dstformat: *const windows_core::GUID, dither: WICBitmapDitherType, pipalette: windows_core::Ref, alphathresholdpercent: f64, palettetranslate: WICBitmapPaletteType) -> windows_core::Result<()>; - fn CanConvert(&self, psrcpixelformats: *const windows_core::GUID, csrcplanes: u32, dstpixelformat: *const windows_core::GUID) -> windows_core::Result; + fn CanConvert(&self, psrcpixelformats: *const windows_core::GUID, csrcplanes: u32, dstpixelformat: *const windows_core::GUID) -> windows_core::Result; } impl IWICPlanarFormatConverter_Vtbl { pub const fn new() -> Self { @@ -5758,7 +5758,7 @@ impl IWICPlanarFormatConverter_Vtbl { IWICPlanarFormatConverter_Impl::Initialize(this, core::mem::transmute_copy(&ppplanes), core::mem::transmute_copy(&cplanes), core::mem::transmute_copy(&dstformat), core::mem::transmute_copy(&dither), core::mem::transmute_copy(&pipalette), core::mem::transmute_copy(&alphathresholdpercent), core::mem::transmute_copy(&palettetranslate)).into() } } - unsafe extern "system" fn CanConvert(this: *mut core::ffi::c_void, psrcpixelformats: *const windows_core::GUID, csrcplanes: u32, dstpixelformat: *const windows_core::GUID, pfcanconvert: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanConvert(this: *mut core::ffi::c_void, psrcpixelformats: *const windows_core::GUID, csrcplanes: u32, dstpixelformat: *const windows_core::GUID, pfcanconvert: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWICPlanarFormatConverter_Impl::CanConvert(this, core::mem::transmute_copy(&psrcpixelformats), core::mem::transmute_copy(&csrcplanes), core::mem::transmute_copy(&dstpixelformat)) { @@ -6175,7 +6175,7 @@ pub struct WICBitmapPattern { pub Length: u32, pub Pattern: *mut u8, pub Mask: *mut u8, - pub EndOfStream: super::super::Foundation::BOOL, + pub EndOfStream: windows_core::BOOL, } impl Default for WICBitmapPattern { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/OpenGL/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/OpenGL/mod.rs index 618f0fe11a..b27b1d53ff 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/OpenGL/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/OpenGL/mod.rs @@ -25,13 +25,13 @@ pub unsafe fn GetPixelFormat(hdc: super::Gdi::HDC) -> i32 { #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetPixelFormat(hdc: super::Gdi::HDC, format: i32, ppfd: *const PIXELFORMATDESCRIPTOR) -> windows_core::Result<()> { - windows_targets::link!("gdi32.dll" "system" fn SetPixelFormat(hdc : super::Gdi:: HDC, format : i32, ppfd : *const PIXELFORMATDESCRIPTOR) -> super::super::Foundation:: BOOL); + windows_targets::link!("gdi32.dll" "system" fn SetPixelFormat(hdc : super::Gdi:: HDC, format : i32, ppfd : *const PIXELFORMATDESCRIPTOR) -> windows_core::BOOL); unsafe { SetPixelFormat(hdc, format, ppfd).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SwapBuffers(param0: super::Gdi::HDC) -> windows_core::Result<()> { - windows_targets::link!("gdi32.dll" "system" fn SwapBuffers(param0 : super::Gdi:: HDC) -> super::super::Foundation:: BOOL); + windows_targets::link!("gdi32.dll" "system" fn SwapBuffers(param0 : super::Gdi:: HDC) -> windows_core::BOOL); unsafe { SwapBuffers(param0).ok() } } #[inline] @@ -1976,7 +1976,7 @@ pub unsafe fn gluUnProject(winx: f64, winy: f64, winz: f64, modelmatrix: *const } #[inline] pub unsafe fn wglCopyContext(param0: HGLRC, param1: HGLRC, param2: u32) -> windows_core::Result<()> { - windows_targets::link!("opengl32.dll" "system" fn wglCopyContext(param0 : HGLRC, param1 : HGLRC, param2 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("opengl32.dll" "system" fn wglCopyContext(param0 : HGLRC, param1 : HGLRC, param2 : u32) -> windows_core::BOOL); unsafe { wglCopyContext(param0, param1, param2).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -1995,13 +1995,13 @@ pub unsafe fn wglCreateLayerContext(param0: super::Gdi::HDC, param1: i32) -> win } #[inline] pub unsafe fn wglDeleteContext(param0: HGLRC) -> windows_core::Result<()> { - windows_targets::link!("opengl32.dll" "system" fn wglDeleteContext(param0 : HGLRC) -> super::super::Foundation:: BOOL); + windows_targets::link!("opengl32.dll" "system" fn wglDeleteContext(param0 : HGLRC) -> windows_core::BOOL); unsafe { wglDeleteContext(param0).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn wglDescribeLayerPlane(param0: super::Gdi::HDC, param1: i32, param2: i32, param3: u32, param4: *mut LAYERPLANEDESCRIPTOR) -> super::super::Foundation::BOOL { - windows_targets::link!("opengl32.dll" "system" fn wglDescribeLayerPlane(param0 : super::Gdi:: HDC, param1 : i32, param2 : i32, param3 : u32, param4 : *mut LAYERPLANEDESCRIPTOR) -> super::super::Foundation:: BOOL); +pub unsafe fn wglDescribeLayerPlane(param0: super::Gdi::HDC, param1: i32, param2: i32, param3: u32, param4: *mut LAYERPLANEDESCRIPTOR) -> windows_core::BOOL { + windows_targets::link!("opengl32.dll" "system" fn wglDescribeLayerPlane(param0 : super::Gdi:: HDC, param1 : i32, param2 : i32, param3 : u32, param4 : *mut LAYERPLANEDESCRIPTOR) -> windows_core::BOOL); unsafe { wglDescribeLayerPlane(param0, param1, param2, param3, param4 as _) } } #[inline] @@ -2032,13 +2032,13 @@ where #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglMakeCurrent(param0: super::Gdi::HDC, param1: HGLRC) -> windows_core::Result<()> { - windows_targets::link!("opengl32.dll" "system" fn wglMakeCurrent(param0 : super::Gdi:: HDC, param1 : HGLRC) -> super::super::Foundation:: BOOL); + windows_targets::link!("opengl32.dll" "system" fn wglMakeCurrent(param0 : super::Gdi:: HDC, param1 : HGLRC) -> windows_core::BOOL); unsafe { wglMakeCurrent(param0, param1).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglRealizeLayerPalette(param0: super::Gdi::HDC, param1: i32, param2: bool) -> windows_core::Result<()> { - windows_targets::link!("opengl32.dll" "system" fn wglRealizeLayerPalette(param0 : super::Gdi:: HDC, param1 : i32, param2 : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("opengl32.dll" "system" fn wglRealizeLayerPalette(param0 : super::Gdi:: HDC, param1 : i32, param2 : windows_core::BOOL) -> windows_core::BOOL); unsafe { wglRealizeLayerPalette(param0, param1, param2.into()).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -2049,37 +2049,37 @@ pub unsafe fn wglSetLayerPaletteEntries(param0: super::Gdi::HDC, param1: i32, pa } #[inline] pub unsafe fn wglShareLists(param0: HGLRC, param1: HGLRC) -> windows_core::Result<()> { - windows_targets::link!("opengl32.dll" "system" fn wglShareLists(param0 : HGLRC, param1 : HGLRC) -> super::super::Foundation:: BOOL); + windows_targets::link!("opengl32.dll" "system" fn wglShareLists(param0 : HGLRC, param1 : HGLRC) -> windows_core::BOOL); unsafe { wglShareLists(param0, param1).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglSwapLayerBuffers(param0: super::Gdi::HDC, param1: u32) -> windows_core::Result<()> { - windows_targets::link!("opengl32.dll" "system" fn wglSwapLayerBuffers(param0 : super::Gdi:: HDC, param1 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("opengl32.dll" "system" fn wglSwapLayerBuffers(param0 : super::Gdi:: HDC, param1 : u32) -> windows_core::BOOL); unsafe { wglSwapLayerBuffers(param0, param1).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglUseFontBitmapsA(param0: super::Gdi::HDC, param1: u32, param2: u32, param3: u32) -> windows_core::Result<()> { - windows_targets::link!("opengl32.dll" "system" fn wglUseFontBitmapsA(param0 : super::Gdi:: HDC, param1 : u32, param2 : u32, param3 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("opengl32.dll" "system" fn wglUseFontBitmapsA(param0 : super::Gdi:: HDC, param1 : u32, param2 : u32, param3 : u32) -> windows_core::BOOL); unsafe { wglUseFontBitmapsA(param0, param1, param2, param3).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglUseFontBitmapsW(param0: super::Gdi::HDC, param1: u32, param2: u32, param3: u32) -> windows_core::Result<()> { - windows_targets::link!("opengl32.dll" "system" fn wglUseFontBitmapsW(param0 : super::Gdi:: HDC, param1 : u32, param2 : u32, param3 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("opengl32.dll" "system" fn wglUseFontBitmapsW(param0 : super::Gdi:: HDC, param1 : u32, param2 : u32, param3 : u32) -> windows_core::BOOL); unsafe { wglUseFontBitmapsW(param0, param1, param2, param3).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglUseFontOutlinesA(param0: super::Gdi::HDC, param1: u32, param2: u32, param3: u32, param4: f32, param5: f32, param6: i32, param7: *mut GLYPHMETRICSFLOAT) -> windows_core::Result<()> { - windows_targets::link!("opengl32.dll" "system" fn wglUseFontOutlinesA(param0 : super::Gdi:: HDC, param1 : u32, param2 : u32, param3 : u32, param4 : f32, param5 : f32, param6 : i32, param7 : *mut GLYPHMETRICSFLOAT) -> super::super::Foundation:: BOOL); + windows_targets::link!("opengl32.dll" "system" fn wglUseFontOutlinesA(param0 : super::Gdi:: HDC, param1 : u32, param2 : u32, param3 : u32, param4 : f32, param5 : f32, param6 : i32, param7 : *mut GLYPHMETRICSFLOAT) -> windows_core::BOOL); unsafe { wglUseFontOutlinesA(param0, param1, param2, param3, param4, param5, param6, param7 as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn wglUseFontOutlinesW(param0: super::Gdi::HDC, param1: u32, param2: u32, param3: u32, param4: f32, param5: f32, param6: i32, param7: *mut GLYPHMETRICSFLOAT) -> windows_core::Result<()> { - windows_targets::link!("opengl32.dll" "system" fn wglUseFontOutlinesW(param0 : super::Gdi:: HDC, param1 : u32, param2 : u32, param3 : u32, param4 : f32, param5 : f32, param6 : i32, param7 : *mut GLYPHMETRICSFLOAT) -> super::super::Foundation:: BOOL); + windows_targets::link!("opengl32.dll" "system" fn wglUseFontOutlinesW(param0 : super::Gdi:: HDC, param1 : u32, param2 : u32, param3 : u32, param4 : f32, param5 : f32, param6 : i32, param7 : *mut GLYPHMETRICSFLOAT) -> windows_core::BOOL); unsafe { wglUseFontOutlinesW(param0, param1, param2, param3, param4, param5, param6, param7 as _).ok() } } #[repr(C)] 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 cece9ce295..c47d82cef2 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs @@ -1,28 +1,28 @@ #[cfg(feature = "Win32_Graphics_Printing_PrintTicket")] pub mod PrintTicket; #[inline] -pub unsafe fn AbortPrinter(hprinter: PRINTER_HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn AbortPrinter(hprinter : PRINTER_HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn AbortPrinter(hprinter: PRINTER_HANDLE) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn AbortPrinter(hprinter : PRINTER_HANDLE) -> windows_core::BOOL); unsafe { AbortPrinter(core::mem::transmute(hprinter)) } } #[inline] -pub unsafe fn AddFormA(hprinter: PRINTER_HANDLE, level: u32, pform: *const u8) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn AddFormA(hprinter : PRINTER_HANDLE, level : u32, pform : *const u8) -> super::super::Foundation:: BOOL); +pub unsafe fn AddFormA(hprinter: PRINTER_HANDLE, level: u32, pform: *const u8) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn AddFormA(hprinter : PRINTER_HANDLE, level : u32, pform : *const u8) -> windows_core::BOOL); unsafe { AddFormA(core::mem::transmute(hprinter), level, pform) } } #[inline] -pub unsafe fn AddFormW(hprinter: PRINTER_HANDLE, level: u32, pform: *const u8) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn AddFormW(hprinter : PRINTER_HANDLE, level : u32, pform : *const u8) -> super::super::Foundation:: BOOL); +pub unsafe fn AddFormW(hprinter: PRINTER_HANDLE, level: u32, pform: *const u8) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn AddFormW(hprinter : PRINTER_HANDLE, level : u32, pform : *const u8) -> windows_core::BOOL); unsafe { AddFormW(core::mem::transmute(hprinter), level, pform) } } #[inline] -pub unsafe fn AddJobA(hprinter: PRINTER_HANDLE, level: u32, pdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn AddJobA(hprinter : PRINTER_HANDLE, level : u32, pdata : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn AddJobA(hprinter: PRINTER_HANDLE, level: u32, pdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn AddJobA(hprinter : PRINTER_HANDLE, level : u32, pdata : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> windows_core::BOOL); unsafe { AddJobA(core::mem::transmute(hprinter), level, core::mem::transmute(pdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _) } } #[inline] -pub unsafe fn AddJobW(hprinter: PRINTER_HANDLE, level: u32, pdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn AddJobW(hprinter : PRINTER_HANDLE, level : u32, pdata : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn AddJobW(hprinter: PRINTER_HANDLE, level: u32, pdata: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn AddJobW(hprinter : PRINTER_HANDLE, level : u32, pdata : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> windows_core::BOOL); unsafe { AddJobW(core::mem::transmute(hprinter), level, core::mem::transmute(pdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _) } } #[inline] @@ -30,7 +30,7 @@ pub unsafe fn AddMonitorA(pname: P0, level: u32, pmonitors: Option<*const u8 where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn AddMonitorA(pname : windows_core::PCSTR, level : u32, pmonitors : *const u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn AddMonitorA(pname : windows_core::PCSTR, level : u32, pmonitors : *const u8) -> windows_core::BOOL); unsafe { AddMonitorA(pname.param().abi(), level, pmonitors.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -38,7 +38,7 @@ pub unsafe fn AddMonitorW(pname: P0, level: u32, pmonitors: Option<*const u8 where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn AddMonitorW(pname : windows_core::PCWSTR, level : u32, pmonitors : *const u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn AddMonitorW(pname : windows_core::PCWSTR, level : u32, pmonitors : *const u8) -> windows_core::BOOL); unsafe { AddMonitorW(pname.param().abi(), level, pmonitors.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -47,7 +47,7 @@ where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn AddPortA(pname : windows_core::PCSTR, hwnd : super::super::Foundation:: HWND, pmonitorname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn AddPortA(pname : windows_core::PCSTR, hwnd : super::super::Foundation:: HWND, pmonitorname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { AddPortA(pname.param().abi(), hwnd, pmonitorname.param().abi()).ok() } } #[inline] @@ -56,7 +56,7 @@ where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn AddPortW(pname : windows_core::PCWSTR, hwnd : super::super::Foundation:: HWND, pmonitorname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn AddPortW(pname : windows_core::PCWSTR, hwnd : super::super::Foundation:: HWND, pmonitorname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { AddPortW(pname.param().abi(), hwnd, pmonitorname.param().abi()).ok() } } #[inline] @@ -68,41 +68,41 @@ pub unsafe fn AddPrintDeviceObject(hprinter: PRINTER_HANDLE) -> windows_core::Re } } #[inline] -pub unsafe fn AddPrintProcessorA(pname: P0, penvironment: P1, ppathname: P2, pprintprocessorname: P3) -> super::super::Foundation::BOOL +pub unsafe fn AddPrintProcessorA(pname: P0, penvironment: P1, ppathname: P2, pprintprocessorname: P3) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn AddPrintProcessorA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, ppathname : windows_core::PCSTR, pprintprocessorname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn AddPrintProcessorA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, ppathname : windows_core::PCSTR, pprintprocessorname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { AddPrintProcessorA(pname.param().abi(), penvironment.param().abi(), ppathname.param().abi(), pprintprocessorname.param().abi()) } } #[inline] -pub unsafe fn AddPrintProcessorW(pname: P0, penvironment: P1, ppathname: P2, pprintprocessorname: P3) -> super::super::Foundation::BOOL +pub unsafe fn AddPrintProcessorW(pname: P0, penvironment: P1, ppathname: P2, pprintprocessorname: P3) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn AddPrintProcessorW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, ppathname : windows_core::PCWSTR, pprintprocessorname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn AddPrintProcessorW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, ppathname : windows_core::PCWSTR, pprintprocessorname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { AddPrintProcessorW(pname.param().abi(), penvironment.param().abi(), ppathname.param().abi(), pprintprocessorname.param().abi()) } } #[inline] -pub unsafe fn AddPrintProvidorA(pname: P0, level: u32, pprovidorinfo: *const u8) -> super::super::Foundation::BOOL +pub unsafe fn AddPrintProvidorA(pname: P0, level: u32, pprovidorinfo: *const u8) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn AddPrintProvidorA(pname : windows_core::PCSTR, level : u32, pprovidorinfo : *const u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn AddPrintProvidorA(pname : windows_core::PCSTR, level : u32, pprovidorinfo : *const u8) -> windows_core::BOOL); unsafe { AddPrintProvidorA(pname.param().abi(), level, pprovidorinfo) } } #[inline] -pub unsafe fn AddPrintProvidorW(pname: P0, level: u32, pprovidorinfo: *const u8) -> super::super::Foundation::BOOL +pub unsafe fn AddPrintProvidorW(pname: P0, level: u32, pprovidorinfo: *const u8) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn AddPrintProvidorW(pname : windows_core::PCWSTR, level : u32, pprovidorinfo : *const u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn AddPrintProvidorW(pname : windows_core::PCWSTR, level : u32, pprovidorinfo : *const u8) -> windows_core::BOOL); unsafe { AddPrintProvidorW(pname.param().abi(), level, pprovidorinfo) } } #[inline] @@ -115,35 +115,35 @@ where (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] -pub unsafe fn AddPrinterConnection2A(hwnd: Option, pszname: P1, dwlevel: u32, pconnectioninfo: *const core::ffi::c_void) -> super::super::Foundation::BOOL +pub unsafe fn AddPrinterConnection2A(hwnd: Option, pszname: P1, dwlevel: u32, pconnectioninfo: *const core::ffi::c_void) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn AddPrinterConnection2A(hwnd : super::super::Foundation:: HWND, pszname : windows_core::PCSTR, dwlevel : u32, pconnectioninfo : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn AddPrinterConnection2A(hwnd : super::super::Foundation:: HWND, pszname : windows_core::PCSTR, dwlevel : u32, pconnectioninfo : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { AddPrinterConnection2A(hwnd.unwrap_or(core::mem::zeroed()) as _, pszname.param().abi(), dwlevel, pconnectioninfo) } } #[inline] -pub unsafe fn AddPrinterConnection2W(hwnd: Option, pszname: P1, dwlevel: u32, pconnectioninfo: *const core::ffi::c_void) -> super::super::Foundation::BOOL +pub unsafe fn AddPrinterConnection2W(hwnd: Option, pszname: P1, dwlevel: u32, pconnectioninfo: *const core::ffi::c_void) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn AddPrinterConnection2W(hwnd : super::super::Foundation:: HWND, pszname : windows_core::PCWSTR, dwlevel : u32, pconnectioninfo : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn AddPrinterConnection2W(hwnd : super::super::Foundation:: HWND, pszname : windows_core::PCWSTR, dwlevel : u32, pconnectioninfo : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { AddPrinterConnection2W(hwnd.unwrap_or(core::mem::zeroed()) as _, pszname.param().abi(), dwlevel, pconnectioninfo) } } #[inline] -pub unsafe fn AddPrinterConnectionA(pname: P0) -> super::super::Foundation::BOOL +pub unsafe fn AddPrinterConnectionA(pname: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn AddPrinterConnectionA(pname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn AddPrinterConnectionA(pname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { AddPrinterConnectionA(pname.param().abi()) } } #[inline] -pub unsafe fn AddPrinterConnectionW(pname: P0) -> super::super::Foundation::BOOL +pub unsafe fn AddPrinterConnectionW(pname: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn AddPrinterConnectionW(pname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn AddPrinterConnectionW(pname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { AddPrinterConnectionW(pname.param().abi()) } } #[inline] @@ -151,23 +151,23 @@ pub unsafe fn AddPrinterDriverA(pname: P0, level: u32, pdriverinfo: *const u where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn AddPrinterDriverA(pname : windows_core::PCSTR, level : u32, pdriverinfo : *const u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn AddPrinterDriverA(pname : windows_core::PCSTR, level : u32, pdriverinfo : *const u8) -> windows_core::BOOL); unsafe { AddPrinterDriverA(pname.param().abi(), level, pdriverinfo).ok() } } #[inline] -pub unsafe fn AddPrinterDriverExA(pname: P0, level: u32, lpbdriverinfo: *const u8, dwfilecopyflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn AddPrinterDriverExA(pname: P0, level: u32, lpbdriverinfo: *const u8, dwfilecopyflags: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn AddPrinterDriverExA(pname : windows_core::PCSTR, level : u32, lpbdriverinfo : *const u8, dwfilecopyflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn AddPrinterDriverExA(pname : windows_core::PCSTR, level : u32, lpbdriverinfo : *const u8, dwfilecopyflags : u32) -> windows_core::BOOL); unsafe { AddPrinterDriverExA(pname.param().abi(), level, lpbdriverinfo, dwfilecopyflags) } } #[inline] -pub unsafe fn AddPrinterDriverExW(pname: P0, level: u32, lpbdriverinfo: *const u8, dwfilecopyflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn AddPrinterDriverExW(pname: P0, level: u32, lpbdriverinfo: *const u8, dwfilecopyflags: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn AddPrinterDriverExW(pname : windows_core::PCWSTR, level : u32, lpbdriverinfo : *const u8, dwfilecopyflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn AddPrinterDriverExW(pname : windows_core::PCWSTR, level : u32, lpbdriverinfo : *const u8, dwfilecopyflags : u32) -> windows_core::BOOL); unsafe { AddPrinterDriverExW(pname.param().abi(), level, lpbdriverinfo, dwfilecopyflags) } } #[inline] @@ -175,7 +175,7 @@ pub unsafe fn AddPrinterDriverW(pname: P0, level: u32, pdriverinfo: *const u where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn AddPrinterDriverW(pname : windows_core::PCWSTR, level : u32, pdriverinfo : *const u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn AddPrinterDriverW(pname : windows_core::PCWSTR, level : u32, pdriverinfo : *const u8) -> windows_core::BOOL); unsafe { AddPrinterDriverW(pname.param().abi(), level, pdriverinfo).ok() } } #[inline] @@ -206,8 +206,8 @@ where unsafe { AdvancedDocumentPropertiesW(hwnd, core::mem::transmute(hprinter), pdevicename.param().abi(), pdevmodeoutput.unwrap_or(core::mem::zeroed()) as _, pdevmodeinput.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn AppendPrinterNotifyInfoData(pinfodest: *const PRINTER_NOTIFY_INFO, pdatasrc: Option<*const PRINTER_NOTIFY_INFO_DATA>, fdwflags: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("spoolss.dll" "system" fn AppendPrinterNotifyInfoData(pinfodest : *const PRINTER_NOTIFY_INFO, pdatasrc : *const PRINTER_NOTIFY_INFO_DATA, fdwflags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn AppendPrinterNotifyInfoData(pinfodest: *const PRINTER_NOTIFY_INFO, pdatasrc: Option<*const PRINTER_NOTIFY_INFO_DATA>, fdwflags: u32) -> windows_core::BOOL { + windows_targets::link!("spoolss.dll" "system" fn AppendPrinterNotifyInfoData(pinfodest : *const PRINTER_NOTIFY_INFO, pdatasrc : *const PRINTER_NOTIFY_INFO_DATA, fdwflags : u32) -> windows_core::BOOL); unsafe { AppendPrinterNotifyInfoData(pinfodest, pdatasrc.unwrap_or(core::mem::zeroed()) as _, fdwflags) } } #[inline] @@ -217,12 +217,12 @@ pub unsafe fn CallRouterFindFirstPrinterChangeNotification(hprinterrpc: super::s } #[inline] pub unsafe fn ClosePrinter(hprinter: PRINTER_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("winspool.drv" "system" fn ClosePrinter(hprinter : PRINTER_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn ClosePrinter(hprinter : PRINTER_HANDLE) -> windows_core::BOOL); unsafe { ClosePrinter(core::mem::transmute(hprinter)).ok() } } #[inline] -pub unsafe fn CloseSpoolFileHandle(hprinter: PRINTER_HANDLE, hspoolfile: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn CloseSpoolFileHandle(hprinter : PRINTER_HANDLE, hspoolfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn CloseSpoolFileHandle(hprinter: PRINTER_HANDLE, hspoolfile: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn CloseSpoolFileHandle(hprinter : PRINTER_HANDLE, hspoolfile : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CloseSpoolFileHandle(core::mem::transmute(hprinter), hspoolfile) } } #[inline] @@ -241,21 +241,21 @@ pub unsafe fn CommonPropertySheetUIW(hwndowner: super::super::Foundation::HWND, unsafe { CommonPropertySheetUIW(hwndowner, pfnpropsheetui, lparam, presult.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn ConfigurePortA(pname: P0, hwnd: super::super::Foundation::HWND, pportname: P2) -> super::super::Foundation::BOOL +pub unsafe fn ConfigurePortA(pname: P0, hwnd: super::super::Foundation::HWND, pportname: P2) -> windows_core::BOOL where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn ConfigurePortA(pname : windows_core::PCSTR, hwnd : super::super::Foundation:: HWND, pportname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn ConfigurePortA(pname : windows_core::PCSTR, hwnd : super::super::Foundation:: HWND, pportname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { ConfigurePortA(pname.param().abi(), hwnd, pportname.param().abi()) } } #[inline] -pub unsafe fn ConfigurePortW(pname: P0, hwnd: super::super::Foundation::HWND, pportname: P2) -> super::super::Foundation::BOOL +pub unsafe fn ConfigurePortW(pname: P0, hwnd: super::super::Foundation::HWND, pportname: P2) -> windows_core::BOOL where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn ConfigurePortW(pname : windows_core::PCWSTR, hwnd : super::super::Foundation:: HWND, pportname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn ConfigurePortW(pname : windows_core::PCWSTR, hwnd : super::super::Foundation:: HWND, pportname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { ConfigurePortW(pname.param().abi(), hwnd, pportname.param().abi()) } } #[inline] @@ -264,24 +264,24 @@ pub unsafe fn ConnectToPrinterDlg(hwnd: super::super::Foundation::HWND, flags: u unsafe { ConnectToPrinterDlg(hwnd, flags) } } #[inline] -pub unsafe fn CorePrinterDriverInstalledA(pszserver: P0, pszenvironment: P1, coredriverguid: windows_core::GUID, ftdriverdate: super::super::Foundation::FILETIME, dwldriverversion: u64) -> windows_core::Result +pub unsafe fn CorePrinterDriverInstalledA(pszserver: P0, pszenvironment: P1, coredriverguid: windows_core::GUID, ftdriverdate: super::super::Foundation::FILETIME, dwldriverversion: u64) -> windows_core::Result where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn CorePrinterDriverInstalledA(pszserver : windows_core::PCSTR, pszenvironment : windows_core::PCSTR, coredriverguid : windows_core::GUID, ftdriverdate : super::super::Foundation:: FILETIME, dwldriverversion : u64, pbdriverinstalled : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("winspool.drv" "system" fn CorePrinterDriverInstalledA(pszserver : windows_core::PCSTR, pszenvironment : windows_core::PCSTR, coredriverguid : windows_core::GUID, ftdriverdate : super::super::Foundation:: FILETIME, dwldriverversion : u64, pbdriverinstalled : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); CorePrinterDriverInstalledA(pszserver.param().abi(), pszenvironment.param().abi(), core::mem::transmute(coredriverguid), core::mem::transmute(ftdriverdate), dwldriverversion, &mut result__).map(|| core::mem::transmute(result__)) } } #[inline] -pub unsafe fn CorePrinterDriverInstalledW(pszserver: P0, pszenvironment: P1, coredriverguid: windows_core::GUID, ftdriverdate: super::super::Foundation::FILETIME, dwldriverversion: u64) -> windows_core::Result +pub unsafe fn CorePrinterDriverInstalledW(pszserver: P0, pszenvironment: P1, coredriverguid: windows_core::GUID, ftdriverdate: super::super::Foundation::FILETIME, dwldriverversion: u64) -> windows_core::Result where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn CorePrinterDriverInstalledW(pszserver : windows_core::PCWSTR, pszenvironment : windows_core::PCWSTR, coredriverguid : windows_core::GUID, ftdriverdate : super::super::Foundation:: FILETIME, dwldriverversion : u64, pbdriverinstalled : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("winspool.drv" "system" fn CorePrinterDriverInstalledW(pszserver : windows_core::PCWSTR, pszenvironment : windows_core::PCWSTR, coredriverguid : windows_core::GUID, ftdriverdate : super::super::Foundation:: FILETIME, dwldriverversion : u64, pbdriverinstalled : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); CorePrinterDriverInstalledW(pszserver.param().abi(), pszenvironment.param().abi(), core::mem::transmute(coredriverguid), core::mem::transmute(ftdriverdate), dwldriverversion, &mut result__).map(|| core::mem::transmute(result__)) @@ -306,19 +306,19 @@ pub unsafe fn CreatePrinterIC(hprinter: PRINTER_HANDLE, pdevmode: Option<*const unsafe { CreatePrinterIC(core::mem::transmute(hprinter), pdevmode.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn DeleteFormA(hprinter: PRINTER_HANDLE, pformname: P1) -> super::super::Foundation::BOOL +pub unsafe fn DeleteFormA(hprinter: PRINTER_HANDLE, pformname: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn DeleteFormA(hprinter : PRINTER_HANDLE, pformname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn DeleteFormA(hprinter : PRINTER_HANDLE, pformname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { DeleteFormA(core::mem::transmute(hprinter), pformname.param().abi()) } } #[inline] -pub unsafe fn DeleteFormW(hprinter: PRINTER_HANDLE, pformname: P1) -> super::super::Foundation::BOOL +pub unsafe fn DeleteFormW(hprinter: PRINTER_HANDLE, pformname: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn DeleteFormW(hprinter : PRINTER_HANDLE, pformname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn DeleteFormW(hprinter : PRINTER_HANDLE, pformname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { DeleteFormW(core::mem::transmute(hprinter), pformname.param().abi()) } } #[inline] @@ -336,7 +336,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn DeleteMonitorA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, pmonitorname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn DeleteMonitorA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, pmonitorname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { DeleteMonitorA(pname.param().abi(), penvironment.param().abi(), pmonitorname.param().abi()).ok() } } #[inline] @@ -346,7 +346,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn DeleteMonitorW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, pmonitorname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn DeleteMonitorW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, pmonitorname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { DeleteMonitorW(pname.param().abi(), penvironment.param().abi(), pmonitorname.param().abi()).ok() } } #[inline] @@ -355,7 +355,7 @@ where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn DeletePortA(pname : windows_core::PCSTR, hwnd : super::super::Foundation:: HWND, pportname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn DeletePortA(pname : windows_core::PCSTR, hwnd : super::super::Foundation:: HWND, pportname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { DeletePortA(pname.param().abi(), hwnd, pportname.param().abi()).ok() } } #[inline] @@ -364,68 +364,68 @@ where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn DeletePortW(pname : windows_core::PCWSTR, hwnd : super::super::Foundation:: HWND, pportname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn DeletePortW(pname : windows_core::PCWSTR, hwnd : super::super::Foundation:: HWND, pportname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { DeletePortW(pname.param().abi(), hwnd, pportname.param().abi()).ok() } } #[inline] -pub unsafe fn DeletePrintProcessorA(pname: P0, penvironment: P1, pprintprocessorname: P2) -> super::super::Foundation::BOOL +pub unsafe fn DeletePrintProcessorA(pname: P0, penvironment: P1, pprintprocessorname: P2) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn DeletePrintProcessorA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, pprintprocessorname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn DeletePrintProcessorA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, pprintprocessorname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { DeletePrintProcessorA(pname.param().abi(), penvironment.param().abi(), pprintprocessorname.param().abi()) } } #[inline] -pub unsafe fn DeletePrintProcessorW(pname: P0, penvironment: P1, pprintprocessorname: P2) -> super::super::Foundation::BOOL +pub unsafe fn DeletePrintProcessorW(pname: P0, penvironment: P1, pprintprocessorname: P2) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn DeletePrintProcessorW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, pprintprocessorname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn DeletePrintProcessorW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, pprintprocessorname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { DeletePrintProcessorW(pname.param().abi(), penvironment.param().abi(), pprintprocessorname.param().abi()) } } #[inline] -pub unsafe fn DeletePrintProvidorA(pname: P0, penvironment: P1, pprintprovidorname: P2) -> super::super::Foundation::BOOL +pub unsafe fn DeletePrintProvidorA(pname: P0, penvironment: P1, pprintprovidorname: P2) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn DeletePrintProvidorA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, pprintprovidorname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn DeletePrintProvidorA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, pprintprovidorname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { DeletePrintProvidorA(pname.param().abi(), penvironment.param().abi(), pprintprovidorname.param().abi()) } } #[inline] -pub unsafe fn DeletePrintProvidorW(pname: P0, penvironment: P1, pprintprovidorname: P2) -> super::super::Foundation::BOOL +pub unsafe fn DeletePrintProvidorW(pname: P0, penvironment: P1, pprintprovidorname: P2) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn DeletePrintProvidorW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, pprintprovidorname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn DeletePrintProvidorW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, pprintprovidorname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { DeletePrintProvidorW(pname.param().abi(), penvironment.param().abi(), pprintprovidorname.param().abi()) } } #[inline] pub unsafe fn DeletePrinter(hprinter: PRINTER_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("winspool.drv" "system" fn DeletePrinter(hprinter : PRINTER_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn DeletePrinter(hprinter : PRINTER_HANDLE) -> windows_core::BOOL); unsafe { DeletePrinter(core::mem::transmute(hprinter)).ok() } } #[inline] -pub unsafe fn DeletePrinterConnectionA(pname: P0) -> super::super::Foundation::BOOL +pub unsafe fn DeletePrinterConnectionA(pname: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn DeletePrinterConnectionA(pname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn DeletePrinterConnectionA(pname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { DeletePrinterConnectionA(pname.param().abi()) } } #[inline] -pub unsafe fn DeletePrinterConnectionW(pname: P0) -> super::super::Foundation::BOOL +pub unsafe fn DeletePrinterConnectionW(pname: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn DeletePrinterConnectionW(pname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn DeletePrinterConnectionW(pname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { DeletePrinterConnectionW(pname.param().abi()) } } #[inline] @@ -463,33 +463,33 @@ where unsafe { DeletePrinterDataW(core::mem::transmute(hprinter), pvaluename.param().abi()) } } #[inline] -pub unsafe fn DeletePrinterDriverA(pname: P0, penvironment: P1, pdrivername: P2) -> super::super::Foundation::BOOL +pub unsafe fn DeletePrinterDriverA(pname: P0, penvironment: P1, pdrivername: P2) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn DeletePrinterDriverA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, pdrivername : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn DeletePrinterDriverA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, pdrivername : windows_core::PCSTR) -> windows_core::BOOL); unsafe { DeletePrinterDriverA(pname.param().abi(), penvironment.param().abi(), pdrivername.param().abi()) } } #[inline] -pub unsafe fn DeletePrinterDriverExA(pname: P0, penvironment: P1, pdrivername: P2, dwdeleteflag: u32, dwversionflag: u32) -> super::super::Foundation::BOOL +pub unsafe fn DeletePrinterDriverExA(pname: P0, penvironment: P1, pdrivername: P2, dwdeleteflag: u32, dwversionflag: u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn DeletePrinterDriverExA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, pdrivername : windows_core::PCSTR, dwdeleteflag : u32, dwversionflag : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn DeletePrinterDriverExA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, pdrivername : windows_core::PCSTR, dwdeleteflag : u32, dwversionflag : u32) -> windows_core::BOOL); unsafe { DeletePrinterDriverExA(pname.param().abi(), penvironment.param().abi(), pdrivername.param().abi(), dwdeleteflag, dwversionflag) } } #[inline] -pub unsafe fn DeletePrinterDriverExW(pname: P0, penvironment: P1, pdrivername: P2, dwdeleteflag: u32, dwversionflag: u32) -> super::super::Foundation::BOOL +pub unsafe fn DeletePrinterDriverExW(pname: P0, penvironment: P1, pdrivername: P2, dwdeleteflag: u32, dwversionflag: u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn DeletePrinterDriverExW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, pdrivername : windows_core::PCWSTR, dwdeleteflag : u32, dwversionflag : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn DeletePrinterDriverExW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, pdrivername : windows_core::PCWSTR, dwdeleteflag : u32, dwversionflag : u32) -> windows_core::BOOL); unsafe { DeletePrinterDriverExW(pname.param().abi(), penvironment.param().abi(), pdrivername.param().abi(), dwdeleteflag, dwversionflag) } } #[inline] @@ -513,18 +513,18 @@ where unsafe { DeletePrinterDriverPackageW(pszserver.param().abi(), pszinfpath.param().abi(), pszenvironment.param().abi()).ok() } } #[inline] -pub unsafe fn DeletePrinterDriverW(pname: P0, penvironment: P1, pdrivername: P2) -> super::super::Foundation::BOOL +pub unsafe fn DeletePrinterDriverW(pname: P0, penvironment: P1, pdrivername: P2) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn DeletePrinterDriverW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, pdrivername : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn DeletePrinterDriverW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, pdrivername : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { DeletePrinterDriverW(pname.param().abi(), penvironment.param().abi(), pdrivername.param().abi()) } } #[inline] -pub unsafe fn DeletePrinterIC(hprinteric: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn DeletePrinterIC(hprinteric : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn DeletePrinterIC(hprinteric: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn DeletePrinterIC(hprinteric : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { DeletePrinterIC(hprinteric) } } #[inline] @@ -545,14 +545,14 @@ where } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn DevQueryPrint(hprinter: PRINTER_HANDLE, pdevmode: *const super::Gdi::DEVMODEA, presid: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn DevQueryPrint(hprinter : PRINTER_HANDLE, pdevmode : *const super::Gdi:: DEVMODEA, presid : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn DevQueryPrint(hprinter: PRINTER_HANDLE, pdevmode: *const super::Gdi::DEVMODEA, presid: *mut u32) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn DevQueryPrint(hprinter : PRINTER_HANDLE, pdevmode : *const super::Gdi:: DEVMODEA, presid : *mut u32) -> windows_core::BOOL); unsafe { DevQueryPrint(core::mem::transmute(hprinter), pdevmode, presid as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn DevQueryPrintEx(pdqpinfo: *mut DEVQUERYPRINT_INFO) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn DevQueryPrintEx(pdqpinfo : *mut DEVQUERYPRINT_INFO) -> super::super::Foundation:: BOOL); +pub unsafe fn DevQueryPrintEx(pdqpinfo: *mut DEVQUERYPRINT_INFO) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn DevQueryPrintEx(pdqpinfo : *mut DEVQUERYPRINT_INFO) -> windows_core::BOOL); unsafe { DevQueryPrintEx(pdqpinfo as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -574,23 +574,23 @@ where unsafe { DocumentPropertiesW(hwnd.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(hprinter), pdevicename.param().abi(), pdevmodeoutput.unwrap_or(core::mem::zeroed()) as _, pdevmodeinput.unwrap_or(core::mem::zeroed()) as _, fmode) } } #[inline] -pub unsafe fn EndDocPrinter(hprinter: PRINTER_HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn EndDocPrinter(hprinter : PRINTER_HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn EndDocPrinter(hprinter: PRINTER_HANDLE) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn EndDocPrinter(hprinter : PRINTER_HANDLE) -> windows_core::BOOL); unsafe { EndDocPrinter(core::mem::transmute(hprinter)) } } #[inline] -pub unsafe fn EndPagePrinter(hprinter: PRINTER_HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn EndPagePrinter(hprinter : PRINTER_HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn EndPagePrinter(hprinter: PRINTER_HANDLE) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn EndPagePrinter(hprinter : PRINTER_HANDLE) -> windows_core::BOOL); unsafe { EndPagePrinter(core::mem::transmute(hprinter)) } } #[inline] -pub unsafe fn EnumFormsA(hprinter: PRINTER_HANDLE, level: u32, pform: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn EnumFormsA(hprinter : PRINTER_HANDLE, level : u32, pform : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EnumFormsA(hprinter: PRINTER_HANDLE, level: u32, pform: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn EnumFormsA(hprinter : PRINTER_HANDLE, level : u32, pform : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> windows_core::BOOL); unsafe { EnumFormsA(core::mem::transmute(hprinter), level, core::mem::transmute(pform.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pform.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _, pcreturned as _) } } #[inline] -pub unsafe fn EnumFormsW(hprinter: PRINTER_HANDLE, level: u32, pform: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn EnumFormsW(hprinter : PRINTER_HANDLE, level : u32, pform : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EnumFormsW(hprinter: PRINTER_HANDLE, level: u32, pform: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn EnumFormsW(hprinter : PRINTER_HANDLE, level : u32, pform : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> windows_core::BOOL); unsafe { EnumFormsW(core::mem::transmute(hprinter), level, core::mem::transmute(pform.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pform.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _, pcreturned as _) } } #[inline] @@ -600,80 +600,80 @@ pub unsafe fn EnumJobNamedProperties(hprinter: PRINTER_HANDLE, jobid: u32, pcpro } #[inline] pub unsafe fn EnumJobsA(hprinter: PRINTER_HANDLE, firstjob: u32, nojobs: u32, level: u32, pjob: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winspool.drv" "system" fn EnumJobsA(hprinter : PRINTER_HANDLE, firstjob : u32, nojobs : u32, level : u32, pjob : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn EnumJobsA(hprinter : PRINTER_HANDLE, firstjob : u32, nojobs : u32, level : u32, pjob : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> windows_core::BOOL); unsafe { EnumJobsA(core::mem::transmute(hprinter), firstjob, nojobs, level, core::mem::transmute(pjob.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pjob.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _, pcreturned as _).ok() } } #[inline] pub unsafe fn EnumJobsW(hprinter: PRINTER_HANDLE, firstjob: u32, nojobs: u32, level: u32, pjob: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winspool.drv" "system" fn EnumJobsW(hprinter : PRINTER_HANDLE, firstjob : u32, nojobs : u32, level : u32, pjob : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn EnumJobsW(hprinter : PRINTER_HANDLE, firstjob : u32, nojobs : u32, level : u32, pjob : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> windows_core::BOOL); unsafe { EnumJobsW(core::mem::transmute(hprinter), firstjob, nojobs, level, core::mem::transmute(pjob.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pjob.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _, pcreturned as _).ok() } } #[inline] -pub unsafe fn EnumMonitorsA(pname: P0, level: u32, pmonitor: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn EnumMonitorsA(pname: P0, level: u32, pmonitor: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn EnumMonitorsA(pname : windows_core::PCSTR, level : u32, pmonitor : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn EnumMonitorsA(pname : windows_core::PCSTR, level : u32, pmonitor : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> windows_core::BOOL); unsafe { EnumMonitorsA(pname.param().abi(), level, core::mem::transmute(pmonitor.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pmonitor.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _, pcreturned as _) } } #[inline] -pub unsafe fn EnumMonitorsW(pname: P0, level: u32, pmonitor: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn EnumMonitorsW(pname: P0, level: u32, pmonitor: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn EnumMonitorsW(pname : windows_core::PCWSTR, level : u32, pmonitor : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn EnumMonitorsW(pname : windows_core::PCWSTR, level : u32, pmonitor : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> windows_core::BOOL); unsafe { EnumMonitorsW(pname.param().abi(), level, core::mem::transmute(pmonitor.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pmonitor.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _, pcreturned as _) } } #[inline] -pub unsafe fn EnumPortsA(pname: P0, level: u32, pport: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn EnumPortsA(pname: P0, level: u32, pport: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn EnumPortsA(pname : windows_core::PCSTR, level : u32, pport : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn EnumPortsA(pname : windows_core::PCSTR, level : u32, pport : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> windows_core::BOOL); unsafe { EnumPortsA(pname.param().abi(), level, core::mem::transmute(pport.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pport.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _, pcreturned as _) } } #[inline] -pub unsafe fn EnumPortsW(pname: P0, level: u32, pport: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn EnumPortsW(pname: P0, level: u32, pport: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn EnumPortsW(pname : windows_core::PCWSTR, level : u32, pport : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn EnumPortsW(pname : windows_core::PCWSTR, level : u32, pport : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> windows_core::BOOL); unsafe { EnumPortsW(pname.param().abi(), level, core::mem::transmute(pport.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pport.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _, pcreturned as _) } } #[inline] -pub unsafe fn EnumPrintProcessorDatatypesA(pname: P0, pprintprocessorname: P1, level: u32, pdatatypes: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn EnumPrintProcessorDatatypesA(pname: P0, pprintprocessorname: P1, level: u32, pdatatypes: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn EnumPrintProcessorDatatypesA(pname : windows_core::PCSTR, pprintprocessorname : windows_core::PCSTR, level : u32, pdatatypes : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn EnumPrintProcessorDatatypesA(pname : windows_core::PCSTR, pprintprocessorname : windows_core::PCSTR, level : u32, pdatatypes : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> windows_core::BOOL); unsafe { EnumPrintProcessorDatatypesA(pname.param().abi(), pprintprocessorname.param().abi(), level, core::mem::transmute(pdatatypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdatatypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _, pcreturned as _) } } #[inline] -pub unsafe fn EnumPrintProcessorDatatypesW(pname: P0, pprintprocessorname: P1, level: u32, pdatatypes: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn EnumPrintProcessorDatatypesW(pname: P0, pprintprocessorname: P1, level: u32, pdatatypes: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn EnumPrintProcessorDatatypesW(pname : windows_core::PCWSTR, pprintprocessorname : windows_core::PCWSTR, level : u32, pdatatypes : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn EnumPrintProcessorDatatypesW(pname : windows_core::PCWSTR, pprintprocessorname : windows_core::PCWSTR, level : u32, pdatatypes : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> windows_core::BOOL); unsafe { EnumPrintProcessorDatatypesW(pname.param().abi(), pprintprocessorname.param().abi(), level, core::mem::transmute(pdatatypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdatatypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _, pcreturned as _) } } #[inline] -pub unsafe fn EnumPrintProcessorsA(pname: P0, penvironment: P1, level: u32, pprintprocessorinfo: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn EnumPrintProcessorsA(pname: P0, penvironment: P1, level: u32, pprintprocessorinfo: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn EnumPrintProcessorsA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, level : u32, pprintprocessorinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn EnumPrintProcessorsA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, level : u32, pprintprocessorinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> windows_core::BOOL); unsafe { EnumPrintProcessorsA(pname.param().abi(), penvironment.param().abi(), level, core::mem::transmute(pprintprocessorinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprintprocessorinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _, pcreturned as _) } } #[inline] -pub unsafe fn EnumPrintProcessorsW(pname: P0, penvironment: P1, level: u32, pprintprocessorinfo: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn EnumPrintProcessorsW(pname: P0, penvironment: P1, level: u32, pprintprocessorinfo: Option<&mut [u8]>, pcbneeded: *mut u32, pcreturned: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn EnumPrintProcessorsW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, level : u32, pprintprocessorinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn EnumPrintProcessorsW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, level : u32, pprintprocessorinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> windows_core::BOOL); unsafe { EnumPrintProcessorsW(pname.param().abi(), penvironment.param().abi(), level, core::mem::transmute(pprintprocessorinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprintprocessorinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _, pcreturned as _) } } #[inline] @@ -708,7 +708,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn EnumPrinterDriversA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn EnumPrinterDriversA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> windows_core::BOOL); unsafe { EnumPrinterDriversA(pname.param().abi(), penvironment.param().abi(), level, core::mem::transmute(pdriverinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _, pcreturned as _).ok() } } #[inline] @@ -717,7 +717,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn EnumPrinterDriversW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn EnumPrinterDriversW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> windows_core::BOOL); unsafe { EnumPrinterDriversW(pname.param().abi(), penvironment.param().abi(), level, core::mem::transmute(pdriverinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _, pcreturned as _).ok() } } #[inline] @@ -741,7 +741,7 @@ pub unsafe fn EnumPrintersA(flags: u32, name: P1, level: u32, pprinterenum: where P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn EnumPrintersA(flags : u32, name : windows_core::PCSTR, level : u32, pprinterenum : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn EnumPrintersA(flags : u32, name : windows_core::PCSTR, level : u32, pprinterenum : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> windows_core::BOOL); unsafe { EnumPrintersA(flags, name.param().abi(), level, core::mem::transmute(pprinterenum.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprinterenum.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _, pcreturned as _).ok() } } #[inline] @@ -749,7 +749,7 @@ pub unsafe fn EnumPrintersW(flags: u32, name: P1, level: u32, pprinterenum: where P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn EnumPrintersW(flags : u32, name : windows_core::PCWSTR, level : u32, pprinterenum : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn EnumPrintersW(flags : u32, name : windows_core::PCWSTR, level : u32, pprinterenum : *mut u8, cbbuf : u32, pcbneeded : *mut u32, pcreturned : *mut u32) -> windows_core::BOOL); unsafe { EnumPrintersW(flags, name.param().abi(), level, core::mem::transmute(pprinterenum.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprinterenum.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _, pcreturned as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -764,8 +764,8 @@ where unsafe { ExtDeviceMode(hwnd.unwrap_or(core::mem::zeroed()) as _, hinst.unwrap_or(core::mem::zeroed()) as _, pdevmodeoutput.unwrap_or(core::mem::zeroed()) as _, pdevicename.param().abi(), pport.param().abi(), pdevmodeinput.unwrap_or(core::mem::zeroed()) as _, pprofile.param().abi(), fmode) } } #[inline] -pub unsafe fn FindClosePrinterChangeNotification(hchange: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn FindClosePrinterChangeNotification(hchange : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn FindClosePrinterChangeNotification(hchange: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn FindClosePrinterChangeNotification(hchange : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { FindClosePrinterChangeNotification(hchange) } } #[inline] @@ -774,13 +774,13 @@ pub unsafe fn FindFirstPrinterChangeNotification(hprinter: PRINTER_HANDLE, fdwfi unsafe { FindFirstPrinterChangeNotification(core::mem::transmute(hprinter), fdwfilter, fdwoptions, pprinternotifyoptions.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn FindNextPrinterChangeNotification(hchange: super::super::Foundation::HANDLE, pdwchange: Option<*mut u32>, pvreserved: Option<*const core::ffi::c_void>, ppprinternotifyinfo: Option<*mut *mut core::ffi::c_void>) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn FindNextPrinterChangeNotification(hchange : super::super::Foundation:: HANDLE, pdwchange : *mut u32, pvreserved : *const core::ffi::c_void, ppprinternotifyinfo : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn FindNextPrinterChangeNotification(hchange: super::super::Foundation::HANDLE, pdwchange: Option<*mut u32>, pvreserved: Option<*const core::ffi::c_void>, ppprinternotifyinfo: Option<*mut *mut core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn FindNextPrinterChangeNotification(hchange : super::super::Foundation:: HANDLE, pdwchange : *mut u32, pvreserved : *const core::ffi::c_void, ppprinternotifyinfo : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { FindNextPrinterChangeNotification(hchange, pdwchange.unwrap_or(core::mem::zeroed()) as _, pvreserved.unwrap_or(core::mem::zeroed()) as _, ppprinternotifyinfo.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn FlushPrinter(hprinter: PRINTER_HANDLE, pbuf: Option<*const core::ffi::c_void>, cbbuf: u32, pcwritten: *mut u32, csleep: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn FlushPrinter(hprinter : PRINTER_HANDLE, pbuf : *const core::ffi::c_void, cbbuf : u32, pcwritten : *mut u32, csleep : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn FlushPrinter(hprinter: PRINTER_HANDLE, pbuf: Option<*const core::ffi::c_void>, cbbuf: u32, pcwritten: *mut u32, csleep: u32) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn FlushPrinter(hprinter : PRINTER_HANDLE, pbuf : *const core::ffi::c_void, cbbuf : u32, pcwritten : *mut u32, csleep : u32) -> windows_core::BOOL); unsafe { FlushPrinter(core::mem::transmute(hprinter), pbuf.unwrap_or(core::mem::zeroed()) as _, cbbuf, pcwritten as _, csleep) } } #[inline] @@ -794,23 +794,23 @@ pub unsafe fn FreePrintPropertyValue(pvalue: *mut PrintPropertyValue) { unsafe { FreePrintPropertyValue(pvalue as _) } } #[inline] -pub unsafe fn FreePrinterNotifyInfo(pprinternotifyinfo: *const PRINTER_NOTIFY_INFO) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn FreePrinterNotifyInfo(pprinternotifyinfo : *const PRINTER_NOTIFY_INFO) -> super::super::Foundation:: BOOL); +pub unsafe fn FreePrinterNotifyInfo(pprinternotifyinfo: *const PRINTER_NOTIFY_INFO) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn FreePrinterNotifyInfo(pprinternotifyinfo : *const PRINTER_NOTIFY_INFO) -> windows_core::BOOL); unsafe { FreePrinterNotifyInfo(pprinternotifyinfo) } } #[inline] -pub unsafe fn GdiDeleteSpoolFileHandle(spoolfilehandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GdiDeleteSpoolFileHandle(spoolfilehandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn GdiDeleteSpoolFileHandle(spoolfilehandle: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GdiDeleteSpoolFileHandle(spoolfilehandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { GdiDeleteSpoolFileHandle(spoolfilehandle) } } #[inline] -pub unsafe fn GdiEndDocEMF(spoolfilehandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GdiEndDocEMF(spoolfilehandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn GdiEndDocEMF(spoolfilehandle: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GdiEndDocEMF(spoolfilehandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { GdiEndDocEMF(spoolfilehandle) } } #[inline] -pub unsafe fn GdiEndPageEMF(spoolfilehandle: super::super::Foundation::HANDLE, dwoptimization: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GdiEndPageEMF(spoolfilehandle : super::super::Foundation:: HANDLE, dwoptimization : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GdiEndPageEMF(spoolfilehandle: super::super::Foundation::HANDLE, dwoptimization: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GdiEndPageEMF(spoolfilehandle : super::super::Foundation:: HANDLE, dwoptimization : u32) -> windows_core::BOOL); unsafe { GdiEndPageEMF(spoolfilehandle, dwoptimization) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -821,8 +821,8 @@ pub unsafe fn GdiGetDC(spoolfilehandle: super::super::Foundation::HANDLE) -> sup } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn GdiGetDevmodeForPage(spoolfilehandle: super::super::Foundation::HANDLE, dwpagenumber: u32, pcurrdm: *mut *mut super::Gdi::DEVMODEW, plastdm: *mut *mut super::Gdi::DEVMODEW) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GdiGetDevmodeForPage(spoolfilehandle : super::super::Foundation:: HANDLE, dwpagenumber : u32, pcurrdm : *mut *mut super::Gdi:: DEVMODEW, plastdm : *mut *mut super::Gdi:: DEVMODEW) -> super::super::Foundation:: BOOL); +pub unsafe fn GdiGetDevmodeForPage(spoolfilehandle: super::super::Foundation::HANDLE, dwpagenumber: u32, pcurrdm: *mut *mut super::Gdi::DEVMODEW, plastdm: *mut *mut super::Gdi::DEVMODEW) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GdiGetDevmodeForPage(spoolfilehandle : super::super::Foundation:: HANDLE, dwpagenumber : u32, pcurrdm : *mut *mut super::Gdi:: DEVMODEW, plastdm : *mut *mut super::Gdi:: DEVMODEW) -> windows_core::BOOL); unsafe { GdiGetDevmodeForPage(spoolfilehandle, dwpagenumber, pcurrdm as _, plastdm as _) } } #[inline] @@ -846,25 +846,25 @@ where unsafe { GdiGetSpoolFileHandle(pwszprintername.param().abi(), pdevmode as _, pwszdocname.param().abi()) } } #[inline] -pub unsafe fn GdiPlayPageEMF(spoolfilehandle: super::super::Foundation::HANDLE, hemf: super::super::Foundation::HANDLE, prectdocument: *mut super::super::Foundation::RECT, prectborder: *mut super::super::Foundation::RECT, prectclip: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GdiPlayPageEMF(spoolfilehandle : super::super::Foundation:: HANDLE, hemf : super::super::Foundation:: HANDLE, prectdocument : *mut super::super::Foundation:: RECT, prectborder : *mut super::super::Foundation:: RECT, prectclip : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn GdiPlayPageEMF(spoolfilehandle: super::super::Foundation::HANDLE, hemf: super::super::Foundation::HANDLE, prectdocument: *mut super::super::Foundation::RECT, prectborder: *mut super::super::Foundation::RECT, prectclip: *mut super::super::Foundation::RECT) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GdiPlayPageEMF(spoolfilehandle : super::super::Foundation:: HANDLE, hemf : super::super::Foundation:: HANDLE, prectdocument : *mut super::super::Foundation:: RECT, prectborder : *mut super::super::Foundation:: RECT, prectclip : *mut super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { GdiPlayPageEMF(spoolfilehandle, hemf, prectdocument as _, prectborder as _, prectclip as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn GdiResetDCEMF(spoolfilehandle: super::super::Foundation::HANDLE, pcurrdm: *mut super::Gdi::DEVMODEW) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GdiResetDCEMF(spoolfilehandle : super::super::Foundation:: HANDLE, pcurrdm : *mut super::Gdi:: DEVMODEW) -> super::super::Foundation:: BOOL); +pub unsafe fn GdiResetDCEMF(spoolfilehandle: super::super::Foundation::HANDLE, pcurrdm: *mut super::Gdi::DEVMODEW) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GdiResetDCEMF(spoolfilehandle : super::super::Foundation:: HANDLE, pcurrdm : *mut super::Gdi:: DEVMODEW) -> windows_core::BOOL); unsafe { GdiResetDCEMF(spoolfilehandle, pcurrdm as _) } } #[cfg(feature = "Win32_Storage_Xps")] #[inline] -pub unsafe fn GdiStartDocEMF(spoolfilehandle: super::super::Foundation::HANDLE, pdocinfo: *mut super::super::Storage::Xps::DOCINFOW) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GdiStartDocEMF(spoolfilehandle : super::super::Foundation:: HANDLE, pdocinfo : *mut super::super::Storage::Xps:: DOCINFOW) -> super::super::Foundation:: BOOL); +pub unsafe fn GdiStartDocEMF(spoolfilehandle: super::super::Foundation::HANDLE, pdocinfo: *mut super::super::Storage::Xps::DOCINFOW) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GdiStartDocEMF(spoolfilehandle : super::super::Foundation:: HANDLE, pdocinfo : *mut super::super::Storage::Xps:: DOCINFOW) -> windows_core::BOOL); unsafe { GdiStartDocEMF(spoolfilehandle, pdocinfo as _) } } #[inline] -pub unsafe fn GdiStartPageEMF(spoolfilehandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GdiStartPageEMF(spoolfilehandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn GdiStartPageEMF(spoolfilehandle: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GdiStartPageEMF(spoolfilehandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { GdiStartPageEMF(spoolfilehandle) } } #[inline] @@ -902,52 +902,52 @@ where unsafe { GetCorePrinterDriversW(pszserver.param().abi(), pszenvironment.param().abi(), pszzcoredriverdependencies.param().abi(), pcoreprinterdrivers.len().try_into().unwrap(), core::mem::transmute(pcoreprinterdrivers.as_ptr())).ok() } } #[inline] -pub unsafe fn GetDefaultPrinterA(pszbuffer: Option, pcchbuffer: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn GetDefaultPrinterA(pszbuffer : windows_core::PSTR, pcchbuffer : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetDefaultPrinterA(pszbuffer: Option, pcchbuffer: *mut u32) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn GetDefaultPrinterA(pszbuffer : windows_core::PSTR, pcchbuffer : *mut u32) -> windows_core::BOOL); unsafe { GetDefaultPrinterA(pszbuffer.unwrap_or(core::mem::zeroed()) as _, pcchbuffer as _) } } #[inline] -pub unsafe fn GetDefaultPrinterW(pszbuffer: Option, pcchbuffer: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn GetDefaultPrinterW(pszbuffer : windows_core::PWSTR, pcchbuffer : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetDefaultPrinterW(pszbuffer: Option, pcchbuffer: *mut u32) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn GetDefaultPrinterW(pszbuffer : windows_core::PWSTR, pcchbuffer : *mut u32) -> windows_core::BOOL); unsafe { GetDefaultPrinterW(pszbuffer.unwrap_or(core::mem::zeroed()) as _, pcchbuffer as _) } } #[inline] -pub unsafe fn GetFormA(hprinter: PRINTER_HANDLE, pformname: P1, level: u32, pform: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn GetFormA(hprinter: PRINTER_HANDLE, pformname: P1, level: u32, pform: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn GetFormA(hprinter : PRINTER_HANDLE, pformname : windows_core::PCSTR, level : u32, pform : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn GetFormA(hprinter : PRINTER_HANDLE, pformname : windows_core::PCSTR, level : u32, pform : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> windows_core::BOOL); unsafe { GetFormA(core::mem::transmute(hprinter), pformname.param().abi(), level, core::mem::transmute(pform.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pform.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _) } } #[inline] -pub unsafe fn GetFormW(hprinter: PRINTER_HANDLE, pformname: P1, level: u32, pform: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn GetFormW(hprinter: PRINTER_HANDLE, pformname: P1, level: u32, pform: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn GetFormW(hprinter : PRINTER_HANDLE, pformname : windows_core::PCWSTR, level : u32, pform : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn GetFormW(hprinter : PRINTER_HANDLE, pformname : windows_core::PCWSTR, level : u32, pform : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> windows_core::BOOL); unsafe { GetFormW(core::mem::transmute(hprinter), pformname.param().abi(), level, core::mem::transmute(pform.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pform.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _) } } #[inline] -pub unsafe fn GetJobA(hprinter: PRINTER_HANDLE, jobid: u32, level: u32, pjob: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn GetJobA(hprinter : PRINTER_HANDLE, jobid : u32, level : u32, pjob : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetJobA(hprinter: PRINTER_HANDLE, jobid: u32, level: u32, pjob: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn GetJobA(hprinter : PRINTER_HANDLE, jobid : u32, level : u32, pjob : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> windows_core::BOOL); unsafe { GetJobA(core::mem::transmute(hprinter), jobid, level, core::mem::transmute(pjob.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pjob.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn GetJobAttributes(pprintername: P0, pdevmode: *const super::Gdi::DEVMODEW, pattributeinfo: *mut ATTRIBUTE_INFO_3) -> super::super::Foundation::BOOL +pub unsafe fn GetJobAttributes(pprintername: P0, pdevmode: *const super::Gdi::DEVMODEW, pattributeinfo: *mut ATTRIBUTE_INFO_3) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("spoolss.dll" "system" fn GetJobAttributes(pprintername : windows_core::PCWSTR, pdevmode : *const super::Gdi:: DEVMODEW, pattributeinfo : *mut ATTRIBUTE_INFO_3) -> super::super::Foundation:: BOOL); + windows_targets::link!("spoolss.dll" "system" fn GetJobAttributes(pprintername : windows_core::PCWSTR, pdevmode : *const super::Gdi:: DEVMODEW, pattributeinfo : *mut ATTRIBUTE_INFO_3) -> windows_core::BOOL); unsafe { GetJobAttributes(pprintername.param().abi(), pdevmode, pattributeinfo as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn GetJobAttributesEx(pprintername: P0, pdevmode: *const super::Gdi::DEVMODEW, dwlevel: u32, pattributeinfo: &mut [u8], dwflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn GetJobAttributesEx(pprintername: P0, pdevmode: *const super::Gdi::DEVMODEW, dwlevel: u32, pattributeinfo: &mut [u8], dwflags: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("spoolss.dll" "system" fn GetJobAttributesEx(pprintername : windows_core::PCWSTR, pdevmode : *const super::Gdi:: DEVMODEW, dwlevel : u32, pattributeinfo : *mut u8, nsize : u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("spoolss.dll" "system" fn GetJobAttributesEx(pprintername : windows_core::PCWSTR, pdevmode : *const super::Gdi:: DEVMODEW, dwlevel : u32, pattributeinfo : *mut u8, nsize : u32, dwflags : u32) -> windows_core::BOOL); unsafe { GetJobAttributesEx(pprintername.param().abi(), pdevmode, dwlevel, core::mem::transmute(pattributeinfo.as_ptr()), pattributeinfo.len().try_into().unwrap(), dwflags) } } #[inline] @@ -959,13 +959,13 @@ where unsafe { GetJobNamedPropertyValue(core::mem::transmute(hprinter), jobid, pszname.param().abi(), pvalue as _) } } #[inline] -pub unsafe fn GetJobW(hprinter: PRINTER_HANDLE, jobid: u32, level: u32, pjob: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn GetJobW(hprinter : PRINTER_HANDLE, jobid : u32, level : u32, pjob : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetJobW(hprinter: PRINTER_HANDLE, jobid: u32, level: u32, pjob: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn GetJobW(hprinter : PRINTER_HANDLE, jobid : u32, level : u32, pjob : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> windows_core::BOOL); unsafe { GetJobW(core::mem::transmute(hprinter), jobid, level, core::mem::transmute(pjob.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pjob.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _) } } #[inline] -pub unsafe fn GetPrintExecutionData(pdata: *mut PRINT_EXECUTION_DATA) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn GetPrintExecutionData(pdata : *mut PRINT_EXECUTION_DATA) -> super::super::Foundation:: BOOL); +pub unsafe fn GetPrintExecutionData(pdata: *mut PRINT_EXECUTION_DATA) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn GetPrintExecutionData(pdata : *mut PRINT_EXECUTION_DATA) -> windows_core::BOOL); unsafe { GetPrintExecutionData(pdata as _) } } #[inline] @@ -977,26 +977,26 @@ where unsafe { GetPrintOutputInfo(hwnd, pszprinter.param().abi(), phfile as _, ppszoutputfile as _).ok() } } #[inline] -pub unsafe fn GetPrintProcessorDirectoryA(pname: P0, penvironment: P1, level: u32, pprintprocessorinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn GetPrintProcessorDirectoryA(pname: P0, penvironment: P1, level: u32, pprintprocessorinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn GetPrintProcessorDirectoryA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, level : u32, pprintprocessorinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn GetPrintProcessorDirectoryA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, level : u32, pprintprocessorinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> windows_core::BOOL); unsafe { GetPrintProcessorDirectoryA(pname.param().abi(), penvironment.param().abi(), level, core::mem::transmute(pprintprocessorinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprintprocessorinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _) } } #[inline] -pub unsafe fn GetPrintProcessorDirectoryW(pname: P0, penvironment: P1, level: u32, pprintprocessorinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn GetPrintProcessorDirectoryW(pname: P0, penvironment: P1, level: u32, pprintprocessorinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn GetPrintProcessorDirectoryW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, level : u32, pprintprocessorinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn GetPrintProcessorDirectoryW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, level : u32, pprintprocessorinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> windows_core::BOOL); unsafe { GetPrintProcessorDirectoryW(pname.param().abi(), penvironment.param().abi(), level, core::mem::transmute(pprintprocessorinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprintprocessorinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _) } } #[inline] pub unsafe fn GetPrinterA(hprinter: PRINTER_HANDLE, level: u32, pprinter: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winspool.drv" "system" fn GetPrinterA(hprinter : PRINTER_HANDLE, level : u32, pprinter : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn GetPrinterA(hprinter : PRINTER_HANDLE, level : u32, pprinter : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> windows_core::BOOL); unsafe { GetPrinterA(core::mem::transmute(hprinter), level, core::mem::transmute(pprinter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprinter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _).ok() } } #[inline] @@ -1034,45 +1034,45 @@ where unsafe { GetPrinterDataW(core::mem::transmute(hprinter), pvaluename.param().abi(), ptype.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(pdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _) } } #[inline] -pub unsafe fn GetPrinterDriver2A(hwnd: Option, hprinter: PRINTER_HANDLE, penvironment: P2, level: u32, pdriverinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn GetPrinterDriver2A(hwnd: Option, hprinter: PRINTER_HANDLE, penvironment: P2, level: u32, pdriverinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn GetPrinterDriver2A(hwnd : super::super::Foundation:: HWND, hprinter : PRINTER_HANDLE, penvironment : windows_core::PCSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn GetPrinterDriver2A(hwnd : super::super::Foundation:: HWND, hprinter : PRINTER_HANDLE, penvironment : windows_core::PCSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> windows_core::BOOL); unsafe { GetPrinterDriver2A(hwnd.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(hprinter), penvironment.param().abi(), level, core::mem::transmute(pdriverinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _) } } #[inline] -pub unsafe fn GetPrinterDriver2W(hwnd: Option, hprinter: PRINTER_HANDLE, penvironment: P2, level: u32, pdriverinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn GetPrinterDriver2W(hwnd: Option, hprinter: PRINTER_HANDLE, penvironment: P2, level: u32, pdriverinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn GetPrinterDriver2W(hwnd : super::super::Foundation:: HWND, hprinter : PRINTER_HANDLE, penvironment : windows_core::PCWSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn GetPrinterDriver2W(hwnd : super::super::Foundation:: HWND, hprinter : PRINTER_HANDLE, penvironment : windows_core::PCWSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> windows_core::BOOL); unsafe { GetPrinterDriver2W(hwnd.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(hprinter), penvironment.param().abi(), level, core::mem::transmute(pdriverinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _) } } #[inline] -pub unsafe fn GetPrinterDriverA(hprinter: PRINTER_HANDLE, penvironment: P1, level: u32, pdriverinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn GetPrinterDriverA(hprinter: PRINTER_HANDLE, penvironment: P1, level: u32, pdriverinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn GetPrinterDriverA(hprinter : PRINTER_HANDLE, penvironment : windows_core::PCSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn GetPrinterDriverA(hprinter : PRINTER_HANDLE, penvironment : windows_core::PCSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> windows_core::BOOL); unsafe { GetPrinterDriverA(core::mem::transmute(hprinter), penvironment.param().abi(), level, core::mem::transmute(pdriverinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _) } } #[inline] -pub unsafe fn GetPrinterDriverDirectoryA(pname: P0, penvironment: P1, level: u32, pdriverdirectory: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn GetPrinterDriverDirectoryA(pname: P0, penvironment: P1, level: u32, pdriverdirectory: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn GetPrinterDriverDirectoryA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, level : u32, pdriverdirectory : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn GetPrinterDriverDirectoryA(pname : windows_core::PCSTR, penvironment : windows_core::PCSTR, level : u32, pdriverdirectory : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> windows_core::BOOL); unsafe { GetPrinterDriverDirectoryA(pname.param().abi(), penvironment.param().abi(), level, core::mem::transmute(pdriverdirectory.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverdirectory.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _) } } #[inline] -pub unsafe fn GetPrinterDriverDirectoryW(pname: P0, penvironment: P1, level: u32, pdriverdirectory: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn GetPrinterDriverDirectoryW(pname: P0, penvironment: P1, level: u32, pdriverdirectory: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn GetPrinterDriverDirectoryW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, level : u32, pdriverdirectory : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn GetPrinterDriverDirectoryW(pname : windows_core::PCWSTR, penvironment : windows_core::PCWSTR, level : u32, pdriverdirectory : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> windows_core::BOOL); unsafe { GetPrinterDriverDirectoryW(pname.param().abi(), penvironment.param().abi(), level, core::mem::transmute(pdriverdirectory.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverdirectory.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _) } } #[inline] @@ -1098,16 +1098,16 @@ where unsafe { GetPrinterDriverPackagePathW(pszserver.param().abi(), pszenvironment.param().abi(), pszlanguage.param().abi(), pszpackageid.param().abi(), core::mem::transmute(pszdriverpackagecab.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszdriverpackagecab.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcchrequiredsize as _).ok() } } #[inline] -pub unsafe fn GetPrinterDriverW(hprinter: PRINTER_HANDLE, penvironment: P1, level: u32, pdriverinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn GetPrinterDriverW(hprinter: PRINTER_HANDLE, penvironment: P1, level: u32, pdriverinfo: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn GetPrinterDriverW(hprinter : PRINTER_HANDLE, penvironment : windows_core::PCWSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn GetPrinterDriverW(hprinter : PRINTER_HANDLE, penvironment : windows_core::PCWSTR, level : u32, pdriverinfo : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> windows_core::BOOL); unsafe { GetPrinterDriverW(core::mem::transmute(hprinter), penvironment.param().abi(), level, core::mem::transmute(pdriverinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdriverinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _) } } #[inline] pub unsafe fn GetPrinterW(hprinter: PRINTER_HANDLE, level: u32, pprinter: Option<&mut [u8]>, pcbneeded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winspool.drv" "system" fn GetPrinterW(hprinter : PRINTER_HANDLE, level : u32, pprinter : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn GetPrinterW(hprinter : PRINTER_HANDLE, level : u32, pprinter : *mut u8, cbbuf : u32, pcbneeded : *mut u32) -> windows_core::BOOL); unsafe { GetPrinterW(core::mem::transmute(hprinter), level, core::mem::transmute(pprinter.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pprinter.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbneeded as _).ok() } } #[inline] @@ -1117,8 +1117,8 @@ pub unsafe fn GetSpoolFileHandle(hprinter: PRINTER_HANDLE) -> windows_core::Resu (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] -pub unsafe fn ImpersonatePrinterClient(htoken: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("spoolss.dll" "system" fn ImpersonatePrinterClient(htoken : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn ImpersonatePrinterClient(htoken: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("spoolss.dll" "system" fn ImpersonatePrinterClient(htoken : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { ImpersonatePrinterClient(htoken) } } #[inline] @@ -1145,14 +1145,14 @@ where } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn IsValidDevmodeA(pdevmode: Option<*const super::Gdi::DEVMODEA>, devmodesize: usize) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn IsValidDevmodeA(pdevmode : *const super::Gdi:: DEVMODEA, devmodesize : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn IsValidDevmodeA(pdevmode: Option<*const super::Gdi::DEVMODEA>, devmodesize: usize) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn IsValidDevmodeA(pdevmode : *const super::Gdi:: DEVMODEA, devmodesize : usize) -> windows_core::BOOL); unsafe { IsValidDevmodeA(pdevmode.unwrap_or(core::mem::zeroed()) as _, devmodesize) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn IsValidDevmodeW(pdevmode: Option<*const super::Gdi::DEVMODEW>, devmodesize: usize) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn IsValidDevmodeW(pdevmode : *const super::Gdi:: DEVMODEW, devmodesize : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn IsValidDevmodeW(pdevmode: Option<*const super::Gdi::DEVMODEW>, devmodesize: usize) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn IsValidDevmodeW(pdevmode : *const super::Gdi:: DEVMODEW, devmodesize : usize) -> windows_core::BOOL); unsafe { IsValidDevmodeW(pdevmode.unwrap_or(core::mem::zeroed()) as _, devmodesize) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -1161,7 +1161,7 @@ pub unsafe fn OpenPrinter2A(pprintername: P0, phprinter: *mut PRINTER_HANDLE where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn OpenPrinter2A(pprintername : windows_core::PCSTR, phprinter : *mut PRINTER_HANDLE, pdefault : *const PRINTER_DEFAULTSA, poptions : *const PRINTER_OPTIONSA) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn OpenPrinter2A(pprintername : windows_core::PCSTR, phprinter : *mut PRINTER_HANDLE, pdefault : *const PRINTER_DEFAULTSA, poptions : *const PRINTER_OPTIONSA) -> windows_core::BOOL); unsafe { OpenPrinter2A(pprintername.param().abi(), phprinter as _, pdefault.unwrap_or(core::mem::zeroed()) as _, poptions.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -1170,7 +1170,7 @@ pub unsafe fn OpenPrinter2W(pprintername: P0, phprinter: *mut PRINTER_HANDLE where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn OpenPrinter2W(pprintername : windows_core::PCWSTR, phprinter : *mut PRINTER_HANDLE, pdefault : *const PRINTER_DEFAULTSW, poptions : *const PRINTER_OPTIONSW) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn OpenPrinter2W(pprintername : windows_core::PCWSTR, phprinter : *mut PRINTER_HANDLE, pdefault : *const PRINTER_DEFAULTSW, poptions : *const PRINTER_OPTIONSW) -> windows_core::BOOL); unsafe { OpenPrinter2W(pprintername.param().abi(), phprinter as _, pdefault.unwrap_or(core::mem::zeroed()) as _, poptions.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -1179,7 +1179,7 @@ pub unsafe fn OpenPrinterA(pprintername: P0, phprinter: *mut PRINTER_HANDLE, where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn OpenPrinterA(pprintername : windows_core::PCSTR, phprinter : *mut PRINTER_HANDLE, pdefault : *const PRINTER_DEFAULTSA) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn OpenPrinterA(pprintername : windows_core::PCSTR, phprinter : *mut PRINTER_HANDLE, pdefault : *const PRINTER_DEFAULTSA) -> windows_core::BOOL); unsafe { OpenPrinterA(pprintername.param().abi(), phprinter as _, pdefault.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -1188,17 +1188,17 @@ pub unsafe fn OpenPrinterW(pprintername: P0, phprinter: *mut PRINTER_HANDLE, where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn OpenPrinterW(pprintername : windows_core::PCWSTR, phprinter : *mut PRINTER_HANDLE, pdefault : *const PRINTER_DEFAULTSW) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn OpenPrinterW(pprintername : windows_core::PCWSTR, phprinter : *mut PRINTER_HANDLE, pdefault : *const PRINTER_DEFAULTSW) -> windows_core::BOOL); unsafe { OpenPrinterW(pprintername.param().abi(), phprinter as _, pdefault.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn PartialReplyPrinterChangeNotification(hprinter: PRINTER_HANDLE, pdatasrc: Option<*const PRINTER_NOTIFY_INFO_DATA>) -> super::super::Foundation::BOOL { - windows_targets::link!("spoolss.dll" "system" fn PartialReplyPrinterChangeNotification(hprinter : PRINTER_HANDLE, pdatasrc : *const PRINTER_NOTIFY_INFO_DATA) -> super::super::Foundation:: BOOL); +pub unsafe fn PartialReplyPrinterChangeNotification(hprinter: PRINTER_HANDLE, pdatasrc: Option<*const PRINTER_NOTIFY_INFO_DATA>) -> windows_core::BOOL { + windows_targets::link!("spoolss.dll" "system" fn PartialReplyPrinterChangeNotification(hprinter : PRINTER_HANDLE, pdatasrc : *const PRINTER_NOTIFY_INFO_DATA) -> windows_core::BOOL); unsafe { PartialReplyPrinterChangeNotification(core::mem::transmute(hprinter), pdatasrc.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn PlayGdiScriptOnPrinterIC(hprinteric: super::super::Foundation::HANDLE, pin: &[u8], pout: &mut [u8], ul: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn PlayGdiScriptOnPrinterIC(hprinteric : super::super::Foundation:: HANDLE, pin : *const u8, cin : u32, pout : *mut u8, cout : u32, ul : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn PlayGdiScriptOnPrinterIC(hprinteric: super::super::Foundation::HANDLE, pin: &[u8], pout: &mut [u8], ul: u32) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn PlayGdiScriptOnPrinterIC(hprinteric : super::super::Foundation:: HANDLE, pin : *const u8, cin : u32, pout : *mut u8, cout : u32, ul : u32) -> windows_core::BOOL); unsafe { PlayGdiScriptOnPrinterIC(hprinteric, core::mem::transmute(pin.as_ptr()), pin.len().try_into().unwrap(), core::mem::transmute(pout.as_ptr()), pout.len().try_into().unwrap(), ul) } } #[inline] @@ -1220,23 +1220,23 @@ where unsafe { PrinterMessageBoxW(core::mem::transmute(hprinter), error, hwnd, ptext.param().abi(), pcaption.param().abi(), dwtype) } } #[inline] -pub unsafe fn PrinterProperties(hwnd: super::super::Foundation::HWND, hprinter: PRINTER_HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn PrinterProperties(hwnd : super::super::Foundation:: HWND, hprinter : PRINTER_HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn PrinterProperties(hwnd: super::super::Foundation::HWND, hprinter: PRINTER_HANDLE) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn PrinterProperties(hwnd : super::super::Foundation:: HWND, hprinter : PRINTER_HANDLE) -> windows_core::BOOL); unsafe { PrinterProperties(hwnd, core::mem::transmute(hprinter)) } } #[inline] -pub unsafe fn ProvidorFindClosePrinterChangeNotification(hprinter: PRINTER_HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("spoolss.dll" "system" fn ProvidorFindClosePrinterChangeNotification(hprinter : PRINTER_HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn ProvidorFindClosePrinterChangeNotification(hprinter: PRINTER_HANDLE) -> windows_core::BOOL { + windows_targets::link!("spoolss.dll" "system" fn ProvidorFindClosePrinterChangeNotification(hprinter : PRINTER_HANDLE) -> windows_core::BOOL); unsafe { ProvidorFindClosePrinterChangeNotification(core::mem::transmute(hprinter)) } } #[inline] -pub unsafe fn ProvidorFindFirstPrinterChangeNotification(hprinter: PRINTER_HANDLE, fdwflags: u32, fdwoptions: u32, hnotify: super::super::Foundation::HANDLE, pprinternotifyoptions: Option<*const core::ffi::c_void>, pvreserved1: Option<*mut core::ffi::c_void>) -> super::super::Foundation::BOOL { - windows_targets::link!("spoolss.dll" "system" fn ProvidorFindFirstPrinterChangeNotification(hprinter : PRINTER_HANDLE, fdwflags : u32, fdwoptions : u32, hnotify : super::super::Foundation:: HANDLE, pprinternotifyoptions : *const core::ffi::c_void, pvreserved1 : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn ProvidorFindFirstPrinterChangeNotification(hprinter: PRINTER_HANDLE, fdwflags: u32, fdwoptions: u32, hnotify: super::super::Foundation::HANDLE, pprinternotifyoptions: Option<*const core::ffi::c_void>, pvreserved1: Option<*mut core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("spoolss.dll" "system" fn ProvidorFindFirstPrinterChangeNotification(hprinter : PRINTER_HANDLE, fdwflags : u32, fdwoptions : u32, hnotify : super::super::Foundation:: HANDLE, pprinternotifyoptions : *const core::ffi::c_void, pvreserved1 : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { ProvidorFindFirstPrinterChangeNotification(core::mem::transmute(hprinter), fdwflags, fdwoptions, hnotify, pprinternotifyoptions.unwrap_or(core::mem::zeroed()) as _, pvreserved1.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn ReadPrinter(hprinter: PRINTER_HANDLE, pbuf: *mut core::ffi::c_void, cbbuf: u32, pnobytesread: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn ReadPrinter(hprinter : PRINTER_HANDLE, pbuf : *mut core::ffi::c_void, cbbuf : u32, pnobytesread : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn ReadPrinter(hprinter: PRINTER_HANDLE, pbuf: *mut core::ffi::c_void, cbbuf: u32, pnobytesread: *mut u32) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn ReadPrinter(hprinter : PRINTER_HANDLE, pbuf : *mut core::ffi::c_void, cbbuf : u32, pnobytesread : *mut u32) -> windows_core::BOOL); unsafe { ReadPrinter(core::mem::transmute(hprinter), pbuf as _, cbbuf, pnobytesread as _) } } #[inline] @@ -1257,13 +1257,13 @@ pub unsafe fn RemovePrintDeviceObject(hdeviceobject: super::super::Foundation::H unsafe { RemovePrintDeviceObject(hdeviceobject).ok() } } #[inline] -pub unsafe fn ReplyPrinterChangeNotification(hprinter: PRINTER_HANDLE, fdwchangeflags: u32, pdwresult: Option<*mut u32>, pprinternotifyinfo: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { - windows_targets::link!("spoolss.dll" "system" fn ReplyPrinterChangeNotification(hprinter : PRINTER_HANDLE, fdwchangeflags : u32, pdwresult : *mut u32, pprinternotifyinfo : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn ReplyPrinterChangeNotification(hprinter: PRINTER_HANDLE, fdwchangeflags: u32, pdwresult: Option<*mut u32>, pprinternotifyinfo: Option<*const core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("spoolss.dll" "system" fn ReplyPrinterChangeNotification(hprinter : PRINTER_HANDLE, fdwchangeflags : u32, pdwresult : *mut u32, pprinternotifyinfo : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { ReplyPrinterChangeNotification(core::mem::transmute(hprinter), fdwchangeflags, pdwresult.unwrap_or(core::mem::zeroed()) as _, pprinternotifyinfo.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn ReplyPrinterChangeNotificationEx(hnotify: super::super::Foundation::HANDLE, dwcolor: u32, fdwflags: u32, pdwresult: *mut u32, pprinternotifyinfo: *const core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("spoolss.dll" "system" fn ReplyPrinterChangeNotificationEx(hnotify : super::super::Foundation:: HANDLE, dwcolor : u32, fdwflags : u32, pdwresult : *mut u32, pprinternotifyinfo : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn ReplyPrinterChangeNotificationEx(hnotify: super::super::Foundation::HANDLE, dwcolor: u32, fdwflags: u32, pdwresult: *mut u32, pprinternotifyinfo: *const core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("spoolss.dll" "system" fn ReplyPrinterChangeNotificationEx(hnotify : super::super::Foundation:: HANDLE, dwcolor : u32, fdwflags : u32, pdwresult : *mut u32, pprinternotifyinfo : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { ReplyPrinterChangeNotificationEx(hnotify, dwcolor, fdwflags, pdwresult as _, pprinternotifyinfo) } } #[inline] @@ -1273,14 +1273,14 @@ pub unsafe fn ReportJobProcessingProgress(printerhandle: super::super::Foundatio } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ResetPrinterA(hprinter: PRINTER_HANDLE, pdefault: Option<*const PRINTER_DEFAULTSA>) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn ResetPrinterA(hprinter : PRINTER_HANDLE, pdefault : *const PRINTER_DEFAULTSA) -> super::super::Foundation:: BOOL); +pub unsafe fn ResetPrinterA(hprinter: PRINTER_HANDLE, pdefault: Option<*const PRINTER_DEFAULTSA>) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn ResetPrinterA(hprinter : PRINTER_HANDLE, pdefault : *const PRINTER_DEFAULTSA) -> windows_core::BOOL); unsafe { ResetPrinterA(core::mem::transmute(hprinter), pdefault.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ResetPrinterW(hprinter: PRINTER_HANDLE, pdefault: Option<*const PRINTER_DEFAULTSW>) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn ResetPrinterW(hprinter : PRINTER_HANDLE, pdefault : *const PRINTER_DEFAULTSW) -> super::super::Foundation:: BOOL); +pub unsafe fn ResetPrinterW(hprinter: PRINTER_HANDLE, pdefault: Option<*const PRINTER_DEFAULTSW>) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn ResetPrinterW(hprinter : PRINTER_HANDLE, pdefault : *const PRINTER_DEFAULTSW) -> windows_core::BOOL); unsafe { ResetPrinterW(core::mem::transmute(hprinter), pdefault.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1314,55 +1314,55 @@ pub unsafe fn RouterFreeBidiResponseContainer(pdata: *const BIDI_RESPONSE_CONTAI unsafe { RouterFreeBidiResponseContainer(pdata) } } #[inline] -pub unsafe fn RouterFreePrinterNotifyInfo(pinfo: Option<*const PRINTER_NOTIFY_INFO>) -> super::super::Foundation::BOOL { - windows_targets::link!("spoolss.dll" "system" fn RouterFreePrinterNotifyInfo(pinfo : *const PRINTER_NOTIFY_INFO) -> super::super::Foundation:: BOOL); +pub unsafe fn RouterFreePrinterNotifyInfo(pinfo: Option<*const PRINTER_NOTIFY_INFO>) -> windows_core::BOOL { + windows_targets::link!("spoolss.dll" "system" fn RouterFreePrinterNotifyInfo(pinfo : *const PRINTER_NOTIFY_INFO) -> windows_core::BOOL); unsafe { RouterFreePrinterNotifyInfo(pinfo.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn ScheduleJob(hprinter: PRINTER_HANDLE, jobid: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn ScheduleJob(hprinter : PRINTER_HANDLE, jobid : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn ScheduleJob(hprinter: PRINTER_HANDLE, jobid: u32) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn ScheduleJob(hprinter : PRINTER_HANDLE, jobid : u32) -> windows_core::BOOL); unsafe { ScheduleJob(core::mem::transmute(hprinter), jobid) } } #[inline] -pub unsafe fn SetCPSUIUserData(hdlg: super::super::Foundation::HWND, cpsuiuserdata: usize) -> super::super::Foundation::BOOL { - windows_targets::link!("compstui.dll" "system" fn SetCPSUIUserData(hdlg : super::super::Foundation:: HWND, cpsuiuserdata : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn SetCPSUIUserData(hdlg: super::super::Foundation::HWND, cpsuiuserdata: usize) -> windows_core::BOOL { + windows_targets::link!("compstui.dll" "system" fn SetCPSUIUserData(hdlg : super::super::Foundation:: HWND, cpsuiuserdata : usize) -> windows_core::BOOL); unsafe { SetCPSUIUserData(hdlg, cpsuiuserdata) } } #[inline] -pub unsafe fn SetDefaultPrinterA(pszprinter: P0) -> super::super::Foundation::BOOL +pub unsafe fn SetDefaultPrinterA(pszprinter: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn SetDefaultPrinterA(pszprinter : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn SetDefaultPrinterA(pszprinter : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetDefaultPrinterA(pszprinter.param().abi()) } } #[inline] -pub unsafe fn SetDefaultPrinterW(pszprinter: P0) -> super::super::Foundation::BOOL +pub unsafe fn SetDefaultPrinterW(pszprinter: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn SetDefaultPrinterW(pszprinter : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn SetDefaultPrinterW(pszprinter : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetDefaultPrinterW(pszprinter.param().abi()) } } #[inline] -pub unsafe fn SetFormA(hprinter: PRINTER_HANDLE, pformname: P1, level: u32, pform: *const u8) -> super::super::Foundation::BOOL +pub unsafe fn SetFormA(hprinter: PRINTER_HANDLE, pformname: P1, level: u32, pform: *const u8) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn SetFormA(hprinter : PRINTER_HANDLE, pformname : windows_core::PCSTR, level : u32, pform : *const u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn SetFormA(hprinter : PRINTER_HANDLE, pformname : windows_core::PCSTR, level : u32, pform : *const u8) -> windows_core::BOOL); unsafe { SetFormA(core::mem::transmute(hprinter), pformname.param().abi(), level, pform) } } #[inline] -pub unsafe fn SetFormW(hprinter: PRINTER_HANDLE, pformname: P1, level: u32, pform: *const u8) -> super::super::Foundation::BOOL +pub unsafe fn SetFormW(hprinter: PRINTER_HANDLE, pformname: P1, level: u32, pform: *const u8) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn SetFormW(hprinter : PRINTER_HANDLE, pformname : windows_core::PCWSTR, level : u32, pform : *const u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn SetFormW(hprinter : PRINTER_HANDLE, pformname : windows_core::PCWSTR, level : u32, pform : *const u8) -> windows_core::BOOL); unsafe { SetFormW(core::mem::transmute(hprinter), pformname.param().abi(), level, pform) } } #[inline] -pub unsafe fn SetJobA(hprinter: PRINTER_HANDLE, jobid: u32, level: u32, pjob: Option<*const u8>, command: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn SetJobA(hprinter : PRINTER_HANDLE, jobid : u32, level : u32, pjob : *const u8, command : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn SetJobA(hprinter: PRINTER_HANDLE, jobid: u32, level: u32, pjob: Option<*const u8>, command: u32) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn SetJobA(hprinter : PRINTER_HANDLE, jobid : u32, level : u32, pjob : *const u8, command : u32) -> windows_core::BOOL); unsafe { SetJobA(core::mem::transmute(hprinter), jobid, level, pjob.unwrap_or(core::mem::zeroed()) as _, command) } } #[inline] @@ -1371,8 +1371,8 @@ pub unsafe fn SetJobNamedProperty(hprinter: PRINTER_HANDLE, jobid: u32, ppropert unsafe { SetJobNamedProperty(core::mem::transmute(hprinter), jobid, pproperty) } } #[inline] -pub unsafe fn SetJobW(hprinter: PRINTER_HANDLE, jobid: u32, level: u32, pjob: Option<*const u8>, command: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn SetJobW(hprinter : PRINTER_HANDLE, jobid : u32, level : u32, pjob : *const u8, command : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn SetJobW(hprinter: PRINTER_HANDLE, jobid: u32, level: u32, pjob: Option<*const u8>, command: u32) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn SetJobW(hprinter : PRINTER_HANDLE, jobid : u32, level : u32, pjob : *const u8, command : u32) -> windows_core::BOOL); unsafe { SetJobW(core::mem::transmute(hprinter), jobid, level, pjob.unwrap_or(core::mem::zeroed()) as _, command) } } #[inline] @@ -1381,7 +1381,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn SetPortA(pname : windows_core::PCSTR, pportname : windows_core::PCSTR, dwlevel : u32, pportinfo : *const u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn SetPortA(pname : windows_core::PCSTR, pportname : windows_core::PCSTR, dwlevel : u32, pportinfo : *const u8) -> windows_core::BOOL); unsafe { SetPortA(pname.param().abi(), pportname.param().abi(), dwlevel, pportinfo).ok() } } #[inline] @@ -1390,12 +1390,12 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn SetPortW(pname : windows_core::PCWSTR, pportname : windows_core::PCWSTR, dwlevel : u32, pportinfo : *const u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn SetPortW(pname : windows_core::PCWSTR, pportname : windows_core::PCWSTR, dwlevel : u32, pportinfo : *const u8) -> windows_core::BOOL); unsafe { SetPortW(pname.param().abi(), pportname.param().abi(), dwlevel, pportinfo).ok() } } #[inline] pub unsafe fn SetPrinterA(hprinter: PRINTER_HANDLE, level: u32, pprinter: Option<*const u8>, command: u32) -> windows_core::Result<()> { - windows_targets::link!("winspool.drv" "system" fn SetPrinterA(hprinter : PRINTER_HANDLE, level : u32, pprinter : *const u8, command : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn SetPrinterA(hprinter : PRINTER_HANDLE, level : u32, pprinter : *const u8, command : u32) -> windows_core::BOOL); unsafe { SetPrinterA(core::mem::transmute(hprinter), level, pprinter.unwrap_or(core::mem::zeroed()) as _, command).ok() } } #[inline] @@ -1434,41 +1434,41 @@ where } #[inline] pub unsafe fn SetPrinterW(hprinter: PRINTER_HANDLE, level: u32, pprinter: Option<*const u8>, command: u32) -> windows_core::Result<()> { - windows_targets::link!("winspool.drv" "system" fn SetPrinterW(hprinter : PRINTER_HANDLE, level : u32, pprinter : *const u8, command : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn SetPrinterW(hprinter : PRINTER_HANDLE, level : u32, pprinter : *const u8, command : u32) -> windows_core::BOOL); unsafe { SetPrinterW(core::mem::transmute(hprinter), level, pprinter.unwrap_or(core::mem::zeroed()) as _, command).ok() } } #[inline] -pub unsafe fn SplIsSessionZero(hprinter: PRINTER_HANDLE, jobid: u32, pissessionzero: *mut super::super::Foundation::BOOL) -> u32 { - windows_targets::link!("spoolss.dll" "system" fn SplIsSessionZero(hprinter : PRINTER_HANDLE, jobid : u32, pissessionzero : *mut super::super::Foundation:: BOOL) -> u32); +pub unsafe fn SplIsSessionZero(hprinter: PRINTER_HANDLE, jobid: u32, pissessionzero: *mut windows_core::BOOL) -> u32 { + windows_targets::link!("spoolss.dll" "system" fn SplIsSessionZero(hprinter : PRINTER_HANDLE, jobid : u32, pissessionzero : *mut windows_core::BOOL) -> u32); unsafe { SplIsSessionZero(core::mem::transmute(hprinter), jobid, pissessionzero as _) } } #[inline] -pub unsafe fn SplPromptUIInUsersSession(hprinter: PRINTER_HANDLE, jobid: u32, puiparams: *const SHOWUIPARAMS, presponse: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("spoolss.dll" "system" fn SplPromptUIInUsersSession(hprinter : PRINTER_HANDLE, jobid : u32, puiparams : *const SHOWUIPARAMS, presponse : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn SplPromptUIInUsersSession(hprinter: PRINTER_HANDLE, jobid: u32, puiparams: *const SHOWUIPARAMS, presponse: *mut u32) -> windows_core::BOOL { + windows_targets::link!("spoolss.dll" "system" fn SplPromptUIInUsersSession(hprinter : PRINTER_HANDLE, jobid : u32, puiparams : *const SHOWUIPARAMS, presponse : *mut u32) -> windows_core::BOOL); unsafe { SplPromptUIInUsersSession(core::mem::transmute(hprinter), jobid, puiparams, presponse as _) } } #[inline] -pub unsafe fn SpoolerCopyFileEvent(pszprintername: P0, pszkey: P1, dwcopyfileevent: u32) -> super::super::Foundation::BOOL +pub unsafe fn SpoolerCopyFileEvent(pszprintername: P0, pszkey: P1, dwcopyfileevent: u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn SpoolerCopyFileEvent(pszprintername : windows_core::PCWSTR, pszkey : windows_core::PCWSTR, dwcopyfileevent : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn SpoolerCopyFileEvent(pszprintername : windows_core::PCWSTR, pszkey : windows_core::PCWSTR, dwcopyfileevent : u32) -> windows_core::BOOL); unsafe { SpoolerCopyFileEvent(pszprintername.param().abi(), pszkey.param().abi(), dwcopyfileevent) } } #[inline] -pub unsafe fn SpoolerFindClosePrinterChangeNotification(hprinter: PRINTER_HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("spoolss.dll" "system" fn SpoolerFindClosePrinterChangeNotification(hprinter : PRINTER_HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn SpoolerFindClosePrinterChangeNotification(hprinter: PRINTER_HANDLE) -> windows_core::BOOL { + windows_targets::link!("spoolss.dll" "system" fn SpoolerFindClosePrinterChangeNotification(hprinter : PRINTER_HANDLE) -> windows_core::BOOL); unsafe { SpoolerFindClosePrinterChangeNotification(core::mem::transmute(hprinter)) } } #[inline] -pub unsafe fn SpoolerFindFirstPrinterChangeNotification(hprinter: PRINTER_HANDLE, fdwfilterflags: u32, fdwoptions: u32, pprinternotifyoptions: *const core::ffi::c_void, pvreserved: Option<*const core::ffi::c_void>, pnotificationconfig: *const core::ffi::c_void, phnotify: Option<*mut super::super::Foundation::HANDLE>, phevent: Option<*mut super::super::Foundation::HANDLE>) -> super::super::Foundation::BOOL { - windows_targets::link!("spoolss.dll" "system" fn SpoolerFindFirstPrinterChangeNotification(hprinter : PRINTER_HANDLE, fdwfilterflags : u32, fdwoptions : u32, pprinternotifyoptions : *const core::ffi::c_void, pvreserved : *const core::ffi::c_void, pnotificationconfig : *const core::ffi::c_void, phnotify : *mut super::super::Foundation:: HANDLE, phevent : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn SpoolerFindFirstPrinterChangeNotification(hprinter: PRINTER_HANDLE, fdwfilterflags: u32, fdwoptions: u32, pprinternotifyoptions: *const core::ffi::c_void, pvreserved: Option<*const core::ffi::c_void>, pnotificationconfig: *const core::ffi::c_void, phnotify: Option<*mut super::super::Foundation::HANDLE>, phevent: Option<*mut super::super::Foundation::HANDLE>) -> windows_core::BOOL { + windows_targets::link!("spoolss.dll" "system" fn SpoolerFindFirstPrinterChangeNotification(hprinter : PRINTER_HANDLE, fdwfilterflags : u32, fdwoptions : u32, pprinternotifyoptions : *const core::ffi::c_void, pvreserved : *const core::ffi::c_void, pnotificationconfig : *const core::ffi::c_void, phnotify : *mut super::super::Foundation:: HANDLE, phevent : *mut super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SpoolerFindFirstPrinterChangeNotification(core::mem::transmute(hprinter), fdwfilterflags, fdwoptions, pprinternotifyoptions, pvreserved.unwrap_or(core::mem::zeroed()) as _, pnotificationconfig, phnotify.unwrap_or(core::mem::zeroed()) as _, phevent.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn SpoolerFindNextPrinterChangeNotification(hprinter: PRINTER_HANDLE, pfdwchange: *mut u32, pprinternotifyoptions: Option<*const core::ffi::c_void>, ppprinternotifyinfo: Option<*mut *mut core::ffi::c_void>) -> super::super::Foundation::BOOL { - windows_targets::link!("spoolss.dll" "system" fn SpoolerFindNextPrinterChangeNotification(hprinter : PRINTER_HANDLE, pfdwchange : *mut u32, pprinternotifyoptions : *const core::ffi::c_void, ppprinternotifyinfo : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn SpoolerFindNextPrinterChangeNotification(hprinter: PRINTER_HANDLE, pfdwchange: *mut u32, pprinternotifyoptions: Option<*const core::ffi::c_void>, ppprinternotifyinfo: Option<*mut *mut core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("spoolss.dll" "system" fn SpoolerFindNextPrinterChangeNotification(hprinter : PRINTER_HANDLE, pfdwchange : *mut u32, pprinternotifyoptions : *const core::ffi::c_void, ppprinternotifyinfo : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { SpoolerFindNextPrinterChangeNotification(core::mem::transmute(hprinter), pfdwchange as _, pprinternotifyoptions.unwrap_or(core::mem::zeroed()) as _, ppprinternotifyinfo.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1477,8 +1477,8 @@ pub unsafe fn SpoolerFreePrinterNotifyInfo(pinfo: *const PRINTER_NOTIFY_INFO) { unsafe { SpoolerFreePrinterNotifyInfo(pinfo) } } #[inline] -pub unsafe fn SpoolerRefreshPrinterChangeNotification(hprinter: PRINTER_HANDLE, dwcolor: u32, poptions: *const PRINTER_NOTIFY_OPTIONS, ppinfo: Option<*mut *mut PRINTER_NOTIFY_INFO>) -> super::super::Foundation::BOOL { - windows_targets::link!("spoolss.dll" "system" fn SpoolerRefreshPrinterChangeNotification(hprinter : PRINTER_HANDLE, dwcolor : u32, poptions : *const PRINTER_NOTIFY_OPTIONS, ppinfo : *mut *mut PRINTER_NOTIFY_INFO) -> super::super::Foundation:: BOOL); +pub unsafe fn SpoolerRefreshPrinterChangeNotification(hprinter: PRINTER_HANDLE, dwcolor: u32, poptions: *const PRINTER_NOTIFY_OPTIONS, ppinfo: Option<*mut *mut PRINTER_NOTIFY_INFO>) -> windows_core::BOOL { + windows_targets::link!("spoolss.dll" "system" fn SpoolerRefreshPrinterChangeNotification(hprinter : PRINTER_HANDLE, dwcolor : u32, poptions : *const PRINTER_NOTIFY_OPTIONS, ppinfo : *mut *mut PRINTER_NOTIFY_INFO) -> windows_core::BOOL); unsafe { SpoolerRefreshPrinterChangeNotification(core::mem::transmute(hprinter), dwcolor, poptions, ppinfo.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1492,8 +1492,8 @@ pub unsafe fn StartDocPrinterW(hprinter: PRINTER_HANDLE, level: u32, pdocinfo: * unsafe { StartDocPrinterW(core::mem::transmute(hprinter), level, pdocinfo) } } #[inline] -pub unsafe fn StartPagePrinter(hprinter: PRINTER_HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn StartPagePrinter(hprinter : PRINTER_HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn StartPagePrinter(hprinter: PRINTER_HANDLE) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn StartPagePrinter(hprinter : PRINTER_HANDLE) -> windows_core::BOOL); unsafe { StartPagePrinter(core::mem::transmute(hprinter)) } } #[inline] @@ -1532,16 +1532,16 @@ pub unsafe fn WaitForPrinterChange(hprinter: PRINTER_HANDLE, flags: u32) -> u32 unsafe { WaitForPrinterChange(core::mem::transmute(hprinter), flags) } } #[inline] -pub unsafe fn WritePrinter(hprinter: PRINTER_HANDLE, pbuf: *const core::ffi::c_void, cbbuf: u32, pcwritten: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winspool.drv" "system" fn WritePrinter(hprinter : PRINTER_HANDLE, pbuf : *const core::ffi::c_void, cbbuf : u32, pcwritten : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn WritePrinter(hprinter: PRINTER_HANDLE, pbuf: *const core::ffi::c_void, cbbuf: u32, pcwritten: *mut u32) -> windows_core::BOOL { + windows_targets::link!("winspool.drv" "system" fn WritePrinter(hprinter : PRINTER_HANDLE, pbuf : *const core::ffi::c_void, cbbuf : u32, pcwritten : *mut u32) -> windows_core::BOOL); unsafe { WritePrinter(core::mem::transmute(hprinter), pbuf, cbbuf, pcwritten as _) } } #[inline] -pub unsafe fn XcvDataW(hxcv: super::super::Foundation::HANDLE, pszdataname: P1, pinputdata: Option<&[u8]>, poutputdata: Option<&mut [u8]>, pcboutputneeded: *mut u32, pdwstatus: Option<*mut u32>) -> super::super::Foundation::BOOL +pub unsafe fn XcvDataW(hxcv: super::super::Foundation::HANDLE, pszdataname: P1, pinputdata: Option<&[u8]>, poutputdata: Option<&mut [u8]>, pcboutputneeded: *mut u32, pdwstatus: Option<*mut u32>) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("winspool.drv" "system" fn XcvDataW(hxcv : super::super::Foundation:: HANDLE, pszdataname : windows_core::PCWSTR, pinputdata : *const u8, cbinputdata : u32, poutputdata : *mut u8, cboutputdata : u32, pcboutputneeded : *mut u32, pdwstatus : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winspool.drv" "system" fn XcvDataW(hxcv : super::super::Foundation:: HANDLE, pszdataname : windows_core::PCWSTR, pinputdata : *const u8, cbinputdata : u32, poutputdata : *mut u8, cboutputdata : u32, pcboutputneeded : *mut u32, pdwstatus : *mut u32) -> windows_core::BOOL); unsafe { XcvDataW(hxcv, pszdataname.param().abi(), core::mem::transmute(pinputdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pinputdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(poutputdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), poutputdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcboutputneeded as _, pdwstatus.unwrap_or(core::mem::zeroed()) as _) } } #[repr(C)] @@ -1677,7 +1677,7 @@ impl Default for BIDI_DATA { #[repr(C)] #[derive(Clone, Copy)] pub union BIDI_DATA_0 { - pub bData: super::super::Foundation::BOOL, + pub bData: windows_core::BOOL, pub iData: i32, pub sData: windows_core::PWSTR, pub fData: f32, @@ -2413,7 +2413,7 @@ pub struct DOCEVENT_CREATEDCPRE { pub pszDriver: windows_core::PWSTR, pub pszDevice: windows_core::PWSTR, pub pdm: *mut super::Gdi::DEVMODEW, - pub bIC: super::super::Foundation::BOOL, + pub bIC: windows_core::BOOL, } #[cfg(feature = "Win32_Graphics_Gdi")] impl Default for DOCEVENT_CREATEDCPRE { @@ -2585,7 +2585,7 @@ pub struct DOC_INFO_INTERNAL { pub pDocName: *mut i8, pub pOutputFile: *mut i8, pub pDatatype: *mut i8, - pub bLowILJob: super::super::Foundation::BOOL, + pub bLowILJob: windows_core::BOOL, pub hTokenLowIL: super::super::Foundation::HANDLE, } impl Default for DOC_INFO_INTERNAL { @@ -3270,14 +3270,14 @@ impl IAsyncGetSendNotificationCookie { #[repr(C)] pub struct IAsyncGetSendNotificationCookie_Vtbl { pub base__: IPrintAsyncCookie_Vtbl, - pub FinishAsyncCallWithData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub FinishAsyncCallWithData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAsyncGetSendNotificationCookie_Impl: IPrintAsyncCookie_Impl { - fn FinishAsyncCallWithData(&self, param0: windows_core::Ref, param1: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn FinishAsyncCallWithData(&self, param0: windows_core::Ref, param1: windows_core::BOOL) -> windows_core::Result<()>; } impl IAsyncGetSendNotificationCookie_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn FinishAsyncCallWithData(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn FinishAsyncCallWithData(this: *mut core::ffi::c_void, param0: *mut core::ffi::c_void, param1: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAsyncGetSendNotificationCookie_Impl::FinishAsyncCallWithData(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() @@ -5729,7 +5729,7 @@ pub struct IPrintCoreHelper_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetOption: usize, #[cfg(feature = "Win32_Graphics_Gdi")] - pub SetOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::Gdi::DEVMODEA, u32, super::super::Foundation::BOOL, *const PRINT_FEATURE_OPTION, u32, *mut u32, *mut u32) -> windows_core::HRESULT, + pub SetOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::Gdi::DEVMODEA, u32, windows_core::BOOL, *const PRINT_FEATURE_OPTION, u32, *mut u32, *mut u32) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] SetOptions: usize, #[cfg(feature = "Win32_Graphics_Gdi")] @@ -5749,7 +5749,7 @@ pub struct IPrintCoreHelper_Vtbl { #[cfg(feature = "Win32_Graphics_Gdi")] pub trait IPrintCoreHelper_Impl: windows_core::IUnknownImpl { fn GetOption(&self, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturerequested: &windows_core::PCSTR) -> windows_core::Result; - fn SetOptions(&self, pdevmode: *mut super::Gdi::DEVMODEA, cbsize: u32, bresolveconflicts: super::super::Foundation::BOOL, pfopairs: *const PRINT_FEATURE_OPTION, cpairs: u32, pcpairswritten: *mut u32, pdwresult: *mut u32) -> windows_core::Result<()>; + fn SetOptions(&self, pdevmode: *mut super::Gdi::DEVMODEA, cbsize: u32, bresolveconflicts: windows_core::BOOL, pfopairs: *const PRINT_FEATURE_OPTION, cpairs: u32, pcpairswritten: *mut u32, pdwresult: *mut u32) -> windows_core::Result<()>; fn EnumConstrainedOptions(&self, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturekeyword: &windows_core::PCSTR, pconstrainedoptionlist: *const *const *const windows_core::PCSTR, pdwnumoptions: *mut u32) -> windows_core::Result<()>; fn WhyConstrained(&self, pdevmode: *const super::Gdi::DEVMODEA, cbsize: u32, pszfeaturekeyword: &windows_core::PCSTR, pszoptionkeyword: &windows_core::PCSTR, ppfoconstraints: *mut *mut PRINT_FEATURE_OPTION, pdwnumoptions: *mut u32) -> windows_core::Result<()>; fn EnumFeatures(&self, pfeaturelist: *mut *mut *mut windows_core::PCSTR, pdwnumfeatures: *mut u32) -> windows_core::Result<()>; @@ -5773,7 +5773,7 @@ impl IPrintCoreHelper_Vtbl { } } } - unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, pdevmode: *mut super::Gdi::DEVMODEA, cbsize: u32, bresolveconflicts: super::super::Foundation::BOOL, pfopairs: *const PRINT_FEATURE_OPTION, cpairs: u32, pcpairswritten: *mut u32, pdwresult: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn SetOptions(this: *mut core::ffi::c_void, pdevmode: *mut super::Gdi::DEVMODEA, cbsize: u32, bresolveconflicts: windows_core::BOOL, pfopairs: *const PRINT_FEATURE_OPTION, cpairs: u32, pcpairswritten: *mut u32, pdwresult: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintCoreHelper_Impl::SetOptions(this, core::mem::transmute_copy(&pdevmode), core::mem::transmute_copy(&cbsize), core::mem::transmute_copy(&bresolveconflicts), core::mem::transmute_copy(&pfopairs), core::mem::transmute_copy(&cpairs), core::mem::transmute_copy(&pcpairswritten), core::mem::transmute_copy(&pdwresult)).into() @@ -7109,7 +7109,7 @@ impl IPrintPipelinePropertyBag { (windows_core::Interface::vtable(self).GetProperty)(windows_core::Interface::as_raw(self), pszname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn DeleteProperty(&self, pszname: P0) -> super::super::Foundation::BOOL + pub unsafe fn DeleteProperty(&self, pszname: P0) -> windows_core::BOOL where P0: windows_core::Param, { @@ -7127,13 +7127,13 @@ pub struct IPrintPipelinePropertyBag_Vtbl { pub GetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetProperty: usize, - pub DeleteProperty: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> super::super::Foundation::BOOL, + pub DeleteProperty: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::BOOL, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IPrintPipelinePropertyBag_Impl: windows_core::IUnknownImpl { fn AddProperty(&self, pszname: &windows_core::PCWSTR, pvar: *const super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn GetProperty(&self, pszname: &windows_core::PCWSTR) -> windows_core::Result; - fn DeleteProperty(&self, pszname: &windows_core::PCWSTR) -> super::super::Foundation::BOOL; + fn DeleteProperty(&self, pszname: &windows_core::PCWSTR) -> windows_core::BOOL; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IPrintPipelinePropertyBag_Vtbl { @@ -7156,7 +7156,7 @@ impl IPrintPipelinePropertyBag_Vtbl { } } } - unsafe extern "system" fn DeleteProperty(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> super::super::Foundation::BOOL { + unsafe extern "system" fn DeleteProperty(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintPipelinePropertyBag_Impl::DeleteProperty(this, core::mem::transmute(&pszname)) @@ -7248,7 +7248,7 @@ impl IPrintReadStream { pub unsafe fn Seek(&self, dlibmove: i64, dworigin: u32, plibnewposition: Option<*mut u64>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Seek)(windows_core::Interface::as_raw(self), dlibmove, dworigin, plibnewposition.unwrap_or(core::mem::zeroed()) as _).ok() } } - pub unsafe fn ReadBytes(&self, pvbuffer: *mut core::ffi::c_void, cbrequested: u32, pcbread: *mut u32, pbendoffile: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn ReadBytes(&self, pvbuffer: *mut core::ffi::c_void, cbrequested: u32, pcbread: *mut u32, pbendoffile: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).ReadBytes)(windows_core::Interface::as_raw(self), pvbuffer as _, cbrequested, pcbread as _, pbendoffile as _).ok() } } } @@ -7256,11 +7256,11 @@ impl IPrintReadStream { pub struct IPrintReadStream_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Seek: unsafe extern "system" fn(*mut core::ffi::c_void, i64, u32, *mut u64) -> windows_core::HRESULT, - pub ReadBytes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ReadBytes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IPrintReadStream_Impl: windows_core::IUnknownImpl { fn Seek(&self, dlibmove: i64, dworigin: u32, plibnewposition: *mut u64) -> windows_core::Result<()>; - fn ReadBytes(&self, pvbuffer: *mut core::ffi::c_void, cbrequested: u32, pcbread: *mut u32, pbendoffile: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ReadBytes(&self, pvbuffer: *mut core::ffi::c_void, cbrequested: u32, pcbread: *mut u32, pbendoffile: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IPrintReadStream_Vtbl { pub const fn new() -> Self { @@ -7270,7 +7270,7 @@ impl IPrintReadStream_Vtbl { IPrintReadStream_Impl::Seek(this, core::mem::transmute_copy(&dlibmove), core::mem::transmute_copy(&dworigin), core::mem::transmute_copy(&plibnewposition)).into() } } - unsafe extern "system" fn ReadBytes(this: *mut core::ffi::c_void, pvbuffer: *mut core::ffi::c_void, cbrequested: u32, pcbread: *mut u32, pbendoffile: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ReadBytes(this: *mut core::ffi::c_void, pvbuffer: *mut core::ffi::c_void, cbrequested: u32, pcbread: *mut u32, pbendoffile: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrintReadStream_Impl::ReadBytes(this, core::mem::transmute_copy(&pvbuffer), core::mem::transmute_copy(&cbrequested), core::mem::transmute_copy(&pcbread), core::mem::transmute_copy(&pbendoffile)).into() @@ -7857,7 +7857,7 @@ impl IPrintSchemaFeature { (windows_core::Interface::vtable(self).GetOption)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), core::mem::transmute_copy(bstrnamespaceuri), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn DisplayUI(&self) -> windows_core::Result { + pub unsafe fn DisplayUI(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7872,7 +7872,7 @@ pub struct IPrintSchemaFeature_Vtbl { pub SetSelectedOption: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SelectionType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PrintSchemaSelectionType) -> windows_core::HRESULT, pub GetOption: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub DisplayUI: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub DisplayUI: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IPrintSchemaFeature_Impl: IPrintSchemaDisplayableElement_Impl { @@ -7880,7 +7880,7 @@ pub trait IPrintSchemaFeature_Impl: IPrintSchemaDisplayableElement_Impl { fn SetSelectedOption(&self, poption: windows_core::Ref) -> windows_core::Result<()>; fn SelectionType(&self) -> windows_core::Result; fn GetOption(&self, bstrname: &windows_core::BSTR, bstrnamespaceuri: &windows_core::BSTR) -> windows_core::Result; - fn DisplayUI(&self) -> windows_core::Result; + fn DisplayUI(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IPrintSchemaFeature_Vtbl { @@ -7927,7 +7927,7 @@ impl IPrintSchemaFeature_Vtbl { } } } - unsafe extern "system" fn DisplayUI(this: *mut core::ffi::c_void, pbshow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DisplayUI(this: *mut core::ffi::c_void, pbshow: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaFeature_Impl::DisplayUI(this) { @@ -8020,7 +8020,7 @@ impl core::ops::Deref for IPrintSchemaOption { 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 Selected(&self) -> windows_core::Result { + pub unsafe fn Selected(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Selected)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -8043,20 +8043,20 @@ impl IPrintSchemaOption { #[repr(C)] pub struct IPrintSchemaOption_Vtbl { pub base__: IPrintSchemaDisplayableElement_Vtbl, - pub Selected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Selected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Constrained: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PrintSchemaConstrainedSetting) -> windows_core::HRESULT, pub GetPropertyValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IPrintSchemaOption_Impl: IPrintSchemaDisplayableElement_Impl { - fn Selected(&self) -> windows_core::Result; + fn Selected(&self) -> windows_core::Result; fn Constrained(&self) -> windows_core::Result; fn GetPropertyValue(&self, bstrname: &windows_core::BSTR, bstrnamespaceuri: &windows_core::BSTR) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IPrintSchemaOption_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Selected(this: *mut core::ffi::c_void, pbisselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Selected(this: *mut core::ffi::c_void, pbisselected: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaOption_Impl::Selected(this) { @@ -8454,7 +8454,7 @@ impl core::ops::Deref for IPrintSchemaParameterDefinition { 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 UserInputRequired(&self) -> windows_core::Result { + pub unsafe fn UserInputRequired(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).UserInputRequired)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -8489,7 +8489,7 @@ impl IPrintSchemaParameterDefinition { #[repr(C)] pub struct IPrintSchemaParameterDefinition_Vtbl { pub base__: IPrintSchemaDisplayableElement_Vtbl, - pub UserInputRequired: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub UserInputRequired: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub UnitType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DataType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PrintSchemaParameterDataType) -> windows_core::HRESULT, pub RangeMin: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, @@ -8497,7 +8497,7 @@ pub struct IPrintSchemaParameterDefinition_Vtbl { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IPrintSchemaParameterDefinition_Impl: IPrintSchemaDisplayableElement_Impl { - fn UserInputRequired(&self) -> windows_core::Result; + fn UserInputRequired(&self) -> windows_core::Result; fn UnitType(&self) -> windows_core::Result; fn DataType(&self) -> windows_core::Result; fn RangeMin(&self) -> windows_core::Result; @@ -8506,7 +8506,7 @@ pub trait IPrintSchemaParameterDefinition_Impl: IPrintSchemaDisplayableElement_I #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IPrintSchemaParameterDefinition_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn UserInputRequired(this: *mut core::ffi::c_void, pbisrequired: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn UserInputRequired(this: *mut core::ffi::c_void, pbisrequired: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintSchemaParameterDefinition_Impl::UserInputRequired(this) { @@ -9630,7 +9630,7 @@ impl IPrinterExtensionEventArgs { (windows_core::Interface::vtable(self).DetailedReasonId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn WindowModal(&self) -> windows_core::Result { + pub unsafe fn WindowModal(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).WindowModal)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9652,7 +9652,7 @@ pub struct IPrinterExtensionEventArgs_Vtbl { pub Request: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SourceApplication: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DetailedReasonId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - pub WindowModal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub WindowModal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub WindowParent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -9662,7 +9662,7 @@ pub trait IPrinterExtensionEventArgs_Impl: IPrinterExtensionContext_Impl { fn Request(&self) -> windows_core::Result; fn SourceApplication(&self) -> windows_core::Result; fn DetailedReasonId(&self) -> windows_core::Result; - fn WindowModal(&self) -> windows_core::Result; + fn WindowModal(&self) -> windows_core::Result; fn WindowParent(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -9728,7 +9728,7 @@ impl IPrinterExtensionEventArgs_Vtbl { } } } - unsafe extern "system" fn WindowModal(this: *mut core::ffi::c_void, pbmodal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn WindowModal(this: *mut core::ffi::c_void, pbmodal: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterExtensionEventArgs_Impl::WindowModal(this) { @@ -9886,7 +9886,7 @@ impl core::ops::Deref for IPrinterPropertyBag { 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: &windows_core::BSTR) -> windows_core::Result { + pub unsafe fn GetBool(&self, bstrname: &windows_core::BSTR) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBool)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), &mut result__).map(|| result__) @@ -9936,8 +9936,8 @@ impl IPrinterPropertyBag { #[repr(C)] pub struct IPrinterPropertyBag_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - pub GetBool: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetBool: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetBool: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetBool: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetInt32: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetInt32: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub GetString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -9949,8 +9949,8 @@ pub struct IPrinterPropertyBag_Vtbl { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IPrinterPropertyBag_Impl: super::super::System::Com::IDispatch_Impl { - fn GetBool(&self, bstrname: &windows_core::BSTR) -> windows_core::Result; - fn SetBool(&self, bstrname: &windows_core::BSTR, bvalue: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetBool(&self, bstrname: &windows_core::BSTR) -> windows_core::Result; + fn SetBool(&self, bstrname: &windows_core::BSTR, bvalue: windows_core::BOOL) -> windows_core::Result<()>; fn GetInt32(&self, bstrname: &windows_core::BSTR) -> windows_core::Result; fn SetInt32(&self, bstrname: &windows_core::BSTR, nvalue: i32) -> windows_core::Result<()>; fn GetString(&self, bstrname: &windows_core::BSTR) -> windows_core::Result; @@ -9963,7 +9963,7 @@ pub trait IPrinterPropertyBag_Impl: super::super::System::Com::IDispatch_Impl { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IPrinterPropertyBag_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetBool(this: *mut core::ffi::c_void, bstrname: *mut core::ffi::c_void, pbvalue: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetBool(this: *mut core::ffi::c_void, bstrname: *mut core::ffi::c_void, pbvalue: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterPropertyBag_Impl::GetBool(this, core::mem::transmute(&bstrname)) { @@ -9975,7 +9975,7 @@ impl IPrinterPropertyBag_Vtbl { } } } - unsafe extern "system" fn SetBool(this: *mut core::ffi::c_void, bstrname: *mut core::ffi::c_void, bvalue: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBool(this: *mut core::ffi::c_void, bstrname: *mut core::ffi::c_void, bvalue: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterPropertyBag_Impl::SetBool(this, core::mem::transmute(&bstrname), core::mem::transmute_copy(&bvalue)).into() @@ -10509,7 +10509,7 @@ impl core::ops::Deref for IPrinterScriptablePropertyBag { 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: &windows_core::BSTR) -> windows_core::Result { + pub unsafe fn GetBool(&self, bstrname: &windows_core::BSTR) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBool)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrname), &mut result__).map(|| result__) @@ -10565,8 +10565,8 @@ impl IPrinterScriptablePropertyBag { #[repr(C)] pub struct IPrinterScriptablePropertyBag_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - pub GetBool: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetBool: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetBool: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetBool: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetInt32: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetInt32: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub GetString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -10578,8 +10578,8 @@ pub struct IPrinterScriptablePropertyBag_Vtbl { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IPrinterScriptablePropertyBag_Impl: super::super::System::Com::IDispatch_Impl { - fn GetBool(&self, bstrname: &windows_core::BSTR) -> windows_core::Result; - fn SetBool(&self, bstrname: &windows_core::BSTR, bvalue: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetBool(&self, bstrname: &windows_core::BSTR) -> windows_core::Result; + fn SetBool(&self, bstrname: &windows_core::BSTR, bvalue: windows_core::BOOL) -> windows_core::Result<()>; fn GetInt32(&self, bstrname: &windows_core::BSTR) -> windows_core::Result; fn SetInt32(&self, bstrname: &windows_core::BSTR, nvalue: i32) -> windows_core::Result<()>; fn GetString(&self, bstrname: &windows_core::BSTR) -> windows_core::Result; @@ -10592,7 +10592,7 @@ pub trait IPrinterScriptablePropertyBag_Impl: super::super::System::Com::IDispat #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IPrinterScriptablePropertyBag_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetBool(this: *mut core::ffi::c_void, bstrname: *mut core::ffi::c_void, pbvalue: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetBool(this: *mut core::ffi::c_void, bstrname: *mut core::ffi::c_void, pbvalue: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrinterScriptablePropertyBag_Impl::GetBool(this, core::mem::transmute(&bstrname)) { @@ -10604,7 +10604,7 @@ impl IPrinterScriptablePropertyBag_Vtbl { } } } - unsafe extern "system" fn SetBool(this: *mut core::ffi::c_void, bstrname: *mut core::ffi::c_void, bvalue: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBool(this: *mut core::ffi::c_void, bstrname: *mut core::ffi::c_void, bvalue: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPrinterScriptablePropertyBag_Impl::SetBool(this, core::mem::transmute(&bstrname), core::mem::transmute_copy(&bvalue)).into() @@ -11145,7 +11145,7 @@ impl IXpsPartIterator { pub unsafe fn Current(&self, puri: *mut windows_core::BSTR, ppxpspart: *mut Option) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Current)(windows_core::Interface::as_raw(self), core::mem::transmute(puri), core::mem::transmute(ppxpspart)).ok() } } - pub unsafe fn IsDone(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsDone(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsDone)(windows_core::Interface::as_raw(self)) } } pub unsafe fn Next(&self) { @@ -11157,13 +11157,13 @@ pub struct IXpsPartIterator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Reset: unsafe extern "system" fn(*mut core::ffi::c_void), pub Current: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsDone: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsDone: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub Next: unsafe extern "system" fn(*mut core::ffi::c_void), } pub trait IXpsPartIterator_Impl: windows_core::IUnknownImpl { fn Reset(&self); fn Current(&self, puri: *mut windows_core::BSTR, ppxpspart: windows_core::OutRef<'_, windows_core::IUnknown>) -> windows_core::Result<()>; - fn IsDone(&self) -> super::super::Foundation::BOOL; + fn IsDone(&self) -> windows_core::BOOL; fn Next(&self); } impl IXpsPartIterator_Vtbl { @@ -11180,7 +11180,7 @@ impl IXpsPartIterator_Vtbl { IXpsPartIterator_Impl::Current(this, core::mem::transmute_copy(&puri), core::mem::transmute_copy(&ppxpspart)).into() } } - unsafe extern "system" fn IsDone(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsDone(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsPartIterator_Impl::IsDone(this) @@ -11769,7 +11769,7 @@ pub struct MESSAGEBOX_PARAMS { pub pMessage: windows_core::PWSTR, pub Style: u32, pub dwTimeout: u32, - pub bWait: super::super::Foundation::BOOL, + pub bWait: windows_core::BOOL, } impl Default for MESSAGEBOX_PARAMS { fn default() -> Self { @@ -11860,7 +11860,7 @@ pub struct MONITORINIT { pub hSpooler: super::super::Foundation::HANDLE, pub hckRegistryRoot: super::super::System::Registry::HKEY, pub pMonitorReg: *mut MONITORREG, - pub bLocal: super::super::Foundation::BOOL, + pub bLocal: windows_core::BOOL, pub pszServerName: windows_core::PCWSTR, } #[cfg(feature = "Win32_System_Registry")] @@ -12439,53 +12439,53 @@ pub const PDEV_HOSTFONT_ENABLED_TYPE: u32 = 2u32; pub const PDEV_USE_TRUE_COLOR_TYPE: u32 = 3u32; pub type PFNCOMPROPSHEET = Option isize>; pub type PFNPROPSHEETUI = Option i32>; -pub type PFN_DrvGetDriverSetting = Option super::super::Foundation::BOOL>; -pub type PFN_DrvUpdateUISetting = Option super::super::Foundation::BOOL>; -pub type PFN_DrvUpgradeRegistrySetting = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_ADDPORT = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_ADDPORT2 = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_ADDPORTEX = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_ADDPORTEX2 = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_CLOSEPORT = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_CLOSEPORT2 = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_CONFIGUREPORT = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_CONFIGUREPORT2 = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_DELETEPORT = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_DELETEPORT2 = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_ENDDOCPORT = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_ENDDOCPORT2 = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_ENUMPORTS = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_ENUMPORTS2 = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_GETPRINTERDATAFROMPORT = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_GETPRINTERDATAFROMPORT2 = Option super::super::Foundation::BOOL>; +pub type PFN_DrvGetDriverSetting = Option windows_core::BOOL>; +pub type PFN_DrvUpdateUISetting = Option windows_core::BOOL>; +pub type PFN_DrvUpgradeRegistrySetting = Option windows_core::BOOL>; +pub type PFN_PRINTING_ADDPORT = Option windows_core::BOOL>; +pub type PFN_PRINTING_ADDPORT2 = Option windows_core::BOOL>; +pub type PFN_PRINTING_ADDPORTEX = Option windows_core::BOOL>; +pub type PFN_PRINTING_ADDPORTEX2 = Option windows_core::BOOL>; +pub type PFN_PRINTING_CLOSEPORT = Option windows_core::BOOL>; +pub type PFN_PRINTING_CLOSEPORT2 = Option windows_core::BOOL>; +pub type PFN_PRINTING_CONFIGUREPORT = Option windows_core::BOOL>; +pub type PFN_PRINTING_CONFIGUREPORT2 = Option windows_core::BOOL>; +pub type PFN_PRINTING_DELETEPORT = Option windows_core::BOOL>; +pub type PFN_PRINTING_DELETEPORT2 = Option windows_core::BOOL>; +pub type PFN_PRINTING_ENDDOCPORT = Option windows_core::BOOL>; +pub type PFN_PRINTING_ENDDOCPORT2 = Option windows_core::BOOL>; +pub type PFN_PRINTING_ENUMPORTS = Option windows_core::BOOL>; +pub type PFN_PRINTING_ENUMPORTS2 = Option windows_core::BOOL>; +pub type PFN_PRINTING_GETPRINTERDATAFROMPORT = Option windows_core::BOOL>; +pub type PFN_PRINTING_GETPRINTERDATAFROMPORT2 = Option windows_core::BOOL>; pub type PFN_PRINTING_NOTIFYUNUSEDPORTS2 = Option u32>; pub type PFN_PRINTING_NOTIFYUSEDPORTS2 = Option u32>; -pub type PFN_PRINTING_OPENPORT = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_OPENPORT2 = Option super::super::Foundation::BOOL>; +pub type PFN_PRINTING_OPENPORT = Option windows_core::BOOL>; +pub type PFN_PRINTING_OPENPORT2 = Option windows_core::BOOL>; #[cfg(all(feature = "Win32_Devices_Communication", feature = "Win32_System_Power"))] -pub type PFN_PRINTING_OPENPORTEX = Option super::super::Foundation::BOOL>; +pub type PFN_PRINTING_OPENPORTEX = Option windows_core::BOOL>; #[cfg(all(feature = "Win32_Devices_Communication", feature = "Win32_System_Power"))] -pub type PFN_PRINTING_OPENPORTEX2 = Option super::super::Foundation::BOOL>; +pub type PFN_PRINTING_OPENPORTEX2 = Option windows_core::BOOL>; #[cfg(feature = "Win32_System_Power")] pub type PFN_PRINTING_POWEREVENT2 = Option u32>; -pub type PFN_PRINTING_READPORT = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_READPORT2 = Option super::super::Foundation::BOOL>; +pub type PFN_PRINTING_READPORT = Option windows_core::BOOL>; +pub type PFN_PRINTING_READPORT2 = Option windows_core::BOOL>; pub type PFN_PRINTING_SENDRECVBIDIDATAFROMPORT2 = Option u32>; #[cfg(feature = "Win32_Devices_Communication")] -pub type PFN_PRINTING_SETPORTTIMEOUTS = Option super::super::Foundation::BOOL>; +pub type PFN_PRINTING_SETPORTTIMEOUTS = Option windows_core::BOOL>; #[cfg(feature = "Win32_Devices_Communication")] -pub type PFN_PRINTING_SETPORTTIMEOUTS2 = Option super::super::Foundation::BOOL>; +pub type PFN_PRINTING_SETPORTTIMEOUTS2 = Option windows_core::BOOL>; pub type PFN_PRINTING_SHUTDOWN2 = Option; -pub type PFN_PRINTING_STARTDOCPORT = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_STARTDOCPORT2 = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_WRITEPORT = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_WRITEPORT2 = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_XCVCLOSEPORT = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_XCVCLOSEPORT2 = Option super::super::Foundation::BOOL>; +pub type PFN_PRINTING_STARTDOCPORT = Option windows_core::BOOL>; +pub type PFN_PRINTING_STARTDOCPORT2 = Option windows_core::BOOL>; +pub type PFN_PRINTING_WRITEPORT = Option windows_core::BOOL>; +pub type PFN_PRINTING_WRITEPORT2 = Option windows_core::BOOL>; +pub type PFN_PRINTING_XCVCLOSEPORT = Option windows_core::BOOL>; +pub type PFN_PRINTING_XCVCLOSEPORT2 = Option windows_core::BOOL>; pub type PFN_PRINTING_XCVDATAPORT = Option u32>; pub type PFN_PRINTING_XCVDATAPORT2 = Option u32>; -pub type PFN_PRINTING_XCVOPENPORT = Option super::super::Foundation::BOOL>; -pub type PFN_PRINTING_XCVOPENPORT2 = Option super::super::Foundation::BOOL>; +pub type PFN_PRINTING_XCVOPENPORT = Option windows_core::BOOL>; +pub type PFN_PRINTING_XCVOPENPORT2 = Option windows_core::BOOL>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct PORT_DATA_1 { @@ -13904,7 +13904,7 @@ pub const REMOTE_ONLY_REGISTRATION: PrintAsyncNotifyError = PrintAsyncNotifyErro pub const REVERSE_PAGES_FOR_REVERSE_DUPLEX: u32 = 1u32; pub const REVERSE_PRINT: u32 = 1u32; pub const RIGHT_THEN_DOWN: u32 = 1u32; -pub type ROUTER_NOTIFY_CALLBACK = Option super::super::Foundation::BOOL>; +pub type ROUTER_NOTIFY_CALLBACK = Option windows_core::BOOL>; pub const ROUTER_STOP_ROUTING: u32 = 2u32; pub const ROUTER_SUCCESS: u32 = 1u32; pub const ROUTER_UNKNOWN: u32 = 0u32; diff --git a/crates/libs/windows/src/Windows/Win32/Management/MobileDeviceManagementRegistration/mod.rs b/crates/libs/windows/src/Windows/Win32/Management/MobileDeviceManagementRegistration/mod.rs index 7f525a9da5..44d008de6c 100644 --- a/crates/libs/windows/src/Windows/Win32/Management/MobileDeviceManagementRegistration/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Management/MobileDeviceManagementRegistration/mod.rs @@ -48,29 +48,29 @@ pub unsafe fn GetManagementAppHyperlink(pszhyperlink: &mut [u16]) -> windows_cor unsafe { GetManagementAppHyperlink(pszhyperlink.len().try_into().unwrap(), core::mem::transmute(pszhyperlink.as_ptr())).ok() } } #[inline] -pub unsafe fn IsDeviceRegisteredWithManagement(pfisdeviceregisteredwithmanagement: *mut super::super::Foundation::BOOL, pszupn: Option<&mut [u16]>) -> windows_core::Result<()> { - windows_targets::link!("mdmregistration.dll" "system" fn IsDeviceRegisteredWithManagement(pfisdeviceregisteredwithmanagement : *mut super::super::Foundation:: BOOL, cchupn : u32, pszupn : windows_core::PWSTR) -> windows_core::HRESULT); +pub unsafe fn IsDeviceRegisteredWithManagement(pfisdeviceregisteredwithmanagement: *mut windows_core::BOOL, pszupn: Option<&mut [u16]>) -> windows_core::Result<()> { + windows_targets::link!("mdmregistration.dll" "system" fn IsDeviceRegisteredWithManagement(pfisdeviceregisteredwithmanagement : *mut windows_core::BOOL, cchupn : u32, pszupn : windows_core::PWSTR) -> windows_core::HRESULT); unsafe { IsDeviceRegisteredWithManagement(pfisdeviceregisteredwithmanagement as _, pszupn.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pszupn.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } } #[inline] -pub unsafe fn IsManagementRegistrationAllowed() -> windows_core::Result { - windows_targets::link!("mdmregistration.dll" "system" fn IsManagementRegistrationAllowed(pfismanagementregistrationallowed : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn IsManagementRegistrationAllowed() -> windows_core::Result { + windows_targets::link!("mdmregistration.dll" "system" fn IsManagementRegistrationAllowed(pfismanagementregistrationallowed : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); IsManagementRegistrationAllowed(&mut result__).map(|| core::mem::transmute(result__)) } } #[inline] -pub unsafe fn IsMdmUxWithoutAadAllowed() -> windows_core::Result { - windows_targets::link!("mdmregistration.dll" "system" fn IsMdmUxWithoutAadAllowed(isenrollmentallowed : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn IsMdmUxWithoutAadAllowed() -> windows_core::Result { + windows_targets::link!("mdmregistration.dll" "system" fn IsMdmUxWithoutAadAllowed(isenrollmentallowed : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); IsMdmUxWithoutAadAllowed(&mut result__).map(|| core::mem::transmute(result__)) } } #[inline] -pub unsafe fn RegisterDeviceWithLocalManagement(alreadyregistered: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { - windows_targets::link!("mdmlocalmanagement.dll" "system" fn RegisterDeviceWithLocalManagement(alreadyregistered : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn RegisterDeviceWithLocalManagement(alreadyregistered: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { + windows_targets::link!("mdmlocalmanagement.dll" "system" fn RegisterDeviceWithLocalManagement(alreadyregistered : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { RegisterDeviceWithLocalManagement(alreadyregistered.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -112,7 +112,7 @@ where } #[inline] pub unsafe fn SetManagedExternally(ismanagedexternally: bool) -> windows_core::Result<()> { - windows_targets::link!("mdmregistration.dll" "system" fn SetManagedExternally(ismanagedexternally : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("mdmregistration.dll" "system" fn SetManagedExternally(ismanagedexternally : windows_core::BOOL) -> windows_core::HRESULT); unsafe { SetManagedExternally(ismanagedexternally.into()).ok() } } #[inline] @@ -137,7 +137,7 @@ pub const DeviceRegistrationBasicInfo: REGISTRATION_INFORMATION_CLASS = REGISTRA #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct MANAGEMENT_REGISTRATION_INFO { - pub fDeviceRegisteredWithManagement: super::super::Foundation::BOOL, + pub fDeviceRegisteredWithManagement: windows_core::BOOL, pub dwDeviceRegistionKind: u32, pub pszUPN: windows_core::PWSTR, pub pszMDMServiceUri: windows_core::PWSTR, 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 938a2b2d8c..b0586c759d 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 @@ -51,7 +51,7 @@ pub struct APOInitSystemEffects2 { pub nSoftwareIoDeviceInCollection: u32, pub nSoftwareIoConnectorIndex: u32, pub AudioProcessingMode: windows_core::GUID, - pub InitializeForDiscoveryOnly: super::super::super::Foundation::BOOL, + pub InitializeForDiscoveryOnly: windows_core::BOOL, } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl Default for APOInitSystemEffects2 { @@ -70,7 +70,7 @@ pub struct APOInitSystemEffects3 { pub nSoftwareIoDeviceInCollection: u32, pub nSoftwareIoConnectorIndex: u32, pub AudioProcessingMode: windows_core::GUID, - pub InitializeForDiscoveryOnly: super::super::super::Foundation::BOOL, + pub InitializeForDiscoveryOnly: windows_core::BOOL, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))] impl Default for APOInitSystemEffects3 { @@ -329,13 +329,13 @@ impl Default for AUDIO_MICROPHONE_BOOST_APO_NOTIFICATION_DESCRIPTOR { pub struct AUDIO_MICROPHONE_BOOST_NOTIFICATION { pub endpoint: core::mem::ManuallyDrop>, pub eventContext: windows_core::GUID, - pub microphoneBoostEnabled: super::super::super::Foundation::BOOL, + pub microphoneBoostEnabled: windows_core::BOOL, pub levelInDb: f32, pub levelMinInDb: f32, pub levelMaxInDb: f32, pub levelStepInDb: f32, - pub muteSupported: super::super::super::Foundation::BOOL, - pub mute: super::super::super::Foundation::BOOL, + pub muteSupported: windows_core::BOOL, + pub mute: windows_core::BOOL, } impl Default for AUDIO_MICROPHONE_BOOST_NOTIFICATION { fn default() -> Self { @@ -348,7 +348,7 @@ pub const AUDIO_MIN_FRAMERATE: f64 = 10f64; #[derive(Clone, Copy, Debug, PartialEq)] pub struct AUDIO_SYSTEMEFFECT { pub id: windows_core::GUID, - pub canSetState: super::super::super::Foundation::BOOL, + pub canSetState: windows_core::BOOL, pub state: AUDIO_SYSTEMEFFECT_STATE, } impl Default for AUDIO_SYSTEMEFFECT { @@ -584,7 +584,7 @@ impl windows_core::RuntimeName for IAudioDeviceModulesClient {} windows_core::imp::define_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 { + pub unsafe fn IsCompressedFormat(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsCompressedFormat)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -609,20 +609,20 @@ impl IAudioMediaType { #[repr(C)] pub struct IAudioMediaType_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsCompressedFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsCompressedFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub IsEqual: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetAudioFormat: unsafe extern "system" fn(*mut core::ffi::c_void) -> *mut super::WAVEFORMATEX, pub GetUncompressedAudioFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut UNCOMPRESSEDAUDIOFORMAT) -> windows_core::HRESULT, } pub trait IAudioMediaType_Impl: windows_core::IUnknownImpl { - fn IsCompressedFormat(&self) -> windows_core::Result; + fn IsCompressedFormat(&self) -> windows_core::Result; fn IsEqual(&self, piaudiotype: windows_core::Ref) -> windows_core::Result; fn GetAudioFormat(&self) -> *mut super::WAVEFORMATEX; fn GetUncompressedAudioFormat(&self, puncompressedaudioformat: *mut UNCOMPRESSEDAUDIOFORMAT) -> windows_core::Result<()>; } impl IAudioMediaType_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsCompressedFormat(this: *mut core::ffi::c_void, pfcompressed: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsCompressedFormat(this: *mut core::ffi::c_void, pfcompressed: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioMediaType_Impl::IsCompressedFormat(this) { 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 21c150b817..8802215fa6 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 @@ -445,7 +445,7 @@ pub struct DMUS_PORTPARAMS7 { pub dwAudioChannels: u32, pub dwSampleRate: u32, pub dwEffectFlags: u32, - pub fShare: super::super::super::Foundation::BOOL, + pub fShare: windows_core::BOOL, } impl Default for DMUS_PORTPARAMS7 { fn default() -> Self { @@ -462,7 +462,7 @@ pub struct DMUS_PORTPARAMS8 { pub dwAudioChannels: u32, pub dwSampleRate: u32, pub dwEffectFlags: u32, - pub fShare: super::super::super::Foundation::BOOL, + pub fShare: windows_core::BOOL, pub dwFeatures: u32, } impl Default for DMUS_PORTPARAMS8 { @@ -561,7 +561,7 @@ impl Default for DMUS_VEGPARAMS { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DMUS_VOICE_STATE { - pub bExists: super::super::super::Foundation::BOOL, + pub bExists: windows_core::BOOL, pub spPosition: u64, } impl Default for DMUS_VOICE_STATE { @@ -885,7 +885,7 @@ pub struct IDirectMusic_Vtbl { pub EnumMasterClock: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut DMUS_CLOCKINFO8) -> windows_core::HRESULT, pub GetMasterClock: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetMasterClock: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID) -> windows_core::HRESULT, - pub Activate: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Activate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetDefaultPort: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, #[cfg(feature = "Win32_Media_Audio_DirectSound")] pub SetDirectSound: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::HWND) -> windows_core::HRESULT, @@ -900,7 +900,7 @@ pub trait IDirectMusic_Impl: windows_core::IUnknownImpl { fn EnumMasterClock(&self, dwindex: u32, lpclockinfo: *mut DMUS_CLOCKINFO8) -> windows_core::Result<()>; fn GetMasterClock(&self, pguidclock: *mut windows_core::GUID, ppreferenceclock: windows_core::OutRef<'_, super::super::IReferenceClock>) -> windows_core::Result<()>; fn SetMasterClock(&self, rguidclock: *const windows_core::GUID) -> windows_core::Result<()>; - fn Activate(&self, fenable: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Activate(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; fn GetDefaultPort(&self, pguidport: *mut windows_core::GUID) -> windows_core::Result<()>; fn SetDirectSound(&self, pdirectsound: windows_core::Ref, hwnd: super::super::super::Foundation::HWND) -> windows_core::Result<()>; } @@ -943,7 +943,7 @@ impl IDirectMusic_Vtbl { IDirectMusic_Impl::SetMasterClock(this, core::mem::transmute_copy(&rguidclock)).into() } } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, fenable: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusic_Impl::Activate(this, core::mem::transmute_copy(&fenable)).into() @@ -1437,7 +1437,7 @@ pub struct IDirectMusicPort_Vtbl { DeviceIoControl: usize, pub SetNumChannelGroups: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetNumChannelGroups: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub Activate: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Activate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetChannelPriority: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, u32) -> windows_core::HRESULT, pub GetChannelPriority: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut u32) -> windows_core::HRESULT, #[cfg(feature = "Win32_Media_Audio_DirectSound")] @@ -1460,7 +1460,7 @@ pub trait IDirectMusicPort_Impl: windows_core::IUnknownImpl { fn DeviceIoControl(&self, dwiocontrolcode: u32, lpinbuffer: *mut core::ffi::c_void, ninbuffersize: u32, lpoutbuffer: *mut core::ffi::c_void, noutbuffersize: u32, lpbytesreturned: *mut u32, lpoverlapped: *mut super::super::super::System::IO::OVERLAPPED) -> windows_core::Result<()>; fn SetNumChannelGroups(&self, dwchannelgroups: u32) -> windows_core::Result<()>; fn GetNumChannelGroups(&self, pdwchannelgroups: *mut u32) -> windows_core::Result<()>; - fn Activate(&self, factive: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Activate(&self, factive: windows_core::BOOL) -> windows_core::Result<()>; fn SetChannelPriority(&self, dwchannelgroup: u32, dwchannel: u32, dwpriority: u32) -> windows_core::Result<()>; fn GetChannelPriority(&self, dwchannelgroup: u32, dwchannel: u32, pdwpriority: *mut u32) -> windows_core::Result<()>; fn SetDirectSound(&self, pdirectsound: windows_core::Ref, pdirectsoundbuffer: windows_core::Ref) -> windows_core::Result<()>; @@ -1547,7 +1547,7 @@ impl IDirectMusicPort_Vtbl { IDirectMusicPort_Impl::GetNumChannelGroups(this, core::mem::transmute_copy(&pdwchannelgroups)).into() } } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, factive: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, factive: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicPort_Impl::Activate(this, core::mem::transmute_copy(&factive)).into() @@ -1733,7 +1733,7 @@ impl IDirectMusicSynth { pub unsafe fn SetNumChannelGroups(&self, dwgroups: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetNumChannelGroups)(windows_core::Interface::as_raw(self), dwgroups).ok() } } - pub unsafe fn Download(&self, phdownload: *mut super::super::super::Foundation::HANDLE, pvdata: *mut core::ffi::c_void, pbfree: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn Download(&self, phdownload: *mut super::super::super::Foundation::HANDLE, pvdata: *mut core::ffi::c_void, pbfree: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Download)(windows_core::Interface::as_raw(self), phdownload as _, pvdata as _, pbfree as _).ok() } } pub unsafe fn Unload(&self, hdownload: super::super::super::Foundation::HANDLE, lpfreehandle: isize, huserdata: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { @@ -1791,14 +1791,14 @@ pub struct IDirectMusicSynth_Vtbl { pub Open: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DMUS_PORTPARAMS8) -> windows_core::HRESULT, pub Close: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SetNumChannelGroups: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub Download: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::HANDLE, *mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Download: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::HANDLE, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Unload: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::HANDLE, isize, super::super::super::Foundation::HANDLE) -> windows_core::HRESULT, pub PlayBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, i64, *mut u8, u32) -> windows_core::HRESULT, pub GetRunningStats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DMUS_SYNTHSTATS) -> windows_core::HRESULT, pub GetPortCaps: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DMUS_PORTCAPS) -> windows_core::HRESULT, pub SetMasterClock: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetLatencyClock: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Activate: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Activate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetSynthSink: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Render: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i16, u32, i64) -> windows_core::HRESULT, pub SetChannelPriority: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, u32) -> windows_core::HRESULT, @@ -1810,14 +1810,14 @@ pub trait IDirectMusicSynth_Impl: windows_core::IUnknownImpl { fn Open(&self, pportparams: *mut DMUS_PORTPARAMS8) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; fn SetNumChannelGroups(&self, dwgroups: u32) -> windows_core::Result<()>; - fn Download(&self, phdownload: *mut super::super::super::Foundation::HANDLE, pvdata: *mut core::ffi::c_void, pbfree: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Download(&self, phdownload: *mut super::super::super::Foundation::HANDLE, pvdata: *mut core::ffi::c_void, pbfree: *mut windows_core::BOOL) -> windows_core::Result<()>; fn Unload(&self, hdownload: super::super::super::Foundation::HANDLE, lpfreehandle: isize, huserdata: super::super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn PlayBuffer(&self, rt: i64, pbbuffer: *mut u8, cbbuffer: u32) -> windows_core::Result<()>; fn GetRunningStats(&self, pstats: *mut DMUS_SYNTHSTATS) -> windows_core::Result<()>; fn GetPortCaps(&self, pcaps: *mut DMUS_PORTCAPS) -> windows_core::Result<()>; fn SetMasterClock(&self, pclock: windows_core::Ref) -> windows_core::Result<()>; fn GetLatencyClock(&self) -> windows_core::Result; - fn Activate(&self, fenable: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Activate(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; fn SetSynthSink(&self, psynthsink: windows_core::Ref) -> windows_core::Result<()>; fn Render(&self, pbuffer: *mut i16, dwlength: u32, llposition: i64) -> windows_core::Result<()>; fn SetChannelPriority(&self, dwchannelgroup: u32, dwchannel: u32, dwpriority: u32) -> windows_core::Result<()>; @@ -1845,7 +1845,7 @@ impl IDirectMusicSynth_Vtbl { IDirectMusicSynth_Impl::SetNumChannelGroups(this, core::mem::transmute_copy(&dwgroups)).into() } } - unsafe extern "system" fn Download(this: *mut core::ffi::c_void, phdownload: *mut super::super::super::Foundation::HANDLE, pvdata: *mut core::ffi::c_void, pbfree: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Download(this: *mut core::ffi::c_void, phdownload: *mut super::super::super::Foundation::HANDLE, pvdata: *mut core::ffi::c_void, pbfree: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth_Impl::Download(this, core::mem::transmute_copy(&phdownload), core::mem::transmute_copy(&pvdata), core::mem::transmute_copy(&pbfree)).into() @@ -1893,7 +1893,7 @@ impl IDirectMusicSynth_Vtbl { } } } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, fenable: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynth_Impl::Activate(this, core::mem::transmute_copy(&fenable)).into() @@ -2096,7 +2096,7 @@ pub struct IDirectMusicSynthSink_Vtbl { pub Init: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetMasterClock: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetLatencyClock: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Activate: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Activate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SampleToRefTime: unsafe extern "system" fn(*mut core::ffi::c_void, i64, *mut i64) -> windows_core::HRESULT, pub RefTimeToSample: unsafe extern "system" fn(*mut core::ffi::c_void, i64, *mut i64) -> windows_core::HRESULT, #[cfg(feature = "Win32_Media_Audio_DirectSound")] @@ -2110,7 +2110,7 @@ pub trait IDirectMusicSynthSink_Impl: windows_core::IUnknownImpl { fn Init(&self, psynth: windows_core::Ref) -> windows_core::Result<()>; fn SetMasterClock(&self, pclock: windows_core::Ref) -> windows_core::Result<()>; fn GetLatencyClock(&self) -> windows_core::Result; - fn Activate(&self, fenable: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Activate(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; fn SampleToRefTime(&self, llsampletime: i64, prftime: *mut i64) -> windows_core::Result<()>; fn RefTimeToSample(&self, rftime: i64, pllsampletime: *mut i64) -> windows_core::Result<()>; fn SetDirectSound(&self, pdirectsound: windows_core::Ref, pdirectsoundbuffer: windows_core::Ref) -> windows_core::Result<()>; @@ -2143,7 +2143,7 @@ impl IDirectMusicSynthSink_Vtbl { } } } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, fenable: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirectMusicSynthSink_Impl::Activate(this, core::mem::transmute_copy(&fenable)).into() @@ -2235,9 +2235,9 @@ impl Default for INSTHEADER { unsafe { core::mem::zeroed() } } } -pub type LPFNDIRECTSOUNDDEVICEENUMERATECALLBACK1 = Option super::super::super::Foundation::BOOL>; -pub type LPFNDIRECTSOUNDDEVICEENUMERATECALLBACKA = Option super::super::super::Foundation::BOOL>; -pub type LPFNDIRECTSOUNDDEVICEENUMERATECALLBACKW = Option super::super::super::Foundation::BOOL>; +pub type LPFNDIRECTSOUNDDEVICEENUMERATECALLBACK1 = Option windows_core::BOOL>; +pub type LPFNDIRECTSOUNDDEVICEENUMERATECALLBACKA = Option windows_core::BOOL>; +pub type LPFNDIRECTSOUNDDEVICEENUMERATECALLBACKW = Option windows_core::BOOL>; #[repr(C, packed(1))] #[derive(Clone, Copy)] pub struct MDEVICECAPSEX { 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 d82a471e74..1bb939b8d1 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 @@ -357,8 +357,8 @@ impl Default for DSCEFFECTDESC { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DSCFXAec { - pub fEnable: super::super::super::Foundation::BOOL, - pub fNoiseFill: super::super::super::Foundation::BOOL, + pub fEnable: windows_core::BOOL, + pub fNoiseFill: windows_core::BOOL, pub dwMode: u32, } impl Default for DSCFXAec { @@ -369,7 +369,7 @@ impl Default for DSCFXAec { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DSCFXNoiseSuppress { - pub fEnable: super::super::super::Foundation::BOOL, + pub fEnable: windows_core::BOOL, } impl Default for DSCFXNoiseSuppress { fn default() -> Self { @@ -2854,6 +2854,6 @@ impl IDirectSoundNotify_Vtbl { impl windows_core::RuntimeName for IDirectSoundNotify {} pub const KSPROPERTY_SUPPORT_GET: u32 = 1u32; pub const KSPROPERTY_SUPPORT_SET: u32 = 2u32; -pub type LPDSENUMCALLBACKA = Option super::super::super::Foundation::BOOL>; -pub type LPDSENUMCALLBACKW = Option super::super::super::Foundation::BOOL>; +pub type LPDSENUMCALLBACKA = Option windows_core::BOOL>; +pub type LPDSENUMCALLBACKW = Option windows_core::BOOL>; pub const _FACDS: u32 = 2168u32; 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 df0f428894..9926011c73 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 @@ -52,7 +52,7 @@ impl windows_core::RuntimeName for IAudioEndpointFormatControl {} windows_core::imp::define_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 { + pub unsafe fn IsLastBufferControlSupported(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsLastBufferControlSupported)(windows_core::Interface::as_raw(self)) } } #[cfg(feature = "Win32_Media_Audio_Apo")] @@ -63,7 +63,7 @@ impl IAudioEndpointLastBufferControl { #[repr(C)] pub struct IAudioEndpointLastBufferControl_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsLastBufferControlSupported: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::super::Foundation::BOOL, + pub IsLastBufferControlSupported: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, #[cfg(feature = "Win32_Media_Audio_Apo")] pub ReleaseOutputDataPointerForLastBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::Apo::APO_CONNECTION_PROPERTY), #[cfg(not(feature = "Win32_Media_Audio_Apo"))] @@ -71,13 +71,13 @@ pub struct IAudioEndpointLastBufferControl_Vtbl { } #[cfg(feature = "Win32_Media_Audio_Apo")] pub trait IAudioEndpointLastBufferControl_Impl: windows_core::IUnknownImpl { - fn IsLastBufferControlSupported(&self) -> super::super::super::Foundation::BOOL; + fn IsLastBufferControlSupported(&self) -> windows_core::BOOL; fn ReleaseOutputDataPointerForLastBuffer(&self, pconnectionproperty: *const super::Apo::APO_CONNECTION_PROPERTY); } #[cfg(feature = "Win32_Media_Audio_Apo")] impl IAudioEndpointLastBufferControl_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsLastBufferControlSupported(this: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn IsLastBufferControlSupported(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointLastBufferControl_Impl::IsLastBufferControlSupported(this) @@ -356,7 +356,7 @@ impl IAudioEndpointVolume { pub unsafe fn SetMute(&self, bmute: bool, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), bmute.into(), pguideventcontext).ok() } } - pub unsafe fn GetMute(&self) -> windows_core::Result { + pub unsafe fn GetMute(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMute)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -395,8 +395,8 @@ pub struct IAudioEndpointVolume_Vtbl { pub SetChannelVolumeLevelScalar: unsafe extern "system" fn(*mut core::ffi::c_void, u32, f32, *const windows_core::GUID) -> windows_core::HRESULT, pub GetChannelVolumeLevel: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut f32) -> windows_core::HRESULT, pub GetChannelVolumeLevelScalar: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut f32) -> windows_core::HRESULT, - pub SetMute: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL, *const windows_core::GUID) -> windows_core::HRESULT, - pub GetMute: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetMute: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *const windows_core::GUID) -> windows_core::HRESULT, + pub GetMute: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetVolumeStepInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32) -> windows_core::HRESULT, pub VolumeStepUp: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID) -> windows_core::HRESULT, pub VolumeStepDown: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID) -> windows_core::HRESULT, @@ -415,8 +415,8 @@ pub trait IAudioEndpointVolume_Impl: windows_core::IUnknownImpl { fn SetChannelVolumeLevelScalar(&self, nchannel: u32, flevel: f32, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; fn GetChannelVolumeLevel(&self, nchannel: u32) -> windows_core::Result; fn GetChannelVolumeLevelScalar(&self, nchannel: u32) -> windows_core::Result; - fn SetMute(&self, bmute: super::super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; - fn GetMute(&self) -> windows_core::Result; + fn SetMute(&self, bmute: windows_core::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; + fn GetMute(&self) -> windows_core::Result; fn GetVolumeStepInfo(&self, pnstep: *mut u32, pnstepcount: *mut u32) -> windows_core::Result<()>; fn VolumeStepUp(&self, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; fn VolumeStepDown(&self, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; @@ -521,13 +521,13 @@ impl IAudioEndpointVolume_Vtbl { } } } - unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, bmute: super::super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { + unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, bmute: windows_core::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioEndpointVolume_Impl::SetMute(this, core::mem::transmute_copy(&bmute), core::mem::transmute_copy(&pguideventcontext)).into() } } - unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pbmute: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pbmute: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioEndpointVolume_Impl::GetMute(this) { @@ -674,7 +674,7 @@ impl IAudioLfxControl { pub unsafe fn SetLocalEffectsState(&self, benabled: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetLocalEffectsState)(windows_core::Interface::as_raw(self), benabled.into()).ok() } } - pub unsafe fn GetLocalEffectsState(&self) -> windows_core::Result { + pub unsafe fn GetLocalEffectsState(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetLocalEffectsState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -684,22 +684,22 @@ impl IAudioLfxControl { #[repr(C)] pub struct IAudioLfxControl_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetLocalEffectsState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetLocalEffectsState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetLocalEffectsState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetLocalEffectsState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAudioLfxControl_Impl: windows_core::IUnknownImpl { - fn SetLocalEffectsState(&self, benabled: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetLocalEffectsState(&self) -> windows_core::Result; + fn SetLocalEffectsState(&self, benabled: windows_core::BOOL) -> windows_core::Result<()>; + fn GetLocalEffectsState(&self) -> windows_core::Result; } impl IAudioLfxControl_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetLocalEffectsState(this: *mut core::ffi::c_void, benabled: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetLocalEffectsState(this: *mut core::ffi::c_void, benabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioLfxControl_Impl::SetLocalEffectsState(this, core::mem::transmute_copy(&benabled)).into() } } - unsafe extern "system" fn GetLocalEffectsState(this: *mut core::ffi::c_void, pbenabled: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetLocalEffectsState(this: *mut core::ffi::c_void, pbenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioLfxControl_Impl::GetLocalEffectsState(this) { @@ -848,7 +848,7 @@ impl IHardwareAudioEngineBase { { unsafe { (windows_core::Interface::vtable(self).SetGfxState)(windows_core::Interface::as_raw(self), pdevice.param().abi(), _benable.into()).ok() } } - pub unsafe fn GetGfxState(&self, pdevice: P0) -> windows_core::Result + pub unsafe fn GetGfxState(&self, pdevice: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -862,17 +862,17 @@ impl IHardwareAudioEngineBase { pub struct IHardwareAudioEngineBase_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetAvailableOffloadConnectorCount: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *mut u32) -> windows_core::HRESULT, - pub GetEngineFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::BOOL, *mut *mut super::WAVEFORMATEX) -> windows_core::HRESULT, + pub GetEngineFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut *mut super::WAVEFORMATEX) -> windows_core::HRESULT, pub SetEngineDeviceFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::WAVEFORMATEX) -> windows_core::HRESULT, - pub SetGfxState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetGfxState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetGfxState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetGfxState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IHardwareAudioEngineBase_Impl: windows_core::IUnknownImpl { fn GetAvailableOffloadConnectorCount(&self, _pwstrdeviceid: &windows_core::PCWSTR, _uconnectorid: u32) -> windows_core::Result; - fn GetEngineFormat(&self, pdevice: windows_core::Ref, _brequestdeviceformat: super::super::super::Foundation::BOOL, _ppwfxformat: *mut *mut super::WAVEFORMATEX) -> windows_core::Result<()>; + fn GetEngineFormat(&self, pdevice: windows_core::Ref, _brequestdeviceformat: windows_core::BOOL, _ppwfxformat: *mut *mut super::WAVEFORMATEX) -> windows_core::Result<()>; fn SetEngineDeviceFormat(&self, pdevice: windows_core::Ref, _pwfxformat: *mut super::WAVEFORMATEX) -> windows_core::Result<()>; - fn SetGfxState(&self, pdevice: windows_core::Ref, _benable: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetGfxState(&self, pdevice: windows_core::Ref) -> windows_core::Result; + fn SetGfxState(&self, pdevice: windows_core::Ref, _benable: windows_core::BOOL) -> windows_core::Result<()>; + fn GetGfxState(&self, pdevice: windows_core::Ref) -> windows_core::Result; } impl IHardwareAudioEngineBase_Vtbl { pub const fn new() -> Self { @@ -888,7 +888,7 @@ impl IHardwareAudioEngineBase_Vtbl { } } } - unsafe extern "system" fn GetEngineFormat(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, _brequestdeviceformat: super::super::super::Foundation::BOOL, _ppwfxformat: *mut *mut super::WAVEFORMATEX) -> windows_core::HRESULT { + unsafe extern "system" fn GetEngineFormat(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, _brequestdeviceformat: windows_core::BOOL, _ppwfxformat: *mut *mut super::WAVEFORMATEX) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHardwareAudioEngineBase_Impl::GetEngineFormat(this, core::mem::transmute_copy(&pdevice), core::mem::transmute_copy(&_brequestdeviceformat), core::mem::transmute_copy(&_ppwfxformat)).into() @@ -900,13 +900,13 @@ impl IHardwareAudioEngineBase_Vtbl { IHardwareAudioEngineBase_Impl::SetEngineDeviceFormat(this, core::mem::transmute_copy(&pdevice), core::mem::transmute_copy(&_pwfxformat)).into() } } - unsafe extern "system" fn SetGfxState(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, _benable: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetGfxState(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, _benable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHardwareAudioEngineBase_Impl::SetGfxState(this, core::mem::transmute_copy(&pdevice), core::mem::transmute_copy(&_benable)).into() } } - unsafe extern "system" fn GetGfxState(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, _pbenable: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetGfxState(this: *mut core::ffi::c_void, pdevice: *mut core::ffi::c_void, _pbenable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHardwareAudioEngineBase_Impl::GetGfxState(this, core::mem::transmute_copy(&pdevice)) { 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 be0ff89325..8b6fa58d4b 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 @@ -289,7 +289,7 @@ pub struct IXAPO_Vtbl { pub Reset: unsafe extern "system" fn(*mut core::ffi::c_void), pub LockForProcess: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const XAPO_LOCKFORPROCESS_PARAMETERS, u32, *const XAPO_LOCKFORPROCESS_PARAMETERS) -> windows_core::HRESULT, pub UnlockForProcess: unsafe extern "system" fn(*mut core::ffi::c_void), - pub Process: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const XAPO_PROCESS_BUFFER_PARAMETERS, u32, *mut XAPO_PROCESS_BUFFER_PARAMETERS, super::super::super::Foundation::BOOL), + pub Process: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const XAPO_PROCESS_BUFFER_PARAMETERS, u32, *mut XAPO_PROCESS_BUFFER_PARAMETERS, windows_core::BOOL), pub CalcInputFrames: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> u32, pub CalcOutputFrames: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> u32, } @@ -301,7 +301,7 @@ pub trait IXAPO_Impl: windows_core::IUnknownImpl { fn Reset(&self); fn LockForProcess(&self, inputlockedparametercount: u32, pinputlockedparameters: *const XAPO_LOCKFORPROCESS_PARAMETERS, outputlockedparametercount: u32, poutputlockedparameters: *const XAPO_LOCKFORPROCESS_PARAMETERS) -> windows_core::Result<()>; fn UnlockForProcess(&self); - fn Process(&self, inputprocessparametercount: u32, pinputprocessparameters: *const XAPO_PROCESS_BUFFER_PARAMETERS, outputprocessparametercount: u32, poutputprocessparameters: *mut XAPO_PROCESS_BUFFER_PARAMETERS, isenabled: super::super::super::Foundation::BOOL); + fn Process(&self, inputprocessparametercount: u32, pinputprocessparameters: *const XAPO_PROCESS_BUFFER_PARAMETERS, outputprocessparametercount: u32, poutputprocessparameters: *mut XAPO_PROCESS_BUFFER_PARAMETERS, isenabled: windows_core::BOOL); fn CalcInputFrames(&self, outputframecount: u32) -> u32; fn CalcOutputFrames(&self, inputframecount: u32) -> u32; } @@ -355,7 +355,7 @@ impl IXAPO_Vtbl { IXAPO_Impl::UnlockForProcess(this) } } - unsafe extern "system" fn Process(this: *mut core::ffi::c_void, inputprocessparametercount: u32, pinputprocessparameters: *const XAPO_PROCESS_BUFFER_PARAMETERS, outputprocessparametercount: u32, poutputprocessparameters: *mut XAPO_PROCESS_BUFFER_PARAMETERS, isenabled: super::super::super::Foundation::BOOL) { + unsafe extern "system" fn Process(this: *mut core::ffi::c_void, inputprocessparametercount: u32, pinputprocessparameters: *const XAPO_PROCESS_BUFFER_PARAMETERS, outputprocessparametercount: u32, poutputprocessparameters: *mut XAPO_PROCESS_BUFFER_PARAMETERS, isenabled: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXAPO_Impl::Process(this, core::mem::transmute_copy(&inputprocessparametercount), core::mem::transmute_copy(&pinputprocessparameters), core::mem::transmute_copy(&outputprocessparametercount), core::mem::transmute_copy(&poutputprocessparameters), core::mem::transmute_copy(&isenabled)) @@ -1039,7 +1039,7 @@ impl IXAudio2Voice { pub unsafe fn DisableEffect(&self, effectindex: u32, operationset: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).DisableEffect)(windows_core::Interface::as_raw(self), effectindex, operationset).ok() } } - pub unsafe fn GetEffectState(&self, effectindex: u32) -> super::super::super::Foundation::BOOL { + pub unsafe fn GetEffectState(&self, effectindex: u32) -> windows_core::BOOL { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEffectState)(windows_core::Interface::as_raw(self), effectindex, &mut result__); @@ -1121,7 +1121,7 @@ pub struct IXAudio2Voice_Vtbl { pub SetEffectChain: unsafe extern "system" fn(*mut core::ffi::c_void, *const XAUDIO2_EFFECT_CHAIN) -> windows_core::HRESULT, pub EnableEffect: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, pub DisableEffect: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, - pub GetEffectState: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::super::Foundation::BOOL), + pub GetEffectState: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL), pub SetEffectParameters: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const core::ffi::c_void, u32, u32) -> windows_core::HRESULT, pub GetEffectParameters: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub SetFilterParameters: unsafe extern "system" fn(*mut core::ffi::c_void, *const XAUDIO2_FILTER_PARAMETERS, u32) -> windows_core::HRESULT, @@ -1142,7 +1142,7 @@ pub trait IXAudio2Voice_Impl { fn SetEffectChain(&self, peffectchain: *const XAUDIO2_EFFECT_CHAIN) -> windows_core::Result<()>; fn EnableEffect(&self, effectindex: u32, operationset: u32) -> windows_core::Result<()>; fn DisableEffect(&self, effectindex: u32, operationset: u32) -> windows_core::Result<()>; - fn GetEffectState(&self, effectindex: u32, penabled: *mut super::super::super::Foundation::BOOL); + fn GetEffectState(&self, effectindex: u32, penabled: *mut windows_core::BOOL); fn SetEffectParameters(&self, effectindex: u32, pparameters: *const core::ffi::c_void, parametersbytesize: u32, operationset: u32) -> windows_core::Result<()>; fn GetEffectParameters(&self, effectindex: u32, pparameters: *mut core::ffi::c_void, parametersbytesize: u32) -> windows_core::Result<()>; fn SetFilterParameters(&self, pparameters: *const XAUDIO2_FILTER_PARAMETERS, operationset: u32) -> windows_core::Result<()>; @@ -1194,7 +1194,7 @@ impl IXAudio2Voice_Vtbl { IXAudio2Voice_Impl::DisableEffect(this, core::mem::transmute_copy(&effectindex), core::mem::transmute_copy(&operationset)).into() } } - unsafe extern "system" fn GetEffectState(this: *mut core::ffi::c_void, effectindex: u32, penabled: *mut super::super::super::Foundation::BOOL) { + unsafe extern "system" fn GetEffectState(this: *mut core::ffi::c_void, effectindex: u32, penabled: *mut windows_core::BOOL) { unsafe { let this = (this as *mut *mut core::ffi::c_void) as *const windows_core::ScopedHeap; let this = &*((*this).this as *const Identity); @@ -1671,7 +1671,7 @@ pub struct XAUDIO2FX_REVERB_PARAMETERS { pub DecayTime: f32, pub Density: f32, pub RoomSize: f32, - pub DisableLateField: super::super::super::Foundation::BOOL, + pub DisableLateField: windows_core::BOOL, } impl Default for XAUDIO2FX_REVERB_PARAMETERS { fn default() -> Self { @@ -1728,10 +1728,10 @@ pub const XAUDIO2_COMMIT_NOW: u32 = 0u32; pub struct XAUDIO2_DEBUG_CONFIGURATION { pub TraceMask: u32, pub BreakMask: u32, - pub LogThreadID: super::super::super::Foundation::BOOL, - pub LogFileline: super::super::super::Foundation::BOOL, - pub LogFunctionName: super::super::super::Foundation::BOOL, - pub LogTiming: super::super::super::Foundation::BOOL, + pub LogThreadID: windows_core::BOOL, + pub LogFileline: windows_core::BOOL, + pub LogFunctionName: windows_core::BOOL, + pub LogTiming: windows_core::BOOL, } impl Default for XAUDIO2_DEBUG_CONFIGURATION { fn default() -> Self { @@ -1762,7 +1762,7 @@ impl Default for XAUDIO2_EFFECT_CHAIN { #[repr(C, packed(1))] pub struct XAUDIO2_EFFECT_DESCRIPTOR { pub pEffect: core::mem::ManuallyDrop>, - pub InitialState: super::super::super::Foundation::BOOL, + pub InitialState: windows_core::BOOL, pub OutputChannels: u32, } impl Default for XAUDIO2_EFFECT_DESCRIPTOR { 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 b65473ce5e..5c668920bd 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs @@ -100,19 +100,19 @@ pub unsafe fn CreateRenderAudioStateMonitorForCategoryAndDeviceRole(category: AU } } #[inline] -pub unsafe fn PlaySoundA(pszsound: P0, hmod: Option, fdwsound: SND_FLAGS) -> super::super::Foundation::BOOL +pub unsafe fn PlaySoundA(pszsound: P0, hmod: Option, fdwsound: SND_FLAGS) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winmm.dll" "system" fn PlaySoundA(pszsound : windows_core::PCSTR, hmod : super::super::Foundation:: HMODULE, fdwsound : SND_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("winmm.dll" "system" fn PlaySoundA(pszsound : windows_core::PCSTR, hmod : super::super::Foundation:: HMODULE, fdwsound : SND_FLAGS) -> windows_core::BOOL); unsafe { PlaySoundA(pszsound.param().abi(), hmod.unwrap_or(core::mem::zeroed()) as _, fdwsound) } } #[inline] -pub unsafe fn PlaySoundW(pszsound: P0, hmod: Option, fdwsound: SND_FLAGS) -> super::super::Foundation::BOOL +pub unsafe fn PlaySoundW(pszsound: P0, hmod: Option, fdwsound: SND_FLAGS) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winmm.dll" "system" fn PlaySoundW(pszsound : windows_core::PCWSTR, hmod : super::super::Foundation:: HMODULE, fdwsound : SND_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("winmm.dll" "system" fn PlaySoundW(pszsound : windows_core::PCWSTR, hmod : super::super::Foundation:: HMODULE, fdwsound : SND_FLAGS) -> windows_core::BOOL); unsafe { PlaySoundW(pszsound.param().abi(), hmod.unwrap_or(core::mem::zeroed()) as _, fdwsound) } } #[inline] @@ -643,19 +643,19 @@ pub unsafe fn mixerSetControlDetails(hmxobj: Option, pmxcd: *const MI unsafe { mixerSetControlDetails(hmxobj.unwrap_or(core::mem::zeroed()) as _, pmxcd, fdwdetails) } } #[inline] -pub unsafe fn sndPlaySoundA(pszsound: P0, fusound: u32) -> super::super::Foundation::BOOL +pub unsafe fn sndPlaySoundA(pszsound: P0, fusound: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winmm.dll" "system" fn sndPlaySoundA(pszsound : windows_core::PCSTR, fusound : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winmm.dll" "system" fn sndPlaySoundA(pszsound : windows_core::PCSTR, fusound : u32) -> windows_core::BOOL); unsafe { sndPlaySoundA(pszsound.param().abi(), fusound) } } #[inline] -pub unsafe fn sndPlaySoundW(pszsound: P0, fusound: u32) -> super::super::Foundation::BOOL +pub unsafe fn sndPlaySoundW(pszsound: P0, fusound: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("winmm.dll" "system" fn sndPlaySoundW(pszsound : windows_core::PCWSTR, fusound : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winmm.dll" "system" fn sndPlaySoundW(pszsound : windows_core::PCWSTR, fusound : u32) -> windows_core::BOOL); unsafe { sndPlaySoundW(pszsound.param().abi(), fusound) } } #[inline] @@ -940,7 +940,7 @@ pub const ACMDRIVERDETAILS_SUPPORTF_DISABLED: i32 = -2147483648i32; pub const ACMDRIVERDETAILS_SUPPORTF_FILTER: i32 = 4i32; pub const ACMDRIVERDETAILS_SUPPORTF_HARDWARE: i32 = 8i32; pub const ACMDRIVERDETAILS_SUPPORTF_LOCAL: i32 = 1073741824i32; -pub type ACMDRIVERENUMCB = Option super::super::Foundation::BOOL>; +pub type ACMDRIVERENUMCB = Option windows_core::BOOL>; #[repr(C, packed(1))] #[derive(Clone, Copy)] pub struct ACMDRVFORMATSUGGEST { @@ -1150,8 +1150,8 @@ impl Default for ACMFILTERDETAILSW { } } pub const ACMFILTERDETAILS_FILTER_CHARS: u32 = 128u32; -pub type ACMFILTERENUMCBA = Option super::super::Foundation::BOOL>; -pub type ACMFILTERENUMCBW = Option super::super::Foundation::BOOL>; +pub type ACMFILTERENUMCBA = Option windows_core::BOOL>; +pub type ACMFILTERENUMCBW = Option windows_core::BOOL>; #[repr(C, packed(1))] #[derive(Clone, Copy)] pub struct ACMFILTERTAGDETAILSA { @@ -1185,8 +1185,8 @@ impl Default for ACMFILTERTAGDETAILSW { } } pub const ACMFILTERTAGDETAILS_FILTERTAG_CHARS: u32 = 48u32; -pub type ACMFILTERTAGENUMCBA = Option super::super::Foundation::BOOL>; -pub type ACMFILTERTAGENUMCBW = Option super::super::Foundation::BOOL>; +pub type ACMFILTERTAGENUMCBA = Option windows_core::BOOL>; +pub type ACMFILTERTAGENUMCBW = Option windows_core::BOOL>; #[repr(C, packed(1))] #[derive(Clone, Copy)] pub struct ACMFORMATCHOOSEA { @@ -1262,8 +1262,8 @@ impl Default for ACMFORMATDETAILSA { } } pub const ACMFORMATDETAILS_FORMAT_CHARS: u32 = 128u32; -pub type ACMFORMATENUMCBA = Option super::super::Foundation::BOOL>; -pub type ACMFORMATENUMCBW = Option super::super::Foundation::BOOL>; +pub type ACMFORMATENUMCBA = Option windows_core::BOOL>; +pub type ACMFORMATENUMCBW = Option windows_core::BOOL>; #[repr(C, packed(1))] #[derive(Clone, Copy)] pub struct ACMFORMATTAGDETAILSA { @@ -1297,8 +1297,8 @@ impl Default for ACMFORMATTAGDETAILSW { } } pub const ACMFORMATTAGDETAILS_FORMATTAG_CHARS: u32 = 48u32; -pub type ACMFORMATTAGENUMCBA = Option super::super::Foundation::BOOL>; -pub type ACMFORMATTAGENUMCBW = Option super::super::Foundation::BOOL>; +pub type ACMFORMATTAGENUMCBA = Option windows_core::BOOL>; +pub type ACMFORMATTAGENUMCBW = Option windows_core::BOOL>; pub const ACMHELPMSGCONTEXTHELP: windows_core::PCWSTR = windows_core::w!("acmchoose_contexthelp"); pub const ACMHELPMSGCONTEXTHELPA: windows_core::PCSTR = windows_core::s!("acmchoose_contexthelp"); pub const ACMHELPMSGCONTEXTHELPW: windows_core::PCWSTR = windows_core::w!("acmchoose_contexthelp"); @@ -1636,7 +1636,7 @@ pub const AUDIO_DUCKING_OPTIONS_DO_NOT_DUCK_OTHER_STREAMS: AUDIO_DUCKING_OPTIONS #[derive(Clone, Copy, Debug, PartialEq)] pub struct AUDIO_EFFECT { pub id: windows_core::GUID, - pub canSetState: super::super::Foundation::BOOL, + pub canSetState: windows_core::BOOL, pub state: AUDIO_EFFECT_STATE, } impl Default for AUDIO_EFFECT { @@ -1663,7 +1663,7 @@ pub const AUDIO_SYSTEMEFFECTS_PROPERTYSTORE_TYPE_VOLATILE: AUDIO_SYSTEMEFFECTS_P #[derive(Clone, Copy, Debug, PartialEq)] pub struct AUDIO_VOLUME_NOTIFICATION_DATA { pub guidEventContext: windows_core::GUID, - pub bMuted: super::super::Foundation::BOOL, + pub bMuted: windows_core::BOOL, pub fMasterVolume: f32, pub nChannels: u32, pub afChannelVolumes: [f32; 1], @@ -1775,7 +1775,7 @@ impl Default for AudioClient3ActivationParams { #[derive(Clone, Copy, Debug, PartialEq)] pub struct AudioClientProperties { pub cbSize: u32, - pub bIsOffload: super::super::Foundation::BOOL, + pub bIsOffload: windows_core::BOOL, pub eCategory: AUDIO_STREAM_CATEGORY, pub Options: AUDCLNT_STREAMOPTIONS, } @@ -2330,7 +2330,7 @@ impl IAudioAmbisonicsControl { pub unsafe fn SetHeadTracking(&self, benableheadtracking: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetHeadTracking)(windows_core::Interface::as_raw(self), benableheadtracking.into()).ok() } } - pub unsafe fn GetHeadTracking(&self) -> windows_core::Result { + pub unsafe fn GetHeadTracking(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHeadTracking)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2344,14 +2344,14 @@ impl IAudioAmbisonicsControl { pub struct IAudioAmbisonicsControl_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetData: unsafe extern "system" fn(*mut core::ffi::c_void, *const AMBISONICS_PARAMS, u32) -> windows_core::HRESULT, - pub SetHeadTracking: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetHeadTracking: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetHeadTracking: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetHeadTracking: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetRotation: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, f32, f32) -> windows_core::HRESULT, } pub trait IAudioAmbisonicsControl_Impl: windows_core::IUnknownImpl { fn SetData(&self, pambisonicsparams: *const AMBISONICS_PARAMS, cbambisonicsparams: u32) -> windows_core::Result<()>; - fn SetHeadTracking(&self, benableheadtracking: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetHeadTracking(&self) -> windows_core::Result; + fn SetHeadTracking(&self, benableheadtracking: windows_core::BOOL) -> windows_core::Result<()>; + fn GetHeadTracking(&self) -> windows_core::Result; fn SetRotation(&self, x: f32, y: f32, z: f32, w: f32) -> windows_core::Result<()>; } impl IAudioAmbisonicsControl_Vtbl { @@ -2362,13 +2362,13 @@ impl IAudioAmbisonicsControl_Vtbl { IAudioAmbisonicsControl_Impl::SetData(this, core::mem::transmute_copy(&pambisonicsparams), core::mem::transmute_copy(&cbambisonicsparams)).into() } } - unsafe extern "system" fn SetHeadTracking(this: *mut core::ffi::c_void, benableheadtracking: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetHeadTracking(this: *mut core::ffi::c_void, benableheadtracking: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioAmbisonicsControl_Impl::SetHeadTracking(this, core::mem::transmute_copy(&benableheadtracking)).into() } } - unsafe extern "system" fn GetHeadTracking(this: *mut core::ffi::c_void, pbenableheadtracking: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHeadTracking(this: *mut core::ffi::c_void, pbenableheadtracking: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioAmbisonicsControl_Impl::GetHeadTracking(this) { @@ -2402,7 +2402,7 @@ impl windows_core::RuntimeName for IAudioAmbisonicsControl {} windows_core::imp::define_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 { + pub unsafe fn GetEnabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2415,16 +2415,16 @@ impl IAudioAutoGainControl { #[repr(C)] pub struct IAudioAutoGainControl_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *const windows_core::GUID) -> windows_core::HRESULT, + pub GetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *const windows_core::GUID) -> windows_core::HRESULT, } pub trait IAudioAutoGainControl_Impl: windows_core::IUnknownImpl { - fn GetEnabled(&self) -> windows_core::Result; - fn SetEnabled(&self, benable: super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; + fn GetEnabled(&self) -> windows_core::Result; + fn SetEnabled(&self, benable: windows_core::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; } impl IAudioAutoGainControl_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetEnabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetEnabled(this: *mut core::ffi::c_void, pbenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioAutoGainControl_Impl::GetEnabled(this) { @@ -2436,7 +2436,7 @@ impl IAudioAutoGainControl_Vtbl { } } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, benable: super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, benable: windows_core::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioAutoGainControl_Impl::SetEnabled(this, core::mem::transmute_copy(&benable), core::mem::transmute_copy(&pguideventcontext)).into() @@ -2809,7 +2809,7 @@ impl core::ops::Deref for IAudioClient2 { } windows_core::imp::interface_hierarchy!(IAudioClient2, windows_core::IUnknown, IAudioClient); impl IAudioClient2 { - pub unsafe fn IsOffloadCapable(&self, category: AUDIO_STREAM_CATEGORY) -> windows_core::Result { + pub unsafe fn IsOffloadCapable(&self, category: AUDIO_STREAM_CATEGORY) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsOffloadCapable)(windows_core::Interface::as_raw(self), category, &mut result__).map(|| result__) @@ -2825,18 +2825,18 @@ impl IAudioClient2 { #[repr(C)] pub struct IAudioClient2_Vtbl { pub base__: IAudioClient_Vtbl, - pub IsOffloadCapable: unsafe extern "system" fn(*mut core::ffi::c_void, AUDIO_STREAM_CATEGORY, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsOffloadCapable: unsafe extern "system" fn(*mut core::ffi::c_void, AUDIO_STREAM_CATEGORY, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetClientProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *const AudioClientProperties) -> windows_core::HRESULT, - pub GetBufferSizeLimits: unsafe extern "system" fn(*mut core::ffi::c_void, *const WAVEFORMATEX, super::super::Foundation::BOOL, *mut i64, *mut i64) -> windows_core::HRESULT, + pub GetBufferSizeLimits: unsafe extern "system" fn(*mut core::ffi::c_void, *const WAVEFORMATEX, windows_core::BOOL, *mut i64, *mut i64) -> windows_core::HRESULT, } pub trait IAudioClient2_Impl: IAudioClient_Impl { - fn IsOffloadCapable(&self, category: AUDIO_STREAM_CATEGORY) -> windows_core::Result; + fn IsOffloadCapable(&self, category: AUDIO_STREAM_CATEGORY) -> windows_core::Result; fn SetClientProperties(&self, pproperties: *const AudioClientProperties) -> windows_core::Result<()>; - fn GetBufferSizeLimits(&self, pformat: *const WAVEFORMATEX, beventdriven: super::super::Foundation::BOOL, phnsminbufferduration: *mut i64, phnsmaxbufferduration: *mut i64) -> windows_core::Result<()>; + fn GetBufferSizeLimits(&self, pformat: *const WAVEFORMATEX, beventdriven: windows_core::BOOL, phnsminbufferduration: *mut i64, phnsmaxbufferduration: *mut i64) -> windows_core::Result<()>; } impl IAudioClient2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsOffloadCapable(this: *mut core::ffi::c_void, category: AUDIO_STREAM_CATEGORY, pboffloadcapable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsOffloadCapable(this: *mut core::ffi::c_void, category: AUDIO_STREAM_CATEGORY, pboffloadcapable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioClient2_Impl::IsOffloadCapable(this, core::mem::transmute_copy(&category)) { @@ -2854,7 +2854,7 @@ impl IAudioClient2_Vtbl { IAudioClient2_Impl::SetClientProperties(this, core::mem::transmute_copy(&pproperties)).into() } } - unsafe extern "system" fn GetBufferSizeLimits(this: *mut core::ffi::c_void, pformat: *const WAVEFORMATEX, beventdriven: super::super::Foundation::BOOL, phnsminbufferduration: *mut i64, phnsmaxbufferduration: *mut i64) -> windows_core::HRESULT { + unsafe extern "system" fn GetBufferSizeLimits(this: *mut core::ffi::c_void, pformat: *const WAVEFORMATEX, beventdriven: windows_core::BOOL, phnsminbufferduration: *mut i64, phnsmaxbufferduration: *mut i64) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioClient2_Impl::GetBufferSizeLimits(this, core::mem::transmute_copy(&pformat), core::mem::transmute_copy(&beventdriven), core::mem::transmute_copy(&phnsminbufferduration), core::mem::transmute_copy(&phnsmaxbufferduration)).into() @@ -3324,7 +3324,7 @@ impl windows_core::RuntimeName for IAudioInputSelector {} windows_core::imp::define_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 { + pub unsafe fn GetEnabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3337,16 +3337,16 @@ impl IAudioLoudness { #[repr(C)] pub struct IAudioLoudness_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *const windows_core::GUID) -> windows_core::HRESULT, + pub GetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *const windows_core::GUID) -> windows_core::HRESULT, } pub trait IAudioLoudness_Impl: windows_core::IUnknownImpl { - fn GetEnabled(&self) -> windows_core::Result; - fn SetEnabled(&self, benable: super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; + fn GetEnabled(&self) -> windows_core::Result; + fn SetEnabled(&self, benable: windows_core::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; } impl IAudioLoudness_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetEnabled(this: *mut core::ffi::c_void, pbenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetEnabled(this: *mut core::ffi::c_void, pbenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioLoudness_Impl::GetEnabled(this) { @@ -3358,7 +3358,7 @@ impl IAudioLoudness_Vtbl { } } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, benable: super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, benable: windows_core::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioLoudness_Impl::SetEnabled(this, core::mem::transmute_copy(&benable), core::mem::transmute_copy(&pguideventcontext)).into() @@ -3403,7 +3403,7 @@ impl IAudioMute { pub unsafe fn SetMute(&self, bmuted: bool, pguideventcontext: Option<*const windows_core::GUID>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), bmuted.into(), pguideventcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } - pub unsafe fn GetMute(&self) -> windows_core::Result { + pub unsafe fn GetMute(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMute)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3413,22 +3413,22 @@ impl IAudioMute { #[repr(C)] pub struct IAudioMute_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetMute: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *const windows_core::GUID) -> windows_core::HRESULT, - pub GetMute: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetMute: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *const windows_core::GUID) -> windows_core::HRESULT, + pub GetMute: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAudioMute_Impl: windows_core::IUnknownImpl { - fn SetMute(&self, bmuted: super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; - fn GetMute(&self) -> windows_core::Result; + fn SetMute(&self, bmuted: windows_core::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::Result<()>; + fn GetMute(&self) -> windows_core::Result; } impl IAudioMute_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, bmuted: super::super::Foundation::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { + unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, bmuted: windows_core::BOOL, pguideventcontext: *const windows_core::GUID) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioMute_Impl::SetMute(this, core::mem::transmute_copy(&bmuted), core::mem::transmute_copy(&pguideventcontext)).into() } } - unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pbmuted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pbmuted: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioMute_Impl::GetMute(this) { @@ -3836,14 +3836,14 @@ pub struct IAudioSessionControl2_Vtbl { pub GetSessionInstanceIdentifier: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetProcessId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub IsSystemSoundsSession: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetDuckingPreference: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetDuckingPreference: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAudioSessionControl2_Impl: IAudioSessionControl_Impl { fn GetSessionIdentifier(&self) -> windows_core::Result; fn GetSessionInstanceIdentifier(&self) -> windows_core::Result; fn GetProcessId(&self) -> windows_core::Result; fn IsSystemSoundsSession(&self) -> windows_core::HRESULT; - fn SetDuckingPreference(&self, optout: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetDuckingPreference(&self, optout: windows_core::BOOL) -> windows_core::Result<()>; } impl IAudioSessionControl2_Vtbl { pub const fn new() -> Self { @@ -3889,7 +3889,7 @@ impl IAudioSessionControl2_Vtbl { IAudioSessionControl2_Impl::IsSystemSoundsSession(this) } } - unsafe extern "system" fn SetDuckingPreference(this: *mut core::ffi::c_void, optout: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetDuckingPreference(this: *mut core::ffi::c_void, optout: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionControl2_Impl::SetDuckingPreference(this, core::mem::transmute_copy(&optout)).into() @@ -4008,7 +4008,7 @@ pub struct IAudioSessionEvents_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub OnDisplayNameChanged: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const windows_core::GUID) -> windows_core::HRESULT, pub OnIconPathChanged: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const windows_core::GUID) -> windows_core::HRESULT, - pub OnSimpleVolumeChanged: unsafe extern "system" fn(*mut core::ffi::c_void, f32, super::super::Foundation::BOOL, *const windows_core::GUID) -> windows_core::HRESULT, + pub OnSimpleVolumeChanged: unsafe extern "system" fn(*mut core::ffi::c_void, f32, windows_core::BOOL, *const windows_core::GUID) -> windows_core::HRESULT, pub OnChannelVolumeChanged: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const f32, u32, *const windows_core::GUID) -> windows_core::HRESULT, pub OnGroupingParamChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const windows_core::GUID) -> windows_core::HRESULT, pub OnStateChanged: unsafe extern "system" fn(*mut core::ffi::c_void, AudioSessionState) -> windows_core::HRESULT, @@ -4017,7 +4017,7 @@ pub struct IAudioSessionEvents_Vtbl { pub trait IAudioSessionEvents_Impl: windows_core::IUnknownImpl { fn OnDisplayNameChanged(&self, newdisplayname: &windows_core::PCWSTR, eventcontext: *const windows_core::GUID) -> windows_core::Result<()>; fn OnIconPathChanged(&self, newiconpath: &windows_core::PCWSTR, eventcontext: *const windows_core::GUID) -> windows_core::Result<()>; - fn OnSimpleVolumeChanged(&self, newvolume: f32, newmute: super::super::Foundation::BOOL, eventcontext: *const windows_core::GUID) -> windows_core::Result<()>; + fn OnSimpleVolumeChanged(&self, newvolume: f32, newmute: windows_core::BOOL, eventcontext: *const windows_core::GUID) -> windows_core::Result<()>; fn OnChannelVolumeChanged(&self, channelcount: u32, newchannelvolumearray: *const f32, changedchannel: u32, eventcontext: *const windows_core::GUID) -> windows_core::Result<()>; fn OnGroupingParamChanged(&self, newgroupingparam: *const windows_core::GUID, eventcontext: *const windows_core::GUID) -> windows_core::Result<()>; fn OnStateChanged(&self, newstate: AudioSessionState) -> windows_core::Result<()>; @@ -4037,7 +4037,7 @@ impl IAudioSessionEvents_Vtbl { IAudioSessionEvents_Impl::OnIconPathChanged(this, core::mem::transmute(&newiconpath), core::mem::transmute_copy(&eventcontext)).into() } } - unsafe extern "system" fn OnSimpleVolumeChanged(this: *mut core::ffi::c_void, newvolume: f32, newmute: super::super::Foundation::BOOL, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT { + unsafe extern "system" fn OnSimpleVolumeChanged(this: *mut core::ffi::c_void, newvolume: f32, newmute: windows_core::BOOL, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioSessionEvents_Impl::OnSimpleVolumeChanged(this, core::mem::transmute_copy(&newvolume), core::mem::transmute_copy(&newmute), core::mem::transmute_copy(&eventcontext)).into() @@ -4884,7 +4884,7 @@ impl IConnector { pub unsafe fn Disconnect(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Disconnect)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn IsConnected(&self) -> windows_core::Result { + pub unsafe fn IsConnected(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsConnected)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4916,7 +4916,7 @@ pub struct IConnector_Vtbl { pub GetDataFlow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DataFlow) -> windows_core::HRESULT, pub ConnectTo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Disconnect: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsConnected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsConnected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetConnectedTo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetConnectorIdConnectedTo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetDeviceIdConnectedTo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, @@ -4926,7 +4926,7 @@ pub trait IConnector_Impl: windows_core::IUnknownImpl { fn GetDataFlow(&self) -> windows_core::Result; fn ConnectTo(&self, pconnectto: windows_core::Ref) -> windows_core::Result<()>; fn Disconnect(&self) -> windows_core::Result<()>; - fn IsConnected(&self) -> windows_core::Result; + fn IsConnected(&self) -> windows_core::Result; fn GetConnectedTo(&self) -> windows_core::Result; fn GetConnectorIdConnectedTo(&self) -> windows_core::Result; fn GetDeviceIdConnectedTo(&self) -> windows_core::Result; @@ -4969,7 +4969,7 @@ impl IConnector_Vtbl { IConnector_Impl::Disconnect(this).into() } } - unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, pbconnected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, pbconnected: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConnector_Impl::IsConnected(this) { @@ -5260,7 +5260,7 @@ pub struct IDeviceTopology_Vtbl { pub GetSubunit: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetPartById: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDeviceId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub GetSignalPath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetSignalPath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IDeviceTopology_Impl: windows_core::IUnknownImpl { fn GetConnectorCount(&self) -> windows_core::Result; @@ -5269,7 +5269,7 @@ pub trait IDeviceTopology_Impl: windows_core::IUnknownImpl { fn GetSubunit(&self, nindex: u32) -> windows_core::Result; fn GetPartById(&self, nid: u32) -> windows_core::Result; fn GetDeviceId(&self) -> windows_core::Result; - fn GetSignalPath(&self, pipartfrom: windows_core::Ref, pipartto: windows_core::Ref, brejectmixedpaths: super::super::Foundation::BOOL) -> windows_core::Result; + fn GetSignalPath(&self, pipartfrom: windows_core::Ref, pipartto: windows_core::Ref, brejectmixedpaths: windows_core::BOOL) -> windows_core::Result; } impl IDeviceTopology_Vtbl { pub const fn new() -> Self { @@ -5345,7 +5345,7 @@ impl IDeviceTopology_Vtbl { } } } - unsafe extern "system" fn GetSignalPath(this: *mut core::ffi::c_void, pipartfrom: *mut core::ffi::c_void, pipartto: *mut core::ffi::c_void, brejectmixedpaths: super::super::Foundation::BOOL, ppparts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetSignalPath(this: *mut core::ffi::c_void, pipartfrom: *mut core::ffi::c_void, pipartto: *mut core::ffi::c_void, brejectmixedpaths: windows_core::BOOL, ppparts: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeviceTopology_Impl::GetSignalPath(this, core::mem::transmute_copy(&pipartfrom), core::mem::transmute_copy(&pipartto), core::mem::transmute_copy(&brejectmixedpaths)) { @@ -6357,7 +6357,7 @@ impl ISimpleAudioVolume { pub unsafe fn SetMute(&self, bmute: bool, eventcontext: *const windows_core::GUID) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), bmute.into(), eventcontext).ok() } } - pub unsafe fn GetMute(&self) -> windows_core::Result { + pub unsafe fn GetMute(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMute)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6369,14 +6369,14 @@ pub struct ISimpleAudioVolume_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetMasterVolume: unsafe extern "system" fn(*mut core::ffi::c_void, f32, *const windows_core::GUID) -> windows_core::HRESULT, pub GetMasterVolume: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, - pub SetMute: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *const windows_core::GUID) -> windows_core::HRESULT, - pub GetMute: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetMute: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *const windows_core::GUID) -> windows_core::HRESULT, + pub GetMute: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ISimpleAudioVolume_Impl: windows_core::IUnknownImpl { fn SetMasterVolume(&self, flevel: f32, eventcontext: *const windows_core::GUID) -> windows_core::Result<()>; fn GetMasterVolume(&self) -> windows_core::Result; - fn SetMute(&self, bmute: super::super::Foundation::BOOL, eventcontext: *const windows_core::GUID) -> windows_core::Result<()>; - fn GetMute(&self) -> windows_core::Result; + fn SetMute(&self, bmute: windows_core::BOOL, eventcontext: *const windows_core::GUID) -> windows_core::Result<()>; + fn GetMute(&self) -> windows_core::Result; } impl ISimpleAudioVolume_Vtbl { pub const fn new() -> Self { @@ -6398,13 +6398,13 @@ impl ISimpleAudioVolume_Vtbl { } } } - unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, bmute: super::super::Foundation::BOOL, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT { + unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, bmute: windows_core::BOOL, eventcontext: *const windows_core::GUID) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimpleAudioVolume_Impl::SetMute(this, core::mem::transmute_copy(&bmute), core::mem::transmute_copy(&eventcontext)).into() } } - unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pbmute: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pbmute: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimpleAudioVolume_Impl::GetMute(this) { @@ -6606,7 +6606,7 @@ impl core::ops::Deref for ISpatialAudioClient2 { } windows_core::imp::interface_hierarchy!(ISpatialAudioClient2, windows_core::IUnknown, ISpatialAudioClient); impl ISpatialAudioClient2 { - pub unsafe fn IsOffloadCapable(&self, category: AUDIO_STREAM_CATEGORY) -> windows_core::Result { + pub unsafe fn IsOffloadCapable(&self, category: AUDIO_STREAM_CATEGORY) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsOffloadCapable)(windows_core::Interface::as_raw(self), category, &mut result__).map(|| result__) @@ -6622,18 +6622,18 @@ impl ISpatialAudioClient2 { #[repr(C)] pub struct ISpatialAudioClient2_Vtbl { pub base__: ISpatialAudioClient_Vtbl, - pub IsOffloadCapable: unsafe extern "system" fn(*mut core::ffi::c_void, AUDIO_STREAM_CATEGORY, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetMaxFrameCountForCategory: unsafe extern "system" fn(*mut core::ffi::c_void, AUDIO_STREAM_CATEGORY, super::super::Foundation::BOOL, *const WAVEFORMATEX, *mut u32) -> windows_core::HRESULT, + pub IsOffloadCapable: unsafe extern "system" fn(*mut core::ffi::c_void, AUDIO_STREAM_CATEGORY, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub GetMaxFrameCountForCategory: unsafe extern "system" fn(*mut core::ffi::c_void, AUDIO_STREAM_CATEGORY, windows_core::BOOL, *const WAVEFORMATEX, *mut u32) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub trait ISpatialAudioClient2_Impl: ISpatialAudioClient_Impl { - fn IsOffloadCapable(&self, category: AUDIO_STREAM_CATEGORY) -> windows_core::Result; - fn GetMaxFrameCountForCategory(&self, category: AUDIO_STREAM_CATEGORY, offloadenabled: super::super::Foundation::BOOL, objectformat: *const WAVEFORMATEX) -> windows_core::Result; + fn IsOffloadCapable(&self, category: AUDIO_STREAM_CATEGORY) -> windows_core::Result; + fn GetMaxFrameCountForCategory(&self, category: AUDIO_STREAM_CATEGORY, offloadenabled: windows_core::BOOL, objectformat: *const WAVEFORMATEX) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] impl ISpatialAudioClient2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsOffloadCapable(this: *mut core::ffi::c_void, category: AUDIO_STREAM_CATEGORY, isoffloadcapable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsOffloadCapable(this: *mut core::ffi::c_void, category: AUDIO_STREAM_CATEGORY, isoffloadcapable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioClient2_Impl::IsOffloadCapable(this, core::mem::transmute_copy(&category)) { @@ -6645,7 +6645,7 @@ impl ISpatialAudioClient2_Vtbl { } } } - unsafe extern "system" fn GetMaxFrameCountForCategory(this: *mut core::ffi::c_void, category: AUDIO_STREAM_CATEGORY, offloadenabled: super::super::Foundation::BOOL, objectformat: *const WAVEFORMATEX, framecountperbuffer: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn GetMaxFrameCountForCategory(this: *mut core::ffi::c_void, category: AUDIO_STREAM_CATEGORY, offloadenabled: windows_core::BOOL, objectformat: *const WAVEFORMATEX, framecountperbuffer: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioClient2_Impl::GetMaxFrameCountForCategory(this, core::mem::transmute_copy(&category), core::mem::transmute_copy(&offloadenabled), core::mem::transmute_copy(&objectformat)) { @@ -7245,7 +7245,7 @@ impl ISpatialAudioObjectBase { pub unsafe fn SetEndOfStream(&self, framecount: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetEndOfStream)(windows_core::Interface::as_raw(self), framecount).ok() } } - pub unsafe fn IsActive(&self) -> windows_core::Result { + pub unsafe fn IsActive(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsActive)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7263,13 +7263,13 @@ pub struct ISpatialAudioObjectBase_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut u8, *mut u32) -> windows_core::HRESULT, pub SetEndOfStream: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub IsActive: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsActive: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetAudioObjectType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AudioObjectType) -> windows_core::HRESULT, } pub trait ISpatialAudioObjectBase_Impl: windows_core::IUnknownImpl { fn GetBuffer(&self, buffer: *mut *mut u8, bufferlength: *mut u32) -> windows_core::Result<()>; fn SetEndOfStream(&self, framecount: u32) -> windows_core::Result<()>; - fn IsActive(&self) -> windows_core::Result; + fn IsActive(&self) -> windows_core::Result; fn GetAudioObjectType(&self) -> windows_core::Result; } impl ISpatialAudioObjectBase_Vtbl { @@ -7286,7 +7286,7 @@ impl ISpatialAudioObjectBase_Vtbl { ISpatialAudioObjectBase_Impl::SetEndOfStream(this, core::mem::transmute_copy(&framecount)).into() } } - unsafe extern "system" fn IsActive(this: *mut core::ffi::c_void, isactive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsActive(this: *mut core::ffi::c_void, isactive: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpatialAudioObjectBase_Impl::IsActive(this) { 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 530e61ce65..156c746b55 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/mod.rs @@ -3428,7 +3428,7 @@ impl windows_core::RuntimeName for IWMDMEnumStorage {} windows_core::imp::define_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 { + pub unsafe fn IsEnabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3473,8 +3473,8 @@ impl IWMDMLogger { #[repr(C)] pub struct IWMDMLogger_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetLogFileName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PSTR, u32) -> windows_core::HRESULT, pub SetLogFileName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR) -> windows_core::HRESULT, pub LogString: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCSTR, windows_core::PCSTR) -> windows_core::HRESULT, @@ -3484,8 +3484,8 @@ pub struct IWMDMLogger_Vtbl { pub SetSizeParams: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, } pub trait IWMDMLogger_Impl: windows_core::IUnknownImpl { - fn IsEnabled(&self) -> windows_core::Result; - fn Enable(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsEnabled(&self) -> windows_core::Result; + fn Enable(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; fn GetLogFileName(&self, pszfilename: windows_core::PSTR, nmaxchars: u32) -> windows_core::Result<()>; fn SetLogFileName(&self, pszfilename: &windows_core::PCSTR) -> windows_core::Result<()>; fn LogString(&self, dwflags: u32, pszsrcname: &windows_core::PCSTR, pszlog: &windows_core::PCSTR) -> windows_core::Result<()>; @@ -3496,7 +3496,7 @@ pub trait IWMDMLogger_Impl: windows_core::IUnknownImpl { } impl IWMDMLogger_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void, pfenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMDMLogger_Impl::IsEnabled(this) { @@ -3508,7 +3508,7 @@ impl IWMDMLogger_Vtbl { } } } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDMLogger_Impl::Enable(this, core::mem::transmute_copy(&fenable)).into() @@ -5301,7 +5301,7 @@ impl windows_core::RuntimeName for IWMDeviceManager3 {} #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct MACINFO { - pub fUsed: super::super::Foundation::BOOL, + pub fUsed: windows_core::BOOL, pub abMacState: [u8; 36], } impl Default for MACINFO { 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 ddc0f6baf7..d5e52ce342 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 @@ -14,7 +14,7 @@ pub const ATSC_ETT_TID: u32 = 204u32; #[repr(C, packed(1))] #[derive(Clone, Copy)] pub struct ATSC_FILTER_OPTIONS { - pub fSpecifyEtmId: super::super::super::Foundation::BOOL, + pub fSpecifyEtmId: windows_core::BOOL, pub EtmId: u32, } impl Default for ATSC_FILTER_OPTIONS { @@ -496,8 +496,8 @@ pub const DSATTRIB_WMDRMProtectionInfo: windows_core::GUID = windows_core::GUID: pub struct DSHOW_STREAM_DESC { pub VersionNo: u32, pub StreamId: u32, - pub Default: super::super::super::Foundation::BOOL, - pub Creation: super::super::super::Foundation::BOOL, + pub Default: windows_core::BOOL, + pub Creation: windows_core::BOOL, pub Reserved: u32, } impl Default for DSHOW_STREAM_DESC { @@ -522,20 +522,20 @@ impl Default for DSMCC_ELEMENT { #[repr(C, packed(1))] #[derive(Clone, Copy)] pub struct DSMCC_FILTER_OPTIONS { - pub fSpecifyProtocol: super::super::super::Foundation::BOOL, + pub fSpecifyProtocol: windows_core::BOOL, pub Protocol: u8, - pub fSpecifyType: super::super::super::Foundation::BOOL, + pub fSpecifyType: windows_core::BOOL, pub Type: u8, - pub fSpecifyMessageId: super::super::super::Foundation::BOOL, + pub fSpecifyMessageId: windows_core::BOOL, pub MessageId: u16, - pub fSpecifyTransactionId: super::super::super::Foundation::BOOL, - pub fUseTrxIdMessageIdMask: super::super::super::Foundation::BOOL, + pub fSpecifyTransactionId: windows_core::BOOL, + pub fUseTrxIdMessageIdMask: windows_core::BOOL, pub TransactionId: u32, - pub fSpecifyModuleVersion: super::super::super::Foundation::BOOL, + pub fSpecifyModuleVersion: windows_core::BOOL, pub ModuleVersion: u8, - pub fSpecifyBlockNumber: super::super::super::Foundation::BOOL, + pub fSpecifyBlockNumber: windows_core::BOOL, pub BlockNumber: u16, - pub fGetModuleCall: super::super::super::Foundation::BOOL, + pub fGetModuleCall: windows_core::BOOL, pub NumberOfBlocksInModule: u16, } impl Default for DSMCC_FILTER_OPTIONS { @@ -606,7 +606,7 @@ pub const DVBS_SCAN_TABLE_MAX_SIZE: u32 = 400u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct DVBScramblingControlSpanningEvent { pub ulPID: u32, - pub fScrambled: super::super::super::Foundation::BOOL, + pub fScrambled: windows_core::BOOL, } impl Default for DVBScramblingControlSpanningEvent { fn default() -> Self { @@ -626,7 +626,7 @@ pub const DVB_EIT_ACTUAL_TID: u32 = 78u32; #[repr(C, packed(1))] #[derive(Clone, Copy)] pub struct DVB_EIT_FILTER_OPTIONS { - pub fSpecifySegment: super::super::super::Foundation::BOOL, + pub fSpecifySegment: windows_core::BOOL, pub bSegment: u8, } impl Default for DVB_EIT_FILTER_OPTIONS { @@ -679,8 +679,8 @@ pub struct DVDTextStringType(pub i32); pub struct DVR_STREAM_DESC { pub Version: u32, pub StreamId: u32, - pub Default: super::super::super::Foundation::BOOL, - pub Creation: super::super::super::Foundation::BOOL, + pub Default: windows_core::BOOL, + pub Creation: windows_core::BOOL, pub Reserved: u32, pub guidSubMediaType: windows_core::GUID, pub guidFormatType: windows_core::GUID, @@ -2238,31 +2238,31 @@ impl IATSC_VCT { (windows_core::Interface::vtable(self).GetRecordEtmLocation)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } } - pub unsafe fn GetRecordIsAccessControlledBitSet(&self, dwrecordindex: u32) -> windows_core::Result { + pub unsafe fn GetRecordIsAccessControlledBitSet(&self, dwrecordindex: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRecordIsAccessControlledBitSet)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } } - pub unsafe fn GetRecordIsHiddenBitSet(&self, dwrecordindex: u32) -> windows_core::Result { + pub unsafe fn GetRecordIsHiddenBitSet(&self, dwrecordindex: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRecordIsHiddenBitSet)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } } - pub unsafe fn GetRecordIsPathSelectBitSet(&self, dwrecordindex: u32) -> windows_core::Result { + pub unsafe fn GetRecordIsPathSelectBitSet(&self, dwrecordindex: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRecordIsPathSelectBitSet)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } } - pub unsafe fn GetRecordIsOutOfBandBitSet(&self, dwrecordindex: u32) -> windows_core::Result { + pub unsafe fn GetRecordIsOutOfBandBitSet(&self, dwrecordindex: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRecordIsOutOfBandBitSet)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } } - pub unsafe fn GetRecordIsHideGuideBitSet(&self, dwrecordindex: u32) -> windows_core::Result { + pub unsafe fn GetRecordIsHideGuideBitSet(&self, dwrecordindex: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRecordIsHideGuideBitSet)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) @@ -2324,11 +2324,11 @@ pub struct IATSC_VCT_Vtbl { pub GetRecordTransportStreamId: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u16) -> windows_core::HRESULT, pub GetRecordProgramNumber: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u16) -> windows_core::HRESULT, pub GetRecordEtmLocation: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u8) -> windows_core::HRESULT, - pub GetRecordIsAccessControlledBitSet: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetRecordIsHiddenBitSet: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetRecordIsPathSelectBitSet: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetRecordIsOutOfBandBitSet: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetRecordIsHideGuideBitSet: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetRecordIsAccessControlledBitSet: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub GetRecordIsHiddenBitSet: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub GetRecordIsPathSelectBitSet: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub GetRecordIsOutOfBandBitSet: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub GetRecordIsHideGuideBitSet: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetRecordServiceType: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u8) -> windows_core::HRESULT, pub GetRecordSourceId: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u16) -> windows_core::HRESULT, pub GetRecordCountOfDescriptors: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, @@ -2352,11 +2352,11 @@ pub trait IATSC_VCT_Impl: windows_core::IUnknownImpl { fn GetRecordTransportStreamId(&self, dwrecordindex: u32) -> windows_core::Result; fn GetRecordProgramNumber(&self, dwrecordindex: u32) -> windows_core::Result; fn GetRecordEtmLocation(&self, dwrecordindex: u32) -> windows_core::Result; - fn GetRecordIsAccessControlledBitSet(&self, dwrecordindex: u32) -> windows_core::Result; - fn GetRecordIsHiddenBitSet(&self, dwrecordindex: u32) -> windows_core::Result; - fn GetRecordIsPathSelectBitSet(&self, dwrecordindex: u32) -> windows_core::Result; - fn GetRecordIsOutOfBandBitSet(&self, dwrecordindex: u32) -> windows_core::Result; - fn GetRecordIsHideGuideBitSet(&self, dwrecordindex: u32) -> windows_core::Result; + fn GetRecordIsAccessControlledBitSet(&self, dwrecordindex: u32) -> windows_core::Result; + fn GetRecordIsHiddenBitSet(&self, dwrecordindex: u32) -> windows_core::Result; + fn GetRecordIsPathSelectBitSet(&self, dwrecordindex: u32) -> windows_core::Result; + fn GetRecordIsOutOfBandBitSet(&self, dwrecordindex: u32) -> windows_core::Result; + fn GetRecordIsHideGuideBitSet(&self, dwrecordindex: u32) -> windows_core::Result; fn GetRecordServiceType(&self, dwrecordindex: u32) -> windows_core::Result; fn GetRecordSourceId(&self, dwrecordindex: u32) -> windows_core::Result; fn GetRecordCountOfDescriptors(&self, dwrecordindex: u32) -> windows_core::Result; @@ -2518,7 +2518,7 @@ impl IATSC_VCT_Vtbl { } } } - unsafe extern "system" fn GetRecordIsAccessControlledBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetRecordIsAccessControlledBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordIsAccessControlledBitSet(this, core::mem::transmute_copy(&dwrecordindex)) { @@ -2530,7 +2530,7 @@ impl IATSC_VCT_Vtbl { } } } - unsafe extern "system" fn GetRecordIsHiddenBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetRecordIsHiddenBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordIsHiddenBitSet(this, core::mem::transmute_copy(&dwrecordindex)) { @@ -2542,7 +2542,7 @@ impl IATSC_VCT_Vtbl { } } } - unsafe extern "system" fn GetRecordIsPathSelectBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetRecordIsPathSelectBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordIsPathSelectBitSet(this, core::mem::transmute_copy(&dwrecordindex)) { @@ -2554,7 +2554,7 @@ impl IATSC_VCT_Vtbl { } } } - unsafe extern "system" fn GetRecordIsOutOfBandBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetRecordIsOutOfBandBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordIsOutOfBandBitSet(this, core::mem::transmute_copy(&dwrecordindex)) { @@ -2566,7 +2566,7 @@ impl IATSC_VCT_Vtbl { } } } - unsafe extern "system" fn GetRecordIsHideGuideBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetRecordIsHideGuideBitSet(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IATSC_VCT_Impl::GetRecordIsHideGuideBitSet(this, core::mem::transmute_copy(&dwrecordindex)) { @@ -3455,7 +3455,7 @@ pub struct IAtscPsipParser_Vtbl { pub GetPMT: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *const u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetTSDT: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetMGT: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetVCT: unsafe extern "system" fn(*mut core::ffi::c_void, u8, super::super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetVCT: unsafe extern "system" fn(*mut core::ffi::c_void, u8, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetEIT: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *const u16, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetETT: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *const u16, *const u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSTT: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -3468,7 +3468,7 @@ pub trait IAtscPsipParser_Impl: windows_core::IUnknownImpl { fn GetPMT(&self, pid: u16, pwprogramnumber: *const u16) -> windows_core::Result; fn GetTSDT(&self) -> windows_core::Result; fn GetMGT(&self) -> windows_core::Result; - fn GetVCT(&self, tableid: u8, fgetnexttable: super::super::super::Foundation::BOOL) -> windows_core::Result; + fn GetVCT(&self, tableid: u8, fgetnexttable: windows_core::BOOL) -> windows_core::Result; fn GetEIT(&self, pid: u16, pwsourceid: *const u16, dwtimeout: u32) -> windows_core::Result; fn GetETT(&self, pid: u16, wsourceid: *const u16, pweventid: *const u16) -> windows_core::Result; fn GetSTT(&self) -> windows_core::Result; @@ -3542,7 +3542,7 @@ impl IAtscPsipParser_Vtbl { } } } - unsafe extern "system" fn GetVCT(this: *mut core::ffi::c_void, tableid: u8, fgetnexttable: super::super::super::Foundation::BOOL, ppvct: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetVCT(this: *mut core::ffi::c_void, tableid: u8, fgetnexttable: windows_core::BOOL, ppvct: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAtscPsipParser_Impl::GetVCT(this, core::mem::transmute_copy(&tableid), core::mem::transmute_copy(&fgetnexttable)) { @@ -5702,7 +5702,7 @@ impl IDTFilter { pub unsafe fn put_BlockedRatingAttributes(&self, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel, lbfattrs: i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).put_BlockedRatingAttributes)(windows_core::Interface::as_raw(self), ensystem, enlevel, lbfattrs).ok() } } - pub unsafe fn BlockUnRated(&self) -> windows_core::Result { + pub unsafe fn BlockUnRated(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BlockUnRated)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -5728,8 +5728,8 @@ pub struct IDTFilter_Vtbl { pub GetCurrRating: unsafe extern "system" fn(*mut core::ffi::c_void, *mut EnTvRat_System, *mut EnTvRat_GenericLevel, *mut i32) -> windows_core::HRESULT, pub get_BlockedRatingAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, EnTvRat_System, EnTvRat_GenericLevel, *mut i32) -> windows_core::HRESULT, pub put_BlockedRatingAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, EnTvRat_System, EnTvRat_GenericLevel, i32) -> windows_core::HRESULT, - pub BlockUnRated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetBlockUnRated: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub BlockUnRated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetBlockUnRated: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub BlockUnRatedDelay: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetBlockUnRatedDelay: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, } @@ -5738,8 +5738,8 @@ pub trait IDTFilter_Impl: windows_core::IUnknownImpl { fn GetCurrRating(&self, pensystem: *mut EnTvRat_System, penrating: *mut EnTvRat_GenericLevel, plbfenattr: *mut i32) -> windows_core::Result<()>; fn get_BlockedRatingAttributes(&self, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel) -> windows_core::Result; fn put_BlockedRatingAttributes(&self, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel, lbfattrs: i32) -> windows_core::Result<()>; - fn BlockUnRated(&self) -> windows_core::Result; - fn SetBlockUnRated(&self, fblockunratedshows: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn BlockUnRated(&self) -> windows_core::Result; + fn SetBlockUnRated(&self, fblockunratedshows: windows_core::BOOL) -> windows_core::Result<()>; fn BlockUnRatedDelay(&self) -> windows_core::Result; fn SetBlockUnRatedDelay(&self, msecsdelaybeforeblock: i32) -> windows_core::Result<()>; } @@ -5781,7 +5781,7 @@ impl IDTFilter_Vtbl { IDTFilter_Impl::put_BlockedRatingAttributes(this, core::mem::transmute_copy(&ensystem), core::mem::transmute_copy(&enlevel), core::mem::transmute_copy(&lbfattrs)).into() } } - unsafe extern "system" fn BlockUnRated(this: *mut core::ffi::c_void, pfblockunratedshows: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn BlockUnRated(this: *mut core::ffi::c_void, pfblockunratedshows: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDTFilter_Impl::BlockUnRated(this) { @@ -5793,7 +5793,7 @@ impl IDTFilter_Vtbl { } } } - unsafe extern "system" fn SetBlockUnRated(this: *mut core::ffi::c_void, fblockunratedshows: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBlockUnRated(this: *mut core::ffi::c_void, fblockunratedshows: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDTFilter_Impl::SetBlockUnRated(this, core::mem::transmute_copy(&fblockunratedshows)).into() @@ -5930,7 +5930,7 @@ impl IDTFilter3 { (windows_core::Interface::vtable(self).GetProtectionType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn LicenseHasExpirationDate(&self) -> windows_core::Result { + pub unsafe fn LicenseHasExpirationDate(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LicenseHasExpirationDate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -5944,12 +5944,12 @@ impl IDTFilter3 { pub struct IDTFilter3_Vtbl { pub base__: IDTFilter2_Vtbl, pub GetProtectionType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ProtType) -> windows_core::HRESULT, - pub LicenseHasExpirationDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub LicenseHasExpirationDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetRights: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IDTFilter3_Impl: IDTFilter2_Impl { fn GetProtectionType(&self) -> windows_core::Result; - fn LicenseHasExpirationDate(&self) -> windows_core::Result; + fn LicenseHasExpirationDate(&self) -> windows_core::Result; fn SetRights(&self, bstrrights: &windows_core::BSTR) -> windows_core::Result<()>; } impl IDTFilter3_Vtbl { @@ -5966,7 +5966,7 @@ impl IDTFilter3_Vtbl { } } } - unsafe extern "system" fn LicenseHasExpirationDate(this: *mut core::ffi::c_void, pflicensehasexpirationdate: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn LicenseHasExpirationDate(this: *mut core::ffi::c_void, pflicensehasexpirationdate: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDTFilter3_Impl::LicenseHasExpirationDate(this) { @@ -7700,7 +7700,7 @@ impl IDVB_DIT { { unsafe { (windows_core::Interface::vtable(self).Initialize)(windows_core::Interface::as_raw(self), psectionlist.param().abi()).ok() } } - pub unsafe fn GetTransitionFlag(&self) -> windows_core::Result { + pub unsafe fn GetTransitionFlag(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetTransitionFlag)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7711,11 +7711,11 @@ impl IDVB_DIT { pub struct IDVB_DIT_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetTransitionFlag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetTransitionFlag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IDVB_DIT_Impl: windows_core::IUnknownImpl { fn Initialize(&self, psectionlist: windows_core::Ref) -> windows_core::Result<()>; - fn GetTransitionFlag(&self) -> windows_core::Result; + fn GetTransitionFlag(&self) -> windows_core::Result; } impl IDVB_DIT_Vtbl { pub const fn new() -> Self { @@ -7725,7 +7725,7 @@ impl IDVB_DIT_Vtbl { IDVB_DIT_Impl::Initialize(this, core::mem::transmute_copy(&psectionlist)).into() } } - unsafe extern "system" fn GetTransitionFlag(this: *mut core::ffi::c_void, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetTransitionFlag(this: *mut core::ffi::c_void, pfval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_DIT_Impl::GetTransitionFlag(this) { @@ -7824,7 +7824,7 @@ impl IDVB_EIT { (windows_core::Interface::vtable(self).GetRecordRunningStatus)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } } - pub unsafe fn GetRecordFreeCAMode(&self, dwrecordindex: u32) -> windows_core::Result { + pub unsafe fn GetRecordFreeCAMode(&self, dwrecordindex: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRecordFreeCAMode)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) @@ -7882,7 +7882,7 @@ pub struct IDVB_EIT_Vtbl { pub GetRecordStartTime: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT, pub GetRecordDuration: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut MPEG_TIME) -> windows_core::HRESULT, pub GetRecordRunningStatus: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u8) -> windows_core::HRESULT, - pub GetRecordFreeCAMode: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetRecordFreeCAMode: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetRecordCountOfDescriptors: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, pub GetRecordDescriptorByIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetRecordDescriptorByTag: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u8, *mut u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -7905,7 +7905,7 @@ pub trait IDVB_EIT_Impl: windows_core::IUnknownImpl { fn GetRecordStartTime(&self, dwrecordindex: u32) -> windows_core::Result; fn GetRecordDuration(&self, dwrecordindex: u32) -> windows_core::Result; fn GetRecordRunningStatus(&self, dwrecordindex: u32) -> windows_core::Result; - fn GetRecordFreeCAMode(&self, dwrecordindex: u32) -> windows_core::Result; + fn GetRecordFreeCAMode(&self, dwrecordindex: u32) -> windows_core::Result; fn GetRecordCountOfDescriptors(&self, dwrecordindex: u32) -> windows_core::Result; fn GetRecordDescriptorByIndex(&self, dwrecordindex: u32, dwindex: u32) -> windows_core::Result; fn GetRecordDescriptorByTag(&self, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: windows_core::OutRef<'_, IGenericDescriptor>) -> windows_core::Result<()>; @@ -8055,7 +8055,7 @@ impl IDVB_EIT_Vtbl { } } } - unsafe extern "system" fn GetRecordFreeCAMode(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetRecordFreeCAMode(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_EIT_Impl::GetRecordFreeCAMode(this, core::mem::transmute_copy(&dwrecordindex)) { @@ -8759,13 +8759,13 @@ impl IDVB_SDT { (windows_core::Interface::vtable(self).GetRecordServiceId)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } } - pub unsafe fn GetRecordEITScheduleFlag(&self, dwrecordindex: u32) -> windows_core::Result { + pub unsafe fn GetRecordEITScheduleFlag(&self, dwrecordindex: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRecordEITScheduleFlag)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } } - pub unsafe fn GetRecordEITPresentFollowingFlag(&self, dwrecordindex: u32) -> windows_core::Result { + pub unsafe fn GetRecordEITPresentFollowingFlag(&self, dwrecordindex: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRecordEITPresentFollowingFlag)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) @@ -8777,7 +8777,7 @@ impl IDVB_SDT { (windows_core::Interface::vtable(self).GetRecordRunningStatus)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) } } - pub unsafe fn GetRecordFreeCAMode(&self, dwrecordindex: u32) -> windows_core::Result { + pub unsafe fn GetRecordFreeCAMode(&self, dwrecordindex: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRecordFreeCAMode)(windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).map(|| result__) @@ -8829,10 +8829,10 @@ pub struct IDVB_SDT_Vtbl { pub GetOriginalNetworkId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16) -> windows_core::HRESULT, pub GetCountOfRecords: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetRecordServiceId: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u16) -> windows_core::HRESULT, - pub GetRecordEITScheduleFlag: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetRecordEITPresentFollowingFlag: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetRecordEITScheduleFlag: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub GetRecordEITPresentFollowingFlag: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetRecordRunningStatus: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u8) -> windows_core::HRESULT, - pub GetRecordFreeCAMode: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetRecordFreeCAMode: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetRecordCountOfDescriptors: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, pub GetRecordDescriptorByIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetRecordDescriptorByTag: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u8, *mut u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -8849,10 +8849,10 @@ pub trait IDVB_SDT_Impl: windows_core::IUnknownImpl { fn GetOriginalNetworkId(&self) -> windows_core::Result; fn GetCountOfRecords(&self) -> windows_core::Result; fn GetRecordServiceId(&self, dwrecordindex: u32) -> windows_core::Result; - fn GetRecordEITScheduleFlag(&self, dwrecordindex: u32) -> windows_core::Result; - fn GetRecordEITPresentFollowingFlag(&self, dwrecordindex: u32) -> windows_core::Result; + fn GetRecordEITScheduleFlag(&self, dwrecordindex: u32) -> windows_core::Result; + fn GetRecordEITPresentFollowingFlag(&self, dwrecordindex: u32) -> windows_core::Result; fn GetRecordRunningStatus(&self, dwrecordindex: u32) -> windows_core::Result; - fn GetRecordFreeCAMode(&self, dwrecordindex: u32) -> windows_core::Result; + fn GetRecordFreeCAMode(&self, dwrecordindex: u32) -> windows_core::Result; fn GetRecordCountOfDescriptors(&self, dwrecordindex: u32) -> windows_core::Result; fn GetRecordDescriptorByIndex(&self, dwrecordindex: u32, dwindex: u32) -> windows_core::Result; fn GetRecordDescriptorByTag(&self, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: windows_core::OutRef<'_, IGenericDescriptor>) -> windows_core::Result<()>; @@ -8930,7 +8930,7 @@ impl IDVB_SDT_Vtbl { } } } - unsafe extern "system" fn GetRecordEITScheduleFlag(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetRecordEITScheduleFlag(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SDT_Impl::GetRecordEITScheduleFlag(this, core::mem::transmute_copy(&dwrecordindex)) { @@ -8942,7 +8942,7 @@ impl IDVB_SDT_Vtbl { } } } - unsafe extern "system" fn GetRecordEITPresentFollowingFlag(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetRecordEITPresentFollowingFlag(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SDT_Impl::GetRecordEITPresentFollowingFlag(this, core::mem::transmute_copy(&dwrecordindex)) { @@ -8966,7 +8966,7 @@ impl IDVB_SDT_Vtbl { } } } - unsafe extern "system" fn GetRecordFreeCAMode(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetRecordFreeCAMode(this: *mut core::ffi::c_void, dwrecordindex: u32, pfval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDVB_SDT_Impl::GetRecordFreeCAMode(this, core::mem::transmute_copy(&dwrecordindex)) { @@ -12408,13 +12408,13 @@ impl IDvbServiceAttributeDescriptor { (windows_core::Interface::vtable(self).GetRecordServiceId)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } } - pub unsafe fn GetRecordNumericSelectionFlag(&self, brecordindex: u8) -> windows_core::Result { + pub unsafe fn GetRecordNumericSelectionFlag(&self, brecordindex: u8) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRecordNumericSelectionFlag)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) } } - pub unsafe fn GetRecordVisibleServiceFlag(&self, brecordindex: u8) -> windows_core::Result { + pub unsafe fn GetRecordVisibleServiceFlag(&self, brecordindex: u8) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRecordVisibleServiceFlag)(windows_core::Interface::as_raw(self), brecordindex, &mut result__).map(|| result__) @@ -12428,16 +12428,16 @@ pub struct IDvbServiceAttributeDescriptor_Vtbl { pub GetLength: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, pub GetCountOfRecords: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, pub GetRecordServiceId: unsafe extern "system" fn(*mut core::ffi::c_void, u8, *mut u16) -> windows_core::HRESULT, - pub GetRecordNumericSelectionFlag: unsafe extern "system" fn(*mut core::ffi::c_void, u8, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetRecordVisibleServiceFlag: unsafe extern "system" fn(*mut core::ffi::c_void, u8, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetRecordNumericSelectionFlag: unsafe extern "system" fn(*mut core::ffi::c_void, u8, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub GetRecordVisibleServiceFlag: unsafe extern "system" fn(*mut core::ffi::c_void, u8, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IDvbServiceAttributeDescriptor_Impl: windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; fn GetCountOfRecords(&self) -> windows_core::Result; fn GetRecordServiceId(&self, brecordindex: u8) -> windows_core::Result; - fn GetRecordNumericSelectionFlag(&self, brecordindex: u8) -> windows_core::Result; - fn GetRecordVisibleServiceFlag(&self, brecordindex: u8) -> windows_core::Result; + fn GetRecordNumericSelectionFlag(&self, brecordindex: u8) -> windows_core::Result; + fn GetRecordVisibleServiceFlag(&self, brecordindex: u8) -> windows_core::Result; } impl IDvbServiceAttributeDescriptor_Vtbl { pub const fn new() -> Self { @@ -12489,7 +12489,7 @@ impl IDvbServiceAttributeDescriptor_Vtbl { } } } - unsafe extern "system" fn GetRecordNumericSelectionFlag(this: *mut core::ffi::c_void, brecordindex: u8, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetRecordNumericSelectionFlag(this: *mut core::ffi::c_void, brecordindex: u8, pfval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceAttributeDescriptor_Impl::GetRecordNumericSelectionFlag(this, core::mem::transmute_copy(&brecordindex)) { @@ -12501,7 +12501,7 @@ impl IDvbServiceAttributeDescriptor_Vtbl { } } } - unsafe extern "system" fn GetRecordVisibleServiceFlag(this: *mut core::ffi::c_void, brecordindex: u8, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetRecordVisibleServiceFlag(this: *mut core::ffi::c_void, brecordindex: u8, pfval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvbServiceAttributeDescriptor_Impl::GetRecordVisibleServiceFlag(this, core::mem::transmute_copy(&brecordindex)) { @@ -14548,13 +14548,13 @@ impl IESFileExpiryDateEvent { (windows_core::Interface::vtable(self).GetMaxRenewalCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsEntitlementTokenPresent(&self) -> windows_core::Result { + pub unsafe fn IsEntitlementTokenPresent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsEntitlementTokenPresent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn DoesExpireAfterFirstUse(&self) -> windows_core::Result { + pub unsafe fn DoesExpireAfterFirstUse(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DoesExpireAfterFirstUse)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -14568,8 +14568,8 @@ pub struct IESFileExpiryDateEvent_Vtbl { pub GetExpiryDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub GetFinalExpiryDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub GetMaxRenewalCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub IsEntitlementTokenPresent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub DoesExpireAfterFirstUse: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsEntitlementTokenPresent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub DoesExpireAfterFirstUse: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait IESFileExpiryDateEvent_Impl: super::IESEvent_Impl { @@ -14577,8 +14577,8 @@ pub trait IESFileExpiryDateEvent_Impl: super::IESEvent_Impl { fn GetExpiryDate(&self) -> windows_core::Result; fn GetFinalExpiryDate(&self) -> windows_core::Result; fn GetMaxRenewalCount(&self) -> windows_core::Result; - fn IsEntitlementTokenPresent(&self) -> windows_core::Result; - fn DoesExpireAfterFirstUse(&self) -> windows_core::Result; + fn IsEntitlementTokenPresent(&self) -> windows_core::Result; + fn DoesExpireAfterFirstUse(&self) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl IESFileExpiryDateEvent_Vtbl { @@ -14631,7 +14631,7 @@ impl IESFileExpiryDateEvent_Vtbl { } } } - unsafe extern "system" fn IsEntitlementTokenPresent(this: *mut core::ffi::c_void, pfenttokenpresent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsEntitlementTokenPresent(this: *mut core::ffi::c_void, pfenttokenpresent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESFileExpiryDateEvent_Impl::IsEntitlementTokenPresent(this) { @@ -14643,7 +14643,7 @@ impl IESFileExpiryDateEvent_Vtbl { } } } - unsafe extern "system" fn DoesExpireAfterFirstUse(this: *mut core::ffi::c_void, pfexpireafterfirstuse: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DoesExpireAfterFirstUse(this: *mut core::ffi::c_void, pfexpireafterfirstuse: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESFileExpiryDateEvent_Impl::DoesExpireAfterFirstUse(this) { @@ -14810,13 +14810,13 @@ impl IESLicenseRenewalResultEvent { (windows_core::Interface::vtable(self).GetFileName)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn IsRenewalSuccessful(&self) -> windows_core::Result { + pub unsafe fn IsRenewalSuccessful(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsRenewalSuccessful)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsCheckEntitlementCallRequired(&self) -> windows_core::Result { + pub unsafe fn IsCheckEntitlementCallRequired(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsCheckEntitlementCallRequired)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -14871,8 +14871,8 @@ pub struct IESLicenseRenewalResultEvent_Vtbl { pub base__: super::IESEvent_Vtbl, pub GetCallersId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetFileName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsRenewalSuccessful: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsCheckEntitlementCallRequired: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsRenewalSuccessful: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsCheckEntitlementCallRequired: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetDescrambledStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetRenewalResultCode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetCASFailureCode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -14888,8 +14888,8 @@ pub struct IESLicenseRenewalResultEvent_Vtbl { pub trait IESLicenseRenewalResultEvent_Impl: super::IESEvent_Impl { fn GetCallersId(&self) -> windows_core::Result; fn GetFileName(&self) -> windows_core::Result; - fn IsRenewalSuccessful(&self) -> windows_core::Result; - fn IsCheckEntitlementCallRequired(&self) -> windows_core::Result; + fn IsRenewalSuccessful(&self) -> windows_core::Result; + fn IsCheckEntitlementCallRequired(&self) -> windows_core::Result; fn GetDescrambledStatus(&self) -> windows_core::Result; fn GetRenewalResultCode(&self) -> windows_core::Result; fn GetCASFailureCode(&self) -> windows_core::Result; @@ -14925,7 +14925,7 @@ impl IESLicenseRenewalResultEvent_Vtbl { } } } - unsafe extern "system" fn IsRenewalSuccessful(this: *mut core::ffi::c_void, pfrenewalsuccessful: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsRenewalSuccessful(this: *mut core::ffi::c_void, pfrenewalsuccessful: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESLicenseRenewalResultEvent_Impl::IsRenewalSuccessful(this) { @@ -14937,7 +14937,7 @@ impl IESLicenseRenewalResultEvent_Vtbl { } } } - unsafe extern "system" fn IsCheckEntitlementCallRequired(this: *mut core::ffi::c_void, pfcheckenttokencallneeded: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsCheckEntitlementCallRequired(this: *mut core::ffi::c_void, pfcheckenttokencallneeded: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IESLicenseRenewalResultEvent_Impl::IsCheckEntitlementCallRequired(this) { @@ -15370,14 +15370,14 @@ pub struct IETFilter_Vtbl { pub GetCurrRating: unsafe extern "system" fn(*mut core::ffi::c_void, *mut EnTvRat_System, *mut EnTvRat_GenericLevel, *mut i32) -> windows_core::HRESULT, pub GetCurrLicenseExpDate: unsafe extern "system" fn(*mut core::ffi::c_void, *const ProtType, *mut i32) -> windows_core::HRESULT, pub GetLastErrorCode: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetRecordingOn: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetRecordingOn: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IETFilter_Impl: windows_core::IUnknownImpl { fn EvalRatObjOK(&self) -> windows_core::Result; fn GetCurrRating(&self, pensystem: *mut EnTvRat_System, penrating: *mut EnTvRat_GenericLevel, plbfenattr: *mut i32) -> windows_core::Result<()>; fn GetCurrLicenseExpDate(&self, prottype: *const ProtType) -> windows_core::Result; fn GetLastErrorCode(&self) -> windows_core::Result<()>; - fn SetRecordingOn(&self, frecstate: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetRecordingOn(&self, frecstate: windows_core::BOOL) -> windows_core::Result<()>; } impl IETFilter_Vtbl { pub const fn new() -> Self { @@ -15417,7 +15417,7 @@ impl IETFilter_Vtbl { IETFilter_Impl::GetLastErrorCode(this).into() } } - unsafe extern "system" fn SetRecordingOn(this: *mut core::ffi::c_void, frecstate: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetRecordingOn(this: *mut core::ffi::c_void, frecstate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IETFilter_Impl::SetRecordingOn(this, core::mem::transmute_copy(&frecstate)).into() @@ -16123,7 +16123,7 @@ impl IEvalRat { pub unsafe fn put_BlockedRatingAttributes(&self, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel, lbfattrs: i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).put_BlockedRatingAttributes)(windows_core::Interface::as_raw(self), ensystem, enlevel, lbfattrs).ok() } } - pub unsafe fn BlockUnRated(&self) -> windows_core::Result { + pub unsafe fn BlockUnRated(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BlockUnRated)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -16145,8 +16145,8 @@ pub struct IEvalRat_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub get_BlockedRatingAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, EnTvRat_System, EnTvRat_GenericLevel, *mut i32) -> windows_core::HRESULT, pub put_BlockedRatingAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, EnTvRat_System, EnTvRat_GenericLevel, i32) -> windows_core::HRESULT, - pub BlockUnRated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetBlockUnRated: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub BlockUnRated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetBlockUnRated: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub MostRestrictiveRating: unsafe extern "system" fn(*mut core::ffi::c_void, EnTvRat_System, EnTvRat_GenericLevel, i32, EnTvRat_System, EnTvRat_GenericLevel, i32, *mut EnTvRat_System, *mut EnTvRat_GenericLevel, *mut i32) -> windows_core::HRESULT, pub TestRating: unsafe extern "system" fn(*mut core::ffi::c_void, EnTvRat_System, EnTvRat_GenericLevel, i32) -> windows_core::HRESULT, } @@ -16154,8 +16154,8 @@ pub struct IEvalRat_Vtbl { pub trait IEvalRat_Impl: super::super::super::System::Com::IDispatch_Impl { fn get_BlockedRatingAttributes(&self, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel) -> windows_core::Result; fn put_BlockedRatingAttributes(&self, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel, lbfattrs: i32) -> windows_core::Result<()>; - fn BlockUnRated(&self) -> windows_core::Result; - fn SetBlockUnRated(&self, fblockunratedshows: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn BlockUnRated(&self) -> windows_core::Result; + fn SetBlockUnRated(&self, fblockunratedshows: windows_core::BOOL) -> windows_core::Result<()>; fn MostRestrictiveRating(&self, ensystem1: EnTvRat_System, enenlevel1: EnTvRat_GenericLevel, lbfenattr1: i32, ensystem2: EnTvRat_System, enenlevel2: EnTvRat_GenericLevel, lbfenattr2: i32, pensystem: *mut EnTvRat_System, penenlevel: *mut EnTvRat_GenericLevel, plbfenattr: *mut i32) -> windows_core::Result<()>; fn TestRating(&self, enshowsystem: EnTvRat_System, enshowlevel: EnTvRat_GenericLevel, lbfenshowattributes: i32) -> windows_core::Result<()>; } @@ -16180,7 +16180,7 @@ impl IEvalRat_Vtbl { IEvalRat_Impl::put_BlockedRatingAttributes(this, core::mem::transmute_copy(&ensystem), core::mem::transmute_copy(&enlevel), core::mem::transmute_copy(&lbfattrs)).into() } } - unsafe extern "system" fn BlockUnRated(this: *mut core::ffi::c_void, pfblockunratedshows: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn BlockUnRated(this: *mut core::ffi::c_void, pfblockunratedshows: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEvalRat_Impl::BlockUnRated(this) { @@ -16192,7 +16192,7 @@ impl IEvalRat_Vtbl { } } } - unsafe extern "system" fn SetBlockUnRated(this: *mut core::ffi::c_void, fblockunratedshows: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBlockUnRated(this: *mut core::ffi::c_void, fblockunratedshows: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEvalRat_Impl::SetBlockUnRated(this, core::mem::transmute_copy(&fblockunratedshows)).into() @@ -18632,13 +18632,13 @@ impl IIsdbAudioComponentDescriptor { (windows_core::Interface::vtable(self).GetSimulcastGroupTag)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetESMultiLingualFlag(&self) -> windows_core::Result { + pub unsafe fn GetESMultiLingualFlag(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetESMultiLingualFlag)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetMainComponentFlag(&self) -> windows_core::Result { + pub unsafe fn GetMainComponentFlag(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMainComponentFlag)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -18679,8 +18679,8 @@ pub struct IIsdbAudioComponentDescriptor_Vtbl { pub GetComponentTag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, pub GetStreamType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, pub GetSimulcastGroupTag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, - pub GetESMultiLingualFlag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetMainComponentFlag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetESMultiLingualFlag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub GetMainComponentFlag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetQualityIndicator: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, pub GetSamplingRate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, pub GetLanguageCode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, @@ -18695,8 +18695,8 @@ pub trait IIsdbAudioComponentDescriptor_Impl: windows_core::IUnknownImpl { fn GetComponentTag(&self) -> windows_core::Result; fn GetStreamType(&self) -> windows_core::Result; fn GetSimulcastGroupTag(&self) -> windows_core::Result; - fn GetESMultiLingualFlag(&self) -> windows_core::Result; - fn GetMainComponentFlag(&self) -> windows_core::Result; + fn GetESMultiLingualFlag(&self) -> windows_core::Result; + fn GetMainComponentFlag(&self) -> windows_core::Result; fn GetQualityIndicator(&self) -> windows_core::Result; fn GetSamplingRate(&self) -> windows_core::Result; fn GetLanguageCode(&self, pszcode: *mut u8) -> windows_core::Result<()>; @@ -18789,7 +18789,7 @@ impl IIsdbAudioComponentDescriptor_Vtbl { } } } - unsafe extern "system" fn GetESMultiLingualFlag(this: *mut core::ffi::c_void, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetESMultiLingualFlag(this: *mut core::ffi::c_void, pfval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbAudioComponentDescriptor_Impl::GetESMultiLingualFlag(this) { @@ -18801,7 +18801,7 @@ impl IIsdbAudioComponentDescriptor_Vtbl { } } } - unsafe extern "system" fn GetMainComponentFlag(this: *mut core::ffi::c_void, pfval: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetMainComponentFlag(this: *mut core::ffi::c_void, pfval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsdbAudioComponentDescriptor_Impl::GetMainComponentFlag(this) { @@ -19967,7 +19967,7 @@ impl IIsdbDownloadContentDescriptor { (windows_core::Interface::vtable(self).GetLength)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetFlags(&self, pfreboot: *mut super::super::super::Foundation::BOOL, pfaddon: *mut super::super::super::Foundation::BOOL, pfcompatibility: *mut super::super::super::Foundation::BOOL, pfmoduleinfo: *mut super::super::super::Foundation::BOOL, pftextinfo: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetFlags(&self, pfreboot: *mut windows_core::BOOL, pfaddon: *mut windows_core::BOOL, pfcompatibility: *mut windows_core::BOOL, pfmoduleinfo: *mut windows_core::BOOL, pftextinfo: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetFlags)(windows_core::Interface::as_raw(self), pfreboot as _, pfaddon as _, pfcompatibility as _, pfmoduleinfo as _, pftextinfo as _).ok() } } pub unsafe fn GetComponentSize(&self) -> windows_core::Result { @@ -20057,7 +20057,7 @@ pub struct IIsdbDownloadContentDescriptor_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetTag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, pub GetLength: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, - pub GetFlags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL, *mut super::super::super::Foundation::BOOL, *mut super::super::super::Foundation::BOOL, *mut super::super::super::Foundation::BOOL, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetFlags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut windows_core::BOOL, *mut windows_core::BOOL, *mut windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetComponentSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetDownloadId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetTimeOutValueDII: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -20076,7 +20076,7 @@ pub struct IIsdbDownloadContentDescriptor_Vtbl { pub trait IIsdbDownloadContentDescriptor_Impl: windows_core::IUnknownImpl { fn GetTag(&self) -> windows_core::Result; fn GetLength(&self) -> windows_core::Result; - fn GetFlags(&self, pfreboot: *mut super::super::super::Foundation::BOOL, pfaddon: *mut super::super::super::Foundation::BOOL, pfcompatibility: *mut super::super::super::Foundation::BOOL, pfmoduleinfo: *mut super::super::super::Foundation::BOOL, pftextinfo: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetFlags(&self, pfreboot: *mut windows_core::BOOL, pfaddon: *mut windows_core::BOOL, pfcompatibility: *mut windows_core::BOOL, pfmoduleinfo: *mut windows_core::BOOL, pftextinfo: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetComponentSize(&self) -> windows_core::Result; fn GetDownloadId(&self) -> windows_core::Result; fn GetTimeOutValueDII(&self) -> windows_core::Result; @@ -20118,7 +20118,7 @@ impl IIsdbDownloadContentDescriptor_Vtbl { } } } - unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pfreboot: *mut super::super::super::Foundation::BOOL, pfaddon: *mut super::super::super::Foundation::BOOL, pfcompatibility: *mut super::super::super::Foundation::BOOL, pfmoduleinfo: *mut super::super::super::Foundation::BOOL, pftextinfo: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetFlags(this: *mut core::ffi::c_void, pfreboot: *mut windows_core::BOOL, pfaddon: *mut windows_core::BOOL, pfcompatibility: *mut windows_core::BOOL, pfmoduleinfo: *mut windows_core::BOOL, pftextinfo: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsdbDownloadContentDescriptor_Impl::GetFlags(this, core::mem::transmute_copy(&pfreboot), core::mem::transmute_copy(&pfaddon), core::mem::transmute_copy(&pfcompatibility), core::mem::transmute_copy(&pfmoduleinfo), core::mem::transmute_copy(&pftextinfo)).into() @@ -21149,7 +21149,7 @@ impl IIsdbSeriesDescriptor { (windows_core::Interface::vtable(self).GetProgramPattern)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetExpireDate(&self, pfvalid: *mut super::super::super::Foundation::BOOL, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::Result<()> { + pub unsafe fn GetExpireDate(&self, pfvalid: *mut windows_core::BOOL, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetExpireDate)(windows_core::Interface::as_raw(self), pfvalid as _, pmdtval as _).ok() } } pub unsafe fn GetEpisodeNumber(&self) -> windows_core::Result { @@ -21179,7 +21179,7 @@ pub struct IIsdbSeriesDescriptor_Vtbl { pub GetSeriesId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16) -> windows_core::HRESULT, pub GetRepeatLabel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, pub GetProgramPattern: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, - pub GetExpireDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL, *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT, + pub GetExpireDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT, pub GetEpisodeNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16) -> windows_core::HRESULT, pub GetLastEpisodeNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16) -> windows_core::HRESULT, pub GetSeriesNameW: unsafe extern "system" fn(*mut core::ffi::c_void, DVB_STRCONV_MODE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -21190,7 +21190,7 @@ pub trait IIsdbSeriesDescriptor_Impl: windows_core::IUnknownImpl { fn GetSeriesId(&self) -> windows_core::Result; fn GetRepeatLabel(&self) -> windows_core::Result; fn GetProgramPattern(&self) -> windows_core::Result; - fn GetExpireDate(&self, pfvalid: *mut super::super::super::Foundation::BOOL, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::Result<()>; + fn GetExpireDate(&self, pfvalid: *mut windows_core::BOOL, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::Result<()>; fn GetEpisodeNumber(&self) -> windows_core::Result; fn GetLastEpisodeNumber(&self) -> windows_core::Result; fn GetSeriesNameW(&self, convmode: DVB_STRCONV_MODE) -> windows_core::Result; @@ -21257,7 +21257,7 @@ impl IIsdbSeriesDescriptor_Vtbl { } } } - unsafe extern "system" fn GetExpireDate(this: *mut core::ffi::c_void, pfvalid: *mut super::super::super::Foundation::BOOL, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT { + unsafe extern "system" fn GetExpireDate(this: *mut core::ffi::c_void, pfvalid: *mut windows_core::BOOL, pmdtval: *mut MPEG_DATE_AND_TIME) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsdbSeriesDescriptor_Impl::GetExpireDate(this, core::mem::transmute_copy(&pfvalid), core::mem::transmute_copy(&pmdtval)).into() @@ -34258,16 +34258,16 @@ impl IPTFilterLicenseRenewal { #[repr(C)] pub struct IPTFilterLicenseRenewal_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub RenewLicenses: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, u32, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub RenewLicenses: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, u32, windows_core::BOOL) -> windows_core::HRESULT, pub CancelLicenseRenewal: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IPTFilterLicenseRenewal_Impl: windows_core::IUnknownImpl { - fn RenewLicenses(&self, wszfilename: &windows_core::PCWSTR, wszexpiredkid: &windows_core::PCWSTR, dwcallersid: u32, bhighpriority: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn RenewLicenses(&self, wszfilename: &windows_core::PCWSTR, wszexpiredkid: &windows_core::PCWSTR, dwcallersid: u32, bhighpriority: windows_core::BOOL) -> windows_core::Result<()>; fn CancelLicenseRenewal(&self) -> windows_core::Result<()>; } impl IPTFilterLicenseRenewal_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn RenewLicenses(this: *mut core::ffi::c_void, wszfilename: windows_core::PCWSTR, wszexpiredkid: windows_core::PCWSTR, dwcallersid: u32, bhighpriority: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RenewLicenses(this: *mut core::ffi::c_void, wszfilename: windows_core::PCWSTR, wszexpiredkid: windows_core::PCWSTR, dwcallersid: u32, bhighpriority: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPTFilterLicenseRenewal_Impl::RenewLicenses(this, core::mem::transmute(&wszfilename), core::mem::transmute(&wszexpiredkid), core::mem::transmute_copy(&dwcallersid), core::mem::transmute_copy(&bhighpriority)).into() @@ -34732,21 +34732,21 @@ impl windows_core::RuntimeName for ISBE2FileScan {} windows_core::imp::define_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<()> { + pub unsafe fn GetEvent(&self, idevt: *const windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut windows_core::BOOL, pcb: *mut u32, pb: *mut u8) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetEvent)(windows_core::Interface::as_raw(self), idevt, param1, param2, param3, param4, pspanning as _, pcb as _, pb as _).ok() } } } #[repr(C)] pub struct ISBE2GlobalEvent_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetEvent: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u32, u32, u32, u32, *mut super::super::super::Foundation::BOOL, *mut u32, *mut u8) -> windows_core::HRESULT, + pub GetEvent: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u32, u32, u32, u32, *mut windows_core::BOOL, *mut u32, *mut u8) -> windows_core::HRESULT, } pub trait ISBE2GlobalEvent_Impl: windows_core::IUnknownImpl { - fn GetEvent(&self, idevt: *const windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut super::super::super::Foundation::BOOL, pcb: *mut u32, pb: *mut u8) -> windows_core::Result<()>; + fn GetEvent(&self, idevt: *const windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut windows_core::BOOL, pcb: *mut u32, pb: *mut u8) -> windows_core::Result<()>; } impl ISBE2GlobalEvent_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, idevt: *const windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut super::super::super::Foundation::BOOL, pcb: *mut u32, pb: *mut u8) -> windows_core::HRESULT { + unsafe extern "system" fn GetEvent(this: *mut core::ffi::c_void, idevt: *const windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut windows_core::BOOL, pcb: *mut u32, pb: *mut u8) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISBE2GlobalEvent_Impl::GetEvent(this, core::mem::transmute_copy(&idevt), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4), core::mem::transmute_copy(&pspanning), core::mem::transmute_copy(&pcb), core::mem::transmute_copy(&pb)).into() @@ -34768,21 +34768,21 @@ impl core::ops::Deref for ISBE2GlobalEvent2 { } windows_core::imp::interface_hierarchy!(ISBE2GlobalEvent2, windows_core::IUnknown, ISBE2GlobalEvent); impl ISBE2GlobalEvent2 { - pub unsafe fn GetEventEx(&self, idevt: *const windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut super::super::super::Foundation::BOOL, pcb: *mut u32, pb: *mut u8, pstreamtime: *mut i64) -> windows_core::Result<()> { + pub unsafe fn GetEventEx(&self, idevt: *const windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut windows_core::BOOL, pcb: *mut u32, pb: *mut u8, pstreamtime: *mut i64) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetEventEx)(windows_core::Interface::as_raw(self), idevt, param1, param2, param3, param4, pspanning as _, pcb as _, pb as _, pstreamtime as _).ok() } } } #[repr(C)] pub struct ISBE2GlobalEvent2_Vtbl { pub base__: ISBE2GlobalEvent_Vtbl, - pub GetEventEx: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u32, u32, u32, u32, *mut super::super::super::Foundation::BOOL, *mut u32, *mut u8, *mut i64) -> windows_core::HRESULT, + pub GetEventEx: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u32, u32, u32, u32, *mut windows_core::BOOL, *mut u32, *mut u8, *mut i64) -> windows_core::HRESULT, } pub trait ISBE2GlobalEvent2_Impl: ISBE2GlobalEvent_Impl { - fn GetEventEx(&self, idevt: *const windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut super::super::super::Foundation::BOOL, pcb: *mut u32, pb: *mut u8, pstreamtime: *mut i64) -> windows_core::Result<()>; + fn GetEventEx(&self, idevt: *const windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut windows_core::BOOL, pcb: *mut u32, pb: *mut u8, pstreamtime: *mut i64) -> windows_core::Result<()>; } impl ISBE2GlobalEvent2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetEventEx(this: *mut core::ffi::c_void, idevt: *const windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut super::super::super::Foundation::BOOL, pcb: *mut u32, pb: *mut u8, pstreamtime: *mut i64) -> windows_core::HRESULT { + unsafe extern "system" fn GetEventEx(this: *mut core::ffi::c_void, idevt: *const windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut windows_core::BOOL, pcb: *mut u32, pb: *mut u8, pstreamtime: *mut i64) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISBE2GlobalEvent2_Impl::GetEventEx(this, core::mem::transmute_copy(&idevt), core::mem::transmute_copy(¶m1), core::mem::transmute_copy(¶m2), core::mem::transmute_copy(¶m3), core::mem::transmute_copy(¶m4), core::mem::transmute_copy(&pspanning), core::mem::transmute_copy(&pcb), core::mem::transmute_copy(&pb), core::mem::transmute_copy(&pstreamtime)).into() @@ -35616,7 +35616,7 @@ impl ISIInbandEPG { pub unsafe fn StopSIEPGScan(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).StopSIEPGScan)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn IsSIEPGScanRunning(&self) -> windows_core::Result { + pub unsafe fn IsSIEPGScanRunning(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsSIEPGScanRunning)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -35628,12 +35628,12 @@ pub struct ISIInbandEPG_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub StartSIEPGScan: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub StopSIEPGScan: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsSIEPGScanRunning: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsSIEPGScanRunning: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ISIInbandEPG_Impl: windows_core::IUnknownImpl { fn StartSIEPGScan(&self) -> windows_core::Result<()>; fn StopSIEPGScan(&self) -> windows_core::Result<()>; - fn IsSIEPGScanRunning(&self) -> windows_core::Result; + fn IsSIEPGScanRunning(&self) -> windows_core::Result; } impl ISIInbandEPG_Vtbl { pub const fn new() -> Self { @@ -35649,7 +35649,7 @@ impl ISIInbandEPG_Vtbl { ISIInbandEPG_Impl::StopSIEPGScan(this).into() } } - unsafe extern "system" fn IsSIEPGScanRunning(this: *mut core::ffi::c_void, brunning: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsSIEPGScanRunning(this: *mut core::ffi::c_void, brunning: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISIInbandEPG_Impl::IsSIEPGScanRunning(this) { @@ -36379,7 +36379,7 @@ impl IStreamBufferConfigure3 { pub unsafe fn SetStartRecConfig(&self, fstartstopscur: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetStartRecConfig)(windows_core::Interface::as_raw(self), fstartstopscur.into()).ok() } } - pub unsafe fn GetStartRecConfig(&self) -> windows_core::Result { + pub unsafe fn GetStartRecConfig(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStartRecConfig)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -36401,26 +36401,26 @@ impl IStreamBufferConfigure3 { #[repr(C)] pub struct IStreamBufferConfigure3_Vtbl { pub base__: IStreamBufferConfigure2_Vtbl, - pub SetStartRecConfig: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetStartRecConfig: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetStartRecConfig: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetStartRecConfig: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetNamespace: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub GetNamespace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, } pub trait IStreamBufferConfigure3_Impl: IStreamBufferConfigure2_Impl { - fn SetStartRecConfig(&self, fstartstopscur: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetStartRecConfig(&self) -> windows_core::Result; + fn SetStartRecConfig(&self, fstartstopscur: windows_core::BOOL) -> windows_core::Result<()>; + fn GetStartRecConfig(&self) -> windows_core::Result; fn SetNamespace(&self, psznamespace: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetNamespace(&self) -> windows_core::Result; } impl IStreamBufferConfigure3_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetStartRecConfig(this: *mut core::ffi::c_void, fstartstopscur: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetStartRecConfig(this: *mut core::ffi::c_void, fstartstopscur: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferConfigure3_Impl::SetStartRecConfig(this, core::mem::transmute_copy(&fstartstopscur)).into() } } - unsafe extern "system" fn GetStartRecConfig(this: *mut core::ffi::c_void, pfstartstopscur: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetStartRecConfig(this: *mut core::ffi::c_void, pfstartstopscur: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IStreamBufferConfigure3_Impl::GetStartRecConfig(this) { @@ -36735,7 +36735,7 @@ impl IStreamBufferRecordControl { pub unsafe fn Stop(&self, rtstop: i64) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), rtstop).ok() } } - pub unsafe fn GetRecordingStatus(&self, phresult: *mut windows_core::HRESULT, pbstarted: *mut super::super::super::Foundation::BOOL, pbstopped: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetRecordingStatus(&self, phresult: *mut windows_core::HRESULT, pbstarted: *mut windows_core::BOOL, pbstopped: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetRecordingStatus)(windows_core::Interface::as_raw(self), phresult as _, pbstarted as _, pbstopped as _).ok() } } } @@ -36744,12 +36744,12 @@ pub struct IStreamBufferRecordControl_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Start: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub Stop: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - pub GetRecordingStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT, *mut super::super::super::Foundation::BOOL, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetRecordingStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT, *mut windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IStreamBufferRecordControl_Impl: windows_core::IUnknownImpl { fn Start(&self, prtstart: *mut i64) -> windows_core::Result<()>; fn Stop(&self, rtstop: i64) -> windows_core::Result<()>; - fn GetRecordingStatus(&self, phresult: *mut windows_core::HRESULT, pbstarted: *mut super::super::super::Foundation::BOOL, pbstopped: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetRecordingStatus(&self, phresult: *mut windows_core::HRESULT, pbstarted: *mut windows_core::BOOL, pbstopped: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IStreamBufferRecordControl_Vtbl { pub const fn new() -> Self { @@ -36765,7 +36765,7 @@ impl IStreamBufferRecordControl_Vtbl { IStreamBufferRecordControl_Impl::Stop(this, core::mem::transmute_copy(&rtstop)).into() } } - unsafe extern "system" fn GetRecordingStatus(this: *mut core::ffi::c_void, phresult: *mut windows_core::HRESULT, pbstarted: *mut super::super::super::Foundation::BOOL, pbstopped: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetRecordingStatus(this: *mut core::ffi::c_void, phresult: *mut windows_core::HRESULT, pbstarted: *mut windows_core::BOOL, pbstopped: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamBufferRecordControl_Impl::GetRecordingStatus(this, core::mem::transmute_copy(&phresult), core::mem::transmute_copy(&pbstarted), core::mem::transmute_copy(&pbstopped)).into() @@ -39814,7 +39814,7 @@ pub const KSPROPERTY_BDA_RF_TUNER_STANDARD_MODE: KSPROPERTY_BDA_FREQUENCY_FILTER #[derive(Clone, Copy)] pub struct KSPROPERTY_BDA_RF_TUNER_STANDARD_MODE_S { pub Property: super::super::KernelStreaming::KSP_NODE, - pub AutoDetect: super::super::super::Foundation::BOOL, + pub AutoDetect: windows_core::BOOL, } #[cfg(feature = "Win32_Media_KernelStreaming")] impl Default for KSPROPERTY_BDA_RF_TUNER_STANDARD_MODE_S { @@ -40018,20 +40018,20 @@ pub const MPEG2TuneRequestFactory: windows_core::GUID = windows_core::GUID::from pub struct MPEG2_FILTER { pub bVersionNumber: u8, pub wFilterSize: u16, - pub fUseRawFilteringBits: super::super::super::Foundation::BOOL, + pub fUseRawFilteringBits: windows_core::BOOL, pub Filter: [u8; 16], pub Mask: [u8; 16], - pub fSpecifyTableIdExtension: super::super::super::Foundation::BOOL, + pub fSpecifyTableIdExtension: windows_core::BOOL, pub TableIdExtension: u16, - pub fSpecifyVersion: super::super::super::Foundation::BOOL, + pub fSpecifyVersion: windows_core::BOOL, pub Version: u8, - pub fSpecifySectionNumber: super::super::super::Foundation::BOOL, + pub fSpecifySectionNumber: windows_core::BOOL, pub SectionNumber: u8, - pub fSpecifyCurrentNext: super::super::super::Foundation::BOOL, - pub fNext: super::super::super::Foundation::BOOL, - pub fSpecifyDsmccOptions: super::super::super::Foundation::BOOL, + pub fSpecifyCurrentNext: windows_core::BOOL, + pub fNext: windows_core::BOOL, + pub fSpecifyDsmccOptions: windows_core::BOOL, pub Dsmcc: DSMCC_FILTER_OPTIONS, - pub fSpecifyAtscOptions: super::super::super::Foundation::BOOL, + pub fSpecifyAtscOptions: windows_core::BOOL, pub Atsc: ATSC_FILTER_OPTIONS, } impl Default for MPEG2_FILTER { @@ -40043,7 +40043,7 @@ impl Default for MPEG2_FILTER { #[derive(Clone, Copy)] pub struct MPEG2_FILTER2 { pub Anonymous: MPEG2_FILTER2_0, - pub fSpecifyDvbEitOptions: super::super::super::Foundation::BOOL, + pub fSpecifyDvbEitOptions: windows_core::BOOL, pub DvbEit: DVB_EIT_FILTER_OPTIONS, } impl Default for MPEG2_FILTER2 { @@ -40067,20 +40067,20 @@ impl Default for MPEG2_FILTER2_0 { pub struct MPEG2_FILTER2_0_0 { pub bVersionNumber: u8, pub wFilterSize: u16, - pub fUseRawFilteringBits: super::super::super::Foundation::BOOL, + pub fUseRawFilteringBits: windows_core::BOOL, pub Filter: [u8; 16], pub Mask: [u8; 16], - pub fSpecifyTableIdExtension: super::super::super::Foundation::BOOL, + pub fSpecifyTableIdExtension: windows_core::BOOL, pub TableIdExtension: u16, - pub fSpecifyVersion: super::super::super::Foundation::BOOL, + pub fSpecifyVersion: windows_core::BOOL, pub Version: u8, - pub fSpecifySectionNumber: super::super::super::Foundation::BOOL, + pub fSpecifySectionNumber: windows_core::BOOL, pub SectionNumber: u8, - pub fSpecifyCurrentNext: super::super::super::Foundation::BOOL, - pub fNext: super::super::super::Foundation::BOOL, - pub fSpecifyDsmccOptions: super::super::super::Foundation::BOOL, + pub fSpecifyCurrentNext: windows_core::BOOL, + pub fNext: windows_core::BOOL, + pub fSpecifyDsmccOptions: windows_core::BOOL, pub Dsmcc: DSMCC_FILTER_OPTIONS, - pub fSpecifyAtscOptions: super::super::super::Foundation::BOOL, + pub fSpecifyAtscOptions: windows_core::BOOL, pub Atsc: ATSC_FILTER_OPTIONS, } impl Default for MPEG2_FILTER2_0_0 { @@ -40278,7 +40278,7 @@ impl Default for MPEG_STREAM_BUFFER { pub struct MPEG_STREAM_FILTER { pub wPidValue: u16, pub dwFilterSize: u32, - pub fCrcEnabled: super::super::super::Foundation::BOOL, + pub fCrcEnabled: windows_core::BOOL, pub rgchFilter: [u8; 16], pub rgchMask: [u8; 16], } @@ -40890,7 +40890,7 @@ pub struct UDCR_TAG { pub KID: [u8; 25], pub ullBaseCounter: u64, pub ullBaseCounterRange: u64, - pub fScrambled: super::super::super::Foundation::BOOL, + pub fScrambled: windows_core::BOOL, pub bStreamMark: u8, pub dwReserved1: u32, pub dwReserved2: u32, 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 e21c87a731..aabacc83a5 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs @@ -143,8 +143,8 @@ pub const AMDDS_YUVOVR: u32 = 8u32; #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct AMExtendedSeekingCapabilities(pub i32); pub const AMF_AUTOMATICGAIN: f64 = -1f64; -pub type AMGETERRORTEXTPROCA = Option super::super::Foundation::BOOL>; -pub type AMGETERRORTEXTPROCW = Option super::super::Foundation::BOOL>; +pub type AMGETERRORTEXTPROCA = Option windows_core::BOOL>; +pub type AMGETERRORTEXTPROCW = Option windows_core::BOOL>; pub const AMINTERLACE_1FieldPerSample: u32 = 2u32; pub const AMINTERLACE_DisplayModeBobOnly: u32 = 0u32; pub const AMINTERLACE_DisplayModeBobOrWeave: u32 = 128u32; @@ -452,11 +452,11 @@ pub struct AMVPDATAINFO { pub amvpDimInfo: AMVPDIMINFO, pub dwPictAspectRatioX: u32, pub dwPictAspectRatioY: u32, - pub bEnableDoubleClock: super::super::Foundation::BOOL, - pub bEnableVACT: super::super::Foundation::BOOL, - pub bDataIsInterlaced: super::super::Foundation::BOOL, + pub bEnableDoubleClock: windows_core::BOOL, + pub bEnableVACT: windows_core::BOOL, + pub bDataIsInterlaced: windows_core::BOOL, pub lHalfLinesOdd: i32, - pub bFieldPolarityInverted: super::super::Foundation::BOOL, + pub bFieldPolarityInverted: windows_core::BOOL, pub dwNumLinesInVREF: u32, pub lHalfLinesEven: i32, pub dwReserved1: u32, @@ -508,7 +508,7 @@ pub struct AMVP_SELECT_FORMAT_BY(pub i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct AM_AC3_ALTERNATE_AUDIO { - pub fStereo: super::super::Foundation::BOOL, + pub fStereo: windows_core::BOOL, pub DualMode: u32, } impl Default for AM_AC3_ALTERNATE_AUDIO { @@ -542,8 +542,8 @@ impl Default for AM_AC3_DIALOGUE_LEVEL { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct AM_AC3_DOWNMIX { - pub fDownMix: super::super::Foundation::BOOL, - pub fDolbySurround: super::super::Foundation::BOOL, + pub fDownMix: windows_core::BOOL, + pub fDolbySurround: windows_core::BOOL, } impl Default for AM_AC3_DOWNMIX { fn default() -> Self { @@ -553,8 +553,8 @@ impl Default for AM_AC3_DOWNMIX { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct AM_AC3_ERROR_CONCEALMENT { - pub fRepeatPreviousBlock: super::super::Foundation::BOOL, - pub fErrorInCurrentBlock: super::super::Foundation::BOOL, + pub fRepeatPreviousBlock: windows_core::BOOL, + pub fErrorInCurrentBlock: windows_core::BOOL, } impl Default for AM_AC3_ERROR_CONCEALMENT { fn default() -> Self { @@ -564,7 +564,7 @@ impl Default for AM_AC3_ERROR_CONCEALMENT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct AM_AC3_ROOM_TYPE { - pub fLargeRoom: super::super::Foundation::BOOL, + pub fLargeRoom: windows_core::BOOL, } impl Default for AM_AC3_ROOM_TYPE { fn default() -> Self { @@ -732,10 +732,10 @@ pub const AM_DVD_NOVPE: AM_DVD_GRAPH_FLAGS = AM_DVD_GRAPH_FLAGS(256i32); #[derive(Clone, Copy, Debug, PartialEq)] pub struct AM_DVD_RENDERSTATUS { pub hrVPEStatus: windows_core::HRESULT, - pub bDvdVolInvalid: super::super::Foundation::BOOL, - pub bDvdVolUnknown: super::super::Foundation::BOOL, - pub bNoLine21In: super::super::Foundation::BOOL, - pub bNoLine21Out: super::super::Foundation::BOOL, + pub bDvdVolInvalid: windows_core::BOOL, + pub bDvdVolUnknown: windows_core::BOOL, + pub bNoLine21In: windows_core::BOOL, + pub bNoLine21Out: windows_core::BOOL, pub iNumStreams: i32, pub iNumStreamsFailed: i32, pub dwFailedStreamsFlag: u32, @@ -2843,7 +2843,7 @@ pub struct DVD_AudioAttributes { pub AudioFormat: DVD_AUDIO_FORMAT, pub Language: u32, pub LanguageExtension: DVD_AUDIO_LANG_EXT, - pub fHasMultichannelInfo: super::super::Foundation::BOOL, + pub fHasMultichannelInfo: windows_core::BOOL, pub dwFrequency: u32, pub bQuantization: u8, pub bNumberOfChannels: u8, @@ -2976,8 +2976,8 @@ pub struct DVD_KARAOKE_DOWNMIX(pub i32); #[derive(Clone, Copy, Debug, PartialEq)] pub struct DVD_KaraokeAttributes { pub bVersion: u8, - pub fMasterOfCeremoniesInGuideVocal1: super::super::Foundation::BOOL, - pub fDuet: super::super::Foundation::BOOL, + pub fMasterOfCeremoniesInGuideVocal1: windows_core::BOOL, + pub fDuet: windows_core::BOOL, pub ChannelAssignment: DVD_KARAOKE_ASSIGNMENT, pub wChannelContents: [u16; 8], } @@ -3017,10 +3017,10 @@ impl Default for DVD_MUA_Coeff { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DVD_MUA_MixingInfo { - pub fMixTo0: super::super::Foundation::BOOL, - pub fMixTo1: super::super::Foundation::BOOL, - pub fMix0InPhase: super::super::Foundation::BOOL, - pub fMix1InPhase: super::super::Foundation::BOOL, + pub fMixTo0: windows_core::BOOL, + pub fMixTo1: windows_core::BOOL, + pub fMix0InPhase: windows_core::BOOL, + pub fMix1InPhase: windows_core::BOOL, pub dwSpeakerPosition: u32, } impl Default for DVD_MUA_MixingInfo { @@ -3032,11 +3032,11 @@ pub const DVD_MaxReadBurstInKB: DVD_OPTION_FLAG = DVD_OPTION_FLAG(16i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DVD_MenuAttributes { - pub fCompatibleRegion: [super::super::Foundation::BOOL; 8], + pub fCompatibleRegion: [windows_core::BOOL; 8], pub VideoAttributes: DVD_VideoAttributes, - pub fAudioPresent: super::super::Foundation::BOOL, + pub fAudioPresent: windows_core::BOOL, pub AudioAttributes: DVD_AudioAttributes, - pub fSubpicturePresent: super::super::Foundation::BOOL, + pub fSubpicturePresent: windows_core::BOOL, pub SubpictureAttributes: DVD_SubpictureAttributes, } impl Default for DVD_MenuAttributes { @@ -3285,19 +3285,19 @@ pub struct DVD_VIDEO_COMPRESSION(pub i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DVD_VideoAttributes { - pub fPanscanPermitted: super::super::Foundation::BOOL, - pub fLetterboxPermitted: super::super::Foundation::BOOL, + pub fPanscanPermitted: windows_core::BOOL, + pub fLetterboxPermitted: windows_core::BOOL, pub ulAspectX: u32, pub ulAspectY: u32, pub ulFrameRate: u32, pub ulFrameHeight: u32, pub Compression: DVD_VIDEO_COMPRESSION, - pub fLine21Field1InGOP: super::super::Foundation::BOOL, - pub fLine21Field2InGOP: super::super::Foundation::BOOL, + pub fLine21Field1InGOP: windows_core::BOOL, + pub fLine21Field2InGOP: windows_core::BOOL, pub ulSourceResolutionX: u32, pub ulSourceResolutionY: u32, - pub fIsSourceLetterboxed: super::super::Foundation::BOOL, - pub fIsFilmMode: super::super::Foundation::BOOL, + pub fIsSourceLetterboxed: windows_core::BOOL, + pub fIsFilmMode: windows_core::BOOL, } impl Default for DVD_VideoAttributes { fn default() -> Self { @@ -3380,7 +3380,7 @@ pub struct DXVA2TraceVideoProcessBltData { pub pRenderTarget: u64, pub TargetFrameTime: u64, pub TargetRect: super::super::Foundation::RECT, - pub Enter: super::super::Foundation::BOOL, + pub Enter: windows_core::BOOL, } #[cfg(feature = "Win32_System_Diagnostics_Etw")] impl Default for DXVA2TraceVideoProcessBltData { @@ -3397,7 +3397,7 @@ pub struct DXVA2Trace_DecodeDevBeginFrameData { pub wmiHeader: super::super::System::Diagnostics::Etw::EVENT_TRACE_HEADER, pub pObject: u64, pub pRenderTarget: u64, - pub Enter: super::super::Foundation::BOOL, + pub Enter: windows_core::BOOL, } #[cfg(feature = "Win32_System_Diagnostics_Etw")] impl Default for DXVA2Trace_DecodeDevBeginFrameData { @@ -3416,7 +3416,7 @@ pub struct DXVA2Trace_DecodeDevCreatedData { pub DeviceGuid: windows_core::GUID, pub Width: u32, pub Height: u32, - pub Enter: super::super::Foundation::BOOL, + pub Enter: windows_core::BOOL, } #[cfg(feature = "Win32_System_Diagnostics_Etw")] impl Default for DXVA2Trace_DecodeDevCreatedData { @@ -3435,7 +3435,7 @@ pub struct DXVA2Trace_DecodeDevGetBufferData { pub wmiHeader: super::super::System::Diagnostics::Etw::EVENT_TRACE_HEADER, pub pObject: u64, pub BufferType: u32, - pub Enter: super::super::Foundation::BOOL, + pub Enter: windows_core::BOOL, } #[cfg(feature = "Win32_System_Diagnostics_Etw")] impl Default for DXVA2Trace_DecodeDevGetBufferData { @@ -3449,7 +3449,7 @@ impl Default for DXVA2Trace_DecodeDevGetBufferData { pub struct DXVA2Trace_DecodeDeviceData { pub wmiHeader: super::super::System::Diagnostics::Etw::EVENT_TRACE_HEADER, pub pObject: u64, - pub Enter: super::super::Foundation::BOOL, + pub Enter: windows_core::BOOL, } #[cfg(feature = "Win32_System_Diagnostics_Etw")] impl Default for DXVA2Trace_DecodeDeviceData { @@ -3470,7 +3470,7 @@ pub struct DXVA2Trace_VideoProcessDevCreatedData { pub RTFourCC: u32, pub Width: u32, pub Height: u32, - pub Enter: super::super::Foundation::BOOL, + pub Enter: windows_core::BOOL, } #[cfg(feature = "Win32_System_Diagnostics_Etw")] impl Default for DXVA2Trace_VideoProcessDevCreatedData { @@ -3485,7 +3485,7 @@ pub const DXVA2Trace_VideoProcessDevDestroyed: windows_core::GUID = windows_core pub struct DXVA2Trace_VideoProcessDeviceData { pub wmiHeader: super::super::System::Diagnostics::Etw::EVENT_TRACE_HEADER, pub pObject: u64, - pub Enter: super::super::Foundation::BOOL, + pub Enter: windows_core::BOOL, } #[cfg(feature = "Win32_System_Diagnostics_Etw")] impl Default for DXVA2Trace_VideoProcessDeviceData { @@ -4415,7 +4415,7 @@ impl windows_core::RuntimeName for IAMAnalogVideoEncoder {} windows_core::imp::define_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 { + pub unsafe fn GetTimestampMode(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetTimestampMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4428,16 +4428,16 @@ impl IAMAsyncReaderTimestampScaling { #[repr(C)] pub struct IAMAsyncReaderTimestampScaling_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetTimestampMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetTimestampMode: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetTimestampMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetTimestampMode: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAMAsyncReaderTimestampScaling_Impl: windows_core::IUnknownImpl { - fn GetTimestampMode(&self) -> windows_core::Result; - fn SetTimestampMode(&self, fraw: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetTimestampMode(&self) -> windows_core::Result; + fn SetTimestampMode(&self, fraw: windows_core::BOOL) -> windows_core::Result<()>; } impl IAMAsyncReaderTimestampScaling_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetTimestampMode(this: *mut core::ffi::c_void, pfraw: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetTimestampMode(this: *mut core::ffi::c_void, pfraw: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAsyncReaderTimestampScaling_Impl::GetTimestampMode(this) { @@ -4449,7 +4449,7 @@ impl IAMAsyncReaderTimestampScaling_Vtbl { } } } - unsafe extern "system" fn SetTimestampMode(this: *mut core::ffi::c_void, fraw: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetTimestampMode(this: *mut core::ffi::c_void, fraw: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAsyncReaderTimestampScaling_Impl::SetTimestampMode(this, core::mem::transmute_copy(&fraw)).into() @@ -4472,7 +4472,7 @@ impl IAMAudioInputMixer { pub unsafe fn SetEnable(&self, fenable: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetEnable)(windows_core::Interface::as_raw(self), fenable.into()).ok() } } - pub unsafe fn Enable(&self) -> windows_core::Result { + pub unsafe fn Enable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Enable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4481,7 +4481,7 @@ impl IAMAudioInputMixer { pub unsafe fn SetMono(&self, fmono: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetMono)(windows_core::Interface::as_raw(self), fmono.into()).ok() } } - pub unsafe fn Mono(&self) -> windows_core::Result { + pub unsafe fn Mono(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Mono)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4508,7 +4508,7 @@ impl IAMAudioInputMixer { pub unsafe fn SetLoudness(&self, floudness: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetLoudness)(windows_core::Interface::as_raw(self), floudness.into()).ok() } } - pub unsafe fn Loudness(&self) -> windows_core::Result { + pub unsafe fn Loudness(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Loudness)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4548,16 +4548,16 @@ impl IAMAudioInputMixer { #[repr(C)] pub struct IAMAudioInputMixer_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetEnable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetMono: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub Mono: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetEnable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetMono: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub Mono: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetMixLevel: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, pub MixLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub SetPan: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, pub Pan: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, - pub SetLoudness: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub Loudness: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetLoudness: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub Loudness: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetTreble: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, pub Treble: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub TrebleRange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, @@ -4566,16 +4566,16 @@ pub struct IAMAudioInputMixer_Vtbl { pub BassRange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, } pub trait IAMAudioInputMixer_Impl: windows_core::IUnknownImpl { - fn SetEnable(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn Enable(&self) -> windows_core::Result; - fn SetMono(&self, fmono: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn Mono(&self) -> windows_core::Result; + fn SetEnable(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; + fn Enable(&self) -> windows_core::Result; + fn SetMono(&self, fmono: windows_core::BOOL) -> windows_core::Result<()>; + fn Mono(&self) -> windows_core::Result; fn SetMixLevel(&self, level: f64) -> windows_core::Result<()>; fn MixLevel(&self) -> windows_core::Result; fn SetPan(&self, pan: f64) -> windows_core::Result<()>; fn Pan(&self) -> windows_core::Result; - fn SetLoudness(&self, floudness: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn Loudness(&self) -> windows_core::Result; + fn SetLoudness(&self, floudness: windows_core::BOOL) -> windows_core::Result<()>; + fn Loudness(&self) -> windows_core::Result; fn SetTreble(&self, treble: f64) -> windows_core::Result<()>; fn Treble(&self) -> windows_core::Result; fn TrebleRange(&self) -> windows_core::Result; @@ -4585,13 +4585,13 @@ pub trait IAMAudioInputMixer_Impl: windows_core::IUnknownImpl { } impl IAMAudioInputMixer_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetEnable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnable(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAudioInputMixer_Impl::SetEnable(this, core::mem::transmute_copy(&fenable)).into() } } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, pfenable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAudioInputMixer_Impl::Enable(this) { @@ -4603,13 +4603,13 @@ impl IAMAudioInputMixer_Vtbl { } } } - unsafe extern "system" fn SetMono(this: *mut core::ffi::c_void, fmono: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetMono(this: *mut core::ffi::c_void, fmono: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAudioInputMixer_Impl::SetMono(this, core::mem::transmute_copy(&fmono)).into() } } - unsafe extern "system" fn Mono(this: *mut core::ffi::c_void, pfmono: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Mono(this: *mut core::ffi::c_void, pfmono: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAudioInputMixer_Impl::Mono(this) { @@ -4657,13 +4657,13 @@ impl IAMAudioInputMixer_Vtbl { } } } - unsafe extern "system" fn SetLoudness(this: *mut core::ffi::c_void, floudness: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetLoudness(this: *mut core::ffi::c_void, floudness: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMAudioInputMixer_Impl::SetLoudness(this, core::mem::transmute_copy(&floudness)).into() } } - unsafe extern "system" fn Loudness(this: *mut core::ffi::c_void, pfloudness: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Loudness(this: *mut core::ffi::c_void, pfloudness: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAMAudioInputMixer_Impl::Loudness(this) { @@ -5318,14 +5318,14 @@ pub struct IAMCrossbar_Vtbl { pub CanRoute: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32) -> windows_core::HRESULT, pub Route: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32) -> windows_core::HRESULT, pub get_IsRoutedTo: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut i32) -> windows_core::HRESULT, - pub get_CrossbarPinInfo: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, i32, *mut i32, *mut i32) -> windows_core::HRESULT, + pub get_CrossbarPinInfo: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, i32, *mut i32, *mut i32) -> windows_core::HRESULT, } pub trait IAMCrossbar_Impl: windows_core::IUnknownImpl { fn get_PinCounts(&self, outputpincount: *mut i32, inputpincount: *mut i32) -> windows_core::Result<()>; fn CanRoute(&self, outputpinindex: i32, inputpinindex: i32) -> windows_core::Result<()>; fn Route(&self, outputpinindex: i32, inputpinindex: i32) -> windows_core::Result<()>; fn get_IsRoutedTo(&self, outputpinindex: i32) -> windows_core::Result; - fn get_CrossbarPinInfo(&self, isinputpin: super::super::Foundation::BOOL, pinindex: i32, pinindexrelated: *mut i32, physicaltype: *mut i32) -> windows_core::Result<()>; + fn get_CrossbarPinInfo(&self, isinputpin: windows_core::BOOL, pinindex: i32, pinindexrelated: *mut i32, physicaltype: *mut i32) -> windows_core::Result<()>; } impl IAMCrossbar_Vtbl { pub const fn new() -> Self { @@ -5359,7 +5359,7 @@ impl IAMCrossbar_Vtbl { } } } - unsafe extern "system" fn get_CrossbarPinInfo(this: *mut core::ffi::c_void, isinputpin: super::super::Foundation::BOOL, pinindex: i32, pinindexrelated: *mut i32, physicaltype: *mut i32) -> windows_core::HRESULT { + unsafe extern "system" fn get_CrossbarPinInfo(this: *mut core::ffi::c_void, isinputpin: windows_core::BOOL, pinindex: i32, pinindexrelated: *mut i32, physicaltype: *mut i32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMCrossbar_Impl::get_CrossbarPinInfo(this, core::mem::transmute_copy(&isinputpin), core::mem::transmute_copy(&pinindex), core::mem::transmute_copy(&pinindexrelated), core::mem::transmute_copy(&physicaltype)).into() @@ -5673,7 +5673,7 @@ impl IAMDirectSound { pub unsafe fn SetFocusWindow(&self, param0: super::super::Foundation::HWND, param1: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetFocusWindow)(windows_core::Interface::as_raw(self), param0, param1.into()).ok() } } - pub unsafe fn GetFocusWindow(&self, param0: *mut super::super::Foundation::HWND, param1: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetFocusWindow(&self, param0: *mut super::super::Foundation::HWND, param1: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetFocusWindow)(windows_core::Interface::as_raw(self), param0 as _, param1 as _).ok() } } } @@ -5704,8 +5704,8 @@ pub struct IAMDirectSound_Vtbl { pub ReleaseSecondaryBufferInterface: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Media_Audio_DirectSound"))] ReleaseSecondaryBufferInterface: usize, - pub SetFocusWindow: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetFocusWindow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::HWND, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetFocusWindow: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, windows_core::BOOL) -> windows_core::HRESULT, + pub GetFocusWindow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::HWND, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Media_Audio_DirectSound")] pub trait IAMDirectSound_Impl: windows_core::IUnknownImpl { @@ -5715,8 +5715,8 @@ pub trait IAMDirectSound_Impl: windows_core::IUnknownImpl { fn ReleaseDirectSoundInterface(&self, lpds: windows_core::Ref) -> windows_core::Result<()>; fn ReleasePrimaryBufferInterface(&self, lpdsb: windows_core::Ref) -> windows_core::Result<()>; fn ReleaseSecondaryBufferInterface(&self, lpdsb: windows_core::Ref) -> windows_core::Result<()>; - fn SetFocusWindow(&self, param0: super::super::Foundation::HWND, param1: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetFocusWindow(&self, param0: *mut super::super::Foundation::HWND, param1: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetFocusWindow(&self, param0: super::super::Foundation::HWND, param1: windows_core::BOOL) -> windows_core::Result<()>; + fn GetFocusWindow(&self, param0: *mut super::super::Foundation::HWND, param1: *mut windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Media_Audio_DirectSound")] impl IAMDirectSound_Vtbl { @@ -5775,13 +5775,13 @@ impl IAMDirectSound_Vtbl { IAMDirectSound_Impl::ReleaseSecondaryBufferInterface(this, core::mem::transmute_copy(&lpdsb)).into() } } - unsafe extern "system" fn SetFocusWindow(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetFocusWindow(this: *mut core::ffi::c_void, param0: super::super::Foundation::HWND, param1: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMDirectSound_Impl::SetFocusWindow(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() } } - unsafe extern "system" fn GetFocusWindow(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::HWND, param1: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetFocusWindow(this: *mut core::ffi::c_void, param0: *mut super::super::Foundation::HWND, param1: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMDirectSound_Impl::GetFocusWindow(this, core::mem::transmute_copy(¶m0), core::mem::transmute_copy(¶m1)).into() @@ -6857,12 +6857,12 @@ impl IAMGraphStreams { pub struct IAMGraphStreams_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub FindUpstreamInterface: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub SyncUsingStreamOffset: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SyncUsingStreamOffset: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetMaxGraphLatency: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, } pub trait IAMGraphStreams_Impl: windows_core::IUnknownImpl { fn FindUpstreamInterface(&self, ppin: windows_core::Ref, riid: *const windows_core::GUID, ppvinterface: *mut *mut core::ffi::c_void, dwflags: u32) -> windows_core::Result<()>; - fn SyncUsingStreamOffset(&self, busestreamoffset: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SyncUsingStreamOffset(&self, busestreamoffset: windows_core::BOOL) -> windows_core::Result<()>; fn SetMaxGraphLatency(&self, rtmaxgraphlatency: i64) -> windows_core::Result<()>; } impl IAMGraphStreams_Vtbl { @@ -6873,7 +6873,7 @@ impl IAMGraphStreams_Vtbl { IAMGraphStreams_Impl::FindUpstreamInterface(this, core::mem::transmute_copy(&ppin), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvinterface), core::mem::transmute_copy(&dwflags)).into() } } - unsafe extern "system" fn SyncUsingStreamOffset(this: *mut core::ffi::c_void, busestreamoffset: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SyncUsingStreamOffset(this: *mut core::ffi::c_void, busestreamoffset: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMGraphStreams_Impl::SyncUsingStreamOffset(this, core::mem::transmute_copy(&busestreamoffset)).into() @@ -6968,7 +6968,7 @@ impl IAMLine21Decoder { pub unsafe fn SetBackgroundColor(&self, dwphyscolor: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), dwphyscolor).ok() } } - pub unsafe fn GetRedrawAlways(&self, lpboption: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetRedrawAlways(&self, lpboption: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetRedrawAlways)(windows_core::Interface::as_raw(self), lpboption as _).ok() } } pub unsafe fn SetRedrawAlways(&self, boption: bool) -> windows_core::Result<()> { @@ -6999,8 +6999,8 @@ pub struct IAMLine21Decoder_Vtbl { SetOutputFormat: usize, pub GetBackgroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetBackgroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub GetRedrawAlways: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetRedrawAlways: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetRedrawAlways: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetRedrawAlways: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetDrawBackgroundMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AM_LINE21_DRAWBGMODE) -> windows_core::HRESULT, pub SetDrawBackgroundMode: unsafe extern "system" fn(*mut core::ffi::c_void, AM_LINE21_DRAWBGMODE) -> windows_core::HRESULT, } @@ -7015,8 +7015,8 @@ pub trait IAMLine21Decoder_Impl: windows_core::IUnknownImpl { fn SetOutputFormat(&self, lpbmi: *mut super::super::Graphics::Gdi::BITMAPINFO) -> windows_core::Result<()>; fn GetBackgroundColor(&self, pdwphyscolor: *mut u32) -> windows_core::Result<()>; fn SetBackgroundColor(&self, dwphyscolor: u32) -> windows_core::Result<()>; - fn GetRedrawAlways(&self, lpboption: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetRedrawAlways(&self, boption: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetRedrawAlways(&self, lpboption: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn SetRedrawAlways(&self, boption: windows_core::BOOL) -> windows_core::Result<()>; fn GetDrawBackgroundMode(&self, lpmode: *mut AM_LINE21_DRAWBGMODE) -> windows_core::Result<()>; fn SetDrawBackgroundMode(&self, mode: AM_LINE21_DRAWBGMODE) -> windows_core::Result<()>; } @@ -7077,13 +7077,13 @@ impl IAMLine21Decoder_Vtbl { IAMLine21Decoder_Impl::SetBackgroundColor(this, core::mem::transmute_copy(&dwphyscolor)).into() } } - unsafe extern "system" fn GetRedrawAlways(this: *mut core::ffi::c_void, lpboption: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetRedrawAlways(this: *mut core::ffi::c_void, lpboption: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMLine21Decoder_Impl::GetRedrawAlways(this, core::mem::transmute_copy(&lpboption)).into() } } - unsafe extern "system" fn SetRedrawAlways(this: *mut core::ffi::c_void, boption: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetRedrawAlways(this: *mut core::ffi::c_void, boption: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMLine21Decoder_Impl::SetRedrawAlways(this, core::mem::transmute_copy(&boption)).into() @@ -7570,9 +7570,9 @@ pub struct IAMMediaTypeSample_Vtbl { pub GetTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64, *mut i64) -> windows_core::HRESULT, pub SetTime: unsafe extern "system" fn(*mut core::ffi::c_void, *const i64, *const i64) -> windows_core::HRESULT, pub IsSyncPoint: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetSyncPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetSyncPoint: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub IsPreroll: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetPreroll: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetPreroll: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetActualDataLength: unsafe extern "system" fn(*mut core::ffi::c_void) -> i32, pub SetActualDataLength: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, #[cfg(feature = "Win32_Media_MediaFoundation")] @@ -7584,7 +7584,7 @@ pub struct IAMMediaTypeSample_Vtbl { #[cfg(not(feature = "Win32_Media_MediaFoundation"))] SetMediaType: usize, pub IsDiscontinuity: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetDiscontinuity: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetDiscontinuity: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetMediaTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64, *mut i64) -> windows_core::HRESULT, pub SetMediaTime: unsafe extern "system" fn(*mut core::ffi::c_void, *const i64, *const i64) -> windows_core::HRESULT, } @@ -7596,15 +7596,15 @@ pub trait IAMMediaTypeSample_Impl: IStreamSample_Impl { fn GetTime(&self, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::Result<()>; fn SetTime(&self, ptimestart: *const i64, ptimeend: *const i64) -> windows_core::Result<()>; fn IsSyncPoint(&self) -> windows_core::Result<()>; - fn SetSyncPoint(&self, bissyncpoint: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetSyncPoint(&self, bissyncpoint: windows_core::BOOL) -> windows_core::Result<()>; fn IsPreroll(&self) -> windows_core::Result<()>; - fn SetPreroll(&self, bispreroll: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetPreroll(&self, bispreroll: windows_core::BOOL) -> windows_core::Result<()>; fn GetActualDataLength(&self) -> i32; fn SetActualDataLength(&self, __midl__iammediatypesample0000: i32) -> windows_core::Result<()>; fn GetMediaType(&self) -> windows_core::Result<*mut super::MediaFoundation::AM_MEDIA_TYPE>; fn SetMediaType(&self, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()>; fn IsDiscontinuity(&self) -> windows_core::Result<()>; - fn SetDiscontinuity(&self, bdiscontinuity: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetDiscontinuity(&self, bdiscontinuity: windows_core::BOOL) -> windows_core::Result<()>; fn GetMediaTime(&self, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::Result<()>; fn SetMediaTime(&self, ptimestart: *const i64, ptimeend: *const i64) -> windows_core::Result<()>; } @@ -7653,7 +7653,7 @@ impl IAMMediaTypeSample_Vtbl { IAMMediaTypeSample_Impl::IsSyncPoint(this).into() } } - unsafe extern "system" fn SetSyncPoint(this: *mut core::ffi::c_void, bissyncpoint: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetSyncPoint(this: *mut core::ffi::c_void, bissyncpoint: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeSample_Impl::SetSyncPoint(this, core::mem::transmute_copy(&bissyncpoint)).into() @@ -7665,7 +7665,7 @@ impl IAMMediaTypeSample_Vtbl { IAMMediaTypeSample_Impl::IsPreroll(this).into() } } - unsafe extern "system" fn SetPreroll(this: *mut core::ffi::c_void, bispreroll: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetPreroll(this: *mut core::ffi::c_void, bispreroll: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeSample_Impl::SetPreroll(this, core::mem::transmute_copy(&bispreroll)).into() @@ -7707,7 +7707,7 @@ impl IAMMediaTypeSample_Vtbl { IAMMediaTypeSample_Impl::IsDiscontinuity(this).into() } } - unsafe extern "system" fn SetDiscontinuity(this: *mut core::ffi::c_void, bdiscontinuity: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetDiscontinuity(this: *mut core::ffi::c_void, bdiscontinuity: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMMediaTypeSample_Impl::SetDiscontinuity(this, core::mem::transmute_copy(&bdiscontinuity)).into() @@ -9274,7 +9274,7 @@ pub struct IAMPluginControl_Vtbl { pub SetPreferredClsid: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const windows_core::GUID) -> windows_core::HRESULT, pub IsDisabled: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID) -> windows_core::HRESULT, pub GetDisabledByIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::GUID) -> windows_core::HRESULT, - pub SetDisabled: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetDisabled: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, windows_core::BOOL) -> windows_core::HRESULT, pub IsLegacyDisabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, } pub trait IAMPluginControl_Impl: windows_core::IUnknownImpl { @@ -9283,7 +9283,7 @@ pub trait IAMPluginControl_Impl: windows_core::IUnknownImpl { fn SetPreferredClsid(&self, subtype: *const windows_core::GUID, clsid: *const windows_core::GUID) -> windows_core::Result<()>; fn IsDisabled(&self, clsid: *const windows_core::GUID) -> windows_core::Result<()>; fn GetDisabledByIndex(&self, index: u32) -> windows_core::Result; - fn SetDisabled(&self, clsid: *const windows_core::GUID, disabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetDisabled(&self, clsid: *const windows_core::GUID, disabled: windows_core::BOOL) -> windows_core::Result<()>; fn IsLegacyDisabled(&self, dllname: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl IAMPluginControl_Vtbl { @@ -9330,7 +9330,7 @@ impl IAMPluginControl_Vtbl { } } } - unsafe extern "system" fn SetDisabled(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, disabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetDisabled(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, disabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMPluginControl_Impl::SetDisabled(this, core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&disabled)).into() @@ -9779,12 +9779,12 @@ impl IAMStreamControl { pub struct IAMStreamControl_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub StartAt: unsafe extern "system" fn(*mut core::ffi::c_void, *const i64, u32) -> windows_core::HRESULT, - pub StopAt: unsafe extern "system" fn(*mut core::ffi::c_void, *const i64, super::super::Foundation::BOOL, u32) -> windows_core::HRESULT, + pub StopAt: unsafe extern "system" fn(*mut core::ffi::c_void, *const i64, windows_core::BOOL, u32) -> windows_core::HRESULT, pub GetInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AM_STREAM_INFO) -> windows_core::HRESULT, } pub trait IAMStreamControl_Impl: windows_core::IUnknownImpl { fn StartAt(&self, ptstart: *const i64, dwcookie: u32) -> windows_core::Result<()>; - fn StopAt(&self, ptstop: *const i64, bsendextra: super::super::Foundation::BOOL, dwcookie: u32) -> windows_core::Result<()>; + fn StopAt(&self, ptstop: *const i64, bsendextra: windows_core::BOOL, dwcookie: u32) -> windows_core::Result<()>; fn GetInfo(&self, pinfo: *mut AM_STREAM_INFO) -> windows_core::Result<()>; } impl IAMStreamControl_Vtbl { @@ -9795,7 +9795,7 @@ impl IAMStreamControl_Vtbl { IAMStreamControl_Impl::StartAt(this, core::mem::transmute_copy(&ptstart), core::mem::transmute_copy(&dwcookie)).into() } } - unsafe extern "system" fn StopAt(this: *mut core::ffi::c_void, ptstop: *const i64, bsendextra: super::super::Foundation::BOOL, dwcookie: u32) -> windows_core::HRESULT { + unsafe extern "system" fn StopAt(this: *mut core::ffi::c_void, ptstop: *const i64, bsendextra: windows_core::BOOL, dwcookie: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMStreamControl_Impl::StopAt(this, core::mem::transmute_copy(&ptstop), core::mem::transmute_copy(&bsendextra), core::mem::transmute_copy(&dwcookie)).into() @@ -11053,7 +11053,7 @@ pub struct IAMVideoAccelerator_Vtbl { GetInternalCompBufferInfo: usize, pub BeginFrame: unsafe extern "system" fn(*mut core::ffi::c_void, *const AMVABeginFrameInfo) -> windows_core::HRESULT, pub EndFrame: unsafe extern "system" fn(*mut core::ffi::c_void, *const AMVAEndFrameInfo) -> windows_core::HRESULT, - pub GetBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, + pub GetBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, windows_core::BOOL, *mut *mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub ReleaseBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, pub Execute: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const core::ffi::c_void, u32, *const core::ffi::c_void, u32, u32, *const AMVABUFFERINFO) -> windows_core::HRESULT, pub QueryRenderStatus: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, u32) -> windows_core::HRESULT, @@ -11068,7 +11068,7 @@ pub trait IAMVideoAccelerator_Impl: windows_core::IUnknownImpl { fn GetInternalCompBufferInfo(&self, pdwnumtypescompbuffers: *mut u32, pamvacompbufferinfo: *mut AMVACompBufferInfo) -> windows_core::Result<()>; fn BeginFrame(&self, amvabeginframeinfo: *const AMVABeginFrameInfo) -> windows_core::Result<()>; fn EndFrame(&self, pendframeinfo: *const AMVAEndFrameInfo) -> windows_core::Result<()>; - fn GetBuffer(&self, dwtypeindex: u32, dwbufferindex: u32, breadonly: super::super::Foundation::BOOL, ppbuffer: *mut *mut core::ffi::c_void, lpstride: *mut i32) -> windows_core::Result<()>; + fn GetBuffer(&self, dwtypeindex: u32, dwbufferindex: u32, breadonly: windows_core::BOOL, ppbuffer: *mut *mut core::ffi::c_void, lpstride: *mut i32) -> windows_core::Result<()>; fn ReleaseBuffer(&self, dwtypeindex: u32, dwbufferindex: u32) -> windows_core::Result<()>; fn Execute(&self, dwfunction: u32, lpprivateinputdata: *const core::ffi::c_void, cbprivateinputdata: u32, lpprivateoutputdat: *const core::ffi::c_void, cbprivateoutputdata: u32, dwnumbuffers: u32, pamvabufferinfo: *const AMVABUFFERINFO) -> windows_core::Result<()>; fn QueryRenderStatus(&self, dwtypeindex: u32, dwbufferindex: u32, dwflags: u32) -> windows_core::Result<()>; @@ -11119,7 +11119,7 @@ impl IAMVideoAccelerator_Vtbl { IAMVideoAccelerator_Impl::EndFrame(this, core::mem::transmute_copy(&pendframeinfo)).into() } } - unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, dwtypeindex: u32, dwbufferindex: u32, breadonly: super::super::Foundation::BOOL, ppbuffer: *mut *mut core::ffi::c_void, lpstride: *mut i32) -> windows_core::HRESULT { + unsafe extern "system" fn GetBuffer(this: *mut core::ffi::c_void, dwtypeindex: u32, dwbufferindex: u32, breadonly: windows_core::BOOL, ppbuffer: *mut *mut core::ffi::c_void, lpstride: *mut i32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMVideoAccelerator_Impl::GetBuffer(this, core::mem::transmute_copy(&dwtypeindex), core::mem::transmute_copy(&dwbufferindex), core::mem::transmute_copy(&breadonly), core::mem::transmute_copy(&ppbuffer), core::mem::transmute_copy(&lpstride)).into() @@ -11785,7 +11785,7 @@ impl IAMWstDecoder { pub unsafe fn SetBackgroundColor(&self, dwphyscolor: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBackgroundColor)(windows_core::Interface::as_raw(self), dwphyscolor).ok() } } - pub unsafe fn GetRedrawAlways(&self, lpboption: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetRedrawAlways(&self, lpboption: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetRedrawAlways)(windows_core::Interface::as_raw(self), lpboption as _).ok() } } pub unsafe fn SetRedrawAlways(&self, boption: bool) -> windows_core::Result<()> { @@ -11800,13 +11800,13 @@ impl IAMWstDecoder { pub unsafe fn SetAnswerMode(&self, banswer: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetAnswerMode)(windows_core::Interface::as_raw(self), banswer.into()).ok() } } - pub unsafe fn GetAnswerMode(&self, pbanswer: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetAnswerMode(&self, pbanswer: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetAnswerMode)(windows_core::Interface::as_raw(self), pbanswer as _).ok() } } pub unsafe fn SetHoldPage(&self, bholdpage: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetHoldPage)(windows_core::Interface::as_raw(self), bholdpage.into()).ok() } } - pub unsafe fn GetHoldPage(&self, pbholdpage: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetHoldPage(&self, pbholdpage: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetHoldPage)(windows_core::Interface::as_raw(self), pbholdpage as _).ok() } } pub unsafe fn GetCurrentPage(&self, pwstpage: *mut AM_WST_PAGE) -> windows_core::Result<()> { @@ -11833,14 +11833,14 @@ pub struct IAMWstDecoder_Vtbl { SetOutputFormat: usize, pub GetBackgroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetBackgroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub GetRedrawAlways: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetRedrawAlways: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetRedrawAlways: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetRedrawAlways: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetDrawBackgroundMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AM_WST_DRAWBGMODE) -> windows_core::HRESULT, pub SetDrawBackgroundMode: unsafe extern "system" fn(*mut core::ffi::c_void, AM_WST_DRAWBGMODE) -> windows_core::HRESULT, - pub SetAnswerMode: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetAnswerMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetHoldPage: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetHoldPage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetAnswerMode: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetAnswerMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetHoldPage: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetHoldPage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetCurrentPage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AM_WST_PAGE) -> windows_core::HRESULT, pub SetCurrentPage: unsafe extern "system" fn(*mut core::ffi::c_void, AM_WST_PAGE) -> windows_core::HRESULT, } @@ -11854,14 +11854,14 @@ pub trait IAMWstDecoder_Impl: windows_core::IUnknownImpl { fn SetOutputFormat(&self, lpbmi: *mut super::super::Graphics::Gdi::BITMAPINFO) -> windows_core::Result<()>; fn GetBackgroundColor(&self, pdwphyscolor: *mut u32) -> windows_core::Result<()>; fn SetBackgroundColor(&self, dwphyscolor: u32) -> windows_core::Result<()>; - fn GetRedrawAlways(&self, lpboption: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetRedrawAlways(&self, boption: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetRedrawAlways(&self, lpboption: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn SetRedrawAlways(&self, boption: windows_core::BOOL) -> windows_core::Result<()>; fn GetDrawBackgroundMode(&self, lpmode: *mut AM_WST_DRAWBGMODE) -> windows_core::Result<()>; fn SetDrawBackgroundMode(&self, mode: AM_WST_DRAWBGMODE) -> windows_core::Result<()>; - fn SetAnswerMode(&self, banswer: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetAnswerMode(&self, pbanswer: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetHoldPage(&self, bholdpage: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetHoldPage(&self, pbholdpage: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetAnswerMode(&self, banswer: windows_core::BOOL) -> windows_core::Result<()>; + fn GetAnswerMode(&self, pbanswer: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn SetHoldPage(&self, bholdpage: windows_core::BOOL) -> windows_core::Result<()>; + fn GetHoldPage(&self, pbholdpage: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetCurrentPage(&self, pwstpage: *mut AM_WST_PAGE) -> windows_core::Result<()>; fn SetCurrentPage(&self, wstpage: &AM_WST_PAGE) -> windows_core::Result<()>; } @@ -11916,13 +11916,13 @@ impl IAMWstDecoder_Vtbl { IAMWstDecoder_Impl::SetBackgroundColor(this, core::mem::transmute_copy(&dwphyscolor)).into() } } - unsafe extern "system" fn GetRedrawAlways(this: *mut core::ffi::c_void, lpboption: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetRedrawAlways(this: *mut core::ffi::c_void, lpboption: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::GetRedrawAlways(this, core::mem::transmute_copy(&lpboption)).into() } } - unsafe extern "system" fn SetRedrawAlways(this: *mut core::ffi::c_void, boption: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetRedrawAlways(this: *mut core::ffi::c_void, boption: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::SetRedrawAlways(this, core::mem::transmute_copy(&boption)).into() @@ -11940,25 +11940,25 @@ impl IAMWstDecoder_Vtbl { IAMWstDecoder_Impl::SetDrawBackgroundMode(this, core::mem::transmute_copy(&mode)).into() } } - unsafe extern "system" fn SetAnswerMode(this: *mut core::ffi::c_void, banswer: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAnswerMode(this: *mut core::ffi::c_void, banswer: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::SetAnswerMode(this, core::mem::transmute_copy(&banswer)).into() } } - unsafe extern "system" fn GetAnswerMode(this: *mut core::ffi::c_void, pbanswer: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetAnswerMode(this: *mut core::ffi::c_void, pbanswer: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::GetAnswerMode(this, core::mem::transmute_copy(&pbanswer)).into() } } - unsafe extern "system" fn SetHoldPage(this: *mut core::ffi::c_void, bholdpage: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetHoldPage(this: *mut core::ffi::c_void, bholdpage: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::SetHoldPage(this, core::mem::transmute_copy(&bholdpage)).into() } } - unsafe extern "system" fn GetHoldPage(this: *mut core::ffi::c_void, pbholdpage: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHoldPage(this: *mut core::ffi::c_void, pbholdpage: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAMWstDecoder_Impl::GetHoldPage(this, core::mem::transmute_copy(&pbholdpage)).into() @@ -12963,11 +12963,11 @@ impl IBDA_DRM { pub struct IBDA_DRM_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetDRMPairingStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut windows_core::HRESULT) -> windows_core::HRESULT, - pub PerformDRMPairing: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub PerformDRMPairing: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IBDA_DRM_Impl: windows_core::IUnknownImpl { fn GetDRMPairingStatus(&self, pdwstatus: *mut u32, pherror: *mut windows_core::HRESULT) -> windows_core::Result<()>; - fn PerformDRMPairing(&self, fsync: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn PerformDRMPairing(&self, fsync: windows_core::BOOL) -> windows_core::Result<()>; } impl IBDA_DRM_Vtbl { pub const fn new() -> Self { @@ -12977,7 +12977,7 @@ impl IBDA_DRM_Vtbl { IBDA_DRM_Impl::GetDRMPairingStatus(this, core::mem::transmute_copy(&pdwstatus), core::mem::transmute_copy(&pherror)).into() } } - unsafe extern "system" fn PerformDRMPairing(this: *mut core::ffi::c_void, fsync: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn PerformDRMPairing(this: *mut core::ffi::c_void, fsync: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_DRM_Impl::PerformDRMPairing(this, core::mem::transmute_copy(&fsync)).into() @@ -13662,7 +13662,7 @@ impl IBDA_Encoder { pub unsafe fn SetParameters(&self, audiobitratemode: u32, audiobitrate: u32, audiomethodid: u32, audioprogram: u32, videobitratemode: u32, videobitrate: u32, videomethodid: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetParameters)(windows_core::Interface::as_raw(self), audiobitratemode, audiobitrate, audiomethodid, audioprogram, videobitratemode, videobitrate, videomethodid).ok() } } - pub unsafe fn GetState(&self, audiobitratemax: *mut u32, audiobitratemin: *mut u32, audiobitratemode: *mut u32, audiobitratestepping: *mut u32, audiobitrate: *mut u32, audiomethodid: *mut u32, availableaudioprograms: *mut u32, audioprogram: *mut u32, videobitratemax: *mut u32, videobitratemin: *mut u32, videobitratemode: *mut u32, videobitrate: *mut u32, videobitratestepping: *mut u32, videomethodid: *mut u32, signalsourceid: *mut u32, signalformat: *mut u64, signallock: *mut super::super::Foundation::BOOL, signallevel: *mut i32, signaltonoiseratio: *mut u32) -> windows_core::Result<()> { + pub unsafe fn GetState(&self, audiobitratemax: *mut u32, audiobitratemin: *mut u32, audiobitratemode: *mut u32, audiobitratestepping: *mut u32, audiobitrate: *mut u32, audiomethodid: *mut u32, availableaudioprograms: *mut u32, audioprogram: *mut u32, videobitratemax: *mut u32, videobitratemin: *mut u32, videobitratemode: *mut u32, videobitrate: *mut u32, videobitratestepping: *mut u32, videomethodid: *mut u32, signalsourceid: *mut u32, signalformat: *mut u64, signallock: *mut windows_core::BOOL, signallevel: *mut i32, signaltonoiseratio: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetState)(windows_core::Interface::as_raw(self), audiobitratemax as _, audiobitratemin as _, audiobitratemode as _, audiobitratestepping as _, audiobitrate as _, audiomethodid as _, availableaudioprograms as _, audioprogram as _, videobitratemax as _, videobitratemin as _, videobitratemode as _, videobitrate as _, videobitratestepping as _, videomethodid as _, signalsourceid as _, signalformat as _, signallock as _, signallevel as _, signaltonoiseratio as _).ok() } } } @@ -13673,14 +13673,14 @@ pub struct IBDA_Encoder_Vtbl { pub EnumAudioCapability: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32) -> windows_core::HRESULT, pub EnumVideoCapability: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32) -> windows_core::HRESULT, pub SetParameters: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, u32, u32, u32, u32, u32) -> windows_core::HRESULT, - pub GetState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u64, *mut super::super::Foundation::BOOL, *mut i32, *mut u32) -> windows_core::HRESULT, + pub GetState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u32, *mut u64, *mut windows_core::BOOL, *mut i32, *mut u32) -> windows_core::HRESULT, } pub trait IBDA_Encoder_Impl: windows_core::IUnknownImpl { fn QueryCapabilities(&self, numaudiofmts: *mut u32, numvideofmts: *mut u32) -> windows_core::Result<()>; fn EnumAudioCapability(&self, fmtindex: u32, methodid: *mut u32, algorithmtype: *mut u32, samplingrate: *mut u32, bitdepth: *mut u32, numchannels: *mut u32) -> windows_core::Result<()>; fn EnumVideoCapability(&self, fmtindex: u32, methodid: *mut u32, algorithmtype: *mut u32, verticalsize: *mut u32, horizontalsize: *mut u32, aspectratio: *mut u32, frameratecode: *mut u32, progressivesequence: *mut u32) -> windows_core::Result<()>; fn SetParameters(&self, audiobitratemode: u32, audiobitrate: u32, audiomethodid: u32, audioprogram: u32, videobitratemode: u32, videobitrate: u32, videomethodid: u32) -> windows_core::Result<()>; - fn GetState(&self, audiobitratemax: *mut u32, audiobitratemin: *mut u32, audiobitratemode: *mut u32, audiobitratestepping: *mut u32, audiobitrate: *mut u32, audiomethodid: *mut u32, availableaudioprograms: *mut u32, audioprogram: *mut u32, videobitratemax: *mut u32, videobitratemin: *mut u32, videobitratemode: *mut u32, videobitrate: *mut u32, videobitratestepping: *mut u32, videomethodid: *mut u32, signalsourceid: *mut u32, signalformat: *mut u64, signallock: *mut super::super::Foundation::BOOL, signallevel: *mut i32, signaltonoiseratio: *mut u32) -> windows_core::Result<()>; + fn GetState(&self, audiobitratemax: *mut u32, audiobitratemin: *mut u32, audiobitratemode: *mut u32, audiobitratestepping: *mut u32, audiobitrate: *mut u32, audiomethodid: *mut u32, availableaudioprograms: *mut u32, audioprogram: *mut u32, videobitratemax: *mut u32, videobitratemin: *mut u32, videobitratemode: *mut u32, videobitrate: *mut u32, videobitratestepping: *mut u32, videomethodid: *mut u32, signalsourceid: *mut u32, signalformat: *mut u64, signallock: *mut windows_core::BOOL, signallevel: *mut i32, signaltonoiseratio: *mut u32) -> windows_core::Result<()>; } impl IBDA_Encoder_Vtbl { pub const fn new() -> Self { @@ -13708,7 +13708,7 @@ impl IBDA_Encoder_Vtbl { IBDA_Encoder_Impl::SetParameters(this, core::mem::transmute_copy(&audiobitratemode), core::mem::transmute_copy(&audiobitrate), core::mem::transmute_copy(&audiomethodid), core::mem::transmute_copy(&audioprogram), core::mem::transmute_copy(&videobitratemode), core::mem::transmute_copy(&videobitrate), core::mem::transmute_copy(&videomethodid)).into() } } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, audiobitratemax: *mut u32, audiobitratemin: *mut u32, audiobitratemode: *mut u32, audiobitratestepping: *mut u32, audiobitrate: *mut u32, audiomethodid: *mut u32, availableaudioprograms: *mut u32, audioprogram: *mut u32, videobitratemax: *mut u32, videobitratemin: *mut u32, videobitratemode: *mut u32, videobitrate: *mut u32, videobitratestepping: *mut u32, videomethodid: *mut u32, signalsourceid: *mut u32, signalformat: *mut u64, signallock: *mut super::super::Foundation::BOOL, signallevel: *mut i32, signaltonoiseratio: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, audiobitratemax: *mut u32, audiobitratemin: *mut u32, audiobitratemode: *mut u32, audiobitratestepping: *mut u32, audiobitrate: *mut u32, audiomethodid: *mut u32, availableaudioprograms: *mut u32, audioprogram: *mut u32, videobitratemax: *mut u32, videobitratemin: *mut u32, videobitratemode: *mut u32, videobitrate: *mut u32, videobitratestepping: *mut u32, videomethodid: *mut u32, signalsourceid: *mut u32, signalformat: *mut u64, signallock: *mut windows_core::BOOL, signallevel: *mut i32, signaltonoiseratio: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_Encoder_Impl::GetState( @@ -13873,7 +13873,7 @@ impl windows_core::RuntimeName for IBDA_EventingService {} windows_core::imp::define_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<()> { + pub unsafe fn GetStatus(&self, currentbitrate: *mut u32, carrierlock: *mut windows_core::BOOL, currentfrequency: *mut u32, currentspectruminversion: *mut windows_core::BOOL, currentpidlist: *mut windows_core::BSTR, currenttidlist: *mut windows_core::BSTR, overflow: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetStatus)(windows_core::Interface::as_raw(self), currentbitrate as _, carrierlock as _, currentfrequency as _, currentspectruminversion as _, core::mem::transmute(currentpidlist), core::mem::transmute(currenttidlist), overflow as _).ok() } } pub unsafe fn RequestTables(&self, tableids: &windows_core::BSTR) -> windows_core::Result<()> { @@ -13904,7 +13904,7 @@ impl IBDA_FDC { #[repr(C)] pub struct IBDA_FDC_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut super::super::Foundation::BOOL, *mut u32, *mut super::super::Foundation::BOOL, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut windows_core::BOOL, *mut u32, *mut windows_core::BOOL, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub RequestTables: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub AddPid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub RemovePid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -13913,7 +13913,7 @@ pub struct IBDA_FDC_Vtbl { pub GetTableSection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, u32, *mut u32, *mut u8) -> windows_core::HRESULT, } pub trait IBDA_FDC_Impl: windows_core::IUnknownImpl { - fn GetStatus(&self, currentbitrate: *mut u32, carrierlock: *mut super::super::Foundation::BOOL, currentfrequency: *mut u32, currentspectruminversion: *mut super::super::Foundation::BOOL, currentpidlist: *mut windows_core::BSTR, currenttidlist: *mut windows_core::BSTR, overflow: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetStatus(&self, currentbitrate: *mut u32, carrierlock: *mut windows_core::BOOL, currentfrequency: *mut u32, currentspectruminversion: *mut windows_core::BOOL, currentpidlist: *mut windows_core::BSTR, currenttidlist: *mut windows_core::BSTR, overflow: *mut windows_core::BOOL) -> windows_core::Result<()>; fn RequestTables(&self, tableids: &windows_core::BSTR) -> windows_core::Result<()>; fn AddPid(&self, pidstoadd: &windows_core::BSTR) -> windows_core::Result; fn RemovePid(&self, pidstoremove: &windows_core::BSTR) -> windows_core::Result<()>; @@ -13923,7 +13923,7 @@ pub trait IBDA_FDC_Impl: windows_core::IUnknownImpl { } impl IBDA_FDC_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, currentbitrate: *mut u32, carrierlock: *mut super::super::Foundation::BOOL, currentfrequency: *mut u32, currentspectruminversion: *mut super::super::Foundation::BOOL, currentpidlist: *mut *mut core::ffi::c_void, currenttidlist: *mut *mut core::ffi::c_void, overflow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetStatus(this: *mut core::ffi::c_void, currentbitrate: *mut u32, carrierlock: *mut windows_core::BOOL, currentfrequency: *mut u32, currentspectruminversion: *mut windows_core::BOOL, currentpidlist: *mut *mut core::ffi::c_void, currenttidlist: *mut *mut core::ffi::c_void, overflow: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBDA_FDC_Impl::GetStatus(this, core::mem::transmute_copy(¤tbitrate), core::mem::transmute_copy(&carrierlock), core::mem::transmute_copy(¤tfrequency), core::mem::transmute_copy(¤tspectruminversion), core::mem::transmute_copy(¤tpidlist), core::mem::transmute_copy(¤ttidlist), core::mem::transmute_copy(&overflow)).into() @@ -17905,7 +17905,7 @@ pub struct ICaptureGraphBuilder2_Vtbl { ControlStream: usize, pub AllocCapFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u64) -> windows_core::HRESULT, pub CopyCaptureFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, i32, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub FindPin: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, PIN_DIRECTION, *const windows_core::GUID, *const windows_core::GUID, super::super::Foundation::BOOL, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub FindPin: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, PIN_DIRECTION, *const windows_core::GUID, *const windows_core::GUID, windows_core::BOOL, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait ICaptureGraphBuilder2_Impl: windows_core::IUnknownImpl { @@ -17917,7 +17917,7 @@ pub trait ICaptureGraphBuilder2_Impl: windows_core::IUnknownImpl { fn ControlStream(&self, pcategory: *const windows_core::GUID, ptype: *const windows_core::GUID, pfilter: windows_core::Ref, pstart: *const i64, pstop: *const i64, wstartcookie: u16, wstopcookie: u16) -> windows_core::Result<()>; fn AllocCapFile(&self, lpstr: &windows_core::PCWSTR, dwlsize: u64) -> windows_core::Result<()>; fn CopyCaptureFile(&self, lpwstrold: &windows_core::PCWSTR, lpwstrnew: &windows_core::PCWSTR, fallowescabort: i32, pcallback: windows_core::Ref) -> windows_core::Result<()>; - fn FindPin(&self, psource: windows_core::Ref, pindir: PIN_DIRECTION, pcategory: *const windows_core::GUID, ptype: *const windows_core::GUID, funconnected: super::super::Foundation::BOOL, num: i32) -> windows_core::Result; + fn FindPin(&self, psource: windows_core::Ref, pindir: PIN_DIRECTION, pcategory: *const windows_core::GUID, ptype: *const windows_core::GUID, funconnected: windows_core::BOOL, num: i32) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl ICaptureGraphBuilder2_Vtbl { @@ -17976,7 +17976,7 @@ impl ICaptureGraphBuilder2_Vtbl { ICaptureGraphBuilder2_Impl::CopyCaptureFile(this, core::mem::transmute(&lpwstrold), core::mem::transmute(&lpwstrnew), core::mem::transmute_copy(&fallowescabort), core::mem::transmute_copy(&pcallback)).into() } } - unsafe extern "system" fn FindPin(this: *mut core::ffi::c_void, psource: *mut core::ffi::c_void, pindir: PIN_DIRECTION, pcategory: *const windows_core::GUID, ptype: *const windows_core::GUID, funconnected: super::super::Foundation::BOOL, num: i32, pppin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn FindPin(this: *mut core::ffi::c_void, psource: *mut core::ffi::c_void, pindir: PIN_DIRECTION, pcategory: *const windows_core::GUID, ptype: *const windows_core::GUID, funconnected: windows_core::BOOL, num: i32, pppin: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICaptureGraphBuilder2_Impl::FindPin(this, core::mem::transmute_copy(&psource), core::mem::transmute_copy(&pindir), core::mem::transmute_copy(&pcategory), core::mem::transmute_copy(&ptype), core::mem::transmute_copy(&funconnected), core::mem::transmute_copy(&num)) { @@ -18045,7 +18045,7 @@ impl IConfigAsfWriter { pub unsafe fn SetIndexMode(&self, bindexfile: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetIndexMode)(windows_core::Interface::as_raw(self), bindexfile.into()).ok() } } - pub unsafe fn GetIndexMode(&self) -> windows_core::Result { + pub unsafe fn GetIndexMode(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIndexMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -18067,8 +18067,8 @@ pub struct IConfigAsfWriter_Vtbl { pub GetCurrentProfile: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Media_WindowsMediaFormat"))] GetCurrentProfile: usize, - pub SetIndexMode: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetIndexMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetIndexMode: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetIndexMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Media_WindowsMediaFormat")] pub trait IConfigAsfWriter_Impl: windows_core::IUnknownImpl { @@ -18078,8 +18078,8 @@ pub trait IConfigAsfWriter_Impl: windows_core::IUnknownImpl { fn GetCurrentProfileGuid(&self) -> windows_core::Result; fn ConfigureFilterUsingProfile(&self, pprofile: windows_core::Ref) -> windows_core::Result<()>; fn GetCurrentProfile(&self) -> windows_core::Result; - fn SetIndexMode(&self, bindexfile: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetIndexMode(&self) -> windows_core::Result; + fn SetIndexMode(&self, bindexfile: windows_core::BOOL) -> windows_core::Result<()>; + fn GetIndexMode(&self) -> windows_core::Result; } #[cfg(feature = "Win32_Media_WindowsMediaFormat")] impl IConfigAsfWriter_Vtbl { @@ -18138,13 +18138,13 @@ impl IConfigAsfWriter_Vtbl { } } } - unsafe extern "system" fn SetIndexMode(this: *mut core::ffi::c_void, bindexfile: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetIndexMode(this: *mut core::ffi::c_void, bindexfile: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigAsfWriter_Impl::SetIndexMode(this, core::mem::transmute_copy(&bindexfile)).into() } } - unsafe extern "system" fn GetIndexMode(this: *mut core::ffi::c_void, pbindexfile: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetIndexMode(this: *mut core::ffi::c_void, pbindexfile: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigAsfWriter_Impl::GetIndexMode(this) { @@ -18279,7 +18279,7 @@ impl IConfigAviMux { pub unsafe fn SetOutputCompatibilityIndex(&self, foldindex: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetOutputCompatibilityIndex)(windows_core::Interface::as_raw(self), foldindex.into()).ok() } } - pub unsafe fn GetOutputCompatibilityIndex(&self) -> windows_core::Result { + pub unsafe fn GetOutputCompatibilityIndex(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOutputCompatibilityIndex)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -18291,14 +18291,14 @@ pub struct IConfigAviMux_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetMasterStream: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub GetMasterStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - pub SetOutputCompatibilityIndex: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetOutputCompatibilityIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetOutputCompatibilityIndex: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetOutputCompatibilityIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IConfigAviMux_Impl: windows_core::IUnknownImpl { fn SetMasterStream(&self, istream: i32) -> windows_core::Result<()>; fn GetMasterStream(&self) -> windows_core::Result; - fn SetOutputCompatibilityIndex(&self, foldindex: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetOutputCompatibilityIndex(&self) -> windows_core::Result; + fn SetOutputCompatibilityIndex(&self, foldindex: windows_core::BOOL) -> windows_core::Result<()>; + fn GetOutputCompatibilityIndex(&self) -> windows_core::Result; } impl IConfigAviMux_Vtbl { pub const fn new() -> Self { @@ -18320,13 +18320,13 @@ impl IConfigAviMux_Vtbl { } } } - unsafe extern "system" fn SetOutputCompatibilityIndex(this: *mut core::ffi::c_void, foldindex: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetOutputCompatibilityIndex(this: *mut core::ffi::c_void, foldindex: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConfigAviMux_Impl::SetOutputCompatibilityIndex(this, core::mem::transmute_copy(&foldindex)).into() } } - unsafe extern "system" fn GetOutputCompatibilityIndex(this: *mut core::ffi::c_void, pfoldindex: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetOutputCompatibilityIndex(this: *mut core::ffi::c_void, pfoldindex: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConfigAviMux_Impl::GetOutputCompatibilityIndex(this) { @@ -18477,7 +18477,7 @@ impl IDDrawExclModeVideo { unsafe { (windows_core::Interface::vtable(self).SetDDrawObject)(windows_core::Interface::as_raw(self), pddrawobject.param().abi()).ok() } } #[cfg(feature = "Win32_Graphics_DirectDraw")] - pub unsafe fn GetDDrawObject(&self, ppddrawobject: *mut Option, pbusingexternal: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetDDrawObject(&self, ppddrawobject: *mut Option, pbusingexternal: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetDDrawObject)(windows_core::Interface::as_raw(self), core::mem::transmute(ppddrawobject), pbusingexternal as _).ok() } } #[cfg(feature = "Win32_Graphics_DirectDraw")] @@ -18488,7 +18488,7 @@ impl IDDrawExclModeVideo { unsafe { (windows_core::Interface::vtable(self).SetDDrawSurface)(windows_core::Interface::as_raw(self), pddrawsurface.param().abi()).ok() } } #[cfg(feature = "Win32_Graphics_DirectDraw")] - pub unsafe fn GetDDrawSurface(&self, ppddrawsurface: *mut Option, pbusingexternal: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetDDrawSurface(&self, ppddrawsurface: *mut Option, pbusingexternal: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetDDrawSurface)(windows_core::Interface::as_raw(self), core::mem::transmute(ppddrawsurface), pbusingexternal as _).ok() } } pub unsafe fn SetDrawParameters(&self, prcsource: *const super::super::Foundation::RECT, prctarget: *const super::super::Foundation::RECT) -> windows_core::Result<()> { @@ -18512,7 +18512,7 @@ pub struct IDDrawExclModeVideo_Vtbl { #[cfg(not(feature = "Win32_Graphics_DirectDraw"))] SetDDrawObject: usize, #[cfg(feature = "Win32_Graphics_DirectDraw")] - pub GetDDrawObject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetDDrawObject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_DirectDraw"))] GetDDrawObject: usize, #[cfg(feature = "Win32_Graphics_DirectDraw")] @@ -18520,7 +18520,7 @@ pub struct IDDrawExclModeVideo_Vtbl { #[cfg(not(feature = "Win32_Graphics_DirectDraw"))] SetDDrawSurface: usize, #[cfg(feature = "Win32_Graphics_DirectDraw")] - pub GetDDrawSurface: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetDDrawSurface: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_DirectDraw"))] GetDDrawSurface: usize, pub SetDrawParameters: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, *const super::super::Foundation::RECT) -> windows_core::HRESULT, @@ -18530,9 +18530,9 @@ pub struct IDDrawExclModeVideo_Vtbl { #[cfg(feature = "Win32_Graphics_DirectDraw")] pub trait IDDrawExclModeVideo_Impl: windows_core::IUnknownImpl { fn SetDDrawObject(&self, pddrawobject: windows_core::Ref) -> windows_core::Result<()>; - fn GetDDrawObject(&self, ppddrawobject: windows_core::OutRef<'_, super::super::Graphics::DirectDraw::IDirectDraw>, pbusingexternal: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetDDrawObject(&self, ppddrawobject: windows_core::OutRef<'_, super::super::Graphics::DirectDraw::IDirectDraw>, pbusingexternal: *mut windows_core::BOOL) -> windows_core::Result<()>; fn SetDDrawSurface(&self, pddrawsurface: windows_core::Ref) -> windows_core::Result<()>; - fn GetDDrawSurface(&self, ppddrawsurface: windows_core::OutRef<'_, super::super::Graphics::DirectDraw::IDirectDrawSurface>, pbusingexternal: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetDDrawSurface(&self, ppddrawsurface: windows_core::OutRef<'_, super::super::Graphics::DirectDraw::IDirectDrawSurface>, pbusingexternal: *mut windows_core::BOOL) -> windows_core::Result<()>; fn SetDrawParameters(&self, prcsource: *const super::super::Foundation::RECT, prctarget: *const super::super::Foundation::RECT) -> windows_core::Result<()>; fn GetNativeVideoProps(&self, pdwvideowidth: *mut u32, pdwvideoheight: *mut u32, pdwpictaspectratiox: *mut u32, pdwpictaspectratioy: *mut u32) -> windows_core::Result<()>; fn SetCallbackInterface(&self, pcallback: windows_core::Ref, dwflags: u32) -> windows_core::Result<()>; @@ -18546,7 +18546,7 @@ impl IDDrawExclModeVideo_Vtbl { IDDrawExclModeVideo_Impl::SetDDrawObject(this, core::mem::transmute_copy(&pddrawobject)).into() } } - unsafe extern "system" fn GetDDrawObject(this: *mut core::ffi::c_void, ppddrawobject: *mut *mut core::ffi::c_void, pbusingexternal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetDDrawObject(this: *mut core::ffi::c_void, ppddrawobject: *mut *mut core::ffi::c_void, pbusingexternal: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDDrawExclModeVideo_Impl::GetDDrawObject(this, core::mem::transmute_copy(&ppddrawobject), core::mem::transmute_copy(&pbusingexternal)).into() @@ -18558,7 +18558,7 @@ impl IDDrawExclModeVideo_Vtbl { IDDrawExclModeVideo_Impl::SetDDrawSurface(this, core::mem::transmute_copy(&pddrawsurface)).into() } } - unsafe extern "system" fn GetDDrawSurface(this: *mut core::ffi::c_void, ppddrawsurface: *mut *mut core::ffi::c_void, pbusingexternal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetDDrawSurface(this: *mut core::ffi::c_void, ppddrawsurface: *mut *mut core::ffi::c_void, pbusingexternal: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDDrawExclModeVideo_Impl::GetDDrawSurface(this, core::mem::transmute_copy(&ppddrawsurface), core::mem::transmute_copy(&pbusingexternal)).into() @@ -18615,18 +18615,18 @@ impl IDDrawExclModeVideoCallback { #[repr(C)] pub struct IDDrawExclModeVideoCallback_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnUpdateOverlay: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, u32, super::super::Foundation::BOOL, *const super::super::Foundation::RECT, *const super::super::Foundation::RECT, super::super::Foundation::BOOL, *const super::super::Foundation::RECT, *const super::super::Foundation::RECT) -> windows_core::HRESULT, + pub OnUpdateOverlay: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, u32, windows_core::BOOL, *const super::super::Foundation::RECT, *const super::super::Foundation::RECT, windows_core::BOOL, *const super::super::Foundation::RECT, *const super::super::Foundation::RECT) -> windows_core::HRESULT, pub OnUpdateColorKey: unsafe extern "system" fn(*mut core::ffi::c_void, *const COLORKEY, u32) -> windows_core::HRESULT, pub OnUpdateSize: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, u32, u32) -> windows_core::HRESULT, } pub trait IDDrawExclModeVideoCallback_Impl: windows_core::IUnknownImpl { - fn OnUpdateOverlay(&self, bbefore: super::super::Foundation::BOOL, dwflags: u32, boldvisible: super::super::Foundation::BOOL, prcoldsrc: *const super::super::Foundation::RECT, prcolddest: *const super::super::Foundation::RECT, bnewvisible: super::super::Foundation::BOOL, prcnewsrc: *const super::super::Foundation::RECT, prcnewdest: *const super::super::Foundation::RECT) -> windows_core::Result<()>; + fn OnUpdateOverlay(&self, bbefore: windows_core::BOOL, dwflags: u32, boldvisible: windows_core::BOOL, prcoldsrc: *const super::super::Foundation::RECT, prcolddest: *const super::super::Foundation::RECT, bnewvisible: windows_core::BOOL, prcnewsrc: *const super::super::Foundation::RECT, prcnewdest: *const super::super::Foundation::RECT) -> windows_core::Result<()>; fn OnUpdateColorKey(&self, pkey: *const COLORKEY, dwcolor: u32) -> windows_core::Result<()>; fn OnUpdateSize(&self, dwwidth: u32, dwheight: u32, dwarwidth: u32, dwarheight: u32) -> windows_core::Result<()>; } impl IDDrawExclModeVideoCallback_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnUpdateOverlay(this: *mut core::ffi::c_void, bbefore: super::super::Foundation::BOOL, dwflags: u32, boldvisible: super::super::Foundation::BOOL, prcoldsrc: *const super::super::Foundation::RECT, prcolddest: *const super::super::Foundation::RECT, bnewvisible: super::super::Foundation::BOOL, prcnewsrc: *const super::super::Foundation::RECT, prcnewdest: *const super::super::Foundation::RECT) -> windows_core::HRESULT { + unsafe extern "system" fn OnUpdateOverlay(this: *mut core::ffi::c_void, bbefore: windows_core::BOOL, dwflags: u32, boldvisible: windows_core::BOOL, prcoldsrc: *const super::super::Foundation::RECT, prcolddest: *const super::super::Foundation::RECT, bnewvisible: windows_core::BOOL, prcnewsrc: *const super::super::Foundation::RECT, prcnewdest: *const super::super::Foundation::RECT) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDDrawExclModeVideoCallback_Impl::OnUpdateOverlay(this, core::mem::transmute_copy(&bbefore), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&boldvisible), core::mem::transmute_copy(&prcoldsrc), core::mem::transmute_copy(&prcolddest), core::mem::transmute_copy(&bnewvisible), core::mem::transmute_copy(&prcnewsrc), core::mem::transmute_copy(&prcnewdest)).into() @@ -18782,14 +18782,14 @@ impl IDVRGB219 { #[repr(C)] pub struct IDVRGB219_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetRGB219: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetRGB219: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IDVRGB219_Impl: windows_core::IUnknownImpl { - fn SetRGB219(&self, bstate: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetRGB219(&self, bstate: windows_core::BOOL) -> windows_core::Result<()>; } impl IDVRGB219_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetRGB219(this: *mut core::ffi::c_void, bstate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetRGB219(this: *mut core::ffi::c_void, bstate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDVRGB219_Impl::SetRGB219(this, core::mem::transmute_copy(&bstate)).into() @@ -19900,7 +19900,7 @@ pub struct IDvdControl_Vtbl { pub PauseOff: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub MenuLanguageSelect: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub AudioStreamChange: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub SubpictureStreamChange: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SubpictureStreamChange: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, pub AngleChange: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub ParentalLevelSelect: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub ParentalCountrySelect: unsafe extern "system" fn(*mut core::ffi::c_void, u16) -> windows_core::HRESULT, @@ -19937,7 +19937,7 @@ pub trait IDvdControl_Impl: windows_core::IUnknownImpl { fn PauseOff(&self) -> windows_core::Result<()>; fn MenuLanguageSelect(&self, language: u32) -> windows_core::Result<()>; fn AudioStreamChange(&self, ulaudio: u32) -> windows_core::Result<()>; - fn SubpictureStreamChange(&self, ulsubpicture: u32, bdisplay: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SubpictureStreamChange(&self, ulsubpicture: u32, bdisplay: windows_core::BOOL) -> windows_core::Result<()>; fn AngleChange(&self, ulangle: u32) -> windows_core::Result<()>; fn ParentalLevelSelect(&self, ulparentallevel: u32) -> windows_core::Result<()>; fn ParentalCountrySelect(&self, wcountry: u16) -> windows_core::Result<()>; @@ -20100,7 +20100,7 @@ impl IDvdControl_Vtbl { IDvdControl_Impl::AudioStreamChange(this, core::mem::transmute_copy(&ulaudio)).into() } } - unsafe extern "system" fn SubpictureStreamChange(this: *mut core::ffi::c_void, ulsubpicture: u32, bdisplay: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SubpictureStreamChange(this: *mut core::ffi::c_void, ulsubpicture: u32, bdisplay: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl_Impl::SubpictureStreamChange(this, core::mem::transmute_copy(&ulsubpicture), core::mem::transmute_copy(&bdisplay)).into() @@ -20419,10 +20419,10 @@ pub struct IDvdControl2_Vtbl { pub SelectButton: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub SelectAndActivateButton: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub StillOff: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub Pause: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Pause: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SelectAudioStream: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SelectSubpictureStream: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetSubpictureState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub SetSubpictureState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SelectAngle: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SelectParentalLevel: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub SelectParentalCountry: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8) -> windows_core::HRESULT, @@ -20432,8 +20432,8 @@ pub struct IDvdControl2_Vtbl { pub ActivateAtPosition: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::POINT) -> windows_core::HRESULT, pub SelectAtPosition: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::POINT) -> windows_core::HRESULT, pub PlayChaptersAutoStop: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub AcceptParentalLevelChange: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetOption: unsafe extern "system" fn(*mut core::ffi::c_void, DVD_OPTION_FLAG, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AcceptParentalLevelChange: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub SetOption: unsafe extern "system" fn(*mut core::ffi::c_void, DVD_OPTION_FLAG, windows_core::BOOL) -> windows_core::HRESULT, pub SetState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub PlayPeriodInTitleAutoStop: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const DVD_HMSF_TIMECODE, *const DVD_HMSF_TIMECODE, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetGPRM: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u16, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -20461,10 +20461,10 @@ pub trait IDvdControl2_Impl: windows_core::IUnknownImpl { fn SelectButton(&self, ulbutton: u32) -> windows_core::Result<()>; fn SelectAndActivateButton(&self, ulbutton: u32) -> windows_core::Result<()>; fn StillOff(&self) -> windows_core::Result<()>; - fn Pause(&self, bstate: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Pause(&self, bstate: windows_core::BOOL) -> windows_core::Result<()>; fn SelectAudioStream(&self, ulaudio: u32, dwflags: u32) -> windows_core::Result; fn SelectSubpictureStream(&self, ulsubpicture: u32, dwflags: u32) -> windows_core::Result; - fn SetSubpictureState(&self, bstate: super::super::Foundation::BOOL, dwflags: u32) -> windows_core::Result; + fn SetSubpictureState(&self, bstate: windows_core::BOOL, dwflags: u32) -> windows_core::Result; fn SelectAngle(&self, ulangle: u32, dwflags: u32) -> windows_core::Result; fn SelectParentalLevel(&self, ulparentallevel: u32) -> windows_core::Result<()>; fn SelectParentalCountry(&self, bcountry: *const u8) -> windows_core::Result<()>; @@ -20474,8 +20474,8 @@ pub trait IDvdControl2_Impl: windows_core::IUnknownImpl { fn ActivateAtPosition(&self, point: &super::super::Foundation::POINT) -> windows_core::Result<()>; fn SelectAtPosition(&self, point: &super::super::Foundation::POINT) -> windows_core::Result<()>; fn PlayChaptersAutoStop(&self, ultitle: u32, ulchapter: u32, ulchapterstoplay: u32, dwflags: u32) -> windows_core::Result; - fn AcceptParentalLevelChange(&self, baccept: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetOption(&self, flag: DVD_OPTION_FLAG, fstate: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn AcceptParentalLevelChange(&self, baccept: windows_core::BOOL) -> windows_core::Result<()>; + fn SetOption(&self, flag: DVD_OPTION_FLAG, fstate: windows_core::BOOL) -> windows_core::Result<()>; fn SetState(&self, pstate: windows_core::Ref, dwflags: u32) -> windows_core::Result; fn PlayPeriodInTitleAutoStop(&self, ultitle: u32, pstarttime: *const DVD_HMSF_TIMECODE, pendtime: *const DVD_HMSF_TIMECODE, dwflags: u32) -> windows_core::Result; fn SetGPRM(&self, ulindex: u32, wvalue: u16, dwflags: u32) -> windows_core::Result; @@ -20677,7 +20677,7 @@ impl IDvdControl2_Vtbl { IDvdControl2_Impl::StillOff(this).into() } } - unsafe extern "system" fn Pause(this: *mut core::ffi::c_void, bstate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Pause(this: *mut core::ffi::c_void, bstate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::Pause(this, core::mem::transmute_copy(&bstate)).into() @@ -20707,7 +20707,7 @@ impl IDvdControl2_Vtbl { } } } - unsafe extern "system" fn SetSubpictureState(this: *mut core::ffi::c_void, bstate: super::super::Foundation::BOOL, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn SetSubpictureState(this: *mut core::ffi::c_void, bstate: windows_core::BOOL, dwflags: u32, ppcmd: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdControl2_Impl::SetSubpictureState(this, core::mem::transmute_copy(&bstate), core::mem::transmute_copy(&dwflags)) { @@ -20785,13 +20785,13 @@ impl IDvdControl2_Vtbl { } } } - unsafe extern "system" fn AcceptParentalLevelChange(this: *mut core::ffi::c_void, baccept: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AcceptParentalLevelChange(this: *mut core::ffi::c_void, baccept: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::AcceptParentalLevelChange(this, core::mem::transmute_copy(&baccept)).into() } } - unsafe extern "system" fn SetOption(this: *mut core::ffi::c_void, flag: DVD_OPTION_FLAG, fstate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetOption(this: *mut core::ffi::c_void, flag: DVD_OPTION_FLAG, fstate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdControl2_Impl::SetOption(this, core::mem::transmute_copy(&flag), core::mem::transmute_copy(&fstate)).into() @@ -20999,7 +20999,7 @@ impl IDvdInfo { pub unsafe fn GetCurrentAudio(&self, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetCurrentAudio)(windows_core::Interface::as_raw(self), pulstreamsavailable as _, pulcurrentstream as _).ok() } } - pub unsafe fn GetCurrentSubpicture(&self, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32, pisdisabled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetCurrentSubpicture(&self, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32, pisdisabled: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetCurrentSubpicture)(windows_core::Interface::as_raw(self), pulstreamsavailable as _, pulcurrentstream as _, pisdisabled as _).ok() } } pub unsafe fn GetCurrentUOPS(&self) -> windows_core::Result { @@ -21090,7 +21090,7 @@ pub struct IDvdInfo_Vtbl { pub GetCurrentButton: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32) -> windows_core::HRESULT, pub GetCurrentAngle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32) -> windows_core::HRESULT, pub GetCurrentAudio: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32) -> windows_core::HRESULT, - pub GetCurrentSubpicture: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetCurrentSubpicture: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetCurrentUOPS: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetAllSPRMs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut u16) -> windows_core::HRESULT, pub GetAllGPRMs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut u16) -> windows_core::HRESULT, @@ -21115,7 +21115,7 @@ pub trait IDvdInfo_Impl: windows_core::IUnknownImpl { fn GetCurrentButton(&self, pulbuttonsavailable: *mut u32, pulcurrentbutton: *mut u32) -> windows_core::Result<()>; fn GetCurrentAngle(&self, pulanglesavailable: *mut u32, pulcurrentangle: *mut u32) -> windows_core::Result<()>; fn GetCurrentAudio(&self, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32) -> windows_core::Result<()>; - fn GetCurrentSubpicture(&self, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32, pisdisabled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetCurrentSubpicture(&self, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32, pisdisabled: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetCurrentUOPS(&self) -> windows_core::Result; fn GetAllSPRMs(&self) -> windows_core::Result<*mut u16>; fn GetAllGPRMs(&self) -> windows_core::Result<*mut u16>; @@ -21189,7 +21189,7 @@ impl IDvdInfo_Vtbl { IDvdInfo_Impl::GetCurrentAudio(this, core::mem::transmute_copy(&pulstreamsavailable), core::mem::transmute_copy(&pulcurrentstream)).into() } } - unsafe extern "system" fn GetCurrentSubpicture(this: *mut core::ffi::c_void, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32, pisdisabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetCurrentSubpicture(this: *mut core::ffi::c_void, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32, pisdisabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo_Impl::GetCurrentSubpicture(this, core::mem::transmute_copy(&pulstreamsavailable), core::mem::transmute_copy(&pulcurrentstream), core::mem::transmute_copy(&pisdisabled)).into() @@ -21410,7 +21410,7 @@ impl IDvdInfo2 { pub unsafe fn GetCurrentAudio(&self, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetCurrentAudio)(windows_core::Interface::as_raw(self), pulstreamsavailable as _, pulcurrentstream as _).ok() } } - pub unsafe fn GetCurrentSubpicture(&self, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32, pbisdisabled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetCurrentSubpicture(&self, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32, pbisdisabled: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetCurrentSubpicture)(windows_core::Interface::as_raw(self), pulstreamsavailable as _, pulcurrentstream as _, pbisdisabled as _).ok() } } pub unsafe fn GetCurrentUOPS(&self) -> windows_core::Result { @@ -21500,7 +21500,7 @@ impl IDvdInfo2 { pub unsafe fn GetDVDDirectory(&self, pszwpath: &mut [u16], pulactualsize: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetDVDDirectory)(windows_core::Interface::as_raw(self), core::mem::transmute(pszwpath.as_ptr()), pszwpath.len().try_into().unwrap(), pulactualsize as _).ok() } } - pub unsafe fn IsAudioStreamEnabled(&self, ulstreamnum: u32) -> windows_core::Result { + pub unsafe fn IsAudioStreamEnabled(&self, ulstreamnum: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsAudioStreamEnabled)(windows_core::Interface::as_raw(self), ulstreamnum, &mut result__).map(|| result__) @@ -21557,7 +21557,7 @@ impl IDvdInfo2 { (windows_core::Interface::vtable(self).GetButtonRect)(windows_core::Interface::as_raw(self), ulbutton, &mut result__).map(|| result__) } } - pub unsafe fn IsSubpictureStreamEnabled(&self, ulstreamnum: u32) -> windows_core::Result { + pub unsafe fn IsSubpictureStreamEnabled(&self, ulstreamnum: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsSubpictureStreamEnabled)(windows_core::Interface::as_raw(self), ulstreamnum, &mut result__).map(|| result__) @@ -21573,7 +21573,7 @@ pub struct IDvdInfo2_Vtbl { pub GetCurrentButton: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32) -> windows_core::HRESULT, pub GetCurrentAngle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32) -> windows_core::HRESULT, pub GetCurrentAudio: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32) -> windows_core::HRESULT, - pub GetCurrentSubpicture: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetCurrentSubpicture: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetCurrentUOPS: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetAllSPRMs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut u16) -> windows_core::HRESULT, pub GetAllGPRMs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut u16) -> windows_core::HRESULT, @@ -21594,7 +21594,7 @@ pub struct IDvdInfo2_Vtbl { pub GetNumberOfChapters: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, pub GetTitleParentalLevels: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, pub GetDVDDirectory: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, *mut u32) -> windows_core::HRESULT, - pub IsAudioStreamEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsAudioStreamEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetDiscID: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut u64) -> windows_core::HRESULT, pub GetState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetMenuLanguages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, u32, *mut u32) -> windows_core::HRESULT, @@ -21605,7 +21605,7 @@ pub struct IDvdInfo2_Vtbl { pub GetDefaultSubpictureLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut DVD_SUBPICTURE_LANG_EXT) -> windows_core::HRESULT, pub GetDecoderCaps: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DVD_DECODER_CAPS) -> windows_core::HRESULT, pub GetButtonRect: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::RECT) -> windows_core::HRESULT, - pub IsSubpictureStreamEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsSubpictureStreamEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IDvdInfo2_Impl: windows_core::IUnknownImpl { fn GetCurrentDomain(&self) -> windows_core::Result; @@ -21614,7 +21614,7 @@ pub trait IDvdInfo2_Impl: windows_core::IUnknownImpl { fn GetCurrentButton(&self, pulbuttonsavailable: *mut u32, pulcurrentbutton: *mut u32) -> windows_core::Result<()>; fn GetCurrentAngle(&self, pulanglesavailable: *mut u32, pulcurrentangle: *mut u32) -> windows_core::Result<()>; fn GetCurrentAudio(&self, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32) -> windows_core::Result<()>; - fn GetCurrentSubpicture(&self, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32, pbisdisabled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetCurrentSubpicture(&self, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32, pbisdisabled: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetCurrentUOPS(&self) -> windows_core::Result; fn GetAllSPRMs(&self) -> windows_core::Result<*mut u16>; fn GetAllGPRMs(&self) -> windows_core::Result<*mut u16>; @@ -21635,7 +21635,7 @@ pub trait IDvdInfo2_Impl: windows_core::IUnknownImpl { fn GetNumberOfChapters(&self, ultitle: u32) -> windows_core::Result; fn GetTitleParentalLevels(&self, ultitle: u32) -> windows_core::Result; fn GetDVDDirectory(&self, pszwpath: windows_core::PWSTR, ulmaxsize: u32, pulactualsize: *mut u32) -> windows_core::Result<()>; - fn IsAudioStreamEnabled(&self, ulstreamnum: u32) -> windows_core::Result; + fn IsAudioStreamEnabled(&self, ulstreamnum: u32) -> windows_core::Result; fn GetDiscID(&self, pszwpath: &windows_core::PCWSTR) -> windows_core::Result; fn GetState(&self) -> windows_core::Result; fn GetMenuLanguages(&self, planguages: *mut u32, ulmaxlanguages: u32, pulactuallanguages: *mut u32) -> windows_core::Result<()>; @@ -21646,7 +21646,7 @@ pub trait IDvdInfo2_Impl: windows_core::IUnknownImpl { fn GetDefaultSubpictureLanguage(&self, planguage: *mut u32, psubpictureextension: *mut DVD_SUBPICTURE_LANG_EXT) -> windows_core::Result<()>; fn GetDecoderCaps(&self, pcaps: *mut DVD_DECODER_CAPS) -> windows_core::Result<()>; fn GetButtonRect(&self, ulbutton: u32) -> windows_core::Result; - fn IsSubpictureStreamEnabled(&self, ulstreamnum: u32) -> windows_core::Result; + fn IsSubpictureStreamEnabled(&self, ulstreamnum: u32) -> windows_core::Result; } impl IDvdInfo2_Vtbl { pub const fn new() -> Self { @@ -21698,7 +21698,7 @@ impl IDvdInfo2_Vtbl { IDvdInfo2_Impl::GetCurrentAudio(this, core::mem::transmute_copy(&pulstreamsavailable), core::mem::transmute_copy(&pulcurrentstream)).into() } } - unsafe extern "system" fn GetCurrentSubpicture(this: *mut core::ffi::c_void, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32, pbisdisabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetCurrentSubpicture(this: *mut core::ffi::c_void, pulstreamsavailable: *mut u32, pulcurrentstream: *mut u32, pbisdisabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDvdInfo2_Impl::GetCurrentSubpicture(this, core::mem::transmute_copy(&pulstreamsavailable), core::mem::transmute_copy(&pulcurrentstream), core::mem::transmute_copy(&pbisdisabled)).into() @@ -21878,7 +21878,7 @@ impl IDvdInfo2_Vtbl { IDvdInfo2_Impl::GetDVDDirectory(this, core::mem::transmute_copy(&pszwpath), core::mem::transmute_copy(&ulmaxsize), core::mem::transmute_copy(&pulactualsize)).into() } } - unsafe extern "system" fn IsAudioStreamEnabled(this: *mut core::ffi::c_void, ulstreamnum: u32, pbenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsAudioStreamEnabled(this: *mut core::ffi::c_void, ulstreamnum: u32, pbenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::IsAudioStreamEnabled(this, core::mem::transmute_copy(&ulstreamnum)) { @@ -21986,7 +21986,7 @@ impl IDvdInfo2_Vtbl { } } } - unsafe extern "system" fn IsSubpictureStreamEnabled(this: *mut core::ffi::c_void, ulstreamnum: u32, pbenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsSubpictureStreamEnabled(this: *mut core::ffi::c_void, ulstreamnum: u32, pbenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDvdInfo2_Impl::IsSubpictureStreamEnabled(this, core::mem::transmute_copy(&ulstreamnum)) { @@ -23736,22 +23736,22 @@ pub struct IFilterMapper_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub RegisterFilter: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, windows_core::PCWSTR, u32) -> windows_core::HRESULT, pub RegisterFilterInstance: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, windows_core::PCWSTR, *mut windows_core::GUID) -> windows_core::HRESULT, - pub RegisterPin: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, windows_core::PCWSTR, super::super::Foundation::BOOL, super::super::Foundation::BOOL, super::super::Foundation::BOOL, super::super::Foundation::BOOL, windows_core::GUID, windows_core::PCWSTR) -> windows_core::HRESULT, + pub RegisterPin: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, windows_core::PCWSTR, windows_core::BOOL, windows_core::BOOL, windows_core::BOOL, windows_core::BOOL, windows_core::GUID, windows_core::PCWSTR) -> windows_core::HRESULT, pub RegisterPinType: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, windows_core::PCWSTR, windows_core::GUID, windows_core::GUID) -> windows_core::HRESULT, pub UnregisterFilter: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> windows_core::HRESULT, pub UnregisterFilterInstance: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> windows_core::HRESULT, pub UnregisterPin: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, windows_core::PCWSTR) -> windows_core::HRESULT, - pub EnumMatchingFilters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, u32, super::super::Foundation::BOOL, windows_core::GUID, windows_core::GUID, super::super::Foundation::BOOL, super::super::Foundation::BOOL, windows_core::GUID, windows_core::GUID) -> windows_core::HRESULT, + pub EnumMatchingFilters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, u32, windows_core::BOOL, windows_core::GUID, windows_core::GUID, windows_core::BOOL, windows_core::BOOL, windows_core::GUID, windows_core::GUID) -> windows_core::HRESULT, } pub trait IFilterMapper_Impl: windows_core::IUnknownImpl { fn RegisterFilter(&self, clsid: &windows_core::GUID, name: &windows_core::PCWSTR, dwmerit: u32) -> windows_core::Result<()>; fn RegisterFilterInstance(&self, clsid: &windows_core::GUID, name: &windows_core::PCWSTR) -> windows_core::Result; - fn RegisterPin(&self, filter: &windows_core::GUID, name: &windows_core::PCWSTR, brendered: super::super::Foundation::BOOL, boutput: super::super::Foundation::BOOL, bzero: super::super::Foundation::BOOL, bmany: super::super::Foundation::BOOL, connectstofilter: &windows_core::GUID, connectstopin: &windows_core::PCWSTR) -> windows_core::Result<()>; + fn RegisterPin(&self, filter: &windows_core::GUID, name: &windows_core::PCWSTR, brendered: windows_core::BOOL, boutput: windows_core::BOOL, bzero: windows_core::BOOL, bmany: windows_core::BOOL, connectstofilter: &windows_core::GUID, connectstopin: &windows_core::PCWSTR) -> windows_core::Result<()>; fn RegisterPinType(&self, clsfilter: &windows_core::GUID, strname: &windows_core::PCWSTR, clsmajortype: &windows_core::GUID, clssubtype: &windows_core::GUID) -> windows_core::Result<()>; fn UnregisterFilter(&self, filter: &windows_core::GUID) -> windows_core::Result<()>; fn UnregisterFilterInstance(&self, mrid: &windows_core::GUID) -> windows_core::Result<()>; fn UnregisterPin(&self, filter: &windows_core::GUID, name: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn EnumMatchingFilters(&self, ppenum: windows_core::OutRef<'_, IEnumRegFilters>, 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::Result<()>; + fn EnumMatchingFilters(&self, ppenum: windows_core::OutRef<'_, IEnumRegFilters>, dwmerit: u32, binputneeded: windows_core::BOOL, clsinmaj: &windows_core::GUID, clsinsub: &windows_core::GUID, brender: windows_core::BOOL, boututneeded: windows_core::BOOL, clsoutmaj: &windows_core::GUID, clsoutsub: &windows_core::GUID) -> windows_core::Result<()>; } impl IFilterMapper_Vtbl { pub const fn new() -> Self { @@ -23773,7 +23773,7 @@ impl IFilterMapper_Vtbl { } } } - unsafe extern "system" fn RegisterPin(this: *mut core::ffi::c_void, filter: windows_core::GUID, name: windows_core::PCWSTR, brendered: super::super::Foundation::BOOL, boutput: super::super::Foundation::BOOL, bzero: super::super::Foundation::BOOL, bmany: super::super::Foundation::BOOL, connectstofilter: windows_core::GUID, connectstopin: windows_core::PCWSTR) -> windows_core::HRESULT { + unsafe extern "system" fn RegisterPin(this: *mut core::ffi::c_void, filter: windows_core::GUID, name: windows_core::PCWSTR, brendered: windows_core::BOOL, boutput: windows_core::BOOL, bzero: windows_core::BOOL, bmany: windows_core::BOOL, connectstofilter: windows_core::GUID, connectstopin: windows_core::PCWSTR) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterMapper_Impl::RegisterPin(this, core::mem::transmute(&filter), core::mem::transmute(&name), core::mem::transmute_copy(&brendered), core::mem::transmute_copy(&boutput), core::mem::transmute_copy(&bzero), core::mem::transmute_copy(&bmany), core::mem::transmute(&connectstofilter), core::mem::transmute(&connectstopin)).into() @@ -23803,7 +23803,7 @@ impl IFilterMapper_Vtbl { IFilterMapper_Impl::UnregisterPin(this, core::mem::transmute(&filter), core::mem::transmute(&name)).into() } } - unsafe extern "system" fn EnumMatchingFilters(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void, dwmerit: u32, binputneeded: super::super::Foundation::BOOL, clsinmaj: windows_core::GUID, clsinsub: windows_core::GUID, brender: super::super::Foundation::BOOL, boututneeded: super::super::Foundation::BOOL, clsoutmaj: windows_core::GUID, clsoutsub: windows_core::GUID) -> windows_core::HRESULT { + unsafe extern "system" fn EnumMatchingFilters(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void, dwmerit: u32, binputneeded: windows_core::BOOL, clsinmaj: windows_core::GUID, clsinsub: windows_core::GUID, brender: windows_core::BOOL, boututneeded: windows_core::BOOL, clsoutmaj: windows_core::GUID, clsoutsub: windows_core::GUID) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterMapper_Impl::EnumMatchingFilters(this, core::mem::transmute_copy(&ppenum), core::mem::transmute_copy(&dwmerit), core::mem::transmute_copy(&binputneeded), core::mem::transmute(&clsinmaj), core::mem::transmute(&clsinsub), core::mem::transmute_copy(&brender), core::mem::transmute_copy(&boututneeded), core::mem::transmute(&clsoutmaj), core::mem::transmute(&clsoutsub)).into() @@ -23884,7 +23884,7 @@ pub struct IFilterMapper2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] RegisterFilter: usize, #[cfg(feature = "Win32_System_Com")] - pub EnumMatchingFilters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, u32, super::super::Foundation::BOOL, u32, super::super::Foundation::BOOL, u32, *const windows_core::GUID, *const REGPINMEDIUM, *const windows_core::GUID, super::super::Foundation::BOOL, super::super::Foundation::BOOL, u32, *const windows_core::GUID, *const REGPINMEDIUM, *const windows_core::GUID) -> windows_core::HRESULT, + pub EnumMatchingFilters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, u32, windows_core::BOOL, u32, windows_core::BOOL, u32, *const windows_core::GUID, *const REGPINMEDIUM, *const windows_core::GUID, windows_core::BOOL, windows_core::BOOL, u32, *const windows_core::GUID, *const REGPINMEDIUM, *const windows_core::GUID) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] EnumMatchingFilters: usize, } @@ -23893,7 +23893,7 @@ pub trait IFilterMapper2_Impl: windows_core::IUnknownImpl { fn CreateCategory(&self, clsidcategory: *const windows_core::GUID, dwcategorymerit: u32, description: &windows_core::PCWSTR) -> windows_core::Result<()>; fn UnregisterFilter(&self, pclsidcategory: *const windows_core::GUID, szinstance: &windows_core::PCWSTR, filter: *const windows_core::GUID) -> windows_core::Result<()>; fn RegisterFilter(&self, clsidfilter: *const windows_core::GUID, name: &windows_core::PCWSTR, ppmoniker: windows_core::OutRef<'_, super::super::System::Com::IMoniker>, pclsidcategory: *const windows_core::GUID, szinstance: &windows_core::PCWSTR, prf2: *const REGFILTER2) -> windows_core::Result<()>; - fn EnumMatchingFilters(&self, ppenum: windows_core::OutRef<'_, super::super::System::Com::IEnumMoniker>, dwflags: u32, bexactmatch: super::super::Foundation::BOOL, dwmerit: u32, binputneeded: super::super::Foundation::BOOL, cinputtypes: u32, pinputtypes: *const windows_core::GUID, pmedin: *const REGPINMEDIUM, ppincategoryin: *const windows_core::GUID, brender: super::super::Foundation::BOOL, boutputneeded: super::super::Foundation::BOOL, coutputtypes: u32, poutputtypes: *const windows_core::GUID, pmedout: *const REGPINMEDIUM, ppincategoryout: *const windows_core::GUID) -> windows_core::Result<()>; + fn EnumMatchingFilters(&self, ppenum: windows_core::OutRef<'_, super::super::System::Com::IEnumMoniker>, dwflags: u32, bexactmatch: windows_core::BOOL, dwmerit: u32, binputneeded: windows_core::BOOL, cinputtypes: u32, pinputtypes: *const windows_core::GUID, pmedin: *const REGPINMEDIUM, ppincategoryin: *const windows_core::GUID, brender: windows_core::BOOL, boutputneeded: windows_core::BOOL, coutputtypes: u32, poutputtypes: *const windows_core::GUID, pmedout: *const REGPINMEDIUM, ppincategoryout: *const windows_core::GUID) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl IFilterMapper2_Vtbl { @@ -23916,7 +23916,7 @@ impl IFilterMapper2_Vtbl { IFilterMapper2_Impl::RegisterFilter(this, core::mem::transmute_copy(&clsidfilter), core::mem::transmute(&name), core::mem::transmute_copy(&ppmoniker), core::mem::transmute_copy(&pclsidcategory), core::mem::transmute(&szinstance), core::mem::transmute_copy(&prf2)).into() } } - unsafe extern "system" fn EnumMatchingFilters(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void, dwflags: u32, bexactmatch: super::super::Foundation::BOOL, dwmerit: u32, binputneeded: super::super::Foundation::BOOL, cinputtypes: u32, pinputtypes: *const windows_core::GUID, pmedin: *const REGPINMEDIUM, ppincategoryin: *const windows_core::GUID, brender: super::super::Foundation::BOOL, boutputneeded: super::super::Foundation::BOOL, coutputtypes: u32, poutputtypes: *const windows_core::GUID, pmedout: *const REGPINMEDIUM, ppincategoryout: *const windows_core::GUID) -> windows_core::HRESULT { + unsafe extern "system" fn EnumMatchingFilters(this: *mut core::ffi::c_void, ppenum: *mut *mut core::ffi::c_void, dwflags: u32, bexactmatch: windows_core::BOOL, dwmerit: u32, binputneeded: windows_core::BOOL, cinputtypes: u32, pinputtypes: *const windows_core::GUID, pmedin: *const REGPINMEDIUM, ppincategoryin: *const windows_core::GUID, brender: windows_core::BOOL, boutputneeded: windows_core::BOOL, coutputtypes: u32, poutputtypes: *const windows_core::GUID, pmedout: *const REGPINMEDIUM, ppincategoryout: *const windows_core::GUID) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFilterMapper2_Impl::EnumMatchingFilters( @@ -26253,9 +26253,9 @@ pub struct IMediaSample_Vtbl { pub GetTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64, *mut i64) -> windows_core::HRESULT, pub SetTime: unsafe extern "system" fn(*mut core::ffi::c_void, *const i64, *const i64) -> windows_core::HRESULT, pub IsSyncPoint: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetSyncPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetSyncPoint: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub IsPreroll: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetPreroll: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetPreroll: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetActualDataLength: unsafe extern "system" fn(*mut core::ffi::c_void) -> i32, pub SetActualDataLength: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, #[cfg(feature = "Win32_Media_MediaFoundation")] @@ -26267,7 +26267,7 @@ pub struct IMediaSample_Vtbl { #[cfg(not(feature = "Win32_Media_MediaFoundation"))] SetMediaType: usize, pub IsDiscontinuity: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetDiscontinuity: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetDiscontinuity: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetMediaTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64, *mut i64) -> windows_core::HRESULT, pub SetMediaTime: unsafe extern "system" fn(*mut core::ffi::c_void, *const i64, *const i64) -> windows_core::HRESULT, } @@ -26278,15 +26278,15 @@ pub trait IMediaSample_Impl: windows_core::IUnknownImpl { fn GetTime(&self, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::Result<()>; fn SetTime(&self, ptimestart: *const i64, ptimeend: *const i64) -> windows_core::Result<()>; fn IsSyncPoint(&self) -> windows_core::HRESULT; - fn SetSyncPoint(&self, bissyncpoint: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetSyncPoint(&self, bissyncpoint: windows_core::BOOL) -> windows_core::Result<()>; fn IsPreroll(&self) -> windows_core::HRESULT; - fn SetPreroll(&self, bispreroll: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetPreroll(&self, bispreroll: windows_core::BOOL) -> windows_core::Result<()>; fn GetActualDataLength(&self) -> i32; fn SetActualDataLength(&self, __midl__imediasample0000: i32) -> windows_core::Result<()>; fn GetMediaType(&self) -> windows_core::Result<*mut super::MediaFoundation::AM_MEDIA_TYPE>; fn SetMediaType(&self, pmediatype: *const super::MediaFoundation::AM_MEDIA_TYPE) -> windows_core::Result<()>; fn IsDiscontinuity(&self) -> windows_core::HRESULT; - fn SetDiscontinuity(&self, bdiscontinuity: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetDiscontinuity(&self, bdiscontinuity: windows_core::BOOL) -> windows_core::Result<()>; fn GetMediaTime(&self, ptimestart: *mut i64, ptimeend: *mut i64) -> windows_core::Result<()>; fn SetMediaTime(&self, ptimestart: *const i64, ptimeend: *const i64) -> windows_core::Result<()>; } @@ -26329,7 +26329,7 @@ impl IMediaSample_Vtbl { IMediaSample_Impl::IsSyncPoint(this) } } - unsafe extern "system" fn SetSyncPoint(this: *mut core::ffi::c_void, bissyncpoint: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetSyncPoint(this: *mut core::ffi::c_void, bissyncpoint: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample_Impl::SetSyncPoint(this, core::mem::transmute_copy(&bissyncpoint)).into() @@ -26341,7 +26341,7 @@ impl IMediaSample_Vtbl { IMediaSample_Impl::IsPreroll(this) } } - unsafe extern "system" fn SetPreroll(this: *mut core::ffi::c_void, bispreroll: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetPreroll(this: *mut core::ffi::c_void, bispreroll: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample_Impl::SetPreroll(this, core::mem::transmute_copy(&bispreroll)).into() @@ -26383,7 +26383,7 @@ impl IMediaSample_Vtbl { IMediaSample_Impl::IsDiscontinuity(this) } } - unsafe extern "system" fn SetDiscontinuity(this: *mut core::ffi::c_void, bdiscontinuity: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetDiscontinuity(this: *mut core::ffi::c_void, bdiscontinuity: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaSample_Impl::SetDiscontinuity(this, core::mem::transmute_copy(&bdiscontinuity)).into() @@ -27003,11 +27003,11 @@ pub struct IMediaStreamFilter_Vtbl { pub AddMediaStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetMediaStream: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub EnumMediaStreams: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SupportSeeking: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SupportSeeking: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub ReferenceTimeToStreamTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub GetCurrentStreamTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub WaitUntil: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - pub Flush: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Flush: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub EndOfStream: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] @@ -27015,11 +27015,11 @@ pub trait IMediaStreamFilter_Impl: IBaseFilter_Impl { fn AddMediaStream(&self, pammediastream: windows_core::Ref) -> windows_core::Result<()>; fn GetMediaStream(&self, idpurpose: *const windows_core::GUID) -> windows_core::Result; fn EnumMediaStreams(&self, index: i32) -> windows_core::Result; - fn SupportSeeking(&self, brenderer: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SupportSeeking(&self, brenderer: windows_core::BOOL) -> windows_core::Result<()>; fn ReferenceTimeToStreamTime(&self, ptime: *mut i64) -> windows_core::Result<()>; fn GetCurrentStreamTime(&self) -> windows_core::Result; fn WaitUntil(&self, waitstreamtime: i64) -> windows_core::Result<()>; - fn Flush(&self, bcanceleos: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Flush(&self, bcanceleos: windows_core::BOOL) -> windows_core::Result<()>; fn EndOfStream(&self) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] @@ -27055,7 +27055,7 @@ impl IMediaStreamFilter_Vtbl { } } } - unsafe extern "system" fn SupportSeeking(this: *mut core::ffi::c_void, brenderer: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SupportSeeking(this: *mut core::ffi::c_void, brenderer: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaStreamFilter_Impl::SupportSeeking(this, core::mem::transmute_copy(&brenderer)).into() @@ -27085,7 +27085,7 @@ impl IMediaStreamFilter_Vtbl { IMediaStreamFilter_Impl::WaitUntil(this, core::mem::transmute_copy(&waitstreamtime)).into() } } - unsafe extern "system" fn Flush(this: *mut core::ffi::c_void, bcanceleos: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Flush(this: *mut core::ffi::c_void, bcanceleos: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMediaStreamFilter_Impl::Flush(this, core::mem::transmute_copy(&bcanceleos)).into() @@ -27437,7 +27437,7 @@ impl IMemInputPin { pub struct IMemInputPin_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetAllocator: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub NotifyAllocator: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub NotifyAllocator: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetAllocatorRequirements: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ALLOCATOR_PROPERTIES) -> windows_core::HRESULT, pub Receive: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub ReceiveMultiple: unsafe extern "system" fn(*mut core::ffi::c_void, *const *mut core::ffi::c_void, i32, *mut i32) -> windows_core::HRESULT, @@ -27445,7 +27445,7 @@ pub struct IMemInputPin_Vtbl { } pub trait IMemInputPin_Impl: windows_core::IUnknownImpl { fn GetAllocator(&self) -> windows_core::Result; - fn NotifyAllocator(&self, pallocator: windows_core::Ref, breadonly: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn NotifyAllocator(&self, pallocator: windows_core::Ref, breadonly: windows_core::BOOL) -> windows_core::Result<()>; fn GetAllocatorRequirements(&self) -> windows_core::Result; fn Receive(&self, psample: windows_core::Ref) -> windows_core::Result<()>; fn ReceiveMultiple(&self, psamples: *const Option, nsamples: i32) -> windows_core::Result; @@ -27465,7 +27465,7 @@ impl IMemInputPin_Vtbl { } } } - unsafe extern "system" fn NotifyAllocator(this: *mut core::ffi::c_void, pallocator: *mut core::ffi::c_void, breadonly: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn NotifyAllocator(this: *mut core::ffi::c_void, pallocator: *mut core::ffi::c_void, breadonly: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMemInputPin_Impl::NotifyAllocator(this, core::mem::transmute_copy(&pallocator), core::mem::transmute_copy(&breadonly)).into() @@ -27808,7 +27808,7 @@ impl IMixerPinConfig { pub unsafe fn SetStreamTransparent(&self, bstreamtransparent: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetStreamTransparent)(windows_core::Interface::as_raw(self), bstreamtransparent.into()).ok() } } - pub unsafe fn GetStreamTransparent(&self, pbstreamtransparent: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetStreamTransparent(&self, pbstreamtransparent: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetStreamTransparent)(windows_core::Interface::as_raw(self), pbstreamtransparent as _).ok() } } } @@ -27825,8 +27825,8 @@ pub struct IMixerPinConfig_Vtbl { pub GetBlendingParameter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetAspectRatioMode: unsafe extern "system" fn(*mut core::ffi::c_void, AM_ASPECT_RATIO_MODE) -> windows_core::HRESULT, pub GetAspectRatioMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AM_ASPECT_RATIO_MODE) -> windows_core::HRESULT, - pub SetStreamTransparent: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetStreamTransparent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetStreamTransparent: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetStreamTransparent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IMixerPinConfig_Impl: windows_core::IUnknownImpl { fn SetRelativePosition(&self, dwleft: u32, dwtop: u32, dwright: u32, dwbottom: u32) -> windows_core::Result<()>; @@ -27839,8 +27839,8 @@ pub trait IMixerPinConfig_Impl: windows_core::IUnknownImpl { fn GetBlendingParameter(&self, pdwblendingparameter: *mut u32) -> windows_core::Result<()>; fn SetAspectRatioMode(&self, amaspectratiomode: AM_ASPECT_RATIO_MODE) -> windows_core::Result<()>; fn GetAspectRatioMode(&self, pamaspectratiomode: *mut AM_ASPECT_RATIO_MODE) -> windows_core::Result<()>; - fn SetStreamTransparent(&self, bstreamtransparent: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetStreamTransparent(&self, pbstreamtransparent: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetStreamTransparent(&self, bstreamtransparent: windows_core::BOOL) -> windows_core::Result<()>; + fn GetStreamTransparent(&self, pbstreamtransparent: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IMixerPinConfig_Vtbl { pub const fn new() -> Self { @@ -27904,13 +27904,13 @@ impl IMixerPinConfig_Vtbl { IMixerPinConfig_Impl::GetAspectRatioMode(this, core::mem::transmute_copy(&pamaspectratiomode)).into() } } - unsafe extern "system" fn SetStreamTransparent(this: *mut core::ffi::c_void, bstreamtransparent: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetStreamTransparent(this: *mut core::ffi::c_void, bstreamtransparent: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerPinConfig_Impl::SetStreamTransparent(this, core::mem::transmute_copy(&bstreamtransparent)).into() } } - unsafe extern "system" fn GetStreamTransparent(this: *mut core::ffi::c_void, pbstreamtransparent: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetStreamTransparent(this: *mut core::ffi::c_void, pbstreamtransparent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMixerPinConfig_Impl::GetStreamTransparent(this, core::mem::transmute_copy(&pbstreamtransparent)).into() @@ -28852,7 +28852,7 @@ pub struct IPersistMediaPropertyBag_Vtbl { #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] Load: usize, #[cfg(feature = "Win32_System_Com_StructuredStorage")] - pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] Save: usize, } @@ -28860,7 +28860,7 @@ pub struct IPersistMediaPropertyBag_Vtbl { pub trait IPersistMediaPropertyBag_Impl: super::super::System::Com::IPersist_Impl { fn InitNew(&self) -> windows_core::Result<()>; fn Load(&self, ppropbag: windows_core::Ref, perrorlog: windows_core::Ref) -> windows_core::Result<()>; - fn Save(&self, ppropbag: windows_core::Ref, fcleardirty: super::super::Foundation::BOOL, fsaveallproperties: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Save(&self, ppropbag: windows_core::Ref, fcleardirty: windows_core::BOOL, fsaveallproperties: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IPersistMediaPropertyBag_Vtbl { @@ -28877,7 +28877,7 @@ impl IPersistMediaPropertyBag_Vtbl { IPersistMediaPropertyBag_Impl::Load(this, core::mem::transmute_copy(&ppropbag), core::mem::transmute_copy(&perrorlog)).into() } } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, ppropbag: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL, fsaveallproperties: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, ppropbag: *mut core::ffi::c_void, fcleardirty: windows_core::BOOL, fsaveallproperties: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistMediaPropertyBag_Impl::Save(this, core::mem::transmute_copy(&ppropbag), core::mem::transmute_copy(&fcleardirty), core::mem::transmute_copy(&fsaveallproperties)).into() @@ -30016,7 +30016,7 @@ pub struct IResourceManager_Vtbl { pub RegisterGroup: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, i32, *const i32, *mut i32) -> windows_core::HRESULT, pub RequestResource: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub NotifyAcquire: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut core::ffi::c_void, windows_core::HRESULT) -> windows_core::HRESULT, - pub NotifyRelease: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub NotifyRelease: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub CancelRequest: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub ReleaseFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -30026,7 +30026,7 @@ pub trait IResourceManager_Impl: windows_core::IUnknownImpl { fn RegisterGroup(&self, pname: &windows_core::PCWSTR, cresource: i32, paltokens: *const i32) -> windows_core::Result; fn RequestResource(&self, idresource: i32, pfocusobject: windows_core::Ref, pconsumer: windows_core::Ref) -> windows_core::Result<()>; fn NotifyAcquire(&self, idresource: i32, pconsumer: windows_core::Ref, hr: windows_core::HRESULT) -> windows_core::Result<()>; - fn NotifyRelease(&self, idresource: i32, pconsumer: windows_core::Ref, bstillwant: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn NotifyRelease(&self, idresource: i32, pconsumer: windows_core::Ref, bstillwant: windows_core::BOOL) -> windows_core::Result<()>; fn CancelRequest(&self, idresource: i32, pconsumer: windows_core::Ref) -> windows_core::Result<()>; fn SetFocus(&self, pfocusobject: windows_core::Ref) -> windows_core::Result<()>; fn ReleaseFocus(&self, pfocusobject: windows_core::Ref) -> windows_core::Result<()>; @@ -30069,7 +30069,7 @@ impl IResourceManager_Vtbl { IResourceManager_Impl::NotifyAcquire(this, core::mem::transmute_copy(&idresource), core::mem::transmute_copy(&pconsumer), core::mem::transmute_copy(&hr)).into() } } - unsafe extern "system" fn NotifyRelease(this: *mut core::ffi::c_void, idresource: i32, pconsumer: *mut core::ffi::c_void, bstillwant: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn NotifyRelease(this: *mut core::ffi::c_void, idresource: i32, pconsumer: *mut core::ffi::c_void, bstillwant: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IResourceManager_Impl::NotifyRelease(this, core::mem::transmute_copy(&idresource), core::mem::transmute_copy(&pconsumer), core::mem::transmute_copy(&bstillwant)).into() @@ -30150,14 +30150,14 @@ impl ISeekingPassThru { #[repr(C)] pub struct ISeekingPassThru_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Init: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub Init: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ISeekingPassThru_Impl: windows_core::IUnknownImpl { - fn Init(&self, bsupportrendering: super::super::Foundation::BOOL, ppin: windows_core::Ref) -> windows_core::Result<()>; + fn Init(&self, bsupportrendering: windows_core::BOOL, ppin: windows_core::Ref) -> windows_core::Result<()>; } impl ISeekingPassThru_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, bsupportrendering: super::super::Foundation::BOOL, ppin: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, bsupportrendering: windows_core::BOOL, ppin: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISeekingPassThru_Impl::Init(this, core::mem::transmute_copy(&bsupportrendering), core::mem::transmute_copy(&ppin)).into() @@ -31109,7 +31109,7 @@ pub struct IVMRImageCompositor_Vtbl { #[cfg(not(feature = "Win32_Graphics_DirectDraw"))] TermCompositionTarget: usize, #[cfg(feature = "Win32_Media_MediaFoundation")] - pub SetStreamMediaType: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::MediaFoundation::AM_MEDIA_TYPE, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetStreamMediaType: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::MediaFoundation::AM_MEDIA_TYPE, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Media_MediaFoundation"))] SetStreamMediaType: usize, #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Media_MediaFoundation"))] @@ -31121,7 +31121,7 @@ pub struct IVMRImageCompositor_Vtbl { pub trait IVMRImageCompositor_Impl: windows_core::IUnknownImpl { fn InitCompositionTarget(&self, pd3ddevice: windows_core::Ref, pddsrendertarget: windows_core::Ref) -> windows_core::Result<()>; fn TermCompositionTarget(&self, pd3ddevice: windows_core::Ref, pddsrendertarget: windows_core::Ref) -> windows_core::Result<()>; - fn SetStreamMediaType(&self, dwstrmid: u32, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE, ftexture: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetStreamMediaType(&self, dwstrmid: u32, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE, ftexture: windows_core::BOOL) -> windows_core::Result<()>; fn CompositeImage(&self, pd3ddevice: windows_core::Ref, pddsrendertarget: windows_core::Ref, pmtrendertarget: *const super::MediaFoundation::AM_MEDIA_TYPE, rtstart: i64, rtend: i64, dwclrbkgnd: u32, pvideostreaminfo: *const VMRVIDEOSTREAMINFO, cstreams: u32) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Media_MediaFoundation"))] @@ -31139,7 +31139,7 @@ impl IVMRImageCompositor_Vtbl { IVMRImageCompositor_Impl::TermCompositionTarget(this, core::mem::transmute_copy(&pd3ddevice), core::mem::transmute_copy(&pddsrendertarget)).into() } } - unsafe extern "system" fn SetStreamMediaType(this: *mut core::ffi::c_void, dwstrmid: u32, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE, ftexture: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetStreamMediaType(this: *mut core::ffi::c_void, dwstrmid: u32, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE, ftexture: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImageCompositor_Impl::SetStreamMediaType(this, core::mem::transmute_copy(&dwstrmid), core::mem::transmute_copy(&pmt), core::mem::transmute_copy(&ftexture)).into() @@ -31199,7 +31199,7 @@ pub struct IVMRImageCompositor9_Vtbl { pub InitCompositionDevice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub TermCompositionDevice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_Media_MediaFoundation")] - pub SetStreamMediaType: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::MediaFoundation::AM_MEDIA_TYPE, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetStreamMediaType: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::MediaFoundation::AM_MEDIA_TYPE, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Media_MediaFoundation"))] SetStreamMediaType: usize, #[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Media_MediaFoundation"))] @@ -31211,7 +31211,7 @@ pub struct IVMRImageCompositor9_Vtbl { pub trait IVMRImageCompositor9_Impl: windows_core::IUnknownImpl { fn InitCompositionDevice(&self, pd3ddevice: windows_core::Ref) -> windows_core::Result<()>; fn TermCompositionDevice(&self, pd3ddevice: windows_core::Ref) -> windows_core::Result<()>; - fn SetStreamMediaType(&self, dwstrmid: u32, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE, ftexture: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetStreamMediaType(&self, dwstrmid: u32, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE, ftexture: windows_core::BOOL) -> windows_core::Result<()>; fn CompositeImage(&self, pd3ddevice: windows_core::Ref, pddsrendertarget: windows_core::Ref, pmtrendertarget: *const super::MediaFoundation::AM_MEDIA_TYPE, rtstart: i64, rtend: i64, dwclrbkgnd: u32, pvideostreaminfo: *const VMR9VideoStreamInfo, cstreams: u32) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Media_MediaFoundation"))] @@ -31229,7 +31229,7 @@ impl IVMRImageCompositor9_Vtbl { IVMRImageCompositor9_Impl::TermCompositionDevice(this, core::mem::transmute_copy(&pd3ddevice)).into() } } - unsafe extern "system" fn SetStreamMediaType(this: *mut core::ffi::c_void, dwstrmid: u32, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE, ftexture: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetStreamMediaType(this: *mut core::ffi::c_void, dwstrmid: u32, pmt: *const super::MediaFoundation::AM_MEDIA_TYPE, ftexture: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRImageCompositor9_Impl::SetStreamMediaType(this, core::mem::transmute_copy(&dwstrmid), core::mem::transmute_copy(&pmt), core::mem::transmute_copy(&ftexture)).into() @@ -32929,7 +32929,7 @@ impl IVMRVideoStreamControl { pub unsafe fn SetStreamActiveState(&self, factive: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetStreamActiveState)(windows_core::Interface::as_raw(self), factive.into()).ok() } } - pub unsafe fn GetStreamActiveState(&self) -> windows_core::Result { + pub unsafe fn GetStreamActiveState(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStreamActiveState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -32947,15 +32947,15 @@ pub struct IVMRVideoStreamControl_Vtbl { pub GetColorKey: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Graphics::DirectDraw::DDCOLORKEY) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_DirectDraw"))] GetColorKey: usize, - pub SetStreamActiveState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetStreamActiveState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetStreamActiveState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetStreamActiveState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub trait IVMRVideoStreamControl_Impl: windows_core::IUnknownImpl { fn SetColorKey(&self, lpclrkey: *const super::super::Graphics::DirectDraw::DDCOLORKEY) -> windows_core::Result<()>; fn GetColorKey(&self) -> windows_core::Result; - fn SetStreamActiveState(&self, factive: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetStreamActiveState(&self) -> windows_core::Result; + fn SetStreamActiveState(&self, factive: windows_core::BOOL) -> windows_core::Result<()>; + fn GetStreamActiveState(&self) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_DirectDraw")] impl IVMRVideoStreamControl_Vtbl { @@ -32978,13 +32978,13 @@ impl IVMRVideoStreamControl_Vtbl { } } } - unsafe extern "system" fn SetStreamActiveState(this: *mut core::ffi::c_void, factive: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetStreamActiveState(this: *mut core::ffi::c_void, factive: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRVideoStreamControl_Impl::SetStreamActiveState(this, core::mem::transmute_copy(&factive)).into() } } - unsafe extern "system" fn GetStreamActiveState(this: *mut core::ffi::c_void, lpfactive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetStreamActiveState(this: *mut core::ffi::c_void, lpfactive: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRVideoStreamControl_Impl::GetStreamActiveState(this) { @@ -33016,7 +33016,7 @@ impl IVMRVideoStreamControl9 { pub unsafe fn SetStreamActiveState(&self, factive: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetStreamActiveState)(windows_core::Interface::as_raw(self), factive.into()).ok() } } - pub unsafe fn GetStreamActiveState(&self) -> windows_core::Result { + pub unsafe fn GetStreamActiveState(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStreamActiveState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -33026,22 +33026,22 @@ impl IVMRVideoStreamControl9 { #[repr(C)] pub struct IVMRVideoStreamControl9_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetStreamActiveState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetStreamActiveState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetStreamActiveState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetStreamActiveState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IVMRVideoStreamControl9_Impl: windows_core::IUnknownImpl { - fn SetStreamActiveState(&self, factive: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetStreamActiveState(&self) -> windows_core::Result; + fn SetStreamActiveState(&self, factive: windows_core::BOOL) -> windows_core::Result<()>; + fn GetStreamActiveState(&self) -> windows_core::Result; } impl IVMRVideoStreamControl9_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetStreamActiveState(this: *mut core::ffi::c_void, factive: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetStreamActiveState(this: *mut core::ffi::c_void, factive: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVMRVideoStreamControl9_Impl::SetStreamActiveState(this, core::mem::transmute_copy(&factive)).into() } } - unsafe extern "system" fn GetStreamActiveState(this: *mut core::ffi::c_void, lpfactive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetStreamActiveState(this: *mut core::ffi::c_void, lpfactive: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVMRVideoStreamControl9_Impl::GetStreamActiveState(this) { @@ -33763,7 +33763,7 @@ impl core::ops::Deref for IVPConfig { } windows_core::imp::interface_hierarchy!(IVPConfig, windows_core::IUnknown, IVPBaseConfig); impl IVPConfig { - pub unsafe fn IsVPDecimationAllowed(&self, pbisdecimationallowed: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn IsVPDecimationAllowed(&self, pbisdecimationallowed: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsVPDecimationAllowed)(windows_core::Interface::as_raw(self), pbisdecimationallowed as _).ok() } } pub unsafe fn SetScalingFactors(&self, pamvpsize: *mut AMVPSIZE) -> windows_core::Result<()> { @@ -33773,18 +33773,18 @@ impl IVPConfig { #[repr(C)] pub struct IVPConfig_Vtbl { pub base__: IVPBaseConfig_Vtbl, - pub IsVPDecimationAllowed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsVPDecimationAllowed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetScalingFactors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AMVPSIZE) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Graphics_DirectDraw")] pub trait IVPConfig_Impl: IVPBaseConfig_Impl { - fn IsVPDecimationAllowed(&self, pbisdecimationallowed: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsVPDecimationAllowed(&self, pbisdecimationallowed: *mut windows_core::BOOL) -> windows_core::Result<()>; fn SetScalingFactors(&self, pamvpsize: *mut AMVPSIZE) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_DirectDraw")] impl IVPConfig_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsVPDecimationAllowed(this: *mut core::ffi::c_void, pbisdecimationallowed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsVPDecimationAllowed(this: *mut core::ffi::c_void, pbisdecimationallowed: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPConfig_Impl::IsVPDecimationAllowed(this, core::mem::transmute_copy(&pbisdecimationallowed)).into() @@ -33925,29 +33925,29 @@ impl IVPNotify2 { pub unsafe fn SetVPSyncMaster(&self, bvpsyncmaster: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetVPSyncMaster)(windows_core::Interface::as_raw(self), bvpsyncmaster.into()).ok() } } - pub unsafe fn GetVPSyncMaster(&self, pbvpsyncmaster: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetVPSyncMaster(&self, pbvpsyncmaster: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetVPSyncMaster)(windows_core::Interface::as_raw(self), pbvpsyncmaster as _).ok() } } } #[repr(C)] pub struct IVPNotify2_Vtbl { pub base__: IVPNotify_Vtbl, - pub SetVPSyncMaster: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetVPSyncMaster: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetVPSyncMaster: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetVPSyncMaster: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IVPNotify2_Impl: IVPNotify_Impl { - fn SetVPSyncMaster(&self, bvpsyncmaster: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetVPSyncMaster(&self, pbvpsyncmaster: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetVPSyncMaster(&self, bvpsyncmaster: windows_core::BOOL) -> windows_core::Result<()>; + fn GetVPSyncMaster(&self, pbvpsyncmaster: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IVPNotify2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetVPSyncMaster(this: *mut core::ffi::c_void, bvpsyncmaster: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetVPSyncMaster(this: *mut core::ffi::c_void, bvpsyncmaster: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPNotify2_Impl::SetVPSyncMaster(this, core::mem::transmute_copy(&bvpsyncmaster)).into() } } - unsafe extern "system" fn GetVPSyncMaster(this: *mut core::ffi::c_void, pbvpsyncmaster: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetVPSyncMaster(this: *mut core::ffi::c_void, pbvpsyncmaster: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVPNotify2_Impl::GetVPSyncMaster(this, core::mem::transmute_copy(&pbvpsyncmaster)).into() @@ -36000,10 +36000,10 @@ impl Default for REGFILTER2_0_1 { #[derive(Clone, Copy, Debug, PartialEq)] pub struct REGFILTERPINS { pub strName: windows_core::PWSTR, - pub bRendered: super::super::Foundation::BOOL, - pub bOutput: super::super::Foundation::BOOL, - pub bZero: super::super::Foundation::BOOL, - pub bMany: super::super::Foundation::BOOL, + pub bRendered: windows_core::BOOL, + pub bOutput: windows_core::BOOL, + pub bZero: windows_core::BOOL, + pub bMany: windows_core::BOOL, pub clsConnectsToFilter: *const windows_core::GUID, pub strConnectsToPin: windows_core::PCWSTR, pub nMediaTypes: u32, @@ -36957,7 +36957,7 @@ pub struct VMRVideoDesc { pub dwSize: u32, pub dwSampleWidth: u32, pub dwSampleHeight: u32, - pub SingleFieldPerSample: super::super::Foundation::BOOL, + pub SingleFieldPerSample: windows_core::BOOL, pub dwFourCC: u32, pub InputSampleFreq: VMRFrequency, pub OutputFrameFreq: VMRFrequency, 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 b1f1a53311..2cd3371d04 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DxMediaObjects/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DxMediaObjects/mod.rs @@ -95,8 +95,8 @@ pub const DMO_INPUT_STREAMF_WHOLE_SAMPLES: _DMO_INPUT_STREAM_INFO_FLAGS = _DMO_I pub struct DMO_MEDIA_TYPE { pub majortype: windows_core::GUID, pub subtype: windows_core::GUID, - pub bFixedSizeSamples: super::super::Foundation::BOOL, - pub bTemporalCompression: super::super::Foundation::BOOL, + pub bFixedSizeSamples: windows_core::BOOL, + pub bTemporalCompression: windows_core::BOOL, pub lSampleSize: u32, pub formattype: windows_core::GUID, pub pUnk: core::mem::ManuallyDrop>, 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 77c92876cc..fde55a51c8 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs @@ -138,7 +138,7 @@ pub const AUDIOPOSTURE_ORIENTATION_ROTATED90DEGREESCOUNTERCLOCKWISE: AUDIOPOSTUR #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct AUDIORESOURCEMANAGEMENT_RESOURCEGROUP { - pub ResourceGroupAcquired: super::super::Foundation::BOOL, + pub ResourceGroupAcquired: windows_core::BOOL, pub ResourceGroupName: [u16; 256], } impl Default for AUDIORESOURCEMANAGEMENT_RESOURCEGROUP { @@ -858,7 +858,7 @@ impl IKsDataTypeHandler { pub struct IKsDataTypeHandler_Vtbl { pub base__: windows_core::IUnknown_Vtbl, #[cfg(feature = "Win32_Media_DirectShow")] - pub KsCompleteIoOperation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, KSIOOPERATION, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub KsCompleteIoOperation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, KSIOOPERATION, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Media_DirectShow"))] KsCompleteIoOperation: usize, pub KsIsMediaTypeInRanges: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void) -> windows_core::HRESULT, @@ -874,7 +874,7 @@ pub struct IKsDataTypeHandler_Vtbl { } #[cfg(all(feature = "Win32_Media_DirectShow", feature = "Win32_Media_MediaFoundation"))] pub trait IKsDataTypeHandler_Impl: windows_core::IUnknownImpl { - fn KsCompleteIoOperation(&self, sample: windows_core::Ref, streamheader: *mut core::ffi::c_void, iooperation: KSIOOPERATION, cancelled: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn KsCompleteIoOperation(&self, sample: windows_core::Ref, streamheader: *mut core::ffi::c_void, iooperation: KSIOOPERATION, cancelled: windows_core::BOOL) -> windows_core::Result<()>; fn KsIsMediaTypeInRanges(&self, dataranges: *const core::ffi::c_void) -> windows_core::Result<()>; fn KsPrepareIoOperation(&self, sample: windows_core::Ref, streamheader: *mut core::ffi::c_void, iooperation: KSIOOPERATION) -> windows_core::Result<()>; fn KsQueryExtendedSize(&self) -> windows_core::Result; @@ -883,7 +883,7 @@ pub trait IKsDataTypeHandler_Impl: windows_core::IUnknownImpl { #[cfg(all(feature = "Win32_Media_DirectShow", feature = "Win32_Media_MediaFoundation"))] impl IKsDataTypeHandler_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn KsCompleteIoOperation(this: *mut core::ffi::c_void, sample: *mut core::ffi::c_void, streamheader: *mut core::ffi::c_void, iooperation: KSIOOPERATION, cancelled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn KsCompleteIoOperation(this: *mut core::ffi::c_void, sample: *mut core::ffi::c_void, streamheader: *mut core::ffi::c_void, iooperation: KSIOOPERATION, cancelled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsDataTypeHandler_Impl::KsCompleteIoOperation(this, core::mem::transmute_copy(&sample), core::mem::transmute_copy(&streamheader), core::mem::transmute_copy(&iooperation), core::mem::transmute_copy(&cancelled)).into() @@ -937,7 +937,7 @@ impl windows_core::RuntimeName for IKsDataTypeHandler {} windows_core::imp::define_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<()> { + pub unsafe fn IsFormatSupported(&self, pksformat: *mut KSDATAFORMAT, cbformat: u32, pbsupported: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsFormatSupported)(windows_core::Interface::as_raw(self), pksformat as _, cbformat, pbsupported as _).ok() } } pub unsafe fn GetDevicePreferredFormat(&self) -> windows_core::Result<*mut KSDATAFORMAT> { @@ -950,16 +950,16 @@ impl IKsFormatSupport { #[repr(C)] pub struct IKsFormatSupport_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsFormatSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut KSDATAFORMAT, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsFormatSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut KSDATAFORMAT, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetDevicePreferredFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut KSDATAFORMAT) -> windows_core::HRESULT, } pub trait IKsFormatSupport_Impl: windows_core::IUnknownImpl { - fn IsFormatSupported(&self, pksformat: *mut KSDATAFORMAT, cbformat: u32, pbsupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsFormatSupported(&self, pksformat: *mut KSDATAFORMAT, cbformat: u32, pbsupported: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetDevicePreferredFormat(&self) -> windows_core::Result<*mut KSDATAFORMAT>; } impl IKsFormatSupport_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsFormatSupported(this: *mut core::ffi::c_void, pksformat: *mut KSDATAFORMAT, cbformat: u32, pbsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsFormatSupported(this: *mut core::ffi::c_void, pksformat: *mut KSDATAFORMAT, cbformat: u32, pbsupported: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IKsFormatSupport_Impl::IsFormatSupported(this, core::mem::transmute_copy(&pksformat), core::mem::transmute_copy(&cbformat), core::mem::transmute_copy(&pbsupported)).into() @@ -2218,7 +2218,7 @@ pub const JACKDESC2_PRESENCE_DETECT_CAPABILITY: u32 = 1u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct KSAC3_ALTERNATE_AUDIO { - pub fStereo: super::super::Foundation::BOOL, + pub fStereo: windows_core::BOOL, pub DualMode: u32, } impl Default for KSAC3_ALTERNATE_AUDIO { @@ -2252,8 +2252,8 @@ impl Default for KSAC3_DIALOGUE_LEVEL { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct KSAC3_DOWNMIX { - pub fDownMix: super::super::Foundation::BOOL, - pub fDolbySurround: super::super::Foundation::BOOL, + pub fDownMix: windows_core::BOOL, + pub fDolbySurround: windows_core::BOOL, } impl Default for KSAC3_DOWNMIX { fn default() -> Self { @@ -2263,8 +2263,8 @@ impl Default for KSAC3_DOWNMIX { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct KSAC3_ERROR_CONCEALMENT { - pub fRepeatPreviousBlock: super::super::Foundation::BOOL, - pub fErrorInCurrentBlock: super::super::Foundation::BOOL, + pub fRepeatPreviousBlock: windows_core::BOOL, + pub fErrorInCurrentBlock: windows_core::BOOL, } impl Default for KSAC3_ERROR_CONCEALMENT { fn default() -> Self { @@ -2274,7 +2274,7 @@ impl Default for KSAC3_ERROR_CONCEALMENT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct KSAC3_ROOM_TYPE { - pub fLargeRoom: super::super::Foundation::BOOL, + pub fLargeRoom: windows_core::BOOL, } impl Default for KSAC3_ROOM_TYPE { fn default() -> Self { @@ -2567,8 +2567,8 @@ impl Default for KSAUDIO_CHANNEL_CONFIG { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct KSAUDIO_COPY_PROTECTION { - pub fCopyrighted: super::super::Foundation::BOOL, - pub fOriginal: super::super::Foundation::BOOL, + pub fCopyrighted: windows_core::BOOL, + pub fOriginal: windows_core::BOOL, } impl Default for KSAUDIO_COPY_PROTECTION { fn default() -> Self { @@ -2637,7 +2637,7 @@ impl Default for KSAUDIO_MIXCAP_TABLE { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct KSAUDIO_MIXLEVEL { - pub Mute: super::super::Foundation::BOOL, + pub Mute: windows_core::BOOL, pub Level: i32, } impl Default for KSAUDIO_MIXLEVEL { @@ -2648,7 +2648,7 @@ impl Default for KSAUDIO_MIXLEVEL { #[repr(C)] #[derive(Clone, Copy)] pub struct KSAUDIO_MIX_CAPS { - pub Mute: super::super::Foundation::BOOL, + pub Mute: windows_core::BOOL, pub Minimum: i32, pub Maximum: i32, pub Anonymous: KSAUDIO_MIX_CAPS_0, @@ -3963,9 +3963,9 @@ impl Default for KSDS3D_HRTF_INIT_MSG { pub struct KSDS3D_HRTF_PARAMS_MSG { pub Size: u32, pub Enabled: u32, - pub SwapChannels: super::super::Foundation::BOOL, - pub ZeroAzimuth: super::super::Foundation::BOOL, - pub CrossFadeOutput: super::super::Foundation::BOOL, + pub SwapChannels: windows_core::BOOL, + pub ZeroAzimuth: windows_core::BOOL, + pub CrossFadeOutput: windows_core::BOOL, pub FilterSize: u32, } impl Default for KSDS3D_HRTF_PARAMS_MSG { @@ -4416,7 +4416,7 @@ pub struct KSJACK_DESCRIPTION { pub GeoLocation: EPcxGeoLocation, pub GenLocation: EPcxGenLocation, pub PortConnection: EPxcPortConnection, - pub IsConnected: super::super::Foundation::BOOL, + pub IsConnected: windows_core::BOOL, } impl Default for KSJACK_DESCRIPTION { fn default() -> Self { @@ -4456,8 +4456,8 @@ pub struct KSJACK_SINK_INFORMATION { pub ManufacturerId: u16, pub ProductId: u16, pub AudioLatency: u16, - pub HDCPCapable: super::super::Foundation::BOOL, - pub AICapable: super::super::Foundation::BOOL, + pub HDCPCapable: windows_core::BOOL, + pub AICapable: windows_core::BOOL, pub SinkDescriptionLength: u8, pub SinkDescription: [u16; 32], pub PortId: super::super::Foundation::LUID, @@ -5385,9 +5385,9 @@ pub const KSPROPERTY_CAMERACONTROL_REGION_OF_INTEREST_PROPERTY_ID: KSPROPERTY_CA #[derive(Clone, Copy)] pub struct KSPROPERTY_CAMERACONTROL_REGION_OF_INTEREST_S { pub FocusRect: super::super::Foundation::RECT, - pub AutoFocusLock: super::super::Foundation::BOOL, - pub AutoExposureLock: super::super::Foundation::BOOL, - pub AutoWhitebalanceLock: super::super::Foundation::BOOL, + pub AutoFocusLock: windows_core::BOOL, + pub AutoExposureLock: windows_core::BOOL, + pub AutoWhitebalanceLock: windows_core::BOOL, pub Anonymous: KSPROPERTY_CAMERACONTROL_REGION_OF_INTEREST_S_0, } impl Default for KSPROPERTY_CAMERACONTROL_REGION_OF_INTEREST_S { @@ -5906,10 +5906,10 @@ pub const KSPROPERTY_NETWORKCAMERACONTROL_METADATA: KSPROPERTY_NETWORKCAMERACONT pub struct KSPROPERTY_NETWORKCAMERACONTROL_METADATA_INFO { pub MetadataItems: u32, pub Size: u32, - pub PTZStatus: super::super::Foundation::BOOL, - pub Events: super::super::Foundation::BOOL, - pub Analytics: super::super::Foundation::BOOL, - pub Reserved: super::super::Foundation::BOOL, + pub PTZStatus: windows_core::BOOL, + pub Events: windows_core::BOOL, + pub Analytics: windows_core::BOOL, + pub Reserved: windows_core::BOOL, } impl Default for KSPROPERTY_NETWORKCAMERACONTROL_METADATA_INFO { fn default() -> Self { @@ -6313,7 +6313,7 @@ pub const KSPROPERTY_TUNER_SCAN_CAPS: KSPROPERTY_TUNER = KSPROPERTY_TUNER(8i32); #[derive(Clone, Copy)] pub struct KSPROPERTY_TUNER_SCAN_CAPS_S { pub Property: KSIDENTIFIER, - pub fSupportsHardwareAssistedScanning: super::super::Foundation::BOOL, + pub fSupportsHardwareAssistedScanning: windows_core::BOOL, pub SupportedBroadcastStandards: u32, pub GUIDBucket: *mut core::ffi::c_void, pub lengthofBucket: u32, @@ -6342,7 +6342,7 @@ pub const KSPROPERTY_TUNER_STANDARD_MODE: KSPROPERTY_TUNER = KSPROPERTY_TUNER(10 #[derive(Clone, Copy)] pub struct KSPROPERTY_TUNER_STANDARD_MODE_S { pub Property: KSIDENTIFIER, - pub AutoDetect: super::super::Foundation::BOOL, + pub AutoDetect: windows_core::BOOL, } impl Default for KSPROPERTY_TUNER_STANDARD_MODE_S { fn default() -> Self { @@ -7050,7 +7050,7 @@ impl Default for KSRESOLUTION { pub struct KSRTAUDIO_BUFFER { pub BufferAddress: *mut core::ffi::c_void, pub ActualBufferSize: u32, - pub CallMemoryBarrier: super::super::Foundation::BOOL, + pub CallMemoryBarrier: windows_core::BOOL, } impl Default for KSRTAUDIO_BUFFER { fn default() -> Self { @@ -7062,7 +7062,7 @@ impl Default for KSRTAUDIO_BUFFER { pub struct KSRTAUDIO_BUFFER32 { pub BufferAddress: u32, pub ActualBufferSize: u32, - pub CallMemoryBarrier: super::super::Foundation::BOOL, + pub CallMemoryBarrier: windows_core::BOOL, } impl Default for KSRTAUDIO_BUFFER32 { fn default() -> Self { @@ -7125,7 +7125,7 @@ pub struct KSRTAUDIO_GETREADPACKET_INFO { pub PacketNumber: u32, pub Flags: u32, pub PerformanceCounterValue: u64, - pub MoreData: super::super::Foundation::BOOL, + pub MoreData: windows_core::BOOL, } impl Default for KSRTAUDIO_GETREADPACKET_INFO { fn default() -> Self { @@ -7580,9 +7580,9 @@ impl Default for KSVPSURFACEPARAMS { pub struct KSWAVETABLE_WAVE_DESC { pub Identifier: KSIDENTIFIER, pub Size: u32, - pub Looped: super::super::Foundation::BOOL, + pub Looped: windows_core::BOOL, pub LoopPoint: u32, - pub InROM: super::super::Foundation::BOOL, + pub InROM: windows_core::BOOL, pub Format: KSDATAFORMAT, } impl Default for KSWAVETABLE_WAVE_DESC { @@ -7687,11 +7687,11 @@ pub struct KS_AMVPDATAINFO { pub amvpDimInfo: KS_AMVPDIMINFO, pub dwPictAspectRatioX: u32, pub dwPictAspectRatioY: u32, - pub bEnableDoubleClock: super::super::Foundation::BOOL, - pub bEnableVACT: super::super::Foundation::BOOL, - pub bDataIsInterlaced: super::super::Foundation::BOOL, + pub bEnableDoubleClock: windows_core::BOOL, + pub bEnableVACT: windows_core::BOOL, + pub bDataIsInterlaced: windows_core::BOOL, pub lHalfLinesOdd: i32, - pub bFieldPolarityInverted: super::super::Foundation::BOOL, + pub bFieldPolarityInverted: windows_core::BOOL, pub dwNumLinesInVREF: u32, pub lHalfLinesEven: i32, pub dwReserved1: u32, @@ -8000,8 +8000,8 @@ impl Default for KS_DATARANGE_ANALOGVIDEO { #[derive(Clone, Copy)] pub struct KS_DATARANGE_H264_VIDEO { pub DataRange: KSDATAFORMAT, - pub bFixedSizeSamples: super::super::Foundation::BOOL, - pub bTemporalCompression: super::super::Foundation::BOOL, + pub bFixedSizeSamples: windows_core::BOOL, + pub bTemporalCompression: windows_core::BOOL, pub StreamDescriptionFlags: u32, pub MemoryAllocationFlags: u32, pub ConfigCaps: KS_VIDEO_STREAM_CONFIG_CAPS, @@ -8028,8 +8028,8 @@ impl Default for KS_DATARANGE_IMAGE { #[derive(Clone, Copy)] pub struct KS_DATARANGE_MPEG1_VIDEO { pub DataRange: KSDATAFORMAT, - pub bFixedSizeSamples: super::super::Foundation::BOOL, - pub bTemporalCompression: super::super::Foundation::BOOL, + pub bFixedSizeSamples: windows_core::BOOL, + pub bTemporalCompression: windows_core::BOOL, pub StreamDescriptionFlags: u32, pub MemoryAllocationFlags: u32, pub ConfigCaps: KS_VIDEO_STREAM_CONFIG_CAPS, @@ -8044,8 +8044,8 @@ impl Default for KS_DATARANGE_MPEG1_VIDEO { #[derive(Clone, Copy)] pub struct KS_DATARANGE_MPEG2_VIDEO { pub DataRange: KSDATAFORMAT, - pub bFixedSizeSamples: super::super::Foundation::BOOL, - pub bTemporalCompression: super::super::Foundation::BOOL, + pub bFixedSizeSamples: windows_core::BOOL, + pub bTemporalCompression: windows_core::BOOL, pub StreamDescriptionFlags: u32, pub MemoryAllocationFlags: u32, pub ConfigCaps: KS_VIDEO_STREAM_CONFIG_CAPS, @@ -8060,8 +8060,8 @@ impl Default for KS_DATARANGE_MPEG2_VIDEO { #[derive(Clone, Copy)] pub struct KS_DATARANGE_VIDEO { pub DataRange: KSDATAFORMAT, - pub bFixedSizeSamples: super::super::Foundation::BOOL, - pub bTemporalCompression: super::super::Foundation::BOOL, + pub bFixedSizeSamples: windows_core::BOOL, + pub bTemporalCompression: windows_core::BOOL, pub StreamDescriptionFlags: u32, pub MemoryAllocationFlags: u32, pub ConfigCaps: KS_VIDEO_STREAM_CONFIG_CAPS, @@ -8076,8 +8076,8 @@ impl Default for KS_DATARANGE_VIDEO { #[derive(Clone, Copy)] pub struct KS_DATARANGE_VIDEO2 { pub DataRange: KSDATAFORMAT, - pub bFixedSizeSamples: super::super::Foundation::BOOL, - pub bTemporalCompression: super::super::Foundation::BOOL, + pub bFixedSizeSamples: windows_core::BOOL, + pub bTemporalCompression: windows_core::BOOL, pub StreamDescriptionFlags: u32, pub MemoryAllocationFlags: u32, pub ConfigCaps: KS_VIDEO_STREAM_CONFIG_CAPS, @@ -8092,8 +8092,8 @@ impl Default for KS_DATARANGE_VIDEO2 { #[derive(Clone, Copy)] pub struct KS_DATARANGE_VIDEO_PALETTE { pub DataRange: KSDATAFORMAT, - pub bFixedSizeSamples: super::super::Foundation::BOOL, - pub bTemporalCompression: super::super::Foundation::BOOL, + pub bFixedSizeSamples: windows_core::BOOL, + pub bTemporalCompression: windows_core::BOOL, pub StreamDescriptionFlags: u32, pub MemoryAllocationFlags: u32, pub ConfigCaps: KS_VIDEO_STREAM_CONFIG_CAPS, @@ -8108,8 +8108,8 @@ impl Default for KS_DATARANGE_VIDEO_PALETTE { #[derive(Clone, Copy)] pub struct KS_DATARANGE_VIDEO_VBI { pub DataRange: KSDATAFORMAT, - pub bFixedSizeSamples: super::super::Foundation::BOOL, - pub bTemporalCompression: super::super::Foundation::BOOL, + pub bFixedSizeSamples: windows_core::BOOL, + pub bTemporalCompression: windows_core::BOOL, pub StreamDescriptionFlags: u32, pub MemoryAllocationFlags: u32, pub ConfigCaps: KS_VIDEO_STREAM_CONFIG_CAPS, @@ -8844,9 +8844,9 @@ pub const MAX_WST_VBI_LINES_PER_FIELD: u32 = 17u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct MEDIUM_INFO { - pub MediaPresent: super::super::Foundation::BOOL, + pub MediaPresent: windows_core::BOOL, pub MediaType: u32, - pub RecordInhibit: super::super::Foundation::BOOL, + pub RecordInhibit: windows_core::BOOL, } impl Default for MEDIUM_INFO { fn default() -> Self { 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 4ebb53dfa6..f5c08fe5d7 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs @@ -123,8 +123,8 @@ where } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn MFCalculateBitmapImageSize(pbmih: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, cbbufsize: u32, pcbimagesize: *mut u32, pbknown: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { - windows_targets::link!("mfplat.dll" "system" fn MFCalculateBitmapImageSize(pbmih : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, cbbufsize : u32, pcbimagesize : *mut u32, pbknown : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn MFCalculateBitmapImageSize(pbmih: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, cbbufsize: u32, pcbimagesize: *mut u32, pbknown: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { + windows_targets::link!("mfplat.dll" "system" fn MFCalculateBitmapImageSize(pbmih : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, cbbufsize : u32, pcbimagesize : *mut u32, pbknown : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { MFCalculateBitmapImageSize(pbmih, cbbufsize, pcbimagesize as _, pbknown.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -149,24 +149,24 @@ pub unsafe fn MFCancelWorkItem(key: u64) -> windows_core::Result<()> { unsafe { MFCancelWorkItem(key).ok() } } #[inline] -pub unsafe fn MFCombineSamples(psample: P0, psampletoadd: P1, dwmaxmergeddurationinms: u32) -> windows_core::Result +pub unsafe fn MFCombineSamples(psample: P0, psampletoadd: P1, dwmaxmergeddurationinms: u32) -> windows_core::Result where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("mfplat.dll" "system" fn MFCombineSamples(psample : * mut core::ffi::c_void, psampletoadd : * mut core::ffi::c_void, dwmaxmergeddurationinms : u32, pmerged : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("mfplat.dll" "system" fn MFCombineSamples(psample : * mut core::ffi::c_void, psampletoadd : * mut core::ffi::c_void, dwmaxmergeddurationinms : u32, pmerged : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); MFCombineSamples(psample.param().abi(), psampletoadd.param().abi(), dwmaxmergeddurationinms, &mut result__).map(|| core::mem::transmute(result__)) } } #[inline] -pub unsafe fn MFCompareFullToPartialMediaType(pmftypefull: P0, pmftypepartial: P1) -> super::super::Foundation::BOOL +pub unsafe fn MFCompareFullToPartialMediaType(pmftypefull: P0, pmftypepartial: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("mfplat.dll" "system" fn MFCompareFullToPartialMediaType(pmftypefull : * mut core::ffi::c_void, pmftypepartial : * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("mfplat.dll" "system" fn MFCompareFullToPartialMediaType(pmftypefull : * mut core::ffi::c_void, pmftypepartial : * mut core::ffi::c_void) -> windows_core::BOOL); unsafe { MFCompareFullToPartialMediaType(pmftypefull.param().abi(), pmftypepartial.param().abi()) } } #[inline] @@ -196,7 +196,7 @@ pub unsafe fn MFCopyImage(pdest: *mut u8, ldeststride: i32, psrc: *const u8, lsr } #[inline] pub unsafe fn MFCreate2DMediaBuffer(dwwidth: u32, dwheight: u32, dwfourcc: u32, fbottomup: bool) -> windows_core::Result { - windows_targets::link!("mfplat.dll" "system" fn MFCreate2DMediaBuffer(dwwidth : u32, dwheight : u32, dwfourcc : u32, fbottomup : super::super::Foundation:: BOOL, ppbuffer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("mfplat.dll" "system" fn MFCreate2DMediaBuffer(dwwidth : u32, dwheight : u32, dwfourcc : u32, fbottomup : windows_core::BOOL, ppbuffer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); MFCreate2DMediaBuffer(dwwidth, dwheight, dwfourcc, fbottomup.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -523,7 +523,7 @@ pub unsafe fn MFCreateDXGISurfaceBuffer(riid: *const windows_core::GUID, pun where P1: windows_core::Param, { - windows_targets::link!("mfplat.dll" "system" fn MFCreateDXGISurfaceBuffer(riid : *const windows_core::GUID, punksurface : * mut core::ffi::c_void, usubresourceindex : u32, fbottomupwhenlinear : super::super::Foundation:: BOOL, ppbuffer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("mfplat.dll" "system" fn MFCreateDXGISurfaceBuffer(riid : *const windows_core::GUID, punksurface : * mut core::ffi::c_void, usubresourceindex : u32, fbottomupwhenlinear : windows_core::BOOL, ppbuffer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); MFCreateDXGISurfaceBuffer(riid, punksurface.param().abi(), usubresourceindex, fbottomupwhenlinear.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -534,7 +534,7 @@ pub unsafe fn MFCreateDXSurfaceBuffer(riid: *const windows_core::GUID, punks where P1: windows_core::Param, { - windows_targets::link!("mfplat.dll" "system" fn MFCreateDXSurfaceBuffer(riid : *const windows_core::GUID, punksurface : * mut core::ffi::c_void, fbottomupwhenlinear : super::super::Foundation:: BOOL, ppbuffer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("mfplat.dll" "system" fn MFCreateDXSurfaceBuffer(riid : *const windows_core::GUID, punksurface : * mut core::ffi::c_void, fbottomupwhenlinear : windows_core::BOOL, ppbuffer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); MFCreateDXSurfaceBuffer(riid, punksurface.param().abi(), fbottomupwhenlinear.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1592,7 +1592,7 @@ pub unsafe fn MFGetTopoNodeCurrentType(pnode: P0, dwstreamindex: u32, foutpu where P0: windows_core::Param, { - windows_targets::link!("mf.dll" "system" fn MFGetTopoNodeCurrentType(pnode : * mut core::ffi::c_void, dwstreamindex : u32, foutput : super::super::Foundation:: BOOL, pptype : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("mf.dll" "system" fn MFGetTopoNodeCurrentType(pnode : * mut core::ffi::c_void, dwstreamindex : u32, foutput : windows_core::BOOL, pptype : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); MFGetTopoNodeCurrentType(pnode.param().abi(), dwstreamindex, foutput.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1733,21 +1733,21 @@ where unsafe { MFInvokeCallback(pasyncresult.param().abi()).ok() } } #[inline] -pub unsafe fn MFIsContentProtectionDeviceSupported(protectionsystemid: *const windows_core::GUID) -> windows_core::Result { - windows_targets::link!("mfplat.dll" "system" fn MFIsContentProtectionDeviceSupported(protectionsystemid : *const windows_core::GUID, issupported : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn MFIsContentProtectionDeviceSupported(protectionsystemid: *const windows_core::GUID) -> windows_core::Result { + windows_targets::link!("mfplat.dll" "system" fn MFIsContentProtectionDeviceSupported(protectionsystemid : *const windows_core::GUID, issupported : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); MFIsContentProtectionDeviceSupported(protectionsystemid, &mut result__).map(|| core::mem::transmute(result__)) } } #[inline] -pub unsafe fn MFIsFormatYUV(format: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("evr.dll" "system" fn MFIsFormatYUV(format : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn MFIsFormatYUV(format: u32) -> windows_core::BOOL { + windows_targets::link!("evr.dll" "system" fn MFIsFormatYUV(format : u32) -> windows_core::BOOL); unsafe { MFIsFormatYUV(format) } } #[inline] -pub unsafe fn MFIsVirtualCameraTypeSupported(r#type: MFVirtualCameraType) -> windows_core::Result { - windows_targets::link!("mfsensorgroup.dll" "system" fn MFIsVirtualCameraTypeSupported(r#type : MFVirtualCameraType, supported : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn MFIsVirtualCameraTypeSupported(r#type: MFVirtualCameraType) -> windows_core::Result { + windows_targets::link!("mfsensorgroup.dll" "system" fn MFIsVirtualCameraTypeSupported(r#type : MFVirtualCameraType, supported : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); MFIsVirtualCameraTypeSupported(r#type, &mut result__).map(|| core::mem::transmute(result__)) @@ -1805,7 +1805,7 @@ where P0: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("mfplay.dll" "system" fn MFPCreateMediaPlayer(pwszurl : windows_core::PCWSTR, fstartplayback : super::super::Foundation:: BOOL, creationoptions : MFP_CREATION_OPTIONS, pcallback : * mut core::ffi::c_void, hwnd : super::super::Foundation:: HWND, ppmediaplayer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("mfplay.dll" "system" fn MFPCreateMediaPlayer(pwszurl : windows_core::PCWSTR, fstartplayback : windows_core::BOOL, creationoptions : MFP_CREATION_OPTIONS, pcallback : * mut core::ffi::c_void, hwnd : super::super::Foundation:: HWND, ppmediaplayer : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { MFPCreateMediaPlayer(pwszurl.param().abi(), fstartplayback.into(), creationoptions, pcallback.param().abi(), hwnd.unwrap_or(core::mem::zeroed()) as _, ppmediaplayer.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2164,8 +2164,8 @@ pub const AMPROPSETID_Pin: windows_core::GUID = windows_core::GUID::from_u128(0x pub struct AM_MEDIA_TYPE { pub majortype: windows_core::GUID, pub subtype: windows_core::GUID, - pub bFixedSizeSamples: super::super::Foundation::BOOL, - pub bTemporalCompression: super::super::Foundation::BOOL, + pub bFixedSizeSamples: windows_core::BOOL, + pub bTemporalCompression: windows_core::BOOL, pub lSampleSize: u32, pub formattype: windows_core::GUID, pub pUnk: core::mem::ManuallyDrop>, @@ -2915,7 +2915,7 @@ pub const D3D12_BITSTREAM_ENCRYPTION_TYPE_NONE: D3D12_BITSTREAM_ENCRYPTION_TYPE #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_VIDEO_ARCHITECTURE { - pub IOCoherent: super::super::Foundation::BOOL, + pub IOCoherent: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_VIDEO_ARCHITECTURE { fn default() -> Self { @@ -2941,7 +2941,7 @@ impl Default for D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE1 { pub VideoDecoderHeapDesc: D3D12_VIDEO_DECODER_HEAP_DESC, - pub Protected: super::super::Foundation::BOOL, + pub Protected: windows_core::BOOL, pub MemoryPoolL0Size: u64, pub MemoryPoolL1Size: u64, } @@ -3077,7 +3077,7 @@ impl Default for D3D12_FEATURE_DATA_VIDEO_DECODE_SUPPORT { pub struct D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC { pub NodeIndex: u32, pub Codec: D3D12_VIDEO_ENCODER_CODEC, - pub IsSupported: super::super::Foundation::BOOL, + pub IsSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC { fn default() -> Self { @@ -3090,7 +3090,7 @@ pub struct D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT { pub NodeIndex: u32, pub Codec: D3D12_VIDEO_ENCODER_CODEC, pub Profile: D3D12_VIDEO_ENCODER_PROFILE_DESC, - pub IsSupported: super::super::Foundation::BOOL, + pub IsSupported: windows_core::BOOL, pub CodecSupportLimits: D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT, } impl Default for D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT { @@ -3104,7 +3104,7 @@ pub struct D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT { pub NodeIndex: u32, pub Codec: D3D12_VIDEO_ENCODER_CODEC, pub Profile: D3D12_VIDEO_ENCODER_PROFILE_DESC, - pub IsSupported: super::super::Foundation::BOOL, + pub IsSupported: windows_core::BOOL, pub PictureSupport: D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT, } impl Default for D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT { @@ -3122,7 +3122,7 @@ pub struct D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_CONFIG { pub SubregionMode: D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE, pub FrameResolution: D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC, pub CodecSupport: D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_CONFIG_SUPPORT, - pub IsSupported: super::super::Foundation::BOOL, + pub IsSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_CONFIG { fn default() -> Self { @@ -3137,7 +3137,7 @@ pub struct D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE { pub Profile: D3D12_VIDEO_ENCODER_PROFILE_DESC, pub Level: D3D12_VIDEO_ENCODER_LEVEL_SETTING, pub SubregionMode: D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE, - pub IsSupported: super::super::Foundation::BOOL, + pub IsSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE { fn default() -> Self { @@ -3148,7 +3148,7 @@ impl Default for D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE { #[derive(Clone, Copy)] pub struct D3D12_FEATURE_DATA_VIDEO_ENCODER_HEAP_SIZE { pub HeapDesc: D3D12_VIDEO_ENCODER_HEAP_DESC, - pub IsSupported: super::super::Foundation::BOOL, + pub IsSupported: windows_core::BOOL, pub MemoryPoolL0Size: u64, pub MemoryPoolL1Size: u64, } @@ -3165,7 +3165,7 @@ pub struct D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMAT { pub Codec: D3D12_VIDEO_ENCODER_CODEC, pub Profile: D3D12_VIDEO_ENCODER_PROFILE_DESC, pub Format: super::super::Graphics::Dxgi::Common::DXGI_FORMAT, - pub IsSupported: super::super::Foundation::BOOL, + pub IsSupported: windows_core::BOOL, } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl Default for D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMAT { @@ -3181,7 +3181,7 @@ pub struct D3D12_FEATURE_DATA_VIDEO_ENCODER_INTRA_REFRESH_MODE { pub Profile: D3D12_VIDEO_ENCODER_PROFILE_DESC, pub Level: D3D12_VIDEO_ENCODER_LEVEL_SETTING, pub IntraRefreshMode: D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE, - pub IsSupported: super::super::Foundation::BOOL, + pub IsSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_VIDEO_ENCODER_INTRA_REFRESH_MODE { fn default() -> Self { @@ -3194,7 +3194,7 @@ pub struct D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION { pub NodeIndex: u32, pub Codec: D3D12_VIDEO_ENCODER_CODEC, pub ResolutionRatiosCount: u32, - pub IsSupported: super::super::Foundation::BOOL, + pub IsSupported: windows_core::BOOL, pub MinResolutionSupported: D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC, pub MaxResolutionSupported: D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC, pub ResolutionWidthMultipleRequirement: u32, @@ -3224,7 +3224,7 @@ pub struct D3D12_FEATURE_DATA_VIDEO_ENCODER_PROFILE_LEVEL { pub NodeIndex: u32, pub Codec: D3D12_VIDEO_ENCODER_CODEC, pub Profile: D3D12_VIDEO_ENCODER_PROFILE_DESC, - pub IsSupported: super::super::Foundation::BOOL, + pub IsSupported: windows_core::BOOL, pub MinSupportedLevel: D3D12_VIDEO_ENCODER_LEVEL_SETTING, pub MaxSupportedLevel: D3D12_VIDEO_ENCODER_LEVEL_SETTING, } @@ -3239,7 +3239,7 @@ pub struct D3D12_FEATURE_DATA_VIDEO_ENCODER_RATE_CONTROL_MODE { pub NodeIndex: u32, pub Codec: D3D12_VIDEO_ENCODER_CODEC, pub RateControlMode: D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE, - pub IsSupported: super::super::Foundation::BOOL, + pub IsSupported: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_VIDEO_ENCODER_RATE_CONTROL_MODE { fn default() -> Self { @@ -3268,7 +3268,7 @@ pub struct D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOURCE_REQUIREMENTS { pub Profile: D3D12_VIDEO_ENCODER_PROFILE_DESC, pub InputFormat: super::super::Graphics::Dxgi::Common::DXGI_FORMAT, pub PictureTargetResolution: D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC, - pub IsSupported: super::super::Foundation::BOOL, + pub IsSupported: windows_core::BOOL, pub CompressedBitstreamBufferAccessAlignment: u32, pub EncoderMetadataBufferAccessAlignment: u32, pub MaxEncoderOutputMetadataBufferSize: u32, @@ -3420,9 +3420,9 @@ impl Default for D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SUPPORT { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_FEATURE_DATA_VIDEO_FEATURE_AREA_SUPPORT { pub NodeIndex: u32, - pub VideoDecodeSupport: super::super::Foundation::BOOL, - pub VideoProcessSupport: super::super::Foundation::BOOL, - pub VideoEncodeSupport: super::super::Foundation::BOOL, + pub VideoDecodeSupport: windows_core::BOOL, + pub VideoProcessSupport: windows_core::BOOL, + pub VideoEncodeSupport: windows_core::BOOL, } impl Default for D3D12_FEATURE_DATA_VIDEO_FEATURE_AREA_SUPPORT { fn default() -> Self { @@ -3465,7 +3465,7 @@ pub struct D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_SIZE { pub BlockSize: D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE, pub Precision: D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION, pub SizeRange: D3D12_VIDEO_SIZE_RANGE, - pub Protected: super::super::Foundation::BOOL, + pub Protected: windows_core::BOOL, pub MotionVectorHeapMemoryPoolL0Size: u64, pub MotionVectorHeapMemoryPoolL1Size: u64, pub MotionEstimatorMemoryPoolL0Size: u64, @@ -3502,7 +3502,7 @@ pub struct D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE1 { pub pOutputStreamDesc: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC, pub NumInputStreamDescs: u32, pub pInputStreamDescs: *const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC, - pub Protected: super::super::Foundation::BOOL, + pub Protected: windows_core::BOOL, pub MemoryPoolL0Size: u64, pub MemoryPoolL1Size: u64, } @@ -3544,7 +3544,7 @@ pub struct D3D12_FEATURE_DATA_VIDEO_PROCESS_REFERENCE_INFO { pub FeatureSupport: D3D12_VIDEO_PROCESS_FEATURE_FLAGS, pub InputFrameRate: super::super::Graphics::Dxgi::Common::DXGI_RATIONAL, pub OutputFrameRate: super::super::Graphics::Dxgi::Common::DXGI_RATIONAL, - pub EnableAutoProcessing: super::super::Foundation::BOOL, + pub EnableAutoProcessing: windows_core::BOOL, pub PastFrames: u32, pub FutureFrames: u32, } @@ -3788,7 +3788,7 @@ pub const D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_REFERENCE_ONLY_ALLOCATIONS_REQUI #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] #[derive(Clone, Debug, PartialEq)] pub struct D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS { - pub Enable: super::super::Foundation::BOOL, + pub Enable: windows_core::BOOL, pub pReferenceTexture2D: core::mem::ManuallyDrop>, pub ReferenceSubresource: u32, pub OutputColorSpace: super::super::Graphics::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, @@ -3804,7 +3804,7 @@ impl Default for D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS { #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] #[derive(Clone, Debug, PartialEq)] pub struct D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1 { - pub Enable: super::super::Foundation::BOOL, + pub Enable: windows_core::BOOL, pub pReferenceTexture2D: core::mem::ManuallyDrop>, pub ReferenceSubresource: u32, pub OutputColorSpace: super::super::Graphics::Dxgi::Common::DXGI_COLOR_SPACE_TYPE, @@ -4201,7 +4201,7 @@ pub const D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_WARPED_MOTION: D3D12_VIDEO_ENCODE #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_SUPPORT { - pub Use128SuperBlocks: super::super::Foundation::BOOL, + pub Use128SuperBlocks: windows_core::BOOL, pub TilesConfiguration: D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES, pub ValidationFlags: D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAGS, pub MinTileRows: u32, @@ -4590,7 +4590,7 @@ impl Default for D3D12_VIDEO_ENCODER_AV1_REFERENCE_PICTURE_DESCRIPTOR { pub struct D3D12_VIDEO_ENCODER_AV1_REFERENCE_PICTURE_WARPED_MOTION_INFO { pub TransformationType: D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION, pub TransformationMatrix: [i32; 8], - pub InvalidAffineSet: super::super::Foundation::BOOL, + pub InvalidAffineSet: windows_core::BOOL, } impl Default for D3D12_VIDEO_ENCODER_AV1_REFERENCE_PICTURE_WARPED_MOTION_INFO { fn default() -> Self { @@ -6481,7 +6481,7 @@ impl Default for D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURE { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264 { pub ReconstructedPictureResourceIndex: u32, - pub IsLongTermReference: super::super::Foundation::BOOL, + pub IsLongTermReference: windows_core::BOOL, pub LongTermPictureIdx: u32, pub PictureOrderCountNumber: u32, pub FrameDecodingOrderNumber: u32, @@ -6496,8 +6496,8 @@ impl Default for D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264 { #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVC { pub ReconstructedPictureResourceIndex: u32, - pub IsRefUsedByCurrentPic: super::super::Foundation::BOOL, - pub IsLongTermReference: super::super::Foundation::BOOL, + pub IsRefUsedByCurrentPic: windows_core::BOOL, + pub IsLongTermReference: windows_core::BOOL, pub PictureOrderCountNumber: u32, pub TemporalLayerIndex: u32, } @@ -7048,7 +7048,7 @@ impl Default for D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_VIDEO_PROCESS_ALPHA_BLENDING { - pub Enable: super::super::Foundation::BOOL, + pub Enable: windows_core::BOOL, pub Alpha: f32, } impl Default for D3D12_VIDEO_PROCESS_ALPHA_BLENDING { @@ -7321,16 +7321,16 @@ pub struct D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC { pub FrameRate: super::super::Graphics::Dxgi::Common::DXGI_RATIONAL, pub SourceSizeRange: D3D12_VIDEO_SIZE_RANGE, pub DestinationSizeRange: D3D12_VIDEO_SIZE_RANGE, - pub EnableOrientation: super::super::Foundation::BOOL, + pub EnableOrientation: windows_core::BOOL, pub FilterFlags: D3D12_VIDEO_PROCESS_FILTER_FLAGS, pub StereoFormat: D3D12_VIDEO_FRAME_STEREO_FORMAT, pub FieldType: D3D12_VIDEO_FIELD_TYPE, pub DeinterlaceMode: D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS, - pub EnableAlphaBlending: super::super::Foundation::BOOL, + pub EnableAlphaBlending: windows_core::BOOL, pub LumaKey: D3D12_VIDEO_PROCESS_LUMA_KEY, pub NumPastFrames: u32, pub NumFutureFrames: u32, - pub EnableAutoProcessing: super::super::Foundation::BOOL, + pub EnableAutoProcessing: windows_core::BOOL, } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl Default for D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC { @@ -7391,7 +7391,7 @@ impl Default for D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct D3D12_VIDEO_PROCESS_LUMA_KEY { - pub Enable: super::super::Foundation::BOOL, + pub Enable: windows_core::BOOL, pub Lower: f32, pub Upper: f32, } @@ -7447,7 +7447,7 @@ pub struct D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC { pub AlphaFillModeSourceStreamIndex: u32, pub BackgroundColor: [f32; 4], pub FrameRate: super::super::Graphics::Dxgi::Common::DXGI_RATIONAL, - pub EnableStereo: super::super::Foundation::BOOL, + pub EnableStereo: windows_core::BOOL, } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl Default for D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC { @@ -8339,7 +8339,7 @@ pub struct DXVAHDETW_VIDEOPROCESSBLTHD { pub ColorSpace: u32, pub OutputFrame: u32, pub StreamCount: u32, - pub Enter: super::super::Foundation::BOOL, + pub Enter: windows_core::BOOL, } #[cfg(feature = "Win32_Graphics_Direct3D9")] impl Default for DXVAHDETW_VIDEOPROCESSBLTHD { @@ -8376,7 +8376,7 @@ pub struct DXVAHDETW_VIDEOPROCESSBLTSTATE { pub pObject: u64, pub State: DXVAHD_BLT_STATE, pub DataSize: u32, - pub SetState: super::super::Foundation::BOOL, + pub SetState: windows_core::BOOL, } impl Default for DXVAHDETW_VIDEOPROCESSBLTSTATE { fn default() -> Self { @@ -8390,7 +8390,7 @@ pub struct DXVAHDETW_VIDEOPROCESSSTREAMSTATE { pub StreamNumber: u32, pub State: DXVAHD_STREAM_STATE, pub DataSize: u32, - pub SetState: super::super::Foundation::BOOL, + pub SetState: windows_core::BOOL, } impl Default for DXVAHDETW_VIDEOPROCESSSTREAMSTATE { fn default() -> Self { @@ -8450,7 +8450,7 @@ pub const DXVAHD_BLT_STATE_BACKGROUND_COLOR: DXVAHD_BLT_STATE = DXVAHD_BLT_STATE #[repr(C)] #[derive(Clone, Copy)] pub struct DXVAHD_BLT_STATE_BACKGROUND_COLOR_DATA { - pub YCbCr: super::super::Foundation::BOOL, + pub YCbCr: windows_core::BOOL, pub BackgroundColor: DXVAHD_COLOR, } impl Default for DXVAHD_BLT_STATE_BACKGROUND_COLOR_DATA { @@ -8462,7 +8462,7 @@ pub const DXVAHD_BLT_STATE_CONSTRICTION: DXVAHD_BLT_STATE = DXVAHD_BLT_STATE(4i3 #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DXVAHD_BLT_STATE_CONSTRICTION_DATA { - pub Enable: super::super::Foundation::BOOL, + pub Enable: windows_core::BOOL, pub Size: super::super::Foundation::SIZE, } impl Default for DXVAHD_BLT_STATE_CONSTRICTION_DATA { @@ -8519,7 +8519,7 @@ pub const DXVAHD_BLT_STATE_TARGET_RECT: DXVAHD_BLT_STATE = DXVAHD_BLT_STATE(0i32 #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DXVAHD_BLT_STATE_TARGET_RECT_DATA { - pub Enable: super::super::Foundation::BOOL, + pub Enable: windows_core::BOOL, pub TargetRect: super::super::Foundation::RECT, } impl Default for DXVAHD_BLT_STATE_TARGET_RECT_DATA { @@ -8585,7 +8585,7 @@ impl Default for DXVAHD_CONTENT_DESC { pub struct DXVAHD_CUSTOM_RATE_DATA { pub CustomRate: DXVAHD_RATIONAL, pub OutputFrames: u32, - pub InputInterlaced: super::super::Foundation::BOOL, + pub InputInterlaced: windows_core::BOOL, pub InputFramesOrFields: u32, } impl Default for DXVAHD_CUSTOM_RATE_DATA { @@ -8709,7 +8709,7 @@ impl Default for DXVAHD_RATIONAL { #[cfg(feature = "Win32_Graphics_Direct3D9")] #[derive(Clone, Debug, PartialEq)] pub struct DXVAHD_STREAM_DATA { - pub Enable: super::super::Foundation::BOOL, + pub Enable: windows_core::BOOL, pub OutputIndex: u32, pub InputFrameOrField: u32, pub PastFrames: u32, @@ -8731,7 +8731,7 @@ pub const DXVAHD_STREAM_STATE_ALPHA: DXVAHD_STREAM_STATE = DXVAHD_STREAM_STATE(6 #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DXVAHD_STREAM_STATE_ALPHA_DATA { - pub Enable: super::super::Foundation::BOOL, + pub Enable: windows_core::BOOL, pub Alpha: f32, } impl Default for DXVAHD_STREAM_STATE_ALPHA_DATA { @@ -8743,7 +8743,7 @@ pub const DXVAHD_STREAM_STATE_ASPECT_RATIO: DXVAHD_STREAM_STATE = DXVAHD_STREAM_ #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA { - pub Enable: super::super::Foundation::BOOL, + pub Enable: windows_core::BOOL, pub SourceAspectRatio: DXVAHD_RATIONAL, pub DestinationAspectRatio: DXVAHD_RATIONAL, } @@ -8769,7 +8769,7 @@ pub const DXVAHD_STREAM_STATE_DESTINATION_RECT: DXVAHD_STREAM_STATE = DXVAHD_STR #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA { - pub Enable: super::super::Foundation::BOOL, + pub Enable: windows_core::BOOL, pub DestinationRect: super::super::Foundation::RECT, } impl Default for DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA { @@ -8783,7 +8783,7 @@ pub const DXVAHD_STREAM_STATE_FILTER_CONTRAST: DXVAHD_STREAM_STATE = DXVAHD_STRE #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DXVAHD_STREAM_STATE_FILTER_DATA { - pub Enable: super::super::Foundation::BOOL, + pub Enable: windows_core::BOOL, pub Level: i32, } impl Default for DXVAHD_STREAM_STATE_FILTER_DATA { @@ -8842,7 +8842,7 @@ pub const DXVAHD_STREAM_STATE_LUMA_KEY: DXVAHD_STREAM_STATE = DXVAHD_STREAM_STAT #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DXVAHD_STREAM_STATE_LUMA_KEY_DATA { - pub Enable: super::super::Foundation::BOOL, + pub Enable: windows_core::BOOL, pub Lower: f32, pub Upper: f32, } @@ -8855,7 +8855,7 @@ pub const DXVAHD_STREAM_STATE_OUTPUT_RATE: DXVAHD_STREAM_STATE = DXVAHD_STREAM_S #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DXVAHD_STREAM_STATE_OUTPUT_RATE_DATA { - pub RepeatFrame: super::super::Foundation::BOOL, + pub RepeatFrame: windows_core::BOOL, pub OutputRate: DXVAHD_OUTPUT_RATE, pub CustomRate: DXVAHD_RATIONAL, } @@ -8893,7 +8893,7 @@ pub const DXVAHD_STREAM_STATE_PRIVATE_IVTC: windows_core::GUID = windows_core::G #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DXVAHD_STREAM_STATE_PRIVATE_IVTC_DATA { - pub Enable: super::super::Foundation::BOOL, + pub Enable: windows_core::BOOL, pub ITelecineFlags: u32, pub Frames: u32, pub InputField: u32, @@ -8907,7 +8907,7 @@ pub const DXVAHD_STREAM_STATE_SOURCE_RECT: DXVAHD_STREAM_STATE = DXVAHD_STREAM_S #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DXVAHD_STREAM_STATE_SOURCE_RECT_DATA { - pub Enable: super::super::Foundation::BOOL, + pub Enable: windows_core::BOOL, pub SourceRect: super::super::Foundation::RECT, } impl Default for DXVAHD_STREAM_STATE_SOURCE_RECT_DATA { @@ -13173,10 +13173,10 @@ pub struct IDirect3DDeviceManager9_Vtbl { pub CloseDeviceHandle: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE) -> windows_core::HRESULT, pub TestDevice: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE) -> windows_core::HRESULT, #[cfg(feature = "Win32_Graphics_Direct3D9")] - pub LockDevice: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, *mut *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub LockDevice: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, *mut *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Direct3D9"))] LockDevice: usize, - pub UnlockDevice: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub UnlockDevice: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, windows_core::BOOL) -> windows_core::HRESULT, pub GetVideoService: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Graphics_Direct3D9")] @@ -13185,8 +13185,8 @@ pub trait IDirect3DDeviceManager9_Impl: windows_core::IUnknownImpl { fn OpenDeviceHandle(&self) -> windows_core::Result; fn CloseDeviceHandle(&self, hdevice: super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn TestDevice(&self, hdevice: super::super::Foundation::HANDLE) -> windows_core::Result<()>; - fn LockDevice(&self, hdevice: super::super::Foundation::HANDLE, ppdevice: windows_core::OutRef<'_, super::super::Graphics::Direct3D9::IDirect3DDevice9>, fblock: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn UnlockDevice(&self, hdevice: super::super::Foundation::HANDLE, fsavestate: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn LockDevice(&self, hdevice: super::super::Foundation::HANDLE, ppdevice: windows_core::OutRef<'_, super::super::Graphics::Direct3D9::IDirect3DDevice9>, fblock: windows_core::BOOL) -> windows_core::Result<()>; + fn UnlockDevice(&self, hdevice: super::super::Foundation::HANDLE, fsavestate: windows_core::BOOL) -> windows_core::Result<()>; fn GetVideoService(&self, hdevice: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppservice: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_Direct3D9")] @@ -13222,13 +13222,13 @@ impl IDirect3DDeviceManager9_Vtbl { IDirect3DDeviceManager9_Impl::TestDevice(this, core::mem::transmute_copy(&hdevice)).into() } } - unsafe extern "system" fn LockDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, ppdevice: *mut *mut core::ffi::c_void, fblock: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn LockDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, ppdevice: *mut *mut core::ffi::c_void, fblock: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDeviceManager9_Impl::LockDevice(this, core::mem::transmute_copy(&hdevice), core::mem::transmute_copy(&ppdevice), core::mem::transmute_copy(&fblock)).into() } } - unsafe extern "system" fn UnlockDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, fsavestate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn UnlockDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, fsavestate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDirect3DDeviceManager9_Impl::UnlockDevice(this, core::mem::transmute_copy(&hdevice), core::mem::transmute_copy(&fsavestate)).into() @@ -14011,13 +14011,13 @@ impl windows_core::RuntimeName for IEVRFilterConfigEx {} windows_core::imp::define_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 { + pub unsafe fn IsInTrustedVideoMode(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsInTrustedVideoMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CanConstrict(&self) -> windows_core::Result { + pub unsafe fn CanConstrict(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanConstrict)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -14033,20 +14033,20 @@ impl IEVRTrustedVideoPlugin { #[repr(C)] pub struct IEVRTrustedVideoPlugin_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsInTrustedVideoMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CanConstrict: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsInTrustedVideoMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CanConstrict: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetConstriction: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub DisableImageExport: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub DisableImageExport: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IEVRTrustedVideoPlugin_Impl: windows_core::IUnknownImpl { - fn IsInTrustedVideoMode(&self) -> windows_core::Result; - fn CanConstrict(&self) -> windows_core::Result; + fn IsInTrustedVideoMode(&self) -> windows_core::Result; + fn CanConstrict(&self) -> windows_core::Result; fn SetConstriction(&self, dwkpix: u32) -> windows_core::Result<()>; - fn DisableImageExport(&self, bdisable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn DisableImageExport(&self, bdisable: windows_core::BOOL) -> windows_core::Result<()>; } impl IEVRTrustedVideoPlugin_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsInTrustedVideoMode(this: *mut core::ffi::c_void, pyes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsInTrustedVideoMode(this: *mut core::ffi::c_void, pyes: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEVRTrustedVideoPlugin_Impl::IsInTrustedVideoMode(this) { @@ -14058,7 +14058,7 @@ impl IEVRTrustedVideoPlugin_Vtbl { } } } - unsafe extern "system" fn CanConstrict(this: *mut core::ffi::c_void, pyes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanConstrict(this: *mut core::ffi::c_void, pyes: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEVRTrustedVideoPlugin_Impl::CanConstrict(this) { @@ -14076,7 +14076,7 @@ impl IEVRTrustedVideoPlugin_Vtbl { IEVRTrustedVideoPlugin_Impl::SetConstriction(this, core::mem::transmute_copy(&dwkpix)).into() } } - unsafe extern "system" fn DisableImageExport(this: *mut core::ffi::c_void, bdisable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DisableImageExport(this: *mut core::ffi::c_void, bdisable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEVRTrustedVideoPlugin_Impl::DisableImageExport(this, core::mem::transmute_copy(&bdisable)).into() @@ -14101,7 +14101,7 @@ impl IEVRVideoStreamControl { pub unsafe fn SetStreamActiveState(&self, factive: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetStreamActiveState)(windows_core::Interface::as_raw(self), factive.into()).ok() } } - pub unsafe fn GetStreamActiveState(&self) -> windows_core::Result { + pub unsafe fn GetStreamActiveState(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStreamActiveState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -14111,22 +14111,22 @@ impl IEVRVideoStreamControl { #[repr(C)] pub struct IEVRVideoStreamControl_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetStreamActiveState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetStreamActiveState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetStreamActiveState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetStreamActiveState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IEVRVideoStreamControl_Impl: windows_core::IUnknownImpl { - fn SetStreamActiveState(&self, factive: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetStreamActiveState(&self) -> windows_core::Result; + fn SetStreamActiveState(&self, factive: windows_core::BOOL) -> windows_core::Result<()>; + fn GetStreamActiveState(&self) -> windows_core::Result; } impl IEVRVideoStreamControl_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetStreamActiveState(this: *mut core::ffi::c_void, factive: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetStreamActiveState(this: *mut core::ffi::c_void, factive: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEVRVideoStreamControl_Impl::SetStreamActiveState(this, core::mem::transmute_copy(&factive)).into() } } - unsafe extern "system" fn GetStreamActiveState(this: *mut core::ffi::c_void, lpfactive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetStreamActiveState(this: *mut core::ffi::c_void, lpfactive: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEVRVideoStreamControl_Impl::GetStreamActiveState(this) { @@ -14233,7 +14233,7 @@ impl IFileIo { pub unsafe fn SetCurrentPosition(&self, qwposition: u64) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetCurrentPosition)(windows_core::Interface::as_raw(self), qwposition).ok() } } - pub unsafe fn IsEndOfStream(&self, pbendofstream: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn IsEndOfStream(&self, pbendofstream: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsEndOfStream)(windows_core::Interface::as_raw(self), pbendofstream as _).ok() } } pub unsafe fn Read(&self, pbt: *mut u8, ul: u32, pulread: *mut u32) -> windows_core::Result<()> { @@ -14257,7 +14257,7 @@ pub struct IFileIo_Vtbl { pub SetLength: unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, pub GetCurrentPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub SetCurrentPosition: unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, - pub IsEndOfStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsEndOfStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Read: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8, u32, *mut u32) -> windows_core::HRESULT, pub Write: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8, u32, *mut u32) -> windows_core::HRESULT, pub Seek: unsafe extern "system" fn(*mut core::ffi::c_void, SEEK_ORIGIN, u64, u32, *mut u64) -> windows_core::HRESULT, @@ -14269,7 +14269,7 @@ pub trait IFileIo_Impl: windows_core::IUnknownImpl { fn SetLength(&self, qwlength: u64) -> windows_core::Result<()>; fn GetCurrentPosition(&self, pqwposition: *mut u64) -> windows_core::Result<()>; fn SetCurrentPosition(&self, qwposition: u64) -> windows_core::Result<()>; - fn IsEndOfStream(&self, pbendofstream: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsEndOfStream(&self, pbendofstream: *mut windows_core::BOOL) -> windows_core::Result<()>; fn Read(&self, pbt: *mut u8, ul: u32, pulread: *mut u32) -> windows_core::Result<()>; fn Write(&self, pbt: *mut u8, ul: u32, pulwritten: *mut u32) -> windows_core::Result<()>; fn Seek(&self, eseekorigin: SEEK_ORIGIN, qwseekoffset: u64, dwseekflags: u32, pqwcurrentposition: *mut u64) -> windows_core::Result<()>; @@ -14307,7 +14307,7 @@ impl IFileIo_Vtbl { IFileIo_Impl::SetCurrentPosition(this, core::mem::transmute_copy(&qwposition)).into() } } - unsafe extern "system" fn IsEndOfStream(this: *mut core::ffi::c_void, pbendofstream: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsEndOfStream(this: *mut core::ffi::c_void, pbendofstream: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileIo_Impl::IsEndOfStream(this, core::mem::transmute_copy(&pbendofstream)).into() @@ -14368,7 +14368,7 @@ impl IMF2DBuffer { pub unsafe fn GetScanline0AndPitch(&self, pbscanline0: *mut *mut u8, plpitch: *mut i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetScanline0AndPitch)(windows_core::Interface::as_raw(self), pbscanline0 as _, plpitch as _).ok() } } - pub unsafe fn IsContiguousFormat(&self) -> windows_core::Result { + pub unsafe fn IsContiguousFormat(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsContiguousFormat)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -14393,7 +14393,7 @@ pub struct IMF2DBuffer_Vtbl { pub Lock2D: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut u8, *mut i32) -> windows_core::HRESULT, pub Unlock2D: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetScanline0AndPitch: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut u8, *mut i32) -> windows_core::HRESULT, - pub IsContiguousFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsContiguousFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetContiguousLength: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub ContiguousCopyTo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8, u32) -> windows_core::HRESULT, pub ContiguousCopyFrom: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, u32) -> windows_core::HRESULT, @@ -14402,7 +14402,7 @@ pub trait IMF2DBuffer_Impl: windows_core::IUnknownImpl { fn Lock2D(&self, ppbscanline0: *mut *mut u8, plpitch: *mut i32) -> windows_core::Result<()>; fn Unlock2D(&self) -> windows_core::Result<()>; fn GetScanline0AndPitch(&self, pbscanline0: *mut *mut u8, plpitch: *mut i32) -> windows_core::Result<()>; - fn IsContiguousFormat(&self) -> windows_core::Result; + fn IsContiguousFormat(&self) -> windows_core::Result; fn GetContiguousLength(&self) -> windows_core::Result; fn ContiguousCopyTo(&self, pbdestbuffer: *mut u8, cbdestbuffer: u32) -> windows_core::Result<()>; fn ContiguousCopyFrom(&self, pbsrcbuffer: *const u8, cbsrcbuffer: u32) -> windows_core::Result<()>; @@ -14427,7 +14427,7 @@ impl IMF2DBuffer_Vtbl { IMF2DBuffer_Impl::GetScanline0AndPitch(this, core::mem::transmute_copy(&pbscanline0), core::mem::transmute_copy(&plpitch)).into() } } - unsafe extern "system" fn IsContiguousFormat(this: *mut core::ffi::c_void, pfiscontiguous: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsContiguousFormat(this: *mut core::ffi::c_void, pfiscontiguous: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMF2DBuffer_Impl::IsContiguousFormat(this) { @@ -14734,7 +14734,7 @@ impl IMFASFIndexer { (windows_core::Interface::vtable(self).GetIndexByteStreamCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetIndexStatus(&self, pindexidentifier: *const ASF_INDEX_IDENTIFIER, pfisindexed: *mut super::super::Foundation::BOOL, pbindexdescriptor: *mut u8, pcbindexdescriptor: *mut u32) -> windows_core::Result<()> { + pub unsafe fn GetIndexStatus(&self, pindexidentifier: *const ASF_INDEX_IDENTIFIER, pfisindexed: *mut windows_core::BOOL, pbindexdescriptor: *mut u8, pcbindexdescriptor: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetIndexStatus)(windows_core::Interface::as_raw(self), pindexidentifier, pfisindexed as _, pbindexdescriptor as _, pcbindexdescriptor as _).ok() } } pub unsafe fn SetIndexStatus(&self, pbindexdescriptor: *const u8, cbindexdescriptor: u32, fgenerateindex: bool) -> windows_core::Result<()> { @@ -14778,8 +14778,8 @@ pub struct IMFASFIndexer_Vtbl { pub GetIndexPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub SetIndexByteStreams: unsafe extern "system" fn(*mut core::ffi::c_void, *const *mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetIndexByteStreamCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub GetIndexStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *const ASF_INDEX_IDENTIFIER, *mut super::super::Foundation::BOOL, *mut u8, *mut u32) -> windows_core::HRESULT, - pub SetIndexStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetIndexStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *const ASF_INDEX_IDENTIFIER, *mut windows_core::BOOL, *mut u8, *mut u32) -> windows_core::HRESULT, + pub SetIndexStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, u32, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub GetSeekPositionForValue: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::System::Com::StructuredStorage::PROPVARIANT, *const ASF_INDEX_IDENTIFIER, *mut u64, *mut i64, *mut u32) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] @@ -14797,8 +14797,8 @@ pub trait IMFASFIndexer_Impl: windows_core::IUnknownImpl { fn GetIndexPosition(&self, picontentinfo: windows_core::Ref) -> windows_core::Result; fn SetIndexByteStreams(&self, ppibytestreams: *const Option, cbytestreams: u32) -> windows_core::Result<()>; fn GetIndexByteStreamCount(&self) -> windows_core::Result; - fn GetIndexStatus(&self, pindexidentifier: *const ASF_INDEX_IDENTIFIER, pfisindexed: *mut super::super::Foundation::BOOL, pbindexdescriptor: *mut u8, pcbindexdescriptor: *mut u32) -> windows_core::Result<()>; - fn SetIndexStatus(&self, pbindexdescriptor: *const u8, cbindexdescriptor: u32, fgenerateindex: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetIndexStatus(&self, pindexidentifier: *const ASF_INDEX_IDENTIFIER, pfisindexed: *mut windows_core::BOOL, pbindexdescriptor: *mut u8, pcbindexdescriptor: *mut u32) -> windows_core::Result<()>; + fn SetIndexStatus(&self, pbindexdescriptor: *const u8, cbindexdescriptor: u32, fgenerateindex: windows_core::BOOL) -> windows_core::Result<()>; fn GetSeekPositionForValue(&self, pvarvalue: *const super::super::System::Com::StructuredStorage::PROPVARIANT, pindexidentifier: *const ASF_INDEX_IDENTIFIER, pcboffsetwithindata: *mut u64, phnsapproxtime: *mut i64, pdwpayloadnumberofstreamwithinpacket: *mut u32) -> windows_core::Result<()>; fn GenerateIndexEntries(&self, piasfpacketsample: windows_core::Ref) -> windows_core::Result<()>; fn CommitIndex(&self, picontentinfo: windows_core::Ref) -> windows_core::Result<()>; @@ -14862,13 +14862,13 @@ impl IMFASFIndexer_Vtbl { } } } - unsafe extern "system" fn GetIndexStatus(this: *mut core::ffi::c_void, pindexidentifier: *const ASF_INDEX_IDENTIFIER, pfisindexed: *mut super::super::Foundation::BOOL, pbindexdescriptor: *mut u8, pcbindexdescriptor: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn GetIndexStatus(this: *mut core::ffi::c_void, pindexidentifier: *const ASF_INDEX_IDENTIFIER, pfisindexed: *mut windows_core::BOOL, pbindexdescriptor: *mut u8, pcbindexdescriptor: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFIndexer_Impl::GetIndexStatus(this, core::mem::transmute_copy(&pindexidentifier), core::mem::transmute_copy(&pfisindexed), core::mem::transmute_copy(&pbindexdescriptor), core::mem::transmute_copy(&pcbindexdescriptor)).into() } } - unsafe extern "system" fn SetIndexStatus(this: *mut core::ffi::c_void, pbindexdescriptor: *const u8, cbindexdescriptor: u32, fgenerateindex: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetIndexStatus(this: *mut core::ffi::c_void, pbindexdescriptor: *const u8, cbindexdescriptor: u32, fgenerateindex: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFASFIndexer_Impl::SetIndexStatus(this, core::mem::transmute_copy(&pbindexdescriptor), core::mem::transmute_copy(&cbindexdescriptor), core::mem::transmute_copy(&fgenerateindex)).into() @@ -16571,13 +16571,13 @@ impl IMFAttributes { } } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] - pub unsafe fn CompareItem(&self, guidkey: *const windows_core::GUID, value: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result { + pub unsafe fn CompareItem(&self, guidkey: *const windows_core::GUID, value: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CompareItem)(windows_core::Interface::as_raw(self), guidkey, core::mem::transmute(value), &mut result__).map(|| result__) } } - pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result + pub unsafe fn Compare(&self, ptheirs: P0, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result where P0: windows_core::Param, { @@ -16710,10 +16710,10 @@ pub struct IMFAttributes_Vtbl { GetItem: usize, pub GetItemType: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut MF_ATTRIBUTE_TYPE) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] - pub CompareItem: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const super::super::System::Com::StructuredStorage::PROPVARIANT, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CompareItem: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const super::super::System::Com::StructuredStorage::PROPVARIANT, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] CompareItem: usize, - pub Compare: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, MF_ATTRIBUTES_MATCH_TYPE, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Compare: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, MF_ATTRIBUTES_MATCH_TYPE, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetUINT32: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut u32) -> windows_core::HRESULT, pub GetUINT64: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut u64) -> windows_core::HRESULT, pub GetDouble: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut f64) -> windows_core::HRESULT, @@ -16751,8 +16751,8 @@ pub struct IMFAttributes_Vtbl { pub trait IMFAttributes_Impl: windows_core::IUnknownImpl { fn GetItem(&self, guidkey: *const windows_core::GUID, pvalue: *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()>; fn GetItemType(&self, guidkey: *const windows_core::GUID) -> windows_core::Result; - fn CompareItem(&self, guidkey: *const windows_core::GUID, value: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result; - fn Compare(&self, ptheirs: windows_core::Ref, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result; + fn CompareItem(&self, guidkey: *const windows_core::GUID, value: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result; + fn Compare(&self, ptheirs: windows_core::Ref, matchtype: MF_ATTRIBUTES_MATCH_TYPE) -> windows_core::Result; fn GetUINT32(&self, guidkey: *const windows_core::GUID) -> windows_core::Result; fn GetUINT64(&self, guidkey: *const windows_core::GUID) -> windows_core::Result; fn GetDouble(&self, guidkey: *const windows_core::GUID) -> windows_core::Result; @@ -16801,7 +16801,7 @@ impl IMFAttributes_Vtbl { } } } - unsafe extern "system" fn CompareItem(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, value: *const super::super::System::Com::StructuredStorage::PROPVARIANT, pbresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CompareItem(this: *mut core::ffi::c_void, guidkey: *const windows_core::GUID, value: *const super::super::System::Com::StructuredStorage::PROPVARIANT, pbresult: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAttributes_Impl::CompareItem(this, core::mem::transmute_copy(&guidkey), core::mem::transmute_copy(&value)) { @@ -16813,7 +16813,7 @@ impl IMFAttributes_Vtbl { } } } - unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, ptheirs: *mut core::ffi::c_void, matchtype: MF_ATTRIBUTES_MATCH_TYPE, pbresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, ptheirs: *mut core::ffi::c_void, matchtype: MF_ATTRIBUTES_MATCH_TYPE, pbresult: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFAttributes_Impl::Compare(this, core::mem::transmute_copy(&ptheirs), core::mem::transmute_copy(&matchtype)) { @@ -17403,7 +17403,7 @@ impl IMFByteStream { pub unsafe fn SetCurrentPosition(&self, qwposition: u64) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetCurrentPosition)(windows_core::Interface::as_raw(self), qwposition).ok() } } - pub unsafe fn IsEndOfStream(&self) -> windows_core::Result { + pub unsafe fn IsEndOfStream(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsEndOfStream)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -17471,7 +17471,7 @@ pub struct IMFByteStream_Vtbl { pub SetLength: unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, pub GetCurrentPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub SetCurrentPosition: unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, - pub IsEndOfStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsEndOfStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Read: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8, u32, *mut u32) -> windows_core::HRESULT, pub BeginRead: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8, u32, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub EndRead: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -17488,7 +17488,7 @@ pub trait IMFByteStream_Impl: windows_core::IUnknownImpl { fn SetLength(&self, qwlength: u64) -> windows_core::Result<()>; fn GetCurrentPosition(&self) -> windows_core::Result; fn SetCurrentPosition(&self, qwposition: u64) -> windows_core::Result<()>; - fn IsEndOfStream(&self) -> windows_core::Result; + fn IsEndOfStream(&self) -> windows_core::Result; fn Read(&self, pb: *mut u8, cb: u32, pcbread: *mut u32) -> windows_core::Result<()>; fn BeginRead(&self, pb: *mut u8, cb: u32, pcallback: windows_core::Ref, punkstate: windows_core::Ref) -> windows_core::Result<()>; fn EndRead(&self, presult: windows_core::Ref) -> windows_core::Result; @@ -17549,7 +17549,7 @@ impl IMFByteStream_Vtbl { IMFByteStream_Impl::SetCurrentPosition(this, core::mem::transmute_copy(&qwposition)).into() } } - unsafe extern "system" fn IsEndOfStream(this: *mut core::ffi::c_void, pfendofstream: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsEndOfStream(this: *mut core::ffi::c_void, pfendofstream: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFByteStream_Impl::IsEndOfStream(this) { @@ -17680,12 +17680,12 @@ impl IMFByteStreamBuffering { pub struct IMFByteStreamBuffering_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetBufferingParams: unsafe extern "system" fn(*mut core::ffi::c_void, *const MFBYTESTREAM_BUFFERING_PARAMS) -> windows_core::HRESULT, - pub EnableBuffering: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableBuffering: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub StopBuffering: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IMFByteStreamBuffering_Impl: windows_core::IUnknownImpl { fn SetBufferingParams(&self, pparams: *const MFBYTESTREAM_BUFFERING_PARAMS) -> windows_core::Result<()>; - fn EnableBuffering(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EnableBuffering(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; fn StopBuffering(&self) -> windows_core::Result<()>; } impl IMFByteStreamBuffering_Vtbl { @@ -17696,7 +17696,7 @@ impl IMFByteStreamBuffering_Vtbl { IMFByteStreamBuffering_Impl::SetBufferingParams(this, core::mem::transmute_copy(&pparams)).into() } } - unsafe extern "system" fn EnableBuffering(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableBuffering(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFByteStreamBuffering_Impl::EnableBuffering(this, core::mem::transmute_copy(&fenable)).into() @@ -17765,7 +17765,7 @@ impl IMFByteStreamCacheControl2 { pub unsafe fn SetCacheLimit(&self, qwbytes: u64) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetCacheLimit)(windows_core::Interface::as_raw(self), qwbytes).ok() } } - pub unsafe fn IsBackgroundTransferActive(&self) -> windows_core::Result { + pub unsafe fn IsBackgroundTransferActive(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsBackgroundTransferActive)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -17777,12 +17777,12 @@ pub struct IMFByteStreamCacheControl2_Vtbl { pub base__: IMFByteStreamCacheControl_Vtbl, pub GetByteRanges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut MF_BYTE_STREAM_CACHE_RANGE) -> windows_core::HRESULT, pub SetCacheLimit: unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, - pub IsBackgroundTransferActive: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsBackgroundTransferActive: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IMFByteStreamCacheControl2_Impl: IMFByteStreamCacheControl_Impl { fn GetByteRanges(&self, pcranges: *mut u32, ppranges: *mut *mut MF_BYTE_STREAM_CACHE_RANGE) -> windows_core::Result<()>; fn SetCacheLimit(&self, qwbytes: u64) -> windows_core::Result<()>; - fn IsBackgroundTransferActive(&self) -> windows_core::Result; + fn IsBackgroundTransferActive(&self) -> windows_core::Result; } impl IMFByteStreamCacheControl2_Vtbl { pub const fn new() -> Self { @@ -17798,7 +17798,7 @@ impl IMFByteStreamCacheControl2_Vtbl { IMFByteStreamCacheControl2_Impl::SetCacheLimit(this, core::mem::transmute_copy(&qwbytes)).into() } } - unsafe extern "system" fn IsBackgroundTransferActive(this: *mut core::ffi::c_void, pfactive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsBackgroundTransferActive(this: *mut core::ffi::c_void, pfactive: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFByteStreamCacheControl2_Impl::IsBackgroundTransferActive(this) { @@ -17959,7 +17959,7 @@ impl windows_core::RuntimeName for IMFByteStreamProxyClassFactory {} windows_core::imp::define_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 { + pub unsafe fn IsTimeSeekSupported(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsTimeSeekSupported)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -17975,18 +17975,18 @@ impl IMFByteStreamTimeSeek { #[repr(C)] pub struct IMFByteStreamTimeSeek_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsTimeSeekSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsTimeSeekSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub TimeSeek: unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, pub GetTimeSeekResult: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64, *mut u64, *mut u64) -> windows_core::HRESULT, } pub trait IMFByteStreamTimeSeek_Impl: windows_core::IUnknownImpl { - fn IsTimeSeekSupported(&self) -> windows_core::Result; + fn IsTimeSeekSupported(&self) -> windows_core::Result; fn TimeSeek(&self, qwtimeposition: u64) -> windows_core::Result<()>; fn GetTimeSeekResult(&self, pqwstarttime: *mut u64, pqwstoptime: *mut u64, pqwduration: *mut u64) -> windows_core::Result<()>; } impl IMFByteStreamTimeSeek_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsTimeSeekSupported(this: *mut core::ffi::c_void, pftimeseekissupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsTimeSeekSupported(this: *mut core::ffi::c_void, pftimeseekissupported: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFByteStreamTimeSeek_Impl::IsTimeSeekSupported(this) { @@ -18644,7 +18644,7 @@ pub struct IMFCaptureEngine_Vtbl { pub StartPreview: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub StopPreview: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub StartRecord: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub StopRecord: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub StopRecord: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, pub TakePhoto: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSink: unsafe extern "system" fn(*mut core::ffi::c_void, MF_CAPTURE_ENGINE_SINK_TYPE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -18654,7 +18654,7 @@ pub trait IMFCaptureEngine_Impl: windows_core::IUnknownImpl { fn StartPreview(&self) -> windows_core::Result<()>; fn StopPreview(&self) -> windows_core::Result<()>; fn StartRecord(&self) -> windows_core::Result<()>; - fn StopRecord(&self, bfinalize: super::super::Foundation::BOOL, bflushunprocessedsamples: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn StopRecord(&self, bfinalize: windows_core::BOOL, bflushunprocessedsamples: windows_core::BOOL) -> windows_core::Result<()>; fn TakePhoto(&self) -> windows_core::Result<()>; fn GetSink(&self, mfcaptureenginesinktype: MF_CAPTURE_ENGINE_SINK_TYPE) -> windows_core::Result; fn GetSource(&self) -> windows_core::Result; @@ -18685,7 +18685,7 @@ impl IMFCaptureEngine_Vtbl { IMFCaptureEngine_Impl::StartRecord(this).into() } } - unsafe extern "system" fn StopRecord(this: *mut core::ffi::c_void, bfinalize: super::super::Foundation::BOOL, bflushunprocessedsamples: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn StopRecord(this: *mut core::ffi::c_void, bfinalize: windows_core::BOOL, bflushunprocessedsamples: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureEngine_Impl::StopRecord(this, core::mem::transmute_copy(&bfinalize), core::mem::transmute_copy(&bflushunprocessedsamples)).into() @@ -19045,7 +19045,7 @@ impl IMFCapturePreviewSink { { unsafe { (windows_core::Interface::vtable(self).SetSampleCallback)(windows_core::Interface::as_raw(self), dwstreamsinkindex, pcallback.param().abi()).ok() } } - pub unsafe fn GetMirrorState(&self) -> windows_core::Result { + pub unsafe fn GetMirrorState(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMirrorState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -19077,8 +19077,8 @@ pub struct IMFCapturePreviewSink_Vtbl { pub SetRenderSurface: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub UpdateVideo: unsafe extern "system" fn(*mut core::ffi::c_void, *const MFVideoNormalizedRect, *const super::super::Foundation::RECT, *const super::super::Foundation::COLORREF) -> windows_core::HRESULT, pub SetSampleCallback: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetMirrorState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetMirrorState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetMirrorState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetMirrorState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetRotation: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, pub SetRotation: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, pub SetCustomSink: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -19088,8 +19088,8 @@ pub trait IMFCapturePreviewSink_Impl: IMFCaptureSink_Impl { fn SetRenderSurface(&self, psurface: windows_core::Ref) -> windows_core::Result<()>; fn UpdateVideo(&self, psrc: *const MFVideoNormalizedRect, pdst: *const super::super::Foundation::RECT, pborderclr: *const super::super::Foundation::COLORREF) -> windows_core::Result<()>; fn SetSampleCallback(&self, dwstreamsinkindex: u32, pcallback: windows_core::Ref) -> windows_core::Result<()>; - fn GetMirrorState(&self) -> windows_core::Result; - fn SetMirrorState(&self, fmirrorstate: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetMirrorState(&self) -> windows_core::Result; + fn SetMirrorState(&self, fmirrorstate: windows_core::BOOL) -> windows_core::Result<()>; fn GetRotation(&self, dwstreamindex: u32) -> windows_core::Result; fn SetRotation(&self, dwstreamindex: u32, dwrotationvalue: u32) -> windows_core::Result<()>; fn SetCustomSink(&self, pmediasink: windows_core::Ref) -> windows_core::Result<()>; @@ -19120,7 +19120,7 @@ impl IMFCapturePreviewSink_Vtbl { IMFCapturePreviewSink_Impl::SetSampleCallback(this, core::mem::transmute_copy(&dwstreamsinkindex), core::mem::transmute_copy(&pcallback)).into() } } - unsafe extern "system" fn GetMirrorState(this: *mut core::ffi::c_void, pfmirrorstate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetMirrorState(this: *mut core::ffi::c_void, pfmirrorstate: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCapturePreviewSink_Impl::GetMirrorState(this) { @@ -19132,7 +19132,7 @@ impl IMFCapturePreviewSink_Vtbl { } } } - unsafe extern "system" fn SetMirrorState(this: *mut core::ffi::c_void, fmirrorstate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetMirrorState(this: *mut core::ffi::c_void, fmirrorstate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCapturePreviewSink_Impl::SetMirrorState(this, core::mem::transmute_copy(&fmirrorstate)).into() @@ -19479,7 +19479,7 @@ impl IMFCaptureSource { (windows_core::Interface::vtable(self).GetDeviceStreamCategory)(windows_core::Interface::as_raw(self), dwsourcestreamindex, &mut result__).map(|| result__) } } - pub unsafe fn GetMirrorState(&self, dwstreamindex: u32) -> windows_core::Result { + pub unsafe fn GetMirrorState(&self, dwstreamindex: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMirrorState)(windows_core::Interface::as_raw(self), dwstreamindex, &mut result__).map(|| result__) @@ -19509,8 +19509,8 @@ pub struct IMFCaptureSource_Vtbl { pub GetCurrentDeviceMediaType: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDeviceStreamCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetDeviceStreamCategory: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut MF_CAPTURE_ENGINE_STREAM_CATEGORY) -> windows_core::HRESULT, - pub GetMirrorState: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetMirrorState: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetMirrorState: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetMirrorState: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, pub GetStreamIndexFromFriendlyName: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, } pub trait IMFCaptureSource_Impl: windows_core::IUnknownImpl { @@ -19525,8 +19525,8 @@ pub trait IMFCaptureSource_Impl: windows_core::IUnknownImpl { fn GetCurrentDeviceMediaType(&self, dwsourcestreamindex: u32) -> windows_core::Result; fn GetDeviceStreamCount(&self) -> windows_core::Result; fn GetDeviceStreamCategory(&self, dwsourcestreamindex: u32) -> windows_core::Result; - fn GetMirrorState(&self, dwstreamindex: u32) -> windows_core::Result; - fn SetMirrorState(&self, dwstreamindex: u32, fmirrorstate: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetMirrorState(&self, dwstreamindex: u32) -> windows_core::Result; + fn SetMirrorState(&self, dwstreamindex: u32, fmirrorstate: windows_core::BOOL) -> windows_core::Result<()>; fn GetStreamIndexFromFriendlyName(&self, uifriendlyname: u32) -> windows_core::Result; } impl IMFCaptureSource_Vtbl { @@ -19615,7 +19615,7 @@ impl IMFCaptureSource_Vtbl { } } } - unsafe extern "system" fn GetMirrorState(this: *mut core::ffi::c_void, dwstreamindex: u32, pfmirrorstate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetMirrorState(this: *mut core::ffi::c_void, dwstreamindex: u32, pfmirrorstate: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFCaptureSource_Impl::GetMirrorState(this, core::mem::transmute_copy(&dwstreamindex)) { @@ -19627,7 +19627,7 @@ impl IMFCaptureSource_Vtbl { } } } - unsafe extern "system" fn SetMirrorState(this: *mut core::ffi::c_void, dwstreamindex: u32, fmirrorstate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetMirrorState(this: *mut core::ffi::c_void, dwstreamindex: u32, fmirrorstate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFCaptureSource_Impl::SetMirrorState(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&fmirrorstate)).into() @@ -20324,7 +20324,7 @@ impl windows_core::RuntimeName for IMFContentDecryptionModuleAccess {} windows_core::imp::define_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 + pub unsafe fn IsTypeSupported(&self, keysystem: P0, contenttype: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, @@ -20345,7 +20345,7 @@ impl IMFContentDecryptionModuleFactory { #[repr(C)] pub struct IMFContentDecryptionModuleFactory_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsTypeSupported: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR) -> super::super::Foundation::BOOL, + pub IsTypeSupported: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::BOOL, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub CreateContentDecryptionModuleAccess: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const *mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] @@ -20353,13 +20353,13 @@ pub struct IMFContentDecryptionModuleFactory_Vtbl { } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub trait IMFContentDecryptionModuleFactory_Impl: windows_core::IUnknownImpl { - fn IsTypeSupported(&self, keysystem: &windows_core::PCWSTR, contenttype: &windows_core::PCWSTR) -> super::super::Foundation::BOOL; + fn IsTypeSupported(&self, keysystem: &windows_core::PCWSTR, contenttype: &windows_core::PCWSTR) -> windows_core::BOOL; fn CreateContentDecryptionModuleAccess(&self, keysystem: &windows_core::PCWSTR, configurations: *const Option, numconfigurations: u32) -> windows_core::Result; } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IMFContentDecryptionModuleFactory_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsTypeSupported(this: *mut core::ffi::c_void, keysystem: windows_core::PCWSTR, contenttype: windows_core::PCWSTR) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsTypeSupported(this: *mut core::ffi::c_void, keysystem: windows_core::PCWSTR, contenttype: windows_core::PCWSTR) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFContentDecryptionModuleFactory_Impl::IsTypeSupported(this, core::mem::transmute(&keysystem), core::mem::transmute(&contenttype)) @@ -20407,7 +20407,7 @@ impl IMFContentDecryptionModuleSession { pub unsafe fn GetKeyStatuses(&self, keystatuses: *mut *mut MFMediaKeyStatus, numkeystatuses: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetKeyStatuses)(windows_core::Interface::as_raw(self), keystatuses as _, numkeystatuses as _).ok() } } - pub unsafe fn Load(&self, sessionid: P0) -> windows_core::Result + pub unsafe fn Load(&self, sessionid: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -20438,7 +20438,7 @@ pub struct IMFContentDecryptionModuleSession_Vtbl { pub GetSessionId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetExpiration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub GetKeyStatuses: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut MFMediaKeyStatus, *mut u32) -> windows_core::HRESULT, - pub Load: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Load: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GenerateRequest: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const u8, u32) -> windows_core::HRESULT, pub Update: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, u32) -> windows_core::HRESULT, pub Close: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -20448,7 +20448,7 @@ pub trait IMFContentDecryptionModuleSession_Impl: windows_core::IUnknownImpl { fn GetSessionId(&self) -> windows_core::Result; fn GetExpiration(&self) -> windows_core::Result; fn GetKeyStatuses(&self, keystatuses: *mut *mut MFMediaKeyStatus, numkeystatuses: *mut u32) -> windows_core::Result<()>; - fn Load(&self, sessionid: &windows_core::PCWSTR) -> windows_core::Result; + fn Load(&self, sessionid: &windows_core::PCWSTR) -> windows_core::Result; fn GenerateRequest(&self, initdatatype: &windows_core::PCWSTR, initdata: *const u8, initdatasize: u32) -> windows_core::Result<()>; fn Update(&self, response: *const u8, responsesize: u32) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; @@ -20486,7 +20486,7 @@ impl IMFContentDecryptionModuleSession_Vtbl { IMFContentDecryptionModuleSession_Impl::GetKeyStatuses(this, core::mem::transmute_copy(&keystatuses), core::mem::transmute_copy(&numkeystatuses)).into() } } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, sessionid: windows_core::PCWSTR, loaded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, sessionid: windows_core::PCWSTR, loaded: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFContentDecryptionModuleSession_Impl::Load(this, core::mem::transmute(&sessionid)) { @@ -20641,7 +20641,7 @@ impl IMFContentEnabler { pub unsafe fn GetEnableData(&self, ppbdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetEnableData)(windows_core::Interface::as_raw(self), ppbdata as _, pcbdata as _).ok() } } - pub unsafe fn IsAutomaticSupported(&self) -> windows_core::Result { + pub unsafe fn IsAutomaticSupported(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsAutomaticSupported)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -20663,7 +20663,7 @@ pub struct IMFContentEnabler_Vtbl { pub GetEnableType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub GetEnableURL: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR, *mut u32, *mut MF_URL_TRUST_STATUS) -> windows_core::HRESULT, pub GetEnableData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut u8, *mut u32) -> windows_core::HRESULT, - pub IsAutomaticSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsAutomaticSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub AutomaticEnable: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub MonitorEnable: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -20672,7 +20672,7 @@ pub trait IMFContentEnabler_Impl: windows_core::IUnknownImpl { fn GetEnableType(&self) -> windows_core::Result; fn GetEnableURL(&self, ppwszurl: *mut windows_core::PWSTR, pcchurl: *mut u32, ptruststatus: *mut MF_URL_TRUST_STATUS) -> windows_core::Result<()>; fn GetEnableData(&self, ppbdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::Result<()>; - fn IsAutomaticSupported(&self) -> windows_core::Result; + fn IsAutomaticSupported(&self) -> windows_core::Result; fn AutomaticEnable(&self) -> windows_core::Result<()>; fn MonitorEnable(&self) -> windows_core::Result<()>; fn Cancel(&self) -> windows_core::Result<()>; @@ -20703,7 +20703,7 @@ impl IMFContentEnabler_Vtbl { IMFContentEnabler_Impl::GetEnableData(this, core::mem::transmute_copy(&ppbdata), core::mem::transmute_copy(&pcbdata)).into() } } - unsafe extern "system" fn IsAutomaticSupported(this: *mut core::ffi::c_void, pfautomatic: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsAutomaticSupported(this: *mut core::ffi::c_void, pfautomatic: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFContentEnabler_Impl::IsAutomaticSupported(this) { @@ -20999,14 +20999,14 @@ impl IMFDLNASinkInit { #[repr(C)] pub struct IMFDLNASinkInit_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IMFDLNASinkInit_Impl: windows_core::IUnknownImpl { - fn Initialize(&self, pbytestream: windows_core::Ref, fpal: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Initialize(&self, pbytestream: windows_core::Ref, fpal: windows_core::BOOL) -> windows_core::Result<()>; } impl IMFDLNASinkInit_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void, fpal: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pbytestream: *mut core::ffi::c_void, fpal: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDLNASinkInit_Impl::Initialize(this, core::mem::transmute_copy(&pbytestream), core::mem::transmute_copy(&fpal)).into() @@ -21181,20 +21181,20 @@ pub struct IMFDXGIDeviceManager_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub CloseDeviceHandle: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE) -> windows_core::HRESULT, pub GetVideoService: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub LockDevice: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, *const windows_core::GUID, *mut *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub LockDevice: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, *const windows_core::GUID, *mut *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub OpenDeviceHandle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT, pub ResetDevice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub TestDevice: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE) -> windows_core::HRESULT, - pub UnlockDevice: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub UnlockDevice: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IMFDXGIDeviceManager_Impl: windows_core::IUnknownImpl { fn CloseDeviceHandle(&self, hdevice: super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn GetVideoService(&self, hdevice: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppservice: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; - fn LockDevice(&self, hdevice: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppunkdevice: *mut *mut core::ffi::c_void, fblock: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn LockDevice(&self, hdevice: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppunkdevice: *mut *mut core::ffi::c_void, fblock: windows_core::BOOL) -> windows_core::Result<()>; fn OpenDeviceHandle(&self) -> windows_core::Result; fn ResetDevice(&self, punkdevice: windows_core::Ref, resettoken: u32) -> windows_core::Result<()>; fn TestDevice(&self, hdevice: super::super::Foundation::HANDLE) -> windows_core::Result<()>; - fn UnlockDevice(&self, hdevice: super::super::Foundation::HANDLE, fsavestate: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn UnlockDevice(&self, hdevice: super::super::Foundation::HANDLE, fsavestate: windows_core::BOOL) -> windows_core::Result<()>; } impl IMFDXGIDeviceManager_Vtbl { pub const fn new() -> Self { @@ -21210,7 +21210,7 @@ impl IMFDXGIDeviceManager_Vtbl { IMFDXGIDeviceManager_Impl::GetVideoService(this, core::mem::transmute_copy(&hdevice), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppservice)).into() } } - unsafe extern "system" fn LockDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppunkdevice: *mut *mut core::ffi::c_void, fblock: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn LockDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, riid: *const windows_core::GUID, ppunkdevice: *mut *mut core::ffi::c_void, fblock: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDXGIDeviceManager_Impl::LockDevice(this, core::mem::transmute_copy(&hdevice), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunkdevice), core::mem::transmute_copy(&fblock)).into() @@ -21240,7 +21240,7 @@ impl IMFDXGIDeviceManager_Vtbl { IMFDXGIDeviceManager_Impl::TestDevice(this, core::mem::transmute_copy(&hdevice)).into() } } - unsafe extern "system" fn UnlockDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, fsavestate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn UnlockDevice(this: *mut core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, fsavestate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFDXGIDeviceManager_Impl::UnlockDevice(this, core::mem::transmute_copy(&hdevice), core::mem::transmute_copy(&fsavestate)).into() @@ -22317,7 +22317,7 @@ impl windows_core::RuntimeName for IMFGetService {} windows_core::imp::define_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<()> { + pub unsafe fn Query(&self, pstatus: *mut MF_HDCP_STATUS, pfstatus: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Query)(windows_core::Interface::as_raw(self), pstatus as _, pfstatus as _).ok() } } pub unsafe fn Set(&self, status: MF_HDCP_STATUS) -> windows_core::Result<()> { @@ -22327,16 +22327,16 @@ impl IMFHDCPStatus { #[repr(C)] pub struct IMFHDCPStatus_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Query: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MF_HDCP_STATUS, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Query: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MF_HDCP_STATUS, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Set: unsafe extern "system" fn(*mut core::ffi::c_void, MF_HDCP_STATUS) -> windows_core::HRESULT, } pub trait IMFHDCPStatus_Impl: windows_core::IUnknownImpl { - fn Query(&self, pstatus: *mut MF_HDCP_STATUS, pfstatus: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Query(&self, pstatus: *mut MF_HDCP_STATUS, pfstatus: *mut windows_core::BOOL) -> windows_core::Result<()>; fn Set(&self, status: MF_HDCP_STATUS) -> windows_core::Result<()>; } impl IMFHDCPStatus_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Query(this: *mut core::ffi::c_void, pstatus: *mut MF_HDCP_STATUS, pfstatus: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Query(this: *mut core::ffi::c_void, pstatus: *mut MF_HDCP_STATUS, pfstatus: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFHDCPStatus_Impl::Query(this, core::mem::transmute_copy(&pstatus), core::mem::transmute_copy(&pfstatus)).into() @@ -22418,7 +22418,7 @@ impl IMFHttpDownloadRequest { (windows_core::Interface::vtable(self).GetURL)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn HasNullSourceOrigin(&self) -> windows_core::Result { + pub unsafe fn HasNullSourceOrigin(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HasNullSourceOrigin)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -22433,7 +22433,7 @@ impl IMFHttpDownloadRequest { (windows_core::Interface::vtable(self).GetHttpStatus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetAtEndOfPayload(&self) -> windows_core::Result { + pub unsafe fn GetAtEndOfPayload(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAtEndOfPayload)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -22467,10 +22467,10 @@ pub struct IMFHttpDownloadRequest_Vtbl { pub EndReadPayload: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u64, *mut u32) -> windows_core::HRESULT, pub QueryHeader: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetURL: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub HasNullSourceOrigin: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub HasNullSourceOrigin: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetTimeSeekResult: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64, *mut u64, *mut u64) -> windows_core::HRESULT, pub GetHttpStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub GetAtEndOfPayload: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetAtEndOfPayload: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetTotalLength: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub GetRangeEndOffset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub Close: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -22485,10 +22485,10 @@ pub trait IMFHttpDownloadRequest_Impl: windows_core::IUnknownImpl { fn EndReadPayload(&self, presult: windows_core::Ref, pqwoffset: *mut u64, pcbread: *mut u32) -> windows_core::Result<()>; fn QueryHeader(&self, szheadername: &windows_core::PCWSTR, dwindex: u32) -> windows_core::Result; fn GetURL(&self) -> windows_core::Result; - fn HasNullSourceOrigin(&self) -> windows_core::Result; + fn HasNullSourceOrigin(&self) -> windows_core::Result; fn GetTimeSeekResult(&self, pqwstarttime: *mut u64, pqwstoptime: *mut u64, pqwduration: *mut u64) -> windows_core::Result<()>; fn GetHttpStatus(&self) -> windows_core::Result; - fn GetAtEndOfPayload(&self) -> windows_core::Result; + fn GetAtEndOfPayload(&self) -> windows_core::Result; fn GetTotalLength(&self) -> windows_core::Result; fn GetRangeEndOffset(&self) -> windows_core::Result; fn Close(&self) -> windows_core::Result<()>; @@ -22561,7 +22561,7 @@ impl IMFHttpDownloadRequest_Vtbl { } } } - unsafe extern "system" fn HasNullSourceOrigin(this: *mut core::ffi::c_void, pfnullsourceorigin: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn HasNullSourceOrigin(this: *mut core::ffi::c_void, pfnullsourceorigin: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFHttpDownloadRequest_Impl::HasNullSourceOrigin(this) { @@ -22591,7 +22591,7 @@ impl IMFHttpDownloadRequest_Vtbl { } } } - unsafe extern "system" fn GetAtEndOfPayload(this: *mut core::ffi::c_void, pfatendofpayload: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetAtEndOfPayload(this: *mut core::ffi::c_void, pfatendofpayload: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFHttpDownloadRequest_Impl::GetAtEndOfPayload(this) { @@ -22686,12 +22686,12 @@ impl IMFHttpDownloadSession { pub struct IMFHttpDownloadSession_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetServer: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32) -> windows_core::HRESULT, - pub CreateRequest: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL, super::super::Foundation::BOOL, windows_core::PCWSTR, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateRequest: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL, windows_core::BOOL, windows_core::PCWSTR, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Close: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IMFHttpDownloadSession_Impl: windows_core::IUnknownImpl { fn SetServer(&self, szservername: &windows_core::PCWSTR, nport: u32) -> windows_core::Result<()>; - fn CreateRequest(&self, szobjectname: &windows_core::PCWSTR, fbypassproxycache: super::super::Foundation::BOOL, fsecure: super::super::Foundation::BOOL, szverb: &windows_core::PCWSTR, szreferrer: &windows_core::PCWSTR) -> windows_core::Result; + fn CreateRequest(&self, szobjectname: &windows_core::PCWSTR, fbypassproxycache: windows_core::BOOL, fsecure: windows_core::BOOL, szverb: &windows_core::PCWSTR, szreferrer: &windows_core::PCWSTR) -> windows_core::Result; fn Close(&self) -> windows_core::Result<()>; } impl IMFHttpDownloadSession_Vtbl { @@ -22702,7 +22702,7 @@ impl IMFHttpDownloadSession_Vtbl { IMFHttpDownloadSession_Impl::SetServer(this, core::mem::transmute(&szservername), core::mem::transmute_copy(&nport)).into() } } - unsafe extern "system" fn CreateRequest(this: *mut core::ffi::c_void, szobjectname: windows_core::PCWSTR, fbypassproxycache: super::super::Foundation::BOOL, fsecure: super::super::Foundation::BOOL, szverb: windows_core::PCWSTR, szreferrer: windows_core::PCWSTR, pprequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateRequest(this: *mut core::ffi::c_void, szobjectname: windows_core::PCWSTR, fbypassproxycache: windows_core::BOOL, fsecure: windows_core::BOOL, szverb: windows_core::PCWSTR, szreferrer: windows_core::PCWSTR, pprequest: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFHttpDownloadSession_Impl::CreateRequest(this, core::mem::transmute(&szobjectname), core::mem::transmute_copy(&fbypassproxycache), core::mem::transmute_copy(&fsecure), core::mem::transmute(&szverb), core::mem::transmute(&szreferrer)) { @@ -23167,7 +23167,7 @@ impl IMFMediaEngine { pub unsafe fn GetReadyState(&self) -> u16 { unsafe { (windows_core::Interface::vtable(self).GetReadyState)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn IsSeeking(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsSeeking(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsSeeking)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetCurrentTime(&self) -> f64 { @@ -23182,7 +23182,7 @@ impl IMFMediaEngine { pub unsafe fn GetDuration(&self) -> f64 { unsafe { (windows_core::Interface::vtable(self).GetDuration)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn IsPaused(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsPaused(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsPaused)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetDefaultPlaybackRate(&self) -> f64 { @@ -23209,16 +23209,16 @@ impl IMFMediaEngine { (windows_core::Interface::vtable(self).GetSeekable)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn IsEnded(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsEnded(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsEnded)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn GetAutoPlay(&self) -> super::super::Foundation::BOOL { + pub unsafe fn GetAutoPlay(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetAutoPlay)(windows_core::Interface::as_raw(self)) } } pub unsafe fn SetAutoPlay(&self, autoplay: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetAutoPlay)(windows_core::Interface::as_raw(self), autoplay.into()).ok() } } - pub unsafe fn GetLoop(&self) -> super::super::Foundation::BOOL { + pub unsafe fn GetLoop(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetLoop)(windows_core::Interface::as_raw(self)) } } pub unsafe fn SetLoop(&self, r#loop: bool) -> windows_core::Result<()> { @@ -23230,7 +23230,7 @@ impl IMFMediaEngine { pub unsafe fn Pause(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Pause)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn GetMuted(&self) -> super::super::Foundation::BOOL { + pub unsafe fn GetMuted(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetMuted)(windows_core::Interface::as_raw(self)) } } pub unsafe fn SetMuted(&self, muted: bool) -> windows_core::Result<()> { @@ -23242,10 +23242,10 @@ impl IMFMediaEngine { pub unsafe fn SetVolume(&self, volume: f64) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetVolume)(windows_core::Interface::as_raw(self), volume).ok() } } - pub unsafe fn HasVideo(&self) -> super::super::Foundation::BOOL { + pub unsafe fn HasVideo(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).HasVideo)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn HasAudio(&self) -> super::super::Foundation::BOOL { + pub unsafe fn HasAudio(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).HasAudio)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetNativeVideoSize(&self, cx: Option<*mut u32>, cy: Option<*mut u32>) -> windows_core::Result<()> { @@ -23285,31 +23285,31 @@ pub struct IMFMediaEngine_Vtbl { pub Load: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub CanPlayType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut MF_MEDIA_ENGINE_CANPLAY) -> windows_core::HRESULT, pub GetReadyState: unsafe extern "system" fn(*mut core::ffi::c_void) -> u16, - pub IsSeeking: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsSeeking: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetCurrentTime: unsafe extern "system" fn(*mut core::ffi::c_void) -> f64, pub SetCurrentTime: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, pub GetStartTime: unsafe extern "system" fn(*mut core::ffi::c_void) -> f64, pub GetDuration: unsafe extern "system" fn(*mut core::ffi::c_void) -> f64, - pub IsPaused: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsPaused: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetDefaultPlaybackRate: unsafe extern "system" fn(*mut core::ffi::c_void) -> f64, pub SetDefaultPlaybackRate: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, pub GetPlaybackRate: unsafe extern "system" fn(*mut core::ffi::c_void) -> f64, pub SetPlaybackRate: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, pub GetPlayed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSeekable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsEnded: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, - pub GetAutoPlay: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, - pub SetAutoPlay: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetLoop: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, - pub SetLoop: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsEnded: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, + pub GetAutoPlay: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, + pub SetAutoPlay: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetLoop: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, + pub SetLoop: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub Play: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Pause: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetMuted: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, - pub SetMuted: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetMuted: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, + pub SetMuted: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetVolume: unsafe extern "system" fn(*mut core::ffi::c_void) -> f64, pub SetVolume: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, - pub HasVideo: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, - pub HasAudio: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub HasVideo: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, + pub HasAudio: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetNativeVideoSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32) -> windows_core::HRESULT, pub GetVideoAspectRatio: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32) -> windows_core::HRESULT, pub Shutdown: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -23329,31 +23329,31 @@ pub trait IMFMediaEngine_Impl: windows_core::IUnknownImpl { fn Load(&self) -> windows_core::Result<()>; fn CanPlayType(&self, r#type: &windows_core::BSTR) -> windows_core::Result; fn GetReadyState(&self) -> u16; - fn IsSeeking(&self) -> super::super::Foundation::BOOL; + fn IsSeeking(&self) -> windows_core::BOOL; fn GetCurrentTime(&self) -> f64; fn SetCurrentTime(&self, seektime: f64) -> windows_core::Result<()>; fn GetStartTime(&self) -> f64; fn GetDuration(&self) -> f64; - fn IsPaused(&self) -> super::super::Foundation::BOOL; + fn IsPaused(&self) -> windows_core::BOOL; fn GetDefaultPlaybackRate(&self) -> f64; fn SetDefaultPlaybackRate(&self, rate: f64) -> windows_core::Result<()>; fn GetPlaybackRate(&self) -> f64; fn SetPlaybackRate(&self, rate: f64) -> windows_core::Result<()>; fn GetPlayed(&self) -> windows_core::Result; fn GetSeekable(&self) -> windows_core::Result; - fn IsEnded(&self) -> super::super::Foundation::BOOL; - fn GetAutoPlay(&self) -> super::super::Foundation::BOOL; - fn SetAutoPlay(&self, autoplay: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetLoop(&self) -> super::super::Foundation::BOOL; - fn SetLoop(&self, r#loop: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsEnded(&self) -> windows_core::BOOL; + fn GetAutoPlay(&self) -> windows_core::BOOL; + fn SetAutoPlay(&self, autoplay: windows_core::BOOL) -> windows_core::Result<()>; + fn GetLoop(&self) -> windows_core::BOOL; + fn SetLoop(&self, r#loop: windows_core::BOOL) -> windows_core::Result<()>; fn Play(&self) -> windows_core::Result<()>; fn Pause(&self) -> windows_core::Result<()>; - fn GetMuted(&self) -> super::super::Foundation::BOOL; - fn SetMuted(&self, muted: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetMuted(&self) -> windows_core::BOOL; + fn SetMuted(&self, muted: windows_core::BOOL) -> windows_core::Result<()>; fn GetVolume(&self) -> f64; fn SetVolume(&self, volume: f64) -> windows_core::Result<()>; - fn HasVideo(&self) -> super::super::Foundation::BOOL; - fn HasAudio(&self) -> super::super::Foundation::BOOL; + fn HasVideo(&self) -> windows_core::BOOL; + fn HasAudio(&self) -> windows_core::BOOL; fn GetNativeVideoSize(&self, cx: *mut u32, cy: *mut u32) -> windows_core::Result<()>; fn GetVideoAspectRatio(&self, cx: *mut u32, cy: *mut u32) -> windows_core::Result<()>; fn Shutdown(&self) -> windows_core::Result<()>; @@ -23458,7 +23458,7 @@ impl IMFMediaEngine_Vtbl { IMFMediaEngine_Impl::GetReadyState(this) } } - unsafe extern "system" fn IsSeeking(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsSeeking(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::IsSeeking(this) @@ -23488,7 +23488,7 @@ impl IMFMediaEngine_Vtbl { IMFMediaEngine_Impl::GetDuration(this) } } - unsafe extern "system" fn IsPaused(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsPaused(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::IsPaused(this) @@ -23542,31 +23542,31 @@ impl IMFMediaEngine_Vtbl { } } } - unsafe extern "system" fn IsEnded(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsEnded(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::IsEnded(this) } } - unsafe extern "system" fn GetAutoPlay(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetAutoPlay(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::GetAutoPlay(this) } } - unsafe extern "system" fn SetAutoPlay(this: *mut core::ffi::c_void, autoplay: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAutoPlay(this: *mut core::ffi::c_void, autoplay: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::SetAutoPlay(this, core::mem::transmute_copy(&autoplay)).into() } } - unsafe extern "system" fn GetLoop(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetLoop(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::GetLoop(this) } } - unsafe extern "system" fn SetLoop(this: *mut core::ffi::c_void, r#loop: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetLoop(this: *mut core::ffi::c_void, r#loop: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::SetLoop(this, core::mem::transmute_copy(&r#loop)).into() @@ -23584,13 +23584,13 @@ impl IMFMediaEngine_Vtbl { IMFMediaEngine_Impl::Pause(this).into() } } - unsafe extern "system" fn GetMuted(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetMuted(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::GetMuted(this) } } - unsafe extern "system" fn SetMuted(this: *mut core::ffi::c_void, muted: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetMuted(this: *mut core::ffi::c_void, muted: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::SetMuted(this, core::mem::transmute_copy(&muted)).into() @@ -23608,13 +23608,13 @@ impl IMFMediaEngine_Vtbl { IMFMediaEngine_Impl::SetVolume(this, core::mem::transmute_copy(&volume)).into() } } - unsafe extern "system" fn HasVideo(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn HasVideo(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::HasVideo(this) } } - unsafe extern "system" fn HasAudio(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn HasAudio(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngine_Impl::HasAudio(this) @@ -23996,7 +23996,7 @@ impl IMFMediaEngineClassFactoryEx { (windows_core::Interface::vtable(self).CreateMediaKeys)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(keysystem), core::mem::transmute_copy(cdmstorepath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn IsTypeSupported(&self, r#type: &windows_core::BSTR, keysystem: &windows_core::BSTR) -> windows_core::Result { + pub unsafe fn IsTypeSupported(&self, r#type: &windows_core::BSTR, keysystem: &windows_core::BSTR) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsTypeSupported)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(r#type), core::mem::transmute_copy(keysystem), &mut result__).map(|| result__) @@ -24008,12 +24008,12 @@ pub struct IMFMediaEngineClassFactoryEx_Vtbl { pub base__: IMFMediaEngineClassFactory_Vtbl, pub CreateMediaSourceExtension: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateMediaKeys: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsTypeSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsTypeSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IMFMediaEngineClassFactoryEx_Impl: IMFMediaEngineClassFactory_Impl { fn CreateMediaSourceExtension(&self, dwflags: u32, pattr: windows_core::Ref) -> windows_core::Result; fn CreateMediaKeys(&self, keysystem: &windows_core::BSTR, cdmstorepath: &windows_core::BSTR) -> windows_core::Result; - fn IsTypeSupported(&self, r#type: &windows_core::BSTR, keysystem: &windows_core::BSTR) -> windows_core::Result; + fn IsTypeSupported(&self, r#type: &windows_core::BSTR, keysystem: &windows_core::BSTR) -> windows_core::Result; } impl IMFMediaEngineClassFactoryEx_Vtbl { pub const fn new() -> Self { @@ -24041,7 +24041,7 @@ impl IMFMediaEngineClassFactoryEx_Vtbl { } } } - unsafe extern "system" fn IsTypeSupported(this: *mut core::ffi::c_void, r#type: *mut core::ffi::c_void, keysystem: *mut core::ffi::c_void, issupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsTypeSupported(this: *mut core::ffi::c_void, r#type: *mut core::ffi::c_void, keysystem: *mut core::ffi::c_void, issupported: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineClassFactoryEx_Impl::IsTypeSupported(this, core::mem::transmute(&r#type), core::mem::transmute(&keysystem)) { @@ -24194,7 +24194,7 @@ impl IMFMediaEngineEx { pub unsafe fn SetBalance(&self, balance: f64) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBalance)(windows_core::Interface::as_raw(self), balance).ok() } } - pub unsafe fn IsPlaybackRateSupported(&self, rate: f64) -> super::super::Foundation::BOOL { + pub unsafe fn IsPlaybackRateSupported(&self, rate: f64) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsPlaybackRateSupported)(windows_core::Interface::as_raw(self), rate) } } pub unsafe fn FrameStep(&self, forward: bool) -> windows_core::Result<()> { @@ -24226,7 +24226,7 @@ impl IMFMediaEngineEx { (windows_core::Interface::vtable(self).GetStreamAttribute)(windows_core::Interface::as_raw(self), dwstreamindex, guidmfattribute, &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn GetStreamSelection(&self, dwstreamindex: u32) -> windows_core::Result { + pub unsafe fn GetStreamSelection(&self, dwstreamindex: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStreamSelection)(windows_core::Interface::as_raw(self), dwstreamindex, &mut result__).map(|| result__) @@ -24238,7 +24238,7 @@ impl IMFMediaEngineEx { pub unsafe fn ApplyStreamSelections(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).ApplyStreamSelections)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn IsProtected(&self) -> windows_core::Result { + pub unsafe fn IsProtected(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsProtected)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -24271,7 +24271,7 @@ impl IMFMediaEngineEx { pub unsafe fn CancelTimelineMarkerTimer(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).CancelTimelineMarkerTimer)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn IsStereo3D(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsStereo3D(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsStereo3D)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetStereo3DFramePackingMode(&self) -> windows_core::Result { @@ -24322,7 +24322,7 @@ impl IMFMediaEngineEx { pub unsafe fn SetAudioEndpointRole(&self, role: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetAudioEndpointRole)(windows_core::Interface::as_raw(self), role).ok() } } - pub unsafe fn GetRealTimeMode(&self) -> windows_core::Result { + pub unsafe fn GetRealTimeMode(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRealTimeMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -24349,8 +24349,8 @@ pub struct IMFMediaEngineEx_Vtbl { pub UpdateVideoStream: unsafe extern "system" fn(*mut core::ffi::c_void, *const MFVideoNormalizedRect, *const super::super::Foundation::RECT, *const MFARGB) -> windows_core::HRESULT, pub GetBalance: unsafe extern "system" fn(*mut core::ffi::c_void) -> f64, pub SetBalance: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, - pub IsPlaybackRateSupported: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> super::super::Foundation::BOOL, - pub FrameStep: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsPlaybackRateSupported: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::BOOL, + pub FrameStep: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetResourceCharacteristics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub GetPresentationAttribute: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::HRESULT, @@ -24361,32 +24361,32 @@ pub struct IMFMediaEngineEx_Vtbl { pub GetStreamAttribute: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_core::GUID, *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] GetStreamAttribute: usize, - pub GetStreamSelection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetStreamSelection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetStreamSelection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetStreamSelection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, pub ApplyStreamSelections: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsProtected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub InsertVideoEffect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub InsertAudioEffect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsProtected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub InsertVideoEffect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub InsertAudioEffect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub RemoveAllEffects: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SetTimelineMarkerTimer: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, pub GetTimelineMarkerTimer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub CancelTimelineMarkerTimer: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsStereo3D: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsStereo3D: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetStereo3DFramePackingMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MF_MEDIA_ENGINE_S3D_PACKING_MODE) -> windows_core::HRESULT, pub SetStereo3DFramePackingMode: unsafe extern "system" fn(*mut core::ffi::c_void, MF_MEDIA_ENGINE_S3D_PACKING_MODE) -> windows_core::HRESULT, pub GetStereo3DRenderMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MF3DVideoOutputType) -> windows_core::HRESULT, pub SetStereo3DRenderMode: unsafe extern "system" fn(*mut core::ffi::c_void, MF3DVideoOutputType) -> windows_core::HRESULT, - pub EnableWindowlessSwapchainMode: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableWindowlessSwapchainMode: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetVideoSwapchainHandle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT, - pub EnableHorizontalMirrorMode: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableHorizontalMirrorMode: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetAudioStreamCategory: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetAudioStreamCategory: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetAudioEndpointRole: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetAudioEndpointRole: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub GetRealTimeMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetRealTimeMode: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetRealTimeMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetRealTimeMode: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetCurrentTimeEx: unsafe extern "system" fn(*mut core::ffi::c_void, f64, MF_MEDIA_ENGINE_SEEK_MODE) -> windows_core::HRESULT, - pub EnableTimeUpdateTimer: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableTimeUpdateTimer: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub trait IMFMediaEngineEx_Impl: IMFMediaEngine_Impl { @@ -24395,38 +24395,38 @@ pub trait IMFMediaEngineEx_Impl: IMFMediaEngine_Impl { fn UpdateVideoStream(&self, psrc: *const MFVideoNormalizedRect, pdst: *const super::super::Foundation::RECT, pborderclr: *const MFARGB) -> windows_core::Result<()>; fn GetBalance(&self) -> f64; fn SetBalance(&self, balance: f64) -> windows_core::Result<()>; - fn IsPlaybackRateSupported(&self, rate: f64) -> super::super::Foundation::BOOL; - fn FrameStep(&self, forward: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsPlaybackRateSupported(&self, rate: f64) -> windows_core::BOOL; + fn FrameStep(&self, forward: windows_core::BOOL) -> windows_core::Result<()>; fn GetResourceCharacteristics(&self) -> windows_core::Result; fn GetPresentationAttribute(&self, guidmfattribute: *const windows_core::GUID) -> windows_core::Result; fn GetNumberOfStreams(&self) -> windows_core::Result; fn GetStreamAttribute(&self, dwstreamindex: u32, guidmfattribute: *const windows_core::GUID) -> windows_core::Result; - fn GetStreamSelection(&self, dwstreamindex: u32) -> windows_core::Result; - fn SetStreamSelection(&self, dwstreamindex: u32, enabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetStreamSelection(&self, dwstreamindex: u32) -> windows_core::Result; + fn SetStreamSelection(&self, dwstreamindex: u32, enabled: windows_core::BOOL) -> windows_core::Result<()>; fn ApplyStreamSelections(&self) -> windows_core::Result<()>; - fn IsProtected(&self) -> windows_core::Result; - fn InsertVideoEffect(&self, peffect: windows_core::Ref, foptional: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn InsertAudioEffect(&self, peffect: windows_core::Ref, foptional: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsProtected(&self) -> windows_core::Result; + fn InsertVideoEffect(&self, peffect: windows_core::Ref, foptional: windows_core::BOOL) -> windows_core::Result<()>; + fn InsertAudioEffect(&self, peffect: windows_core::Ref, foptional: windows_core::BOOL) -> windows_core::Result<()>; fn RemoveAllEffects(&self) -> windows_core::Result<()>; fn SetTimelineMarkerTimer(&self, timetofire: f64) -> windows_core::Result<()>; fn GetTimelineMarkerTimer(&self) -> windows_core::Result; fn CancelTimelineMarkerTimer(&self) -> windows_core::Result<()>; - fn IsStereo3D(&self) -> super::super::Foundation::BOOL; + fn IsStereo3D(&self) -> windows_core::BOOL; fn GetStereo3DFramePackingMode(&self) -> windows_core::Result; fn SetStereo3DFramePackingMode(&self, packmode: MF_MEDIA_ENGINE_S3D_PACKING_MODE) -> windows_core::Result<()>; fn GetStereo3DRenderMode(&self) -> windows_core::Result; fn SetStereo3DRenderMode(&self, outputtype: MF3DVideoOutputType) -> windows_core::Result<()>; - fn EnableWindowlessSwapchainMode(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EnableWindowlessSwapchainMode(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; fn GetVideoSwapchainHandle(&self) -> windows_core::Result; - fn EnableHorizontalMirrorMode(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EnableHorizontalMirrorMode(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; fn GetAudioStreamCategory(&self) -> windows_core::Result; fn SetAudioStreamCategory(&self, category: u32) -> windows_core::Result<()>; fn GetAudioEndpointRole(&self) -> windows_core::Result; fn SetAudioEndpointRole(&self, role: u32) -> windows_core::Result<()>; - fn GetRealTimeMode(&self) -> windows_core::Result; - fn SetRealTimeMode(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetRealTimeMode(&self) -> windows_core::Result; + fn SetRealTimeMode(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; fn SetCurrentTimeEx(&self, seektime: f64, seekmode: MF_MEDIA_ENGINE_SEEK_MODE) -> windows_core::Result<()>; - fn EnableTimeUpdateTimer(&self, fenabletimer: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EnableTimeUpdateTimer(&self, fenabletimer: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] impl IMFMediaEngineEx_Vtbl { @@ -24467,13 +24467,13 @@ impl IMFMediaEngineEx_Vtbl { IMFMediaEngineEx_Impl::SetBalance(this, core::mem::transmute_copy(&balance)).into() } } - unsafe extern "system" fn IsPlaybackRateSupported(this: *mut core::ffi::c_void, rate: f64) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsPlaybackRateSupported(this: *mut core::ffi::c_void, rate: f64) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::IsPlaybackRateSupported(this, core::mem::transmute_copy(&rate)) } } - unsafe extern "system" fn FrameStep(this: *mut core::ffi::c_void, forward: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn FrameStep(this: *mut core::ffi::c_void, forward: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::FrameStep(this, core::mem::transmute_copy(&forward)).into() @@ -24527,7 +24527,7 @@ impl IMFMediaEngineEx_Vtbl { } } } - unsafe extern "system" fn GetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, penabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, penabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineEx_Impl::GetStreamSelection(this, core::mem::transmute_copy(&dwstreamindex)) { @@ -24539,7 +24539,7 @@ impl IMFMediaEngineEx_Vtbl { } } } - unsafe extern "system" fn SetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, enabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, enabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::SetStreamSelection(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&enabled)).into() @@ -24551,7 +24551,7 @@ impl IMFMediaEngineEx_Vtbl { IMFMediaEngineEx_Impl::ApplyStreamSelections(this).into() } } - unsafe extern "system" fn IsProtected(this: *mut core::ffi::c_void, pprotected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsProtected(this: *mut core::ffi::c_void, pprotected: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineEx_Impl::IsProtected(this) { @@ -24563,13 +24563,13 @@ impl IMFMediaEngineEx_Vtbl { } } } - unsafe extern "system" fn InsertVideoEffect(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void, foptional: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn InsertVideoEffect(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void, foptional: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::InsertVideoEffect(this, core::mem::transmute_copy(&peffect), core::mem::transmute_copy(&foptional)).into() } } - unsafe extern "system" fn InsertAudioEffect(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void, foptional: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn InsertAudioEffect(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void, foptional: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::InsertAudioEffect(this, core::mem::transmute_copy(&peffect), core::mem::transmute_copy(&foptional)).into() @@ -24605,7 +24605,7 @@ impl IMFMediaEngineEx_Vtbl { IMFMediaEngineEx_Impl::CancelTimelineMarkerTimer(this).into() } } - unsafe extern "system" fn IsStereo3D(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsStereo3D(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::IsStereo3D(this) @@ -24647,7 +24647,7 @@ impl IMFMediaEngineEx_Vtbl { IMFMediaEngineEx_Impl::SetStereo3DRenderMode(this, core::mem::transmute_copy(&outputtype)).into() } } - unsafe extern "system" fn EnableWindowlessSwapchainMode(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableWindowlessSwapchainMode(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::EnableWindowlessSwapchainMode(this, core::mem::transmute_copy(&fenable)).into() @@ -24665,7 +24665,7 @@ impl IMFMediaEngineEx_Vtbl { } } } - unsafe extern "system" fn EnableHorizontalMirrorMode(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableHorizontalMirrorMode(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::EnableHorizontalMirrorMode(this, core::mem::transmute_copy(&fenable)).into() @@ -24707,7 +24707,7 @@ impl IMFMediaEngineEx_Vtbl { IMFMediaEngineEx_Impl::SetAudioEndpointRole(this, core::mem::transmute_copy(&role)).into() } } - unsafe extern "system" fn GetRealTimeMode(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetRealTimeMode(this: *mut core::ffi::c_void, pfenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineEx_Impl::GetRealTimeMode(this) { @@ -24719,7 +24719,7 @@ impl IMFMediaEngineEx_Vtbl { } } } - unsafe extern "system" fn SetRealTimeMode(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetRealTimeMode(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::SetRealTimeMode(this, core::mem::transmute_copy(&fenable)).into() @@ -24731,7 +24731,7 @@ impl IMFMediaEngineEx_Vtbl { IMFMediaEngineEx_Impl::SetCurrentTimeEx(this, core::mem::transmute_copy(&seektime), core::mem::transmute_copy(&seekmode)).into() } } - unsafe extern "system" fn EnableTimeUpdateTimer(this: *mut core::ffi::c_void, fenabletimer: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableTimeUpdateTimer(this: *mut core::ffi::c_void, fenabletimer: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineEx_Impl::EnableTimeUpdateTimer(this, core::mem::transmute_copy(&fenabletimer)).into() @@ -24820,20 +24820,20 @@ impl IMFMediaEngineExtension { #[repr(C)] pub struct IMFMediaEngineExtension_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub CanPlayType: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut core::ffi::c_void, *mut MF_MEDIA_ENGINE_CANPLAY) -> windows_core::HRESULT, + pub CanPlayType: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut core::ffi::c_void, *mut MF_MEDIA_ENGINE_CANPLAY) -> windows_core::HRESULT, pub BeginCreateObject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, MF_OBJECT_TYPE, *mut *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub CancelObjectCreation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub EndCreateObject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IMFMediaEngineExtension_Impl: windows_core::IUnknownImpl { - fn CanPlayType(&self, audioonly: super::super::Foundation::BOOL, mimetype: &windows_core::BSTR) -> windows_core::Result; + fn CanPlayType(&self, audioonly: windows_core::BOOL, mimetype: &windows_core::BSTR) -> windows_core::Result; fn BeginCreateObject(&self, bstrurl: &windows_core::BSTR, pbytestream: windows_core::Ref, r#type: MF_OBJECT_TYPE, ppiunknowncancelcookie: windows_core::OutRef<'_, windows_core::IUnknown>, pcallback: windows_core::Ref, punkstate: windows_core::Ref) -> windows_core::Result<()>; fn CancelObjectCreation(&self, piunknowncancelcookie: windows_core::Ref) -> windows_core::Result<()>; fn EndCreateObject(&self, presult: windows_core::Ref) -> windows_core::Result; } impl IMFMediaEngineExtension_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CanPlayType(this: *mut core::ffi::c_void, audioonly: super::super::Foundation::BOOL, mimetype: *mut core::ffi::c_void, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> windows_core::HRESULT { + unsafe extern "system" fn CanPlayType(this: *mut core::ffi::c_void, audioonly: windows_core::BOOL, mimetype: *mut core::ffi::c_void, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineExtension_Impl::CanPlayType(this, core::mem::transmute_copy(&audioonly), core::mem::transmute(&mimetype)) { @@ -24945,21 +24945,21 @@ impl windows_core::RuntimeName for IMFMediaEngineNotify {} windows_core::imp::define_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<()> { + pub unsafe fn GetOPMInfo(&self, pstatus: *mut MF_MEDIA_ENGINE_OPM_STATUS, pconstricted: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetOPMInfo)(windows_core::Interface::as_raw(self), pstatus as _, pconstricted as _).ok() } } } #[repr(C)] pub struct IMFMediaEngineOPMInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetOPMInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MF_MEDIA_ENGINE_OPM_STATUS, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetOPMInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MF_MEDIA_ENGINE_OPM_STATUS, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IMFMediaEngineOPMInfo_Impl: windows_core::IUnknownImpl { - fn GetOPMInfo(&self, pstatus: *mut MF_MEDIA_ENGINE_OPM_STATUS, pconstricted: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetOPMInfo(&self, pstatus: *mut MF_MEDIA_ENGINE_OPM_STATUS, pconstricted: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IMFMediaEngineOPMInfo_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetOPMInfo(this: *mut core::ffi::c_void, pstatus: *mut MF_MEDIA_ENGINE_OPM_STATUS, pconstricted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetOPMInfo(this: *mut core::ffi::c_void, pstatus: *mut MF_MEDIA_ENGINE_OPM_STATUS, pconstricted: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineOPMInfo_Impl::GetOPMInfo(this, core::mem::transmute_copy(&pstatus), core::mem::transmute_copy(&pconstricted)).into() @@ -25275,7 +25275,7 @@ impl windows_core::RuntimeName for IMFMediaEngineSrcElementsEx {} windows_core::imp::define_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 { + pub unsafe fn ShouldTransferSource(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShouldTransferSource)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -25296,18 +25296,18 @@ impl IMFMediaEngineSupportsSourceTransfer { #[repr(C)] pub struct IMFMediaEngineSupportsSourceTransfer_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub ShouldTransferSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ShouldTransferSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub DetachMediaSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub AttachMediaSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IMFMediaEngineSupportsSourceTransfer_Impl: windows_core::IUnknownImpl { - fn ShouldTransferSource(&self) -> windows_core::Result; + fn ShouldTransferSource(&self) -> windows_core::Result; fn DetachMediaSource(&self, ppbytestream: windows_core::OutRef<'_, IMFByteStream>, ppmediasource: windows_core::OutRef<'_, IMFMediaSource>, ppmse: windows_core::OutRef<'_, IMFMediaSourceExtension>) -> windows_core::Result<()>; fn AttachMediaSource(&self, pbytestream: windows_core::Ref, pmediasource: windows_core::Ref, pmse: windows_core::Ref) -> windows_core::Result<()>; } impl IMFMediaEngineSupportsSourceTransfer_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn ShouldTransferSource(this: *mut core::ffi::c_void, pfshouldtransfer: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ShouldTransferSource(this: *mut core::ffi::c_void, pfshouldtransfer: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaEngineSupportsSourceTransfer_Impl::ShouldTransferSource(this) { @@ -25379,7 +25379,7 @@ impl windows_core::RuntimeName for IMFMediaEngineTransferSource {} windows_core::imp::define_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 { + pub unsafe fn ShouldDelayTheLoadEvent(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).ShouldDelayTheLoadEvent)(windows_core::Interface::as_raw(self)) } } pub unsafe fn ConnectWebAudio(&self, dwsamplerate: u32) -> windows_core::Result { @@ -25395,18 +25395,18 @@ impl IMFMediaEngineWebSupport { #[repr(C)] pub struct IMFMediaEngineWebSupport_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub ShouldDelayTheLoadEvent: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub ShouldDelayTheLoadEvent: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub ConnectWebAudio: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DisconnectWebAudio: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IMFMediaEngineWebSupport_Impl: windows_core::IUnknownImpl { - fn ShouldDelayTheLoadEvent(&self) -> super::super::Foundation::BOOL; + fn ShouldDelayTheLoadEvent(&self) -> windows_core::BOOL; fn ConnectWebAudio(&self, dwsamplerate: u32) -> windows_core::Result; fn DisconnectWebAudio(&self) -> windows_core::Result<()>; } impl IMFMediaEngineWebSupport_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn ShouldDelayTheLoadEvent(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn ShouldDelayTheLoadEvent(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaEngineWebSupport_Impl::ShouldDelayTheLoadEvent(this) @@ -25984,7 +25984,7 @@ impl IMFMediaKeySession2 { pub unsafe fn get_KeyStatuses(&self, pkeystatusesarray: *mut *mut MFMediaKeyStatus, pusize: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).get_KeyStatuses)(windows_core::Interface::as_raw(self), pkeystatusesarray as _, pusize as _).ok() } } - pub unsafe fn Load(&self, bstrsessionid: &windows_core::BSTR) -> windows_core::Result { + pub unsafe fn Load(&self, bstrsessionid: &windows_core::BSTR) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Load)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrsessionid), &mut result__).map(|| result__) @@ -26010,7 +26010,7 @@ impl IMFMediaKeySession2 { pub struct IMFMediaKeySession2_Vtbl { pub base__: IMFMediaKeySession_Vtbl, pub get_KeyStatuses: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut MFMediaKeyStatus, *mut u32) -> windows_core::HRESULT, - pub Load: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Load: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GenerateRequest: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const u8, u32) -> windows_core::HRESULT, pub Expiration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub Remove: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -26018,7 +26018,7 @@ pub struct IMFMediaKeySession2_Vtbl { } pub trait IMFMediaKeySession2_Impl: IMFMediaKeySession_Impl { fn get_KeyStatuses(&self, pkeystatusesarray: *mut *mut MFMediaKeyStatus, pusize: *mut u32) -> windows_core::Result<()>; - fn Load(&self, bstrsessionid: &windows_core::BSTR) -> windows_core::Result; + fn Load(&self, bstrsessionid: &windows_core::BSTR) -> windows_core::Result; fn GenerateRequest(&self, initdatatype: &windows_core::BSTR, pbinitdata: *const u8, cb: u32) -> windows_core::Result<()>; fn Expiration(&self) -> windows_core::Result; fn Remove(&self) -> windows_core::Result<()>; @@ -26032,7 +26032,7 @@ impl IMFMediaKeySession2_Vtbl { IMFMediaKeySession2_Impl::get_KeyStatuses(this, core::mem::transmute_copy(&pkeystatusesarray), core::mem::transmute_copy(&pusize)).into() } } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, bstrsessionid: *mut core::ffi::c_void, pfloaded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, bstrsessionid: *mut core::ffi::c_void, pfloaded: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaKeySession2_Impl::Load(this, core::mem::transmute(&bstrsessionid)) { @@ -27251,7 +27251,7 @@ impl IMFMediaSourceExtension { pub unsafe fn SetEndOfStream(&self, error: MF_MSE_ERROR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetEndOfStream)(windows_core::Interface::as_raw(self), error).ok() } } - pub unsafe fn IsTypeSupported(&self, r#type: &windows_core::BSTR) -> super::super::Foundation::BOOL { + pub unsafe fn IsTypeSupported(&self, r#type: &windows_core::BSTR) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsTypeSupported)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(r#type)) } } pub unsafe fn GetSourceBuffer(&self, dwstreamindex: u32) -> Option { @@ -27269,7 +27269,7 @@ pub struct IMFMediaSourceExtension_Vtbl { pub AddSourceBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveSourceBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetEndOfStream: unsafe extern "system" fn(*mut core::ffi::c_void, MF_MSE_ERROR) -> windows_core::HRESULT, - pub IsTypeSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsTypeSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::BOOL, pub GetSourceBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> Option, } pub trait IMFMediaSourceExtension_Impl: windows_core::IUnknownImpl { @@ -27281,7 +27281,7 @@ pub trait IMFMediaSourceExtension_Impl: windows_core::IUnknownImpl { fn AddSourceBuffer(&self, r#type: &windows_core::BSTR, pnotify: windows_core::Ref) -> windows_core::Result; fn RemoveSourceBuffer(&self, psourcebuffer: windows_core::Ref) -> windows_core::Result<()>; fn SetEndOfStream(&self, error: MF_MSE_ERROR) -> windows_core::Result<()>; - fn IsTypeSupported(&self, r#type: &windows_core::BSTR) -> super::super::Foundation::BOOL; + fn IsTypeSupported(&self, r#type: &windows_core::BSTR) -> windows_core::BOOL; fn GetSourceBuffer(&self, dwstreamindex: u32) -> Option; } impl IMFMediaSourceExtension_Vtbl { @@ -27340,7 +27340,7 @@ impl IMFMediaSourceExtension_Vtbl { IMFMediaSourceExtension_Impl::SetEndOfStream(this, core::mem::transmute_copy(&error)).into() } } - unsafe extern "system" fn IsTypeSupported(this: *mut core::ffi::c_void, r#type: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsTypeSupported(this: *mut core::ffi::c_void, r#type: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaSourceExtension_Impl::IsTypeSupported(this, core::mem::transmute(&r#type)) @@ -27749,7 +27749,7 @@ impl IMFMediaTimeRange { (windows_core::Interface::vtable(self).GetEnd)(windows_core::Interface::as_raw(self), index, &mut result__).map(|| result__) } } - pub unsafe fn ContainsTime(&self, time: f64) -> super::super::Foundation::BOOL { + pub unsafe fn ContainsTime(&self, time: f64) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).ContainsTime)(windows_core::Interface::as_raw(self), time) } } pub unsafe fn AddRange(&self, starttime: f64, endtime: f64) -> windows_core::Result<()> { @@ -27765,7 +27765,7 @@ pub struct IMFMediaTimeRange_Vtbl { pub GetLength: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, pub GetStart: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut f64) -> windows_core::HRESULT, pub GetEnd: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut f64) -> windows_core::HRESULT, - pub ContainsTime: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> super::super::Foundation::BOOL, + pub ContainsTime: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::BOOL, pub AddRange: unsafe extern "system" fn(*mut core::ffi::c_void, f64, f64) -> windows_core::HRESULT, pub Clear: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -27773,7 +27773,7 @@ pub trait IMFMediaTimeRange_Impl: windows_core::IUnknownImpl { fn GetLength(&self) -> u32; fn GetStart(&self, index: u32) -> windows_core::Result; fn GetEnd(&self, index: u32) -> windows_core::Result; - fn ContainsTime(&self, time: f64) -> super::super::Foundation::BOOL; + fn ContainsTime(&self, time: f64) -> windows_core::BOOL; fn AddRange(&self, starttime: f64, endtime: f64) -> windows_core::Result<()>; fn Clear(&self) -> windows_core::Result<()>; } @@ -27809,7 +27809,7 @@ impl IMFMediaTimeRange_Vtbl { } } } - unsafe extern "system" fn ContainsTime(this: *mut core::ffi::c_void, time: f64) -> super::super::Foundation::BOOL { + unsafe extern "system" fn ContainsTime(this: *mut core::ffi::c_void, time: f64) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFMediaTimeRange_Impl::ContainsTime(this, core::mem::transmute_copy(&time)) @@ -27857,7 +27857,7 @@ impl IMFMediaType { (windows_core::Interface::vtable(self).GetMajorType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsCompressedFormat(&self) -> windows_core::Result { + pub unsafe fn IsCompressedFormat(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsCompressedFormat)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -27883,7 +27883,7 @@ impl IMFMediaType { pub struct IMFMediaType_Vtbl { pub base__: IMFAttributes_Vtbl, pub GetMajorType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - pub IsCompressedFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsCompressedFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub IsEqual: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetRepresentation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub FreeRepresentation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *const core::ffi::c_void) -> windows_core::HRESULT, @@ -27891,7 +27891,7 @@ pub struct IMFMediaType_Vtbl { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub trait IMFMediaType_Impl: IMFAttributes_Impl { fn GetMajorType(&self) -> windows_core::Result; - fn IsCompressedFormat(&self) -> windows_core::Result; + fn IsCompressedFormat(&self) -> windows_core::Result; fn IsEqual(&self, pimediatype: windows_core::Ref) -> windows_core::Result; fn GetRepresentation(&self, guidrepresentation: &windows_core::GUID, ppvrepresentation: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn FreeRepresentation(&self, guidrepresentation: &windows_core::GUID, pvrepresentation: *const core::ffi::c_void) -> windows_core::Result<()>; @@ -27911,7 +27911,7 @@ impl IMFMediaType_Vtbl { } } } - unsafe extern "system" fn IsCompressedFormat(this: *mut core::ffi::c_void, pfcompressed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsCompressedFormat(this: *mut core::ffi::c_void, pfcompressed: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFMediaType_Impl::IsCompressedFormat(this) { @@ -28593,7 +28593,7 @@ impl IMFNetCredential { pub unsafe fn GetPassword(&self, pbdata: Option<*mut u8>, pcbdata: *mut u32, fencryptdata: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetPassword)(windows_core::Interface::as_raw(self), pbdata.unwrap_or(core::mem::zeroed()) as _, pcbdata as _, fencryptdata.into()).ok() } } - pub unsafe fn LoggedOnUser(&self) -> windows_core::Result { + pub unsafe fn LoggedOnUser(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LoggedOnUser)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -28603,46 +28603,46 @@ impl IMFNetCredential { #[repr(C)] pub struct IMFNetCredential_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetUser: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetPassword: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8, *mut u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetPassword: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8, *mut u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub LoggedOnUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetUser: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, u32, windows_core::BOOL) -> windows_core::HRESULT, + pub SetPassword: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, u32, windows_core::BOOL) -> windows_core::HRESULT, + pub GetUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8, *mut u32, windows_core::BOOL) -> windows_core::HRESULT, + pub GetPassword: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8, *mut u32, windows_core::BOOL) -> windows_core::HRESULT, + pub LoggedOnUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IMFNetCredential_Impl: windows_core::IUnknownImpl { - fn SetUser(&self, pbdata: *const u8, cbdata: u32, fdataisencrypted: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetPassword(&self, pbdata: *const u8, cbdata: u32, fdataisencrypted: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetUser(&self, pbdata: *mut u8, pcbdata: *mut u32, fencryptdata: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetPassword(&self, pbdata: *mut u8, pcbdata: *mut u32, fencryptdata: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn LoggedOnUser(&self) -> windows_core::Result; + fn SetUser(&self, pbdata: *const u8, cbdata: u32, fdataisencrypted: windows_core::BOOL) -> windows_core::Result<()>; + fn SetPassword(&self, pbdata: *const u8, cbdata: u32, fdataisencrypted: windows_core::BOOL) -> windows_core::Result<()>; + fn GetUser(&self, pbdata: *mut u8, pcbdata: *mut u32, fencryptdata: windows_core::BOOL) -> windows_core::Result<()>; + fn GetPassword(&self, pbdata: *mut u8, pcbdata: *mut u32, fencryptdata: windows_core::BOOL) -> windows_core::Result<()>; + fn LoggedOnUser(&self) -> windows_core::Result; } impl IMFNetCredential_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetUser(this: *mut core::ffi::c_void, pbdata: *const u8, cbdata: u32, fdataisencrypted: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetUser(this: *mut core::ffi::c_void, pbdata: *const u8, cbdata: u32, fdataisencrypted: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetCredential_Impl::SetUser(this, core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&cbdata), core::mem::transmute_copy(&fdataisencrypted)).into() } } - unsafe extern "system" fn SetPassword(this: *mut core::ffi::c_void, pbdata: *const u8, cbdata: u32, fdataisencrypted: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetPassword(this: *mut core::ffi::c_void, pbdata: *const u8, cbdata: u32, fdataisencrypted: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetCredential_Impl::SetPassword(this, core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&cbdata), core::mem::transmute_copy(&fdataisencrypted)).into() } } - unsafe extern "system" fn GetUser(this: *mut core::ffi::c_void, pbdata: *mut u8, pcbdata: *mut u32, fencryptdata: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetUser(this: *mut core::ffi::c_void, pbdata: *mut u8, pcbdata: *mut u32, fencryptdata: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetCredential_Impl::GetUser(this, core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&pcbdata), core::mem::transmute_copy(&fencryptdata)).into() } } - unsafe extern "system" fn GetPassword(this: *mut core::ffi::c_void, pbdata: *mut u8, pcbdata: *mut u32, fencryptdata: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetPassword(this: *mut core::ffi::c_void, pbdata: *mut u8, pcbdata: *mut u32, fencryptdata: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetCredential_Impl::GetPassword(this, core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&pcbdata), core::mem::transmute_copy(&fencryptdata)).into() } } - unsafe extern "system" fn LoggedOnUser(this: *mut core::ffi::c_void, pfloggedonuser: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn LoggedOnUser(this: *mut core::ffi::c_void, pfloggedonuser: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFNetCredential_Impl::LoggedOnUser(this) { @@ -28695,12 +28695,12 @@ impl IMFNetCredentialCache { pub struct IMFNetCredentialCache_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCredential: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, u32, *mut *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub SetGood: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetGood: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetUserOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, } pub trait IMFNetCredentialCache_Impl: windows_core::IUnknownImpl { fn GetCredential(&self, pszurl: &windows_core::PCWSTR, pszrealm: &windows_core::PCWSTR, dwauthenticationflags: u32, ppcred: windows_core::OutRef<'_, IMFNetCredential>, pdwrequirementsflags: *mut u32) -> windows_core::Result<()>; - fn SetGood(&self, pcred: windows_core::Ref, fgood: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetGood(&self, pcred: windows_core::Ref, fgood: windows_core::BOOL) -> windows_core::Result<()>; fn SetUserOptions(&self, pcred: windows_core::Ref, dwoptionsflags: u32) -> windows_core::Result<()>; } impl IMFNetCredentialCache_Vtbl { @@ -28711,7 +28711,7 @@ impl IMFNetCredentialCache_Vtbl { IMFNetCredentialCache_Impl::GetCredential(this, core::mem::transmute(&pszurl), core::mem::transmute(&pszrealm), core::mem::transmute_copy(&dwauthenticationflags), core::mem::transmute_copy(&ppcred), core::mem::transmute_copy(&pdwrequirementsflags)).into() } } - unsafe extern "system" fn SetGood(this: *mut core::ffi::c_void, pcred: *mut core::ffi::c_void, fgood: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetGood(this: *mut core::ffi::c_void, pcred: *mut core::ffi::c_void, fgood: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetCredentialCache_Impl::SetGood(this, core::mem::transmute_copy(&pcred), core::mem::transmute_copy(&fgood)).into() @@ -28766,12 +28766,12 @@ pub struct IMFNetCredentialManager_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub BeginGetCredentials: unsafe extern "system" fn(*mut core::ffi::c_void, *const MFNetCredentialManagerGetParam, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub EndGetCredentials: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetGood: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetGood: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IMFNetCredentialManager_Impl: windows_core::IUnknownImpl { fn BeginGetCredentials(&self, pparam: *const MFNetCredentialManagerGetParam, pcallback: windows_core::Ref, pstate: windows_core::Ref) -> windows_core::Result<()>; fn EndGetCredentials(&self, presult: windows_core::Ref) -> windows_core::Result; - fn SetGood(&self, pcred: windows_core::Ref, fgood: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetGood(&self, pcred: windows_core::Ref, fgood: windows_core::BOOL) -> windows_core::Result<()>; } impl IMFNetCredentialManager_Vtbl { pub const fn new() -> Self { @@ -28793,7 +28793,7 @@ impl IMFNetCredentialManager_Vtbl { } } } - unsafe extern "system" fn SetGood(this: *mut core::ffi::c_void, pcred: *mut core::ffi::c_void, fgood: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetGood(this: *mut core::ffi::c_void, pcred: *mut core::ffi::c_void, fgood: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetCredentialManager_Impl::SetGood(this, core::mem::transmute_copy(&pcred), core::mem::transmute_copy(&fgood)).into() @@ -28826,7 +28826,7 @@ impl IMFNetCrossOriginSupport { (windows_core::Interface::vtable(self).GetSourceOrigin)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsSameOrigin(&self, wszurl: P0) -> windows_core::Result + pub unsafe fn IsSameOrigin(&self, wszurl: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -28841,12 +28841,12 @@ pub struct IMFNetCrossOriginSupport_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCrossOriginPolicy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MF_CROSS_ORIGIN_POLICY) -> windows_core::HRESULT, pub GetSourceOrigin: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub IsSameOrigin: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsSameOrigin: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IMFNetCrossOriginSupport_Impl: windows_core::IUnknownImpl { fn GetCrossOriginPolicy(&self) -> windows_core::Result; fn GetSourceOrigin(&self) -> windows_core::Result; - fn IsSameOrigin(&self, wszurl: &windows_core::PCWSTR) -> windows_core::Result; + fn IsSameOrigin(&self, wszurl: &windows_core::PCWSTR) -> windows_core::Result; } impl IMFNetCrossOriginSupport_Vtbl { pub const fn new() -> Self { @@ -28874,7 +28874,7 @@ impl IMFNetCrossOriginSupport_Vtbl { } } } - unsafe extern "system" fn IsSameOrigin(this: *mut core::ffi::c_void, wszurl: windows_core::PCWSTR, pfissameorigin: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsSameOrigin(this: *mut core::ffi::c_void, wszurl: windows_core::PCWSTR, pfissameorigin: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFNetCrossOriginSupport_Impl::IsSameOrigin(this, core::mem::transmute(&wszurl)) { @@ -28927,14 +28927,14 @@ impl IMFNetProxyLocator { #[repr(C)] pub struct IMFNetProxyLocator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub FindFirstProxy: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub FindFirstProxy: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, pub FindNextProxy: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub RegisterProxyResult: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::HRESULT) -> windows_core::HRESULT, pub GetCurrentProxy: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, *mut u32) -> windows_core::HRESULT, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IMFNetProxyLocator_Impl: windows_core::IUnknownImpl { - fn FindFirstProxy(&self, pszhost: &windows_core::PCWSTR, pszurl: &windows_core::PCWSTR, freserved: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn FindFirstProxy(&self, pszhost: &windows_core::PCWSTR, pszurl: &windows_core::PCWSTR, freserved: windows_core::BOOL) -> windows_core::Result<()>; fn FindNextProxy(&self) -> windows_core::Result<()>; fn RegisterProxyResult(&self, hrop: windows_core::HRESULT) -> windows_core::Result<()>; fn GetCurrentProxy(&self, pszstr: windows_core::PWSTR, pcchstr: *mut u32) -> windows_core::Result<()>; @@ -28942,7 +28942,7 @@ pub trait IMFNetProxyLocator_Impl: windows_core::IUnknownImpl { } impl IMFNetProxyLocator_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn FindFirstProxy(this: *mut core::ffi::c_void, pszhost: windows_core::PCWSTR, pszurl: windows_core::PCWSTR, freserved: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn FindFirstProxy(this: *mut core::ffi::c_void, pszhost: windows_core::PCWSTR, pszurl: windows_core::PCWSTR, freserved: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFNetProxyLocator_Impl::FindFirstProxy(this, core::mem::transmute(&pszhost), core::mem::transmute(&pszurl), core::mem::transmute_copy(&freserved)).into() @@ -29761,13 +29761,13 @@ impl IMFPMediaItem { pub unsafe fn SetStartStopPosition(&self, pguidstartpositiontype: Option<*const windows_core::GUID>, pvstartvalue: Option<*const super::super::System::Com::StructuredStorage::PROPVARIANT>, pguidstoppositiontype: Option<*const windows_core::GUID>, pvstopvalue: Option<*const super::super::System::Com::StructuredStorage::PROPVARIANT>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetStartStopPosition)(windows_core::Interface::as_raw(self), pguidstartpositiontype.unwrap_or(core::mem::zeroed()) as _, pvstartvalue.unwrap_or(core::mem::zeroed()) as _, pguidstoppositiontype.unwrap_or(core::mem::zeroed()) as _, pvstopvalue.unwrap_or(core::mem::zeroed()) as _).ok() } } - pub unsafe fn HasVideo(&self, pfhasvideo: Option<*mut super::super::Foundation::BOOL>, pfselected: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { + pub unsafe fn HasVideo(&self, pfhasvideo: Option<*mut windows_core::BOOL>, pfselected: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).HasVideo)(windows_core::Interface::as_raw(self), pfhasvideo.unwrap_or(core::mem::zeroed()) as _, pfselected.unwrap_or(core::mem::zeroed()) as _).ok() } } - pub unsafe fn HasAudio(&self, pfhasaudio: Option<*mut super::super::Foundation::BOOL>, pfselected: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { + pub unsafe fn HasAudio(&self, pfhasaudio: Option<*mut windows_core::BOOL>, pfselected: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).HasAudio)(windows_core::Interface::as_raw(self), pfhasaudio.unwrap_or(core::mem::zeroed()) as _, pfselected.unwrap_or(core::mem::zeroed()) as _).ok() } } - pub unsafe fn IsProtected(&self) -> windows_core::Result { + pub unsafe fn IsProtected(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsProtected)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -29786,7 +29786,7 @@ impl IMFPMediaItem { (windows_core::Interface::vtable(self).GetNumberOfStreams)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetStreamSelection(&self, dwstreamindex: u32) -> windows_core::Result { + pub unsafe fn GetStreamSelection(&self, dwstreamindex: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStreamSelection)(windows_core::Interface::as_raw(self), dwstreamindex, &mut result__).map(|| result__) @@ -29845,16 +29845,16 @@ pub struct IMFPMediaItem_Vtbl { pub SetStartStopPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const super::super::System::Com::StructuredStorage::PROPVARIANT, *const windows_core::GUID, *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] SetStartStopPosition: usize, - pub HasVideo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub HasAudio: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsProtected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub HasVideo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub HasAudio: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsProtected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub GetDuration: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] GetDuration: usize, pub GetNumberOfStreams: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub GetStreamSelection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetStreamSelection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetStreamSelection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetStreamSelection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub GetStreamAttribute: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_core::GUID, *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] @@ -29879,13 +29879,13 @@ pub trait IMFPMediaItem_Impl: windows_core::IUnknownImpl { fn SetUserData(&self, dwuserdata: usize) -> windows_core::Result<()>; fn GetStartStopPosition(&self, pguidstartpositiontype: *mut windows_core::GUID, pvstartvalue: *mut super::super::System::Com::StructuredStorage::PROPVARIANT, pguidstoppositiontype: *mut windows_core::GUID, pvstopvalue: *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()>; fn SetStartStopPosition(&self, pguidstartpositiontype: *const windows_core::GUID, pvstartvalue: *const super::super::System::Com::StructuredStorage::PROPVARIANT, pguidstoppositiontype: *const windows_core::GUID, pvstopvalue: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()>; - fn HasVideo(&self, pfhasvideo: *mut super::super::Foundation::BOOL, pfselected: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn HasAudio(&self, pfhasaudio: *mut super::super::Foundation::BOOL, pfselected: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn IsProtected(&self) -> windows_core::Result; + fn HasVideo(&self, pfhasvideo: *mut windows_core::BOOL, pfselected: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn HasAudio(&self, pfhasaudio: *mut windows_core::BOOL, pfselected: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn IsProtected(&self) -> windows_core::Result; fn GetDuration(&self, guidpositiontype: *const windows_core::GUID) -> windows_core::Result; fn GetNumberOfStreams(&self) -> windows_core::Result; - fn GetStreamSelection(&self, dwstreamindex: u32) -> windows_core::Result; - fn SetStreamSelection(&self, dwstreamindex: u32, fenabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetStreamSelection(&self, dwstreamindex: u32) -> windows_core::Result; + fn SetStreamSelection(&self, dwstreamindex: u32, fenabled: windows_core::BOOL) -> windows_core::Result<()>; fn GetStreamAttribute(&self, dwstreamindex: u32, guidmfattribute: *const windows_core::GUID) -> windows_core::Result; fn GetPresentationAttribute(&self, guidmfattribute: *const windows_core::GUID) -> windows_core::Result; fn GetCharacteristics(&self) -> windows_core::Result; @@ -29961,19 +29961,19 @@ impl IMFPMediaItem_Vtbl { IMFPMediaItem_Impl::SetStartStopPosition(this, core::mem::transmute_copy(&pguidstartpositiontype), core::mem::transmute_copy(&pvstartvalue), core::mem::transmute_copy(&pguidstoppositiontype), core::mem::transmute_copy(&pvstopvalue)).into() } } - unsafe extern "system" fn HasVideo(this: *mut core::ffi::c_void, pfhasvideo: *mut super::super::Foundation::BOOL, pfselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn HasVideo(this: *mut core::ffi::c_void, pfhasvideo: *mut windows_core::BOOL, pfselected: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaItem_Impl::HasVideo(this, core::mem::transmute_copy(&pfhasvideo), core::mem::transmute_copy(&pfselected)).into() } } - unsafe extern "system" fn HasAudio(this: *mut core::ffi::c_void, pfhasaudio: *mut super::super::Foundation::BOOL, pfselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn HasAudio(this: *mut core::ffi::c_void, pfhasaudio: *mut windows_core::BOOL, pfselected: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaItem_Impl::HasAudio(this, core::mem::transmute_copy(&pfhasaudio), core::mem::transmute_copy(&pfselected)).into() } } - unsafe extern "system" fn IsProtected(this: *mut core::ffi::c_void, pfprotected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsProtected(this: *mut core::ffi::c_void, pfprotected: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaItem_Impl::IsProtected(this) { @@ -30009,7 +30009,7 @@ impl IMFPMediaItem_Vtbl { } } } - unsafe extern "system" fn GetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, pfenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, pfenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaItem_Impl::GetStreamSelection(this, core::mem::transmute_copy(&dwstreamindex)) { @@ -30021,7 +30021,7 @@ impl IMFPMediaItem_Vtbl { } } } - unsafe extern "system" fn SetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, fenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, fenabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaItem_Impl::SetStreamSelection(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&fenabled)).into() @@ -30206,7 +30206,7 @@ impl IMFPMediaPlayer { pub unsafe fn SetBalance(&self, flbalance: f32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBalance)(windows_core::Interface::as_raw(self), flbalance).ok() } } - pub unsafe fn GetMute(&self) -> windows_core::Result { + pub unsafe fn GetMute(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMute)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -30297,10 +30297,10 @@ pub struct IMFPMediaPlayer_Vtbl { GetDuration: usize, pub SetRate: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub GetRate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, - pub GetSupportedRates: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut f32, *mut f32) -> windows_core::HRESULT, + pub GetSupportedRates: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut f32, *mut f32) -> windows_core::HRESULT, pub GetState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MFP_MEDIAPLAYER_STATE) -> windows_core::HRESULT, - pub CreateMediaItemFromURL: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL, usize, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CreateMediaItemFromObject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, usize, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateMediaItemFromURL: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL, usize, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateMediaItemFromObject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, usize, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetMediaItem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub ClearMediaItem: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetMediaItem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -30308,8 +30308,8 @@ pub struct IMFPMediaPlayer_Vtbl { pub SetVolume: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub GetBalance: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetBalance: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - pub GetMute: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetMute: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetMute: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetMute: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetNativeVideoSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::SIZE, *mut super::super::Foundation::SIZE) -> windows_core::HRESULT, pub GetIdealVideoSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::SIZE, *mut super::super::Foundation::SIZE) -> windows_core::HRESULT, pub SetVideoSourceRect: unsafe extern "system" fn(*mut core::ffi::c_void, *const MFVideoNormalizedRect) -> windows_core::HRESULT, @@ -30320,7 +30320,7 @@ pub struct IMFPMediaPlayer_Vtbl { pub UpdateVideo: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SetBorderColor: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::COLORREF) -> windows_core::HRESULT, pub GetBorderColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT, - pub InsertEffect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub InsertEffect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub RemoveEffect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveAllEffects: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Shutdown: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -30336,10 +30336,10 @@ pub trait IMFPMediaPlayer_Impl: windows_core::IUnknownImpl { fn GetDuration(&self, guidpositiontype: *const windows_core::GUID) -> windows_core::Result; fn SetRate(&self, flrate: f32) -> windows_core::Result<()>; fn GetRate(&self) -> windows_core::Result; - fn GetSupportedRates(&self, fforwarddirection: super::super::Foundation::BOOL, pflslowestrate: *mut f32, pflfastestrate: *mut f32) -> windows_core::Result<()>; + fn GetSupportedRates(&self, fforwarddirection: windows_core::BOOL, pflslowestrate: *mut f32, pflfastestrate: *mut f32) -> windows_core::Result<()>; fn GetState(&self) -> windows_core::Result; - fn CreateMediaItemFromURL(&self, pwszurl: &windows_core::PCWSTR, fsync: super::super::Foundation::BOOL, dwuserdata: usize, ppmediaitem: windows_core::OutRef<'_, IMFPMediaItem>) -> windows_core::Result<()>; - fn CreateMediaItemFromObject(&self, piunknownobj: windows_core::Ref, fsync: super::super::Foundation::BOOL, dwuserdata: usize, ppmediaitem: windows_core::OutRef<'_, IMFPMediaItem>) -> windows_core::Result<()>; + fn CreateMediaItemFromURL(&self, pwszurl: &windows_core::PCWSTR, fsync: windows_core::BOOL, dwuserdata: usize, ppmediaitem: windows_core::OutRef<'_, IMFPMediaItem>) -> windows_core::Result<()>; + fn CreateMediaItemFromObject(&self, piunknownobj: windows_core::Ref, fsync: windows_core::BOOL, dwuserdata: usize, ppmediaitem: windows_core::OutRef<'_, IMFPMediaItem>) -> windows_core::Result<()>; fn SetMediaItem(&self, pimfpmediaitem: windows_core::Ref) -> windows_core::Result<()>; fn ClearMediaItem(&self) -> windows_core::Result<()>; fn GetMediaItem(&self) -> windows_core::Result; @@ -30347,8 +30347,8 @@ pub trait IMFPMediaPlayer_Impl: windows_core::IUnknownImpl { fn SetVolume(&self, flvolume: f32) -> windows_core::Result<()>; fn GetBalance(&self) -> windows_core::Result; fn SetBalance(&self, flbalance: f32) -> windows_core::Result<()>; - fn GetMute(&self) -> windows_core::Result; - fn SetMute(&self, fmute: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetMute(&self) -> windows_core::Result; + fn SetMute(&self, fmute: windows_core::BOOL) -> windows_core::Result<()>; fn GetNativeVideoSize(&self, pszvideo: *mut super::super::Foundation::SIZE, pszarvideo: *mut super::super::Foundation::SIZE) -> windows_core::Result<()>; fn GetIdealVideoSize(&self, pszmin: *mut super::super::Foundation::SIZE, pszmax: *mut super::super::Foundation::SIZE) -> windows_core::Result<()>; fn SetVideoSourceRect(&self, pnrcsource: *const MFVideoNormalizedRect) -> windows_core::Result<()>; @@ -30359,7 +30359,7 @@ pub trait IMFPMediaPlayer_Impl: windows_core::IUnknownImpl { fn UpdateVideo(&self) -> windows_core::Result<()>; fn SetBorderColor(&self, clr: super::super::Foundation::COLORREF) -> windows_core::Result<()>; fn GetBorderColor(&self) -> windows_core::Result; - fn InsertEffect(&self, peffect: windows_core::Ref, foptional: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn InsertEffect(&self, peffect: windows_core::Ref, foptional: windows_core::BOOL) -> windows_core::Result<()>; fn RemoveEffect(&self, peffect: windows_core::Ref) -> windows_core::Result<()>; fn RemoveAllEffects(&self) -> windows_core::Result<()>; fn Shutdown(&self) -> windows_core::Result<()>; @@ -30439,7 +30439,7 @@ impl IMFPMediaPlayer_Vtbl { } } } - unsafe extern "system" fn GetSupportedRates(this: *mut core::ffi::c_void, fforwarddirection: super::super::Foundation::BOOL, pflslowestrate: *mut f32, pflfastestrate: *mut f32) -> windows_core::HRESULT { + unsafe extern "system" fn GetSupportedRates(this: *mut core::ffi::c_void, fforwarddirection: windows_core::BOOL, pflslowestrate: *mut f32, pflfastestrate: *mut f32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::GetSupportedRates(this, core::mem::transmute_copy(&fforwarddirection), core::mem::transmute_copy(&pflslowestrate), core::mem::transmute_copy(&pflfastestrate)).into() @@ -30457,13 +30457,13 @@ impl IMFPMediaPlayer_Vtbl { } } } - unsafe extern "system" fn CreateMediaItemFromURL(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, fsync: super::super::Foundation::BOOL, dwuserdata: usize, ppmediaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateMediaItemFromURL(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, fsync: windows_core::BOOL, dwuserdata: usize, ppmediaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::CreateMediaItemFromURL(this, core::mem::transmute(&pwszurl), core::mem::transmute_copy(&fsync), core::mem::transmute_copy(&dwuserdata), core::mem::transmute_copy(&ppmediaitem)).into() } } - unsafe extern "system" fn CreateMediaItemFromObject(this: *mut core::ffi::c_void, piunknownobj: *mut core::ffi::c_void, fsync: super::super::Foundation::BOOL, dwuserdata: usize, ppmediaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateMediaItemFromObject(this: *mut core::ffi::c_void, piunknownobj: *mut core::ffi::c_void, fsync: windows_core::BOOL, dwuserdata: usize, ppmediaitem: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::CreateMediaItemFromObject(this, core::mem::transmute_copy(&piunknownobj), core::mem::transmute_copy(&fsync), core::mem::transmute_copy(&dwuserdata), core::mem::transmute_copy(&ppmediaitem)).into() @@ -30529,7 +30529,7 @@ impl IMFPMediaPlayer_Vtbl { IMFPMediaPlayer_Impl::SetBalance(this, core::mem::transmute_copy(&flbalance)).into() } } - unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pfmute: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pfmute: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFPMediaPlayer_Impl::GetMute(this) { @@ -30541,7 +30541,7 @@ impl IMFPMediaPlayer_Vtbl { } } } - unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, fmute: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, fmute: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::SetMute(this, core::mem::transmute_copy(&fmute)).into() @@ -30631,7 +30631,7 @@ impl IMFPMediaPlayer_Vtbl { } } } - unsafe extern "system" fn InsertEffect(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void, foptional: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn InsertEffect(this: *mut core::ffi::c_void, peffect: *mut core::ffi::c_void, foptional: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPMediaPlayer_Impl::InsertEffect(this, core::mem::transmute_copy(&peffect), core::mem::transmute_copy(&foptional)).into() @@ -30780,7 +30780,7 @@ pub struct IMFPluginControl_Vtbl { pub SetPreferredClsid: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, *const windows_core::GUID) -> windows_core::HRESULT, pub IsDisabled: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_core::GUID) -> windows_core::HRESULT, pub GetDisabledByIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut windows_core::GUID) -> windows_core::HRESULT, - pub SetDisabled: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_core::GUID, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetDisabled: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_core::GUID, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IMFPluginControl_Impl: windows_core::IUnknownImpl { fn GetPreferredClsid(&self, plugintype: u32, selector: &windows_core::PCWSTR) -> windows_core::Result; @@ -30788,7 +30788,7 @@ pub trait IMFPluginControl_Impl: windows_core::IUnknownImpl { fn SetPreferredClsid(&self, plugintype: u32, selector: &windows_core::PCWSTR, clsid: *const windows_core::GUID) -> windows_core::Result<()>; fn IsDisabled(&self, plugintype: u32, clsid: *const windows_core::GUID) -> windows_core::Result<()>; fn GetDisabledByIndex(&self, plugintype: u32, index: u32) -> windows_core::Result; - fn SetDisabled(&self, plugintype: u32, clsid: *const windows_core::GUID, disabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetDisabled(&self, plugintype: u32, clsid: *const windows_core::GUID, disabled: windows_core::BOOL) -> windows_core::Result<()>; } impl IMFPluginControl_Vtbl { pub const fn new() -> Self { @@ -30834,7 +30834,7 @@ impl IMFPluginControl_Vtbl { } } } - unsafe extern "system" fn SetDisabled(this: *mut core::ffi::c_void, plugintype: u32, clsid: *const windows_core::GUID, disabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetDisabled(this: *mut core::ffi::c_void, plugintype: u32, clsid: *const windows_core::GUID, disabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPluginControl_Impl::SetDisabled(this, core::mem::transmute_copy(&plugintype), core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&disabled)).into() @@ -31056,7 +31056,7 @@ impl IMFPresentationDescriptor { (windows_core::Interface::vtable(self).GetStreamDescriptorCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetStreamDescriptorByIndex(&self, dwindex: u32, pfselected: *mut super::super::Foundation::BOOL, ppdescriptor: *mut Option) -> windows_core::Result<()> { + pub unsafe fn GetStreamDescriptorByIndex(&self, dwindex: u32, pfselected: *mut windows_core::BOOL, ppdescriptor: *mut Option) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetStreamDescriptorByIndex)(windows_core::Interface::as_raw(self), dwindex, pfselected as _, core::mem::transmute(ppdescriptor)).ok() } } pub unsafe fn SelectStream(&self, dwdescriptorindex: u32) -> windows_core::Result<()> { @@ -31076,7 +31076,7 @@ impl IMFPresentationDescriptor { pub struct IMFPresentationDescriptor_Vtbl { pub base__: IMFAttributes_Vtbl, pub GetStreamDescriptorCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub GetStreamDescriptorByIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetStreamDescriptorByIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SelectStream: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub DeselectStream: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -31084,7 +31084,7 @@ pub struct IMFPresentationDescriptor_Vtbl { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub trait IMFPresentationDescriptor_Impl: IMFAttributes_Impl { fn GetStreamDescriptorCount(&self) -> windows_core::Result; - fn GetStreamDescriptorByIndex(&self, dwindex: u32, pfselected: *mut super::super::Foundation::BOOL, ppdescriptor: windows_core::OutRef<'_, IMFStreamDescriptor>) -> windows_core::Result<()>; + fn GetStreamDescriptorByIndex(&self, dwindex: u32, pfselected: *mut windows_core::BOOL, ppdescriptor: windows_core::OutRef<'_, IMFStreamDescriptor>) -> windows_core::Result<()>; fn SelectStream(&self, dwdescriptorindex: u32) -> windows_core::Result<()>; fn DeselectStream(&self, dwdescriptorindex: u32) -> windows_core::Result<()>; fn Clone(&self) -> windows_core::Result; @@ -31104,7 +31104,7 @@ impl IMFPresentationDescriptor_Vtbl { } } } - unsafe extern "system" fn GetStreamDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, pfselected: *mut super::super::Foundation::BOOL, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetStreamDescriptorByIndex(this: *mut core::ffi::c_void, dwindex: u32, pfselected: *mut windows_core::BOOL, ppdescriptor: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFPresentationDescriptor_Impl::GetStreamDescriptorByIndex(this, core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&pfselected), core::mem::transmute_copy(&ppdescriptor)).into() @@ -31562,29 +31562,29 @@ impl IMFRateControl { pub unsafe fn SetRate(&self, fthin: bool, flrate: f32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetRate)(windows_core::Interface::as_raw(self), fthin.into(), flrate).ok() } } - pub unsafe fn GetRate(&self, pfthin: *mut super::super::Foundation::BOOL, pflrate: *mut f32) -> windows_core::Result<()> { + pub unsafe fn GetRate(&self, pfthin: *mut windows_core::BOOL, pflrate: *mut f32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetRate)(windows_core::Interface::as_raw(self), pfthin as _, pflrate as _).ok() } } } #[repr(C)] pub struct IMFRateControl_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetRate: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, f32) -> windows_core::HRESULT, - pub GetRate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut f32) -> windows_core::HRESULT, + pub SetRate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, f32) -> windows_core::HRESULT, + pub GetRate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut f32) -> windows_core::HRESULT, } pub trait IMFRateControl_Impl: windows_core::IUnknownImpl { - fn SetRate(&self, fthin: super::super::Foundation::BOOL, flrate: f32) -> windows_core::Result<()>; - fn GetRate(&self, pfthin: *mut super::super::Foundation::BOOL, pflrate: *mut f32) -> windows_core::Result<()>; + fn SetRate(&self, fthin: windows_core::BOOL, flrate: f32) -> windows_core::Result<()>; + fn GetRate(&self, pfthin: *mut windows_core::BOOL, pflrate: *mut f32) -> windows_core::Result<()>; } impl IMFRateControl_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetRate(this: *mut core::ffi::c_void, fthin: super::super::Foundation::BOOL, flrate: f32) -> windows_core::HRESULT { + unsafe extern "system" fn SetRate(this: *mut core::ffi::c_void, fthin: windows_core::BOOL, flrate: f32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFRateControl_Impl::SetRate(this, core::mem::transmute_copy(&fthin), core::mem::transmute_copy(&flrate)).into() } } - unsafe extern "system" fn GetRate(this: *mut core::ffi::c_void, pfthin: *mut super::super::Foundation::BOOL, pflrate: *mut f32) -> windows_core::HRESULT { + unsafe extern "system" fn GetRate(this: *mut core::ffi::c_void, pfthin: *mut windows_core::BOOL, pflrate: *mut f32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFRateControl_Impl::GetRate(this, core::mem::transmute_copy(&pfthin), core::mem::transmute_copy(&pflrate)).into() @@ -31619,18 +31619,18 @@ impl IMFRateSupport { #[repr(C)] pub struct IMFRateSupport_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetSlowestRate: unsafe extern "system" fn(*mut core::ffi::c_void, MFRATE_DIRECTION, super::super::Foundation::BOOL, *mut f32) -> windows_core::HRESULT, - pub GetFastestRate: unsafe extern "system" fn(*mut core::ffi::c_void, MFRATE_DIRECTION, super::super::Foundation::BOOL, *mut f32) -> windows_core::HRESULT, - pub IsRateSupported: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, f32, *mut f32) -> windows_core::HRESULT, + pub GetSlowestRate: unsafe extern "system" fn(*mut core::ffi::c_void, MFRATE_DIRECTION, windows_core::BOOL, *mut f32) -> windows_core::HRESULT, + pub GetFastestRate: unsafe extern "system" fn(*mut core::ffi::c_void, MFRATE_DIRECTION, windows_core::BOOL, *mut f32) -> windows_core::HRESULT, + pub IsRateSupported: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, f32, *mut f32) -> windows_core::HRESULT, } pub trait IMFRateSupport_Impl: windows_core::IUnknownImpl { - fn GetSlowestRate(&self, edirection: MFRATE_DIRECTION, fthin: super::super::Foundation::BOOL) -> windows_core::Result; - fn GetFastestRate(&self, edirection: MFRATE_DIRECTION, fthin: super::super::Foundation::BOOL) -> windows_core::Result; - fn IsRateSupported(&self, fthin: super::super::Foundation::BOOL, flrate: f32, pflnearestsupportedrate: *mut f32) -> windows_core::Result<()>; + fn GetSlowestRate(&self, edirection: MFRATE_DIRECTION, fthin: windows_core::BOOL) -> windows_core::Result; + fn GetFastestRate(&self, edirection: MFRATE_DIRECTION, fthin: windows_core::BOOL) -> windows_core::Result; + fn IsRateSupported(&self, fthin: windows_core::BOOL, flrate: f32, pflnearestsupportedrate: *mut f32) -> windows_core::Result<()>; } impl IMFRateSupport_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetSlowestRate(this: *mut core::ffi::c_void, edirection: MFRATE_DIRECTION, fthin: super::super::Foundation::BOOL, pflrate: *mut f32) -> windows_core::HRESULT { + unsafe extern "system" fn GetSlowestRate(this: *mut core::ffi::c_void, edirection: MFRATE_DIRECTION, fthin: windows_core::BOOL, pflrate: *mut f32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFRateSupport_Impl::GetSlowestRate(this, core::mem::transmute_copy(&edirection), core::mem::transmute_copy(&fthin)) { @@ -31642,7 +31642,7 @@ impl IMFRateSupport_Vtbl { } } } - unsafe extern "system" fn GetFastestRate(this: *mut core::ffi::c_void, edirection: MFRATE_DIRECTION, fthin: super::super::Foundation::BOOL, pflrate: *mut f32) -> windows_core::HRESULT { + unsafe extern "system" fn GetFastestRate(this: *mut core::ffi::c_void, edirection: MFRATE_DIRECTION, fthin: windows_core::BOOL, pflrate: *mut f32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFRateSupport_Impl::GetFastestRate(this, core::mem::transmute_copy(&edirection), core::mem::transmute_copy(&fthin)) { @@ -31654,7 +31654,7 @@ impl IMFRateSupport_Vtbl { } } } - unsafe extern "system" fn IsRateSupported(this: *mut core::ffi::c_void, fthin: super::super::Foundation::BOOL, flrate: f32, pflnearestsupportedrate: *mut f32) -> windows_core::HRESULT { + unsafe extern "system" fn IsRateSupported(this: *mut core::ffi::c_void, fthin: windows_core::BOOL, flrate: f32, pflnearestsupportedrate: *mut f32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFRateSupport_Impl::IsRateSupported(this, core::mem::transmute_copy(&fthin), core::mem::transmute_copy(&flrate), core::mem::transmute_copy(&pflnearestsupportedrate)).into() @@ -32216,13 +32216,13 @@ impl IMFSSLCertificateManager { { unsafe { (windows_core::Interface::vtable(self).EndGetClientCertificate)(windows_core::Interface::as_raw(self), presult.param().abi(), ppbdata as _, pcbdata as _).ok() } } - pub unsafe fn GetCertificatePolicy(&self, pszurl: P0, pfoverrideautomaticcheck: *mut super::super::Foundation::BOOL, pfclientcertificateavailable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn GetCertificatePolicy(&self, pszurl: P0, pfoverrideautomaticcheck: *mut windows_core::BOOL, pfclientcertificateavailable: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).GetCertificatePolicy)(windows_core::Interface::as_raw(self), pszurl.param().abi(), pfoverrideautomaticcheck as _, pfclientcertificateavailable as _).ok() } } - pub unsafe fn OnServerCertificate(&self, pszurl: P0, pbdata: &[u8]) -> windows_core::Result + pub unsafe fn OnServerCertificate(&self, pszurl: P0, pbdata: &[u8]) -> windows_core::Result where P0: windows_core::Param, { @@ -32238,15 +32238,15 @@ pub struct IMFSSLCertificateManager_Vtbl { pub GetClientCertificate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut *mut u8, *mut u32) -> windows_core::HRESULT, pub BeginGetClientCertificate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub EndGetClientCertificate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut u8, *mut u32) -> windows_core::HRESULT, - pub GetCertificatePolicy: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OnServerCertificate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const u8, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetCertificatePolicy: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OnServerCertificate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const u8, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IMFSSLCertificateManager_Impl: windows_core::IUnknownImpl { fn GetClientCertificate(&self, pszurl: &windows_core::PCWSTR, ppbdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::Result<()>; fn BeginGetClientCertificate(&self, pszurl: &windows_core::PCWSTR, pcallback: windows_core::Ref, pstate: windows_core::Ref) -> windows_core::Result<()>; fn EndGetClientCertificate(&self, presult: windows_core::Ref, ppbdata: *mut *mut u8, pcbdata: *mut u32) -> windows_core::Result<()>; - fn GetCertificatePolicy(&self, pszurl: &windows_core::PCWSTR, pfoverrideautomaticcheck: *mut super::super::Foundation::BOOL, pfclientcertificateavailable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OnServerCertificate(&self, pszurl: &windows_core::PCWSTR, pbdata: *const u8, cbdata: u32) -> windows_core::Result; + fn GetCertificatePolicy(&self, pszurl: &windows_core::PCWSTR, pfoverrideautomaticcheck: *mut windows_core::BOOL, pfclientcertificateavailable: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn OnServerCertificate(&self, pszurl: &windows_core::PCWSTR, pbdata: *const u8, cbdata: u32) -> windows_core::Result; } impl IMFSSLCertificateManager_Vtbl { pub const fn new() -> Self { @@ -32268,13 +32268,13 @@ impl IMFSSLCertificateManager_Vtbl { IMFSSLCertificateManager_Impl::EndGetClientCertificate(this, core::mem::transmute_copy(&presult), core::mem::transmute_copy(&ppbdata), core::mem::transmute_copy(&pcbdata)).into() } } - unsafe extern "system" fn GetCertificatePolicy(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfoverrideautomaticcheck: *mut super::super::Foundation::BOOL, pfclientcertificateavailable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetCertificatePolicy(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfoverrideautomaticcheck: *mut windows_core::BOOL, pfclientcertificateavailable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSSLCertificateManager_Impl::GetCertificatePolicy(this, core::mem::transmute(&pszurl), core::mem::transmute_copy(&pfoverrideautomaticcheck), core::mem::transmute_copy(&pfclientcertificateavailable)).into() } } - unsafe extern "system" fn OnServerCertificate(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pbdata: *const u8, cbdata: u32, pfisgood: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnServerCertificate(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pbdata: *const u8, cbdata: u32, pfisgood: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSSLCertificateManager_Impl::OnServerCertificate(this, core::mem::transmute(&pszurl), core::mem::transmute_copy(&pbdata), core::mem::transmute_copy(&cbdata)) { @@ -33787,7 +33787,7 @@ impl IMFSensorProcessActivity { (windows_core::Interface::vtable(self).GetProcessId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetStreamingState(&self) -> windows_core::Result { + pub unsafe fn GetStreamingState(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStreamingState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -33810,13 +33810,13 @@ impl IMFSensorProcessActivity { pub struct IMFSensorProcessActivity_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetProcessId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub GetStreamingState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetStreamingState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetStreamingMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MFSensorDeviceMode) -> windows_core::HRESULT, pub GetReportTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT, } pub trait IMFSensorProcessActivity_Impl: windows_core::IUnknownImpl { fn GetProcessId(&self) -> windows_core::Result; - fn GetStreamingState(&self) -> windows_core::Result; + fn GetStreamingState(&self) -> windows_core::Result; fn GetStreamingMode(&self) -> windows_core::Result; fn GetReportTime(&self) -> windows_core::Result; } @@ -33834,7 +33834,7 @@ impl IMFSensorProcessActivity_Vtbl { } } } - unsafe extern "system" fn GetStreamingState(this: *mut core::ffi::c_void, pfstreaming: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetStreamingState(this: *mut core::ffi::c_void, pfstreaming: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorProcessActivity_Impl::GetStreamingState(this) { @@ -33895,7 +33895,7 @@ impl IMFSensorProfile { { unsafe { (windows_core::Interface::vtable(self).AddProfileFilter)(windows_core::Interface::as_raw(self), streamid, wzfiltersetstring.param().abi()).ok() } } - pub unsafe fn IsMediaTypeSupported(&self, streamid: u32, pmediatype: P1) -> windows_core::Result + pub unsafe fn IsMediaTypeSupported(&self, streamid: u32, pmediatype: P1) -> windows_core::Result where P1: windows_core::Param, { @@ -33916,13 +33916,13 @@ pub struct IMFSensorProfile_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetProfileId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SENSORPROFILEID) -> windows_core::HRESULT, pub AddProfileFilter: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR) -> windows_core::HRESULT, - pub IsMediaTypeSupported: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsMediaTypeSupported: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub AddBlockedControl: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, } pub trait IMFSensorProfile_Impl: windows_core::IUnknownImpl { fn GetProfileId(&self, pid: *mut SENSORPROFILEID) -> windows_core::Result<()>; fn AddProfileFilter(&self, streamid: u32, wzfiltersetstring: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn IsMediaTypeSupported(&self, streamid: u32, pmediatype: windows_core::Ref) -> windows_core::Result; + fn IsMediaTypeSupported(&self, streamid: u32, pmediatype: windows_core::Ref) -> windows_core::Result; fn AddBlockedControl(&self, wzblockedcontrol: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl IMFSensorProfile_Vtbl { @@ -33939,7 +33939,7 @@ impl IMFSensorProfile_Vtbl { IMFSensorProfile_Impl::AddProfileFilter(this, core::mem::transmute_copy(&streamid), core::mem::transmute(&wzfiltersetstring)).into() } } - unsafe extern "system" fn IsMediaTypeSupported(this: *mut core::ffi::c_void, streamid: u32, pmediatype: *mut core::ffi::c_void, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsMediaTypeSupported(this: *mut core::ffi::c_void, streamid: u32, pmediatype: *mut core::ffi::c_void, pfsupported: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSensorProfile_Impl::IsMediaTypeSupported(this, core::mem::transmute_copy(&streamid), core::mem::transmute_copy(&pmediatype)) { @@ -34535,7 +34535,7 @@ impl IMFSimpleAudioVolume { pub unsafe fn SetMute(&self, bmute: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetMute)(windows_core::Interface::as_raw(self), bmute.into()).ok() } } - pub unsafe fn GetMute(&self) -> windows_core::Result { + pub unsafe fn GetMute(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetMute)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -34547,14 +34547,14 @@ pub struct IMFSimpleAudioVolume_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetMasterVolume: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub GetMasterVolume: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, - pub SetMute: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetMute: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetMute: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetMute: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IMFSimpleAudioVolume_Impl: windows_core::IUnknownImpl { fn SetMasterVolume(&self, flevel: f32) -> windows_core::Result<()>; fn GetMasterVolume(&self) -> windows_core::Result; - fn SetMute(&self, bmute: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetMute(&self) -> windows_core::Result; + fn SetMute(&self, bmute: windows_core::BOOL) -> windows_core::Result<()>; + fn GetMute(&self) -> windows_core::Result; } impl IMFSimpleAudioVolume_Vtbl { pub const fn new() -> Self { @@ -34576,13 +34576,13 @@ impl IMFSimpleAudioVolume_Vtbl { } } } - unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, bmute: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetMute(this: *mut core::ffi::c_void, bmute: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSimpleAudioVolume_Impl::SetMute(this, core::mem::transmute_copy(&bmute)).into() } } - unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pbmute: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetMute(this: *mut core::ffi::c_void, pbmute: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSimpleAudioVolume_Impl::GetMute(this) { @@ -34966,7 +34966,7 @@ impl windows_core::RuntimeName for IMFSinkWriterEx {} windows_core::imp::define_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 { + pub unsafe fn GetUpdating(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetUpdating)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetBuffered(&self) -> windows_core::Result { @@ -35012,7 +35012,7 @@ impl IMFSourceBuffer { #[repr(C)] pub struct IMFSourceBuffer_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetUpdating: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub GetUpdating: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetBuffered: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetTimeStampOffset: unsafe extern "system" fn(*mut core::ffi::c_void) -> f64, pub SetTimeStampOffset: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, @@ -35026,7 +35026,7 @@ pub struct IMFSourceBuffer_Vtbl { pub Remove: unsafe extern "system" fn(*mut core::ffi::c_void, f64, f64) -> windows_core::HRESULT, } pub trait IMFSourceBuffer_Impl: windows_core::IUnknownImpl { - fn GetUpdating(&self) -> super::super::Foundation::BOOL; + fn GetUpdating(&self) -> windows_core::BOOL; fn GetBuffered(&self) -> windows_core::Result; fn GetTimeStampOffset(&self) -> f64; fn SetTimeStampOffset(&self, offset: f64) -> windows_core::Result<()>; @@ -35041,7 +35041,7 @@ pub trait IMFSourceBuffer_Impl: windows_core::IUnknownImpl { } impl IMFSourceBuffer_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetUpdating(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetUpdating(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceBuffer_Impl::GetUpdating(this) @@ -35347,7 +35347,7 @@ impl windows_core::RuntimeName for IMFSourceOpenMonitor {} windows_core::imp::define_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 { + pub unsafe fn GetStreamSelection(&self, dwstreamindex: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetStreamSelection)(windows_core::Interface::as_raw(self), dwstreamindex, &mut result__).map(|| result__) @@ -35398,8 +35398,8 @@ impl IMFSourceReader { #[repr(C)] pub struct IMFSourceReader_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetStreamSelection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetStreamSelection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetStreamSelection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetStreamSelection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, pub GetNativeMediaType: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetCurrentMediaType: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCurrentMediaType: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const u32, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -35417,8 +35417,8 @@ pub struct IMFSourceReader_Vtbl { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub trait IMFSourceReader_Impl: windows_core::IUnknownImpl { - fn GetStreamSelection(&self, dwstreamindex: u32) -> windows_core::Result; - fn SetStreamSelection(&self, dwstreamindex: u32, fselected: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetStreamSelection(&self, dwstreamindex: u32) -> windows_core::Result; + fn SetStreamSelection(&self, dwstreamindex: u32, fselected: windows_core::BOOL) -> windows_core::Result<()>; fn GetNativeMediaType(&self, dwstreamindex: u32, dwmediatypeindex: u32) -> windows_core::Result; fn GetCurrentMediaType(&self, dwstreamindex: u32) -> windows_core::Result; fn SetCurrentMediaType(&self, dwstreamindex: u32, pdwreserved: *const u32, pmediatype: windows_core::Ref) -> windows_core::Result<()>; @@ -35431,7 +35431,7 @@ pub trait IMFSourceReader_Impl: windows_core::IUnknownImpl { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] impl IMFSourceReader_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, pfselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, pfselected: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFSourceReader_Impl::GetStreamSelection(this, core::mem::transmute_copy(&dwstreamindex)) { @@ -35443,7 +35443,7 @@ impl IMFSourceReader_Vtbl { } } } - unsafe extern "system" fn SetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, fselected: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetStreamSelection(this: *mut core::ffi::c_void, dwstreamindex: u32, fselected: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFSourceReader_Impl::SetStreamSelection(this, core::mem::transmute_copy(&dwstreamindex), core::mem::transmute_copy(&fselected)).into() @@ -36331,14 +36331,14 @@ impl IMFStreamingSinkConfig { #[repr(C)] pub struct IMFStreamingSinkConfig_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub StartStreaming: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, u64) -> windows_core::HRESULT, + pub StartStreaming: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, u64) -> windows_core::HRESULT, } pub trait IMFStreamingSinkConfig_Impl: windows_core::IUnknownImpl { - fn StartStreaming(&self, fseekoffsetisbyteoffset: super::super::Foundation::BOOL, qwseekoffset: u64) -> windows_core::Result<()>; + fn StartStreaming(&self, fseekoffsetisbyteoffset: windows_core::BOOL, qwseekoffset: u64) -> windows_core::Result<()>; } impl IMFStreamingSinkConfig_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn StartStreaming(this: *mut core::ffi::c_void, fseekoffsetisbyteoffset: super::super::Foundation::BOOL, qwseekoffset: u64) -> windows_core::HRESULT { + unsafe extern "system" fn StartStreaming(this: *mut core::ffi::c_void, fseekoffsetisbyteoffset: windows_core::BOOL, qwseekoffset: u64) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFStreamingSinkConfig_Impl::StartStreaming(this, core::mem::transmute_copy(&fseekoffsetisbyteoffset), core::mem::transmute_copy(&qwseekoffset)).into() @@ -36590,7 +36590,7 @@ impl IMFTimedText { pub unsafe fn SetInBandEnabled(&self, enabled: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetInBandEnabled)(windows_core::Interface::as_raw(self), enabled.into()).ok() } } - pub unsafe fn IsInBandEnabled(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsInBandEnabled(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsInBandEnabled)(windows_core::Interface::as_raw(self)) } } } @@ -36598,9 +36598,9 @@ impl IMFTimedText { pub struct IMFTimedText_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub RegisterNotifications: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SelectTrack: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub AddDataSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, MF_TIMED_TEXT_TRACK_KIND, super::super::Foundation::BOOL, *mut u32) -> windows_core::HRESULT, - pub AddDataSourceFromUrl: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, MF_TIMED_TEXT_TRACK_KIND, super::super::Foundation::BOOL, *mut u32) -> windows_core::HRESULT, + pub SelectTrack: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, + pub AddDataSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, MF_TIMED_TEXT_TRACK_KIND, windows_core::BOOL, *mut u32) -> windows_core::HRESULT, + pub AddDataSourceFromUrl: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, MF_TIMED_TEXT_TRACK_KIND, windows_core::BOOL, *mut u32) -> windows_core::HRESULT, pub AddTrack: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, MF_TIMED_TEXT_TRACK_KIND, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveTrack: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetCueTimeOffset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, @@ -36609,14 +36609,14 @@ pub struct IMFTimedText_Vtbl { pub GetActiveTracks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetTextTracks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetMetadataTracks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetInBandEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsInBandEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub SetInBandEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub IsInBandEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } pub trait IMFTimedText_Impl: windows_core::IUnknownImpl { fn RegisterNotifications(&self, notify: windows_core::Ref) -> windows_core::Result<()>; - fn SelectTrack(&self, trackid: u32, selected: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn AddDataSource(&self, bytestream: windows_core::Ref, label: &windows_core::PCWSTR, language: &windows_core::PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: super::super::Foundation::BOOL) -> windows_core::Result; - fn AddDataSourceFromUrl(&self, url: &windows_core::PCWSTR, label: &windows_core::PCWSTR, language: &windows_core::PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: super::super::Foundation::BOOL) -> windows_core::Result; + fn SelectTrack(&self, trackid: u32, selected: windows_core::BOOL) -> windows_core::Result<()>; + fn AddDataSource(&self, bytestream: windows_core::Ref, label: &windows_core::PCWSTR, language: &windows_core::PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: windows_core::BOOL) -> windows_core::Result; + fn AddDataSourceFromUrl(&self, url: &windows_core::PCWSTR, label: &windows_core::PCWSTR, language: &windows_core::PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: windows_core::BOOL) -> windows_core::Result; fn AddTrack(&self, label: &windows_core::PCWSTR, language: &windows_core::PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND) -> windows_core::Result; fn RemoveTrack(&self, track: windows_core::Ref) -> windows_core::Result<()>; fn GetCueTimeOffset(&self) -> windows_core::Result; @@ -36625,8 +36625,8 @@ pub trait IMFTimedText_Impl: windows_core::IUnknownImpl { fn GetActiveTracks(&self) -> windows_core::Result; fn GetTextTracks(&self) -> windows_core::Result; fn GetMetadataTracks(&self) -> windows_core::Result; - fn SetInBandEnabled(&self, enabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn IsInBandEnabled(&self) -> super::super::Foundation::BOOL; + fn SetInBandEnabled(&self, enabled: windows_core::BOOL) -> windows_core::Result<()>; + fn IsInBandEnabled(&self) -> windows_core::BOOL; } impl IMFTimedText_Vtbl { pub const fn new() -> Self { @@ -36636,13 +36636,13 @@ impl IMFTimedText_Vtbl { IMFTimedText_Impl::RegisterNotifications(this, core::mem::transmute_copy(¬ify)).into() } } - unsafe extern "system" fn SelectTrack(this: *mut core::ffi::c_void, trackid: u32, selected: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SelectTrack(this: *mut core::ffi::c_void, trackid: u32, selected: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedText_Impl::SelectTrack(this, core::mem::transmute_copy(&trackid), core::mem::transmute_copy(&selected)).into() } } - unsafe extern "system" fn AddDataSource(this: *mut core::ffi::c_void, bytestream: *mut core::ffi::c_void, label: windows_core::PCWSTR, language: windows_core::PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: super::super::Foundation::BOOL, trackid: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn AddDataSource(this: *mut core::ffi::c_void, bytestream: *mut core::ffi::c_void, label: windows_core::PCWSTR, language: windows_core::PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: windows_core::BOOL, trackid: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedText_Impl::AddDataSource(this, core::mem::transmute_copy(&bytestream), core::mem::transmute(&label), core::mem::transmute(&language), core::mem::transmute_copy(&kind), core::mem::transmute_copy(&isdefault)) { @@ -36654,7 +36654,7 @@ impl IMFTimedText_Vtbl { } } } - unsafe extern "system" fn AddDataSourceFromUrl(this: *mut core::ffi::c_void, url: windows_core::PCWSTR, label: windows_core::PCWSTR, language: windows_core::PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: super::super::Foundation::BOOL, trackid: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn AddDataSourceFromUrl(this: *mut core::ffi::c_void, url: windows_core::PCWSTR, label: windows_core::PCWSTR, language: windows_core::PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: windows_core::BOOL, trackid: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedText_Impl::AddDataSourceFromUrl(this, core::mem::transmute(&url), core::mem::transmute(&label), core::mem::transmute(&language), core::mem::transmute_copy(&kind), core::mem::transmute_copy(&isdefault)) { @@ -36750,13 +36750,13 @@ impl IMFTimedText_Vtbl { } } } - unsafe extern "system" fn SetInBandEnabled(this: *mut core::ffi::c_void, enabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetInBandEnabled(this: *mut core::ffi::c_void, enabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedText_Impl::SetInBandEnabled(this, core::mem::transmute_copy(&enabled)).into() } } - unsafe extern "system" fn IsInBandEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsInBandEnabled(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedText_Impl::IsInBandEnabled(this) @@ -37337,7 +37337,7 @@ pub struct IMFTimedTextNotify_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub TrackAdded: unsafe extern "system" fn(*mut core::ffi::c_void, u32), pub TrackRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, u32), - pub TrackSelected: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL), + pub TrackSelected: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL), pub TrackReadyStateChanged: unsafe extern "system" fn(*mut core::ffi::c_void, u32), pub Error: unsafe extern "system" fn(*mut core::ffi::c_void, MF_TIMED_TEXT_ERROR_CODE, windows_core::HRESULT, u32), pub Cue: unsafe extern "system" fn(*mut core::ffi::c_void, MF_TIMED_TEXT_CUE_EVENT, f64, *mut core::ffi::c_void), @@ -37346,7 +37346,7 @@ pub struct IMFTimedTextNotify_Vtbl { pub trait IMFTimedTextNotify_Impl: windows_core::IUnknownImpl { fn TrackAdded(&self, trackid: u32); fn TrackRemoved(&self, trackid: u32); - fn TrackSelected(&self, trackid: u32, selected: super::super::Foundation::BOOL); + fn TrackSelected(&self, trackid: u32, selected: windows_core::BOOL); fn TrackReadyStateChanged(&self, trackid: u32); fn Error(&self, errorcode: MF_TIMED_TEXT_ERROR_CODE, extendederrorcode: windows_core::HRESULT, sourcetrackid: u32); fn Cue(&self, cueevent: MF_TIMED_TEXT_CUE_EVENT, currenttime: f64, cue: windows_core::Ref); @@ -37366,7 +37366,7 @@ impl IMFTimedTextNotify_Vtbl { IMFTimedTextNotify_Impl::TrackRemoved(this, core::mem::transmute_copy(&trackid)) } } - unsafe extern "system" fn TrackSelected(this: *mut core::ffi::c_void, trackid: u32, selected: super::super::Foundation::BOOL) { + unsafe extern "system" fn TrackSelected(this: *mut core::ffi::c_void, trackid: u32, selected: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextNotify_Impl::TrackSelected(this, core::mem::transmute_copy(&trackid), core::mem::transmute_copy(&selected)) @@ -37448,7 +37448,7 @@ impl IMFTimedTextRegion { pub unsafe fn GetLineHeight(&self, plineheight: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetLineHeight)(windows_core::Interface::as_raw(self), plineheight as _, unittype as _).ok() } } - pub unsafe fn GetClipOverflow(&self) -> windows_core::Result { + pub unsafe fn GetClipOverflow(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetClipOverflow)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -37457,7 +37457,7 @@ impl IMFTimedTextRegion { pub unsafe fn GetPadding(&self, before: *mut f64, start: *mut f64, after: *mut f64, end: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetPadding)(windows_core::Interface::as_raw(self), before as _, start as _, after as _, end as _, unittype as _).ok() } } - pub unsafe fn GetWrap(&self) -> windows_core::Result { + pub unsafe fn GetWrap(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetWrap)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -37486,9 +37486,9 @@ pub struct IMFTimedTextRegion_Vtbl { pub GetWritingMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MF_TIMED_TEXT_WRITING_MODE) -> windows_core::HRESULT, pub GetDisplayAlignment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MF_TIMED_TEXT_DISPLAY_ALIGNMENT) -> windows_core::HRESULT, pub GetLineHeight: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64, *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::HRESULT, - pub GetClipOverflow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetClipOverflow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetPadding: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64, *mut f64, *mut f64, *mut f64, *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::HRESULT, - pub GetWrap: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetWrap: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetZIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub GetScrollMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MF_TIMED_TEXT_SCROLL_MODE) -> windows_core::HRESULT, } @@ -37500,9 +37500,9 @@ pub trait IMFTimedTextRegion_Impl: windows_core::IUnknownImpl { fn GetWritingMode(&self) -> windows_core::Result; fn GetDisplayAlignment(&self) -> windows_core::Result; fn GetLineHeight(&self, plineheight: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::Result<()>; - fn GetClipOverflow(&self) -> windows_core::Result; + fn GetClipOverflow(&self) -> windows_core::Result; fn GetPadding(&self, before: *mut f64, start: *mut f64, after: *mut f64, end: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::Result<()>; - fn GetWrap(&self) -> windows_core::Result; + fn GetWrap(&self) -> windows_core::Result; fn GetZIndex(&self) -> windows_core::Result; fn GetScrollMode(&self) -> windows_core::Result; } @@ -37574,7 +37574,7 @@ impl IMFTimedTextRegion_Vtbl { IMFTimedTextRegion_Impl::GetLineHeight(this, core::mem::transmute_copy(&plineheight), core::mem::transmute_copy(&unittype)).into() } } - unsafe extern "system" fn GetClipOverflow(this: *mut core::ffi::c_void, clipoverflow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetClipOverflow(this: *mut core::ffi::c_void, clipoverflow: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextRegion_Impl::GetClipOverflow(this) { @@ -37592,7 +37592,7 @@ impl IMFTimedTextRegion_Vtbl { IMFTimedTextRegion_Impl::GetPadding(this, core::mem::transmute_copy(&before), core::mem::transmute_copy(&start), core::mem::transmute_copy(&after), core::mem::transmute_copy(&end), core::mem::transmute_copy(&unittype)).into() } } - unsafe extern "system" fn GetWrap(this: *mut core::ffi::c_void, wrap: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetWrap(this: *mut core::ffi::c_void, wrap: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextRegion_Impl::GetWrap(this) { @@ -37763,7 +37763,7 @@ impl IMFTimedTextStyle { (windows_core::Interface::vtable(self).GetName)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsExternal(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsExternal(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsExternal)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetFontFamily(&self) -> windows_core::Result { @@ -37787,7 +37787,7 @@ impl IMFTimedTextStyle { (windows_core::Interface::vtable(self).GetBackgroundColor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetShowBackgroundAlways(&self) -> windows_core::Result { + pub unsafe fn GetShowBackgroundAlways(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetShowBackgroundAlways)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -37799,13 +37799,13 @@ impl IMFTimedTextStyle { (windows_core::Interface::vtable(self).GetFontStyle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetBold(&self) -> windows_core::Result { + pub unsafe fn GetBold(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBold)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetRightToLeft(&self) -> windows_core::Result { + pub unsafe fn GetRightToLeft(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRightToLeft)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -37831,30 +37831,30 @@ impl IMFTimedTextStyle { pub struct IMFTimedTextStyle_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub IsExternal: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsExternal: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetFontFamily: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetFontSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64, *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::HRESULT, pub GetColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MFARGB) -> windows_core::HRESULT, pub GetBackgroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MFARGB) -> windows_core::HRESULT, - pub GetShowBackgroundAlways: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetShowBackgroundAlways: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetFontStyle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MF_TIMED_TEXT_FONT_STYLE) -> windows_core::HRESULT, - pub GetBold: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetRightToLeft: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetBold: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub GetRightToLeft: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetTextAlignment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MF_TIMED_TEXT_ALIGNMENT) -> windows_core::HRESULT, pub GetTextDecoration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetTextOutline: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MFARGB, *mut f64, *mut f64, *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::HRESULT, } pub trait IMFTimedTextStyle_Impl: windows_core::IUnknownImpl { fn GetName(&self) -> windows_core::Result; - fn IsExternal(&self) -> super::super::Foundation::BOOL; + fn IsExternal(&self) -> windows_core::BOOL; fn GetFontFamily(&self) -> windows_core::Result; fn GetFontSize(&self, fontsize: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::Result<()>; fn GetColor(&self) -> windows_core::Result; fn GetBackgroundColor(&self) -> windows_core::Result; - fn GetShowBackgroundAlways(&self) -> windows_core::Result; + fn GetShowBackgroundAlways(&self) -> windows_core::Result; fn GetFontStyle(&self) -> windows_core::Result; - fn GetBold(&self) -> windows_core::Result; - fn GetRightToLeft(&self) -> windows_core::Result; + fn GetBold(&self) -> windows_core::Result; + fn GetRightToLeft(&self) -> windows_core::Result; fn GetTextAlignment(&self) -> windows_core::Result; fn GetTextDecoration(&self) -> windows_core::Result; fn GetTextOutline(&self, color: *mut MFARGB, thickness: *mut f64, blurradius: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> windows_core::Result<()>; @@ -37873,7 +37873,7 @@ impl IMFTimedTextStyle_Vtbl { } } } - unsafe extern "system" fn IsExternal(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsExternal(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextStyle_Impl::IsExternal(this) @@ -37921,7 +37921,7 @@ impl IMFTimedTextStyle_Vtbl { } } } - unsafe extern "system" fn GetShowBackgroundAlways(this: *mut core::ffi::c_void, showbackgroundalways: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetShowBackgroundAlways(this: *mut core::ffi::c_void, showbackgroundalways: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextStyle_Impl::GetShowBackgroundAlways(this) { @@ -37945,7 +37945,7 @@ impl IMFTimedTextStyle_Vtbl { } } } - unsafe extern "system" fn GetBold(this: *mut core::ffi::c_void, bold: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetBold(this: *mut core::ffi::c_void, bold: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextStyle_Impl::GetBold(this) { @@ -37957,7 +37957,7 @@ impl IMFTimedTextStyle_Vtbl { } } } - unsafe extern "system" fn GetRightToLeft(this: *mut core::ffi::c_void, righttoleft: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetRightToLeft(this: *mut core::ffi::c_void, righttoleft: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextStyle_Impl::GetRightToLeft(this) { @@ -38036,7 +38036,7 @@ impl IMFTimedTextStyle2 { (windows_core::Interface::vtable(self).GetBouten)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn IsTextCombined(&self) -> windows_core::Result { + pub unsafe fn IsTextCombined(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsTextCombined)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -38054,13 +38054,13 @@ pub struct IMFTimedTextStyle2_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetRuby: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetBouten: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsTextCombined: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsTextCombined: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetFontAngleInDegrees: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, } pub trait IMFTimedTextStyle2_Impl: windows_core::IUnknownImpl { fn GetRuby(&self) -> windows_core::Result; fn GetBouten(&self) -> windows_core::Result; - fn IsTextCombined(&self) -> windows_core::Result; + fn IsTextCombined(&self) -> windows_core::Result; fn GetFontAngleInDegrees(&self) -> windows_core::Result; } impl IMFTimedTextStyle2_Vtbl { @@ -38089,7 +38089,7 @@ impl IMFTimedTextStyle2_Vtbl { } } } - unsafe extern "system" fn IsTextCombined(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsTextCombined(this: *mut core::ffi::c_void, value: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTimedTextStyle2_Impl::IsTextCombined(this) { @@ -38153,7 +38153,7 @@ impl IMFTimedTextTrack { pub unsafe fn GetTrackKind(&self) -> MF_TIMED_TEXT_TRACK_KIND { unsafe { (windows_core::Interface::vtable(self).GetTrackKind)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn IsInBand(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsInBand(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsInBand)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetInBandMetadataTrackDispatchType(&self) -> windows_core::Result { @@ -38162,7 +38162,7 @@ impl IMFTimedTextTrack { (windows_core::Interface::vtable(self).GetInBandMetadataTrackDispatchType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsActive(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsActive(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsActive)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetErrorCode(&self) -> MF_TIMED_TEXT_ERROR_CODE { @@ -38195,9 +38195,9 @@ pub struct IMFTimedTextTrack_Vtbl { pub SetLabel: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub GetLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetTrackKind: unsafe extern "system" fn(*mut core::ffi::c_void) -> MF_TIMED_TEXT_TRACK_KIND, - pub IsInBand: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsInBand: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetInBandMetadataTrackDispatchType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub IsActive: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsActive: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetErrorCode: unsafe extern "system" fn(*mut core::ffi::c_void) -> MF_TIMED_TEXT_ERROR_CODE, pub GetExtendedErrorCode: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDataFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, @@ -38210,9 +38210,9 @@ pub trait IMFTimedTextTrack_Impl: windows_core::IUnknownImpl { fn SetLabel(&self, label: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetLanguage(&self) -> windows_core::Result; fn GetTrackKind(&self) -> MF_TIMED_TEXT_TRACK_KIND; - fn IsInBand(&self) -> super::super::Foundation::BOOL; + fn IsInBand(&self) -> windows_core::BOOL; fn GetInBandMetadataTrackDispatchType(&self) -> windows_core::Result; - fn IsActive(&self) -> super::super::Foundation::BOOL; + fn IsActive(&self) -> windows_core::BOOL; fn GetErrorCode(&self) -> MF_TIMED_TEXT_ERROR_CODE; fn GetExtendedErrorCode(&self) -> windows_core::Result<()>; fn GetDataFormat(&self) -> windows_core::Result; @@ -38263,7 +38263,7 @@ impl IMFTimedTextTrack_Vtbl { IMFTimedTextTrack_Impl::GetTrackKind(this) } } - unsafe extern "system" fn IsInBand(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsInBand(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextTrack_Impl::IsInBand(this) @@ -38281,7 +38281,7 @@ impl IMFTimedTextTrack_Vtbl { } } } - unsafe extern "system" fn IsActive(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsActive(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFTimedTextTrack_Impl::IsActive(this) @@ -39845,7 +39845,7 @@ impl IMFTrustedOutput { (windows_core::Interface::vtable(self).GetOutputTrustAuthorityByIndex)(windows_core::Interface::as_raw(self), dwindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn IsFinal(&self) -> windows_core::Result { + pub unsafe fn IsFinal(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsFinal)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -39857,12 +39857,12 @@ pub struct IMFTrustedOutput_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetOutputTrustAuthorityCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetOutputTrustAuthorityByIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsFinal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsFinal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IMFTrustedOutput_Impl: windows_core::IUnknownImpl { fn GetOutputTrustAuthorityCount(&self) -> windows_core::Result; fn GetOutputTrustAuthorityByIndex(&self, dwindex: u32) -> windows_core::Result; - fn IsFinal(&self) -> windows_core::Result; + fn IsFinal(&self) -> windows_core::Result; } impl IMFTrustedOutput_Vtbl { pub const fn new() -> Self { @@ -39890,7 +39890,7 @@ impl IMFTrustedOutput_Vtbl { } } } - unsafe extern "system" fn IsFinal(this: *mut core::ffi::c_void, pfisfinal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsFinal(this: *mut core::ffi::c_void, pfisfinal: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFTrustedOutput_Impl::IsFinal(this) { @@ -40057,7 +40057,7 @@ impl IMFVideoDisplayControl { pub unsafe fn SetFullscreen(&self, ffullscreen: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetFullscreen)(windows_core::Interface::as_raw(self), ffullscreen.into()).ok() } } - pub unsafe fn GetFullscreen(&self) -> windows_core::Result { + pub unsafe fn GetFullscreen(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetFullscreen)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -40084,8 +40084,8 @@ pub struct IMFVideoDisplayControl_Vtbl { pub GetBorderColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::COLORREF) -> windows_core::HRESULT, pub SetRenderingPrefs: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetRenderingPrefs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub SetFullscreen: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetFullscreen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetFullscreen: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetFullscreen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Graphics_Gdi")] pub trait IMFVideoDisplayControl_Impl: windows_core::IUnknownImpl { @@ -40103,8 +40103,8 @@ pub trait IMFVideoDisplayControl_Impl: windows_core::IUnknownImpl { fn GetBorderColor(&self) -> windows_core::Result; fn SetRenderingPrefs(&self, dwrenderflags: u32) -> windows_core::Result<()>; fn GetRenderingPrefs(&self) -> windows_core::Result; - fn SetFullscreen(&self, ffullscreen: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetFullscreen(&self) -> windows_core::Result; + fn SetFullscreen(&self, ffullscreen: windows_core::BOOL) -> windows_core::Result<()>; + fn GetFullscreen(&self) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Gdi")] impl IMFVideoDisplayControl_Vtbl { @@ -40217,13 +40217,13 @@ impl IMFVideoDisplayControl_Vtbl { } } } - unsafe extern "system" fn SetFullscreen(this: *mut core::ffi::c_void, ffullscreen: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetFullscreen(this: *mut core::ffi::c_void, ffullscreen: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoDisplayControl_Impl::SetFullscreen(this, core::mem::transmute_copy(&ffullscreen)).into() } } - unsafe extern "system" fn GetFullscreen(this: *mut core::ffi::c_void, pffullscreen: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetFullscreen(this: *mut core::ffi::c_void, pffullscreen: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMFVideoDisplayControl_Impl::GetFullscreen(this) { @@ -40976,12 +40976,12 @@ impl IMFVideoProcessorControl2 { pub struct IMFVideoProcessorControl2_Vtbl { pub base__: IMFVideoProcessorControl_Vtbl, pub SetRotationOverride: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub EnableHardwareEffects: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableHardwareEffects: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetSupportedHardwareEffects: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } pub trait IMFVideoProcessorControl2_Impl: IMFVideoProcessorControl_Impl { fn SetRotationOverride(&self, uirotation: u32) -> windows_core::Result<()>; - fn EnableHardwareEffects(&self, fenabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EnableHardwareEffects(&self, fenabled: windows_core::BOOL) -> windows_core::Result<()>; fn GetSupportedHardwareEffects(&self) -> windows_core::Result; } impl IMFVideoProcessorControl2_Vtbl { @@ -40992,7 +40992,7 @@ impl IMFVideoProcessorControl2_Vtbl { IMFVideoProcessorControl2_Impl::SetRotationOverride(this, core::mem::transmute_copy(&uirotation)).into() } } - unsafe extern "system" fn EnableHardwareEffects(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableHardwareEffects(this: *mut core::ffi::c_void, fenabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessorControl2_Impl::EnableHardwareEffects(this, core::mem::transmute_copy(&fenabled)).into() @@ -41054,13 +41054,13 @@ impl IMFVideoProcessorControl3 { pub struct IMFVideoProcessorControl3_Vtbl { pub base__: IMFVideoProcessorControl2_Vtbl, pub GetNaturalOutputType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub EnableSphericalVideoProcessing: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, MFVideoSphericalFormat, MFVideoSphericalProjectionMode) -> windows_core::HRESULT, + pub EnableSphericalVideoProcessing: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, MFVideoSphericalFormat, MFVideoSphericalProjectionMode) -> windows_core::HRESULT, pub SetSphericalVideoProperties: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32, f32, f32, f32) -> windows_core::HRESULT, pub SetOutputDevice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IMFVideoProcessorControl3_Impl: IMFVideoProcessorControl2_Impl { fn GetNaturalOutputType(&self) -> windows_core::Result; - fn EnableSphericalVideoProcessing(&self, fenable: super::super::Foundation::BOOL, eformat: MFVideoSphericalFormat, eprojectionmode: MFVideoSphericalProjectionMode) -> windows_core::Result<()>; + fn EnableSphericalVideoProcessing(&self, fenable: windows_core::BOOL, eformat: MFVideoSphericalFormat, eprojectionmode: MFVideoSphericalProjectionMode) -> windows_core::Result<()>; fn SetSphericalVideoProperties(&self, x: f32, y: f32, z: f32, w: f32, fieldofview: f32) -> windows_core::Result<()>; fn SetOutputDevice(&self, poutputdevice: windows_core::Ref) -> windows_core::Result<()>; } @@ -41078,7 +41078,7 @@ impl IMFVideoProcessorControl3_Vtbl { } } } - unsafe extern "system" fn EnableSphericalVideoProcessing(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL, eformat: MFVideoSphericalFormat, eprojectionmode: MFVideoSphericalProjectionMode) -> windows_core::HRESULT { + unsafe extern "system" fn EnableSphericalVideoProcessing(this: *mut core::ffi::c_void, fenable: windows_core::BOOL, eformat: MFVideoSphericalFormat, eprojectionmode: MFVideoSphericalProjectionMode) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMFVideoProcessorControl3_Impl::EnableSphericalVideoProcessing(this, core::mem::transmute_copy(&fenable), core::mem::transmute_copy(&eformat), core::mem::transmute_copy(&eprojectionmode)).into() @@ -43166,13 +43166,13 @@ pub struct IWMFrameInterpProps_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetFrameRateIn: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32) -> windows_core::HRESULT, pub SetFrameRateOut: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32) -> windows_core::HRESULT, - pub SetFrameInterpEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetFrameInterpEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetComplexityLevel: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, } pub trait IWMFrameInterpProps_Impl: windows_core::IUnknownImpl { fn SetFrameRateIn(&self, lframerate: i32, lscale: i32) -> windows_core::Result<()>; fn SetFrameRateOut(&self, lframerate: i32, lscale: i32) -> windows_core::Result<()>; - fn SetFrameInterpEnabled(&self, bfienabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetFrameInterpEnabled(&self, bfienabled: windows_core::BOOL) -> windows_core::Result<()>; fn SetComplexityLevel(&self, icomplexity: i32) -> windows_core::Result<()>; } impl IWMFrameInterpProps_Vtbl { @@ -43189,7 +43189,7 @@ impl IWMFrameInterpProps_Vtbl { IWMFrameInterpProps_Impl::SetFrameRateOut(this, core::mem::transmute_copy(&lframerate), core::mem::transmute_copy(&lscale)).into() } } - unsafe extern "system" fn SetFrameInterpEnabled(this: *mut core::ffi::c_void, bfienabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetFrameInterpEnabled(this: *mut core::ffi::c_void, bfienabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMFrameInterpProps_Impl::SetFrameInterpEnabled(this, core::mem::transmute_copy(&bfienabled)).into() @@ -43407,14 +43407,14 @@ impl IWMSampleExtensionSupport { #[repr(C)] pub struct IWMSampleExtensionSupport_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetUseSampleExtensions: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetUseSampleExtensions: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWMSampleExtensionSupport_Impl: windows_core::IUnknownImpl { - fn SetUseSampleExtensions(&self, fuseextensions: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetUseSampleExtensions(&self, fuseextensions: windows_core::BOOL) -> windows_core::Result<()>; } impl IWMSampleExtensionSupport_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetUseSampleExtensions(this: *mut core::ffi::c_void, fuseextensions: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetUseSampleExtensions(this: *mut core::ffi::c_void, fuseextensions: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSampleExtensionSupport_Impl::SetUseSampleExtensions(this, core::mem::transmute_copy(&fuseextensions)).into() @@ -44508,7 +44508,7 @@ pub const MFMEDIASOURCE_IS_LIVE: MFMEDIASOURCE_CHARACTERISTICS = MFMEDIASOURCE_C #[derive(Clone, Copy, Debug, PartialEq)] pub struct MFMPEG2DLNASINKSTATS { pub cBytesWritten: u64, - pub fPAL: super::super::Foundation::BOOL, + pub fPAL: windows_core::BOOL, pub fccVideo: u32, pub dwVideoWidth: u32, pub dwVideoHeight: u32, @@ -44680,8 +44680,8 @@ pub struct MFNetAuthenticationFlags(pub i32); #[derive(Clone, Copy, Debug, PartialEq)] pub struct MFNetCredentialManagerGetParam { pub hrOp: windows_core::HRESULT, - pub fAllowLoggedOnUser: super::super::Foundation::BOOL, - pub fClearTextPackage: super::super::Foundation::BOOL, + pub fAllowLoggedOnUser: windows_core::BOOL, + pub fClearTextPackage: windows_core::BOOL, pub pszUrl: windows_core::PCWSTR, pub pszSite: windows_core::PCWSTR, pub pszRealm: windows_core::PCWSTR, @@ -44757,7 +44757,7 @@ pub const MFPROTECTION_WMDRMOTA: windows_core::GUID = windows_core::GUID::from_u pub struct MFP_ACQUIRE_USER_CREDENTIAL_EVENT { pub header: MFP_EVENT_HEADER, pub dwUserData: usize, - pub fProceedWithAuthentication: super::super::Foundation::BOOL, + pub fProceedWithAuthentication: windows_core::BOOL, pub hrAuthenticationStatus: windows_core::HRESULT, pub pwszURL: windows_core::PCWSTR, pub pwszSite: windows_core::PCWSTR, @@ -45573,7 +45573,7 @@ pub const MFVideoARMode_PreservePixel: MFVideoAspectRatioMode = MFVideoAspectRat #[repr(C)] #[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_Gdi"))] pub struct MFVideoAlphaBitmap { - pub GetBitmapFromDC: super::super::Foundation::BOOL, + pub GetBitmapFromDC: windows_core::BOOL, pub bitmap: MFVideoAlphaBitmap_0, pub params: MFVideoAlphaBitmapParams, } @@ -47977,8 +47977,8 @@ pub const MSAMRNBEncoder: windows_core::GUID = windows_core::GUID::from_u128(0x2 pub struct MT_ARBITRARY_HEADER { pub majortype: windows_core::GUID, pub subtype: windows_core::GUID, - pub bFixedSizeSamples: super::super::Foundation::BOOL, - pub bTemporalCompression: super::super::Foundation::BOOL, + pub bFixedSizeSamples: windows_core::BOOL, + pub bTemporalCompression: windows_core::BOOL, pub lSampleSize: u32, pub formattype: windows_core::GUID, } 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 4abe157fa6..62dd0cfcb2 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/mod.rs @@ -6506,7 +6506,7 @@ pub struct IWMPEffects_Vtbl { pub SetCurrentPreset: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub GetCurrentPreset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub DisplayPropertyPage: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND) -> windows_core::HRESULT, - pub GoFullscreen: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GoFullscreen: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub RenderFullScreen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut TimedLevel) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -6520,7 +6520,7 @@ pub trait IWMPEffects_Impl: windows_core::IUnknownImpl { fn SetCurrentPreset(&self, npreset: i32) -> windows_core::Result<()>; fn GetCurrentPreset(&self, pnpreset: *mut i32) -> windows_core::Result<()>; fn DisplayPropertyPage(&self, hwndowner: super::super::Foundation::HWND) -> windows_core::Result<()>; - fn GoFullscreen(&self, ffullscreen: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GoFullscreen(&self, ffullscreen: windows_core::BOOL) -> windows_core::Result<()>; fn RenderFullScreen(&self, plevels: *mut TimedLevel) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -6580,7 +6580,7 @@ impl IWMPEffects_Vtbl { IWMPEffects_Impl::DisplayPropertyPage(this, core::mem::transmute_copy(&hwndowner)).into() } } - unsafe extern "system" fn GoFullscreen(this: *mut core::ffi::c_void, ffullscreen: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GoFullscreen(this: *mut core::ffi::c_void, ffullscreen: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects_Impl::GoFullscreen(this, core::mem::transmute_copy(&ffullscreen)).into() @@ -6663,7 +6663,7 @@ pub struct IWMPEffects2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] NotifyNewMedia: usize, pub OnWindowMessage: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::LRESULT) -> windows_core::HRESULT, - pub RenderWindowed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut TimedLevel, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub RenderWindowed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut TimedLevel, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub trait IWMPEffects2_Impl: IWMPEffects_Impl { @@ -6672,7 +6672,7 @@ pub trait IWMPEffects2_Impl: IWMPEffects_Impl { fn Destroy(&self) -> windows_core::Result<()>; fn NotifyNewMedia(&self, pmedia: windows_core::Ref) -> windows_core::Result<()>; fn OnWindowMessage(&self, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresultparam: *mut super::super::Foundation::LRESULT) -> windows_core::Result<()>; - fn RenderWindowed(&self, pdata: *mut TimedLevel, frequiredrender: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn RenderWindowed(&self, pdata: *mut TimedLevel, frequiredrender: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IWMPEffects2_Vtbl { @@ -6707,7 +6707,7 @@ impl IWMPEffects2_Vtbl { IWMPEffects2_Impl::OnWindowMessage(this, core::mem::transmute_copy(&msg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam), core::mem::transmute_copy(&plresultparam)).into() } } - unsafe extern "system" fn RenderWindowed(this: *mut core::ffi::c_void, pdata: *mut TimedLevel, frequiredrender: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RenderWindowed(this: *mut core::ffi::c_void, pdata: *mut TimedLevel, frequiredrender: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPEffects2_Impl::RenderWindowed(this, core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&frequiredrender)).into() @@ -9735,13 +9735,13 @@ impl IWMPNodeRealEstate { pub unsafe fn SetWindowless(&self, fwindowless: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetWindowless)(windows_core::Interface::as_raw(self), fwindowless.into()).ok() } } - pub unsafe fn GetWindowless(&self, pfwindowless: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetWindowless(&self, pfwindowless: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetWindowless)(windows_core::Interface::as_raw(self), pfwindowless as _).ok() } } pub unsafe fn SetFullScreen(&self, ffullscreen: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetFullScreen)(windows_core::Interface::as_raw(self), ffullscreen.into()).ok() } } - pub unsafe fn GetFullScreen(&self, pffullscreen: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetFullScreen(&self, pffullscreen: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetFullScreen)(windows_core::Interface::as_raw(self), pffullscreen as _).ok() } } } @@ -9751,19 +9751,19 @@ pub struct IWMPNodeRealEstate_Vtbl { pub GetDesiredSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::SIZE) -> windows_core::HRESULT, pub SetRects: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, *const super::super::Foundation::RECT, *const super::super::Foundation::RECT) -> windows_core::HRESULT, pub GetRects: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::RECT, *mut super::super::Foundation::RECT, *mut super::super::Foundation::RECT) -> windows_core::HRESULT, - pub SetWindowless: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetWindowless: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetFullScreen: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetFullScreen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetWindowless: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetWindowless: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetFullScreen: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetFullScreen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWMPNodeRealEstate_Impl: windows_core::IUnknownImpl { fn GetDesiredSize(&self, psize: *mut super::super::Foundation::SIZE) -> windows_core::Result<()>; fn SetRects(&self, psrc: *const super::super::Foundation::RECT, pdest: *const super::super::Foundation::RECT, pclip: *const super::super::Foundation::RECT) -> windows_core::Result<()>; fn GetRects(&self, psrc: *mut super::super::Foundation::RECT, pdest: *mut super::super::Foundation::RECT, pclip: *mut super::super::Foundation::RECT) -> windows_core::Result<()>; - fn SetWindowless(&self, fwindowless: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetWindowless(&self, pfwindowless: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetFullScreen(&self, ffullscreen: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetFullScreen(&self, pffullscreen: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetWindowless(&self, fwindowless: windows_core::BOOL) -> windows_core::Result<()>; + fn GetWindowless(&self, pfwindowless: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn SetFullScreen(&self, ffullscreen: windows_core::BOOL) -> windows_core::Result<()>; + fn GetFullScreen(&self, pffullscreen: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IWMPNodeRealEstate_Vtbl { pub const fn new() -> Self { @@ -9785,25 +9785,25 @@ impl IWMPNodeRealEstate_Vtbl { IWMPNodeRealEstate_Impl::GetRects(this, core::mem::transmute_copy(&psrc), core::mem::transmute_copy(&pdest), core::mem::transmute_copy(&pclip)).into() } } - unsafe extern "system" fn SetWindowless(this: *mut core::ffi::c_void, fwindowless: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetWindowless(this: *mut core::ffi::c_void, fwindowless: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeRealEstate_Impl::SetWindowless(this, core::mem::transmute_copy(&fwindowless)).into() } } - unsafe extern "system" fn GetWindowless(this: *mut core::ffi::c_void, pfwindowless: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetWindowless(this: *mut core::ffi::c_void, pfwindowless: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeRealEstate_Impl::GetWindowless(this, core::mem::transmute_copy(&pfwindowless)).into() } } - unsafe extern "system" fn SetFullScreen(this: *mut core::ffi::c_void, ffullscreen: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetFullScreen(this: *mut core::ffi::c_void, ffullscreen: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeRealEstate_Impl::SetFullScreen(this, core::mem::transmute_copy(&ffullscreen)).into() } } - unsafe extern "system" fn GetFullScreen(this: *mut core::ffi::c_void, pffullscreen: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetFullScreen(this: *mut core::ffi::c_void, pffullscreen: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeRealEstate_Impl::GetFullScreen(this, core::mem::transmute_copy(&pffullscreen)).into() @@ -9839,11 +9839,11 @@ impl IWMPNodeRealEstateHost { pub struct IWMPNodeRealEstateHost_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub OnDesiredSizeChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::SIZE) -> windows_core::HRESULT, - pub OnFullScreenTransition: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnFullScreenTransition: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWMPNodeRealEstateHost_Impl: windows_core::IUnknownImpl { fn OnDesiredSizeChange(&self, psize: *mut super::super::Foundation::SIZE) -> windows_core::Result<()>; - fn OnFullScreenTransition(&self, ffullscreen: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnFullScreenTransition(&self, ffullscreen: windows_core::BOOL) -> windows_core::Result<()>; } impl IWMPNodeRealEstateHost_Vtbl { pub const fn new() -> Self { @@ -9853,7 +9853,7 @@ impl IWMPNodeRealEstateHost_Vtbl { IWMPNodeRealEstateHost_Impl::OnDesiredSizeChange(this, core::mem::transmute_copy(&psize)).into() } } - unsafe extern "system" fn OnFullScreenTransition(this: *mut core::ffi::c_void, ffullscreen: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnFullScreenTransition(this: *mut core::ffi::c_void, ffullscreen: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeRealEstateHost_Impl::OnFullScreenTransition(this, core::mem::transmute_copy(&ffullscreen)).into() @@ -9918,21 +9918,21 @@ impl windows_core::RuntimeName for IWMPNodeWindowed {} windows_core::imp::define_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: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn OnWindowMessageFromRenderer(&self, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).OnWindowMessageFromRenderer)(windows_core::Interface::as_raw(self), umsg, wparam, lparam, plret as _, pfhandled as _).ok() } } } #[repr(C)] pub struct IWMPNodeWindowedHost_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnWindowMessageFromRenderer: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::LRESULT, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnWindowMessageFromRenderer: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::LRESULT, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWMPNodeWindowedHost_Impl: windows_core::IUnknownImpl { - fn OnWindowMessageFromRenderer(&self, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnWindowMessageFromRenderer(&self, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IWMPNodeWindowedHost_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnWindowMessageFromRenderer(this: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnWindowMessageFromRenderer(this: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeWindowedHost_Impl::OnWindowMessageFromRenderer(this, core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam), core::mem::transmute_copy(&plret), core::mem::transmute_copy(&pfhandled)).into() @@ -9991,14 +9991,14 @@ impl IWMPNodeWindowlessHost { #[repr(C)] pub struct IWMPNodeWindowlessHost_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub InvalidateRect: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub InvalidateRect: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWMPNodeWindowlessHost_Impl: windows_core::IUnknownImpl { - fn InvalidateRect(&self, prc: *const super::super::Foundation::RECT, ferase: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn InvalidateRect(&self, prc: *const super::super::Foundation::RECT, ferase: windows_core::BOOL) -> windows_core::Result<()>; } impl IWMPNodeWindowlessHost_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn InvalidateRect(this: *mut core::ffi::c_void, prc: *const super::super::Foundation::RECT, ferase: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn InvalidateRect(this: *mut core::ffi::c_void, prc: *const super::super::Foundation::RECT, ferase: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPNodeWindowlessHost_Impl::InvalidateRect(this, core::mem::transmute_copy(&prc), core::mem::transmute_copy(&ferase)).into() @@ -11457,29 +11457,29 @@ impl IWMPPluginEnable { pub unsafe fn SetEnable(&self, fenable: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetEnable)(windows_core::Interface::as_raw(self), fenable.into()).ok() } } - pub unsafe fn GetEnable(&self, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetEnable(&self, pfenable: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetEnable)(windows_core::Interface::as_raw(self), pfenable as _).ok() } } } #[repr(C)] pub struct IWMPPluginEnable_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetEnable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetEnable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetEnable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetEnable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWMPPluginEnable_Impl: windows_core::IUnknownImpl { - fn SetEnable(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetEnable(&self, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetEnable(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; + fn GetEnable(&self, pfenable: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IWMPPluginEnable_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetEnable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnable(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPluginEnable_Impl::SetEnable(this, core::mem::transmute_copy(&fenable)).into() } } - unsafe extern "system" fn GetEnable(this: *mut core::ffi::c_void, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetEnable(this: *mut core::ffi::c_void, pfenable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPPluginEnable_Impl::GetEnable(this, core::mem::transmute_copy(&pfenable)).into() @@ -11770,29 +11770,29 @@ impl IWMPRenderConfig { pub unsafe fn SetinProcOnly(&self, finproc: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetinProcOnly)(windows_core::Interface::as_raw(self), finproc.into()).ok() } } - pub unsafe fn inProcOnly(&self, pfinproc: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn inProcOnly(&self, pfinproc: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).inProcOnly)(windows_core::Interface::as_raw(self), pfinproc as _).ok() } } } #[repr(C)] pub struct IWMPRenderConfig_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetinProcOnly: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub inProcOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetinProcOnly: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub inProcOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWMPRenderConfig_Impl: windows_core::IUnknownImpl { - fn SetinProcOnly(&self, finproc: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn inProcOnly(&self, pfinproc: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetinProcOnly(&self, finproc: windows_core::BOOL) -> windows_core::Result<()>; + fn inProcOnly(&self, pfinproc: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IWMPRenderConfig_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetinProcOnly(this: *mut core::ffi::c_void, finproc: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetinProcOnly(this: *mut core::ffi::c_void, finproc: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPRenderConfig_Impl::SetinProcOnly(this, core::mem::transmute_copy(&finproc)).into() } } - unsafe extern "system" fn inProcOnly(this: *mut core::ffi::c_void, pfinproc: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn inProcOnly(this: *mut core::ffi::c_void, pfinproc: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPRenderConfig_Impl::inProcOnly(this, core::mem::transmute_copy(&pfinproc)).into() @@ -12415,21 +12415,21 @@ windows_core::imp::define_interface!(IWMPSubscriptionService, IWMPSubscriptionSe windows_core::imp::interface_hierarchy!(IWMPSubscriptionService, windows_core::IUnknown); impl IWMPSubscriptionService { #[cfg(feature = "Win32_System_Com")] - pub unsafe fn allowPlay(&self, hwnd: super::super::Foundation::HWND, pmedia: P1, pfallowplay: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn allowPlay(&self, hwnd: super::super::Foundation::HWND, pmedia: P1, pfallowplay: *mut windows_core::BOOL) -> windows_core::Result<()> where P1: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).allowPlay)(windows_core::Interface::as_raw(self), hwnd, pmedia.param().abi(), pfallowplay as _).ok() } } #[cfg(feature = "Win32_System_Com")] - pub unsafe fn allowCDBurn(&self, hwnd: super::super::Foundation::HWND, pplaylist: P1, pfallowburn: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn allowCDBurn(&self, hwnd: super::super::Foundation::HWND, pplaylist: P1, pfallowburn: *mut windows_core::BOOL) -> windows_core::Result<()> where P1: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).allowCDBurn)(windows_core::Interface::as_raw(self), hwnd, pplaylist.param().abi(), pfallowburn as _).ok() } } #[cfg(feature = "Win32_System_Com")] - pub unsafe fn allowPDATransfer(&self, hwnd: super::super::Foundation::HWND, pplaylist: P1, pfallowtransfer: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn allowPDATransfer(&self, hwnd: super::super::Foundation::HWND, pplaylist: P1, pfallowtransfer: *mut windows_core::BOOL) -> windows_core::Result<()> where P1: windows_core::Param, { @@ -12443,42 +12443,42 @@ impl IWMPSubscriptionService { pub struct IWMPSubscriptionService_Vtbl { pub base__: windows_core::IUnknown_Vtbl, #[cfg(feature = "Win32_System_Com")] - pub allowPlay: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub allowPlay: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] allowPlay: usize, #[cfg(feature = "Win32_System_Com")] - pub allowCDBurn: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub allowCDBurn: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] allowCDBurn: usize, #[cfg(feature = "Win32_System_Com")] - pub allowPDATransfer: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub allowPDATransfer: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] allowPDATransfer: usize, pub startBackgroundProcessing: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait IWMPSubscriptionService_Impl: windows_core::IUnknownImpl { - fn allowPlay(&self, hwnd: super::super::Foundation::HWND, pmedia: windows_core::Ref, pfallowplay: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn allowCDBurn(&self, hwnd: super::super::Foundation::HWND, pplaylist: windows_core::Ref, pfallowburn: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn allowPDATransfer(&self, hwnd: super::super::Foundation::HWND, pplaylist: windows_core::Ref, pfallowtransfer: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn allowPlay(&self, hwnd: super::super::Foundation::HWND, pmedia: windows_core::Ref, pfallowplay: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn allowCDBurn(&self, hwnd: super::super::Foundation::HWND, pplaylist: windows_core::Ref, pfallowburn: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn allowPDATransfer(&self, hwnd: super::super::Foundation::HWND, pplaylist: windows_core::Ref, pfallowtransfer: *mut windows_core::BOOL) -> windows_core::Result<()>; fn startBackgroundProcessing(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl IWMPSubscriptionService_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn allowPlay(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pmedia: *mut core::ffi::c_void, pfallowplay: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn allowPlay(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pmedia: *mut core::ffi::c_void, pfallowplay: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSubscriptionService_Impl::allowPlay(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&pmedia), core::mem::transmute_copy(&pfallowplay)).into() } } - unsafe extern "system" fn allowCDBurn(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pplaylist: *mut core::ffi::c_void, pfallowburn: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn allowCDBurn(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pplaylist: *mut core::ffi::c_void, pfallowburn: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSubscriptionService_Impl::allowCDBurn(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&pplaylist), core::mem::transmute_copy(&pfallowburn)).into() } } - unsafe extern "system" fn allowPDATransfer(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pplaylist: *mut core::ffi::c_void, pfallowtransfer: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn allowPDATransfer(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pplaylist: *mut core::ffi::c_void, pfallowtransfer: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPSubscriptionService_Impl::allowPDATransfer(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&pplaylist), core::mem::transmute_copy(&pfallowtransfer)).into() @@ -13089,21 +13089,21 @@ impl windows_core::RuntimeName for IWMPVideoRenderConfig {} windows_core::imp::define_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: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn OnWindowMessage(&self, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).OnWindowMessage)(windows_core::Interface::as_raw(self), umsg, wparam, lparam, plret as _, pfhandled as _).ok() } } } #[repr(C)] pub struct IWMPWindowMessageSink_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnWindowMessage: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::LRESULT, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnWindowMessage: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::LRESULT, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWMPWindowMessageSink_Impl: windows_core::IUnknownImpl { - fn OnWindowMessage(&self, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnWindowMessage(&self, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IWMPWindowMessageSink_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnWindowMessage(this: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnWindowMessage(this: *mut core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMPWindowMessageSink_Impl::OnWindowMessage(this, core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam), core::mem::transmute_copy(&plret), core::mem::transmute_copy(&pfhandled)).into() @@ -13248,7 +13248,7 @@ impl IXFeed { pub unsafe fn SetMaxItemCount(&self, uimaxitemcount: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetMaxItemCount)(windows_core::Interface::as_raw(self), uimaxitemcount).ok() } } - pub unsafe fn DownloadEnclosuresAutomatically(&self) -> windows_core::Result { + pub unsafe fn DownloadEnclosuresAutomatically(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DownloadEnclosuresAutomatically)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -13337,7 +13337,7 @@ impl IXFeed { (windows_core::Interface::vtable(self).Copyright)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsList(&self) -> windows_core::Result { + pub unsafe fn IsList(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsList)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -13394,8 +13394,8 @@ pub struct IXFeed_Vtbl { pub MarkAllItemsRead: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub MaxItemCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetMaxItemCount: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub DownloadEnclosuresAutomatically: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetDownloadEnclosuresAutomatically: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub DownloadEnclosuresAutomatically: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetDownloadEnclosuresAutomatically: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub DownloadStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut FEEDS_DOWNLOAD_STATUS) -> windows_core::HRESULT, pub LastDownloadError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut FEEDS_DOWNLOAD_ERROR) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -13412,7 +13412,7 @@ pub struct IXFeed_Vtbl { pub Ttl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub Language: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub Copyright: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub IsList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetWatcher: unsafe extern "system" fn(*mut core::ffi::c_void, FEEDS_EVENTS_SCOPE, FEEDS_EVENTS_MASK, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub UnreadItemCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub ItemCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -13444,8 +13444,8 @@ pub trait IXFeed_Impl: windows_core::IUnknownImpl { fn MarkAllItemsRead(&self) -> windows_core::Result<()>; fn MaxItemCount(&self) -> windows_core::Result; fn SetMaxItemCount(&self, uimaxitemcount: u32) -> windows_core::Result<()>; - fn DownloadEnclosuresAutomatically(&self) -> windows_core::Result; - fn SetDownloadEnclosuresAutomatically(&self, bdownloadenclosuresautomatically: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn DownloadEnclosuresAutomatically(&self) -> windows_core::Result; + fn SetDownloadEnclosuresAutomatically(&self, bdownloadenclosuresautomatically: windows_core::BOOL) -> windows_core::Result<()>; fn DownloadStatus(&self) -> windows_core::Result; fn LastDownloadError(&self) -> windows_core::Result; fn Merge(&self, pstream: windows_core::Ref, pszurl: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -13459,7 +13459,7 @@ pub trait IXFeed_Impl: windows_core::IUnknownImpl { fn Ttl(&self) -> windows_core::Result; fn Language(&self) -> windows_core::Result; fn Copyright(&self) -> windows_core::Result; - fn IsList(&self) -> windows_core::Result; + fn IsList(&self) -> windows_core::Result; fn GetWatcher(&self, scope: FEEDS_EVENTS_SCOPE, mask: FEEDS_EVENTS_MASK, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn UnreadItemCount(&self) -> windows_core::Result; fn ItemCount(&self) -> windows_core::Result; @@ -13689,7 +13689,7 @@ impl IXFeed_Vtbl { IXFeed_Impl::SetMaxItemCount(this, core::mem::transmute_copy(&uimaxitemcount)).into() } } - unsafe extern "system" fn DownloadEnclosuresAutomatically(this: *mut core::ffi::c_void, pbdownloadenclosuresautomatically: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DownloadEnclosuresAutomatically(this: *mut core::ffi::c_void, pbdownloadenclosuresautomatically: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::DownloadEnclosuresAutomatically(this) { @@ -13701,7 +13701,7 @@ impl IXFeed_Vtbl { } } } - unsafe extern "system" fn SetDownloadEnclosuresAutomatically(this: *mut core::ffi::c_void, bdownloadenclosuresautomatically: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetDownloadEnclosuresAutomatically(this: *mut core::ffi::c_void, bdownloadenclosuresautomatically: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeed_Impl::SetDownloadEnclosuresAutomatically(this, core::mem::transmute_copy(&bdownloadenclosuresautomatically)).into() @@ -13857,7 +13857,7 @@ impl IXFeed_Vtbl { } } } - unsafe extern "system" fn IsList(this: *mut core::ffi::c_void, pbislist: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsList(this: *mut core::ffi::c_void, pbislist: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeed_Impl::IsList(this) { @@ -14521,13 +14521,13 @@ impl IXFeedFolder { let mut result__ = core::ptr::null_mut(); unsafe { (windows_core::Interface::vtable(self).CreateSubfolder)(windows_core::Interface::as_raw(self), pszname.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn ExistsFeed(&self, pszname: P0, pbfeedexists: *const super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn ExistsFeed(&self, pszname: P0, pbfeedexists: *const windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).ExistsFeed)(windows_core::Interface::as_raw(self), pszname.param().abi(), pbfeedexists).ok() } } - pub unsafe fn ExistsSubfolder(&self, pszname: P0, pbsubfolderexists: *const super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn ExistsSubfolder(&self, pszname: P0, pbsubfolderexists: *const windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -14583,7 +14583,7 @@ impl IXFeedFolder { let mut result__ = core::ptr::null_mut(); unsafe { (windows_core::Interface::vtable(self).Parent)(windows_core::Interface::as_raw(self), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn IsRoot(&self) -> windows_core::Result { + pub unsafe fn IsRoot(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsRoot)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -14616,8 +14616,8 @@ pub struct IXFeedFolder_Vtbl { pub Subfolders: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateFeed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateSubfolder: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub ExistsFeed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub ExistsSubfolder: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ExistsFeed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const windows_core::BOOL) -> windows_core::HRESULT, + pub ExistsSubfolder: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const windows_core::BOOL) -> windows_core::HRESULT, pub GetFeed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSubfolder: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Delete: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -14626,7 +14626,7 @@ pub struct IXFeedFolder_Vtbl { pub Path: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub Move: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub Parent: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsRoot: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsRoot: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetWatcher: unsafe extern "system" fn(*mut core::ffi::c_void, FEEDS_EVENTS_SCOPE, FEEDS_EVENTS_MASK, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TotalUnreadItemCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub TotalItemCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -14636,8 +14636,8 @@ pub trait IXFeedFolder_Impl: windows_core::IUnknownImpl { fn Subfolders(&self) -> windows_core::Result; fn CreateFeed(&self, pszname: &windows_core::PCWSTR, pszurl: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn CreateSubfolder(&self, pszname: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; - fn ExistsFeed(&self, pszname: &windows_core::PCWSTR, pbfeedexists: *const super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn ExistsSubfolder(&self, pszname: &windows_core::PCWSTR, pbsubfolderexists: *const super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ExistsFeed(&self, pszname: &windows_core::PCWSTR, pbfeedexists: *const windows_core::BOOL) -> windows_core::Result<()>; + fn ExistsSubfolder(&self, pszname: &windows_core::PCWSTR, pbsubfolderexists: *const windows_core::BOOL) -> windows_core::Result<()>; fn GetFeed(&self, pszname: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetSubfolder(&self, pszname: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn Delete(&self) -> windows_core::Result<()>; @@ -14646,7 +14646,7 @@ pub trait IXFeedFolder_Impl: windows_core::IUnknownImpl { fn Path(&self) -> windows_core::Result; fn Move(&self, pszpath: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Parent(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; - fn IsRoot(&self) -> windows_core::Result; + fn IsRoot(&self) -> windows_core::Result; fn GetWatcher(&self, scope: FEEDS_EVENTS_SCOPE, mask: FEEDS_EVENTS_MASK, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn TotalUnreadItemCount(&self) -> windows_core::Result; fn TotalItemCount(&self) -> windows_core::Result; @@ -14689,13 +14689,13 @@ impl IXFeedFolder_Vtbl { IXFeedFolder_Impl::CreateSubfolder(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } } - unsafe extern "system" fn ExistsFeed(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pbfeedexists: *const super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ExistsFeed(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pbfeedexists: *const windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolder_Impl::ExistsFeed(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&pbfeedexists)).into() } } - unsafe extern "system" fn ExistsSubfolder(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pbsubfolderexists: *const super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ExistsSubfolder(this: *mut core::ffi::c_void, pszname: windows_core::PCWSTR, pbsubfolderexists: *const windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedFolder_Impl::ExistsSubfolder(this, core::mem::transmute(&pszname), core::mem::transmute_copy(&pbsubfolderexists)).into() @@ -14761,7 +14761,7 @@ impl IXFeedFolder_Vtbl { IXFeedFolder_Impl::Parent(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } } - unsafe extern "system" fn IsRoot(this: *mut core::ffi::c_void, pbisrootfeedfolder: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsRoot(this: *mut core::ffi::c_void, pbisrootfeedfolder: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedFolder_Impl::IsRoot(this) { @@ -15153,7 +15153,7 @@ impl IXFeedItem { let mut result__ = core::ptr::null_mut(); unsafe { (windows_core::Interface::vtable(self).Enclosure)(windows_core::Interface::as_raw(self), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn IsRead(&self) -> windows_core::Result { + pub unsafe fn IsRead(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsRead)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -15212,8 +15212,8 @@ pub struct IXFeedItem_Vtbl { pub Comments: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub Author: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub Enclosure: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsRead: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetIsRead: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsRead: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetIsRead: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub LocalId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub Parent: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Delete: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -15232,8 +15232,8 @@ pub trait IXFeedItem_Impl: windows_core::IUnknownImpl { fn Comments(&self) -> windows_core::Result; fn Author(&self) -> windows_core::Result; fn Enclosure(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; - fn IsRead(&self) -> windows_core::Result; - fn SetIsRead(&self, bisread: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsRead(&self) -> windows_core::Result; + fn SetIsRead(&self, bisread: windows_core::BOOL) -> windows_core::Result<()>; fn LocalId(&self) -> windows_core::Result; fn Parent(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn Delete(&self) -> windows_core::Result<()>; @@ -15346,7 +15346,7 @@ impl IXFeedItem_Vtbl { IXFeedItem_Impl::Enclosure(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } } - unsafe extern "system" fn IsRead(this: *mut core::ffi::c_void, pbisread: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsRead(this: *mut core::ffi::c_void, pbisread: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedItem_Impl::IsRead(this) { @@ -15358,7 +15358,7 @@ impl IXFeedItem_Vtbl { } } } - unsafe extern "system" fn SetIsRead(this: *mut core::ffi::c_void, bisread: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetIsRead(this: *mut core::ffi::c_void, bisread: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXFeedItem_Impl::SetIsRead(this, core::mem::transmute_copy(&bisread)).into() @@ -15563,7 +15563,7 @@ impl IXFeedsManager { let mut result__ = core::ptr::null_mut(); unsafe { (windows_core::Interface::vtable(self).RootFolder)(windows_core::Interface::as_raw(self), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn IsSubscribed(&self, pszurl: P0) -> windows_core::Result + pub unsafe fn IsSubscribed(&self, pszurl: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -15572,7 +15572,7 @@ impl IXFeedsManager { (windows_core::Interface::vtable(self).IsSubscribed)(windows_core::Interface::as_raw(self), pszurl.param().abi(), &mut result__).map(|| result__) } } - pub unsafe fn ExistsFeed(&self, pszpath: P0) -> windows_core::Result + pub unsafe fn ExistsFeed(&self, pszpath: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -15597,7 +15597,7 @@ impl IXFeedsManager { let mut result__ = core::ptr::null_mut(); unsafe { (windows_core::Interface::vtable(self).GetFeedByUrl)(windows_core::Interface::as_raw(self), pszurl.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn ExistsFolder(&self, pszpath: P0) -> windows_core::Result + pub unsafe fn ExistsFolder(&self, pszpath: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -15668,11 +15668,11 @@ impl IXFeedsManager { pub struct IXFeedsManager_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub RootFolder: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsSubscribed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub ExistsFeed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsSubscribed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub ExistsFeed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetFeed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetFeedByUrl: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub ExistsFolder: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ExistsFolder: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetFolder: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DeleteFeed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub DeleteFolder: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, @@ -15690,11 +15690,11 @@ pub struct IXFeedsManager_Vtbl { #[cfg(feature = "Win32_System_Com")] pub trait IXFeedsManager_Impl: windows_core::IUnknownImpl { fn RootFolder(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; - fn IsSubscribed(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result; - fn ExistsFeed(&self, pszpath: &windows_core::PCWSTR) -> windows_core::Result; + fn IsSubscribed(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result; + fn ExistsFeed(&self, pszpath: &windows_core::PCWSTR) -> windows_core::Result; fn GetFeed(&self, pszpath: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetFeedByUrl(&self, pszurl: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; - fn ExistsFolder(&self, pszpath: &windows_core::PCWSTR) -> windows_core::Result; + fn ExistsFolder(&self, pszpath: &windows_core::PCWSTR) -> windows_core::Result; fn GetFolder(&self, pszpath: &windows_core::PCWSTR, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn DeleteFeed(&self, pszpath: &windows_core::PCWSTR) -> windows_core::Result<()>; fn DeleteFolder(&self, pszpath: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -15715,7 +15715,7 @@ impl IXFeedsManager_Vtbl { IXFeedsManager_Impl::RootFolder(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } } - unsafe extern "system" fn IsSubscribed(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pbsubscribed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsSubscribed(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pbsubscribed: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedsManager_Impl::IsSubscribed(this, core::mem::transmute(&pszurl)) { @@ -15727,7 +15727,7 @@ impl IXFeedsManager_Vtbl { } } } - unsafe extern "system" fn ExistsFeed(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pbfeedexists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ExistsFeed(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pbfeedexists: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedsManager_Impl::ExistsFeed(this, core::mem::transmute(&pszpath)) { @@ -15751,7 +15751,7 @@ impl IXFeedsManager_Vtbl { IXFeedsManager_Impl::GetFeedByUrl(this, core::mem::transmute(&pszurl), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } } - unsafe extern "system" fn ExistsFolder(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pbfolderexists: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ExistsFolder(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pbfolderexists: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXFeedsManager_Impl::ExistsFolder(this, core::mem::transmute(&pszpath)) { 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 2f78b39a53..e00c7d408d 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Multimedia/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Multimedia/mod.rs @@ -1,11 +1,11 @@ #[inline] pub unsafe fn AVIBuildFilterA(lpszfilter: &mut [u8], fsaving: bool) -> windows_core::Result<()> { - windows_targets::link!("avifil32.dll" "system" fn AVIBuildFilterA(lpszfilter : windows_core::PSTR, cbfilter : i32, fsaving : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("avifil32.dll" "system" fn AVIBuildFilterA(lpszfilter : windows_core::PSTR, cbfilter : i32, fsaving : windows_core::BOOL) -> windows_core::HRESULT); unsafe { AVIBuildFilterA(core::mem::transmute(lpszfilter.as_ptr()), lpszfilter.len().try_into().unwrap(), fsaving.into()).ok() } } #[inline] pub unsafe fn AVIBuildFilterW(lpszfilter: &mut [u16], fsaving: bool) -> windows_core::Result<()> { - windows_targets::link!("avifil32.dll" "system" fn AVIBuildFilterW(lpszfilter : windows_core::PWSTR, cbfilter : i32, fsaving : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("avifil32.dll" "system" fn AVIBuildFilterW(lpszfilter : windows_core::PWSTR, cbfilter : i32, fsaving : windows_core::BOOL) -> windows_core::HRESULT); unsafe { AVIBuildFilterW(core::mem::transmute(lpszfilter.as_ptr()), lpszfilter.len().try_into().unwrap(), fsaving.into()).ok() } } #[inline] @@ -402,30 +402,30 @@ pub unsafe fn DefDriverProc(dwdriveridentifier: usize, hdrvr: HDRVR, umsg: u32, } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn DrawDibBegin(hdd: isize, hdc: Option, dxdst: i32, dydst: i32, lpbi: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, dxsrc: i32, dysrc: i32, wflags: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("msvfw32.dll" "system" fn DrawDibBegin(hdd : isize, hdc : super::super::Graphics::Gdi:: HDC, dxdst : i32, dydst : i32, lpbi : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, dxsrc : i32, dysrc : i32, wflags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn DrawDibBegin(hdd: isize, hdc: Option, dxdst: i32, dydst: i32, lpbi: *const super::super::Graphics::Gdi::BITMAPINFOHEADER, dxsrc: i32, dysrc: i32, wflags: u32) -> windows_core::BOOL { + windows_targets::link!("msvfw32.dll" "system" fn DrawDibBegin(hdd : isize, hdc : super::super::Graphics::Gdi:: HDC, dxdst : i32, dydst : i32, lpbi : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, dxsrc : i32, dysrc : i32, wflags : u32) -> windows_core::BOOL); unsafe { DrawDibBegin(hdd, hdc.unwrap_or(core::mem::zeroed()) as _, dxdst, dydst, lpbi, dxsrc, dysrc, wflags) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn DrawDibChangePalette(hdd: isize, istart: i32, lppe: &[super::super::Graphics::Gdi::PALETTEENTRY]) -> super::super::Foundation::BOOL { - windows_targets::link!("msvfw32.dll" "system" fn DrawDibChangePalette(hdd : isize, istart : i32, ilen : i32, lppe : *const super::super::Graphics::Gdi:: PALETTEENTRY) -> super::super::Foundation:: BOOL); +pub unsafe fn DrawDibChangePalette(hdd: isize, istart: i32, lppe: &[super::super::Graphics::Gdi::PALETTEENTRY]) -> windows_core::BOOL { + windows_targets::link!("msvfw32.dll" "system" fn DrawDibChangePalette(hdd : isize, istart : i32, ilen : i32, lppe : *const super::super::Graphics::Gdi:: PALETTEENTRY) -> windows_core::BOOL); unsafe { DrawDibChangePalette(hdd, istart, lppe.len().try_into().unwrap(), core::mem::transmute(lppe.as_ptr())) } } #[inline] -pub unsafe fn DrawDibClose(hdd: isize) -> super::super::Foundation::BOOL { - windows_targets::link!("msvfw32.dll" "system" fn DrawDibClose(hdd : isize) -> super::super::Foundation:: BOOL); +pub unsafe fn DrawDibClose(hdd: isize) -> windows_core::BOOL { + windows_targets::link!("msvfw32.dll" "system" fn DrawDibClose(hdd : isize) -> windows_core::BOOL); unsafe { DrawDibClose(hdd) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn DrawDibDraw(hdd: isize, hdc: super::super::Graphics::Gdi::HDC, xdst: i32, ydst: i32, dxdst: i32, dydst: i32, lpbi: Option<*const super::super::Graphics::Gdi::BITMAPINFOHEADER>, lpbits: Option<*const core::ffi::c_void>, xsrc: i32, ysrc: i32, dxsrc: i32, dysrc: i32, wflags: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("msvfw32.dll" "system" fn DrawDibDraw(hdd : isize, hdc : super::super::Graphics::Gdi:: HDC, xdst : i32, ydst : i32, dxdst : i32, dydst : i32, lpbi : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, lpbits : *const core::ffi::c_void, xsrc : i32, ysrc : i32, dxsrc : i32, dysrc : i32, wflags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn DrawDibDraw(hdd: isize, hdc: super::super::Graphics::Gdi::HDC, xdst: i32, ydst: i32, dxdst: i32, dydst: i32, lpbi: Option<*const super::super::Graphics::Gdi::BITMAPINFOHEADER>, lpbits: Option<*const core::ffi::c_void>, xsrc: i32, ysrc: i32, dxsrc: i32, dysrc: i32, wflags: u32) -> windows_core::BOOL { + windows_targets::link!("msvfw32.dll" "system" fn DrawDibDraw(hdd : isize, hdc : super::super::Graphics::Gdi:: HDC, xdst : i32, ydst : i32, dxdst : i32, dydst : i32, lpbi : *const super::super::Graphics::Gdi:: BITMAPINFOHEADER, lpbits : *const core::ffi::c_void, xsrc : i32, ysrc : i32, dxsrc : i32, dysrc : i32, wflags : u32) -> windows_core::BOOL); unsafe { DrawDibDraw(hdd, hdc, xdst, ydst, dxdst, dydst, lpbi.unwrap_or(core::mem::zeroed()) as _, lpbits.unwrap_or(core::mem::zeroed()) as _, xsrc, ysrc, dxsrc, dysrc, wflags) } } #[inline] -pub unsafe fn DrawDibEnd(hdd: isize) -> super::super::Foundation::BOOL { - windows_targets::link!("msvfw32.dll" "system" fn DrawDibEnd(hdd : isize) -> super::super::Foundation:: BOOL); +pub unsafe fn DrawDibEnd(hdd: isize) -> windows_core::BOOL { + windows_targets::link!("msvfw32.dll" "system" fn DrawDibEnd(hdd : isize) -> windows_core::BOOL); unsafe { DrawDibEnd(hdd) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -454,33 +454,33 @@ pub unsafe fn DrawDibProfileDisplay(lpbi: *const super::super::Graphics::Gdi::BI #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawDibRealize(hdd: isize, hdc: super::super::Graphics::Gdi::HDC, fbackground: bool) -> u32 { - windows_targets::link!("msvfw32.dll" "system" fn DrawDibRealize(hdd : isize, hdc : super::super::Graphics::Gdi:: HDC, fbackground : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("msvfw32.dll" "system" fn DrawDibRealize(hdd : isize, hdc : super::super::Graphics::Gdi:: HDC, fbackground : windows_core::BOOL) -> u32); unsafe { DrawDibRealize(hdd, hdc, fbackground.into()) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn DrawDibSetPalette(hdd: isize, hpal: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("msvfw32.dll" "system" fn DrawDibSetPalette(hdd : isize, hpal : super::super::Graphics::Gdi:: HPALETTE) -> super::super::Foundation:: BOOL); +pub unsafe fn DrawDibSetPalette(hdd: isize, hpal: Option) -> windows_core::BOOL { + windows_targets::link!("msvfw32.dll" "system" fn DrawDibSetPalette(hdd : isize, hpal : super::super::Graphics::Gdi:: HPALETTE) -> windows_core::BOOL); unsafe { DrawDibSetPalette(hdd, hpal.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn DrawDibStart(hdd: isize, rate: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("msvfw32.dll" "system" fn DrawDibStart(hdd : isize, rate : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn DrawDibStart(hdd: isize, rate: u32) -> windows_core::BOOL { + windows_targets::link!("msvfw32.dll" "system" fn DrawDibStart(hdd : isize, rate : u32) -> windows_core::BOOL); unsafe { DrawDibStart(hdd, rate) } } #[inline] -pub unsafe fn DrawDibStop(hdd: isize) -> super::super::Foundation::BOOL { - windows_targets::link!("msvfw32.dll" "system" fn DrawDibStop(hdd : isize) -> super::super::Foundation:: BOOL); +pub unsafe fn DrawDibStop(hdd: isize) -> windows_core::BOOL { + windows_targets::link!("msvfw32.dll" "system" fn DrawDibStop(hdd : isize) -> windows_core::BOOL); unsafe { DrawDibStop(hdd) } } #[inline] -pub unsafe fn DrawDibTime(hdd: isize, lpddtime: *mut DRAWDIBTIME) -> super::super::Foundation::BOOL { - windows_targets::link!("msvfw32.dll" "system" fn DrawDibTime(hdd : isize, lpddtime : *mut DRAWDIBTIME) -> super::super::Foundation:: BOOL); +pub unsafe fn DrawDibTime(hdd: isize, lpddtime: *mut DRAWDIBTIME) -> windows_core::BOOL { + windows_targets::link!("msvfw32.dll" "system" fn DrawDibTime(hdd : isize, lpddtime : *mut DRAWDIBTIME) -> windows_core::BOOL); unsafe { DrawDibTime(hdd, lpddtime as _) } } #[inline] -pub unsafe fn DriverCallback(dwcallback: usize, dwflags: u32, hdevice: HDRVR, dwmsg: u32, dwuser: usize, dwparam1: usize, dwparam2: usize) -> super::super::Foundation::BOOL { - windows_targets::link!("winmm.dll" "system" fn DriverCallback(dwcallback : usize, dwflags : u32, hdevice : HDRVR, dwmsg : u32, dwuser : usize, dwparam1 : usize, dwparam2 : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn DriverCallback(dwcallback: usize, dwflags: u32, hdevice: HDRVR, dwmsg: u32, dwuser: usize, dwparam1: usize, dwparam2: usize) -> windows_core::BOOL { + windows_targets::link!("winmm.dll" "system" fn DriverCallback(dwcallback : usize, dwflags : u32, hdevice : HDRVR, dwmsg : u32, dwuser : usize, dwparam1 : usize, dwparam2 : usize) -> windows_core::BOOL); unsafe { DriverCallback(dwcallback, dwflags, hdevice, dwmsg, dwuser, dwparam1, dwparam2) } } #[inline] @@ -565,26 +565,26 @@ pub unsafe fn GetDriverModuleHandle(hdriver: HDRVR) -> super::super::Foundation: } #[cfg(feature = "Win32_UI_Controls_Dialogs")] #[inline] -pub unsafe fn GetOpenFileNamePreviewA(lpofn: *mut super::super::UI::Controls::Dialogs::OPENFILENAMEA) -> super::super::Foundation::BOOL { - windows_targets::link!("msvfw32.dll" "system" fn GetOpenFileNamePreviewA(lpofn : *mut super::super::UI::Controls::Dialogs:: OPENFILENAMEA) -> super::super::Foundation:: BOOL); +pub unsafe fn GetOpenFileNamePreviewA(lpofn: *mut super::super::UI::Controls::Dialogs::OPENFILENAMEA) -> windows_core::BOOL { + windows_targets::link!("msvfw32.dll" "system" fn GetOpenFileNamePreviewA(lpofn : *mut super::super::UI::Controls::Dialogs:: OPENFILENAMEA) -> windows_core::BOOL); unsafe { GetOpenFileNamePreviewA(lpofn as _) } } #[cfg(feature = "Win32_UI_Controls_Dialogs")] #[inline] -pub unsafe fn GetOpenFileNamePreviewW(lpofn: *mut super::super::UI::Controls::Dialogs::OPENFILENAMEW) -> super::super::Foundation::BOOL { - windows_targets::link!("msvfw32.dll" "system" fn GetOpenFileNamePreviewW(lpofn : *mut super::super::UI::Controls::Dialogs:: OPENFILENAMEW) -> super::super::Foundation:: BOOL); +pub unsafe fn GetOpenFileNamePreviewW(lpofn: *mut super::super::UI::Controls::Dialogs::OPENFILENAMEW) -> windows_core::BOOL { + windows_targets::link!("msvfw32.dll" "system" fn GetOpenFileNamePreviewW(lpofn : *mut super::super::UI::Controls::Dialogs:: OPENFILENAMEW) -> windows_core::BOOL); unsafe { GetOpenFileNamePreviewW(lpofn as _) } } #[cfg(feature = "Win32_UI_Controls_Dialogs")] #[inline] -pub unsafe fn GetSaveFileNamePreviewA(lpofn: *mut super::super::UI::Controls::Dialogs::OPENFILENAMEA) -> super::super::Foundation::BOOL { - windows_targets::link!("msvfw32.dll" "system" fn GetSaveFileNamePreviewA(lpofn : *mut super::super::UI::Controls::Dialogs:: OPENFILENAMEA) -> super::super::Foundation:: BOOL); +pub unsafe fn GetSaveFileNamePreviewA(lpofn: *mut super::super::UI::Controls::Dialogs::OPENFILENAMEA) -> windows_core::BOOL { + windows_targets::link!("msvfw32.dll" "system" fn GetSaveFileNamePreviewA(lpofn : *mut super::super::UI::Controls::Dialogs:: OPENFILENAMEA) -> windows_core::BOOL); unsafe { GetSaveFileNamePreviewA(lpofn as _) } } #[cfg(feature = "Win32_UI_Controls_Dialogs")] #[inline] -pub unsafe fn GetSaveFileNamePreviewW(lpofn: *mut super::super::UI::Controls::Dialogs::OPENFILENAMEW) -> super::super::Foundation::BOOL { - windows_targets::link!("msvfw32.dll" "system" fn GetSaveFileNamePreviewW(lpofn : *mut super::super::UI::Controls::Dialogs:: OPENFILENAMEW) -> super::super::Foundation:: BOOL); +pub unsafe fn GetSaveFileNamePreviewW(lpofn: *mut super::super::UI::Controls::Dialogs::OPENFILENAMEW) -> windows_core::BOOL { + windows_targets::link!("msvfw32.dll" "system" fn GetSaveFileNamePreviewW(lpofn : *mut super::super::UI::Controls::Dialogs:: OPENFILENAMEW) -> windows_core::BOOL); unsafe { GetSaveFileNamePreviewW(lpofn as _) } } #[inline] @@ -600,11 +600,11 @@ pub unsafe fn ICCompress(hic: HIC, dwflags: u32, lpbioutput: *const super::super } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ICCompressorChoose(hwnd: Option, uiflags: u32, pvin: Option<*const core::ffi::c_void>, lpdata: Option<*const core::ffi::c_void>, pc: *mut COMPVARS, lpsztitle: P5) -> super::super::Foundation::BOOL +pub unsafe fn ICCompressorChoose(hwnd: Option, uiflags: u32, pvin: Option<*const core::ffi::c_void>, lpdata: Option<*const core::ffi::c_void>, pc: *mut COMPVARS, lpsztitle: P5) -> windows_core::BOOL where P5: windows_core::Param, { - windows_targets::link!("msvfw32.dll" "system" fn ICCompressorChoose(hwnd : super::super::Foundation:: HWND, uiflags : u32, pvin : *const core::ffi::c_void, lpdata : *const core::ffi::c_void, pc : *mut COMPVARS, lpsztitle : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("msvfw32.dll" "system" fn ICCompressorChoose(hwnd : super::super::Foundation:: HWND, uiflags : u32, pvin : *const core::ffi::c_void, lpdata : *const core::ffi::c_void, pc : *mut COMPVARS, lpsztitle : windows_core::PCSTR) -> windows_core::BOOL); unsafe { ICCompressorChoose(hwnd.unwrap_or(core::mem::zeroed()) as _, uiflags, pvin.unwrap_or(core::mem::zeroed()) as _, lpdata.unwrap_or(core::mem::zeroed()) as _, pc as _, lpsztitle.param().abi()) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -654,16 +654,16 @@ pub unsafe fn ICImageDecompress(hic: Option, uiflags: u32, lpbiin: *const s unsafe { ICImageDecompress(hic.unwrap_or(core::mem::zeroed()) as _, uiflags, lpbiin, lpbits, lpbiout.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn ICInfo(fcctype: u32, fcchandler: u32, lpicinfo: *mut ICINFO) -> super::super::Foundation::BOOL { - windows_targets::link!("msvfw32.dll" "system" fn ICInfo(fcctype : u32, fcchandler : u32, lpicinfo : *mut ICINFO) -> super::super::Foundation:: BOOL); +pub unsafe fn ICInfo(fcctype: u32, fcchandler: u32, lpicinfo: *mut ICINFO) -> windows_core::BOOL { + windows_targets::link!("msvfw32.dll" "system" fn ICInfo(fcctype : u32, fcchandler : u32, lpicinfo : *mut ICINFO) -> windows_core::BOOL); unsafe { ICInfo(fcctype, fcchandler, lpicinfo as _) } } #[inline] -pub unsafe fn ICInstall(fcctype: u32, fcchandler: u32, lparam: super::super::Foundation::LPARAM, szdesc: P3, wflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn ICInstall(fcctype: u32, fcchandler: u32, lparam: super::super::Foundation::LPARAM, szdesc: P3, wflags: u32) -> windows_core::BOOL where P3: windows_core::Param, { - windows_targets::link!("msvfw32.dll" "system" fn ICInstall(fcctype : u32, fcchandler : u32, lparam : super::super::Foundation:: LPARAM, szdesc : windows_core::PCSTR, wflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("msvfw32.dll" "system" fn ICInstall(fcctype : u32, fcchandler : u32, lparam : super::super::Foundation:: LPARAM, szdesc : windows_core::PCSTR, wflags : u32) -> windows_core::BOOL); unsafe { ICInstall(fcctype, fcchandler, lparam, szdesc.param().abi(), wflags) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -683,8 +683,8 @@ pub unsafe fn ICOpenFunction(fcctype: u32, fcchandler: u32, wmode: u32, lpfnhand unsafe { ICOpenFunction(fcctype, fcchandler, wmode, lpfnhandler) } } #[inline] -pub unsafe fn ICRemove(fcctype: u32, fcchandler: u32, wflags: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("msvfw32.dll" "system" fn ICRemove(fcctype : u32, fcchandler : u32, wflags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn ICRemove(fcctype: u32, fcchandler: u32, wflags: u32) -> windows_core::BOOL { + windows_targets::link!("msvfw32.dll" "system" fn ICRemove(fcctype : u32, fcchandler : u32, wflags : u32) -> windows_core::BOOL); unsafe { ICRemove(fcctype, fcchandler, wflags) } } #[inline] @@ -694,8 +694,8 @@ pub unsafe fn ICSendMessage(hic: HIC, msg: u32, dw1: usize, dw2: usize) -> super } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ICSeqCompressFrame(pc: *const COMPVARS, uiflags: Option, lpbits: *const core::ffi::c_void, pfkey: *mut super::super::Foundation::BOOL, plsize: Option<*mut i32>) -> *mut core::ffi::c_void { - windows_targets::link!("msvfw32.dll" "system" fn ICSeqCompressFrame(pc : *const COMPVARS, uiflags : u32, lpbits : *const core::ffi::c_void, pfkey : *mut super::super::Foundation:: BOOL, plsize : *mut i32) -> *mut core::ffi::c_void); +pub unsafe fn ICSeqCompressFrame(pc: *const COMPVARS, uiflags: Option, lpbits: *const core::ffi::c_void, pfkey: *mut windows_core::BOOL, plsize: Option<*mut i32>) -> *mut core::ffi::c_void { + windows_targets::link!("msvfw32.dll" "system" fn ICSeqCompressFrame(pc : *const COMPVARS, uiflags : u32, lpbits : *const core::ffi::c_void, pfkey : *mut windows_core::BOOL, plsize : *mut i32) -> *mut core::ffi::c_void); unsafe { ICSeqCompressFrame(pc, uiflags.unwrap_or(core::mem::zeroed()) as _, lpbits, pfkey as _, plsize.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -706,8 +706,8 @@ pub unsafe fn ICSeqCompressFrameEnd(pc: *const COMPVARS) { } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ICSeqCompressFrameStart(pc: *const COMPVARS, lpbiin: *const super::super::Graphics::Gdi::BITMAPINFO) -> super::super::Foundation::BOOL { - windows_targets::link!("msvfw32.dll" "system" fn ICSeqCompressFrameStart(pc : *const COMPVARS, lpbiin : *const super::super::Graphics::Gdi:: BITMAPINFO) -> super::super::Foundation:: BOOL); +pub unsafe fn ICSeqCompressFrameStart(pc: *const COMPVARS, lpbiin: *const super::super::Graphics::Gdi::BITMAPINFO) -> windows_core::BOOL { + windows_targets::link!("msvfw32.dll" "system" fn ICSeqCompressFrameStart(pc : *const COMPVARS, lpbiin : *const super::super::Graphics::Gdi:: BITMAPINFO) -> windows_core::BOOL); unsafe { ICSeqCompressFrameStart(pc, lpbiin) } } #[inline] @@ -727,8 +727,8 @@ where unsafe { MCIWndCreateW(hwndparent.unwrap_or(core::mem::zeroed()) as _, hinstance.unwrap_or(core::mem::zeroed()) as _, dwstyle, szfile.param().abi()) } } #[inline] -pub unsafe fn MCIWndRegisterClass() -> super::super::Foundation::BOOL { - windows_targets::link!("msvfw32.dll" "cdecl" fn MCIWndRegisterClass() -> super::super::Foundation:: BOOL); +pub unsafe fn MCIWndRegisterClass() -> windows_core::BOOL { + windows_targets::link!("msvfw32.dll" "cdecl" fn MCIWndRegisterClass() -> windows_core::BOOL); unsafe { MCIWndRegisterClass() } } #[inline] @@ -767,13 +767,13 @@ where unsafe { capCreateCaptureWindowW(lpszwindowname.param().abi(), dwstyle, x, y, nwidth, nheight, hwndparent.unwrap_or(core::mem::zeroed()) as _, nid) } } #[inline] -pub unsafe fn capGetDriverDescriptionA(wdriverindex: u32, lpszname: &mut [u8], lpszver: &mut [u8]) -> super::super::Foundation::BOOL { - windows_targets::link!("avicap32.dll" "system" fn capGetDriverDescriptionA(wdriverindex : u32, lpszname : windows_core::PSTR, cbname : i32, lpszver : windows_core::PSTR, cbver : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn capGetDriverDescriptionA(wdriverindex: u32, lpszname: &mut [u8], lpszver: &mut [u8]) -> windows_core::BOOL { + windows_targets::link!("avicap32.dll" "system" fn capGetDriverDescriptionA(wdriverindex : u32, lpszname : windows_core::PSTR, cbname : i32, lpszver : windows_core::PSTR, cbver : i32) -> windows_core::BOOL); unsafe { capGetDriverDescriptionA(wdriverindex, core::mem::transmute(lpszname.as_ptr()), lpszname.len().try_into().unwrap(), core::mem::transmute(lpszver.as_ptr()), lpszver.len().try_into().unwrap()) } } #[inline] -pub unsafe fn capGetDriverDescriptionW(wdriverindex: u32, lpszname: &mut [u16], lpszver: &mut [u16]) -> super::super::Foundation::BOOL { - windows_targets::link!("avicap32.dll" "system" fn capGetDriverDescriptionW(wdriverindex : u32, lpszname : windows_core::PWSTR, cbname : i32, lpszver : windows_core::PWSTR, cbver : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn capGetDriverDescriptionW(wdriverindex: u32, lpszname: &mut [u16], lpszver: &mut [u16]) -> windows_core::BOOL { + windows_targets::link!("avicap32.dll" "system" fn capGetDriverDescriptionW(wdriverindex : u32, lpszname : windows_core::PWSTR, cbname : i32, lpszver : windows_core::PWSTR, cbver : i32) -> windows_core::BOOL); unsafe { capGetDriverDescriptionW(wdriverindex, core::mem::transmute(lpszname.as_ptr()), lpszname.len().try_into().unwrap(), core::mem::transmute(lpszver.as_ptr()), lpszver.len().try_into().unwrap()) } } #[inline] @@ -813,7 +813,7 @@ pub unsafe fn joyReleaseCapture(ujoyid: u32) -> u32 { } #[inline] pub unsafe fn joySetCapture(hwnd: super::super::Foundation::HWND, ujoyid: u32, uperiod: u32, fchanged: bool) -> u32 { - windows_targets::link!("winmm.dll" "system" fn joySetCapture(hwnd : super::super::Foundation:: HWND, ujoyid : u32, uperiod : u32, fchanged : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("winmm.dll" "system" fn joySetCapture(hwnd : super::super::Foundation:: HWND, ujoyid : u32, uperiod : u32, fchanged : windows_core::BOOL) -> u32); unsafe { joySetCapture(hwnd, ujoyid, uperiod, fchanged.into()) } } #[inline] @@ -822,8 +822,8 @@ pub unsafe fn joySetThreshold(ujoyid: u32, uthreshold: u32) -> u32 { unsafe { joySetThreshold(ujoyid, uthreshold) } } #[inline] -pub unsafe fn mciDriverNotify(hwndcallback: super::super::Foundation::HANDLE, wdeviceid: u32, ustatus: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winmm.dll" "system" fn mciDriverNotify(hwndcallback : super::super::Foundation:: HANDLE, wdeviceid : u32, ustatus : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn mciDriverNotify(hwndcallback: super::super::Foundation::HANDLE, wdeviceid: u32, ustatus: u32) -> windows_core::BOOL { + windows_targets::link!("winmm.dll" "system" fn mciDriverNotify(hwndcallback : super::super::Foundation:: HANDLE, wdeviceid : u32, ustatus : u32) -> windows_core::BOOL); unsafe { mciDriverNotify(hwndcallback, wdeviceid, ustatus) } } #[inline] @@ -832,8 +832,8 @@ pub unsafe fn mciDriverYield(wdeviceid: u32) -> u32 { unsafe { mciDriverYield(wdeviceid) } } #[inline] -pub unsafe fn mciFreeCommandResource(wtable: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winmm.dll" "system" fn mciFreeCommandResource(wtable : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn mciFreeCommandResource(wtable: u32) -> windows_core::BOOL { + windows_targets::link!("winmm.dll" "system" fn mciFreeCommandResource(wtable : u32) -> windows_core::BOOL); unsafe { mciFreeCommandResource(wtable) } } #[inline] @@ -879,13 +879,13 @@ pub unsafe fn mciGetDriverData(wdeviceid: u32) -> usize { unsafe { mciGetDriverData(wdeviceid) } } #[inline] -pub unsafe fn mciGetErrorStringA(mcierr: u32, psztext: &mut [u8]) -> super::super::Foundation::BOOL { - windows_targets::link!("winmm.dll" "system" fn mciGetErrorStringA(mcierr : u32, psztext : windows_core::PSTR, cchtext : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn mciGetErrorStringA(mcierr: u32, psztext: &mut [u8]) -> windows_core::BOOL { + windows_targets::link!("winmm.dll" "system" fn mciGetErrorStringA(mcierr : u32, psztext : windows_core::PSTR, cchtext : u32) -> windows_core::BOOL); unsafe { mciGetErrorStringA(mcierr, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) } } #[inline] -pub unsafe fn mciGetErrorStringW(mcierr: u32, psztext: &mut [u16]) -> super::super::Foundation::BOOL { - windows_targets::link!("winmm.dll" "system" fn mciGetErrorStringW(mcierr : u32, psztext : windows_core::PWSTR, cchtext : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn mciGetErrorStringW(mcierr: u32, psztext: &mut [u16]) -> windows_core::BOOL { + windows_targets::link!("winmm.dll" "system" fn mciGetErrorStringW(mcierr : u32, psztext : windows_core::PWSTR, cchtext : u32) -> windows_core::BOOL); unsafe { mciGetErrorStringW(mcierr, core::mem::transmute(psztext.as_ptr()), psztext.len().try_into().unwrap()) } } #[inline] @@ -928,13 +928,13 @@ where unsafe { mciSendStringW(lpstrcommand.param().abi(), core::mem::transmute(lpstrreturnstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpstrreturnstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), hwndcallback.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn mciSetDriverData(wdeviceid: u32, dwdata: usize) -> super::super::Foundation::BOOL { - windows_targets::link!("winmm.dll" "system" fn mciSetDriverData(wdeviceid : u32, dwdata : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn mciSetDriverData(wdeviceid: u32, dwdata: usize) -> windows_core::BOOL { + windows_targets::link!("winmm.dll" "system" fn mciSetDriverData(wdeviceid : u32, dwdata : usize) -> windows_core::BOOL); unsafe { mciSetDriverData(wdeviceid, dwdata) } } #[inline] -pub unsafe fn mciSetYieldProc(mciid: u32, fpyieldproc: Option, dwyielddata: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winmm.dll" "system" fn mciSetYieldProc(mciid : u32, fpyieldproc : YIELDPROC, dwyielddata : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn mciSetYieldProc(mciid: u32, fpyieldproc: Option, dwyielddata: u32) -> windows_core::BOOL { + windows_targets::link!("winmm.dll" "system" fn mciSetYieldProc(mciid : u32, fpyieldproc : YIELDPROC, dwyielddata : u32) -> windows_core::BOOL); unsafe { mciSetYieldProc(mciid, fpyieldproc.unwrap_or(core::mem::zeroed()) as _, dwyielddata) } } #[inline] @@ -961,8 +961,8 @@ pub unsafe fn mmTaskCreate(lpfn: LPTASKCALLBACK, lph: *mut super::super::Foundat unsafe { mmTaskCreate(lpfn, lph as _, dwinst) } } #[inline] -pub unsafe fn mmTaskSignal(h: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("winmm.dll" "system" fn mmTaskSignal(h : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn mmTaskSignal(h: u32) -> windows_core::BOOL { + windows_targets::link!("winmm.dll" "system" fn mmTaskSignal(h : u32) -> windows_core::BOOL); unsafe { mmTaskSignal(h) } } #[inline] @@ -1274,7 +1274,7 @@ pub const AVIFILEINFO_WASCAPTUREFILE: u32 = 65536u32; pub const AVIGETFRAMEF_BESTDISPLAYFMT: u32 = 1u32; pub const AVIIF_CONTROLFRAME: i32 = 512i32; pub const AVIIF_TWOCC: i32 = 2i32; -pub type AVISAVECALLBACK = Option super::super::Foundation::BOOL>; +pub type AVISAVECALLBACK = Option windows_core::BOOL>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct AVISTREAMINFOA { @@ -1340,12 +1340,12 @@ pub type CAPCONTROLCALLBACK = Option super::super::Foundation::BOOL>; +pub type LPFNEXTDEVIO = Option windows_core::BOOL>; pub type LPMMIOPROC = Option super::super::Foundation::LRESULT>; pub type LPTASKCALLBACK = Option; pub const MCIERR_AVI_AUDIOERROR: u32 = 619u32; 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 5e515c89c0..ae222e43ab 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/mod.rs @@ -56,7 +56,7 @@ impl IPhotoAcquire { pub struct IPhotoAcquire_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub CreatePhotoSource: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Acquire: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::HWND, windows_core::PCWSTR, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub Acquire: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, super::super::Foundation::HWND, windows_core::PCWSTR, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub EnumResults: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -65,7 +65,7 @@ pub struct IPhotoAcquire_Vtbl { #[cfg(feature = "Win32_System_Com")] pub trait IPhotoAcquire_Impl: windows_core::IUnknownImpl { fn CreatePhotoSource(&self, pszdevice: &windows_core::PCWSTR) -> windows_core::Result; - fn Acquire(&self, pphotoacquiresource: windows_core::Ref, fshowprogress: super::super::Foundation::BOOL, hwndparent: super::super::Foundation::HWND, pszapplicationname: &windows_core::PCWSTR, pphotoacquireprogresscb: windows_core::Ref) -> windows_core::Result<()>; + fn Acquire(&self, pphotoacquiresource: windows_core::Ref, fshowprogress: windows_core::BOOL, hwndparent: super::super::Foundation::HWND, pszapplicationname: &windows_core::PCWSTR, pphotoacquireprogresscb: windows_core::Ref) -> windows_core::Result<()>; fn EnumResults(&self) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] @@ -83,7 +83,7 @@ impl IPhotoAcquire_Vtbl { } } } - unsafe extern "system" fn Acquire(this: *mut core::ffi::c_void, pphotoacquiresource: *mut core::ffi::c_void, fshowprogress: super::super::Foundation::BOOL, hwndparent: super::super::Foundation::HWND, pszapplicationname: windows_core::PCWSTR, pphotoacquireprogresscb: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn Acquire(this: *mut core::ffi::c_void, pphotoacquiresource: *mut core::ffi::c_void, fshowprogress: windows_core::BOOL, hwndparent: super::super::Foundation::HWND, pszapplicationname: windows_core::PCWSTR, pphotoacquireprogresscb: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquire_Impl::Acquire(this, core::mem::transmute_copy(&pphotoacquiresource), core::mem::transmute_copy(&fshowprogress), core::mem::transmute_copy(&hwndparent), core::mem::transmute(&pszapplicationname), core::mem::transmute_copy(&pphotoacquireprogresscb)).into() @@ -211,7 +211,7 @@ impl IPhotoAcquireItem { (windows_core::Interface::vtable(self).GetStream)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn CanDelete(&self) -> windows_core::Result { + pub unsafe fn CanDelete(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanDelete)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -253,7 +253,7 @@ pub struct IPhotoAcquireItem_Vtbl { pub GetStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetStream: usize, - pub CanDelete: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CanDelete: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Delete: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSubItemCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetSubItemAt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -265,7 +265,7 @@ pub trait IPhotoAcquireItem_Impl: windows_core::IUnknownImpl { fn GetProperty(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result; fn SetProperty(&self, key: *const super::super::Foundation::PROPERTYKEY, pv: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()>; fn GetStream(&self) -> windows_core::Result; - fn CanDelete(&self) -> windows_core::Result; + fn CanDelete(&self) -> windows_core::Result; fn Delete(&self) -> windows_core::Result<()>; fn GetSubItemCount(&self) -> windows_core::Result; fn GetSubItemAt(&self, nitemindex: u32) -> windows_core::Result; @@ -327,7 +327,7 @@ impl IPhotoAcquireItem_Vtbl { } } } - unsafe extern "system" fn CanDelete(this: *mut core::ffi::c_void, pfcandelete: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanDelete(this: *mut core::ffi::c_void, pfcandelete: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireItem_Impl::CanDelete(this) { @@ -570,7 +570,7 @@ impl windows_core::RuntimeName for IPhotoAcquirePlugin {} windows_core::imp::define_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 { + pub unsafe fn Cancelled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Cancelled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -648,7 +648,7 @@ impl IPhotoAcquireProgressCB { pub unsafe fn EndSession(&self, hr: windows_core::HRESULT) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).EndSession)(windows_core::Interface::as_raw(self), hr).ok() } } - pub unsafe fn GetDeleteAfterAcquire(&self) -> windows_core::Result { + pub unsafe fn GetDeleteAfterAcquire(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetDeleteAfterAcquire)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -674,14 +674,14 @@ impl IPhotoAcquireProgressCB { #[repr(C)] pub struct IPhotoAcquireProgressCB_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Cancelled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Cancelled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub StartEnumeration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub FoundItem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub EndEnumeration: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::HRESULT) -> windows_core::HRESULT, pub StartTransfer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub StartItemTransfer: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, pub DirectoryCreated: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, - pub UpdateTransferPercent: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, u32) -> windows_core::HRESULT, + pub UpdateTransferPercent: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, u32) -> windows_core::HRESULT, pub EndItemTransfer: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, windows_core::HRESULT) -> windows_core::HRESULT, pub EndTransfer: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::HRESULT) -> windows_core::HRESULT, pub StartDelete: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -690,7 +690,7 @@ pub struct IPhotoAcquireProgressCB_Vtbl { pub EndItemDelete: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, windows_core::HRESULT) -> windows_core::HRESULT, pub EndDelete: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::HRESULT) -> windows_core::HRESULT, pub EndSession: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::HRESULT) -> windows_core::HRESULT, - pub GetDeleteAfterAcquire: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetDeleteAfterAcquire: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub ErrorAdvise: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::HRESULT, windows_core::PCWSTR, ERROR_ADVISE_MESSAGE_TYPE, *mut ERROR_ADVISE_RESULT) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub GetUserInput: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut core::ffi::c_void, *mut super::super::System::Com::StructuredStorage::PROPVARIANT, *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::HRESULT, @@ -699,14 +699,14 @@ pub struct IPhotoAcquireProgressCB_Vtbl { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub trait IPhotoAcquireProgressCB_Impl: windows_core::IUnknownImpl { - fn Cancelled(&self) -> windows_core::Result; + fn Cancelled(&self) -> windows_core::Result; fn StartEnumeration(&self, pphotoacquiresource: windows_core::Ref) -> windows_core::Result<()>; fn FoundItem(&self, pphotoacquireitem: windows_core::Ref) -> windows_core::Result<()>; fn EndEnumeration(&self, hr: windows_core::HRESULT) -> windows_core::Result<()>; fn StartTransfer(&self, pphotoacquiresource: windows_core::Ref) -> windows_core::Result<()>; fn StartItemTransfer(&self, nitemindex: u32, pphotoacquireitem: windows_core::Ref) -> windows_core::Result<()>; fn DirectoryCreated(&self, pszdirectory: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn UpdateTransferPercent(&self, foverall: super::super::Foundation::BOOL, npercent: u32) -> windows_core::Result<()>; + fn UpdateTransferPercent(&self, foverall: windows_core::BOOL, npercent: u32) -> windows_core::Result<()>; fn EndItemTransfer(&self, nitemindex: u32, pphotoacquireitem: windows_core::Ref, hr: windows_core::HRESULT) -> windows_core::Result<()>; fn EndTransfer(&self, hr: windows_core::HRESULT) -> windows_core::Result<()>; fn StartDelete(&self, pphotoacquiresource: windows_core::Ref) -> windows_core::Result<()>; @@ -715,14 +715,14 @@ pub trait IPhotoAcquireProgressCB_Impl: windows_core::IUnknownImpl { fn EndItemDelete(&self, nitemindex: u32, pphotoacquireitem: windows_core::Ref, hr: windows_core::HRESULT) -> windows_core::Result<()>; fn EndDelete(&self, hr: windows_core::HRESULT) -> windows_core::Result<()>; fn EndSession(&self, hr: windows_core::HRESULT) -> windows_core::Result<()>; - fn GetDeleteAfterAcquire(&self) -> windows_core::Result; + fn GetDeleteAfterAcquire(&self) -> windows_core::Result; fn ErrorAdvise(&self, hr: windows_core::HRESULT, pszerrormessage: &windows_core::PCWSTR, nmessagetype: ERROR_ADVISE_MESSAGE_TYPE) -> windows_core::Result; fn GetUserInput(&self, riidtype: *const windows_core::GUID, punknown: windows_core::Ref, ppropvarresult: *mut super::super::System::Com::StructuredStorage::PROPVARIANT, ppropvardefault: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] impl IPhotoAcquireProgressCB_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Cancelled(this: *mut core::ffi::c_void, pfcancelled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Cancelled(this: *mut core::ffi::c_void, pfcancelled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireProgressCB_Impl::Cancelled(this) { @@ -770,7 +770,7 @@ impl IPhotoAcquireProgressCB_Vtbl { IPhotoAcquireProgressCB_Impl::DirectoryCreated(this, core::mem::transmute(&pszdirectory)).into() } } - unsafe extern "system" fn UpdateTransferPercent(this: *mut core::ffi::c_void, foverall: super::super::Foundation::BOOL, npercent: u32) -> windows_core::HRESULT { + unsafe extern "system" fn UpdateTransferPercent(this: *mut core::ffi::c_void, foverall: windows_core::BOOL, npercent: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireProgressCB_Impl::UpdateTransferPercent(this, core::mem::transmute_copy(&foverall), core::mem::transmute_copy(&npercent)).into() @@ -824,7 +824,7 @@ impl IPhotoAcquireProgressCB_Vtbl { IPhotoAcquireProgressCB_Impl::EndSession(this, core::mem::transmute_copy(&hr)).into() } } - unsafe extern "system" fn GetDeleteAfterAcquire(this: *mut core::ffi::c_void, pfdeleteafteracquire: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetDeleteAfterAcquire(this: *mut core::ffi::c_void, pfdeleteafteracquire: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireProgressCB_Impl::GetDeleteAfterAcquire(this) { @@ -934,7 +934,7 @@ impl IPhotoAcquireSettings { (windows_core::Interface::vtable(self).GetSequencePaddingWidth)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetSequenceZeroPadding(&self) -> windows_core::Result { + pub unsafe fn GetSequenceZeroPadding(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetSequenceZeroPadding)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -960,13 +960,13 @@ pub struct IPhotoAcquireSettings_Vtbl { pub SetFlags: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub SetOutputFilenameTemplate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub SetSequencePaddingWidth: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub SetSequenceZeroPadding: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetSequenceZeroPadding: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetGroupTag: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub SetAcquisitionTime: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::FILETIME) -> windows_core::HRESULT, pub GetFlags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetOutputFilenameTemplate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSequencePaddingWidth: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub GetSequenceZeroPadding: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetSequenceZeroPadding: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetGroupTag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetAcquisitionTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT, } @@ -975,13 +975,13 @@ pub trait IPhotoAcquireSettings_Impl: windows_core::IUnknownImpl { fn SetFlags(&self, dwphotoacquireflags: u32) -> windows_core::Result<()>; fn SetOutputFilenameTemplate(&self, psztemplate: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetSequencePaddingWidth(&self, dwwidth: u32) -> windows_core::Result<()>; - fn SetSequenceZeroPadding(&self, fzeropad: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetSequenceZeroPadding(&self, fzeropad: windows_core::BOOL) -> windows_core::Result<()>; fn SetGroupTag(&self, pszgrouptag: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetAcquisitionTime(&self, pftacquisitiontime: *const super::super::Foundation::FILETIME) -> windows_core::Result<()>; fn GetFlags(&self) -> windows_core::Result; fn GetOutputFilenameTemplate(&self) -> windows_core::Result; fn GetSequencePaddingWidth(&self) -> windows_core::Result; - fn GetSequenceZeroPadding(&self) -> windows_core::Result; + fn GetSequenceZeroPadding(&self) -> windows_core::Result; fn GetGroupTag(&self) -> windows_core::Result; fn GetAcquisitionTime(&self) -> windows_core::Result; } @@ -1011,7 +1011,7 @@ impl IPhotoAcquireSettings_Vtbl { IPhotoAcquireSettings_Impl::SetSequencePaddingWidth(this, core::mem::transmute_copy(&dwwidth)).into() } } - unsafe extern "system" fn SetSequenceZeroPadding(this: *mut core::ffi::c_void, fzeropad: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetSequenceZeroPadding(this: *mut core::ffi::c_void, fzeropad: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireSettings_Impl::SetSequenceZeroPadding(this, core::mem::transmute_copy(&fzeropad)).into() @@ -1065,7 +1065,7 @@ impl IPhotoAcquireSettings_Vtbl { } } } - unsafe extern "system" fn GetSequenceZeroPadding(this: *mut core::ffi::c_void, pfzeropad: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetSequenceZeroPadding(this: *mut core::ffi::c_void, pfzeropad: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoAcquireSettings_Impl::GetSequenceZeroPadding(this) { @@ -1178,7 +1178,7 @@ pub struct IPhotoAcquireSource_Vtbl { pub GetDeviceIcons: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::UI::WindowsAndMessaging::HICON, *mut super::super::UI::WindowsAndMessaging::HICON) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] GetDeviceIcons: usize, - pub InitializeItemList: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, + pub InitializeItemList: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetItemCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetItemAt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetPhotoAcquireSettings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1189,7 +1189,7 @@ pub struct IPhotoAcquireSource_Vtbl { pub trait IPhotoAcquireSource_Impl: windows_core::IUnknownImpl { fn GetFriendlyName(&self) -> windows_core::Result; fn GetDeviceIcons(&self, nsize: u32, phlargeicon: *mut super::super::UI::WindowsAndMessaging::HICON, phsmallicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> windows_core::Result<()>; - fn InitializeItemList(&self, fforceenumeration: super::super::Foundation::BOOL, pphotoacquireprogresscb: windows_core::Ref, pnitemcount: *mut u32) -> windows_core::Result<()>; + fn InitializeItemList(&self, fforceenumeration: windows_core::BOOL, pphotoacquireprogresscb: windows_core::Ref, pnitemcount: *mut u32) -> windows_core::Result<()>; fn GetItemCount(&self) -> windows_core::Result; fn GetItemAt(&self, nindex: u32) -> windows_core::Result; fn GetPhotoAcquireSettings(&self) -> windows_core::Result; @@ -1217,7 +1217,7 @@ impl IPhotoAcquireSource_Vtbl { IPhotoAcquireSource_Impl::GetDeviceIcons(this, core::mem::transmute_copy(&nsize), core::mem::transmute_copy(&phlargeicon), core::mem::transmute_copy(&phsmallicon)).into() } } - unsafe extern "system" fn InitializeItemList(this: *mut core::ffi::c_void, fforceenumeration: super::super::Foundation::BOOL, pphotoacquireprogresscb: *mut core::ffi::c_void, pnitemcount: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn InitializeItemList(this: *mut core::ffi::c_void, fforceenumeration: windows_core::BOOL, pphotoacquireprogresscb: *mut core::ffi::c_void, pnitemcount: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoAcquireSource_Impl::InitializeItemList(this, core::mem::transmute_copy(&fforceenumeration), core::mem::transmute_copy(&pphotoacquireprogresscb), core::mem::transmute_copy(&pnitemcount)).into() @@ -1364,7 +1364,7 @@ impl IPhotoProgressDialog { { unsafe { (windows_core::Interface::vtable(self).SetCheckboxTooltip)(windows_core::Interface::as_raw(self), ncheckboxid, pszcheckboxtooltiptext.param().abi()).ok() } } - pub unsafe fn IsCheckboxChecked(&self, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID) -> windows_core::Result { + pub unsafe fn IsCheckboxChecked(&self, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsCheckboxChecked)(windows_core::Interface::as_raw(self), ncheckboxid, &mut result__).map(|| result__) @@ -1404,7 +1404,7 @@ impl IPhotoProgressDialog { pub unsafe fn ShowActionLink(&self, fshow: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).ShowActionLink)(windows_core::Interface::as_raw(self), fshow.into()).ok() } } - pub unsafe fn IsCancelled(&self) -> windows_core::Result { + pub unsafe fn IsCancelled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsCancelled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1425,11 +1425,11 @@ pub struct IPhotoProgressDialog_Vtbl { pub GetWindow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::HWND) -> windows_core::HRESULT, pub Destroy: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SetTitle: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, - pub ShowCheckbox: unsafe extern "system" fn(*mut core::ffi::c_void, PROGRESS_DIALOG_CHECKBOX_ID, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ShowCheckbox: unsafe extern "system" fn(*mut core::ffi::c_void, PROGRESS_DIALOG_CHECKBOX_ID, windows_core::BOOL) -> windows_core::HRESULT, pub SetCheckboxText: unsafe extern "system" fn(*mut core::ffi::c_void, PROGRESS_DIALOG_CHECKBOX_ID, windows_core::PCWSTR) -> windows_core::HRESULT, - pub SetCheckboxCheck: unsafe extern "system" fn(*mut core::ffi::c_void, PROGRESS_DIALOG_CHECKBOX_ID, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetCheckboxCheck: unsafe extern "system" fn(*mut core::ffi::c_void, PROGRESS_DIALOG_CHECKBOX_ID, windows_core::BOOL) -> windows_core::HRESULT, pub SetCheckboxTooltip: unsafe extern "system" fn(*mut core::ffi::c_void, PROGRESS_DIALOG_CHECKBOX_ID, windows_core::PCWSTR) -> windows_core::HRESULT, - pub IsCheckboxChecked: unsafe extern "system" fn(*mut core::ffi::c_void, PROGRESS_DIALOG_CHECKBOX_ID, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsCheckboxChecked: unsafe extern "system" fn(*mut core::ffi::c_void, PROGRESS_DIALOG_CHECKBOX_ID, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetCaption: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub SetImage: unsafe extern "system" fn(*mut core::ffi::c_void, PROGRESS_DIALOG_IMAGE_TYPE, super::super::UI::WindowsAndMessaging::HICON, super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT, @@ -1439,8 +1439,8 @@ pub struct IPhotoProgressDialog_Vtbl { pub SetProgressText: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub SetActionLinkCallback: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetActionLinkText: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, - pub ShowActionLink: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsCancelled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ShowActionLink: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub IsCancelled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub GetUserInput: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut core::ffi::c_void, *mut super::super::System::Com::StructuredStorage::PROPVARIANT, *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] @@ -1452,19 +1452,19 @@ pub trait IPhotoProgressDialog_Impl: windows_core::IUnknownImpl { fn GetWindow(&self) -> windows_core::Result; fn Destroy(&self) -> windows_core::Result<()>; fn SetTitle(&self, psztitle: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn ShowCheckbox(&self, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, fshow: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ShowCheckbox(&self, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, fshow: windows_core::BOOL) -> windows_core::Result<()>; fn SetCheckboxText(&self, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, pszcheckboxtext: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn SetCheckboxCheck(&self, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, fchecked: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetCheckboxCheck(&self, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, fchecked: windows_core::BOOL) -> windows_core::Result<()>; fn SetCheckboxTooltip(&self, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, pszcheckboxtooltiptext: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn IsCheckboxChecked(&self, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID) -> windows_core::Result; + fn IsCheckboxChecked(&self, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID) -> windows_core::Result; fn SetCaption(&self, psztitle: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetImage(&self, nimagetype: PROGRESS_DIALOG_IMAGE_TYPE, hicon: super::super::UI::WindowsAndMessaging::HICON, hbitmap: super::super::Graphics::Gdi::HBITMAP) -> windows_core::Result<()>; fn SetPercentComplete(&self, npercent: i32) -> windows_core::Result<()>; fn SetProgressText(&self, pszprogresstext: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetActionLinkCallback(&self, pphotoprogressactioncb: windows_core::Ref) -> windows_core::Result<()>; fn SetActionLinkText(&self, pszcaption: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn ShowActionLink(&self, fshow: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn IsCancelled(&self) -> windows_core::Result; + fn ShowActionLink(&self, fshow: windows_core::BOOL) -> windows_core::Result<()>; + fn IsCancelled(&self) -> windows_core::Result; fn GetUserInput(&self, riidtype: *const windows_core::GUID, punknown: windows_core::Ref, ppropvarresult: *mut super::super::System::Com::StructuredStorage::PROPVARIANT, ppropvardefault: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_WindowsAndMessaging"))] @@ -1500,7 +1500,7 @@ impl IPhotoProgressDialog_Vtbl { IPhotoProgressDialog_Impl::SetTitle(this, core::mem::transmute(&psztitle)).into() } } - unsafe extern "system" fn ShowCheckbox(this: *mut core::ffi::c_void, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ShowCheckbox(this: *mut core::ffi::c_void, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, fshow: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressDialog_Impl::ShowCheckbox(this, core::mem::transmute_copy(&ncheckboxid), core::mem::transmute_copy(&fshow)).into() @@ -1512,7 +1512,7 @@ impl IPhotoProgressDialog_Vtbl { IPhotoProgressDialog_Impl::SetCheckboxText(this, core::mem::transmute_copy(&ncheckboxid), core::mem::transmute(&pszcheckboxtext)).into() } } - unsafe extern "system" fn SetCheckboxCheck(this: *mut core::ffi::c_void, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, fchecked: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetCheckboxCheck(this: *mut core::ffi::c_void, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, fchecked: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressDialog_Impl::SetCheckboxCheck(this, core::mem::transmute_copy(&ncheckboxid), core::mem::transmute_copy(&fchecked)).into() @@ -1524,7 +1524,7 @@ impl IPhotoProgressDialog_Vtbl { IPhotoProgressDialog_Impl::SetCheckboxTooltip(this, core::mem::transmute_copy(&ncheckboxid), core::mem::transmute(&pszcheckboxtooltiptext)).into() } } - unsafe extern "system" fn IsCheckboxChecked(this: *mut core::ffi::c_void, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, pfchecked: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsCheckboxChecked(this: *mut core::ffi::c_void, ncheckboxid: PROGRESS_DIALOG_CHECKBOX_ID, pfchecked: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoProgressDialog_Impl::IsCheckboxChecked(this, core::mem::transmute_copy(&ncheckboxid)) { @@ -1572,13 +1572,13 @@ impl IPhotoProgressDialog_Vtbl { IPhotoProgressDialog_Impl::SetActionLinkText(this, core::mem::transmute(&pszcaption)).into() } } - unsafe extern "system" fn ShowActionLink(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ShowActionLink(this: *mut core::ffi::c_void, fshow: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPhotoProgressDialog_Impl::ShowActionLink(this, core::mem::transmute_copy(&fshow)).into() } } - unsafe extern "system" fn IsCancelled(this: *mut core::ffi::c_void, pfcancelled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsCancelled(this: *mut core::ffi::c_void, pfcancelled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPhotoProgressDialog_Impl::IsCancelled(this) { 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 5f94e5dc87..3984149784 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs @@ -1572,7 +1572,7 @@ impl ISpGrammarBuilder { pub struct ISpGrammarBuilder_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub ResetGrammar: unsafe extern "system" fn(*mut core::ffi::c_void, u16) -> windows_core::HRESULT, - pub GetRule: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, u32, super::super::Foundation::BOOL, *mut SPSTATEHANDLE) -> windows_core::HRESULT, + pub GetRule: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, u32, windows_core::BOOL, *mut SPSTATEHANDLE) -> windows_core::HRESULT, pub ClearRule: unsafe extern "system" fn(*mut core::ffi::c_void, SPSTATEHANDLE) -> windows_core::HRESULT, pub CreateNewState: unsafe extern "system" fn(*mut core::ffi::c_void, SPSTATEHANDLE, *mut SPSTATEHANDLE) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1589,7 +1589,7 @@ pub struct ISpGrammarBuilder_Vtbl { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait ISpGrammarBuilder_Impl: windows_core::IUnknownImpl { fn ResetGrammar(&self, newlanguage: u16) -> windows_core::Result<()>; - fn GetRule(&self, pszrulename: &windows_core::PCWSTR, dwruleid: u32, dwattributes: u32, fcreateifnotexist: super::super::Foundation::BOOL, phinitialstate: *mut SPSTATEHANDLE) -> windows_core::Result<()>; + fn GetRule(&self, pszrulename: &windows_core::PCWSTR, dwruleid: u32, dwattributes: u32, fcreateifnotexist: windows_core::BOOL, phinitialstate: *mut SPSTATEHANDLE) -> windows_core::Result<()>; fn ClearRule(&self, hstate: SPSTATEHANDLE) -> windows_core::Result<()>; fn CreateNewState(&self, hstate: SPSTATEHANDLE, phstate: *mut SPSTATEHANDLE) -> windows_core::Result<()>; fn AddWordTransition(&self, hfromstate: SPSTATEHANDLE, htostate: SPSTATEHANDLE, psz: &windows_core::PCWSTR, pszseparators: &windows_core::PCWSTR, ewordtype: SPGRAMMARWORDTYPE, weight: f32, ppropinfo: *const SPPROPERTYINFO) -> windows_core::Result<()>; @@ -1606,7 +1606,7 @@ impl ISpGrammarBuilder_Vtbl { ISpGrammarBuilder_Impl::ResetGrammar(this, core::mem::transmute_copy(&newlanguage)).into() } } - unsafe extern "system" fn GetRule(this: *mut core::ffi::c_void, pszrulename: windows_core::PCWSTR, dwruleid: u32, dwattributes: u32, fcreateifnotexist: super::super::Foundation::BOOL, phinitialstate: *mut SPSTATEHANDLE) -> windows_core::HRESULT { + unsafe extern "system" fn GetRule(this: *mut core::ffi::c_void, pszrulename: windows_core::PCWSTR, dwruleid: u32, dwattributes: u32, fcreateifnotexist: windows_core::BOOL, phinitialstate: *mut SPSTATEHANDLE) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpGrammarBuilder_Impl::GetRule(this, core::mem::transmute(&pszrulename), core::mem::transmute_copy(&dwruleid), core::mem::transmute_copy(&dwattributes), core::mem::transmute_copy(&fcreateifnotexist), core::mem::transmute_copy(&phinitialstate)).into() @@ -2220,7 +2220,7 @@ pub struct ISpNotifyTranslator_Vtbl { pub InitWindowMessage: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, u32, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM) -> windows_core::HRESULT, pub InitCallback: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SPNOTIFYCALLBACK, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM) -> windows_core::HRESULT, pub InitSpNotifyCallback: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM) -> windows_core::HRESULT, - pub InitWin32Event: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub InitWin32Event: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, windows_core::BOOL) -> windows_core::HRESULT, pub Wait: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetEventHandle: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::HANDLE, } @@ -2228,7 +2228,7 @@ pub trait ISpNotifyTranslator_Impl: ISpNotifySink_Impl { fn InitWindowMessage(&self, hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; fn InitCallback(&self, pfncallback: *mut SPNOTIFYCALLBACK, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; fn InitSpNotifyCallback(&self, pspcallback: windows_core::Ref, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; - fn InitWin32Event(&self, hevent: super::super::Foundation::HANDLE, fclosehandleonrelease: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn InitWin32Event(&self, hevent: super::super::Foundation::HANDLE, fclosehandleonrelease: windows_core::BOOL) -> windows_core::Result<()>; fn Wait(&self, dwmilliseconds: u32) -> windows_core::Result<()>; fn GetEventHandle(&self) -> super::super::Foundation::HANDLE; } @@ -2252,7 +2252,7 @@ impl ISpNotifyTranslator_Vtbl { ISpNotifyTranslator_Impl::InitSpNotifyCallback(this, core::mem::transmute_copy(&pspcallback), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() } } - unsafe extern "system" fn InitWin32Event(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE, fclosehandleonrelease: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn InitWin32Event(this: *mut core::ffi::c_void, hevent: super::super::Foundation::HANDLE, fclosehandleonrelease: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpNotifyTranslator_Impl::InitWin32Event(this, core::mem::transmute_copy(&hevent), core::mem::transmute_copy(&fclosehandleonrelease)).into() @@ -2338,7 +2338,7 @@ impl ISpObjectToken { pub unsafe fn Remove(&self, pclsidcaller: Option<*const windows_core::GUID>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Remove)(windows_core::Interface::as_raw(self), pclsidcaller.unwrap_or(core::mem::zeroed()) as _).ok() } } - pub unsafe fn IsUISupported(&self, psztypeofui: P0, pvextradata: *mut core::ffi::c_void, cbextradata: u32, punkobject: P3, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn IsUISupported(&self, psztypeofui: P0, pvextradata: *mut core::ffi::c_void, cbextradata: u32, punkobject: P3, pfsupported: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, P3: windows_core::Param, @@ -2353,7 +2353,7 @@ impl ISpObjectToken { { unsafe { (windows_core::Interface::vtable(self).DisplayUI)(windows_core::Interface::as_raw(self), hwndparent, psztitle.param().abi(), psztypeofui.param().abi(), pvextradata as _, cbextradata, punkobject.param().abi()).ok() } } - pub unsafe fn MatchesAttributes(&self, pszattributes: P0, pfmatches: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn MatchesAttributes(&self, pszattributes: P0, pfmatches: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -2363,32 +2363,32 @@ impl ISpObjectToken { #[repr(C)] pub struct ISpObjectToken_Vtbl { pub base__: ISpDataKey_Vtbl, - pub SetId: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetId: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, pub GetId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetCategory: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateInstance: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetStorageFileName: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, windows_core::PCWSTR, windows_core::PCWSTR, u32, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub RemoveStorageFileName: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub RemoveStorageFileName: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, pub Remove: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID) -> windows_core::HRESULT, - pub IsUISupported: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsUISupported: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub DisplayUI: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, windows_core::PCWSTR, windows_core::PCWSTR, *mut core::ffi::c_void, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub MatchesAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MatchesAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ISpObjectToken_Impl: ISpDataKey_Impl { - fn SetId(&self, pszcategoryid: &windows_core::PCWSTR, psztokenid: &windows_core::PCWSTR, fcreateifnotexist: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetId(&self, pszcategoryid: &windows_core::PCWSTR, psztokenid: &windows_core::PCWSTR, fcreateifnotexist: windows_core::BOOL) -> windows_core::Result<()>; fn GetId(&self) -> windows_core::Result; fn GetCategory(&self) -> windows_core::Result; fn CreateInstance(&self, punkouter: windows_core::Ref, dwclscontext: u32, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetStorageFileName(&self, clsidcaller: *const windows_core::GUID, pszvaluename: &windows_core::PCWSTR, pszfilenamespecifier: &windows_core::PCWSTR, nfolder: u32) -> windows_core::Result; - fn RemoveStorageFileName(&self, clsidcaller: *const windows_core::GUID, pszkeyname: &windows_core::PCWSTR, fdeletefile: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn RemoveStorageFileName(&self, clsidcaller: *const windows_core::GUID, pszkeyname: &windows_core::PCWSTR, fdeletefile: windows_core::BOOL) -> windows_core::Result<()>; fn Remove(&self, pclsidcaller: *const windows_core::GUID) -> windows_core::Result<()>; - fn IsUISupported(&self, psztypeofui: &windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, punkobject: windows_core::Ref, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsUISupported(&self, psztypeofui: &windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, punkobject: windows_core::Ref, pfsupported: *mut windows_core::BOOL) -> windows_core::Result<()>; fn DisplayUI(&self, hwndparent: super::super::Foundation::HWND, psztitle: &windows_core::PCWSTR, psztypeofui: &windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, punkobject: windows_core::Ref) -> windows_core::Result<()>; - fn MatchesAttributes(&self, pszattributes: &windows_core::PCWSTR, pfmatches: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn MatchesAttributes(&self, pszattributes: &windows_core::PCWSTR, pfmatches: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl ISpObjectToken_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, pszcategoryid: windows_core::PCWSTR, psztokenid: windows_core::PCWSTR, fcreateifnotexist: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, pszcategoryid: windows_core::PCWSTR, psztokenid: windows_core::PCWSTR, fcreateifnotexist: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectToken_Impl::SetId(this, core::mem::transmute(&pszcategoryid), core::mem::transmute(&psztokenid), core::mem::transmute_copy(&fcreateifnotexist)).into() @@ -2436,7 +2436,7 @@ impl ISpObjectToken_Vtbl { } } } - unsafe extern "system" fn RemoveStorageFileName(this: *mut core::ffi::c_void, clsidcaller: *const windows_core::GUID, pszkeyname: windows_core::PCWSTR, fdeletefile: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RemoveStorageFileName(this: *mut core::ffi::c_void, clsidcaller: *const windows_core::GUID, pszkeyname: windows_core::PCWSTR, fdeletefile: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectToken_Impl::RemoveStorageFileName(this, core::mem::transmute_copy(&clsidcaller), core::mem::transmute(&pszkeyname), core::mem::transmute_copy(&fdeletefile)).into() @@ -2448,7 +2448,7 @@ impl ISpObjectToken_Vtbl { ISpObjectToken_Impl::Remove(this, core::mem::transmute_copy(&pclsidcaller)).into() } } - unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, psztypeofui: windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, punkobject: *mut core::ffi::c_void, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, psztypeofui: windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, punkobject: *mut core::ffi::c_void, pfsupported: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectToken_Impl::IsUISupported(this, core::mem::transmute(&psztypeofui), core::mem::transmute_copy(&pvextradata), core::mem::transmute_copy(&cbextradata), core::mem::transmute_copy(&punkobject), core::mem::transmute_copy(&pfsupported)).into() @@ -2460,7 +2460,7 @@ impl ISpObjectToken_Vtbl { ISpObjectToken_Impl::DisplayUI(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute(&psztitle), core::mem::transmute(&psztypeofui), core::mem::transmute_copy(&pvextradata), core::mem::transmute_copy(&cbextradata), core::mem::transmute_copy(&punkobject)).into() } } - unsafe extern "system" fn MatchesAttributes(this: *mut core::ffi::c_void, pszattributes: windows_core::PCWSTR, pfmatches: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MatchesAttributes(this: *mut core::ffi::c_void, pszattributes: windows_core::PCWSTR, pfmatches: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectToken_Impl::MatchesAttributes(this, core::mem::transmute(&pszattributes), core::mem::transmute_copy(&pfmatches)).into() @@ -2538,7 +2538,7 @@ impl ISpObjectTokenCategory { #[repr(C)] pub struct ISpObjectTokenCategory_Vtbl { pub base__: ISpDataKey_Vtbl, - pub SetId: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetId: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, pub GetId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetDataKey: unsafe extern "system" fn(*mut core::ffi::c_void, SPDATAKEYLOCATION, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub EnumTokens: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2546,7 +2546,7 @@ pub struct ISpObjectTokenCategory_Vtbl { pub GetDefaultTokenId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, } pub trait ISpObjectTokenCategory_Impl: ISpDataKey_Impl { - fn SetId(&self, pszcategoryid: &windows_core::PCWSTR, fcreateifnotexist: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetId(&self, pszcategoryid: &windows_core::PCWSTR, fcreateifnotexist: windows_core::BOOL) -> windows_core::Result<()>; fn GetId(&self) -> windows_core::Result; fn GetDataKey(&self, spdkl: SPDATAKEYLOCATION) -> windows_core::Result; fn EnumTokens(&self, pzsreqattribs: &windows_core::PCWSTR, pszoptattribs: &windows_core::PCWSTR) -> windows_core::Result; @@ -2555,7 +2555,7 @@ pub trait ISpObjectTokenCategory_Impl: ISpDataKey_Impl { } impl ISpObjectTokenCategory_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, pszcategoryid: windows_core::PCWSTR, fcreateifnotexist: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetId(this: *mut core::ffi::c_void, pszcategoryid: windows_core::PCWSTR, fcreateifnotexist: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpObjectTokenCategory_Impl::SetId(this, core::mem::transmute(&pszcategoryid), core::mem::transmute_copy(&fcreateifnotexist)).into() @@ -2921,14 +2921,14 @@ pub struct ISpPhoneticAlphabetConverter_Vtbl { pub SetLangId: unsafe extern "system" fn(*mut core::ffi::c_void, u16) -> windows_core::HRESULT, pub SAPI2UPS: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, *mut u16, u32) -> windows_core::HRESULT, pub UPS2SAPI: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, *mut u16, u32) -> windows_core::HRESULT, - pub GetMaxConvertLength: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL, *mut u32) -> windows_core::HRESULT, + pub GetMaxConvertLength: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL, *mut u32) -> windows_core::HRESULT, } pub trait ISpPhoneticAlphabetConverter_Impl: windows_core::IUnknownImpl { fn GetLangId(&self) -> windows_core::Result; fn SetLangId(&self, langid: u16) -> windows_core::Result<()>; fn SAPI2UPS(&self, pszsapiid: *const u16, pszupsid: *mut u16, cmaxlength: u32) -> windows_core::Result<()>; fn UPS2SAPI(&self, pszupsid: *const u16, pszsapiid: *mut u16, cmaxlength: u32) -> windows_core::Result<()>; - fn GetMaxConvertLength(&self, csrclength: u32, bsapi2ups: super::super::Foundation::BOOL) -> windows_core::Result; + fn GetMaxConvertLength(&self, csrclength: u32, bsapi2ups: windows_core::BOOL) -> windows_core::Result; } impl ISpPhoneticAlphabetConverter_Vtbl { pub const fn new() -> Self { @@ -2962,7 +2962,7 @@ impl ISpPhoneticAlphabetConverter_Vtbl { ISpPhoneticAlphabetConverter_Impl::UPS2SAPI(this, core::mem::transmute_copy(&pszupsid), core::mem::transmute_copy(&pszsapiid), core::mem::transmute_copy(&cmaxlength)).into() } } - unsafe extern "system" fn GetMaxConvertLength(this: *mut core::ffi::c_void, csrclength: u32, bsapi2ups: super::super::Foundation::BOOL, pcmaxdestlength: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn GetMaxConvertLength(this: *mut core::ffi::c_void, csrclength: u32, bsapi2ups: windows_core::BOOL, pcmaxdestlength: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpPhoneticAlphabetConverter_Impl::GetMaxConvertLength(this, core::mem::transmute_copy(&csrclength), core::mem::transmute_copy(&bsapi2ups)) { @@ -2991,7 +2991,7 @@ impl windows_core::RuntimeName for ISpPhoneticAlphabetConverter {} windows_core::imp::define_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 { + pub unsafe fn IsAlphabetUPS(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsAlphabetUPS)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3004,16 +3004,16 @@ impl ISpPhoneticAlphabetSelection { #[repr(C)] pub struct ISpPhoneticAlphabetSelection_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsAlphabetUPS: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetAlphabetToUPS: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsAlphabetUPS: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetAlphabetToUPS: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait ISpPhoneticAlphabetSelection_Impl: windows_core::IUnknownImpl { - fn IsAlphabetUPS(&self) -> windows_core::Result; - fn SetAlphabetToUPS(&self, fforceups: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsAlphabetUPS(&self) -> windows_core::Result; + fn SetAlphabetToUPS(&self, fforceups: windows_core::BOOL) -> windows_core::Result<()>; } impl ISpPhoneticAlphabetSelection_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsAlphabetUPS(this: *mut core::ffi::c_void, pfisups: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsAlphabetUPS(this: *mut core::ffi::c_void, pfisups: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpPhoneticAlphabetSelection_Impl::IsAlphabetUPS(this) { @@ -3025,7 +3025,7 @@ impl ISpPhoneticAlphabetSelection_Vtbl { } } } - unsafe extern "system" fn SetAlphabetToUPS(this: *mut core::ffi::c_void, fforceups: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAlphabetToUPS(this: *mut core::ffi::c_void, fforceups: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPhoneticAlphabetSelection_Impl::SetAlphabetToUPS(this, core::mem::transmute_copy(&fforceups)).into() @@ -3073,14 +3073,14 @@ pub struct ISpPhrase_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetPhrase: usize, pub GetSerializedPhrase: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut SPSERIALIZEDPHRASE) -> windows_core::HRESULT, - pub GetText: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, super::super::Foundation::BOOL, *mut windows_core::PWSTR, *mut u8) -> windows_core::HRESULT, + pub GetText: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, windows_core::BOOL, *mut windows_core::PWSTR, *mut u8) -> windows_core::HRESULT, pub Discard: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait ISpPhrase_Impl: windows_core::IUnknownImpl { fn GetPhrase(&self) -> windows_core::Result<*mut SPPHRASE>; fn GetSerializedPhrase(&self) -> windows_core::Result<*mut SPSERIALIZEDPHRASE>; - fn GetText(&self, ulstart: u32, ulcount: u32, fusetextreplacements: super::super::Foundation::BOOL, ppszcomemtext: *mut windows_core::PWSTR, pbdisplayattributes: *mut u8) -> windows_core::Result<()>; + fn GetText(&self, ulstart: u32, ulcount: u32, fusetextreplacements: windows_core::BOOL, ppszcomemtext: *mut windows_core::PWSTR, pbdisplayattributes: *mut u8) -> windows_core::Result<()>; fn Discard(&self, dwvaluetypes: u32) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3110,7 +3110,7 @@ impl ISpPhrase_Vtbl { } } } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, ulstart: u32, ulcount: u32, fusetextreplacements: super::super::Foundation::BOOL, ppszcomemtext: *mut windows_core::PWSTR, pbdisplayattributes: *mut u8) -> windows_core::HRESULT { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, ulstart: u32, ulcount: u32, fusetextreplacements: windows_core::BOOL, ppszcomemtext: *mut windows_core::PWSTR, pbdisplayattributes: *mut u8) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpPhrase_Impl::GetText(this, core::mem::transmute_copy(&ulstart), core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&fusetextreplacements), core::mem::transmute_copy(&ppszcomemtext), core::mem::transmute_copy(&pbdisplayattributes)).into() @@ -3634,7 +3634,7 @@ pub struct ISpRecoContext_Vtbl { pub SetAdaptationData: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32) -> windows_core::HRESULT, pub Pause: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub Resume: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub SetVoice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetVoice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetVoice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetVoicePurgeEvent: unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, pub GetVoicePurgeEvent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, @@ -3655,7 +3655,7 @@ pub trait ISpRecoContext_Impl: ISpEventSource_Impl { fn SetAdaptationData(&self, padaptationdata: &windows_core::PCWSTR, cch: u32) -> windows_core::Result<()>; fn Pause(&self, dwreserved: u32) -> windows_core::Result<()>; fn Resume(&self, dwreserved: u32) -> windows_core::Result<()>; - fn SetVoice(&self, pvoice: windows_core::Ref, fallowformatchanges: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetVoice(&self, pvoice: windows_core::Ref, fallowformatchanges: windows_core::BOOL) -> windows_core::Result<()>; fn GetVoice(&self) -> windows_core::Result; fn SetVoicePurgeEvent(&self, ulleventinterest: u64) -> windows_core::Result<()>; fn GetVoicePurgeEvent(&self, pulleventinterest: *mut u64) -> windows_core::Result<()>; @@ -3755,7 +3755,7 @@ impl ISpRecoContext_Vtbl { ISpRecoContext_Impl::Resume(this, core::mem::transmute_copy(&dwreserved)).into() } } - unsafe extern "system" fn SetVoice(this: *mut core::ffi::c_void, pvoice: *mut core::ffi::c_void, fallowformatchanges: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetVoice(this: *mut core::ffi::c_void, pvoice: *mut core::ffi::c_void, fallowformatchanges: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoContext_Impl::SetVoice(this, core::mem::transmute_copy(&pvoice), core::mem::transmute_copy(&fallowformatchanges)).into() @@ -4495,13 +4495,13 @@ pub struct ISpRecoResult2_Vtbl { pub base__: ISpRecoResult_Vtbl, pub CommitAlternate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CommitText: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, windows_core::PCWSTR, u32) -> windows_core::HRESULT, - pub SetTextFeedback: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetTextFeedback: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_Media_Audio", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait ISpRecoResult2_Impl: ISpRecoResult_Impl { fn CommitAlternate(&self, pphrasealt: windows_core::Ref) -> windows_core::Result; fn CommitText(&self, ulstartelement: u32, celements: u32, pszcorrecteddata: &windows_core::PCWSTR, ecommitflags: u32) -> windows_core::Result<()>; - fn SetTextFeedback(&self, pszfeedback: &windows_core::PCWSTR, fsuccessful: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetTextFeedback(&self, pszfeedback: &windows_core::PCWSTR, fsuccessful: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Media_Audio", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl ISpRecoResult2_Vtbl { @@ -4524,7 +4524,7 @@ impl ISpRecoResult2_Vtbl { ISpRecoResult2_Impl::CommitText(this, core::mem::transmute_copy(&ulstartelement), core::mem::transmute_copy(&celements), core::mem::transmute(&pszcorrecteddata), core::mem::transmute_copy(&ecommitflags)).into() } } - unsafe extern "system" fn SetTextFeedback(this: *mut core::ffi::c_void, pszfeedback: windows_core::PCWSTR, fsuccessful: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetTextFeedback(this: *mut core::ffi::c_void, pszfeedback: windows_core::PCWSTR, fsuccessful: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecoResult2_Impl::SetTextFeedback(this, core::mem::transmute(&pszfeedback), core::mem::transmute_copy(&fsuccessful)).into() @@ -4617,7 +4617,7 @@ impl ISpRecognizer { pub unsafe fn GetFormat(&self, waveformattype: SPSTREAMFORMATTYPE, pformatid: *mut windows_core::GUID, ppcomemwfex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetFormat)(windows_core::Interface::as_raw(self), waveformattype, pformatid as _, ppcomemwfex as _).ok() } } - pub unsafe fn IsUISupported(&self, psztypeofui: P0, pvextradata: *mut core::ffi::c_void, cbextradata: u32, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn IsUISupported(&self, psztypeofui: P0, pvextradata: *mut core::ffi::c_void, cbextradata: u32, pfsupported: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -4642,7 +4642,7 @@ pub struct ISpRecognizer_Vtbl { pub base__: ISpProperties_Vtbl, pub SetRecognizer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetRecognizer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetInput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetInput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetInputObjectToken: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetInputStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -4659,7 +4659,7 @@ pub struct ISpRecognizer_Vtbl { pub GetFormat: unsafe extern "system" fn(*mut core::ffi::c_void, SPSTREAMFORMATTYPE, *mut windows_core::GUID, *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Media_Audio"))] GetFormat: usize, - pub IsUISupported: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsUISupported: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub DisplayUI: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, windows_core::PCWSTR, windows_core::PCWSTR, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub EmulateRecognition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -4667,7 +4667,7 @@ pub struct ISpRecognizer_Vtbl { pub trait ISpRecognizer_Impl: ISpProperties_Impl { fn SetRecognizer(&self, precognizer: windows_core::Ref) -> windows_core::Result<()>; fn GetRecognizer(&self) -> windows_core::Result; - fn SetInput(&self, punkinput: windows_core::Ref, fallowformatchanges: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetInput(&self, punkinput: windows_core::Ref, fallowformatchanges: windows_core::BOOL) -> windows_core::Result<()>; fn GetInputObjectToken(&self) -> windows_core::Result; fn GetInputStream(&self) -> windows_core::Result; fn CreateRecoContext(&self) -> windows_core::Result; @@ -4678,7 +4678,7 @@ pub trait ISpRecognizer_Impl: ISpProperties_Impl { fn SetRecoState(&self, newstate: SPRECOSTATE) -> windows_core::Result<()>; fn GetStatus(&self, pstatus: *mut SPRECOGNIZERSTATUS) -> windows_core::Result<()>; fn GetFormat(&self, waveformattype: SPSTREAMFORMATTYPE, pformatid: *mut windows_core::GUID, ppcomemwfex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::Result<()>; - fn IsUISupported(&self, psztypeofui: &windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsUISupported(&self, psztypeofui: &windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, pfsupported: *mut windows_core::BOOL) -> windows_core::Result<()>; fn DisplayUI(&self, hwndparent: super::super::Foundation::HWND, psztitle: &windows_core::PCWSTR, psztypeofui: &windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32) -> windows_core::Result<()>; fn EmulateRecognition(&self, pphrase: windows_core::Ref) -> windows_core::Result<()>; } @@ -4703,7 +4703,7 @@ impl ISpRecognizer_Vtbl { } } } - unsafe extern "system" fn SetInput(this: *mut core::ffi::c_void, punkinput: *mut core::ffi::c_void, fallowformatchanges: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetInput(this: *mut core::ffi::c_void, punkinput: *mut core::ffi::c_void, fallowformatchanges: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecognizer_Impl::SetInput(this, core::mem::transmute_copy(&punkinput), core::mem::transmute_copy(&fallowformatchanges)).into() @@ -4793,7 +4793,7 @@ impl ISpRecognizer_Vtbl { ISpRecognizer_Impl::GetFormat(this, core::mem::transmute_copy(&waveformattype), core::mem::transmute_copy(&pformatid), core::mem::transmute_copy(&ppcomemwfex)).into() } } - unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, psztypeofui: windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, psztypeofui: windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, pfsupported: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecognizer_Impl::IsUISupported(this, core::mem::transmute(&psztypeofui), core::mem::transmute_copy(&pvextradata), core::mem::transmute_copy(&cbextradata), core::mem::transmute_copy(&pfsupported)).into() @@ -4857,12 +4857,12 @@ impl ISpRecognizer2 { pub struct ISpRecognizer2_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub EmulateRecognitionEx: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub SetTrainingState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetTrainingState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, pub ResetAcousticModelAdaptation: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ISpRecognizer2_Impl: windows_core::IUnknownImpl { fn EmulateRecognitionEx(&self, pphrase: windows_core::Ref, dwcompareflags: u32) -> windows_core::Result<()>; - fn SetTrainingState(&self, fdoingtraining: super::super::Foundation::BOOL, fadaptfromtrainingdata: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetTrainingState(&self, fdoingtraining: windows_core::BOOL, fadaptfromtrainingdata: windows_core::BOOL) -> windows_core::Result<()>; fn ResetAcousticModelAdaptation(&self) -> windows_core::Result<()>; } impl ISpRecognizer2_Vtbl { @@ -4873,7 +4873,7 @@ impl ISpRecognizer2_Vtbl { ISpRecognizer2_Impl::EmulateRecognitionEx(this, core::mem::transmute_copy(&pphrase), core::mem::transmute_copy(&dwcompareflags)).into() } } - unsafe extern "system" fn SetTrainingState(this: *mut core::ffi::c_void, fdoingtraining: super::super::Foundation::BOOL, fadaptfromtrainingdata: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetTrainingState(this: *mut core::ffi::c_void, fdoingtraining: windows_core::BOOL, fadaptfromtrainingdata: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRecognizer2_Impl::SetTrainingState(this, core::mem::transmute_copy(&fdoingtraining), core::mem::transmute_copy(&fadaptfromtrainingdata)).into() @@ -4915,18 +4915,18 @@ impl ISpRegDataKey { pub struct ISpRegDataKey_Vtbl { pub base__: ISpDataKey_Vtbl, #[cfg(feature = "Win32_System_Registry")] - pub SetKey: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::System::Registry::HKEY, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetKey: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::System::Registry::HKEY, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Registry"))] SetKey: usize, } #[cfg(feature = "Win32_System_Registry")] pub trait ISpRegDataKey_Impl: ISpDataKey_Impl { - fn SetKey(&self, hkey: super::super::System::Registry::HKEY, freadonly: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetKey(&self, hkey: super::super::System::Registry::HKEY, freadonly: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Registry")] impl ISpRegDataKey_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetKey(this: *mut core::ffi::c_void, hkey: super::super::System::Registry::HKEY, freadonly: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetKey(this: *mut core::ffi::c_void, hkey: super::super::System::Registry::HKEY, freadonly: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpRegDataKey_Impl::SetKey(this, core::mem::transmute_copy(&hkey), core::mem::transmute_copy(&freadonly)).into() @@ -4968,12 +4968,12 @@ impl ISpResourceManager { pub struct ISpResourceManager_Vtbl { pub base__: super::super::System::Com::IServiceProvider_Vtbl, pub SetObject: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetObject: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const windows_core::GUID, *const windows_core::GUID, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetObject: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const windows_core::GUID, *const windows_core::GUID, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait ISpResourceManager_Impl: super::super::System::Com::IServiceProvider_Impl { fn SetObject(&self, guidserviceid: *const windows_core::GUID, punkobject: windows_core::Ref) -> windows_core::Result<()>; - fn GetObject(&self, 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::Result<()>; + fn GetObject(&self, guidserviceid: *const windows_core::GUID, objectclsid: *const windows_core::GUID, objectiid: *const windows_core::GUID, freleasewhenlastexternalrefreleased: windows_core::BOOL, ppobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl ISpResourceManager_Vtbl { @@ -4984,7 +4984,7 @@ impl ISpResourceManager_Vtbl { ISpResourceManager_Impl::SetObject(this, core::mem::transmute_copy(&guidserviceid), core::mem::transmute_copy(&punkobject)).into() } } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, guidserviceid: *const windows_core::GUID, objectclsid: *const windows_core::GUID, objectiid: *const windows_core::GUID, freleasewhenlastexternalrefreleased: super::super::Foundation::BOOL, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, guidserviceid: *const windows_core::GUID, objectclsid: *const windows_core::GUID, objectiid: *const windows_core::GUID, freleasewhenlastexternalrefreleased: windows_core::BOOL, ppobject: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpResourceManager_Impl::GetObject(this, core::mem::transmute_copy(&guidserviceid), core::mem::transmute_copy(&objectclsid), core::mem::transmute_copy(&objectiid), core::mem::transmute_copy(&freleasewhenlastexternalrefreleased), core::mem::transmute_copy(&ppobject)).into() @@ -5234,7 +5234,7 @@ pub struct ISpSREngine_Vtbl { #[cfg(not(feature = "Win32_Media_Audio"))] GetInputAudioFormat: usize, #[cfg(feature = "Win32_Media_Audio")] - pub RecognizeStream: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const super::Audio::WAVEFORMATEX, super::super::Foundation::HANDLE, super::super::Foundation::HANDLE, super::super::Foundation::HANDLE, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub RecognizeStream: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const super::Audio::WAVEFORMATEX, super::super::Foundation::HANDLE, super::super::Foundation::HANDLE, super::super::Foundation::HANDLE, windows_core::BOOL, windows_core::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Media_Audio"))] RecognizeStream: usize, pub SetRecoProfile: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -5268,7 +5268,7 @@ pub struct ISpSREngine_Vtbl { pub trait ISpSREngine_Impl: windows_core::IUnknownImpl { fn SetSite(&self, psite: windows_core::Ref) -> windows_core::Result<()>; fn GetInputAudioFormat(&self, pguidsourceformatid: *const windows_core::GUID, psourcewaveformatex: *const super::Audio::WAVEFORMATEX, pguiddesiredformatid: *mut windows_core::GUID, ppcomemdesiredwaveformatex: *mut *mut super::Audio::WAVEFORMATEX) -> windows_core::Result<()>; - fn RecognizeStream(&self, rguidfmtid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX, hrequestsync: super::super::Foundation::HANDLE, hdataavailable: super::super::Foundation::HANDLE, hexit: super::super::Foundation::HANDLE, fnewaudiostream: super::super::Foundation::BOOL, frealtimeaudio: super::super::Foundation::BOOL, paudioobjecttoken: windows_core::Ref) -> windows_core::Result<()>; + fn RecognizeStream(&self, rguidfmtid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX, hrequestsync: super::super::Foundation::HANDLE, hdataavailable: super::super::Foundation::HANDLE, hexit: super::super::Foundation::HANDLE, fnewaudiostream: windows_core::BOOL, frealtimeaudio: windows_core::BOOL, paudioobjecttoken: windows_core::Ref) -> windows_core::Result<()>; fn SetRecoProfile(&self, pprofile: windows_core::Ref) -> windows_core::Result<()>; fn OnCreateGrammar(&self, pvenginerecocontext: *const core::ffi::c_void, hsapigrammar: SPGRAMMARHANDLE, ppvenginegrammarcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn OnDeleteGrammar(&self, pvenginegrammar: *const core::ffi::c_void) -> windows_core::Result<()>; @@ -5311,7 +5311,7 @@ impl ISpSREngine_Vtbl { ISpSREngine_Impl::GetInputAudioFormat(this, core::mem::transmute_copy(&pguidsourceformatid), core::mem::transmute_copy(&psourcewaveformatex), core::mem::transmute_copy(&pguiddesiredformatid), core::mem::transmute_copy(&ppcomemdesiredwaveformatex)).into() } } - unsafe extern "system" fn RecognizeStream(this: *mut core::ffi::c_void, rguidfmtid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX, hrequestsync: super::super::Foundation::HANDLE, hdataavailable: super::super::Foundation::HANDLE, hexit: super::super::Foundation::HANDLE, fnewaudiostream: super::super::Foundation::BOOL, frealtimeaudio: super::super::Foundation::BOOL, paudioobjecttoken: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn RecognizeStream(this: *mut core::ffi::c_void, rguidfmtid: *const windows_core::GUID, pwaveformatex: *const super::Audio::WAVEFORMATEX, hrequestsync: super::super::Foundation::HANDLE, hdataavailable: super::super::Foundation::HANDLE, hexit: super::super::Foundation::HANDLE, fnewaudiostream: windows_core::BOOL, frealtimeaudio: windows_core::BOOL, paudioobjecttoken: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine_Impl::RecognizeStream(this, core::mem::transmute_copy(&rguidfmtid), core::mem::transmute_copy(&pwaveformatex), core::mem::transmute_copy(&hrequestsync), core::mem::transmute_copy(&hdataavailable), core::mem::transmute_copy(&hexit), core::mem::transmute_copy(&fnewaudiostream), core::mem::transmute_copy(&frealtimeaudio), core::mem::transmute_copy(&paudioobjecttoken)).into() @@ -5593,12 +5593,12 @@ pub struct ISpSREngine2_Vtbl { pub base__: ISpSREngine_Vtbl, pub PrivateCallImmediate: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, *const core::ffi::c_void, u32, *mut *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetAdaptationData2: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, windows_core::PCWSTR, u32, windows_core::PCWSTR, SPADAPTATIONSETTINGS, SPADAPTATIONRELEVANCE) -> windows_core::HRESULT, - pub SetGrammarPrefix: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetGrammarPrefix: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, pub SetRulePriority: unsafe extern "system" fn(*mut core::ffi::c_void, SPRULEHANDLE, *const core::ffi::c_void, i32) -> windows_core::HRESULT, pub EmulateRecognition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub SetSLMWeight: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, f32) -> windows_core::HRESULT, pub SetRuleWeight: unsafe extern "system" fn(*mut core::ffi::c_void, SPRULEHANDLE, *const core::ffi::c_void, f32) -> windows_core::HRESULT, - pub SetTrainingState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetTrainingState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, pub ResetAcousticModelAdaptation: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub OnLoadCFG: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, *const SPBINARYGRAMMAR, u32) -> windows_core::HRESULT, pub OnUnloadCFG: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -5607,12 +5607,12 @@ pub struct ISpSREngine2_Vtbl { pub trait ISpSREngine2_Impl: ISpSREngine_Impl { fn PrivateCallImmediate(&self, pvenginecontext: *const core::ffi::c_void, pincallframe: *const core::ffi::c_void, ulincallframesize: u32, ppvcomemresponse: *mut *mut core::ffi::c_void, pulresponsesize: *mut u32) -> windows_core::Result<()>; fn SetAdaptationData2(&self, pvenginecontext: *const core::ffi::c_void, padaptationdata: &windows_core::PCWSTR, cch: u32, ptopicname: &windows_core::PCWSTR, esettings: SPADAPTATIONSETTINGS, erelevance: SPADAPTATIONRELEVANCE) -> windows_core::Result<()>; - fn SetGrammarPrefix(&self, pvenginegrammar: *const core::ffi::c_void, pszprefix: &windows_core::PCWSTR, fisprefixrequired: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetGrammarPrefix(&self, pvenginegrammar: *const core::ffi::c_void, pszprefix: &windows_core::PCWSTR, fisprefixrequired: windows_core::BOOL) -> windows_core::Result<()>; fn SetRulePriority(&self, hrule: SPRULEHANDLE, pvclientrulecontext: *const core::ffi::c_void, nrulepriority: i32) -> windows_core::Result<()>; fn EmulateRecognition(&self, pphrase: windows_core::Ref, dwcompareflags: u32) -> windows_core::Result<()>; fn SetSLMWeight(&self, pvenginegrammar: *const core::ffi::c_void, flweight: f32) -> windows_core::Result<()>; fn SetRuleWeight(&self, hrule: SPRULEHANDLE, pvclientrulecontext: *const core::ffi::c_void, flweight: f32) -> windows_core::Result<()>; - fn SetTrainingState(&self, fdoingtraining: super::super::Foundation::BOOL, fadaptfromtrainingdata: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetTrainingState(&self, fdoingtraining: windows_core::BOOL, fadaptfromtrainingdata: windows_core::BOOL) -> windows_core::Result<()>; fn ResetAcousticModelAdaptation(&self) -> windows_core::Result<()>; fn OnLoadCFG(&self, pvenginegrammar: *const core::ffi::c_void, pgrammardata: *const SPBINARYGRAMMAR, ulgrammarid: u32) -> windows_core::Result<()>; fn OnUnloadCFG(&self, pvenginegrammar: *const core::ffi::c_void, ulgrammarid: u32) -> windows_core::Result<()>; @@ -5632,7 +5632,7 @@ impl ISpSREngine2_Vtbl { ISpSREngine2_Impl::SetAdaptationData2(this, core::mem::transmute_copy(&pvenginecontext), core::mem::transmute(&padaptationdata), core::mem::transmute_copy(&cch), core::mem::transmute(&ptopicname), core::mem::transmute_copy(&esettings), core::mem::transmute_copy(&erelevance)).into() } } - unsafe extern "system" fn SetGrammarPrefix(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, pszprefix: windows_core::PCWSTR, fisprefixrequired: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetGrammarPrefix(this: *mut core::ffi::c_void, pvenginegrammar: *const core::ffi::c_void, pszprefix: windows_core::PCWSTR, fisprefixrequired: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine2_Impl::SetGrammarPrefix(this, core::mem::transmute_copy(&pvenginegrammar), core::mem::transmute(&pszprefix), core::mem::transmute_copy(&fisprefixrequired)).into() @@ -5662,7 +5662,7 @@ impl ISpSREngine2_Vtbl { ISpSREngine2_Impl::SetRuleWeight(this, core::mem::transmute_copy(&hrule), core::mem::transmute_copy(&pvclientrulecontext), core::mem::transmute_copy(&flweight)).into() } } - unsafe extern "system" fn SetTrainingState(this: *mut core::ffi::c_void, fdoingtraining: super::super::Foundation::BOOL, fadaptfromtrainingdata: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetTrainingState(this: *mut core::ffi::c_void, fdoingtraining: windows_core::BOOL, fadaptfromtrainingdata: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpSREngine2_Impl::SetTrainingState(this, core::mem::transmute_copy(&fdoingtraining), core::mem::transmute_copy(&fadaptfromtrainingdata)).into() @@ -6486,7 +6486,7 @@ impl ISpStreamFormatConverter { #[repr(C)] pub struct ISpStreamFormatConverter_Vtbl { pub base__: ISpStreamFormat_Vtbl, - pub SetBaseStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetBaseStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, pub GetBaseStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_Media_Audio")] pub SetFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const super::Audio::WAVEFORMATEX) -> windows_core::HRESULT, @@ -6498,7 +6498,7 @@ pub struct ISpStreamFormatConverter_Vtbl { } #[cfg(all(feature = "Win32_Media_Audio", feature = "Win32_System_Com"))] pub trait ISpStreamFormatConverter_Impl: ISpStreamFormat_Impl { - fn SetBaseStream(&self, pstream: windows_core::Ref, fsetformattobasestreamformat: super::super::Foundation::BOOL, fwritetobasestream: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetBaseStream(&self, pstream: windows_core::Ref, fsetformattobasestreamformat: windows_core::BOOL, fwritetobasestream: windows_core::BOOL) -> windows_core::Result<()>; fn GetBaseStream(&self) -> windows_core::Result; fn SetFormat(&self, rguidformatidofconvertedstream: *const windows_core::GUID, pwaveformatexofconvertedstream: *const super::Audio::WAVEFORMATEX) -> windows_core::Result<()>; fn ResetSeekPosition(&self) -> windows_core::Result<()>; @@ -6508,7 +6508,7 @@ pub trait ISpStreamFormatConverter_Impl: ISpStreamFormat_Impl { #[cfg(all(feature = "Win32_Media_Audio", feature = "Win32_System_Com"))] impl ISpStreamFormatConverter_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetBaseStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, fsetformattobasestreamformat: super::super::Foundation::BOOL, fwritetobasestream: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBaseStream(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, fsetformattobasestreamformat: windows_core::BOOL, fwritetobasestream: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpStreamFormatConverter_Impl::SetBaseStream(this, core::mem::transmute_copy(&pstream), core::mem::transmute_copy(&fsetformattobasestreamformat), core::mem::transmute_copy(&fwritetobasestream)).into() @@ -6984,7 +6984,7 @@ impl ISpThreadControl { pub struct ISpThreadControl_Vtbl { pub base__: ISpNotifySink_Vtbl, pub StartThread: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::HWND) -> windows_core::HRESULT, - pub WaitForThreadDone: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut windows_core::HRESULT, u32) -> windows_core::HRESULT, + pub WaitForThreadDone: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut windows_core::HRESULT, u32) -> windows_core::HRESULT, pub TerminateThread: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub ThreadHandle: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::HANDLE, pub ThreadId: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, @@ -6995,7 +6995,7 @@ pub struct ISpThreadControl_Vtbl { } pub trait ISpThreadControl_Impl: ISpNotifySink_Impl { fn StartThread(&self, dwflags: u32) -> windows_core::Result; - fn WaitForThreadDone(&self, fforcestop: super::super::Foundation::BOOL, phrthreadresult: *mut windows_core::HRESULT, mstimeout: u32) -> windows_core::Result<()>; + fn WaitForThreadDone(&self, fforcestop: windows_core::BOOL, phrthreadresult: *mut windows_core::HRESULT, mstimeout: u32) -> windows_core::Result<()>; fn TerminateThread(&self) -> windows_core::Result<()>; fn ThreadHandle(&self) -> super::super::Foundation::HANDLE; fn ThreadId(&self) -> u32; @@ -7018,7 +7018,7 @@ impl ISpThreadControl_Vtbl { } } } - unsafe extern "system" fn WaitForThreadDone(this: *mut core::ffi::c_void, fforcestop: super::super::Foundation::BOOL, phrthreadresult: *mut windows_core::HRESULT, mstimeout: u32) -> windows_core::HRESULT { + unsafe extern "system" fn WaitForThreadDone(this: *mut core::ffi::c_void, fforcestop: windows_core::BOOL, phrthreadresult: *mut windows_core::HRESULT, mstimeout: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpThreadControl_Impl::WaitForThreadDone(this, core::mem::transmute_copy(&fforcestop), core::mem::transmute_copy(&phrthreadresult), core::mem::transmute_copy(&mstimeout)).into() @@ -7147,7 +7147,7 @@ impl ISpThreadTask { windows_core::imp::define_interface!(ISpTokenUI, ISpTokenUI_Vtbl, 0xf8e690f0_39cb_4843_b8d7_c84696e1119d); windows_core::imp::interface_hierarchy!(ISpTokenUI, windows_core::IUnknown); impl ISpTokenUI { - pub unsafe fn IsUISupported(&self, psztypeofui: P0, pvextradata: *const core::ffi::c_void, cbextradata: u32, punkobject: P3) -> windows_core::Result + pub unsafe fn IsUISupported(&self, psztypeofui: P0, pvextradata: *const core::ffi::c_void, cbextradata: u32, punkobject: P3) -> windows_core::Result where P0: windows_core::Param, P3: windows_core::Param, @@ -7170,16 +7170,16 @@ impl ISpTokenUI { #[repr(C)] pub struct ISpTokenUI_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsUISupported: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const core::ffi::c_void, u32, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsUISupported: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const core::ffi::c_void, u32, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub DisplayUI: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, windows_core::PCWSTR, windows_core::PCWSTR, *const core::ffi::c_void, u32, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ISpTokenUI_Impl: windows_core::IUnknownImpl { - fn IsUISupported(&self, psztypeofui: &windows_core::PCWSTR, pvextradata: *const core::ffi::c_void, cbextradata: u32, punkobject: windows_core::Ref) -> windows_core::Result; + fn IsUISupported(&self, psztypeofui: &windows_core::PCWSTR, pvextradata: *const core::ffi::c_void, cbextradata: u32, punkobject: windows_core::Ref) -> windows_core::Result; fn DisplayUI(&self, hwndparent: super::super::Foundation::HWND, psztitle: &windows_core::PCWSTR, psztypeofui: &windows_core::PCWSTR, pvextradata: *const core::ffi::c_void, cbextradata: u32, ptoken: windows_core::Ref, punkobject: windows_core::Ref) -> windows_core::Result<()>; } impl ISpTokenUI_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, psztypeofui: windows_core::PCWSTR, pvextradata: *const core::ffi::c_void, cbextradata: u32, punkobject: *mut core::ffi::c_void, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, psztypeofui: windows_core::PCWSTR, pvextradata: *const core::ffi::c_void, cbextradata: u32, punkobject: *mut core::ffi::c_void, pfsupported: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISpTokenUI_Impl::IsUISupported(this, core::mem::transmute(&psztypeofui), core::mem::transmute_copy(&pvextradata), core::mem::transmute_copy(&cbextradata), core::mem::transmute_copy(&punkobject)) { @@ -7369,7 +7369,7 @@ impl ISpVoice { pub unsafe fn SpeakCompleteEvent(&self) -> super::super::Foundation::HANDLE { unsafe { (windows_core::Interface::vtable(self).SpeakCompleteEvent)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn IsUISupported(&self, psztypeofui: P0, pvextradata: *mut core::ffi::c_void, cbextradata: u32, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn IsUISupported(&self, psztypeofui: P0, pvextradata: *mut core::ffi::c_void, cbextradata: u32, pfsupported: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -7386,7 +7386,7 @@ impl ISpVoice { #[repr(C)] pub struct ISpVoice_Vtbl { pub base__: ISpEventSource_Vtbl, - pub SetOutput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetOutput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetOutputObjectToken: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetOutputStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -7415,12 +7415,12 @@ pub struct ISpVoice_Vtbl { pub SetSyncSpeakTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetSyncSpeakTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SpeakCompleteEvent: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::HANDLE, - pub IsUISupported: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsUISupported: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub DisplayUI: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, windows_core::PCWSTR, windows_core::PCWSTR, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait ISpVoice_Impl: ISpEventSource_Impl { - fn SetOutput(&self, punkoutput: windows_core::Ref, fallowformatchanges: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetOutput(&self, punkoutput: windows_core::Ref, fallowformatchanges: windows_core::BOOL) -> windows_core::Result<()>; fn GetOutputObjectToken(&self) -> windows_core::Result; fn GetOutputStream(&self) -> windows_core::Result; fn Pause(&self) -> windows_core::Result<()>; @@ -7443,13 +7443,13 @@ pub trait ISpVoice_Impl: ISpEventSource_Impl { fn SetSyncSpeakTimeout(&self, mstimeout: u32) -> windows_core::Result<()>; fn GetSyncSpeakTimeout(&self, pmstimeout: *mut u32) -> windows_core::Result<()>; fn SpeakCompleteEvent(&self) -> super::super::Foundation::HANDLE; - fn IsUISupported(&self, psztypeofui: &windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsUISupported(&self, psztypeofui: &windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, pfsupported: *mut windows_core::BOOL) -> windows_core::Result<()>; fn DisplayUI(&self, hwndparent: super::super::Foundation::HWND, psztitle: &windows_core::PCWSTR, psztypeofui: &windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl ISpVoice_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetOutput(this: *mut core::ffi::c_void, punkoutput: *mut core::ffi::c_void, fallowformatchanges: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetOutput(this: *mut core::ffi::c_void, punkoutput: *mut core::ffi::c_void, fallowformatchanges: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::SetOutput(this, core::mem::transmute_copy(&punkoutput), core::mem::transmute_copy(&fallowformatchanges)).into() @@ -7605,7 +7605,7 @@ impl ISpVoice_Vtbl { ISpVoice_Impl::SpeakCompleteEvent(this) } } - unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, psztypeofui: windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsUISupported(this: *mut core::ffi::c_void, psztypeofui: windows_core::PCWSTR, pvextradata: *mut core::ffi::c_void, cbextradata: u32, pfsupported: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISpVoice_Impl::IsUISupported(this, core::mem::transmute(&psztypeofui), core::mem::transmute_copy(&pvextradata), core::mem::transmute_copy(&cbextradata), core::mem::transmute_copy(&pfsupported)).into() @@ -17200,7 +17200,7 @@ pub struct SPPARSEINFO { pub SREngineID: windows_core::GUID, pub ulSREnginePrivateDataSize: u32, pub pSREnginePrivateData: *const u8, - pub fHypothesis: super::super::Foundation::BOOL, + pub fHypothesis: windows_core::BOOL, } impl Default for SPPARSEINFO { fn default() -> Self { @@ -17549,8 +17549,8 @@ impl Default for SPRECOGNIZERSTATUS { pub struct SPRECORESULTINFO { pub cbSize: u32, pub eResultType: SPRESULTTYPE, - pub fHypothesis: super::super::Foundation::BOOL, - pub fProprietaryAutoPause: super::super::Foundation::BOOL, + pub fHypothesis: windows_core::BOOL, + pub fProprietaryAutoPause: windows_core::BOOL, pub ullStreamPosStart: u64, pub ullStreamPosEnd: u64, pub hGrammar: SPGRAMMARHANDLE, 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 7458e37448..d5af61c067 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/mod.rs @@ -91,11 +91,11 @@ pub unsafe fn WMCreateWriterPushSink() -> windows_core::Result(pwszfilename: P0, pfisprotected: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> +pub unsafe fn WMIsContentProtected(pwszfilename: P0, pfisprotected: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("wmvcore.dll" "system" fn WMIsContentProtected(pwszfilename : windows_core::PCWSTR, pfisprotected : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("wmvcore.dll" "system" fn WMIsContentProtected(pwszfilename : windows_core::PCWSTR, pfisprotected : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { WMIsContentProtected(pwszfilename.param().abi(), pfisprotected as _).ok() } } pub const AM_CONFIGASFWRITER_PARAM_AUTOINDEX: _AM_ASFWRITERCONFIG_PARAM = _AM_ASFWRITERCONFIG_PARAM(1i32); @@ -1646,20 +1646,20 @@ impl IWMDRMReader2 { #[repr(C)] pub struct IWMDRMReader2_Vtbl { pub base__: IWMDRMReader_Vtbl, - pub SetEvaluateOutputLevelLicenses: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetEvaluateOutputLevelLicenses: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetPlayOutputLevels: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DRM_PLAY_OPL, *mut u32, *mut u32) -> windows_core::HRESULT, pub GetCopyOutputLevels: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DRM_COPY_OPL, *mut u32, *mut u32) -> windows_core::HRESULT, pub TryNextLicense: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IWMDRMReader2_Impl: IWMDRMReader_Impl { - fn SetEvaluateOutputLevelLicenses(&self, fevaluate: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetEvaluateOutputLevelLicenses(&self, fevaluate: windows_core::BOOL) -> windows_core::Result<()>; fn GetPlayOutputLevels(&self, pplayopl: *mut DRM_PLAY_OPL, pcblength: *mut u32, pdwminappcompliancelevel: *mut u32) -> windows_core::Result<()>; fn GetCopyOutputLevels(&self, pcopyopl: *mut DRM_COPY_OPL, pcblength: *mut u32, pdwminappcompliancelevel: *mut u32) -> windows_core::Result<()>; fn TryNextLicense(&self) -> windows_core::Result<()>; } impl IWMDRMReader2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetEvaluateOutputLevelLicenses(this: *mut core::ffi::c_void, fevaluate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEvaluateOutputLevelLicenses(this: *mut core::ffi::c_void, fevaluate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMReader2_Impl::SetEvaluateOutputLevelLicenses(this, core::mem::transmute_copy(&fevaluate)).into() @@ -1874,26 +1874,26 @@ impl IWMDRMTranscryptor2 { #[repr(C)] pub struct IWMDRMTranscryptor2_Vtbl { pub base__: IWMDRMTranscryptor_Vtbl, - pub SeekEx: unsafe extern "system" fn(*mut core::ffi::c_void, u64, u64, f32, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub ZeroAdjustTimestamps: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SeekEx: unsafe extern "system" fn(*mut core::ffi::c_void, u64, u64, f32, windows_core::BOOL) -> windows_core::HRESULT, + pub ZeroAdjustTimestamps: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetSeekStartTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub GetDuration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, } pub trait IWMDRMTranscryptor2_Impl: IWMDRMTranscryptor_Impl { - fn SeekEx(&self, cnsstarttime: u64, cnsduration: u64, flrate: f32, fincludefileheader: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn ZeroAdjustTimestamps(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SeekEx(&self, cnsstarttime: u64, cnsduration: u64, flrate: f32, fincludefileheader: windows_core::BOOL) -> windows_core::Result<()>; + fn ZeroAdjustTimestamps(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; fn GetSeekStartTime(&self) -> windows_core::Result; fn GetDuration(&self) -> windows_core::Result; } impl IWMDRMTranscryptor2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SeekEx(this: *mut core::ffi::c_void, cnsstarttime: u64, cnsduration: u64, flrate: f32, fincludefileheader: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SeekEx(this: *mut core::ffi::c_void, cnsstarttime: u64, cnsduration: u64, flrate: f32, fincludefileheader: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMTranscryptor2_Impl::SeekEx(this, core::mem::transmute_copy(&cnsstarttime), core::mem::transmute_copy(&cnsduration), core::mem::transmute_copy(&flrate), core::mem::transmute_copy(&fincludefileheader)).into() } } - unsafe extern "system" fn ZeroAdjustTimestamps(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ZeroAdjustTimestamps(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMTranscryptor2_Impl::ZeroAdjustTimestamps(this, core::mem::transmute_copy(&fenable)).into() @@ -2024,14 +2024,14 @@ impl IWMDRMWriter2 { #[repr(C)] pub struct IWMDRMWriter2_Vtbl { pub base__: IWMDRMWriter_Vtbl, - pub SetWMDRMNetEncryption: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *const u8, u32) -> windows_core::HRESULT, + pub SetWMDRMNetEncryption: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *const u8, u32) -> windows_core::HRESULT, } pub trait IWMDRMWriter2_Impl: IWMDRMWriter_Impl { - fn SetWMDRMNetEncryption(&self, fsamplesencrypted: super::super::Foundation::BOOL, pbkeyid: *const u8, cbkeyid: u32) -> windows_core::Result<()>; + fn SetWMDRMNetEncryption(&self, fsamplesencrypted: windows_core::BOOL, pbkeyid: *const u8, cbkeyid: u32) -> windows_core::Result<()>; } impl IWMDRMWriter2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetWMDRMNetEncryption(this: *mut core::ffi::c_void, fsamplesencrypted: super::super::Foundation::BOOL, pbkeyid: *const u8, cbkeyid: u32) -> windows_core::HRESULT { + unsafe extern "system" fn SetWMDRMNetEncryption(this: *mut core::ffi::c_void, fsamplesencrypted: windows_core::BOOL, pbkeyid: *const u8, cbkeyid: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMDRMWriter2_Impl::SetWMDRMNetEncryption(this, core::mem::transmute_copy(&fsamplesencrypted), core::mem::transmute_copy(&pbkeyid), core::mem::transmute_copy(&cbkeyid)).into() @@ -4952,7 +4952,7 @@ impl IWMReaderAdvanced { pub unsafe fn SetUserProvidedClock(&self, fuserclock: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetUserProvidedClock)(windows_core::Interface::as_raw(self), fuserclock.into()).ok() } } - pub unsafe fn GetUserProvidedClock(&self) -> windows_core::Result { + pub unsafe fn GetUserProvidedClock(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetUserProvidedClock)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4964,7 +4964,7 @@ impl IWMReaderAdvanced { pub unsafe fn SetManualStreamSelection(&self, fselection: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetManualStreamSelection)(windows_core::Interface::as_raw(self), fselection.into()).ok() } } - pub unsafe fn GetManualStreamSelection(&self) -> windows_core::Result { + pub unsafe fn GetManualStreamSelection(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetManualStreamSelection)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4982,7 +4982,7 @@ impl IWMReaderAdvanced { pub unsafe fn SetReceiveSelectionCallbacks(&self, fgetcallbacks: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetReceiveSelectionCallbacks)(windows_core::Interface::as_raw(self), fgetcallbacks.into()).ok() } } - pub unsafe fn GetReceiveSelectionCallbacks(&self) -> windows_core::Result { + pub unsafe fn GetReceiveSelectionCallbacks(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetReceiveSelectionCallbacks)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4991,7 +4991,7 @@ impl IWMReaderAdvanced { pub unsafe fn SetReceiveStreamSamples(&self, wstreamnum: u16, freceivestreamsamples: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetReceiveStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, freceivestreamsamples.into()).ok() } } - pub unsafe fn GetReceiveStreamSamples(&self, wstreamnum: u16) -> windows_core::Result { + pub unsafe fn GetReceiveStreamSamples(&self, wstreamnum: u16) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetReceiveStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, &mut result__).map(|| result__) @@ -5000,7 +5000,7 @@ impl IWMReaderAdvanced { pub unsafe fn SetAllocateForOutput(&self, dwoutputnum: u32, fallocate: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, fallocate.into()).ok() } } - pub unsafe fn GetAllocateForOutput(&self, dwoutputnum: u32) -> windows_core::Result { + pub unsafe fn GetAllocateForOutput(&self, dwoutputnum: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAllocateForOutput)(windows_core::Interface::as_raw(self), dwoutputnum, &mut result__).map(|| result__) @@ -5009,7 +5009,7 @@ impl IWMReaderAdvanced { pub unsafe fn SetAllocateForStream(&self, wstreamnum: u16, fallocate: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetAllocateForStream)(windows_core::Interface::as_raw(self), wstreamnum, fallocate.into()).ok() } } - pub unsafe fn GetAllocateForStream(&self, dwsreamnum: u16) -> windows_core::Result { + pub unsafe fn GetAllocateForStream(&self, dwsreamnum: u16) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAllocateForStream)(windows_core::Interface::as_raw(self), dwsreamnum, &mut result__).map(|| result__) @@ -5040,21 +5040,21 @@ impl IWMReaderAdvanced { #[repr(C)] pub struct IWMReaderAdvanced_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetUserProvidedClock: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetUserProvidedClock: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetUserProvidedClock: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetUserProvidedClock: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub DeliverTime: unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, - pub SetManualStreamSelection: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetManualStreamSelection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetManualStreamSelection: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetManualStreamSelection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetStreamsSelected: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *const u16, *const WMT_STREAM_SELECTION) -> windows_core::HRESULT, pub GetStreamSelected: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut WMT_STREAM_SELECTION) -> windows_core::HRESULT, - pub SetReceiveSelectionCallbacks: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetReceiveSelectionCallbacks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetReceiveStreamSamples: unsafe extern "system" fn(*mut core::ffi::c_void, u16, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetReceiveStreamSamples: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetAllocateForOutput: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetAllocateForOutput: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetAllocateForStream: unsafe extern "system" fn(*mut core::ffi::c_void, u16, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetAllocateForStream: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetReceiveSelectionCallbacks: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetReceiveSelectionCallbacks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetReceiveStreamSamples: unsafe extern "system" fn(*mut core::ffi::c_void, u16, windows_core::BOOL) -> windows_core::HRESULT, + pub GetReceiveStreamSamples: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetAllocateForOutput: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, + pub GetAllocateForOutput: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetAllocateForStream: unsafe extern "system" fn(*mut core::ffi::c_void, u16, windows_core::BOOL) -> windows_core::HRESULT, + pub GetAllocateForStream: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetStatistics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WM_READER_STATISTICS) -> windows_core::HRESULT, pub SetClientInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *const WM_READER_CLIENTINFO) -> windows_core::HRESULT, pub GetMaxOutputSampleSize: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, @@ -5062,21 +5062,21 @@ pub struct IWMReaderAdvanced_Vtbl { pub NotifyLateDelivery: unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, } pub trait IWMReaderAdvanced_Impl: windows_core::IUnknownImpl { - fn SetUserProvidedClock(&self, fuserclock: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetUserProvidedClock(&self) -> windows_core::Result; + fn SetUserProvidedClock(&self, fuserclock: windows_core::BOOL) -> windows_core::Result<()>; + fn GetUserProvidedClock(&self) -> windows_core::Result; fn DeliverTime(&self, cnstime: u64) -> windows_core::Result<()>; - fn SetManualStreamSelection(&self, fselection: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetManualStreamSelection(&self) -> windows_core::Result; + fn SetManualStreamSelection(&self, fselection: windows_core::BOOL) -> windows_core::Result<()>; + fn GetManualStreamSelection(&self) -> windows_core::Result; fn SetStreamsSelected(&self, cstreamcount: u16, pwstreamnumbers: *const u16, pselections: *const WMT_STREAM_SELECTION) -> windows_core::Result<()>; fn GetStreamSelected(&self, wstreamnum: u16) -> windows_core::Result; - fn SetReceiveSelectionCallbacks(&self, fgetcallbacks: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetReceiveSelectionCallbacks(&self) -> windows_core::Result; - fn SetReceiveStreamSamples(&self, wstreamnum: u16, freceivestreamsamples: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetReceiveStreamSamples(&self, wstreamnum: u16) -> windows_core::Result; - fn SetAllocateForOutput(&self, dwoutputnum: u32, fallocate: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetAllocateForOutput(&self, dwoutputnum: u32) -> windows_core::Result; - fn SetAllocateForStream(&self, wstreamnum: u16, fallocate: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetAllocateForStream(&self, dwsreamnum: u16) -> windows_core::Result; + fn SetReceiveSelectionCallbacks(&self, fgetcallbacks: windows_core::BOOL) -> windows_core::Result<()>; + fn GetReceiveSelectionCallbacks(&self) -> windows_core::Result; + fn SetReceiveStreamSamples(&self, wstreamnum: u16, freceivestreamsamples: windows_core::BOOL) -> windows_core::Result<()>; + fn GetReceiveStreamSamples(&self, wstreamnum: u16) -> windows_core::Result; + fn SetAllocateForOutput(&self, dwoutputnum: u32, fallocate: windows_core::BOOL) -> windows_core::Result<()>; + fn GetAllocateForOutput(&self, dwoutputnum: u32) -> windows_core::Result; + fn SetAllocateForStream(&self, wstreamnum: u16, fallocate: windows_core::BOOL) -> windows_core::Result<()>; + fn GetAllocateForStream(&self, dwsreamnum: u16) -> windows_core::Result; fn GetStatistics(&self, pstatistics: *mut WM_READER_STATISTICS) -> windows_core::Result<()>; fn SetClientInfo(&self, pclientinfo: *const WM_READER_CLIENTINFO) -> windows_core::Result<()>; fn GetMaxOutputSampleSize(&self, dwoutput: u32) -> windows_core::Result; @@ -5085,13 +5085,13 @@ pub trait IWMReaderAdvanced_Impl: windows_core::IUnknownImpl { } impl IWMReaderAdvanced_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetUserProvidedClock(this: *mut core::ffi::c_void, fuserclock: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetUserProvidedClock(this: *mut core::ffi::c_void, fuserclock: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced_Impl::SetUserProvidedClock(this, core::mem::transmute_copy(&fuserclock)).into() } } - unsafe extern "system" fn GetUserProvidedClock(this: *mut core::ffi::c_void, pfuserclock: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetUserProvidedClock(this: *mut core::ffi::c_void, pfuserclock: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced_Impl::GetUserProvidedClock(this) { @@ -5109,13 +5109,13 @@ impl IWMReaderAdvanced_Vtbl { IWMReaderAdvanced_Impl::DeliverTime(this, core::mem::transmute_copy(&cnstime)).into() } } - unsafe extern "system" fn SetManualStreamSelection(this: *mut core::ffi::c_void, fselection: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetManualStreamSelection(this: *mut core::ffi::c_void, fselection: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced_Impl::SetManualStreamSelection(this, core::mem::transmute_copy(&fselection)).into() } } - unsafe extern "system" fn GetManualStreamSelection(this: *mut core::ffi::c_void, pfselection: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetManualStreamSelection(this: *mut core::ffi::c_void, pfselection: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced_Impl::GetManualStreamSelection(this) { @@ -5145,13 +5145,13 @@ impl IWMReaderAdvanced_Vtbl { } } } - unsafe extern "system" fn SetReceiveSelectionCallbacks(this: *mut core::ffi::c_void, fgetcallbacks: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetReceiveSelectionCallbacks(this: *mut core::ffi::c_void, fgetcallbacks: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced_Impl::SetReceiveSelectionCallbacks(this, core::mem::transmute_copy(&fgetcallbacks)).into() } } - unsafe extern "system" fn GetReceiveSelectionCallbacks(this: *mut core::ffi::c_void, pfgetcallbacks: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetReceiveSelectionCallbacks(this: *mut core::ffi::c_void, pfgetcallbacks: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced_Impl::GetReceiveSelectionCallbacks(this) { @@ -5163,13 +5163,13 @@ impl IWMReaderAdvanced_Vtbl { } } } - unsafe extern "system" fn SetReceiveStreamSamples(this: *mut core::ffi::c_void, wstreamnum: u16, freceivestreamsamples: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetReceiveStreamSamples(this: *mut core::ffi::c_void, wstreamnum: u16, freceivestreamsamples: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced_Impl::SetReceiveStreamSamples(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&freceivestreamsamples)).into() } } - unsafe extern "system" fn GetReceiveStreamSamples(this: *mut core::ffi::c_void, wstreamnum: u16, pfreceivestreamsamples: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetReceiveStreamSamples(this: *mut core::ffi::c_void, wstreamnum: u16, pfreceivestreamsamples: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced_Impl::GetReceiveStreamSamples(this, core::mem::transmute_copy(&wstreamnum)) { @@ -5181,13 +5181,13 @@ impl IWMReaderAdvanced_Vtbl { } } } - unsafe extern "system" fn SetAllocateForOutput(this: *mut core::ffi::c_void, dwoutputnum: u32, fallocate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAllocateForOutput(this: *mut core::ffi::c_void, dwoutputnum: u32, fallocate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced_Impl::SetAllocateForOutput(this, core::mem::transmute_copy(&dwoutputnum), core::mem::transmute_copy(&fallocate)).into() } } - unsafe extern "system" fn GetAllocateForOutput(this: *mut core::ffi::c_void, dwoutputnum: u32, pfallocate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetAllocateForOutput(this: *mut core::ffi::c_void, dwoutputnum: u32, pfallocate: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced_Impl::GetAllocateForOutput(this, core::mem::transmute_copy(&dwoutputnum)) { @@ -5199,13 +5199,13 @@ impl IWMReaderAdvanced_Vtbl { } } } - unsafe extern "system" fn SetAllocateForStream(this: *mut core::ffi::c_void, wstreamnum: u16, fallocate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAllocateForStream(this: *mut core::ffi::c_void, wstreamnum: u16, fallocate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced_Impl::SetAllocateForStream(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&fallocate)).into() } } - unsafe extern "system" fn GetAllocateForStream(this: *mut core::ffi::c_void, dwsreamnum: u16, pfallocate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetAllocateForStream(this: *mut core::ffi::c_void, dwsreamnum: u16, pfallocate: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced_Impl::GetAllocateForStream(this, core::mem::transmute_copy(&dwsreamnum)) { @@ -5348,7 +5348,7 @@ impl IWMReaderAdvanced2 { pub unsafe fn SetLogClientID(&self, flogclientid: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetLogClientID)(windows_core::Interface::as_raw(self), flogclientid.into()).ok() } } - pub unsafe fn GetLogClientID(&self) -> windows_core::Result { + pub unsafe fn GetLogClientID(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetLogClientID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -5380,8 +5380,8 @@ pub struct IWMReaderAdvanced2_Vtbl { pub GetOutputSetting: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, *mut WMT_ATTR_DATATYPE, *mut u8, *mut u16) -> windows_core::HRESULT, pub SetOutputSetting: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, WMT_ATTR_DATATYPE, *const u8, u16) -> windows_core::HRESULT, pub Preroll: unsafe extern "system" fn(*mut core::ffi::c_void, u64, u64, f32) -> windows_core::HRESULT, - pub SetLogClientID: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetLogClientID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetLogClientID: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetLogClientID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub StopBuffering: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub OpenStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *const core::ffi::c_void) -> windows_core::HRESULT, @@ -5401,8 +5401,8 @@ pub trait IWMReaderAdvanced2_Impl: IWMReaderAdvanced_Impl { fn GetOutputSetting(&self, dwoutputnum: u32, pszname: &windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()>; fn SetOutputSetting(&self, dwoutputnum: u32, pszname: &windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> windows_core::Result<()>; fn Preroll(&self, cnsstart: u64, cnsduration: u64, frate: f32) -> windows_core::Result<()>; - fn SetLogClientID(&self, flogclientid: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetLogClientID(&self) -> windows_core::Result; + fn SetLogClientID(&self, flogclientid: windows_core::BOOL) -> windows_core::Result<()>; + fn GetLogClientID(&self) -> windows_core::Result; fn StopBuffering(&self) -> windows_core::Result<()>; fn OpenStream(&self, pstream: windows_core::Ref, pcallback: windows_core::Ref, pvcontext: *const core::ffi::c_void) -> windows_core::Result<()>; } @@ -5487,13 +5487,13 @@ impl IWMReaderAdvanced2_Vtbl { IWMReaderAdvanced2_Impl::Preroll(this, core::mem::transmute_copy(&cnsstart), core::mem::transmute_copy(&cnsduration), core::mem::transmute_copy(&frate)).into() } } - unsafe extern "system" fn SetLogClientID(this: *mut core::ffi::c_void, flogclientid: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetLogClientID(this: *mut core::ffi::c_void, flogclientid: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderAdvanced2_Impl::SetLogClientID(this, core::mem::transmute_copy(&flogclientid)).into() } } - unsafe extern "system" fn GetLogClientID(this: *mut core::ffi::c_void, pflogclientid: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetLogClientID(this: *mut core::ffi::c_void, pflogclientid: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced2_Impl::GetLogClientID(this) { @@ -5620,7 +5620,7 @@ impl IWMReaderAdvanced4 { (windows_core::Interface::vtable(self).GetMaxSpeedFactor)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsUsingFastCache(&self) -> windows_core::Result { + pub unsafe fn IsUsingFastCache(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsUsingFastCache)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -5637,7 +5637,7 @@ impl IWMReaderAdvanced4 { pub unsafe fn SendLogParams(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SendLogParams)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn CanSaveFileAs(&self) -> windows_core::Result { + pub unsafe fn CanSaveFileAs(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanSaveFileAs)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -5656,10 +5656,10 @@ pub struct IWMReaderAdvanced4_Vtbl { pub GetLanguageCount: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u16) -> windows_core::HRESULT, pub GetLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u16, windows_core::PWSTR, *mut u16) -> windows_core::HRESULT, pub GetMaxSpeedFactor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, - pub IsUsingFastCache: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsUsingFastCache: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub AddLogParam: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, pub SendLogParams: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub CanSaveFileAs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CanSaveFileAs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CancelSaveFileAs: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetURL: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, *mut u32) -> windows_core::HRESULT, } @@ -5668,10 +5668,10 @@ pub trait IWMReaderAdvanced4_Impl: IWMReaderAdvanced3_Impl { fn GetLanguageCount(&self, dwoutputnum: u32) -> windows_core::Result; fn GetLanguage(&self, dwoutputnum: u32, wlanguage: u16, pwszlanguagestring: windows_core::PWSTR, pcchlanguagestringlength: *mut u16) -> windows_core::Result<()>; fn GetMaxSpeedFactor(&self) -> windows_core::Result; - fn IsUsingFastCache(&self) -> windows_core::Result; + fn IsUsingFastCache(&self) -> windows_core::Result; fn AddLogParam(&self, wsznamespace: &windows_core::PCWSTR, wszname: &windows_core::PCWSTR, wszvalue: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SendLogParams(&self) -> windows_core::Result<()>; - fn CanSaveFileAs(&self) -> windows_core::Result; + fn CanSaveFileAs(&self) -> windows_core::Result; fn CancelSaveFileAs(&self) -> windows_core::Result<()>; fn GetURL(&self, pwszurl: windows_core::PWSTR, pcchurl: *mut u32) -> windows_core::Result<()>; } @@ -5708,7 +5708,7 @@ impl IWMReaderAdvanced4_Vtbl { } } } - unsafe extern "system" fn IsUsingFastCache(this: *mut core::ffi::c_void, pfusingfastcache: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsUsingFastCache(this: *mut core::ffi::c_void, pfusingfastcache: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced4_Impl::IsUsingFastCache(this) { @@ -5732,7 +5732,7 @@ impl IWMReaderAdvanced4_Vtbl { IWMReaderAdvanced4_Impl::SendLogParams(this).into() } } - unsafe extern "system" fn CanSaveFileAs(this: *mut core::ffi::c_void, pfcansave: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanSaveFileAs(this: *mut core::ffi::c_void, pfcansave: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderAdvanced4_Impl::CanSaveFileAs(this) { @@ -6110,7 +6110,7 @@ impl IWMReaderNetworkConfig { { unsafe { (windows_core::Interface::vtable(self).SetProxyExceptionList)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), pwszexceptionlist.param().abi()).ok() } } - pub unsafe fn GetProxyBypassForLocal(&self, pwszprotocol: P0) -> windows_core::Result + pub unsafe fn GetProxyBypassForLocal(&self, pwszprotocol: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -6125,7 +6125,7 @@ impl IWMReaderNetworkConfig { { unsafe { (windows_core::Interface::vtable(self).SetProxyBypassForLocal)(windows_core::Interface::as_raw(self), pwszprotocol.param().abi(), fbypassforlocal.into()).ok() } } - pub unsafe fn GetForceRerunAutoProxyDetection(&self) -> windows_core::Result { + pub unsafe fn GetForceRerunAutoProxyDetection(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetForceRerunAutoProxyDetection)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6134,7 +6134,7 @@ impl IWMReaderNetworkConfig { pub unsafe fn SetForceRerunAutoProxyDetection(&self, fforcererundetection: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetForceRerunAutoProxyDetection)(windows_core::Interface::as_raw(self), fforcererundetection.into()).ok() } } - pub unsafe fn GetEnableMulticast(&self) -> windows_core::Result { + pub unsafe fn GetEnableMulticast(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEnableMulticast)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6143,7 +6143,7 @@ impl IWMReaderNetworkConfig { pub unsafe fn SetEnableMulticast(&self, fenablemulticast: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetEnableMulticast)(windows_core::Interface::as_raw(self), fenablemulticast.into()).ok() } } - pub unsafe fn GetEnableHTTP(&self) -> windows_core::Result { + pub unsafe fn GetEnableHTTP(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEnableHTTP)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6152,7 +6152,7 @@ impl IWMReaderNetworkConfig { pub unsafe fn SetEnableHTTP(&self, fenablehttp: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetEnableHTTP)(windows_core::Interface::as_raw(self), fenablehttp.into()).ok() } } - pub unsafe fn GetEnableUDP(&self) -> windows_core::Result { + pub unsafe fn GetEnableUDP(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEnableUDP)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6161,7 +6161,7 @@ impl IWMReaderNetworkConfig { pub unsafe fn SetEnableUDP(&self, fenableudp: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetEnableUDP)(windows_core::Interface::as_raw(self), fenableudp.into()).ok() } } - pub unsafe fn GetEnableTCP(&self) -> windows_core::Result { + pub unsafe fn GetEnableTCP(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEnableTCP)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6225,18 +6225,18 @@ pub struct IWMReaderNetworkConfig_Vtbl { pub SetProxyPort: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32) -> windows_core::HRESULT, pub GetProxyExceptionList: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PWSTR, *mut u32) -> windows_core::HRESULT, pub SetProxyExceptionList: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, - pub GetProxyBypassForLocal: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetProxyBypassForLocal: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetForceRerunAutoProxyDetection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetForceRerunAutoProxyDetection: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetEnableMulticast: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnableMulticast: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetEnableHTTP: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnableHTTP: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetEnableUDP: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnableUDP: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetEnableTCP: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnableTCP: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetProxyBypassForLocal: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetProxyBypassForLocal: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, + pub GetForceRerunAutoProxyDetection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetForceRerunAutoProxyDetection: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetEnableMulticast: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnableMulticast: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetEnableHTTP: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnableHTTP: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetEnableUDP: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnableUDP: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetEnableTCP: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnableTCP: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub ResetProtocolRollover: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetConnectionBandwidth: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetConnectionBandwidth: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -6260,18 +6260,18 @@ pub trait IWMReaderNetworkConfig_Impl: windows_core::IUnknownImpl { fn SetProxyPort(&self, pwszprotocol: &windows_core::PCWSTR, dwport: u32) -> windows_core::Result<()>; fn GetProxyExceptionList(&self, pwszprotocol: &windows_core::PCWSTR, pwszexceptionlist: windows_core::PWSTR, pcchexceptionlist: *mut u32) -> windows_core::Result<()>; fn SetProxyExceptionList(&self, pwszprotocol: &windows_core::PCWSTR, pwszexceptionlist: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn GetProxyBypassForLocal(&self, pwszprotocol: &windows_core::PCWSTR) -> windows_core::Result; - fn SetProxyBypassForLocal(&self, pwszprotocol: &windows_core::PCWSTR, fbypassforlocal: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetForceRerunAutoProxyDetection(&self) -> windows_core::Result; - fn SetForceRerunAutoProxyDetection(&self, fforcererundetection: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetEnableMulticast(&self) -> windows_core::Result; - fn SetEnableMulticast(&self, fenablemulticast: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetEnableHTTP(&self) -> windows_core::Result; - fn SetEnableHTTP(&self, fenablehttp: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetEnableUDP(&self) -> windows_core::Result; - fn SetEnableUDP(&self, fenableudp: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetEnableTCP(&self) -> windows_core::Result; - fn SetEnableTCP(&self, fenabletcp: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetProxyBypassForLocal(&self, pwszprotocol: &windows_core::PCWSTR) -> windows_core::Result; + fn SetProxyBypassForLocal(&self, pwszprotocol: &windows_core::PCWSTR, fbypassforlocal: windows_core::BOOL) -> windows_core::Result<()>; + fn GetForceRerunAutoProxyDetection(&self) -> windows_core::Result; + fn SetForceRerunAutoProxyDetection(&self, fforcererundetection: windows_core::BOOL) -> windows_core::Result<()>; + fn GetEnableMulticast(&self) -> windows_core::Result; + fn SetEnableMulticast(&self, fenablemulticast: windows_core::BOOL) -> windows_core::Result<()>; + fn GetEnableHTTP(&self) -> windows_core::Result; + fn SetEnableHTTP(&self, fenablehttp: windows_core::BOOL) -> windows_core::Result<()>; + fn GetEnableUDP(&self) -> windows_core::Result; + fn SetEnableUDP(&self, fenableudp: windows_core::BOOL) -> windows_core::Result<()>; + fn GetEnableTCP(&self) -> windows_core::Result; + fn SetEnableTCP(&self, fenabletcp: windows_core::BOOL) -> windows_core::Result<()>; fn ResetProtocolRollover(&self) -> windows_core::Result<()>; fn GetConnectionBandwidth(&self) -> windows_core::Result; fn SetConnectionBandwidth(&self, dwconnectionbandwidth: u32) -> windows_core::Result<()>; @@ -6374,7 +6374,7 @@ impl IWMReaderNetworkConfig_Vtbl { IWMReaderNetworkConfig_Impl::SetProxyExceptionList(this, core::mem::transmute(&pwszprotocol), core::mem::transmute(&pwszexceptionlist)).into() } } - unsafe extern "system" fn GetProxyBypassForLocal(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, pfbypassforlocal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetProxyBypassForLocal(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, pfbypassforlocal: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig_Impl::GetProxyBypassForLocal(this, core::mem::transmute(&pwszprotocol)) { @@ -6386,13 +6386,13 @@ impl IWMReaderNetworkConfig_Vtbl { } } } - unsafe extern "system" fn SetProxyBypassForLocal(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, fbypassforlocal: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetProxyBypassForLocal(this: *mut core::ffi::c_void, pwszprotocol: windows_core::PCWSTR, fbypassforlocal: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetProxyBypassForLocal(this, core::mem::transmute(&pwszprotocol), core::mem::transmute_copy(&fbypassforlocal)).into() } } - unsafe extern "system" fn GetForceRerunAutoProxyDetection(this: *mut core::ffi::c_void, pfforcererundetection: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetForceRerunAutoProxyDetection(this: *mut core::ffi::c_void, pfforcererundetection: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig_Impl::GetForceRerunAutoProxyDetection(this) { @@ -6404,13 +6404,13 @@ impl IWMReaderNetworkConfig_Vtbl { } } } - unsafe extern "system" fn SetForceRerunAutoProxyDetection(this: *mut core::ffi::c_void, fforcererundetection: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetForceRerunAutoProxyDetection(this: *mut core::ffi::c_void, fforcererundetection: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetForceRerunAutoProxyDetection(this, core::mem::transmute_copy(&fforcererundetection)).into() } } - unsafe extern "system" fn GetEnableMulticast(this: *mut core::ffi::c_void, pfenablemulticast: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetEnableMulticast(this: *mut core::ffi::c_void, pfenablemulticast: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig_Impl::GetEnableMulticast(this) { @@ -6422,13 +6422,13 @@ impl IWMReaderNetworkConfig_Vtbl { } } } - unsafe extern "system" fn SetEnableMulticast(this: *mut core::ffi::c_void, fenablemulticast: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnableMulticast(this: *mut core::ffi::c_void, fenablemulticast: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetEnableMulticast(this, core::mem::transmute_copy(&fenablemulticast)).into() } } - unsafe extern "system" fn GetEnableHTTP(this: *mut core::ffi::c_void, pfenablehttp: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetEnableHTTP(this: *mut core::ffi::c_void, pfenablehttp: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig_Impl::GetEnableHTTP(this) { @@ -6440,13 +6440,13 @@ impl IWMReaderNetworkConfig_Vtbl { } } } - unsafe extern "system" fn SetEnableHTTP(this: *mut core::ffi::c_void, fenablehttp: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnableHTTP(this: *mut core::ffi::c_void, fenablehttp: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetEnableHTTP(this, core::mem::transmute_copy(&fenablehttp)).into() } } - unsafe extern "system" fn GetEnableUDP(this: *mut core::ffi::c_void, pfenableudp: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetEnableUDP(this: *mut core::ffi::c_void, pfenableudp: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig_Impl::GetEnableUDP(this) { @@ -6458,13 +6458,13 @@ impl IWMReaderNetworkConfig_Vtbl { } } } - unsafe extern "system" fn SetEnableUDP(this: *mut core::ffi::c_void, fenableudp: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnableUDP(this: *mut core::ffi::c_void, fenableudp: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetEnableUDP(this, core::mem::transmute_copy(&fenableudp)).into() } } - unsafe extern "system" fn GetEnableTCP(this: *mut core::ffi::c_void, pfenabletcp: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetEnableTCP(this: *mut core::ffi::c_void, pfenabletcp: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig_Impl::GetEnableTCP(this) { @@ -6476,7 +6476,7 @@ impl IWMReaderNetworkConfig_Vtbl { } } } - unsafe extern "system" fn SetEnableTCP(this: *mut core::ffi::c_void, fenabletcp: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnableTCP(this: *mut core::ffi::c_void, fenabletcp: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig_Impl::SetEnableTCP(this, core::mem::transmute_copy(&fenabletcp)).into() @@ -6605,7 +6605,7 @@ impl core::ops::Deref for IWMReaderNetworkConfig2 { } windows_core::imp::interface_hierarchy!(IWMReaderNetworkConfig2, windows_core::IUnknown, IWMReaderNetworkConfig); impl IWMReaderNetworkConfig2 { - pub unsafe fn GetEnableContentCaching(&self) -> windows_core::Result { + pub unsafe fn GetEnableContentCaching(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEnableContentCaching)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6614,7 +6614,7 @@ impl IWMReaderNetworkConfig2 { pub unsafe fn SetEnableContentCaching(&self, fenablecontentcaching: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetEnableContentCaching)(windows_core::Interface::as_raw(self), fenablecontentcaching.into()).ok() } } - pub unsafe fn GetEnableFastCache(&self) -> windows_core::Result { + pub unsafe fn GetEnableFastCache(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEnableFastCache)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6641,7 +6641,7 @@ impl IWMReaderNetworkConfig2 { pub unsafe fn SetAutoReconnectLimit(&self, dwautoreconnectlimit: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetAutoReconnectLimit)(windows_core::Interface::as_raw(self), dwautoreconnectlimit).ok() } } - pub unsafe fn GetEnableResends(&self) -> windows_core::Result { + pub unsafe fn GetEnableResends(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEnableResends)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6650,7 +6650,7 @@ impl IWMReaderNetworkConfig2 { pub unsafe fn SetEnableResends(&self, fenableresends: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetEnableResends)(windows_core::Interface::as_raw(self), fenableresends.into()).ok() } } - pub unsafe fn GetEnableThinning(&self) -> windows_core::Result { + pub unsafe fn GetEnableThinning(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEnableThinning)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6669,38 +6669,38 @@ impl IWMReaderNetworkConfig2 { #[repr(C)] pub struct IWMReaderNetworkConfig2_Vtbl { pub base__: IWMReaderNetworkConfig_Vtbl, - pub GetEnableContentCaching: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnableContentCaching: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetEnableFastCache: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnableFastCache: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetEnableContentCaching: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnableContentCaching: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetEnableFastCache: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnableFastCache: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetAcceleratedStreamingDuration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub SetAcceleratedStreamingDuration: unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, pub GetAutoReconnectLimit: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetAutoReconnectLimit: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub GetEnableResends: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnableResends: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetEnableThinning: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnableThinning: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetEnableResends: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnableResends: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetEnableThinning: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnableThinning: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetMaxNetPacketSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } pub trait IWMReaderNetworkConfig2_Impl: IWMReaderNetworkConfig_Impl { - fn GetEnableContentCaching(&self) -> windows_core::Result; - fn SetEnableContentCaching(&self, fenablecontentcaching: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetEnableFastCache(&self) -> windows_core::Result; - fn SetEnableFastCache(&self, fenablefastcache: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetEnableContentCaching(&self) -> windows_core::Result; + fn SetEnableContentCaching(&self, fenablecontentcaching: windows_core::BOOL) -> windows_core::Result<()>; + fn GetEnableFastCache(&self) -> windows_core::Result; + fn SetEnableFastCache(&self, fenablefastcache: windows_core::BOOL) -> windows_core::Result<()>; fn GetAcceleratedStreamingDuration(&self) -> windows_core::Result; fn SetAcceleratedStreamingDuration(&self, cnsaccelduration: u64) -> windows_core::Result<()>; fn GetAutoReconnectLimit(&self) -> windows_core::Result; fn SetAutoReconnectLimit(&self, dwautoreconnectlimit: u32) -> windows_core::Result<()>; - fn GetEnableResends(&self) -> windows_core::Result; - fn SetEnableResends(&self, fenableresends: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetEnableThinning(&self) -> windows_core::Result; - fn SetEnableThinning(&self, fenablethinning: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetEnableResends(&self) -> windows_core::Result; + fn SetEnableResends(&self, fenableresends: windows_core::BOOL) -> windows_core::Result<()>; + fn GetEnableThinning(&self) -> windows_core::Result; + fn SetEnableThinning(&self, fenablethinning: windows_core::BOOL) -> windows_core::Result<()>; fn GetMaxNetPacketSize(&self) -> windows_core::Result; } impl IWMReaderNetworkConfig2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetEnableContentCaching(this: *mut core::ffi::c_void, pfenablecontentcaching: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetEnableContentCaching(this: *mut core::ffi::c_void, pfenablecontentcaching: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig2_Impl::GetEnableContentCaching(this) { @@ -6712,13 +6712,13 @@ impl IWMReaderNetworkConfig2_Vtbl { } } } - unsafe extern "system" fn SetEnableContentCaching(this: *mut core::ffi::c_void, fenablecontentcaching: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnableContentCaching(this: *mut core::ffi::c_void, fenablecontentcaching: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig2_Impl::SetEnableContentCaching(this, core::mem::transmute_copy(&fenablecontentcaching)).into() } } - unsafe extern "system" fn GetEnableFastCache(this: *mut core::ffi::c_void, pfenablefastcache: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetEnableFastCache(this: *mut core::ffi::c_void, pfenablefastcache: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig2_Impl::GetEnableFastCache(this) { @@ -6730,7 +6730,7 @@ impl IWMReaderNetworkConfig2_Vtbl { } } } - unsafe extern "system" fn SetEnableFastCache(this: *mut core::ffi::c_void, fenablefastcache: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnableFastCache(this: *mut core::ffi::c_void, fenablefastcache: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig2_Impl::SetEnableFastCache(this, core::mem::transmute_copy(&fenablefastcache)).into() @@ -6772,7 +6772,7 @@ impl IWMReaderNetworkConfig2_Vtbl { IWMReaderNetworkConfig2_Impl::SetAutoReconnectLimit(this, core::mem::transmute_copy(&dwautoreconnectlimit)).into() } } - unsafe extern "system" fn GetEnableResends(this: *mut core::ffi::c_void, pfenableresends: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetEnableResends(this: *mut core::ffi::c_void, pfenableresends: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig2_Impl::GetEnableResends(this) { @@ -6784,13 +6784,13 @@ impl IWMReaderNetworkConfig2_Vtbl { } } } - unsafe extern "system" fn SetEnableResends(this: *mut core::ffi::c_void, fenableresends: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnableResends(this: *mut core::ffi::c_void, fenableresends: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig2_Impl::SetEnableResends(this, core::mem::transmute_copy(&fenableresends)).into() } } - unsafe extern "system" fn GetEnableThinning(this: *mut core::ffi::c_void, pfenablethinning: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetEnableThinning(this: *mut core::ffi::c_void, pfenablethinning: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMReaderNetworkConfig2_Impl::GetEnableThinning(this) { @@ -6802,7 +6802,7 @@ impl IWMReaderNetworkConfig2_Vtbl { } } } - unsafe extern "system" fn SetEnableThinning(this: *mut core::ffi::c_void, fenablethinning: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnableThinning(this: *mut core::ffi::c_void, fenablethinning: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMReaderNetworkConfig2_Impl::SetEnableThinning(this, core::mem::transmute_copy(&fenablethinning)).into() @@ -7165,25 +7165,25 @@ impl IWMRegisteredDevice { pub unsafe fn Approve(&self, fapprove: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Approve)(windows_core::Interface::as_raw(self), fapprove.into()).ok() } } - pub unsafe fn IsValid(&self) -> windows_core::Result { + pub unsafe fn IsValid(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsValid)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsApproved(&self) -> windows_core::Result { + pub unsafe fn IsApproved(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsApproved)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsWmdrmCompliant(&self) -> windows_core::Result { + pub unsafe fn IsWmdrmCompliant(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsWmdrmCompliant)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsOpened(&self) -> windows_core::Result { + pub unsafe fn IsOpened(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsOpened)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7206,11 +7206,11 @@ pub struct IWMRegisteredDevice_Vtbl { pub GetAttributeByIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetAttributeByName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetAttributeByName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Approve: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsValid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsApproved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsWmdrmCompliant: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsOpened: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Approve: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub IsValid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsApproved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsWmdrmCompliant: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsOpened: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Open: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Close: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -7222,11 +7222,11 @@ pub trait IWMRegisteredDevice_Impl: windows_core::IUnknownImpl { fn GetAttributeByIndex(&self, dwindex: u32, pbstrname: *mut windows_core::BSTR, pbstrvalue: *mut windows_core::BSTR) -> windows_core::Result<()>; fn GetAttributeByName(&self, bstrname: &windows_core::BSTR) -> windows_core::Result; fn SetAttributeByName(&self, bstrname: &windows_core::BSTR, bstrvalue: &windows_core::BSTR) -> windows_core::Result<()>; - fn Approve(&self, fapprove: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn IsValid(&self) -> windows_core::Result; - fn IsApproved(&self) -> windows_core::Result; - fn IsWmdrmCompliant(&self) -> windows_core::Result; - fn IsOpened(&self) -> windows_core::Result; + fn Approve(&self, fapprove: windows_core::BOOL) -> windows_core::Result<()>; + fn IsValid(&self) -> windows_core::Result; + fn IsApproved(&self) -> windows_core::Result; + fn IsWmdrmCompliant(&self) -> windows_core::Result; + fn IsOpened(&self) -> windows_core::Result; fn Open(&self) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; } @@ -7304,13 +7304,13 @@ impl IWMRegisteredDevice_Vtbl { IWMRegisteredDevice_Impl::SetAttributeByName(this, core::mem::transmute(&bstrname), core::mem::transmute(&bstrvalue)).into() } } - unsafe extern "system" fn Approve(this: *mut core::ffi::c_void, fapprove: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Approve(this: *mut core::ffi::c_void, fapprove: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMRegisteredDevice_Impl::Approve(this, core::mem::transmute_copy(&fapprove)).into() } } - unsafe extern "system" fn IsValid(this: *mut core::ffi::c_void, pfvalid: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsValid(this: *mut core::ffi::c_void, pfvalid: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMRegisteredDevice_Impl::IsValid(this) { @@ -7322,7 +7322,7 @@ impl IWMRegisteredDevice_Vtbl { } } } - unsafe extern "system" fn IsApproved(this: *mut core::ffi::c_void, pfapproved: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsApproved(this: *mut core::ffi::c_void, pfapproved: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMRegisteredDevice_Impl::IsApproved(this) { @@ -7334,7 +7334,7 @@ impl IWMRegisteredDevice_Vtbl { } } } - unsafe extern "system" fn IsWmdrmCompliant(this: *mut core::ffi::c_void, pfcompliant: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsWmdrmCompliant(this: *mut core::ffi::c_void, pfcompliant: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMRegisteredDevice_Impl::IsWmdrmCompliant(this) { @@ -7346,7 +7346,7 @@ impl IWMRegisteredDevice_Vtbl { } } } - unsafe extern "system" fn IsOpened(this: *mut core::ffi::c_void, pfopened: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsOpened(this: *mut core::ffi::c_void, pfopened: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMRegisteredDevice_Impl::IsOpened(this) { @@ -7476,7 +7476,7 @@ impl IWMSInternalAdminNetSource { pub unsafe fn SetCredentials(&self, bstrrealm: &windows_core::BSTR, bstrname: &windows_core::BSTR, bstrpassword: &windows_core::BSTR, fpersist: bool, fconfirmedgood: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetCredentials)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrrealm), core::mem::transmute_copy(bstrname), core::mem::transmute_copy(bstrpassword), fpersist.into(), fconfirmedgood.into()).ok() } } - pub unsafe fn GetCredentials(&self, bstrrealm: &windows_core::BSTR, pbstrname: *mut windows_core::BSTR, pbstrpassword: *mut windows_core::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetCredentials(&self, bstrrealm: &windows_core::BSTR, pbstrname: *mut windows_core::BSTR, pbstrpassword: *mut windows_core::BSTR, pfconfirmedgood: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetCredentials)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrrealm), core::mem::transmute(pbstrname), core::mem::transmute(pbstrpassword), pfconfirmedgood as _).ok() } } pub unsafe fn DeleteCredentials(&self, bstrrealm: &windows_core::BSTR) -> windows_core::Result<()> { @@ -7491,7 +7491,7 @@ impl IWMSInternalAdminNetSource { pub unsafe fn SetCredentialFlags(&self, dwflags: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetCredentialFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } } - pub unsafe fn FindProxyForURL(&self, bstrprotocol: &windows_core::BSTR, bstrhost: &windows_core::BSTR, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut windows_core::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::Result<()> { + pub unsafe fn FindProxyForURL(&self, bstrprotocol: &windows_core::BSTR, bstrhost: &windows_core::BSTR, pfproxyenabled: *mut windows_core::BOOL, pbstrproxyserver: *mut windows_core::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).FindProxyForURL)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprotocol), core::mem::transmute_copy(bstrhost), pfproxyenabled as _, core::mem::transmute(pbstrproxyserver), pdwproxyport as _, pdwproxycontext as _).ok() } } pub unsafe fn RegisterProxyFailure(&self, hrparam: windows_core::HRESULT, dwproxycontext: u32) -> windows_core::Result<()> { @@ -7500,7 +7500,7 @@ impl IWMSInternalAdminNetSource { pub unsafe fn ShutdownProxyContext(&self, dwproxycontext: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).ShutdownProxyContext)(windows_core::Interface::as_raw(self), dwproxycontext).ok() } } - pub unsafe fn IsUsingIE(&self, dwproxycontext: u32) -> windows_core::Result { + pub unsafe fn IsUsingIE(&self, dwproxycontext: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsUsingIE)(windows_core::Interface::as_raw(self), dwproxycontext, &mut result__).map(|| result__) @@ -7510,34 +7510,34 @@ impl IWMSInternalAdminNetSource { #[repr(C)] pub struct IWMSInternalAdminNetSource_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetNetSourceCreator: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetCredentials: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetCredentials: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetCredentials: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, + pub GetCredentials: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub DeleteCredentials: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetCredentialFlags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetCredentialFlags: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub FindProxyForURL: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut *mut core::ffi::c_void, *mut u32, *mut u32) -> windows_core::HRESULT, + pub FindProxyForURL: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL, *mut *mut core::ffi::c_void, *mut u32, *mut u32) -> windows_core::HRESULT, pub RegisterProxyFailure: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::HRESULT, u32) -> windows_core::HRESULT, pub ShutdownProxyContext: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub IsUsingIE: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsUsingIE: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWMSInternalAdminNetSource_Impl: windows_core::IUnknownImpl { - fn Initialize(&self, psharednamespace: windows_core::Ref, pnamespacenode: windows_core::Ref, pnetsourcecreator: windows_core::Ref, fembeddedinserver: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Initialize(&self, psharednamespace: windows_core::Ref, pnamespacenode: windows_core::Ref, pnetsourcecreator: windows_core::Ref, fembeddedinserver: windows_core::BOOL) -> windows_core::Result<()>; fn GetNetSourceCreator(&self) -> windows_core::Result; - fn SetCredentials(&self, bstrrealm: &windows_core::BSTR, bstrname: &windows_core::BSTR, bstrpassword: &windows_core::BSTR, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetCredentials(&self, bstrrealm: &windows_core::BSTR, pbstrname: *mut windows_core::BSTR, pbstrpassword: *mut windows_core::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetCredentials(&self, bstrrealm: &windows_core::BSTR, bstrname: &windows_core::BSTR, bstrpassword: &windows_core::BSTR, fpersist: windows_core::BOOL, fconfirmedgood: windows_core::BOOL) -> windows_core::Result<()>; + fn GetCredentials(&self, bstrrealm: &windows_core::BSTR, pbstrname: *mut windows_core::BSTR, pbstrpassword: *mut windows_core::BSTR, pfconfirmedgood: *mut windows_core::BOOL) -> windows_core::Result<()>; fn DeleteCredentials(&self, bstrrealm: &windows_core::BSTR) -> windows_core::Result<()>; fn GetCredentialFlags(&self) -> windows_core::Result; fn SetCredentialFlags(&self, dwflags: u32) -> windows_core::Result<()>; - fn FindProxyForURL(&self, bstrprotocol: &windows_core::BSTR, bstrhost: &windows_core::BSTR, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut windows_core::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::Result<()>; + fn FindProxyForURL(&self, bstrprotocol: &windows_core::BSTR, bstrhost: &windows_core::BSTR, pfproxyenabled: *mut windows_core::BOOL, pbstrproxyserver: *mut windows_core::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::Result<()>; fn RegisterProxyFailure(&self, hrparam: windows_core::HRESULT, dwproxycontext: u32) -> windows_core::Result<()>; fn ShutdownProxyContext(&self, dwproxycontext: u32) -> windows_core::Result<()>; - fn IsUsingIE(&self, dwproxycontext: u32) -> windows_core::Result; + fn IsUsingIE(&self, dwproxycontext: u32) -> windows_core::Result; } impl IWMSInternalAdminNetSource_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psharednamespace: *mut core::ffi::c_void, pnamespacenode: *mut core::ffi::c_void, pnetsourcecreator: *mut core::ffi::c_void, fembeddedinserver: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, psharednamespace: *mut core::ffi::c_void, pnamespacenode: *mut core::ffi::c_void, pnetsourcecreator: *mut core::ffi::c_void, fembeddedinserver: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource_Impl::Initialize(this, core::mem::transmute_copy(&psharednamespace), core::mem::transmute_copy(&pnamespacenode), core::mem::transmute_copy(&pnetsourcecreator), core::mem::transmute_copy(&fembeddedinserver)).into() @@ -7555,13 +7555,13 @@ impl IWMSInternalAdminNetSource_Vtbl { } } } - unsafe extern "system" fn SetCredentials(this: *mut core::ffi::c_void, bstrrealm: *mut core::ffi::c_void, bstrname: *mut core::ffi::c_void, bstrpassword: *mut core::ffi::c_void, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetCredentials(this: *mut core::ffi::c_void, bstrrealm: *mut core::ffi::c_void, bstrname: *mut core::ffi::c_void, bstrpassword: *mut core::ffi::c_void, fpersist: windows_core::BOOL, fconfirmedgood: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource_Impl::SetCredentials(this, core::mem::transmute(&bstrrealm), core::mem::transmute(&bstrname), core::mem::transmute(&bstrpassword), core::mem::transmute_copy(&fpersist), core::mem::transmute_copy(&fconfirmedgood)).into() } } - unsafe extern "system" fn GetCredentials(this: *mut core::ffi::c_void, bstrrealm: *mut core::ffi::c_void, pbstrname: *mut *mut core::ffi::c_void, pbstrpassword: *mut *mut core::ffi::c_void, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetCredentials(this: *mut core::ffi::c_void, bstrrealm: *mut core::ffi::c_void, pbstrname: *mut *mut core::ffi::c_void, pbstrpassword: *mut *mut core::ffi::c_void, pfconfirmedgood: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource_Impl::GetCredentials(this, core::mem::transmute(&bstrrealm), core::mem::transmute_copy(&pbstrname), core::mem::transmute_copy(&pbstrpassword), core::mem::transmute_copy(&pfconfirmedgood)).into() @@ -7591,7 +7591,7 @@ impl IWMSInternalAdminNetSource_Vtbl { IWMSInternalAdminNetSource_Impl::SetCredentialFlags(this, core::mem::transmute_copy(&dwflags)).into() } } - unsafe extern "system" fn FindProxyForURL(this: *mut core::ffi::c_void, bstrprotocol: *mut core::ffi::c_void, bstrhost: *mut core::ffi::c_void, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut *mut core::ffi::c_void, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn FindProxyForURL(this: *mut core::ffi::c_void, bstrprotocol: *mut core::ffi::c_void, bstrhost: *mut core::ffi::c_void, pfproxyenabled: *mut windows_core::BOOL, pbstrproxyserver: *mut *mut core::ffi::c_void, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource_Impl::FindProxyForURL(this, core::mem::transmute(&bstrprotocol), core::mem::transmute(&bstrhost), core::mem::transmute_copy(&pfproxyenabled), core::mem::transmute_copy(&pbstrproxyserver), core::mem::transmute_copy(&pdwproxyport), core::mem::transmute_copy(&pdwproxycontext)).into() @@ -7609,7 +7609,7 @@ impl IWMSInternalAdminNetSource_Vtbl { IWMSInternalAdminNetSource_Impl::ShutdownProxyContext(this, core::mem::transmute_copy(&dwproxycontext)).into() } } - unsafe extern "system" fn IsUsingIE(this: *mut core::ffi::c_void, dwproxycontext: u32, pfisusingie: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsUsingIE(this: *mut core::ffi::c_void, dwproxycontext: u32, pfisusingie: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSInternalAdminNetSource_Impl::IsUsingIE(this, core::mem::transmute_copy(&dwproxycontext)) { @@ -7647,51 +7647,51 @@ impl IWMSInternalAdminNetSource2 { pub unsafe fn SetCredentialsEx(&self, bstrrealm: &windows_core::BSTR, bstrurl: &windows_core::BSTR, fproxy: bool, bstrname: &windows_core::BSTR, bstrpassword: &windows_core::BSTR, fpersist: bool, fconfirmedgood: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetCredentialsEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrrealm), core::mem::transmute_copy(bstrurl), fproxy.into(), core::mem::transmute_copy(bstrname), core::mem::transmute_copy(bstrpassword), fpersist.into(), fconfirmedgood.into()).ok() } } - pub unsafe fn GetCredentialsEx(&self, bstrrealm: &windows_core::BSTR, bstrurl: &windows_core::BSTR, fproxy: bool, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut windows_core::BSTR, pbstrpassword: *mut windows_core::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetCredentialsEx(&self, bstrrealm: &windows_core::BSTR, bstrurl: &windows_core::BSTR, fproxy: bool, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut windows_core::BSTR, pbstrpassword: *mut windows_core::BSTR, pfconfirmedgood: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetCredentialsEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrrealm), core::mem::transmute_copy(bstrurl), fproxy.into(), pdwurlpolicy as _, core::mem::transmute(pbstrname), core::mem::transmute(pbstrpassword), pfconfirmedgood as _).ok() } } pub unsafe fn DeleteCredentialsEx(&self, bstrrealm: &windows_core::BSTR, bstrurl: &windows_core::BSTR, fproxy: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).DeleteCredentialsEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrrealm), core::mem::transmute_copy(bstrurl), fproxy.into()).ok() } } - pub unsafe fn FindProxyForURLEx(&self, bstrprotocol: &windows_core::BSTR, bstrhost: &windows_core::BSTR, bstrurl: &windows_core::BSTR, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut windows_core::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::Result<()> { + pub unsafe fn FindProxyForURLEx(&self, bstrprotocol: &windows_core::BSTR, bstrhost: &windows_core::BSTR, bstrurl: &windows_core::BSTR, pfproxyenabled: *mut windows_core::BOOL, pbstrproxyserver: *mut windows_core::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).FindProxyForURLEx)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprotocol), core::mem::transmute_copy(bstrhost), core::mem::transmute_copy(bstrurl), pfproxyenabled as _, core::mem::transmute(pbstrproxyserver), pdwproxyport as _, pdwproxycontext as _).ok() } } } #[repr(C)] pub struct IWMSInternalAdminNetSource2_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetCredentialsEx: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetCredentialsEx: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut NETSOURCE_URLCREDPOLICY_SETTINGS, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub DeleteCredentialsEx: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub FindProxyForURLEx: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut *mut core::ffi::c_void, *mut u32, *mut u32) -> windows_core::HRESULT, + pub SetCredentialsEx: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, + pub GetCredentialsEx: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut NETSOURCE_URLCREDPOLICY_SETTINGS, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub DeleteCredentialsEx: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub FindProxyForURLEx: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL, *mut *mut core::ffi::c_void, *mut u32, *mut u32) -> windows_core::HRESULT, } pub trait IWMSInternalAdminNetSource2_Impl: windows_core::IUnknownImpl { - fn SetCredentialsEx(&self, bstrrealm: &windows_core::BSTR, bstrurl: &windows_core::BSTR, fproxy: super::super::Foundation::BOOL, bstrname: &windows_core::BSTR, bstrpassword: &windows_core::BSTR, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetCredentialsEx(&self, bstrrealm: &windows_core::BSTR, bstrurl: &windows_core::BSTR, fproxy: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut windows_core::BSTR, pbstrpassword: *mut windows_core::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn DeleteCredentialsEx(&self, bstrrealm: &windows_core::BSTR, bstrurl: &windows_core::BSTR, fproxy: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn FindProxyForURLEx(&self, bstrprotocol: &windows_core::BSTR, bstrhost: &windows_core::BSTR, bstrurl: &windows_core::BSTR, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut windows_core::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::Result<()>; + fn SetCredentialsEx(&self, bstrrealm: &windows_core::BSTR, bstrurl: &windows_core::BSTR, fproxy: windows_core::BOOL, bstrname: &windows_core::BSTR, bstrpassword: &windows_core::BSTR, fpersist: windows_core::BOOL, fconfirmedgood: windows_core::BOOL) -> windows_core::Result<()>; + fn GetCredentialsEx(&self, bstrrealm: &windows_core::BSTR, bstrurl: &windows_core::BSTR, fproxy: windows_core::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut windows_core::BSTR, pbstrpassword: *mut windows_core::BSTR, pfconfirmedgood: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn DeleteCredentialsEx(&self, bstrrealm: &windows_core::BSTR, bstrurl: &windows_core::BSTR, fproxy: windows_core::BOOL) -> windows_core::Result<()>; + fn FindProxyForURLEx(&self, bstrprotocol: &windows_core::BSTR, bstrhost: &windows_core::BSTR, bstrurl: &windows_core::BSTR, pfproxyenabled: *mut windows_core::BOOL, pbstrproxyserver: *mut windows_core::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::Result<()>; } impl IWMSInternalAdminNetSource2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetCredentialsEx(this: *mut core::ffi::c_void, bstrrealm: *mut core::ffi::c_void, bstrurl: *mut core::ffi::c_void, fproxy: super::super::Foundation::BOOL, bstrname: *mut core::ffi::c_void, bstrpassword: *mut core::ffi::c_void, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetCredentialsEx(this: *mut core::ffi::c_void, bstrrealm: *mut core::ffi::c_void, bstrurl: *mut core::ffi::c_void, fproxy: windows_core::BOOL, bstrname: *mut core::ffi::c_void, bstrpassword: *mut core::ffi::c_void, fpersist: windows_core::BOOL, fconfirmedgood: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource2_Impl::SetCredentialsEx(this, core::mem::transmute(&bstrrealm), core::mem::transmute(&bstrurl), core::mem::transmute_copy(&fproxy), core::mem::transmute(&bstrname), core::mem::transmute(&bstrpassword), core::mem::transmute_copy(&fpersist), core::mem::transmute_copy(&fconfirmedgood)).into() } } - unsafe extern "system" fn GetCredentialsEx(this: *mut core::ffi::c_void, bstrrealm: *mut core::ffi::c_void, bstrurl: *mut core::ffi::c_void, fproxy: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut *mut core::ffi::c_void, pbstrpassword: *mut *mut core::ffi::c_void, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetCredentialsEx(this: *mut core::ffi::c_void, bstrrealm: *mut core::ffi::c_void, bstrurl: *mut core::ffi::c_void, fproxy: windows_core::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut *mut core::ffi::c_void, pbstrpassword: *mut *mut core::ffi::c_void, pfconfirmedgood: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource2_Impl::GetCredentialsEx(this, core::mem::transmute(&bstrrealm), core::mem::transmute(&bstrurl), core::mem::transmute_copy(&fproxy), core::mem::transmute_copy(&pdwurlpolicy), core::mem::transmute_copy(&pbstrname), core::mem::transmute_copy(&pbstrpassword), core::mem::transmute_copy(&pfconfirmedgood)).into() } } - unsafe extern "system" fn DeleteCredentialsEx(this: *mut core::ffi::c_void, bstrrealm: *mut core::ffi::c_void, bstrurl: *mut core::ffi::c_void, fproxy: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DeleteCredentialsEx(this: *mut core::ffi::c_void, bstrrealm: *mut core::ffi::c_void, bstrurl: *mut core::ffi::c_void, fproxy: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource2_Impl::DeleteCredentialsEx(this, core::mem::transmute(&bstrrealm), core::mem::transmute(&bstrurl), core::mem::transmute_copy(&fproxy)).into() } } - unsafe extern "system" fn FindProxyForURLEx(this: *mut core::ffi::c_void, bstrprotocol: *mut core::ffi::c_void, bstrhost: *mut core::ffi::c_void, bstrurl: *mut core::ffi::c_void, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut *mut core::ffi::c_void, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn FindProxyForURLEx(this: *mut core::ffi::c_void, bstrprotocol: *mut core::ffi::c_void, bstrhost: *mut core::ffi::c_void, bstrurl: *mut core::ffi::c_void, pfproxyenabled: *mut windows_core::BOOL, pbstrproxyserver: *mut *mut core::ffi::c_void, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource2_Impl::FindProxyForURLEx(this, core::mem::transmute(&bstrprotocol), core::mem::transmute(&bstrhost), core::mem::transmute(&bstrurl), core::mem::transmute_copy(&pfproxyenabled), core::mem::transmute_copy(&pbstrproxyserver), core::mem::transmute_copy(&pdwproxyport), core::mem::transmute_copy(&pdwproxycontext)).into() @@ -7725,7 +7725,7 @@ impl IWMSInternalAdminNetSource3 { (windows_core::Interface::vtable(self).GetNetSourceCreator2)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn FindProxyForURLEx2(&self, bstrprotocol: &windows_core::BSTR, bstrhost: &windows_core::BSTR, bstrurl: &windows_core::BSTR, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut windows_core::BSTR, pdwproxyport: *mut u32, pqwproxycontext: *mut u64) -> windows_core::Result<()> { + pub unsafe fn FindProxyForURLEx2(&self, bstrprotocol: &windows_core::BSTR, bstrhost: &windows_core::BSTR, bstrurl: &windows_core::BSTR, pfproxyenabled: *mut windows_core::BOOL, pbstrproxyserver: *mut windows_core::BSTR, pdwproxyport: *mut u32, pqwproxycontext: *mut u64) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).FindProxyForURLEx2)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprotocol), core::mem::transmute_copy(bstrhost), core::mem::transmute_copy(bstrurl), pfproxyenabled as _, core::mem::transmute(pbstrproxyserver), pdwproxyport as _, pqwproxycontext as _).ok() } } pub unsafe fn RegisterProxyFailure2(&self, hrparam: windows_core::HRESULT, qwproxycontext: u64) -> windows_core::Result<()> { @@ -7734,7 +7734,7 @@ impl IWMSInternalAdminNetSource3 { pub unsafe fn ShutdownProxyContext2(&self, qwproxycontext: u64) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).ShutdownProxyContext2)(windows_core::Interface::as_raw(self), qwproxycontext).ok() } } - pub unsafe fn IsUsingIE2(&self, qwproxycontext: u64) -> windows_core::Result { + pub unsafe fn IsUsingIE2(&self, qwproxycontext: u64) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsUsingIE2)(windows_core::Interface::as_raw(self), qwproxycontext, &mut result__).map(|| result__) @@ -7743,7 +7743,7 @@ impl IWMSInternalAdminNetSource3 { pub unsafe fn SetCredentialsEx2(&self, bstrrealm: &windows_core::BSTR, bstrurl: &windows_core::BSTR, fproxy: bool, bstrname: &windows_core::BSTR, bstrpassword: &windows_core::BSTR, fpersist: bool, fconfirmedgood: bool, fcleartextauthentication: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetCredentialsEx2)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrrealm), core::mem::transmute_copy(bstrurl), fproxy.into(), core::mem::transmute_copy(bstrname), core::mem::transmute_copy(bstrpassword), fpersist.into(), fconfirmedgood.into(), fcleartextauthentication.into()).ok() } } - pub unsafe fn GetCredentialsEx2(&self, bstrrealm: &windows_core::BSTR, bstrurl: &windows_core::BSTR, fproxy: bool, fcleartextauthentication: bool, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut windows_core::BSTR, pbstrpassword: *mut windows_core::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetCredentialsEx2(&self, bstrrealm: &windows_core::BSTR, bstrurl: &windows_core::BSTR, fproxy: bool, fcleartextauthentication: bool, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut windows_core::BSTR, pbstrpassword: *mut windows_core::BSTR, pfconfirmedgood: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetCredentialsEx2)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrrealm), core::mem::transmute_copy(bstrurl), fproxy.into(), fcleartextauthentication.into(), pdwurlpolicy as _, core::mem::transmute(pbstrname), core::mem::transmute(pbstrpassword), pfconfirmedgood as _).ok() } } } @@ -7751,21 +7751,21 @@ impl IWMSInternalAdminNetSource3 { pub struct IWMSInternalAdminNetSource3_Vtbl { pub base__: IWMSInternalAdminNetSource2_Vtbl, pub GetNetSourceCreator2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub FindProxyForURLEx2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut *mut core::ffi::c_void, *mut u32, *mut u64) -> windows_core::HRESULT, + pub FindProxyForURLEx2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL, *mut *mut core::ffi::c_void, *mut u32, *mut u64) -> windows_core::HRESULT, pub RegisterProxyFailure2: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::HRESULT, u64) -> windows_core::HRESULT, pub ShutdownProxyContext2: unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, - pub IsUsingIE2: unsafe extern "system" fn(*mut core::ffi::c_void, u64, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetCredentialsEx2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetCredentialsEx2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *mut NETSOURCE_URLCREDPOLICY_SETTINGS, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsUsingIE2: unsafe extern "system" fn(*mut core::ffi::c_void, u64, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetCredentialsEx2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, + pub GetCredentialsEx2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL, *mut NETSOURCE_URLCREDPOLICY_SETTINGS, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWMSInternalAdminNetSource3_Impl: IWMSInternalAdminNetSource2_Impl { fn GetNetSourceCreator2(&self) -> windows_core::Result; - fn FindProxyForURLEx2(&self, bstrprotocol: &windows_core::BSTR, bstrhost: &windows_core::BSTR, bstrurl: &windows_core::BSTR, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut windows_core::BSTR, pdwproxyport: *mut u32, pqwproxycontext: *mut u64) -> windows_core::Result<()>; + fn FindProxyForURLEx2(&self, bstrprotocol: &windows_core::BSTR, bstrhost: &windows_core::BSTR, bstrurl: &windows_core::BSTR, pfproxyenabled: *mut windows_core::BOOL, pbstrproxyserver: *mut windows_core::BSTR, pdwproxyport: *mut u32, pqwproxycontext: *mut u64) -> windows_core::Result<()>; fn RegisterProxyFailure2(&self, hrparam: windows_core::HRESULT, qwproxycontext: u64) -> windows_core::Result<()>; fn ShutdownProxyContext2(&self, qwproxycontext: u64) -> windows_core::Result<()>; - fn IsUsingIE2(&self, qwproxycontext: u64) -> windows_core::Result; - fn SetCredentialsEx2(&self, bstrrealm: &windows_core::BSTR, bstrurl: &windows_core::BSTR, fproxy: super::super::Foundation::BOOL, bstrname: &windows_core::BSTR, bstrpassword: &windows_core::BSTR, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetCredentialsEx2(&self, bstrrealm: &windows_core::BSTR, bstrurl: &windows_core::BSTR, fproxy: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut windows_core::BSTR, pbstrpassword: *mut windows_core::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsUsingIE2(&self, qwproxycontext: u64) -> windows_core::Result; + fn SetCredentialsEx2(&self, bstrrealm: &windows_core::BSTR, bstrurl: &windows_core::BSTR, fproxy: windows_core::BOOL, bstrname: &windows_core::BSTR, bstrpassword: &windows_core::BSTR, fpersist: windows_core::BOOL, fconfirmedgood: windows_core::BOOL, fcleartextauthentication: windows_core::BOOL) -> windows_core::Result<()>; + fn GetCredentialsEx2(&self, bstrrealm: &windows_core::BSTR, bstrurl: &windows_core::BSTR, fproxy: windows_core::BOOL, fcleartextauthentication: windows_core::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut windows_core::BSTR, pbstrpassword: *mut windows_core::BSTR, pfconfirmedgood: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IWMSInternalAdminNetSource3_Vtbl { pub const fn new() -> Self { @@ -7781,7 +7781,7 @@ impl IWMSInternalAdminNetSource3_Vtbl { } } } - unsafe extern "system" fn FindProxyForURLEx2(this: *mut core::ffi::c_void, bstrprotocol: *mut core::ffi::c_void, bstrhost: *mut core::ffi::c_void, bstrurl: *mut core::ffi::c_void, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut *mut core::ffi::c_void, pdwproxyport: *mut u32, pqwproxycontext: *mut u64) -> windows_core::HRESULT { + unsafe extern "system" fn FindProxyForURLEx2(this: *mut core::ffi::c_void, bstrprotocol: *mut core::ffi::c_void, bstrhost: *mut core::ffi::c_void, bstrurl: *mut core::ffi::c_void, pfproxyenabled: *mut windows_core::BOOL, pbstrproxyserver: *mut *mut core::ffi::c_void, pdwproxyport: *mut u32, pqwproxycontext: *mut u64) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource3_Impl::FindProxyForURLEx2(this, core::mem::transmute(&bstrprotocol), core::mem::transmute(&bstrhost), core::mem::transmute(&bstrurl), core::mem::transmute_copy(&pfproxyenabled), core::mem::transmute_copy(&pbstrproxyserver), core::mem::transmute_copy(&pdwproxyport), core::mem::transmute_copy(&pqwproxycontext)).into() @@ -7799,7 +7799,7 @@ impl IWMSInternalAdminNetSource3_Vtbl { IWMSInternalAdminNetSource3_Impl::ShutdownProxyContext2(this, core::mem::transmute_copy(&qwproxycontext)).into() } } - unsafe extern "system" fn IsUsingIE2(this: *mut core::ffi::c_void, qwproxycontext: u64, pfisusingie: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsUsingIE2(this: *mut core::ffi::c_void, qwproxycontext: u64, pfisusingie: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSInternalAdminNetSource3_Impl::IsUsingIE2(this, core::mem::transmute_copy(&qwproxycontext)) { @@ -7811,13 +7811,13 @@ impl IWMSInternalAdminNetSource3_Vtbl { } } } - unsafe extern "system" fn SetCredentialsEx2(this: *mut core::ffi::c_void, bstrrealm: *mut core::ffi::c_void, bstrurl: *mut core::ffi::c_void, fproxy: super::super::Foundation::BOOL, bstrname: *mut core::ffi::c_void, bstrpassword: *mut core::ffi::c_void, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetCredentialsEx2(this: *mut core::ffi::c_void, bstrrealm: *mut core::ffi::c_void, bstrurl: *mut core::ffi::c_void, fproxy: windows_core::BOOL, bstrname: *mut core::ffi::c_void, bstrpassword: *mut core::ffi::c_void, fpersist: windows_core::BOOL, fconfirmedgood: windows_core::BOOL, fcleartextauthentication: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource3_Impl::SetCredentialsEx2(this, core::mem::transmute(&bstrrealm), core::mem::transmute(&bstrurl), core::mem::transmute_copy(&fproxy), core::mem::transmute(&bstrname), core::mem::transmute(&bstrpassword), core::mem::transmute_copy(&fpersist), core::mem::transmute_copy(&fconfirmedgood), core::mem::transmute_copy(&fcleartextauthentication)).into() } } - unsafe extern "system" fn GetCredentialsEx2(this: *mut core::ffi::c_void, bstrrealm: *mut core::ffi::c_void, bstrurl: *mut core::ffi::c_void, fproxy: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut *mut core::ffi::c_void, pbstrpassword: *mut *mut core::ffi::c_void, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetCredentialsEx2(this: *mut core::ffi::c_void, bstrrealm: *mut core::ffi::c_void, bstrurl: *mut core::ffi::c_void, fproxy: windows_core::BOOL, fcleartextauthentication: windows_core::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut *mut core::ffi::c_void, pbstrpassword: *mut *mut core::ffi::c_void, pfconfirmedgood: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSInternalAdminNetSource3_Impl::GetCredentialsEx2(this, core::mem::transmute(&bstrrealm), core::mem::transmute(&bstrurl), core::mem::transmute_copy(&fproxy), core::mem::transmute_copy(&fcleartextauthentication), core::mem::transmute_copy(&pdwurlpolicy), core::mem::transmute_copy(&pbstrname), core::mem::transmute_copy(&pbstrpassword), core::mem::transmute_copy(&pfconfirmedgood)).into() @@ -7863,7 +7863,7 @@ impl IWMSecureChannel { { unsafe { (windows_core::Interface::vtable(self).WMSC_Connect)(windows_core::Interface::as_raw(self), potherside.param().abi()).ok() } } - pub unsafe fn WMSC_IsConnected(&self) -> windows_core::Result { + pub unsafe fn WMSC_IsConnected(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).WMSC_IsConnected)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7897,7 +7897,7 @@ pub struct IWMSecureChannel_Vtbl { pub WMSC_AddCertificate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub WMSC_AddSignature: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, u32) -> windows_core::HRESULT, pub WMSC_Connect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub WMSC_IsConnected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub WMSC_IsConnected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub WMSC_Disconnect: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub WMSC_GetValidCertificate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut u8, *mut u32) -> windows_core::HRESULT, pub WMSC_Encrypt: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, u32) -> windows_core::HRESULT, @@ -7910,7 +7910,7 @@ pub trait IWMSecureChannel_Impl: IWMAuthorizer_Impl { fn WMSC_AddCertificate(&self, pcert: windows_core::Ref) -> windows_core::Result<()>; fn WMSC_AddSignature(&self, pbcertsig: *const u8, cbcertsig: u32) -> windows_core::Result<()>; fn WMSC_Connect(&self, potherside: windows_core::Ref) -> windows_core::Result<()>; - fn WMSC_IsConnected(&self) -> windows_core::Result; + fn WMSC_IsConnected(&self) -> windows_core::Result; fn WMSC_Disconnect(&self) -> windows_core::Result<()>; fn WMSC_GetValidCertificate(&self, ppbcertificate: *mut *mut u8, pdwsignature: *mut u32) -> windows_core::Result<()>; fn WMSC_Encrypt(&self, pbdata: *const u8, cbdata: u32) -> windows_core::Result<()>; @@ -7939,7 +7939,7 @@ impl IWMSecureChannel_Vtbl { IWMSecureChannel_Impl::WMSC_Connect(this, core::mem::transmute_copy(&potherside)).into() } } - unsafe extern "system" fn WMSC_IsConnected(this: *mut core::ffi::c_void, pfisconnected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn WMSC_IsConnected(this: *mut core::ffi::c_void, pfisconnected: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSecureChannel_Impl::WMSC_IsConnected(this) { @@ -8544,7 +8544,7 @@ impl IWMSyncReader { pub unsafe fn SetReadStreamSamples(&self, wstreamnum: u16, fcompressed: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetReadStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, fcompressed.into()).ok() } } - pub unsafe fn GetReadStreamSamples(&self, wstreamnum: u16) -> windows_core::Result { + pub unsafe fn GetReadStreamSamples(&self, wstreamnum: u16) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetReadStreamSamples)(windows_core::Interface::as_raw(self), wstreamnum, &mut result__).map(|| result__) @@ -8634,8 +8634,8 @@ pub struct IWMSyncReader_Vtbl { pub GetNextSample: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut *mut core::ffi::c_void, *mut u64, *mut u64, *mut u32, *mut u32, *mut u16) -> windows_core::HRESULT, pub SetStreamsSelected: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *const u16, *const WMT_STREAM_SELECTION) -> windows_core::HRESULT, pub GetStreamSelected: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut WMT_STREAM_SELECTION) -> windows_core::HRESULT, - pub SetReadStreamSamples: unsafe extern "system" fn(*mut core::ffi::c_void, u16, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetReadStreamSamples: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetReadStreamSamples: unsafe extern "system" fn(*mut core::ffi::c_void, u16, windows_core::BOOL) -> windows_core::HRESULT, + pub GetReadStreamSamples: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetOutputSetting: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, *mut WMT_ATTR_DATATYPE, *mut u8, *mut u16) -> windows_core::HRESULT, pub SetOutputSetting: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, WMT_ATTR_DATATYPE, *const u8, u16) -> windows_core::HRESULT, pub GetOutputCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -8661,8 +8661,8 @@ pub trait IWMSyncReader_Impl: windows_core::IUnknownImpl { fn GetNextSample(&self, wstreamnum: u16, ppsample: windows_core::OutRef<'_, INSSBuffer>, pcnssampletime: *mut u64, pcnsduration: *mut u64, pdwflags: *mut u32, pdwoutputnum: *mut u32, pwstreamnum: *mut u16) -> windows_core::Result<()>; fn SetStreamsSelected(&self, cstreamcount: u16, pwstreamnumbers: *const u16, pselections: *const WMT_STREAM_SELECTION) -> windows_core::Result<()>; fn GetStreamSelected(&self, wstreamnum: u16) -> windows_core::Result; - fn SetReadStreamSamples(&self, wstreamnum: u16, fcompressed: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetReadStreamSamples(&self, wstreamnum: u16) -> windows_core::Result; + fn SetReadStreamSamples(&self, wstreamnum: u16, fcompressed: windows_core::BOOL) -> windows_core::Result<()>; + fn GetReadStreamSamples(&self, wstreamnum: u16) -> windows_core::Result; fn GetOutputSetting(&self, dwoutputnum: u32, pszname: &windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> windows_core::Result<()>; fn SetOutputSetting(&self, dwoutputnum: u32, pszname: &windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> windows_core::Result<()>; fn GetOutputCount(&self) -> windows_core::Result; @@ -8727,13 +8727,13 @@ impl IWMSyncReader_Vtbl { } } } - unsafe extern "system" fn SetReadStreamSamples(this: *mut core::ffi::c_void, wstreamnum: u16, fcompressed: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetReadStreamSamples(this: *mut core::ffi::c_void, wstreamnum: u16, fcompressed: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMSyncReader_Impl::SetReadStreamSamples(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&fcompressed)).into() } } - unsafe extern "system" fn GetReadStreamSamples(this: *mut core::ffi::c_void, wstreamnum: u16, pfcompressed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetReadStreamSamples(this: *mut core::ffi::c_void, wstreamnum: u16, pfcompressed: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMSyncReader_Impl::GetReadStreamSamples(this, core::mem::transmute_copy(&wstreamnum)) { @@ -9448,7 +9448,7 @@ impl IWMWriterAdvanced { pub unsafe fn SetLiveSource(&self, fislivesource: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetLiveSource)(windows_core::Interface::as_raw(self), fislivesource.into()).ok() } } - pub unsafe fn IsRealTime(&self) -> windows_core::Result { + pub unsafe fn IsRealTime(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsRealTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9481,8 +9481,8 @@ pub struct IWMWriterAdvanced_Vtbl { pub AddSink: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveSink: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub WriteStreamSample: unsafe extern "system" fn(*mut core::ffi::c_void, u16, u64, u32, u64, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetLiveSource: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsRealTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetLiveSource: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub IsRealTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetWriterTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub GetStatistics: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut WM_WRITER_STATISTICS) -> windows_core::HRESULT, pub SetSyncTolerance: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -9494,8 +9494,8 @@ pub trait IWMWriterAdvanced_Impl: windows_core::IUnknownImpl { fn AddSink(&self, psink: windows_core::Ref) -> windows_core::Result<()>; fn RemoveSink(&self, psink: windows_core::Ref) -> windows_core::Result<()>; fn WriteStreamSample(&self, wstreamnum: u16, cnssampletime: u64, mssamplesendtime: u32, cnssampleduration: u64, dwflags: u32, psample: windows_core::Ref) -> windows_core::Result<()>; - fn SetLiveSource(&self, fislivesource: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn IsRealTime(&self) -> windows_core::Result; + fn SetLiveSource(&self, fislivesource: windows_core::BOOL) -> windows_core::Result<()>; + fn IsRealTime(&self) -> windows_core::Result; fn GetWriterTime(&self) -> windows_core::Result; fn GetStatistics(&self, wstreamnum: u16, pstats: *mut WM_WRITER_STATISTICS) -> windows_core::Result<()>; fn SetSyncTolerance(&self, mswindow: u32) -> windows_core::Result<()>; @@ -9545,13 +9545,13 @@ impl IWMWriterAdvanced_Vtbl { IWMWriterAdvanced_Impl::WriteStreamSample(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&cnssampletime), core::mem::transmute_copy(&mssamplesendtime), core::mem::transmute_copy(&cnssampleduration), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&psample)).into() } } - unsafe extern "system" fn SetLiveSource(this: *mut core::ffi::c_void, fislivesource: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetLiveSource(this: *mut core::ffi::c_void, fislivesource: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterAdvanced_Impl::SetLiveSource(this, core::mem::transmute_copy(&fislivesource)).into() } } - unsafe extern "system" fn IsRealTime(this: *mut core::ffi::c_void, pfrealtime: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsRealTime(this: *mut core::ffi::c_void, pfrealtime: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterAdvanced_Impl::IsRealTime(this) { @@ -9781,7 +9781,7 @@ impl IWMWriterFileSink2 { pub unsafe fn Stop(&self, cnsstoptime: u64) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Stop)(windows_core::Interface::as_raw(self), cnsstoptime).ok() } } - pub unsafe fn IsStopped(&self) -> windows_core::Result { + pub unsafe fn IsStopped(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsStopped)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9802,7 +9802,7 @@ impl IWMWriterFileSink2 { pub unsafe fn Close(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn IsClosed(&self) -> windows_core::Result { + pub unsafe fn IsClosed(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsClosed)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9814,20 +9814,20 @@ pub struct IWMWriterFileSink2_Vtbl { pub base__: IWMWriterFileSink_Vtbl, pub Start: unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, pub Stop: unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, - pub IsStopped: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsStopped: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetFileDuration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub GetFileSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub Close: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsClosed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsClosed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWMWriterFileSink2_Impl: IWMWriterFileSink_Impl { fn Start(&self, cnsstarttime: u64) -> windows_core::Result<()>; fn Stop(&self, cnsstoptime: u64) -> windows_core::Result<()>; - fn IsStopped(&self) -> windows_core::Result; + fn IsStopped(&self) -> windows_core::Result; fn GetFileDuration(&self) -> windows_core::Result; fn GetFileSize(&self) -> windows_core::Result; fn Close(&self) -> windows_core::Result<()>; - fn IsClosed(&self) -> windows_core::Result; + fn IsClosed(&self) -> windows_core::Result; } impl IWMWriterFileSink2_Vtbl { pub const fn new() -> Self { @@ -9843,7 +9843,7 @@ impl IWMWriterFileSink2_Vtbl { IWMWriterFileSink2_Impl::Stop(this, core::mem::transmute_copy(&cnsstoptime)).into() } } - unsafe extern "system" fn IsStopped(this: *mut core::ffi::c_void, pfstopped: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsStopped(this: *mut core::ffi::c_void, pfstopped: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterFileSink2_Impl::IsStopped(this) { @@ -9885,7 +9885,7 @@ impl IWMWriterFileSink2_Vtbl { IWMWriterFileSink2_Impl::Close(this).into() } } - unsafe extern "system" fn IsClosed(this: *mut core::ffi::c_void, pfclosed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsClosed(this: *mut core::ffi::c_void, pfclosed: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterFileSink2_Impl::IsClosed(this) { @@ -9925,7 +9925,7 @@ impl IWMWriterFileSink3 { pub unsafe fn SetAutoIndexing(&self, fdoautoindexing: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetAutoIndexing)(windows_core::Interface::as_raw(self), fdoautoindexing.into()).ok() } } - pub unsafe fn GetAutoIndexing(&self) -> windows_core::Result { + pub unsafe fn GetAutoIndexing(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAutoIndexing)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9946,7 +9946,7 @@ impl IWMWriterFileSink3 { pub unsafe fn SetUnbufferedIO(&self, funbufferedio: bool, frestrictmemusage: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetUnbufferedIO)(windows_core::Interface::as_raw(self), funbufferedio.into(), frestrictmemusage.into()).ok() } } - pub unsafe fn GetUnbufferedIO(&self) -> windows_core::Result { + pub unsafe fn GetUnbufferedIO(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetUnbufferedIO)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9959,34 +9959,34 @@ impl IWMWriterFileSink3 { #[repr(C)] pub struct IWMWriterFileSink3_Vtbl { pub base__: IWMWriterFileSink2_Vtbl, - pub SetAutoIndexing: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetAutoIndexing: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetControlStream: unsafe extern "system" fn(*mut core::ffi::c_void, u16, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetAutoIndexing: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetAutoIndexing: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetControlStream: unsafe extern "system" fn(*mut core::ffi::c_void, u16, windows_core::BOOL) -> windows_core::HRESULT, pub GetMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub OnDataUnitEx: unsafe extern "system" fn(*mut core::ffi::c_void, *const WMT_FILESINK_DATA_UNIT) -> windows_core::HRESULT, - pub SetUnbufferedIO: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetUnbufferedIO: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetUnbufferedIO: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, + pub GetUnbufferedIO: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CompleteOperations: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IWMWriterFileSink3_Impl: IWMWriterFileSink2_Impl { - fn SetAutoIndexing(&self, fdoautoindexing: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetAutoIndexing(&self) -> windows_core::Result; - fn SetControlStream(&self, wstreamnumber: u16, fshouldcontrolstartandstop: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetAutoIndexing(&self, fdoautoindexing: windows_core::BOOL) -> windows_core::Result<()>; + fn GetAutoIndexing(&self) -> windows_core::Result; + fn SetControlStream(&self, wstreamnumber: u16, fshouldcontrolstartandstop: windows_core::BOOL) -> windows_core::Result<()>; fn GetMode(&self) -> windows_core::Result; fn OnDataUnitEx(&self, pfilesinkdataunit: *const WMT_FILESINK_DATA_UNIT) -> windows_core::Result<()>; - fn SetUnbufferedIO(&self, funbufferedio: super::super::Foundation::BOOL, frestrictmemusage: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetUnbufferedIO(&self) -> windows_core::Result; + fn SetUnbufferedIO(&self, funbufferedio: windows_core::BOOL, frestrictmemusage: windows_core::BOOL) -> windows_core::Result<()>; + fn GetUnbufferedIO(&self) -> windows_core::Result; fn CompleteOperations(&self) -> windows_core::Result<()>; } impl IWMWriterFileSink3_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetAutoIndexing(this: *mut core::ffi::c_void, fdoautoindexing: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAutoIndexing(this: *mut core::ffi::c_void, fdoautoindexing: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterFileSink3_Impl::SetAutoIndexing(this, core::mem::transmute_copy(&fdoautoindexing)).into() } } - unsafe extern "system" fn GetAutoIndexing(this: *mut core::ffi::c_void, pfautoindexing: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetAutoIndexing(this: *mut core::ffi::c_void, pfautoindexing: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterFileSink3_Impl::GetAutoIndexing(this) { @@ -9998,7 +9998,7 @@ impl IWMWriterFileSink3_Vtbl { } } } - unsafe extern "system" fn SetControlStream(this: *mut core::ffi::c_void, wstreamnumber: u16, fshouldcontrolstartandstop: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetControlStream(this: *mut core::ffi::c_void, wstreamnumber: u16, fshouldcontrolstartandstop: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterFileSink3_Impl::SetControlStream(this, core::mem::transmute_copy(&wstreamnumber), core::mem::transmute_copy(&fshouldcontrolstartandstop)).into() @@ -10022,13 +10022,13 @@ impl IWMWriterFileSink3_Vtbl { IWMWriterFileSink3_Impl::OnDataUnitEx(this, core::mem::transmute_copy(&pfilesinkdataunit)).into() } } - unsafe extern "system" fn SetUnbufferedIO(this: *mut core::ffi::c_void, funbufferedio: super::super::Foundation::BOOL, frestrictmemusage: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetUnbufferedIO(this: *mut core::ffi::c_void, funbufferedio: windows_core::BOOL, frestrictmemusage: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterFileSink3_Impl::SetUnbufferedIO(this, core::mem::transmute_copy(&funbufferedio), core::mem::transmute_copy(&frestrictmemusage)).into() } } - unsafe extern "system" fn GetUnbufferedIO(this: *mut core::ffi::c_void, pfunbufferedio: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetUnbufferedIO(this: *mut core::ffi::c_void, pfunbufferedio: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterFileSink3_Impl::GetUnbufferedIO(this) { @@ -10216,7 +10216,7 @@ impl IWMWriterPostView { pub unsafe fn SetReceivePostViewSamples(&self, wstreamnum: u16, freceivepostviewsamples: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetReceivePostViewSamples)(windows_core::Interface::as_raw(self), wstreamnum, freceivepostviewsamples.into()).ok() } } - pub unsafe fn GetReceivePostViewSamples(&self, wstreamnum: u16) -> windows_core::Result { + pub unsafe fn GetReceivePostViewSamples(&self, wstreamnum: u16) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetReceivePostViewSamples)(windows_core::Interface::as_raw(self), wstreamnum, &mut result__).map(|| result__) @@ -10249,7 +10249,7 @@ impl IWMWriterPostView { pub unsafe fn SetAllocateForPostView(&self, wstreamnumber: u16, fallocate: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetAllocateForPostView)(windows_core::Interface::as_raw(self), wstreamnumber, fallocate.into()).ok() } } - pub unsafe fn GetAllocateForPostView(&self, wstreamnumber: u16) -> windows_core::Result { + pub unsafe fn GetAllocateForPostView(&self, wstreamnumber: u16) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAllocateForPostView)(windows_core::Interface::as_raw(self), wstreamnumber, &mut result__).map(|| result__) @@ -10260,25 +10260,25 @@ impl IWMWriterPostView { pub struct IWMWriterPostView_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetPostViewCallback: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetReceivePostViewSamples: unsafe extern "system" fn(*mut core::ffi::c_void, u16, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetReceivePostViewSamples: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetReceivePostViewSamples: unsafe extern "system" fn(*mut core::ffi::c_void, u16, windows_core::BOOL) -> windows_core::HRESULT, + pub GetReceivePostViewSamples: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetPostViewProps: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetPostViewProps: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetPostViewFormatCount: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut u32) -> windows_core::HRESULT, pub GetPostViewFormat: unsafe extern "system" fn(*mut core::ffi::c_void, u16, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetAllocateForPostView: unsafe extern "system" fn(*mut core::ffi::c_void, u16, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetAllocateForPostView: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetAllocateForPostView: unsafe extern "system" fn(*mut core::ffi::c_void, u16, windows_core::BOOL) -> windows_core::HRESULT, + pub GetAllocateForPostView: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWMWriterPostView_Impl: windows_core::IUnknownImpl { fn SetPostViewCallback(&self, pcallback: windows_core::Ref, pvcontext: *mut core::ffi::c_void) -> windows_core::Result<()>; - fn SetReceivePostViewSamples(&self, wstreamnum: u16, freceivepostviewsamples: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetReceivePostViewSamples(&self, wstreamnum: u16) -> windows_core::Result; + fn SetReceivePostViewSamples(&self, wstreamnum: u16, freceivepostviewsamples: windows_core::BOOL) -> windows_core::Result<()>; + fn GetReceivePostViewSamples(&self, wstreamnum: u16) -> windows_core::Result; fn GetPostViewProps(&self, wstreamnumber: u16) -> windows_core::Result; fn SetPostViewProps(&self, wstreamnumber: u16, poutput: windows_core::Ref) -> windows_core::Result<()>; fn GetPostViewFormatCount(&self, wstreamnumber: u16) -> windows_core::Result; fn GetPostViewFormat(&self, wstreamnumber: u16, dwformatnumber: u32) -> windows_core::Result; - fn SetAllocateForPostView(&self, wstreamnumber: u16, fallocate: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetAllocateForPostView(&self, wstreamnumber: u16) -> windows_core::Result; + fn SetAllocateForPostView(&self, wstreamnumber: u16, fallocate: windows_core::BOOL) -> windows_core::Result<()>; + fn GetAllocateForPostView(&self, wstreamnumber: u16) -> windows_core::Result; } impl IWMWriterPostView_Vtbl { pub const fn new() -> Self { @@ -10288,13 +10288,13 @@ impl IWMWriterPostView_Vtbl { IWMWriterPostView_Impl::SetPostViewCallback(this, core::mem::transmute_copy(&pcallback), core::mem::transmute_copy(&pvcontext)).into() } } - unsafe extern "system" fn SetReceivePostViewSamples(this: *mut core::ffi::c_void, wstreamnum: u16, freceivepostviewsamples: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetReceivePostViewSamples(this: *mut core::ffi::c_void, wstreamnum: u16, freceivepostviewsamples: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterPostView_Impl::SetReceivePostViewSamples(this, core::mem::transmute_copy(&wstreamnum), core::mem::transmute_copy(&freceivepostviewsamples)).into() } } - unsafe extern "system" fn GetReceivePostViewSamples(this: *mut core::ffi::c_void, wstreamnum: u16, pfreceivepostviewsamples: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetReceivePostViewSamples(this: *mut core::ffi::c_void, wstreamnum: u16, pfreceivepostviewsamples: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterPostView_Impl::GetReceivePostViewSamples(this, core::mem::transmute_copy(&wstreamnum)) { @@ -10348,13 +10348,13 @@ impl IWMWriterPostView_Vtbl { } } } - unsafe extern "system" fn SetAllocateForPostView(this: *mut core::ffi::c_void, wstreamnumber: u16, fallocate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAllocateForPostView(this: *mut core::ffi::c_void, wstreamnumber: u16, fallocate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterPostView_Impl::SetAllocateForPostView(this, core::mem::transmute_copy(&wstreamnumber), core::mem::transmute_copy(&fallocate)).into() } } - unsafe extern "system" fn GetAllocateForPostView(this: *mut core::ffi::c_void, wstreamnumber: u16, pfallocate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetAllocateForPostView(this: *mut core::ffi::c_void, wstreamnumber: u16, pfallocate: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterPostView_Impl::GetAllocateForPostView(this, core::mem::transmute_copy(&wstreamnumber)) { @@ -10557,18 +10557,18 @@ impl IWMWriterPushSink { #[repr(C)] pub struct IWMWriterPushSink_Vtbl { pub base__: IWMWriterSink_Vtbl, - pub Connect: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Connect: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, pub Disconnect: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub EndSession: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IWMWriterPushSink_Impl: IWMWriterSink_Impl { - fn Connect(&self, pwszurl: &windows_core::PCWSTR, pwsztemplateurl: &windows_core::PCWSTR, fautodestroy: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Connect(&self, pwszurl: &windows_core::PCWSTR, pwsztemplateurl: &windows_core::PCWSTR, fautodestroy: windows_core::BOOL) -> windows_core::Result<()>; fn Disconnect(&self) -> windows_core::Result<()>; fn EndSession(&self) -> windows_core::Result<()>; } impl IWMWriterPushSink_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pwsztemplateurl: windows_core::PCWSTR, fautodestroy: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pwsztemplateurl: windows_core::PCWSTR, fautodestroy: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWMWriterPushSink_Impl::Connect(this, core::mem::transmute(&pwszurl), core::mem::transmute(&pwsztemplateurl), core::mem::transmute_copy(&fautodestroy)).into() @@ -10607,7 +10607,7 @@ impl IWMWriterSink { { unsafe { (windows_core::Interface::vtable(self).OnHeader)(windows_core::Interface::as_raw(self), pheader.param().abi()).ok() } } - pub unsafe fn IsRealTime(&self) -> windows_core::Result { + pub unsafe fn IsRealTime(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsRealTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -10633,14 +10633,14 @@ impl IWMWriterSink { pub struct IWMWriterSink_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub OnHeader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsRealTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsRealTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub AllocateDataUnit: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub OnDataUnit: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub OnEndWriting: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IWMWriterSink_Impl: windows_core::IUnknownImpl { fn OnHeader(&self, pheader: windows_core::Ref) -> windows_core::Result<()>; - fn IsRealTime(&self) -> windows_core::Result; + fn IsRealTime(&self) -> windows_core::Result; fn AllocateDataUnit(&self, cbdataunit: u32) -> windows_core::Result; fn OnDataUnit(&self, pdataunit: windows_core::Ref) -> windows_core::Result<()>; fn OnEndWriting(&self) -> windows_core::Result<()>; @@ -10653,7 +10653,7 @@ impl IWMWriterSink_Vtbl { IWMWriterSink_Impl::OnHeader(this, core::mem::transmute_copy(&pheader)).into() } } - unsafe extern "system" fn IsRealTime(this: *mut core::ffi::c_void, pfrealtime: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsRealTime(this: *mut core::ffi::c_void, pfrealtime: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWMWriterSink_Impl::IsRealTime(this) { @@ -11130,7 +11130,7 @@ pub struct WMT_VIDEOIMAGE_SAMPLE2 { pub fEffectPara2: f32, pub fEffectPara3: f32, pub fEffectPara4: f32, - pub bKeepPrevImage: super::super::Foundation::BOOL, + pub bKeepPrevImage: windows_core::BOOL, } impl Default for WMT_VIDEOIMAGE_SAMPLE2 { fn default() -> Self { @@ -11334,8 +11334,8 @@ pub const WM_MAX_VIDEO_STREAMS: u32 = 63u32; pub struct WM_MEDIA_TYPE { pub majortype: windows_core::GUID, pub subtype: windows_core::GUID, - pub bFixedSizeSamples: super::super::Foundation::BOOL, - pub bTemporalCompression: super::super::Foundation::BOOL, + pub bFixedSizeSamples: windows_core::BOOL, + pub bTemporalCompression: windows_core::BOOL, pub lSampleSize: u32, pub formattype: windows_core::GUID, pub pUnk: core::mem::ManuallyDrop>, @@ -11426,7 +11426,7 @@ pub struct WM_SF_TYPE(pub i32); #[derive(Clone, Copy)] pub struct WM_STREAM_PRIORITY_RECORD { pub wStreamNumber: u16, - pub fMandatory: super::super::Foundation::BOOL, + pub fMandatory: windows_core::BOOL, } impl Default for WM_STREAM_PRIORITY_RECORD { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs index e30bf31808..1aa472b9dd 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dhcp/mod.rs @@ -3,7 +3,7 @@ pub unsafe fn DhcpAddFilterV4(serveripaddress: P0, addfilterinfo: *const DHC where P0: windows_core::Param, { - windows_targets::link!("dhcpsapi.dll" "system" fn DhcpAddFilterV4(serveripaddress : windows_core::PCWSTR, addfilterinfo : *const DHCP_FILTER_ADD_INFO, forceflag : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("dhcpsapi.dll" "system" fn DhcpAddFilterV4(serveripaddress : windows_core::PCWSTR, addfilterinfo : *const DHCP_FILTER_ADD_INFO, forceflag : windows_core::BOOL) -> u32); unsafe { DhcpAddFilterV4(serveripaddress.param().abi(), addfilterinfo, forceflag.into()) } } #[inline] @@ -715,7 +715,7 @@ where P0: windows_core::Param, P5: windows_core::Param, { - windows_targets::link!("dhcpsapi.dll" "system" fn DhcpHlprCreateV4Policy(policyname : windows_core::PCWSTR, fglobalpolicy : super::super::Foundation:: BOOL, subnet : u32, processingorder : u32, rootoperator : DHCP_POL_LOGIC_OPER, description : windows_core::PCWSTR, enabled : super::super::Foundation:: BOOL, policy : *mut *mut DHCP_POLICY) -> u32); + windows_targets::link!("dhcpsapi.dll" "system" fn DhcpHlprCreateV4Policy(policyname : windows_core::PCWSTR, fglobalpolicy : windows_core::BOOL, subnet : u32, processingorder : u32, rootoperator : DHCP_POL_LOGIC_OPER, description : windows_core::PCWSTR, enabled : windows_core::BOOL, policy : *mut *mut DHCP_POLICY) -> u32); unsafe { DhcpHlprCreateV4Policy(policyname.param().abi(), fglobalpolicy.into(), subnet, processingorder, rootoperator, description.param().abi(), enabled.into(), policy as _) } } #[inline] @@ -724,7 +724,7 @@ where P0: windows_core::Param, P5: windows_core::Param, { - windows_targets::link!("dhcpsapi.dll" "system" fn DhcpHlprCreateV4PolicyEx(policyname : windows_core::PCWSTR, fglobalpolicy : super::super::Foundation:: BOOL, subnet : u32, processingorder : u32, rootoperator : DHCP_POL_LOGIC_OPER, description : windows_core::PCWSTR, enabled : super::super::Foundation:: BOOL, policy : *mut *mut DHCP_POLICY_EX) -> u32); + windows_targets::link!("dhcpsapi.dll" "system" fn DhcpHlprCreateV4PolicyEx(policyname : windows_core::PCWSTR, fglobalpolicy : windows_core::BOOL, subnet : u32, processingorder : u32, rootoperator : DHCP_POL_LOGIC_OPER, description : windows_core::PCWSTR, enabled : windows_core::BOOL, policy : *mut *mut DHCP_POLICY_EX) -> u32); unsafe { DhcpHlprCreateV4PolicyEx(policyname.param().abi(), fglobalpolicy.into(), subnet, processingorder, rootoperator, description.param().abi(), enabled.into(), policy as _) } } #[inline] @@ -763,8 +763,8 @@ pub unsafe fn DhcpHlprFreeV4PolicyExArray(policyexarray: *mut DHCP_POLICY_EX_ARR unsafe { DhcpHlprFreeV4PolicyExArray(policyexarray as _) } } #[inline] -pub unsafe fn DhcpHlprIsV4PolicySingleUC(policy: *const DHCP_POLICY) -> super::super::Foundation::BOOL { - windows_targets::link!("dhcpsapi.dll" "system" fn DhcpHlprIsV4PolicySingleUC(policy : *const DHCP_POLICY) -> super::super::Foundation:: BOOL); +pub unsafe fn DhcpHlprIsV4PolicySingleUC(policy: *const DHCP_POLICY) -> windows_core::BOOL { + windows_targets::link!("dhcpsapi.dll" "system" fn DhcpHlprIsV4PolicySingleUC(policy : *const DHCP_POLICY) -> windows_core::BOOL); unsafe { DhcpHlprIsV4PolicySingleUC(policy) } } #[inline] @@ -773,8 +773,8 @@ pub unsafe fn DhcpHlprIsV4PolicyValid(ppolicy: *const DHCP_POLICY) -> u32 { unsafe { DhcpHlprIsV4PolicyValid(ppolicy) } } #[inline] -pub unsafe fn DhcpHlprIsV4PolicyWellFormed(ppolicy: *const DHCP_POLICY) -> super::super::Foundation::BOOL { - windows_targets::link!("dhcpsapi.dll" "system" fn DhcpHlprIsV4PolicyWellFormed(ppolicy : *const DHCP_POLICY) -> super::super::Foundation:: BOOL); +pub unsafe fn DhcpHlprIsV4PolicyWellFormed(ppolicy: *const DHCP_POLICY) -> windows_core::BOOL { + windows_targets::link!("dhcpsapi.dll" "system" fn DhcpHlprIsV4PolicyWellFormed(ppolicy : *const DHCP_POLICY) -> windows_core::BOOL); unsafe { DhcpHlprIsV4PolicyWellFormed(ppolicy) } } #[inline] @@ -1235,7 +1235,7 @@ where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetSuperScopeV4(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, superscopename : windows_core::PCWSTR, changeexisting : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("dhcpsapi.dll" "system" fn DhcpSetSuperScopeV4(serveripaddress : windows_core::PCWSTR, subnetaddress : u32, superscopename : windows_core::PCWSTR, changeexisting : windows_core::BOOL) -> u32); unsafe { DhcpSetSuperScopeV4(serveripaddress.param().abi(), subnetaddress, superscopename.param().abi(), changeexisting.into()) } } #[inline] @@ -1299,7 +1299,7 @@ where P0: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4DeletePolicy(serveripaddress : windows_core::PCWSTR, fglobalpolicy : super::super::Foundation:: BOOL, subnetaddress : u32, policyname : windows_core::PCWSTR) -> u32); + windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4DeletePolicy(serveripaddress : windows_core::PCWSTR, fglobalpolicy : windows_core::BOOL, subnetaddress : u32, policyname : windows_core::PCWSTR) -> u32); unsafe { DhcpV4DeletePolicy(serveripaddress.param().abi(), fglobalpolicy.into(), subnetaddress, policyname.param().abi()) } } #[inline] @@ -1307,7 +1307,7 @@ pub unsafe fn DhcpV4EnumPolicies(serveripaddress: P0, resumehandle: *mut u32 where P0: windows_core::Param, { - windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4EnumPolicies(serveripaddress : windows_core::PCWSTR, resumehandle : *mut u32, preferredmaximum : u32, fglobalpolicy : super::super::Foundation:: BOOL, subnetaddress : u32, enuminfo : *mut *mut DHCP_POLICY_ARRAY, elementsread : *mut u32, elementstotal : *mut u32) -> u32); + windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4EnumPolicies(serveripaddress : windows_core::PCWSTR, resumehandle : *mut u32, preferredmaximum : u32, fglobalpolicy : windows_core::BOOL, subnetaddress : u32, enuminfo : *mut *mut DHCP_POLICY_ARRAY, elementsread : *mut u32, elementstotal : *mut u32) -> u32); unsafe { DhcpV4EnumPolicies(serveripaddress.param().abi(), resumehandle as _, preferredmaximum, fglobalpolicy.into(), subnetaddress, enuminfo as _, elementsread as _, elementstotal as _) } } #[inline] @@ -1315,7 +1315,7 @@ pub unsafe fn DhcpV4EnumPoliciesEx(serveripaddress: P0, resumehandle: *mut u where P0: windows_core::Param, { - windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4EnumPoliciesEx(serveripaddress : windows_core::PCWSTR, resumehandle : *mut u32, preferredmaximum : u32, globalpolicy : super::super::Foundation:: BOOL, subnetaddress : u32, enuminfo : *mut *mut DHCP_POLICY_EX_ARRAY, elementsread : *mut u32, elementstotal : *mut u32) -> u32); + windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4EnumPoliciesEx(serveripaddress : windows_core::PCWSTR, resumehandle : *mut u32, preferredmaximum : u32, globalpolicy : windows_core::BOOL, subnetaddress : u32, enuminfo : *mut *mut DHCP_POLICY_EX_ARRAY, elementsread : *mut u32, elementstotal : *mut u32) -> u32); unsafe { DhcpV4EnumPoliciesEx(serveripaddress.param().abi(), resumehandle as _, preferredmaximum, globalpolicy.into(), subnetaddress, enuminfo as _, elementsread as _, elementstotal as _) } } #[inline] @@ -1497,7 +1497,7 @@ where P0: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4GetPolicy(serveripaddress : windows_core::PCWSTR, fglobalpolicy : super::super::Foundation:: BOOL, subnetaddress : u32, policyname : windows_core::PCWSTR, policy : *mut *mut DHCP_POLICY) -> u32); + windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4GetPolicy(serveripaddress : windows_core::PCWSTR, fglobalpolicy : windows_core::BOOL, subnetaddress : u32, policyname : windows_core::PCWSTR, policy : *mut *mut DHCP_POLICY) -> u32); unsafe { DhcpV4GetPolicy(serveripaddress.param().abi(), fglobalpolicy.into(), subnetaddress, policyname.param().abi(), policy as _) } } #[inline] @@ -1506,15 +1506,15 @@ where P0: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4GetPolicyEx(serveripaddress : windows_core::PCWSTR, globalpolicy : super::super::Foundation:: BOOL, subnetaddress : u32, policyname : windows_core::PCWSTR, policy : *mut *mut DHCP_POLICY_EX) -> u32); + windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4GetPolicyEx(serveripaddress : windows_core::PCWSTR, globalpolicy : windows_core::BOOL, subnetaddress : u32, policyname : windows_core::PCWSTR, policy : *mut *mut DHCP_POLICY_EX) -> u32); unsafe { DhcpV4GetPolicyEx(serveripaddress.param().abi(), globalpolicy.into(), subnetaddress, policyname.param().abi(), policy as _) } } #[inline] -pub unsafe fn DhcpV4QueryPolicyEnforcement(serveripaddress: P0, fglobalpolicy: bool, subnetaddress: u32, enabled: *mut super::super::Foundation::BOOL) -> u32 +pub unsafe fn DhcpV4QueryPolicyEnforcement(serveripaddress: P0, fglobalpolicy: bool, subnetaddress: u32, enabled: *mut windows_core::BOOL) -> u32 where P0: windows_core::Param, { - windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4QueryPolicyEnforcement(serveripaddress : windows_core::PCWSTR, fglobalpolicy : super::super::Foundation:: BOOL, subnetaddress : u32, enabled : *mut super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4QueryPolicyEnforcement(serveripaddress : windows_core::PCWSTR, fglobalpolicy : windows_core::BOOL, subnetaddress : u32, enabled : *mut windows_core::BOOL) -> u32); unsafe { DhcpV4QueryPolicyEnforcement(serveripaddress.param().abi(), fglobalpolicy.into(), subnetaddress, enabled as _) } } #[inline] @@ -1562,7 +1562,7 @@ where P0: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4SetPolicy(serveripaddress : windows_core::PCWSTR, fieldsmodified : u32, fglobalpolicy : super::super::Foundation:: BOOL, subnetaddress : u32, policyname : windows_core::PCWSTR, policy : *const DHCP_POLICY) -> u32); + windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4SetPolicy(serveripaddress : windows_core::PCWSTR, fieldsmodified : u32, fglobalpolicy : windows_core::BOOL, subnetaddress : u32, policyname : windows_core::PCWSTR, policy : *const DHCP_POLICY) -> u32); unsafe { DhcpV4SetPolicy(serveripaddress.param().abi(), fieldsmodified, fglobalpolicy.into(), subnetaddress, policyname.param().abi(), policy) } } #[inline] @@ -1570,7 +1570,7 @@ pub unsafe fn DhcpV4SetPolicyEnforcement(serveripaddress: P0, fglobalpolicy: where P0: windows_core::Param, { - windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4SetPolicyEnforcement(serveripaddress : windows_core::PCWSTR, fglobalpolicy : super::super::Foundation:: BOOL, subnetaddress : u32, enable : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4SetPolicyEnforcement(serveripaddress : windows_core::PCWSTR, fglobalpolicy : windows_core::BOOL, subnetaddress : u32, enable : windows_core::BOOL) -> u32); unsafe { DhcpV4SetPolicyEnforcement(serveripaddress.param().abi(), fglobalpolicy.into(), subnetaddress, enable.into()) } } #[inline] @@ -1579,7 +1579,7 @@ where P0: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4SetPolicyEx(serveripaddress : windows_core::PCWSTR, fieldsmodified : u32, globalpolicy : super::super::Foundation:: BOOL, subnetaddress : u32, policyname : windows_core::PCWSTR, policy : *const DHCP_POLICY_EX) -> u32); + windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV4SetPolicyEx(serveripaddress : windows_core::PCWSTR, fieldsmodified : u32, globalpolicy : windows_core::BOOL, subnetaddress : u32, policyname : windows_core::PCWSTR, policy : *const DHCP_POLICY_EX) -> u32); unsafe { DhcpV4SetPolicyEx(serveripaddress.param().abi(), fieldsmodified, globalpolicy.into(), subnetaddress, policyname.param().abi(), policy) } } #[inline] @@ -1611,7 +1611,7 @@ pub unsafe fn DhcpV6GetStatelessStoreParams(serveripaddress: P0, fserverleve where P0: windows_core::Param, { - windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV6GetStatelessStoreParams(serveripaddress : windows_core::PCWSTR, fserverlevel : super::super::Foundation:: BOOL, subnetaddress : DHCP_IPV6_ADDRESS, params : *mut *mut DHCPV6_STATELESS_PARAMS) -> u32); + windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV6GetStatelessStoreParams(serveripaddress : windows_core::PCWSTR, fserverlevel : windows_core::BOOL, subnetaddress : DHCP_IPV6_ADDRESS, params : *mut *mut DHCPV6_STATELESS_PARAMS) -> u32); unsafe { DhcpV6GetStatelessStoreParams(serveripaddress.param().abi(), fserverlevel.into(), core::mem::transmute(subnetaddress), params as _) } } #[inline] @@ -1619,7 +1619,7 @@ pub unsafe fn DhcpV6SetStatelessStoreParams(serveripaddress: P0, fserverleve where P0: windows_core::Param, { - windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV6SetStatelessStoreParams(serveripaddress : windows_core::PCWSTR, fserverlevel : super::super::Foundation:: BOOL, subnetaddress : DHCP_IPV6_ADDRESS, fieldmodified : u32, params : *const DHCPV6_STATELESS_PARAMS) -> u32); + windows_targets::link!("dhcpsapi.dll" "system" fn DhcpV6SetStatelessStoreParams(serveripaddress : windows_core::PCWSTR, fserverlevel : windows_core::BOOL, subnetaddress : DHCP_IPV6_ADDRESS, fieldmodified : u32, params : *const DHCPV6_STATELESS_PARAMS) -> u32); unsafe { DhcpV6SetStatelessStoreParams(serveripaddress.param().abi(), fserverlevel.into(), core::mem::transmute(subnetaddress), fieldmodified, params) } } #[inline] @@ -1653,7 +1653,7 @@ pub unsafe fn Dhcpv6RequestParams(forcenewinform: bool, reserved: *mut core: where P2: windows_core::Param, { - windows_targets::link!("dhcpcsvc6.dll" "system" fn Dhcpv6RequestParams(forcenewinform : super::super::Foundation:: BOOL, reserved : *mut core::ffi::c_void, adaptername : windows_core::PCWSTR, classid : *mut DHCPV6CAPI_CLASSID, recdparams : DHCPV6CAPI_PARAMS_ARRAY, buffer : *mut u8, psize : *mut u32) -> u32); + windows_targets::link!("dhcpcsvc6.dll" "system" fn Dhcpv6RequestParams(forcenewinform : windows_core::BOOL, reserved : *mut core::ffi::c_void, adaptername : windows_core::PCWSTR, classid : *mut DHCPV6CAPI_CLASSID, recdparams : DHCPV6CAPI_PARAMS_ARRAY, buffer : *mut u8, psize : *mut u32) -> u32); unsafe { Dhcpv6RequestParams(forcenewinform.into(), reserved as _, adaptername.param().abi(), classid as _, core::mem::transmute(recdparams), buffer as _, psize as _) } } #[inline] @@ -1692,7 +1692,7 @@ pub const DEFAULTQUARSETTING: QuarantineStatus = QuarantineStatus(5i32); pub struct DHCPAPI_PARAMS { pub Flags: u32, pub OptionId: u32, - pub IsVendor: super::super::Foundation::BOOL, + pub IsVendor: windows_core::BOOL, pub Data: *mut u8, pub nBytesData: u32, } @@ -1773,7 +1773,7 @@ pub struct DHCPV4_FAILOVER_CLIENT_INFO { pub AddressState: u8, pub Status: QuarantineStatus, pub ProbationEnds: DATE_TIME, - pub QuarantineCapable: super::super::Foundation::BOOL, + pub QuarantineCapable: windows_core::BOOL, pub SentPotExpTime: u32, pub AckPotExpTime: u32, pub RecvPotExpTime: u32, @@ -1814,7 +1814,7 @@ pub struct DHCPV4_FAILOVER_CLIENT_INFO_EX { pub AddressState: u8, pub Status: QuarantineStatus, pub ProbationEnds: DATE_TIME, - pub QuarantineCapable: super::super::Foundation::BOOL, + pub QuarantineCapable: windows_core::BOOL, pub SentPotExpTime: u32, pub AckPotExpTime: u32, pub RecvPotExpTime: u32, @@ -1848,7 +1848,7 @@ impl Default for DHCPV6CAPI_CLASSID { pub struct DHCPV6CAPI_PARAMS { pub Flags: u32, pub OptionId: u32, - pub IsVendor: super::super::Foundation::BOOL, + pub IsVendor: windows_core::BOOL, pub Data: *mut u8, pub nBytesData: u32, } @@ -1905,7 +1905,7 @@ impl Default for DHCPV6PrefixLeaseInformation { #[derive(Clone, Copy, Debug, PartialEq)] pub struct DHCPV6_BIND_ELEMENT { pub Flags: u32, - pub fBoundToDHCPServer: super::super::Foundation::BOOL, + pub fBoundToDHCPServer: windows_core::BOOL, pub AdapterPrimaryAddress: DHCP_IPV6_ADDRESS, pub AdapterSubnetAddress: DHCP_IPV6_ADDRESS, pub IfDescription: windows_core::PWSTR, @@ -1964,7 +1964,7 @@ pub const DHCPV6_OPTION_VENDOR_OPTS: u32 = 17u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DHCPV6_STATELESS_PARAMS { - pub Status: super::super::Foundation::BOOL, + pub Status: windows_core::BOOL, pub PurgeInterval: u32, } impl Default for DHCPV6_STATELESS_PARAMS { @@ -2001,9 +2001,9 @@ impl Default for DHCPV6_STATELESS_STATS { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DHCP_ADDR_PATTERN { - pub MatchHWType: super::super::Foundation::BOOL, + pub MatchHWType: windows_core::BOOL, pub HWType: u8, - pub IsWildcard: super::super::Foundation::BOOL, + pub IsWildcard: windows_core::BOOL, pub Length: u8, pub Pattern: [u8; 255], } @@ -2054,7 +2054,7 @@ impl Default for DHCP_ALL_OPTION_VALUES { pub struct DHCP_ALL_OPTION_VALUES_0 { pub ClassName: windows_core::PWSTR, pub VendorName: windows_core::PWSTR, - pub IsVendor: super::super::Foundation::BOOL, + pub IsVendor: windows_core::BOOL, pub OptionsArray: *mut DHCP_OPTION_VALUE_ARRAY, } impl Default for DHCP_ALL_OPTION_VALUES_0 { @@ -2079,7 +2079,7 @@ impl Default for DHCP_ALL_OPTION_VALUES_PB { pub struct DHCP_ALL_OPTION_VALUES_PB_0 { pub PolicyName: windows_core::PWSTR, pub VendorName: windows_core::PWSTR, - pub IsVendor: super::super::Foundation::BOOL, + pub IsVendor: windows_core::BOOL, pub OptionsArray: *mut DHCP_OPTION_VALUE_ARRAY, } impl Default for DHCP_ALL_OPTION_VALUES_PB_0 { @@ -2102,7 +2102,7 @@ impl Default for DHCP_ATTRIB { #[repr(C)] #[derive(Clone, Copy)] pub union DHCP_ATTRIB_0 { - pub DhcpAttribBool: super::super::Foundation::BOOL, + pub DhcpAttribBool: windows_core::BOOL, pub DhcpAttribUlong: u32, } impl Default for DHCP_ATTRIB_0 { @@ -2144,7 +2144,7 @@ impl Default for DHCP_BINARY_DATA { #[derive(Clone, Copy, Debug, PartialEq)] pub struct DHCP_BIND_ELEMENT { pub Flags: u32, - pub fBoundToDHCPServer: super::super::Foundation::BOOL, + pub fBoundToDHCPServer: windows_core::BOOL, pub AdapterPrimaryAddress: u32, pub AdapterSubnetAddress: u32, pub IfDescription: windows_core::PWSTR, @@ -2208,7 +2208,7 @@ pub struct DHCP_CLASS_INFO { pub ClassName: windows_core::PWSTR, pub ClassComment: windows_core::PWSTR, pub ClassDataLength: u32, - pub IsVendor: super::super::Foundation::BOOL, + pub IsVendor: windows_core::BOOL, pub Flags: u32, pub ClassData: *mut u8, } @@ -2245,7 +2245,7 @@ pub struct DHCP_CLASS_INFO_V6 { pub ClassName: windows_core::PWSTR, pub ClassComment: windows_core::PWSTR, pub ClassDataLength: u32, - pub IsVendor: super::super::Foundation::BOOL, + pub IsVendor: windows_core::BOOL, pub EnterpriseNumber: u32, pub Flags: u32, pub ClassData: *mut u8, @@ -2271,7 +2271,7 @@ pub struct DHCP_CLIENT_FILTER_STATUS_INFO { pub AddressState: u8, pub Status: QuarantineStatus, pub ProbationEnds: DATE_TIME, - pub QuarantineCapable: super::super::Foundation::BOOL, + pub QuarantineCapable: windows_core::BOOL, pub FilterStatus: u32, } impl Default for DHCP_CLIENT_FILTER_STATUS_INFO { @@ -2375,7 +2375,7 @@ pub struct DHCP_CLIENT_INFO_EX { pub AddressState: u8, pub Status: QuarantineStatus, pub ProbationEnds: DATE_TIME, - pub QuarantineCapable: super::super::Foundation::BOOL, + pub QuarantineCapable: windows_core::BOOL, pub FilterStatus: u32, pub PolicyName: windows_core::PWSTR, pub Properties: *mut DHCP_PROPERTY_ARRAY, @@ -2410,7 +2410,7 @@ pub struct DHCP_CLIENT_INFO_PB { pub AddressState: u8, pub Status: QuarantineStatus, pub ProbationEnds: DATE_TIME, - pub QuarantineCapable: super::super::Foundation::BOOL, + pub QuarantineCapable: windows_core::BOOL, pub FilterStatus: u32, pub PolicyName: windows_core::PWSTR, } @@ -2497,7 +2497,7 @@ pub struct DHCP_CLIENT_INFO_VQ { pub AddressState: u8, pub Status: QuarantineStatus, pub ProbationEnds: DATE_TIME, - pub QuarantineCapable: super::super::Foundation::BOOL, + pub QuarantineCapable: windows_core::BOOL, } impl Default for DHCP_CLIENT_INFO_VQ { fn default() -> Self { @@ -2606,8 +2606,8 @@ impl Default for DHCP_FILTER_ENUM_INFO { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DHCP_FILTER_GLOBAL_INFO { - pub EnforceAllowList: super::super::Foundation::BOOL, - pub EnforceDenyList: super::super::Foundation::BOOL, + pub EnforceAllowList: windows_core::BOOL, + pub EnforceDenyList: windows_core::BOOL, } impl Default for DHCP_FILTER_GLOBAL_INFO { fn default() -> Self { @@ -3065,14 +3065,14 @@ impl Default for DHCP_PERF_STATS { #[derive(Clone, Copy, Debug, PartialEq)] pub struct DHCP_POLICY { pub PolicyName: windows_core::PWSTR, - pub IsGlobalPolicy: super::super::Foundation::BOOL, + pub IsGlobalPolicy: windows_core::BOOL, pub Subnet: u32, pub ProcessingOrder: u32, pub Conditions: *mut DHCP_POL_COND_ARRAY, pub Expressions: *mut DHCP_POL_EXPR_ARRAY, pub Ranges: *mut DHCP_IP_RANGE_ARRAY, pub Description: windows_core::PWSTR, - pub Enabled: super::super::Foundation::BOOL, + pub Enabled: windows_core::BOOL, } impl Default for DHCP_POLICY { fn default() -> Self { @@ -3094,14 +3094,14 @@ impl Default for DHCP_POLICY_ARRAY { #[derive(Clone, Copy, Debug, PartialEq)] pub struct DHCP_POLICY_EX { pub PolicyName: windows_core::PWSTR, - pub IsGlobalPolicy: super::super::Foundation::BOOL, + pub IsGlobalPolicy: windows_core::BOOL, pub Subnet: u32, pub ProcessingOrder: u32, pub Conditions: *mut DHCP_POL_COND_ARRAY, pub Expressions: *mut DHCP_POL_EXPR_ARRAY, pub Ranges: *mut DHCP_IP_RANGE_ARRAY, pub Description: windows_core::PWSTR, - pub Enabled: super::super::Foundation::BOOL, + pub Enabled: windows_core::BOOL, pub Properties: *mut DHCP_PROPERTY_ARRAY, } impl Default for DHCP_POLICY_EX { @@ -3373,7 +3373,7 @@ pub struct DHCP_SERVER_CONFIG_INFO_V4 { pub dwPingRetries: u32, pub cbBootTableString: u32, pub wszBootTableString: windows_core::PWSTR, - pub fAuditLog: super::super::Foundation::BOOL, + pub fAuditLog: windows_core::BOOL, } impl Default for DHCP_SERVER_CONFIG_INFO_V4 { fn default() -> Self { @@ -3383,15 +3383,15 @@ impl Default for DHCP_SERVER_CONFIG_INFO_V4 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DHCP_SERVER_CONFIG_INFO_V6 { - pub UnicastFlag: super::super::Foundation::BOOL, - pub RapidCommitFlag: super::super::Foundation::BOOL, + pub UnicastFlag: windows_core::BOOL, + pub RapidCommitFlag: windows_core::BOOL, pub PreferredLifetime: u32, pub ValidLifetime: u32, pub T1: u32, pub T2: u32, pub PreferredLifetimeIATA: u32, pub ValidLifetimeIATA: u32, - pub fAuditLog: super::super::Foundation::BOOL, + pub fAuditLog: windows_core::BOOL, } impl Default for DHCP_SERVER_CONFIG_INFO_V6 { fn default() -> Self { @@ -3413,10 +3413,10 @@ pub struct DHCP_SERVER_CONFIG_INFO_VQ { pub dwPingRetries: u32, pub cbBootTableString: u32, pub wszBootTableString: windows_core::PWSTR, - pub fAuditLog: super::super::Foundation::BOOL, - pub QuarantineOn: super::super::Foundation::BOOL, + pub fAuditLog: windows_core::BOOL, + pub QuarantineOn: windows_core::BOOL, pub QuarDefFail: u32, - pub QuarRuntimeStatus: super::super::Foundation::BOOL, + pub QuarRuntimeStatus: windows_core::BOOL, } impl Default for DHCP_SERVER_CONFIG_INFO_VQ { fn default() -> Self { @@ -3927,7 +3927,7 @@ pub type LPDHCP_DROP_SEND = Option u32>; pub type LPDHCP_GIVE_ADDRESS = Option u32>; pub type LPDHCP_HANDLE_OPTIONS = Option u32>; -pub type LPDHCP_NEWPKT = Option u32>; +pub type LPDHCP_NEWPKT = Option u32>; pub type LPDHCP_PROB = Option u32>; pub const LoadBalance: DHCP_FAILOVER_MODE = DHCP_FAILOVER_MODE(0i32); pub const MAC_ADDRESS_LENGTH: u32 = 6u32; diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dns/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dns/mod.rs index 66d5f1acbb..c7f643113f 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dns/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Dns/mod.rs @@ -164,21 +164,21 @@ pub unsafe fn DnsModifyRecordsInSet_W(paddrecords: Option<*const DNS_RECORDA>, p unsafe { DnsModifyRecordsInSet_W(paddrecords.unwrap_or(core::mem::zeroed()) as _, pdeleterecords.unwrap_or(core::mem::zeroed()) as _, options, hcredentials.unwrap_or(core::mem::zeroed()) as _, pextralist.unwrap_or(core::mem::zeroed()) as _, preserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn DnsNameCompare_A(pname1: P0, pname2: P1) -> super::super::Foundation::BOOL +pub unsafe fn DnsNameCompare_A(pname1: P0, pname2: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("dnsapi.dll" "system" fn DnsNameCompare_A(pname1 : windows_core::PCSTR, pname2 : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("dnsapi.dll" "system" fn DnsNameCompare_A(pname1 : windows_core::PCSTR, pname2 : windows_core::PCSTR) -> windows_core::BOOL); unsafe { DnsNameCompare_A(pname1.param().abi(), pname2.param().abi()) } } #[inline] -pub unsafe fn DnsNameCompare_W(pname1: P0, pname2: P1) -> super::super::Foundation::BOOL +pub unsafe fn DnsNameCompare_W(pname1: P0, pname2: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("dnsapi.dll" "system" fn DnsNameCompare_W(pname1 : windows_core::PCWSTR, pname2 : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("dnsapi.dll" "system" fn DnsNameCompare_W(pname1 : windows_core::PCWSTR, pname2 : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { DnsNameCompare_W(pname1.param().abi(), pname2.param().abi()) } } #[inline] @@ -229,8 +229,8 @@ where unsafe { DnsQuery_W(pszname.param().abi(), wtype, options, pextra.unwrap_or(core::mem::zeroed()) as _, ppqueryresults as _, preserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn DnsRecordCompare(precord1: *const DNS_RECORDA, precord2: *const DNS_RECORDA) -> super::super::Foundation::BOOL { - windows_targets::link!("dnsapi.dll" "system" fn DnsRecordCompare(precord1 : *const DNS_RECORDA, precord2 : *const DNS_RECORDA) -> super::super::Foundation:: BOOL); +pub unsafe fn DnsRecordCompare(precord1: *const DNS_RECORDA, precord2: *const DNS_RECORDA) -> windows_core::BOOL { + windows_targets::link!("dnsapi.dll" "system" fn DnsRecordCompare(precord1 : *const DNS_RECORDA, precord2 : *const DNS_RECORDA) -> windows_core::BOOL); unsafe { DnsRecordCompare(precord1, precord2) } } #[inline] @@ -239,8 +239,8 @@ pub unsafe fn DnsRecordCopyEx(precord: *const DNS_RECORDA, charsetin: DNS_CHARSE unsafe { DnsRecordCopyEx(precord, charsetin, charsetout) } } #[inline] -pub unsafe fn DnsRecordSetCompare(prr1: *mut DNS_RECORDA, prr2: *mut DNS_RECORDA, ppdiff1: Option<*mut *mut DNS_RECORDA>, ppdiff2: Option<*mut *mut DNS_RECORDA>) -> super::super::Foundation::BOOL { - windows_targets::link!("dnsapi.dll" "system" fn DnsRecordSetCompare(prr1 : *mut DNS_RECORDA, prr2 : *mut DNS_RECORDA, ppdiff1 : *mut *mut DNS_RECORDA, ppdiff2 : *mut *mut DNS_RECORDA) -> super::super::Foundation:: BOOL); +pub unsafe fn DnsRecordSetCompare(prr1: *mut DNS_RECORDA, prr2: *mut DNS_RECORDA, ppdiff1: Option<*mut *mut DNS_RECORDA>, ppdiff2: Option<*mut *mut DNS_RECORDA>) -> windows_core::BOOL { + windows_targets::link!("dnsapi.dll" "system" fn DnsRecordSetCompare(prr1 : *mut DNS_RECORDA, prr2 : *mut DNS_RECORDA, ppdiff1 : *mut *mut DNS_RECORDA, ppdiff2 : *mut *mut DNS_RECORDA) -> windows_core::BOOL); unsafe { DnsRecordSetCompare(prr1 as _, prr2 as _, ppdiff1.unwrap_or(core::mem::zeroed()) as _, ppdiff2.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -367,19 +367,19 @@ where unsafe { DnsValidateName_W(pszname.param().abi(), format) } } #[inline] -pub unsafe fn DnsWriteQuestionToBuffer_UTF8(pdnsbuffer: *mut DNS_MESSAGE_BUFFER, pdwbuffersize: *mut u32, pszname: P2, wtype: u16, xid: u16, frecursiondesired: bool) -> super::super::Foundation::BOOL +pub unsafe fn DnsWriteQuestionToBuffer_UTF8(pdnsbuffer: *mut DNS_MESSAGE_BUFFER, pdwbuffersize: *mut u32, pszname: P2, wtype: u16, xid: u16, frecursiondesired: bool) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("dnsapi.dll" "system" fn DnsWriteQuestionToBuffer_UTF8(pdnsbuffer : *mut DNS_MESSAGE_BUFFER, pdwbuffersize : *mut u32, pszname : windows_core::PCSTR, wtype : u16, xid : u16, frecursiondesired : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("dnsapi.dll" "system" fn DnsWriteQuestionToBuffer_UTF8(pdnsbuffer : *mut DNS_MESSAGE_BUFFER, pdwbuffersize : *mut u32, pszname : windows_core::PCSTR, wtype : u16, xid : u16, frecursiondesired : windows_core::BOOL) -> windows_core::BOOL); unsafe { DnsWriteQuestionToBuffer_UTF8(pdnsbuffer as _, pdwbuffersize as _, pszname.param().abi(), wtype, xid, frecursiondesired.into()) } } #[inline] -pub unsafe fn DnsWriteQuestionToBuffer_W(pdnsbuffer: *mut DNS_MESSAGE_BUFFER, pdwbuffersize: *mut u32, pszname: P2, wtype: u16, xid: u16, frecursiondesired: bool) -> super::super::Foundation::BOOL +pub unsafe fn DnsWriteQuestionToBuffer_W(pdnsbuffer: *mut DNS_MESSAGE_BUFFER, pdwbuffersize: *mut u32, pszname: P2, wtype: u16, xid: u16, frecursiondesired: bool) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("dnsapi.dll" "system" fn DnsWriteQuestionToBuffer_W(pdnsbuffer : *mut DNS_MESSAGE_BUFFER, pdwbuffersize : *mut u32, pszname : windows_core::PCWSTR, wtype : u16, xid : u16, frecursiondesired : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("dnsapi.dll" "system" fn DnsWriteQuestionToBuffer_W(pdnsbuffer : *mut DNS_MESSAGE_BUFFER, pdwbuffersize : *mut u32, pszname : windows_core::PCWSTR, wtype : u16, xid : u16, frecursiondesired : windows_core::BOOL) -> windows_core::BOOL); unsafe { DnsWriteQuestionToBuffer_W(pdnsbuffer as _, pdwbuffersize as _, pszname.param().abi(), wtype, xid, frecursiondesired.into()) } } pub const DDR_MAX_IP_HINTS: u32 = 4u32; @@ -692,7 +692,7 @@ pub struct DNS_CONNECTION_PROXY_INFO_EX { pub ProxyInfo: DNS_CONNECTION_PROXY_INFO, pub dwInterfaceIndex: u32, pub pwszConnectionName: windows_core::PWSTR, - pub fDirectConfiguration: super::super::Foundation::BOOL, + pub fDirectConfiguration: windows_core::BOOL, pub hConnection: super::super::Foundation::HANDLE, } impl Default for DNS_CONNECTION_PROXY_INFO_EX { @@ -1283,7 +1283,7 @@ pub struct DNS_QUERY_REQUEST3 { pub InterfaceIndex: u32, pub pQueryCompletionCallback: PDNS_QUERY_COMPLETION_ROUTINE, pub pQueryContext: *mut core::ffi::c_void, - pub IsNetworkQueryRequired: super::super::Foundation::BOOL, + pub IsNetworkQueryRequired: windows_core::BOOL, pub RequiredNetworkIndex: u32, pub cCustomServers: u32, pub pCustomServers: *mut DNS_CUSTOM_SERVER, @@ -1785,7 +1785,7 @@ pub struct DNS_SERVICE_REGISTER_REQUEST { pub pRegisterCompletionCallback: PDNS_SERVICE_REGISTER_COMPLETE, pub pQueryContext: *mut core::ffi::c_void, pub hCredentials: super::super::Foundation::HANDLE, - pub unicastEnabled: super::super::Foundation::BOOL, + pub unicastEnabled: windows_core::BOOL, } impl Default for DNS_SERVICE_REGISTER_REQUEST { fn default() -> Self { @@ -2028,7 +2028,7 @@ pub struct DNS_TKEY_DATAA { pub wKeyLength: u16, pub wOtherLength: u16, pub cAlgNameLength: u8, - pub bPacketPointers: super::super::Foundation::BOOL, + pub bPacketPointers: windows_core::BOOL, } impl Default for DNS_TKEY_DATAA { fn default() -> Self { @@ -2049,7 +2049,7 @@ pub struct DNS_TKEY_DATAW { pub wKeyLength: u16, pub wOtherLength: u16, pub cAlgNameLength: u8, - pub bPacketPointers: super::super::Foundation::BOOL, + pub bPacketPointers: windows_core::BOOL, } impl Default for DNS_TKEY_DATAW { fn default() -> Self { @@ -2089,7 +2089,7 @@ pub struct DNS_TSIG_DATAA { pub wSigLength: u16, pub wOtherLength: u16, pub cAlgNameLength: u8, - pub bPacketPointers: super::super::Foundation::BOOL, + pub bPacketPointers: windows_core::BOOL, } impl Default for DNS_TSIG_DATAA { fn default() -> Self { @@ -2110,7 +2110,7 @@ pub struct DNS_TSIG_DATAW { pub wSigLength: u16, pub wOtherLength: u16, pub cAlgNameLength: u8, - pub bPacketPointers: super::super::Foundation::BOOL, + pub bPacketPointers: windows_core::BOOL, } impl Default for DNS_TSIG_DATAW { fn default() -> Self { @@ -2434,7 +2434,7 @@ pub struct MDNS_QUERY_REQUEST { pub InterfaceIndex: u32, pub pQueryCallback: PMDNS_QUERY_CALLBACK, pub pQueryContext: *mut core::ffi::c_void, - pub fAnswerReceived: super::super::Foundation::BOOL, + pub fAnswerReceived: windows_core::BOOL, pub ulResendCount: u32, } impl Default for MDNS_QUERY_REQUEST { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs index 955a1fa418..ff8e00c5eb 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs @@ -5,8 +5,8 @@ pub unsafe fn AddIPAddress(address: u32, ipmask: u32, ifindex: u32, ntecontext: } #[cfg(feature = "Win32_System_IO")] #[inline] -pub unsafe fn CancelIPChangeNotify(notifyoverlapped: *const super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL { - windows_targets::link!("iphlpapi.dll" "system" fn CancelIPChangeNotify(notifyoverlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); +pub unsafe fn CancelIPChangeNotify(notifyoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::BOOL { + windows_targets::link!("iphlpapi.dll" "system" fn CancelIPChangeNotify(notifyoverlapped : *const super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { CancelIPChangeNotify(notifyoverlapped) } } #[inline] @@ -353,12 +353,12 @@ pub unsafe fn GetDnsSettings(settings: *mut DNS_SETTINGS) -> super::super::Found } #[inline] pub unsafe fn GetExtendedTcpTable(ptcptable: Option<*mut core::ffi::c_void>, pdwsize: *mut u32, border: bool, ulaf: u32, tableclass: TCP_TABLE_CLASS, reserved: u32) -> u32 { - windows_targets::link!("iphlpapi.dll" "system" fn GetExtendedTcpTable(ptcptable : *mut core::ffi::c_void, pdwsize : *mut u32, border : super::super::Foundation:: BOOL, ulaf : u32, tableclass : TCP_TABLE_CLASS, reserved : u32) -> u32); + windows_targets::link!("iphlpapi.dll" "system" fn GetExtendedTcpTable(ptcptable : *mut core::ffi::c_void, pdwsize : *mut u32, border : windows_core::BOOL, ulaf : u32, tableclass : TCP_TABLE_CLASS, reserved : u32) -> u32); unsafe { GetExtendedTcpTable(ptcptable.unwrap_or(core::mem::zeroed()) as _, pdwsize as _, border.into(), ulaf, tableclass, reserved) } } #[inline] pub unsafe fn GetExtendedUdpTable(pudptable: Option<*mut core::ffi::c_void>, pdwsize: *mut u32, border: bool, ulaf: u32, tableclass: UDP_TABLE_CLASS, reserved: u32) -> u32 { - windows_targets::link!("iphlpapi.dll" "system" fn GetExtendedUdpTable(pudptable : *mut core::ffi::c_void, pdwsize : *mut u32, border : super::super::Foundation:: BOOL, ulaf : u32, tableclass : UDP_TABLE_CLASS, reserved : u32) -> u32); + windows_targets::link!("iphlpapi.dll" "system" fn GetExtendedUdpTable(pudptable : *mut core::ffi::c_void, pdwsize : *mut u32, border : windows_core::BOOL, ulaf : u32, tableclass : UDP_TABLE_CLASS, reserved : u32) -> u32); unsafe { GetExtendedUdpTable(pudptable.unwrap_or(core::mem::zeroed()) as _, pdwsize as _, border.into(), ulaf, tableclass, reserved) } } #[inline] @@ -400,7 +400,7 @@ pub unsafe fn GetIfStackTable(table: *mut *mut MIB_IFSTACK_TABLE) -> super::supe } #[inline] pub unsafe fn GetIfTable(piftable: Option<*mut MIB_IFTABLE>, pdwsize: *mut u32, border: bool) -> u32 { - windows_targets::link!("iphlpapi.dll" "system" fn GetIfTable(piftable : *mut MIB_IFTABLE, pdwsize : *mut u32, border : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("iphlpapi.dll" "system" fn GetIfTable(piftable : *mut MIB_IFTABLE, pdwsize : *mut u32, border : windows_core::BOOL) -> u32); unsafe { GetIfTable(piftable.unwrap_or(core::mem::zeroed()) as _, pdwsize as _, border.into()) } } #[cfg(feature = "Win32_NetworkManagement_Ndis")] @@ -456,7 +456,7 @@ pub unsafe fn GetInvertedIfStackTable(table: *mut *mut MIB_INVERTEDIFSTACK_TABLE } #[inline] pub unsafe fn GetIpAddrTable(pipaddrtable: Option<*mut MIB_IPADDRTABLE>, pdwsize: *mut u32, border: bool) -> u32 { - windows_targets::link!("iphlpapi.dll" "system" fn GetIpAddrTable(pipaddrtable : *mut MIB_IPADDRTABLE, pdwsize : *mut u32, border : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("iphlpapi.dll" "system" fn GetIpAddrTable(pipaddrtable : *mut MIB_IPADDRTABLE, pdwsize : *mut u32, border : windows_core::BOOL) -> u32); unsafe { GetIpAddrTable(pipaddrtable.unwrap_or(core::mem::zeroed()) as _, pdwsize as _, border.into()) } } #[inline] @@ -473,7 +473,7 @@ pub unsafe fn GetIpForwardEntry2(row: *mut MIB_IPFORWARD_ROW2) -> super::super:: #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn GetIpForwardTable(pipforwardtable: Option<*mut MIB_IPFORWARDTABLE>, pdwsize: *mut u32, border: bool) -> u32 { - windows_targets::link!("iphlpapi.dll" "system" fn GetIpForwardTable(pipforwardtable : *mut MIB_IPFORWARDTABLE, pdwsize : *mut u32, border : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("iphlpapi.dll" "system" fn GetIpForwardTable(pipforwardtable : *mut MIB_IPFORWARDTABLE, pdwsize : *mut u32, border : windows_core::BOOL) -> u32); unsafe { GetIpForwardTable(pipforwardtable.unwrap_or(core::mem::zeroed()) as _, pdwsize as _, border.into()) } } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] @@ -502,7 +502,7 @@ pub unsafe fn GetIpNetEntry2(row: *mut MIB_IPNET_ROW2) -> super::super::Foundati } #[inline] pub unsafe fn GetIpNetTable(ipnettable: Option<*mut MIB_IPNETTABLE>, sizepointer: *mut u32, order: bool) -> u32 { - windows_targets::link!("iphlpapi.dll" "system" fn GetIpNetTable(ipnettable : *mut MIB_IPNETTABLE, sizepointer : *mut u32, order : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("iphlpapi.dll" "system" fn GetIpNetTable(ipnettable : *mut MIB_IPNETTABLE, sizepointer : *mut u32, order : windows_core::BOOL) -> u32); unsafe { GetIpNetTable(ipnettable.unwrap_or(core::mem::zeroed()) as _, sizepointer as _, order.into()) } } #[cfg(all(feature = "Win32_NetworkManagement_Ndis", feature = "Win32_Networking_WinSock"))] @@ -655,7 +655,7 @@ pub unsafe fn GetPerTcpConnectionEStats(row: *const MIB_TCPROW_LH, estatstype: T } #[inline] pub unsafe fn GetRTTAndHopCount(destipaddress: u32, hopcount: *mut u32, maxhops: u32, rtt: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("iphlpapi.dll" "system" fn GetRTTAndHopCount(destipaddress : u32, hopcount : *mut u32, maxhops : u32, rtt : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("iphlpapi.dll" "system" fn GetRTTAndHopCount(destipaddress : u32, hopcount : *mut u32, maxhops : u32, rtt : *mut u32) -> windows_core::BOOL); unsafe { GetRTTAndHopCount(destipaddress, hopcount as _, maxhops, rtt as _).ok() } } #[cfg(feature = "Win32_NetworkManagement_Ndis")] @@ -667,13 +667,13 @@ pub unsafe fn GetSessionCompartmentId(sessionid: u32) -> super::Ndis::NET_IF_COM #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn GetTcp6Table(tcptable: *mut MIB_TCP6TABLE, sizepointer: *mut u32, order: bool) -> u32 { - windows_targets::link!("iphlpapi.dll" "system" fn GetTcp6Table(tcptable : *mut MIB_TCP6TABLE, sizepointer : *mut u32, order : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("iphlpapi.dll" "system" fn GetTcp6Table(tcptable : *mut MIB_TCP6TABLE, sizepointer : *mut u32, order : windows_core::BOOL) -> u32); unsafe { GetTcp6Table(tcptable as _, sizepointer as _, order.into()) } } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn GetTcp6Table2(tcptable: *mut MIB_TCP6TABLE2, sizepointer: *mut u32, order: bool) -> u32 { - windows_targets::link!("iphlpapi.dll" "system" fn GetTcp6Table2(tcptable : *mut MIB_TCP6TABLE2, sizepointer : *mut u32, order : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("iphlpapi.dll" "system" fn GetTcp6Table2(tcptable : *mut MIB_TCP6TABLE2, sizepointer : *mut u32, order : windows_core::BOOL) -> u32); unsafe { GetTcp6Table2(tcptable as _, sizepointer as _, order.into()) } } #[inline] @@ -693,12 +693,12 @@ pub unsafe fn GetTcpStatisticsEx2(statistics: *mut MIB_TCPSTATS2, family: u32) - } #[inline] pub unsafe fn GetTcpTable(tcptable: Option<*mut MIB_TCPTABLE>, sizepointer: *mut u32, order: bool) -> u32 { - windows_targets::link!("iphlpapi.dll" "system" fn GetTcpTable(tcptable : *mut MIB_TCPTABLE, sizepointer : *mut u32, order : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("iphlpapi.dll" "system" fn GetTcpTable(tcptable : *mut MIB_TCPTABLE, sizepointer : *mut u32, order : windows_core::BOOL) -> u32); unsafe { GetTcpTable(tcptable.unwrap_or(core::mem::zeroed()) as _, sizepointer as _, order.into()) } } #[inline] pub unsafe fn GetTcpTable2(tcptable: Option<*mut MIB_TCPTABLE2>, sizepointer: *mut u32, order: bool) -> u32 { - windows_targets::link!("iphlpapi.dll" "system" fn GetTcpTable2(tcptable : *mut MIB_TCPTABLE2, sizepointer : *mut u32, order : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("iphlpapi.dll" "system" fn GetTcpTable2(tcptable : *mut MIB_TCPTABLE2, sizepointer : *mut u32, order : windows_core::BOOL) -> u32); unsafe { GetTcpTable2(tcptable.unwrap_or(core::mem::zeroed()) as _, sizepointer as _, order.into()) } } #[inline] @@ -709,7 +709,7 @@ pub unsafe fn GetTeredoPort(port: *mut u16) -> super::super::Foundation::WIN32_E #[cfg(feature = "Win32_Networking_WinSock")] #[inline] pub unsafe fn GetUdp6Table(udp6table: Option<*mut MIB_UDP6TABLE>, sizepointer: *mut u32, order: bool) -> u32 { - windows_targets::link!("iphlpapi.dll" "system" fn GetUdp6Table(udp6table : *mut MIB_UDP6TABLE, sizepointer : *mut u32, order : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("iphlpapi.dll" "system" fn GetUdp6Table(udp6table : *mut MIB_UDP6TABLE, sizepointer : *mut u32, order : windows_core::BOOL) -> u32); unsafe { GetUdp6Table(udp6table.unwrap_or(core::mem::zeroed()) as _, sizepointer as _, order.into()) } } #[inline] @@ -729,7 +729,7 @@ pub unsafe fn GetUdpStatisticsEx2(statistics: *mut MIB_UDPSTATS2, family: u32) - } #[inline] pub unsafe fn GetUdpTable(udptable: Option<*mut MIB_UDPTABLE>, sizepointer: *mut u32, order: bool) -> u32 { - windows_targets::link!("iphlpapi.dll" "system" fn GetUdpTable(udptable : *mut MIB_UDPTABLE, sizepointer : *mut u32, order : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("iphlpapi.dll" "system" fn GetUdpTable(udptable : *mut MIB_UDPTABLE, sizepointer : *mut u32, order : windows_core::BOOL) -> u32); unsafe { GetUdpTable(udptable.unwrap_or(core::mem::zeroed()) as _, sizepointer as _, order.into()) } } #[inline] @@ -768,7 +768,7 @@ pub unsafe fn Icmp6SendEcho2(icmphandle: super::super::Foundation::HANDLE, event } #[inline] pub unsafe fn IcmpCloseHandle(icmphandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("iphlpapi.dll" "system" fn IcmpCloseHandle(icmphandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("iphlpapi.dll" "system" fn IcmpCloseHandle(icmphandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { IcmpCloseHandle(icmphandle).ok() } } #[inline] @@ -839,7 +839,7 @@ pub unsafe fn LookupPersistentUdpPortReservation(startport: u16, numberofports: } #[inline] pub unsafe fn NhpAllocateAndGetInterfaceInfoFromStack(pptable: *mut *mut IP_INTERFACE_NAME_INFO_W2KSP1, pdwcount: *mut u32, border: bool, hheap: super::super::Foundation::HANDLE, dwflags: u32) -> u32 { - windows_targets::link!("iphlpapi.dll" "system" fn NhpAllocateAndGetInterfaceInfoFromStack(pptable : *mut *mut IP_INTERFACE_NAME_INFO_W2KSP1, pdwcount : *mut u32, border : super::super::Foundation:: BOOL, hheap : super::super::Foundation:: HANDLE, dwflags : u32) -> u32); + windows_targets::link!("iphlpapi.dll" "system" fn NhpAllocateAndGetInterfaceInfoFromStack(pptable : *mut *mut IP_INTERFACE_NAME_INFO_W2KSP1, pdwcount : *mut u32, border : windows_core::BOOL, hheap : super::super::Foundation:: HANDLE, dwflags : u32) -> u32); unsafe { NhpAllocateAndGetInterfaceInfoFromStack(pptable as _, pdwcount as _, border.into(), hheap, dwflags) } } #[cfg(feature = "Win32_System_IO")] @@ -925,7 +925,7 @@ pub unsafe fn PfBindInterfaceToIndex(pinterface: *mut core::ffi::c_void, dwindex } #[inline] pub unsafe fn PfCreateInterface(dwname: u32, inaction: PFFORWARD_ACTION, outaction: PFFORWARD_ACTION, buselog: bool, bmustbeunique: bool, ppinterface: *mut *mut core::ffi::c_void) -> u32 { - windows_targets::link!("iphlpapi.dll" "system" fn PfCreateInterface(dwname : u32, inaction : PFFORWARD_ACTION, outaction : PFFORWARD_ACTION, buselog : super::super::Foundation:: BOOL, bmustbeunique : super::super::Foundation:: BOOL, ppinterface : *mut *mut core::ffi::c_void) -> u32); + windows_targets::link!("iphlpapi.dll" "system" fn PfCreateInterface(dwname : u32, inaction : PFFORWARD_ACTION, outaction : PFFORWARD_ACTION, buselog : windows_core::BOOL, bmustbeunique : windows_core::BOOL, ppinterface : *mut *mut core::ffi::c_void) -> u32); unsafe { PfCreateInterface(dwname, inaction, outaction, buselog.into(), bmustbeunique.into(), ppinterface as _) } } #[inline] @@ -940,7 +940,7 @@ pub unsafe fn PfDeleteLog() -> u32 { } #[inline] pub unsafe fn PfGetInterfaceStatistics(pinterface: *mut core::ffi::c_void, ppfstats: *mut PF_INTERFACE_STATS, pdwbuffersize: *mut u32, fresetcounters: bool) -> u32 { - windows_targets::link!("iphlpapi.dll" "system" fn PfGetInterfaceStatistics(pinterface : *mut core::ffi::c_void, ppfstats : *mut PF_INTERFACE_STATS, pdwbuffersize : *mut u32, fresetcounters : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("iphlpapi.dll" "system" fn PfGetInterfaceStatistics(pinterface : *mut core::ffi::c_void, ppfstats : *mut PF_INTERFACE_STATS, pdwbuffersize : *mut u32, fresetcounters : windows_core::BOOL) -> u32); unsafe { PfGetInterfaceStatistics(pinterface as _, ppfstats as _, pdwbuffersize as _, fresetcounters.into()) } } #[inline] @@ -2163,7 +2163,7 @@ pub struct IP_ADAPTER_INFO { pub IpAddressList: IP_ADDR_STRING, pub GatewayList: IP_ADDR_STRING, pub DhcpServer: IP_ADDR_STRING, - pub HaveWins: super::super::Foundation::BOOL, + pub HaveWins: windows_core::BOOL, pub PrimaryWinsServer: IP_ADDR_STRING, pub SecondaryWinsServer: IP_ADDR_STRING, pub LeaseObtained: i64, @@ -2836,8 +2836,8 @@ pub struct MIB_IFSTATUS { pub dwIfIndex: u32, pub dwAdminStatus: u32, pub dwOperationalStatus: u32, - pub bMHbeatActive: super::super::Foundation::BOOL, - pub bMHbeatAlive: super::super::Foundation::BOOL, + pub bMHbeatActive: windows_core::BOOL, + pub bMHbeatAlive: windows_core::BOOL, } impl Default for MIB_IFSTATUS { fn default() -> Self { @@ -3832,7 +3832,7 @@ impl Default for MIB_PROXYARP { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct MIB_ROUTESTATE { - pub bRoutesSetToStack: super::super::Foundation::BOOL, + pub bRoutesSetToStack: windows_core::BOOL, } impl Default for MIB_ROUTESTATE { fn default() -> Self { 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 3ba5644b00..8804e73b22 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/mod.rs @@ -829,13 +829,13 @@ impl IMbnDeviceService { (windows_core::Interface::vtable(self).DeviceServiceID)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn IsCommandSessionOpen(&self) -> windows_core::Result { + pub unsafe fn IsCommandSessionOpen(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsCommandSessionOpen)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsDataSessionOpen(&self) -> windows_core::Result { + pub unsafe fn IsDataSessionOpen(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsDataSessionOpen)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -864,8 +864,8 @@ pub struct IMbnDeviceService_Vtbl { WriteData: usize, pub InterfaceID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DeviceServiceID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsCommandSessionOpen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsDataSessionOpen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsCommandSessionOpen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsDataSessionOpen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait IMbnDeviceService_Impl: windows_core::IUnknownImpl { @@ -879,8 +879,8 @@ pub trait IMbnDeviceService_Impl: windows_core::IUnknownImpl { fn WriteData(&self, deviceservicedata: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result; fn InterfaceID(&self) -> windows_core::Result; fn DeviceServiceID(&self) -> windows_core::Result; - fn IsCommandSessionOpen(&self) -> windows_core::Result; - fn IsDataSessionOpen(&self) -> windows_core::Result; + fn IsCommandSessionOpen(&self) -> windows_core::Result; + fn IsDataSessionOpen(&self) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl IMbnDeviceService_Vtbl { @@ -1005,7 +1005,7 @@ impl IMbnDeviceService_Vtbl { } } } - unsafe extern "system" fn IsCommandSessionOpen(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsCommandSessionOpen(this: *mut core::ffi::c_void, value: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceService_Impl::IsCommandSessionOpen(this) { @@ -1017,7 +1017,7 @@ impl IMbnDeviceService_Vtbl { } } } - unsafe extern "system" fn IsDataSessionOpen(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsDataSessionOpen(this: *mut core::ffi::c_void, value: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMbnDeviceService_Impl::IsDataSessionOpen(this) { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Multicast/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Multicast/mod.rs index 6ece9dcb9b..95b25dcd84 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Multicast/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Multicast/mod.rs @@ -10,7 +10,7 @@ pub unsafe fn McastApiStartup(version: *mut u32) -> u32 { } #[inline] pub unsafe fn McastEnumerateScopes(addrfamily: u16, requery: bool, pscopelist: *mut MCAST_SCOPE_ENTRY, pscopelen: *mut u32, pscopecount: *mut u32) -> u32 { - windows_targets::link!("dhcpcsvc.dll" "system" fn McastEnumerateScopes(addrfamily : u16, requery : super::super::Foundation:: BOOL, pscopelist : *mut MCAST_SCOPE_ENTRY, pscopelen : *mut u32, pscopecount : *mut u32) -> u32); + windows_targets::link!("dhcpcsvc.dll" "system" fn McastEnumerateScopes(addrfamily : u16, requery : windows_core::BOOL, pscopelist : *mut MCAST_SCOPE_ENTRY, pscopelen : *mut u32, pscopecount : *mut u32) -> u32); unsafe { McastEnumerateScopes(addrfamily, requery.into(), pscopelist as _, pscopelen as _, pscopecount as _) } } #[inline] 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 53f53ecbd5..211383fdef 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs @@ -405,12 +405,12 @@ where unsafe { NetGroupSetUsers(servername.param().abi(), groupname.param().abi(), level, buf, totalentries) } } #[inline] -pub unsafe fn NetIsServiceAccount(servername: P0, accountname: P1, isservice: *mut super::super::Foundation::BOOL) -> super::super::Foundation::NTSTATUS +pub unsafe fn NetIsServiceAccount(servername: P0, accountname: P1, isservice: *mut windows_core::BOOL) -> super::super::Foundation::NTSTATUS where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("netapi32.dll" "system" fn NetIsServiceAccount(servername : windows_core::PCWSTR, accountname : windows_core::PCWSTR, isservice : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: NTSTATUS); + windows_targets::link!("netapi32.dll" "system" fn NetIsServiceAccount(servername : windows_core::PCWSTR, accountname : windows_core::PCWSTR, isservice : *mut windows_core::BOOL) -> super::super::Foundation:: NTSTATUS); unsafe { NetIsServiceAccount(servername.param().abi(), accountname.param().abi(), isservice as _) } } #[inline] @@ -1315,7 +1315,7 @@ pub unsafe fn TraceDumpExA(dwtraceid: u32, dwflags: u32, lpbbytes: *mut u8, where P6: windows_core::Param, { - windows_targets::link!("rtutils.dll" "system" fn TraceDumpExA(dwtraceid : u32, dwflags : u32, lpbbytes : *mut u8, dwbytecount : u32, dwgroupsize : u32, baddressprefix : super::super::Foundation:: BOOL, lpszprefix : windows_core::PCSTR) -> u32); + windows_targets::link!("rtutils.dll" "system" fn TraceDumpExA(dwtraceid : u32, dwflags : u32, lpbbytes : *mut u8, dwbytecount : u32, dwgroupsize : u32, baddressprefix : windows_core::BOOL, lpszprefix : windows_core::PCSTR) -> u32); unsafe { TraceDumpExA(dwtraceid, dwflags, lpbbytes as _, dwbytecount, dwgroupsize, baddressprefix.into(), lpszprefix.param().abi()) } } #[inline] @@ -1323,7 +1323,7 @@ pub unsafe fn TraceDumpExW(dwtraceid: u32, dwflags: u32, lpbbytes: *mut u8, where P6: windows_core::Param, { - windows_targets::link!("rtutils.dll" "system" fn TraceDumpExW(dwtraceid : u32, dwflags : u32, lpbbytes : *mut u8, dwbytecount : u32, dwgroupsize : u32, baddressprefix : super::super::Foundation:: BOOL, lpszprefix : windows_core::PCWSTR) -> u32); + windows_targets::link!("rtutils.dll" "system" fn TraceDumpExW(dwtraceid : u32, dwflags : u32, lpbbytes : *mut u8, dwbytecount : u32, dwgroupsize : u32, baddressprefix : windows_core::BOOL, lpszprefix : windows_core::PCWSTR) -> u32); unsafe { TraceDumpExW(dwtraceid, dwflags, lpbbytes as _, dwbytecount, dwgroupsize, baddressprefix.into(), lpszprefix.param().abi()) } } #[inline] @@ -3133,7 +3133,7 @@ pub struct INetCfgBindingPath_Vtbl { pub IsSamePathAs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsSubPathOf: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetPathToken: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetOwner: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDepth: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -3143,7 +3143,7 @@ pub trait INetCfgBindingPath_Impl: windows_core::IUnknownImpl { fn IsSamePathAs(&self, ppath: windows_core::Ref) -> windows_core::Result<()>; fn IsSubPathOf(&self, ppath: windows_core::Ref) -> windows_core::Result<()>; fn IsEnabled(&self) -> windows_core::Result<()>; - fn Enable(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Enable(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; fn GetPathToken(&self, ppszwpathtoken: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn GetOwner(&self, ppcomponent: windows_core::OutRef<'_, INetCfgComponent>) -> windows_core::Result<()>; fn GetDepth(&self) -> windows_core::Result; @@ -3169,7 +3169,7 @@ impl INetCfgBindingPath_Vtbl { INetCfgBindingPath_Impl::IsEnabled(this).into() } } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgBindingPath_Impl::Enable(this, core::mem::transmute_copy(&fenable)).into() @@ -3736,20 +3736,20 @@ impl INetCfgComponentControl { #[repr(C)] pub struct INetCfgComponentControl_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub ApplyRegistryChanges: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub ApplyPnpChanges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub CancelChanges: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait INetCfgComponentControl_Impl: windows_core::IUnknownImpl { - fn Initialize(&self, picomp: windows_core::Ref, pinetcfg: windows_core::Ref, finstalling: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Initialize(&self, picomp: windows_core::Ref, pinetcfg: windows_core::Ref, finstalling: windows_core::BOOL) -> windows_core::Result<()>; fn ApplyRegistryChanges(&self) -> windows_core::Result<()>; fn ApplyPnpChanges(&self, picallback: windows_core::Ref) -> windows_core::Result<()>; fn CancelChanges(&self) -> windows_core::Result<()>; } impl INetCfgComponentControl_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, picomp: *mut core::ffi::c_void, pinetcfg: *mut core::ffi::c_void, finstalling: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, picomp: *mut core::ffi::c_void, pinetcfg: *mut core::ffi::c_void, finstalling: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgComponentControl_Impl::Initialize(this, core::mem::transmute_copy(&picomp), core::mem::transmute_copy(&pinetcfg), core::mem::transmute_copy(&finstalling)).into() @@ -4348,13 +4348,13 @@ pub struct INetCfgSysPrep_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub HrSetupSetFirstDword: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, u32) -> windows_core::HRESULT, pub HrSetupSetFirstString: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, - pub HrSetupSetFirstStringAsBool: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub HrSetupSetFirstStringAsBool: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, pub HrSetupSetFirstMultiSzField: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, } pub trait INetCfgSysPrep_Impl: windows_core::IUnknownImpl { fn HrSetupSetFirstDword(&self, pwszsection: &windows_core::PCWSTR, pwszkey: &windows_core::PCWSTR, dwvalue: u32) -> windows_core::Result<()>; fn HrSetupSetFirstString(&self, pwszsection: &windows_core::PCWSTR, pwszkey: &windows_core::PCWSTR, pwszvalue: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn HrSetupSetFirstStringAsBool(&self, pwszsection: &windows_core::PCWSTR, pwszkey: &windows_core::PCWSTR, fvalue: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn HrSetupSetFirstStringAsBool(&self, pwszsection: &windows_core::PCWSTR, pwszkey: &windows_core::PCWSTR, fvalue: windows_core::BOOL) -> windows_core::Result<()>; fn HrSetupSetFirstMultiSzField(&self, pwszsection: &windows_core::PCWSTR, pwszkey: &windows_core::PCWSTR, pmszvalue: &windows_core::PCWSTR) -> windows_core::Result<()>; } impl INetCfgSysPrep_Vtbl { @@ -4371,7 +4371,7 @@ impl INetCfgSysPrep_Vtbl { INetCfgSysPrep_Impl::HrSetupSetFirstString(this, core::mem::transmute(&pwszsection), core::mem::transmute(&pwszkey), core::mem::transmute(&pwszvalue)).into() } } - unsafe extern "system" fn HrSetupSetFirstStringAsBool(this: *mut core::ffi::c_void, pwszsection: windows_core::PCWSTR, pwszkey: windows_core::PCWSTR, fvalue: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn HrSetupSetFirstStringAsBool(this: *mut core::ffi::c_void, pwszsection: windows_core::PCWSTR, pwszkey: windows_core::PCWSTR, fvalue: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INetCfgSysPrep_Impl::HrSetupSetFirstStringAsBool(this, core::mem::transmute(&pwszsection), core::mem::transmute(&pwszkey), core::mem::transmute_copy(&fvalue)).into() @@ -6026,7 +6026,7 @@ pub struct OBO_TOKEN { pub pszwManufacturer: windows_core::PCWSTR, pub pszwProduct: windows_core::PCWSTR, pub pszwDisplayName: windows_core::PCWSTR, - pub fRegistered: super::super::Foundation::BOOL, + pub fRegistered: windows_core::BOOL, } impl Default for OBO_TOKEN { fn default() -> Self { @@ -6107,7 +6107,7 @@ pub const QNLEN: u32 = 80u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct RASCON_IPUI { pub guidConnection: windows_core::GUID, - pub fIPv6Cfg: super::super::Foundation::BOOL, + pub fIPv6Cfg: windows_core::BOOL, pub dwFlags: u32, pub pszwIpAddr: [u16; 16], pub pszwDnsAddr: [u16; 16], @@ -6458,7 +6458,7 @@ pub struct SERVER_INFO_103 { pub sv103_comment: windows_core::PWSTR, pub sv103_users: u32, pub sv103_disc: i32, - pub sv103_hidden: super::super::Foundation::BOOL, + pub sv103_hidden: windows_core::BOOL, pub sv103_announce: u32, pub sv103_anndelta: u32, pub sv103_licenses: u32, @@ -6573,7 +6573,7 @@ impl Default for SERVER_INFO_1513 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVER_INFO_1514 { - pub sv1514_enablesoftcompat: super::super::Foundation::BOOL, + pub sv1514_enablesoftcompat: windows_core::BOOL, } impl Default for SERVER_INFO_1514 { fn default() -> Self { @@ -6583,7 +6583,7 @@ impl Default for SERVER_INFO_1514 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVER_INFO_1515 { - pub sv1515_enableforcedlogoff: super::super::Foundation::BOOL, + pub sv1515_enableforcedlogoff: windows_core::BOOL, } impl Default for SERVER_INFO_1515 { fn default() -> Self { @@ -6593,7 +6593,7 @@ impl Default for SERVER_INFO_1515 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVER_INFO_1516 { - pub sv1516_timesource: super::super::Foundation::BOOL, + pub sv1516_timesource: windows_core::BOOL, } impl Default for SERVER_INFO_1516 { fn default() -> Self { @@ -6603,7 +6603,7 @@ impl Default for SERVER_INFO_1516 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVER_INFO_1518 { - pub sv1518_lmannounce: super::super::Foundation::BOOL, + pub sv1518_lmannounce: windows_core::BOOL, } impl Default for SERVER_INFO_1518 { fn default() -> Self { @@ -6733,7 +6733,7 @@ impl Default for SERVER_INFO_1535 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVER_INFO_1536 { - pub sv1536_enableoplocks: super::super::Foundation::BOOL, + pub sv1536_enableoplocks: windows_core::BOOL, } impl Default for SERVER_INFO_1536 { fn default() -> Self { @@ -6743,7 +6743,7 @@ impl Default for SERVER_INFO_1536 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVER_INFO_1537 { - pub sv1537_enableoplockforceclose: super::super::Foundation::BOOL, + pub sv1537_enableoplockforceclose: windows_core::BOOL, } impl Default for SERVER_INFO_1537 { fn default() -> Self { @@ -6753,7 +6753,7 @@ impl Default for SERVER_INFO_1537 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVER_INFO_1538 { - pub sv1538_enablefcbopens: super::super::Foundation::BOOL, + pub sv1538_enablefcbopens: windows_core::BOOL, } impl Default for SERVER_INFO_1538 { fn default() -> Self { @@ -6763,7 +6763,7 @@ impl Default for SERVER_INFO_1538 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVER_INFO_1539 { - pub sv1539_enableraw: super::super::Foundation::BOOL, + pub sv1539_enableraw: windows_core::BOOL, } impl Default for SERVER_INFO_1539 { fn default() -> Self { @@ -6773,7 +6773,7 @@ impl Default for SERVER_INFO_1539 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVER_INFO_1540 { - pub sv1540_enablesharednetdrives: super::super::Foundation::BOOL, + pub sv1540_enablesharednetdrives: windows_core::BOOL, } impl Default for SERVER_INFO_1540 { fn default() -> Self { @@ -6783,7 +6783,7 @@ impl Default for SERVER_INFO_1540 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVER_INFO_1541 { - pub sv1541_minfreeconnections: super::super::Foundation::BOOL, + pub sv1541_minfreeconnections: windows_core::BOOL, } impl Default for SERVER_INFO_1541 { fn default() -> Self { @@ -6793,7 +6793,7 @@ impl Default for SERVER_INFO_1541 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVER_INFO_1542 { - pub sv1542_maxfreeconnections: super::super::Foundation::BOOL, + pub sv1542_maxfreeconnections: windows_core::BOOL, } impl Default for SERVER_INFO_1542 { fn default() -> Self { @@ -7003,7 +7003,7 @@ impl Default for SERVER_INFO_1565 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVER_INFO_1566 { - pub sv1566_removeduplicatesearches: super::super::Foundation::BOOL, + pub sv1566_removeduplicatesearches: windows_core::BOOL, } impl Default for SERVER_INFO_1566 { fn default() -> Self { @@ -7193,7 +7193,7 @@ impl Default for SERVER_INFO_1584 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVER_INFO_1585 { - pub sv1585_sendsfrompreferredprocessor: super::super::Foundation::BOOL, + pub sv1585_sendsfrompreferredprocessor: windows_core::BOOL, } impl Default for SERVER_INFO_1585 { fn default() -> Self { @@ -7353,7 +7353,7 @@ impl Default for SERVER_INFO_1601 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVER_INFO_1602 { - pub sv_1598_disablestrictnamechecking: super::super::Foundation::BOOL, + pub sv_1598_disablestrictnamechecking: windows_core::BOOL, } impl Default for SERVER_INFO_1602 { fn default() -> Self { @@ -7459,11 +7459,11 @@ pub struct SERVER_INFO_502 { pub sv502_sessconns: u32, pub sv502_maxpagedmemoryusage: u32, pub sv502_maxnonpagedmemoryusage: u32, - pub sv502_enablesoftcompat: super::super::Foundation::BOOL, - pub sv502_enableforcedlogoff: super::super::Foundation::BOOL, - pub sv502_timesource: super::super::Foundation::BOOL, - pub sv502_acceptdownlevelapis: super::super::Foundation::BOOL, - pub sv502_lmannounce: super::super::Foundation::BOOL, + pub sv502_enablesoftcompat: windows_core::BOOL, + pub sv502_enableforcedlogoff: windows_core::BOOL, + pub sv502_timesource: windows_core::BOOL, + pub sv502_acceptdownlevelapis: windows_core::BOOL, + pub sv502_lmannounce: windows_core::BOOL, } impl Default for SERVER_INFO_502 { fn default() -> Self { @@ -7486,11 +7486,11 @@ pub struct SERVER_INFO_503 { pub sv503_sessconns: u32, pub sv503_maxpagedmemoryusage: u32, pub sv503_maxnonpagedmemoryusage: u32, - pub sv503_enablesoftcompat: super::super::Foundation::BOOL, - pub sv503_enableforcedlogoff: super::super::Foundation::BOOL, - pub sv503_timesource: super::super::Foundation::BOOL, - pub sv503_acceptdownlevelapis: super::super::Foundation::BOOL, - pub sv503_lmannounce: super::super::Foundation::BOOL, + pub sv503_enablesoftcompat: windows_core::BOOL, + pub sv503_enableforcedlogoff: windows_core::BOOL, + pub sv503_timesource: windows_core::BOOL, + pub sv503_acceptdownlevelapis: windows_core::BOOL, + pub sv503_lmannounce: windows_core::BOOL, pub sv503_domain: windows_core::PWSTR, pub sv503_maxcopyreadlen: u32, pub sv503_maxcopywritelen: u32, @@ -7508,11 +7508,11 @@ pub struct SERVER_INFO_503 { pub sv503_maxmpxct: u32, pub sv503_oplockbreakwait: u32, pub sv503_oplockbreakresponsewait: u32, - pub sv503_enableoplocks: super::super::Foundation::BOOL, - pub sv503_enableoplockforceclose: super::super::Foundation::BOOL, - pub sv503_enablefcbopens: super::super::Foundation::BOOL, - pub sv503_enableraw: super::super::Foundation::BOOL, - pub sv503_enablesharednetdrives: super::super::Foundation::BOOL, + pub sv503_enableoplocks: windows_core::BOOL, + pub sv503_enableoplockforceclose: windows_core::BOOL, + pub sv503_enablefcbopens: windows_core::BOOL, + pub sv503_enableraw: windows_core::BOOL, + pub sv503_enablesharednetdrives: windows_core::BOOL, pub sv503_minfreeconnections: u32, pub sv503_maxfreeconnections: u32, } @@ -7538,8 +7538,8 @@ pub struct SERVER_INFO_598 { pub sv598_mdlreadswitchover: u32, pub sv598_cachedopenlimit: u32, pub sv598_otherqueueaffinity: u32, - pub sv598_restrictnullsessaccess: super::super::Foundation::BOOL, - pub sv598_enablewfw311directipx: super::super::Foundation::BOOL, + pub sv598_restrictnullsessaccess: windows_core::BOOL, + pub sv598_enablewfw311directipx: windows_core::BOOL, pub sv598_queuesamplesecs: u32, pub sv598_balancecount: u32, pub sv598_preferredaffinity: u32, @@ -7549,24 +7549,24 @@ pub struct SERVER_INFO_598 { pub sv598_maxfreepagedpoolchunks: u32, pub sv598_minpagedpoolchunksize: u32, pub sv598_maxpagedpoolchunksize: u32, - pub sv598_sendsfrompreferredprocessor: super::super::Foundation::BOOL, + pub sv598_sendsfrompreferredprocessor: windows_core::BOOL, pub sv598_cacheddirectorylimit: u32, pub sv598_maxcopylength: u32, - pub sv598_enablecompression: super::super::Foundation::BOOL, - pub sv598_autosharewks: super::super::Foundation::BOOL, - pub sv598_autoshareserver: super::super::Foundation::BOOL, - pub sv598_enablesecuritysignature: super::super::Foundation::BOOL, - pub sv598_requiresecuritysignature: super::super::Foundation::BOOL, + pub sv598_enablecompression: windows_core::BOOL, + pub sv598_autosharewks: windows_core::BOOL, + pub sv598_autoshareserver: windows_core::BOOL, + pub sv598_enablesecuritysignature: windows_core::BOOL, + pub sv598_requiresecuritysignature: windows_core::BOOL, pub sv598_minclientbuffersize: u32, pub sv598_serverguid: windows_core::GUID, pub sv598_ConnectionNoSessionsTimeout: u32, pub sv598_IdleThreadTimeOut: u32, - pub sv598_enableW9xsecuritysignature: super::super::Foundation::BOOL, - pub sv598_enforcekerberosreauthentication: super::super::Foundation::BOOL, - pub sv598_disabledos: super::super::Foundation::BOOL, + pub sv598_enableW9xsecuritysignature: windows_core::BOOL, + pub sv598_enforcekerberosreauthentication: windows_core::BOOL, + pub sv598_disabledos: windows_core::BOOL, pub sv598_lowdiskspaceminimum: u32, - pub sv598_disablestrictnamechecking: super::super::Foundation::BOOL, - pub sv598_enableauthenticateusersharing: super::super::Foundation::BOOL, + pub sv598_disablestrictnamechecking: windows_core::BOOL, + pub sv598_enableauthenticateusersharing: windows_core::BOOL, } impl Default for SERVER_INFO_598 { fn default() -> Self { @@ -7589,11 +7589,11 @@ pub struct SERVER_INFO_599 { pub sv599_sessconns: u32, pub sv599_maxpagedmemoryusage: u32, pub sv599_maxnonpagedmemoryusage: u32, - pub sv599_enablesoftcompat: super::super::Foundation::BOOL, - pub sv599_enableforcedlogoff: super::super::Foundation::BOOL, - pub sv599_timesource: super::super::Foundation::BOOL, - pub sv599_acceptdownlevelapis: super::super::Foundation::BOOL, - pub sv599_lmannounce: super::super::Foundation::BOOL, + pub sv599_enablesoftcompat: windows_core::BOOL, + pub sv599_enableforcedlogoff: windows_core::BOOL, + pub sv599_timesource: windows_core::BOOL, + pub sv599_acceptdownlevelapis: windows_core::BOOL, + pub sv599_lmannounce: windows_core::BOOL, pub sv599_domain: windows_core::PWSTR, pub sv599_maxcopyreadlen: u32, pub sv599_maxcopywritelen: u32, @@ -7611,11 +7611,11 @@ pub struct SERVER_INFO_599 { pub sv599_maxmpxct: u32, pub sv599_oplockbreakwait: u32, pub sv599_oplockbreakresponsewait: u32, - pub sv599_enableoplocks: super::super::Foundation::BOOL, - pub sv599_enableoplockforceclose: super::super::Foundation::BOOL, - pub sv599_enablefcbopens: super::super::Foundation::BOOL, - pub sv599_enableraw: super::super::Foundation::BOOL, - pub sv599_enablesharednetdrives: super::super::Foundation::BOOL, + pub sv599_enableoplocks: windows_core::BOOL, + pub sv599_enableoplockforceclose: windows_core::BOOL, + pub sv599_enablefcbopens: windows_core::BOOL, + pub sv599_enableraw: windows_core::BOOL, + pub sv599_enablesharednetdrives: windows_core::BOOL, pub sv599_minfreeconnections: u32, pub sv599_maxfreeconnections: u32, pub sv599_initsesstable: u32, @@ -8678,7 +8678,7 @@ impl Default for USER_INFO_23 { #[cfg(feature = "Win32_Security")] #[derive(Clone, Copy, Debug, PartialEq)] pub struct USER_INFO_24 { - pub usri24_internet_identity: super::super::Foundation::BOOL, + pub usri24_internet_identity: windows_core::BOOL, pub usri24_flags: u32, pub usri24_internet_provider_name: windows_core::PWSTR, pub usri24_internet_principal_name: windows_core::PWSTR, @@ -9325,7 +9325,7 @@ impl Default for WKSTA_INFO_1047 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WKSTA_INFO_1048 { - pub wki1048_use_opportunistic_locking: super::super::Foundation::BOOL, + pub wki1048_use_opportunistic_locking: windows_core::BOOL, } impl Default for WKSTA_INFO_1048 { fn default() -> Self { @@ -9335,7 +9335,7 @@ impl Default for WKSTA_INFO_1048 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WKSTA_INFO_1049 { - pub wki1049_use_unlock_behind: super::super::Foundation::BOOL, + pub wki1049_use_unlock_behind: windows_core::BOOL, } impl Default for WKSTA_INFO_1049 { fn default() -> Self { @@ -9345,7 +9345,7 @@ impl Default for WKSTA_INFO_1049 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WKSTA_INFO_1050 { - pub wki1050_use_close_behind: super::super::Foundation::BOOL, + pub wki1050_use_close_behind: windows_core::BOOL, } impl Default for WKSTA_INFO_1050 { fn default() -> Self { @@ -9355,7 +9355,7 @@ impl Default for WKSTA_INFO_1050 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WKSTA_INFO_1051 { - pub wki1051_buf_named_pipes: super::super::Foundation::BOOL, + pub wki1051_buf_named_pipes: windows_core::BOOL, } impl Default for WKSTA_INFO_1051 { fn default() -> Self { @@ -9365,7 +9365,7 @@ impl Default for WKSTA_INFO_1051 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WKSTA_INFO_1052 { - pub wki1052_use_lock_read_unlock: super::super::Foundation::BOOL, + pub wki1052_use_lock_read_unlock: windows_core::BOOL, } impl Default for WKSTA_INFO_1052 { fn default() -> Self { @@ -9375,7 +9375,7 @@ impl Default for WKSTA_INFO_1052 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WKSTA_INFO_1053 { - pub wki1053_utilize_nt_caching: super::super::Foundation::BOOL, + pub wki1053_utilize_nt_caching: windows_core::BOOL, } impl Default for WKSTA_INFO_1053 { fn default() -> Self { @@ -9385,7 +9385,7 @@ impl Default for WKSTA_INFO_1053 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WKSTA_INFO_1054 { - pub wki1054_use_raw_read: super::super::Foundation::BOOL, + pub wki1054_use_raw_read: windows_core::BOOL, } impl Default for WKSTA_INFO_1054 { fn default() -> Self { @@ -9395,7 +9395,7 @@ impl Default for WKSTA_INFO_1054 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WKSTA_INFO_1055 { - pub wki1055_use_raw_write: super::super::Foundation::BOOL, + pub wki1055_use_raw_write: windows_core::BOOL, } impl Default for WKSTA_INFO_1055 { fn default() -> Self { @@ -9405,7 +9405,7 @@ impl Default for WKSTA_INFO_1055 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WKSTA_INFO_1056 { - pub wki1056_use_write_raw_data: super::super::Foundation::BOOL, + pub wki1056_use_write_raw_data: windows_core::BOOL, } impl Default for WKSTA_INFO_1056 { fn default() -> Self { @@ -9415,7 +9415,7 @@ impl Default for WKSTA_INFO_1056 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WKSTA_INFO_1057 { - pub wki1057_use_encryption: super::super::Foundation::BOOL, + pub wki1057_use_encryption: windows_core::BOOL, } impl Default for WKSTA_INFO_1057 { fn default() -> Self { @@ -9425,7 +9425,7 @@ impl Default for WKSTA_INFO_1057 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WKSTA_INFO_1058 { - pub wki1058_buf_files_deny_write: super::super::Foundation::BOOL, + pub wki1058_buf_files_deny_write: windows_core::BOOL, } impl Default for WKSTA_INFO_1058 { fn default() -> Self { @@ -9435,7 +9435,7 @@ impl Default for WKSTA_INFO_1058 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WKSTA_INFO_1059 { - pub wki1059_buf_read_only_files: super::super::Foundation::BOOL, + pub wki1059_buf_read_only_files: windows_core::BOOL, } impl Default for WKSTA_INFO_1059 { fn default() -> Self { @@ -9445,7 +9445,7 @@ impl Default for WKSTA_INFO_1059 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WKSTA_INFO_1060 { - pub wki1060_force_core_create_mode: super::super::Foundation::BOOL, + pub wki1060_force_core_create_mode: windows_core::BOOL, } impl Default for WKSTA_INFO_1060 { fn default() -> Self { @@ -9455,7 +9455,7 @@ impl Default for WKSTA_INFO_1060 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WKSTA_INFO_1061 { - pub wki1061_use_512_byte_max_transfer: super::super::Foundation::BOOL, + pub wki1061_use_512_byte_max_transfer: windows_core::BOOL, } impl Default for WKSTA_INFO_1061 { fn default() -> Self { @@ -9554,21 +9554,21 @@ pub struct WKSTA_INFO_502 { pub wki502_num_srv_announce_buffers: u32, pub wki502_max_illegal_datagram_events: u32, pub wki502_illegal_datagram_event_reset_frequency: u32, - pub wki502_log_election_packets: super::super::Foundation::BOOL, - pub wki502_use_opportunistic_locking: super::super::Foundation::BOOL, - pub wki502_use_unlock_behind: super::super::Foundation::BOOL, - pub wki502_use_close_behind: super::super::Foundation::BOOL, - pub wki502_buf_named_pipes: super::super::Foundation::BOOL, - pub wki502_use_lock_read_unlock: super::super::Foundation::BOOL, - pub wki502_utilize_nt_caching: super::super::Foundation::BOOL, - pub wki502_use_raw_read: super::super::Foundation::BOOL, - pub wki502_use_raw_write: super::super::Foundation::BOOL, - pub wki502_use_write_raw_data: super::super::Foundation::BOOL, - pub wki502_use_encryption: super::super::Foundation::BOOL, - pub wki502_buf_files_deny_write: super::super::Foundation::BOOL, - pub wki502_buf_read_only_files: super::super::Foundation::BOOL, - pub wki502_force_core_create_mode: super::super::Foundation::BOOL, - pub wki502_use_512_byte_max_transfer: super::super::Foundation::BOOL, + pub wki502_log_election_packets: windows_core::BOOL, + pub wki502_use_opportunistic_locking: windows_core::BOOL, + pub wki502_use_unlock_behind: windows_core::BOOL, + pub wki502_use_close_behind: windows_core::BOOL, + pub wki502_buf_named_pipes: windows_core::BOOL, + pub wki502_use_lock_read_unlock: windows_core::BOOL, + pub wki502_utilize_nt_caching: windows_core::BOOL, + pub wki502_use_raw_read: windows_core::BOOL, + pub wki502_use_raw_write: windows_core::BOOL, + pub wki502_use_write_raw_data: windows_core::BOOL, + pub wki502_use_encryption: windows_core::BOOL, + pub wki502_buf_files_deny_write: windows_core::BOOL, + pub wki502_buf_read_only_files: windows_core::BOOL, + pub wki502_force_core_create_mode: windows_core::BOOL, + pub wki502_use_512_byte_max_transfer: windows_core::BOOL, } impl Default for WKSTA_INFO_502 { fn default() -> Self { @@ -9611,7 +9611,7 @@ pub struct WKSTA_TRANSPORT_INFO_0 { pub wkti0_number_of_vcs: u32, pub wkti0_transport_name: windows_core::PWSTR, pub wkti0_transport_address: windows_core::PWSTR, - pub wkti0_wan_ish: super::super::Foundation::BOOL, + pub wkti0_wan_ish: windows_core::BOOL, } impl Default for WKSTA_TRANSPORT_INFO_0 { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetShell/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetShell/mod.rs index 5ae29421cc..c6f4a4c67b 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetShell/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetShell/mod.rs @@ -7,12 +7,12 @@ where unsafe { MatchEnumTag(hmodule, pwcarg.param().abi(), dwnumarg, penumtable, pdwvalue as _) } } #[inline] -pub unsafe fn MatchToken(pwszusertoken: P0, pwszcmdtoken: P1) -> super::super::Foundation::BOOL +pub unsafe fn MatchToken(pwszusertoken: P0, pwszcmdtoken: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("netsh.dll" "system" fn MatchToken(pwszusertoken : windows_core::PCWSTR, pwszcmdtoken : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("netsh.dll" "system" fn MatchToken(pwszusertoken : windows_core::PCWSTR, pwszcmdtoken : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { MatchToken(pwszusertoken.param().abi(), pwszcmdtoken.param().abi()) } } #[inline] @@ -225,7 +225,7 @@ pub const NS_REQ_ONE_OR_MORE: NS_REQS = NS_REQS(3i32); pub const NS_REQ_PRESENT: NS_REQS = NS_REQS(1i32); pub const NS_REQ_ZERO: NS_REQS = NS_REQS(0i32); pub type PFN_CUSTOM_HELP = Option; -pub type PFN_HANDLE_CMD = Option u32>; +pub type PFN_HANDLE_CMD = Option u32>; pub type PGET_RESOURCE_STRING_FN = Option u32>; pub type PNS_CONTEXT_COMMIT_FN = Option u32>; pub type PNS_CONTEXT_CONNECT_FN = Option u32>; @@ -234,13 +234,13 @@ pub type PNS_DLL_INIT_FN = Option u32>; pub type PNS_HELPER_START_FN = Option u32>; pub type PNS_HELPER_STOP_FN = Option u32>; -pub type PNS_OSVERSIONCHECK = Option super::super::Foundation::BOOL>; +pub type PNS_OSVERSIONCHECK = Option windows_core::BOOL>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct TAG_TYPE { pub pwszTag: windows_core::PCWSTR, pub dwRequired: u32, - pub bPresent: super::super::Foundation::BOOL, + pub bPresent: windows_core::BOOL, } impl Default for TAG_TYPE { fn default() -> Self { 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 dbdd0f63ea..ce31669fa5 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs @@ -54,7 +54,7 @@ where P1: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("ndfapi.dll" "system" fn NdfCreatePnrpIncident(cloudname : windows_core::PCWSTR, peername : windows_core::PCWSTR, diagnosepublish : super::super::Foundation:: BOOL, appid : windows_core::PCWSTR, handle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("ndfapi.dll" "system" fn NdfCreatePnrpIncident(cloudname : windows_core::PCWSTR, peername : windows_core::PCWSTR, diagnosepublish : windows_core::BOOL, appid : windows_core::PCWSTR, handle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { NdfCreatePnrpIncident(cloudname.param().abi(), peername.param().abi(), diagnosepublish.into(), appid.param().abi(), handle as _).ok() } } #[inline] @@ -79,7 +79,7 @@ where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("ndfapi.dll" "system" fn NdfCreateWebIncidentEx(url : windows_core::PCWSTR, usewinhttp : super::super::Foundation:: BOOL, modulename : windows_core::PCWSTR, handle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("ndfapi.dll" "system" fn NdfCreateWebIncidentEx(url : windows_core::PCWSTR, usewinhttp : windows_core::BOOL, modulename : windows_core::PCWSTR, handle : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { NdfCreateWebIncidentEx(url.param().abi(), usewinhttp.into(), modulename.param().abi(), handle as _).ok() } } #[cfg(all(feature = "Win32_Networking_WinSock", feature = "Win32_Security"))] @@ -181,7 +181,7 @@ impl Default for HELPER_ATTRIBUTE { #[repr(C)] #[derive(Clone, Copy)] pub union HELPER_ATTRIBUTE_0 { - pub Boolean: super::super::Foundation::BOOL, + pub Boolean: windows_core::BOOL, pub Char: u8, pub Byte: u8, pub Short: i16, diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/P2P/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/P2P/mod.rs index fdc5efa0c1..4b3022a209 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/P2P/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/P2P/mod.rs @@ -57,7 +57,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("drtprov.dll" "system" fn DrtCreatePnrpBootstrapResolver(fpublish : super::super::Foundation:: BOOL, pwzpeername : windows_core::PCWSTR, pwzcloudname : windows_core::PCWSTR, pwzpublishingidentity : windows_core::PCWSTR, ppresolver : *mut *mut DRT_BOOTSTRAP_PROVIDER) -> windows_core::HRESULT); + windows_targets::link!("drtprov.dll" "system" fn DrtCreatePnrpBootstrapResolver(fpublish : windows_core::BOOL, pwzpeername : windows_core::PCWSTR, pwzcloudname : windows_core::PCWSTR, pwzpublishingidentity : windows_core::PCWSTR, ppresolver : *mut *mut DRT_BOOTSTRAP_PROVIDER) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); DrtCreatePnrpBootstrapResolver(fpublish.into(), pwzpeername.param().abi(), pwzcloudname.param().abi(), pwzpublishingidentity.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) @@ -524,8 +524,8 @@ pub unsafe fn PeerDistClientStreamRead(hpeerdist: isize, hcontenthandle: isize, } #[cfg(feature = "Win32_System_IO")] #[inline] -pub unsafe fn PeerDistGetOverlappedResult(lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("peerdist.dll" "system" fn PeerDistGetOverlappedResult(lpoverlapped : *const super::super::System::IO:: OVERLAPPED, lpnumberofbytestransferred : *mut u32, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn PeerDistGetOverlappedResult(lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: bool) -> windows_core::BOOL { + windows_targets::link!("peerdist.dll" "system" fn PeerDistGetOverlappedResult(lpoverlapped : *const super::super::System::IO:: OVERLAPPED, lpnumberofbytestransferred : *mut u32, bwait : windows_core::BOOL) -> windows_core::BOOL); unsafe { PeerDistGetOverlappedResult(lpoverlapped, lpnumberofbytestransferred as _, bwait.into()) } } #[inline] @@ -705,7 +705,7 @@ where } #[inline] pub unsafe fn PeerGraphDeleteRecord(hgraph: *const core::ffi::c_void, precordid: *const windows_core::GUID, flocal: bool) -> windows_core::Result<()> { - windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphDeleteRecord(hgraph : *const core::ffi::c_void, precordid : *const windows_core::GUID, flocal : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphDeleteRecord(hgraph : *const core::ffi::c_void, precordid : *const windows_core::GUID, flocal : windows_core::BOOL) -> windows_core::HRESULT); unsafe { PeerGraphDeleteRecord(hgraph, precordid, flocal.into()).ok() } } #[inline] @@ -872,7 +872,7 @@ where } #[inline] pub unsafe fn PeerGraphSetPresence(hgraph: *const core::ffi::c_void, fpresent: bool) -> windows_core::Result<()> { - windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphSetPresence(hgraph : *const core::ffi::c_void, fpresent : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("p2pgraph.dll" "system" fn PeerGraphSetPresence(hgraph : *const core::ffi::c_void, fpresent : windows_core::BOOL) -> windows_core::HRESULT); unsafe { PeerGraphSetPresence(hgraph, fpresent.into()).ok() } } #[inline] @@ -1058,7 +1058,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("p2p.dll" "system" fn PeerGroupImportConfig(pwzxml : windows_core::PCWSTR, pwzpassword : windows_core::PCWSTR, foverwrite : super::super::Foundation:: BOOL, ppwzidentity : *mut windows_core::PWSTR, ppwzgroup : *mut windows_core::PWSTR) -> windows_core::HRESULT); + windows_targets::link!("p2p.dll" "system" fn PeerGroupImportConfig(pwzxml : windows_core::PCWSTR, pwzpassword : windows_core::PCWSTR, foverwrite : windows_core::BOOL, ppwzidentity : *mut windows_core::PWSTR, ppwzgroup : *mut windows_core::PWSTR) -> windows_core::HRESULT); unsafe { PeerGroupImportConfig(pwzxml.param().abi(), pwzpassword.param().abi(), foverwrite.into(), ppwzidentity as _, ppwzgroup as _).ok() } } #[inline] @@ -1443,7 +1443,7 @@ impl Default for DRT_BOOTSTRAP_PROVIDER { } } #[cfg(feature = "Win32_Networking_WinSock")] -pub type DRT_BOOTSTRAP_RESOLVE_CALLBACK = Option; +pub type DRT_BOOTSTRAP_RESOLVE_CALLBACK = Option; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct DRT_DATA { @@ -1627,9 +1627,9 @@ pub struct DRT_SCOPE(pub i32); #[derive(Clone, Copy, Debug, PartialEq)] pub struct DRT_SEARCH_INFO { pub dwSize: u32, - pub fIterative: super::super::Foundation::BOOL, - pub fAllowCurrentInstanceMatch: super::super::Foundation::BOOL, - pub fAnyMatchInRange: super::super::Foundation::BOOL, + pub fIterative: windows_core::BOOL, + pub fAllowCurrentInstanceMatch: windows_core::BOOL, + pub fAnyMatchInRange: windows_core::BOOL, pub cMaxEndpoints: u32, pub pMaximumKey: *mut DRT_DATA, pub pMinimumKey: *mut DRT_DATA, @@ -1714,7 +1714,7 @@ pub const NS_PROVIDER_PNRPNAME: windows_core::GUID = windows_core::GUID::from_u1 #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct PEERDIST_CLIENT_BASIC_INFO { - pub fFlashCrowd: super::super::Foundation::BOOL, + pub fFlashCrowd: windows_core::BOOL, } impl Default for PEERDIST_CLIENT_BASIC_INFO { fn default() -> Self { @@ -1931,7 +1931,7 @@ pub struct PEER_CONTACT { pub pwzNickName: windows_core::PWSTR, pub pwzDisplayName: windows_core::PWSTR, pub pwzEmailAddress: windows_core::PWSTR, - pub fWatch: super::super::Foundation::BOOL, + pub fWatch: windows_core::BOOL, pub WatcherPermissions: PEER_WATCH_PERMISSION, pub credentials: PEER_DATA, } diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs index 546e761b78..6abe96ff8c 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs @@ -1,64 +1,64 @@ #[cfg(feature = "Win32_Networking_WinSock")] #[inline] -pub unsafe fn QOSAddSocketToFlow(qoshandle: super::super::Foundation::HANDLE, socket: super::super::Networking::WinSock::SOCKET, destaddr: Option<*const super::super::Networking::WinSock::SOCKADDR>, traffictype: QOS_TRAFFIC_TYPE, flags: Option, flowid: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("qwave.dll" "system" fn QOSAddSocketToFlow(qoshandle : super::super::Foundation:: HANDLE, socket : super::super::Networking::WinSock:: SOCKET, destaddr : *const super::super::Networking::WinSock:: SOCKADDR, traffictype : QOS_TRAFFIC_TYPE, flags : u32, flowid : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn QOSAddSocketToFlow(qoshandle: super::super::Foundation::HANDLE, socket: super::super::Networking::WinSock::SOCKET, destaddr: Option<*const super::super::Networking::WinSock::SOCKADDR>, traffictype: QOS_TRAFFIC_TYPE, flags: Option, flowid: *mut u32) -> windows_core::BOOL { + windows_targets::link!("qwave.dll" "system" fn QOSAddSocketToFlow(qoshandle : super::super::Foundation:: HANDLE, socket : super::super::Networking::WinSock:: SOCKET, destaddr : *const super::super::Networking::WinSock:: SOCKADDR, traffictype : QOS_TRAFFIC_TYPE, flags : u32, flowid : *mut u32) -> windows_core::BOOL); unsafe { QOSAddSocketToFlow(qoshandle, socket, destaddr.unwrap_or(core::mem::zeroed()) as _, traffictype, flags.unwrap_or(core::mem::zeroed()) as _, flowid as _) } } #[cfg(feature = "Win32_System_IO")] #[inline] -pub unsafe fn QOSCancel(qoshandle: super::super::Foundation::HANDLE, overlapped: *const super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL { - windows_targets::link!("qwave.dll" "system" fn QOSCancel(qoshandle : super::super::Foundation:: HANDLE, overlapped : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); +pub unsafe fn QOSCancel(qoshandle: super::super::Foundation::HANDLE, overlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::BOOL { + windows_targets::link!("qwave.dll" "system" fn QOSCancel(qoshandle : super::super::Foundation:: HANDLE, overlapped : *const super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { QOSCancel(qoshandle, overlapped) } } #[inline] -pub unsafe fn QOSCloseHandle(qoshandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("qwave.dll" "system" fn QOSCloseHandle(qoshandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn QOSCloseHandle(qoshandle: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("qwave.dll" "system" fn QOSCloseHandle(qoshandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { QOSCloseHandle(qoshandle) } } #[inline] -pub unsafe fn QOSCreateHandle(version: *const QOS_VERSION, qoshandle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("qwave.dll" "system" fn QOSCreateHandle(version : *const QOS_VERSION, qoshandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn QOSCreateHandle(version: *const QOS_VERSION, qoshandle: *mut super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("qwave.dll" "system" fn QOSCreateHandle(version : *const QOS_VERSION, qoshandle : *mut super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { QOSCreateHandle(version, qoshandle as _) } } #[inline] -pub unsafe fn QOSEnumerateFlows(qoshandle: super::super::Foundation::HANDLE, size: *mut u32, buffer: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("qwave.dll" "system" fn QOSEnumerateFlows(qoshandle : super::super::Foundation:: HANDLE, size : *mut u32, buffer : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn QOSEnumerateFlows(qoshandle: super::super::Foundation::HANDLE, size: *mut u32, buffer: *mut core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("qwave.dll" "system" fn QOSEnumerateFlows(qoshandle : super::super::Foundation:: HANDLE, size : *mut u32, buffer : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { QOSEnumerateFlows(qoshandle, size as _, buffer as _) } } #[cfg(feature = "Win32_System_IO")] #[inline] -pub unsafe fn QOSNotifyFlow(qoshandle: super::super::Foundation::HANDLE, flowid: u32, operation: QOS_NOTIFY_FLOW, size: Option<*mut u32>, buffer: Option<*mut core::ffi::c_void>, flags: Option, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::BOOL { - windows_targets::link!("qwave.dll" "system" fn QOSNotifyFlow(qoshandle : super::super::Foundation:: HANDLE, flowid : u32, operation : QOS_NOTIFY_FLOW, size : *mut u32, buffer : *mut core::ffi::c_void, flags : u32, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); +pub unsafe fn QOSNotifyFlow(qoshandle: super::super::Foundation::HANDLE, flowid: u32, operation: QOS_NOTIFY_FLOW, size: Option<*mut u32>, buffer: Option<*mut core::ffi::c_void>, flags: Option, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::BOOL { + windows_targets::link!("qwave.dll" "system" fn QOSNotifyFlow(qoshandle : super::super::Foundation:: HANDLE, flowid : u32, operation : QOS_NOTIFY_FLOW, size : *mut u32, buffer : *mut core::ffi::c_void, flags : u32, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { QOSNotifyFlow(qoshandle, flowid, operation, size.unwrap_or(core::mem::zeroed()) as _, buffer.unwrap_or(core::mem::zeroed()) as _, flags.unwrap_or(core::mem::zeroed()) as _, overlapped.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_System_IO")] #[inline] -pub unsafe fn QOSQueryFlow(qoshandle: super::super::Foundation::HANDLE, flowid: u32, operation: QOS_QUERY_FLOW, size: *mut u32, buffer: *mut core::ffi::c_void, flags: Option, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::BOOL { - windows_targets::link!("qwave.dll" "system" fn QOSQueryFlow(qoshandle : super::super::Foundation:: HANDLE, flowid : u32, operation : QOS_QUERY_FLOW, size : *mut u32, buffer : *mut core::ffi::c_void, flags : u32, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); +pub unsafe fn QOSQueryFlow(qoshandle: super::super::Foundation::HANDLE, flowid: u32, operation: QOS_QUERY_FLOW, size: *mut u32, buffer: *mut core::ffi::c_void, flags: Option, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::BOOL { + windows_targets::link!("qwave.dll" "system" fn QOSQueryFlow(qoshandle : super::super::Foundation:: HANDLE, flowid : u32, operation : QOS_QUERY_FLOW, size : *mut u32, buffer : *mut core::ffi::c_void, flags : u32, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { QOSQueryFlow(qoshandle, flowid, operation, size as _, buffer as _, flags.unwrap_or(core::mem::zeroed()) as _, overlapped.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] -pub unsafe fn QOSRemoveSocketFromFlow(qoshandle: super::super::Foundation::HANDLE, socket: Option, flowid: u32, flags: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("qwave.dll" "system" fn QOSRemoveSocketFromFlow(qoshandle : super::super::Foundation:: HANDLE, socket : super::super::Networking::WinSock:: SOCKET, flowid : u32, flags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn QOSRemoveSocketFromFlow(qoshandle: super::super::Foundation::HANDLE, socket: Option, flowid: u32, flags: Option) -> windows_core::BOOL { + windows_targets::link!("qwave.dll" "system" fn QOSRemoveSocketFromFlow(qoshandle : super::super::Foundation:: HANDLE, socket : super::super::Networking::WinSock:: SOCKET, flowid : u32, flags : u32) -> windows_core::BOOL); unsafe { QOSRemoveSocketFromFlow(qoshandle, socket.unwrap_or(core::mem::zeroed()) as _, flowid, flags.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_System_IO")] #[inline] -pub unsafe fn QOSSetFlow(qoshandle: super::super::Foundation::HANDLE, flowid: u32, operation: QOS_SET_FLOW, size: u32, buffer: *const core::ffi::c_void, flags: Option, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> super::super::Foundation::BOOL { - windows_targets::link!("qwave.dll" "system" fn QOSSetFlow(qoshandle : super::super::Foundation:: HANDLE, flowid : u32, operation : QOS_SET_FLOW, size : u32, buffer : *const core::ffi::c_void, flags : u32, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); +pub unsafe fn QOSSetFlow(qoshandle: super::super::Foundation::HANDLE, flowid: u32, operation: QOS_SET_FLOW, size: u32, buffer: *const core::ffi::c_void, flags: Option, overlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::BOOL { + windows_targets::link!("qwave.dll" "system" fn QOSSetFlow(qoshandle : super::super::Foundation:: HANDLE, flowid : u32, operation : QOS_SET_FLOW, size : u32, buffer : *const core::ffi::c_void, flags : u32, overlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { QOSSetFlow(qoshandle, flowid, operation, size, buffer, flags.unwrap_or(core::mem::zeroed()) as _, overlapped.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] -pub unsafe fn QOSStartTrackingClient(qoshandle: super::super::Foundation::HANDLE, destaddr: *const super::super::Networking::WinSock::SOCKADDR, flags: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("qwave.dll" "system" fn QOSStartTrackingClient(qoshandle : super::super::Foundation:: HANDLE, destaddr : *const super::super::Networking::WinSock:: SOCKADDR, flags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn QOSStartTrackingClient(qoshandle: super::super::Foundation::HANDLE, destaddr: *const super::super::Networking::WinSock::SOCKADDR, flags: Option) -> windows_core::BOOL { + windows_targets::link!("qwave.dll" "system" fn QOSStartTrackingClient(qoshandle : super::super::Foundation:: HANDLE, destaddr : *const super::super::Networking::WinSock:: SOCKADDR, flags : u32) -> windows_core::BOOL); unsafe { QOSStartTrackingClient(qoshandle, destaddr, flags.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_Networking_WinSock")] #[inline] -pub unsafe fn QOSStopTrackingClient(qoshandle: super::super::Foundation::HANDLE, destaddr: *const super::super::Networking::WinSock::SOCKADDR, flags: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("qwave.dll" "system" fn QOSStopTrackingClient(qoshandle : super::super::Foundation:: HANDLE, destaddr : *const super::super::Networking::WinSock:: SOCKADDR, flags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn QOSStopTrackingClient(qoshandle: super::super::Foundation::HANDLE, destaddr: *const super::super::Networking::WinSock::SOCKADDR, flags: Option) -> windows_core::BOOL { + windows_targets::link!("qwave.dll" "system" fn QOSStopTrackingClient(qoshandle : super::super::Foundation:: HANDLE, destaddr : *const super::super::Networking::WinSock:: SOCKADDR, flags : u32) -> windows_core::BOOL); unsafe { QOSStopTrackingClient(qoshandle, destaddr, flags.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1188,11 +1188,11 @@ pub struct QOS_FLOWRATE_REASON(pub i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct QOS_FLOW_FUNDAMENTALS { - pub BottleneckBandwidthSet: super::super::Foundation::BOOL, + pub BottleneckBandwidthSet: windows_core::BOOL, pub BottleneckBandwidth: u64, - pub AvailableBandwidthSet: super::super::Foundation::BOOL, + pub AvailableBandwidthSet: windows_core::BOOL, pub AvailableBandwidth: u64, - pub RTTSet: super::super::Foundation::BOOL, + pub RTTSet: windows_core::BOOL, pub RTT: u32, } impl Default for QOS_FLOW_FUNDAMENTALS { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Rras/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Rras/mod.rs index cf2b665328..081ff46b5f 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Rras/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Rras/mod.rs @@ -114,7 +114,7 @@ pub unsafe fn MprAdminConnectionGetInfoEx(hrasserver: isize, hrasconnection: sup } #[inline] pub unsafe fn MprAdminConnectionRemoveQuarantine(hrasserver: super::super::Foundation::HANDLE, hrasconnection: super::super::Foundation::HANDLE, fisipaddress: bool) -> u32 { - windows_targets::link!("mprapi.dll" "system" fn MprAdminConnectionRemoveQuarantine(hrasserver : super::super::Foundation:: HANDLE, hrasconnection : super::super::Foundation:: HANDLE, fisipaddress : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("mprapi.dll" "system" fn MprAdminConnectionRemoveQuarantine(hrasserver : super::super::Foundation:: HANDLE, hrasconnection : super::super::Foundation:: HANDLE, fisipaddress : windows_core::BOOL) -> u32); unsafe { MprAdminConnectionRemoveQuarantine(hrasserver, hrasconnection, fisipaddress.into()) } } #[inline] @@ -133,7 +133,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("mprapi.dll" "system" fn MprAdminEstablishDomainRasServer(pszdomain : windows_core::PCWSTR, pszmachine : windows_core::PCWSTR, benable : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("mprapi.dll" "system" fn MprAdminEstablishDomainRasServer(pszdomain : windows_core::PCWSTR, pszmachine : windows_core::PCWSTR, benable : windows_core::BOOL) -> u32); unsafe { MprAdminEstablishDomainRasServer(pszdomain.param().abi(), pszmachine.param().abi(), benable.into()) } } #[inline] @@ -152,7 +152,7 @@ where } #[inline] pub unsafe fn MprAdminInterfaceConnect(hmprserver: isize, hinterface: super::super::Foundation::HANDLE, hevent: super::super::Foundation::HANDLE, fsynchronous: bool) -> u32 { - windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceConnect(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, hevent : super::super::Foundation:: HANDLE, fsynchronous : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceConnect(hmprserver : isize, hinterface : super::super::Foundation:: HANDLE, hevent : super::super::Foundation:: HANDLE, fsynchronous : windows_core::BOOL) -> u32); unsafe { MprAdminInterfaceConnect(hmprserver, hinterface, hevent, fsynchronous.into()) } } #[inline] @@ -210,7 +210,7 @@ pub unsafe fn MprAdminInterfaceGetHandle(hmprserver: isize, lpwsinterfacenam where P1: windows_core::Param, { - windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceGetHandle(hmprserver : isize, lpwsinterfacename : windows_core::PCWSTR, phinterface : *mut super::super::Foundation:: HANDLE, fincludeclientinterfaces : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("mprapi.dll" "system" fn MprAdminInterfaceGetHandle(hmprserver : isize, lpwsinterfacename : windows_core::PCWSTR, phinterface : *mut super::super::Foundation:: HANDLE, fincludeclientinterfaces : windows_core::BOOL) -> u32); unsafe { MprAdminInterfaceGetHandle(hmprserver, lpwsinterfacename.param().abi(), phinterface as _, fincludeclientinterfaces.into()) } } #[inline] @@ -282,28 +282,28 @@ pub unsafe fn MprAdminInterfaceUpdateRoutes(hmprserver: isize, hinterface: super unsafe { MprAdminInterfaceUpdateRoutes(hmprserver, hinterface, dwprotocolid, hevent) } } #[inline] -pub unsafe fn MprAdminIsDomainRasServer(pszdomain: P0, pszmachine: P1, pbisrasserver: *mut super::super::Foundation::BOOL) -> u32 +pub unsafe fn MprAdminIsDomainRasServer(pszdomain: P0, pszmachine: P1, pbisrasserver: *mut windows_core::BOOL) -> u32 where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("mprapi.dll" "system" fn MprAdminIsDomainRasServer(pszdomain : windows_core::PCWSTR, pszmachine : windows_core::PCWSTR, pbisrasserver : *mut super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("mprapi.dll" "system" fn MprAdminIsDomainRasServer(pszdomain : windows_core::PCWSTR, pszmachine : windows_core::PCWSTR, pbisrasserver : *mut windows_core::BOOL) -> u32); unsafe { MprAdminIsDomainRasServer(pszdomain.param().abi(), pszmachine.param().abi(), pbisrasserver as _) } } #[inline] -pub unsafe fn MprAdminIsServiceInitialized(lpwsservername: P0, fisserviceinitialized: *const super::super::Foundation::BOOL) -> u32 +pub unsafe fn MprAdminIsServiceInitialized(lpwsservername: P0, fisserviceinitialized: *const windows_core::BOOL) -> u32 where P0: windows_core::Param, { - windows_targets::link!("mprapi.dll" "system" fn MprAdminIsServiceInitialized(lpwsservername : windows_core::PCWSTR, fisserviceinitialized : *const super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("mprapi.dll" "system" fn MprAdminIsServiceInitialized(lpwsservername : windows_core::PCWSTR, fisserviceinitialized : *const windows_core::BOOL) -> u32); unsafe { MprAdminIsServiceInitialized(lpwsservername.param().abi(), fisserviceinitialized) } } #[inline] -pub unsafe fn MprAdminIsServiceRunning(lpwsservername: P0) -> super::super::Foundation::BOOL +pub unsafe fn MprAdminIsServiceRunning(lpwsservername: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("mprapi.dll" "system" fn MprAdminIsServiceRunning(lpwsservername : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mprapi.dll" "system" fn MprAdminIsServiceRunning(lpwsservername : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { MprAdminIsServiceRunning(lpwsservername.param().abi()) } } #[inline] @@ -812,23 +812,23 @@ where unsafe { RasDialA(param0.unwrap_or(core::mem::zeroed()) as _, param1.param().abi(), param2, param3, param4.unwrap_or(core::mem::zeroed()) as _, param5 as _) } } #[inline] -pub unsafe fn RasDialDlgA(lpszphonebook: P0, lpszentry: P1, lpszphonenumber: P2, lpinfo: *mut RASDIALDLG) -> super::super::Foundation::BOOL +pub unsafe fn RasDialDlgA(lpszphonebook: P0, lpszentry: P1, lpszphonenumber: P2, lpinfo: *mut RASDIALDLG) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("rasdlg.dll" "system" fn RasDialDlgA(lpszphonebook : windows_core::PCSTR, lpszentry : windows_core::PCSTR, lpszphonenumber : windows_core::PCSTR, lpinfo : *mut RASDIALDLG) -> super::super::Foundation:: BOOL); + windows_targets::link!("rasdlg.dll" "system" fn RasDialDlgA(lpszphonebook : windows_core::PCSTR, lpszentry : windows_core::PCSTR, lpszphonenumber : windows_core::PCSTR, lpinfo : *mut RASDIALDLG) -> windows_core::BOOL); unsafe { RasDialDlgA(lpszphonebook.param().abi(), lpszentry.param().abi(), lpszphonenumber.param().abi(), lpinfo as _) } } #[inline] -pub unsafe fn RasDialDlgW(lpszphonebook: P0, lpszentry: P1, lpszphonenumber: P2, lpinfo: *mut RASDIALDLG) -> super::super::Foundation::BOOL +pub unsafe fn RasDialDlgW(lpszphonebook: P0, lpszentry: P1, lpszphonenumber: P2, lpinfo: *mut RASDIALDLG) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("rasdlg.dll" "system" fn RasDialDlgW(lpszphonebook : windows_core::PCWSTR, lpszentry : windows_core::PCWSTR, lpszphonenumber : windows_core::PCWSTR, lpinfo : *mut RASDIALDLG) -> super::super::Foundation:: BOOL); + windows_targets::link!("rasdlg.dll" "system" fn RasDialDlgW(lpszphonebook : windows_core::PCWSTR, lpszentry : windows_core::PCWSTR, lpszphonenumber : windows_core::PCWSTR, lpinfo : *mut RASDIALDLG) -> windows_core::BOOL); unsafe { RasDialDlgW(lpszphonebook.param().abi(), lpszentry.param().abi(), lpszphonenumber.param().abi(), lpinfo as _) } } #[inline] @@ -858,21 +858,21 @@ where unsafe { RasEditPhonebookEntryW(param0, param1.param().abi(), param2.param().abi()) } } #[inline] -pub unsafe fn RasEntryDlgA(lpszphonebook: P0, lpszentry: P1, lpinfo: *mut RASENTRYDLGA) -> super::super::Foundation::BOOL +pub unsafe fn RasEntryDlgA(lpszphonebook: P0, lpszentry: P1, lpinfo: *mut RASENTRYDLGA) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("rasdlg.dll" "system" fn RasEntryDlgA(lpszphonebook : windows_core::PCSTR, lpszentry : windows_core::PCSTR, lpinfo : *mut RASENTRYDLGA) -> super::super::Foundation:: BOOL); + windows_targets::link!("rasdlg.dll" "system" fn RasEntryDlgA(lpszphonebook : windows_core::PCSTR, lpszentry : windows_core::PCSTR, lpinfo : *mut RASENTRYDLGA) -> windows_core::BOOL); unsafe { RasEntryDlgA(lpszphonebook.param().abi(), lpszentry.param().abi(), lpinfo as _) } } #[inline] -pub unsafe fn RasEntryDlgW(lpszphonebook: P0, lpszentry: P1, lpinfo: *mut RASENTRYDLGW) -> super::super::Foundation::BOOL +pub unsafe fn RasEntryDlgW(lpszphonebook: P0, lpszentry: P1, lpinfo: *mut RASENTRYDLGW) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("rasdlg.dll" "system" fn RasEntryDlgW(lpszphonebook : windows_core::PCWSTR, lpszentry : windows_core::PCWSTR, lpinfo : *mut RASENTRYDLGW) -> super::super::Foundation:: BOOL); + windows_targets::link!("rasdlg.dll" "system" fn RasEntryDlgW(lpszphonebook : windows_core::PCWSTR, lpszentry : windows_core::PCWSTR, lpinfo : *mut RASENTRYDLGW) -> windows_core::BOOL); unsafe { RasEntryDlgW(lpszphonebook.param().abi(), lpszentry.param().abi(), lpinfo as _) } } #[inline] @@ -950,13 +950,13 @@ where unsafe { RasGetAutodialAddressW(param0.param().abi(), param1.unwrap_or(core::mem::zeroed()) as _, param2.unwrap_or(core::mem::zeroed()) as _, param3 as _, param4 as _) } } #[inline] -pub unsafe fn RasGetAutodialEnableA(param0: u32, param1: *mut super::super::Foundation::BOOL) -> u32 { - windows_targets::link!("rasapi32.dll" "system" fn RasGetAutodialEnableA(param0 : u32, param1 : *mut super::super::Foundation:: BOOL) -> u32); +pub unsafe fn RasGetAutodialEnableA(param0: u32, param1: *mut windows_core::BOOL) -> u32 { + windows_targets::link!("rasapi32.dll" "system" fn RasGetAutodialEnableA(param0 : u32, param1 : *mut windows_core::BOOL) -> u32); unsafe { RasGetAutodialEnableA(param0, param1 as _) } } #[inline] -pub unsafe fn RasGetAutodialEnableW(param0: u32, param1: *mut super::super::Foundation::BOOL) -> u32 { - windows_targets::link!("rasapi32.dll" "system" fn RasGetAutodialEnableW(param0 : u32, param1 : *mut super::super::Foundation:: BOOL) -> u32); +pub unsafe fn RasGetAutodialEnableW(param0: u32, param1: *mut windows_core::BOOL) -> u32 { + windows_targets::link!("rasapi32.dll" "system" fn RasGetAutodialEnableW(param0 : u32, param1 : *mut windows_core::BOOL) -> u32); unsafe { RasGetAutodialEnableW(param0, param1 as _) } } #[inline] @@ -1069,19 +1069,19 @@ where unsafe { RasGetEapUserIdentityW(pszphonebook.param().abi(), pszentry.param().abi(), dwflags, hwnd, ppraseapuseridentity as _) } } #[inline] -pub unsafe fn RasGetEntryDialParamsA(param0: P0, param1: *mut RASDIALPARAMSA, param2: *mut super::super::Foundation::BOOL) -> u32 +pub unsafe fn RasGetEntryDialParamsA(param0: P0, param1: *mut RASDIALPARAMSA, param2: *mut windows_core::BOOL) -> u32 where P0: windows_core::Param, { - windows_targets::link!("rasapi32.dll" "system" fn RasGetEntryDialParamsA(param0 : windows_core::PCSTR, param1 : *mut RASDIALPARAMSA, param2 : *mut super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("rasapi32.dll" "system" fn RasGetEntryDialParamsA(param0 : windows_core::PCSTR, param1 : *mut RASDIALPARAMSA, param2 : *mut windows_core::BOOL) -> u32); unsafe { RasGetEntryDialParamsA(param0.param().abi(), param1 as _, param2 as _) } } #[inline] -pub unsafe fn RasGetEntryDialParamsW(param0: P0, param1: *mut RASDIALPARAMSW, param2: *mut super::super::Foundation::BOOL) -> u32 +pub unsafe fn RasGetEntryDialParamsW(param0: P0, param1: *mut RASDIALPARAMSW, param2: *mut windows_core::BOOL) -> u32 where P0: windows_core::Param, { - windows_targets::link!("rasapi32.dll" "system" fn RasGetEntryDialParamsW(param0 : windows_core::PCWSTR, param1 : *mut RASDIALPARAMSW, param2 : *mut super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("rasapi32.dll" "system" fn RasGetEntryDialParamsW(param0 : windows_core::PCWSTR, param1 : *mut RASDIALPARAMSW, param2 : *mut windows_core::BOOL) -> u32); unsafe { RasGetEntryDialParamsW(param0.param().abi(), param1 as _, param2 as _) } } #[cfg(feature = "Win32_Networking_WinSock")] @@ -1184,21 +1184,21 @@ pub unsafe fn RasInvokeEapUI(param0: HRASCONN, param1: u32, param2: *const RASDI unsafe { RasInvokeEapUI(param0, param1, param2, param3) } } #[inline] -pub unsafe fn RasPhonebookDlgA(lpszphonebook: P0, lpszentry: P1, lpinfo: *mut RASPBDLGA) -> super::super::Foundation::BOOL +pub unsafe fn RasPhonebookDlgA(lpszphonebook: P0, lpszentry: P1, lpinfo: *mut RASPBDLGA) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("rasdlg.dll" "system" fn RasPhonebookDlgA(lpszphonebook : windows_core::PCSTR, lpszentry : windows_core::PCSTR, lpinfo : *mut RASPBDLGA) -> super::super::Foundation:: BOOL); + windows_targets::link!("rasdlg.dll" "system" fn RasPhonebookDlgA(lpszphonebook : windows_core::PCSTR, lpszentry : windows_core::PCSTR, lpinfo : *mut RASPBDLGA) -> windows_core::BOOL); unsafe { RasPhonebookDlgA(lpszphonebook.param().abi(), lpszentry.param().abi(), lpinfo as _) } } #[inline] -pub unsafe fn RasPhonebookDlgW(lpszphonebook: P0, lpszentry: P1, lpinfo: *mut RASPBDLGW) -> super::super::Foundation::BOOL +pub unsafe fn RasPhonebookDlgW(lpszphonebook: P0, lpszentry: P1, lpinfo: *mut RASPBDLGW) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("rasdlg.dll" "system" fn RasPhonebookDlgW(lpszphonebook : windows_core::PCWSTR, lpszentry : windows_core::PCWSTR, lpinfo : *mut RASPBDLGW) -> super::super::Foundation:: BOOL); + windows_targets::link!("rasdlg.dll" "system" fn RasPhonebookDlgW(lpszphonebook : windows_core::PCWSTR, lpszentry : windows_core::PCWSTR, lpinfo : *mut RASPBDLGW) -> windows_core::BOOL); unsafe { RasPhonebookDlgW(lpszphonebook.param().abi(), lpszentry.param().abi(), lpinfo as _) } } #[inline] @@ -1239,12 +1239,12 @@ where } #[inline] pub unsafe fn RasSetAutodialEnableA(param0: u32, param1: bool) -> u32 { - windows_targets::link!("rasapi32.dll" "system" fn RasSetAutodialEnableA(param0 : u32, param1 : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("rasapi32.dll" "system" fn RasSetAutodialEnableA(param0 : u32, param1 : windows_core::BOOL) -> u32); unsafe { RasSetAutodialEnableA(param0, param1.into()) } } #[inline] pub unsafe fn RasSetAutodialEnableW(param0: u32, param1: bool) -> u32 { - windows_targets::link!("rasapi32.dll" "system" fn RasSetAutodialEnableW(param0 : u32, param1 : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("rasapi32.dll" "system" fn RasSetAutodialEnableW(param0 : u32, param1 : windows_core::BOOL) -> u32); unsafe { RasSetAutodialEnableW(param0, param1.into()) } } #[inline] @@ -1263,7 +1263,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("rasapi32.dll" "system" fn RasSetCredentialsA(param0 : windows_core::PCSTR, param1 : windows_core::PCSTR, param2 : *const RASCREDENTIALSA, param3 : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("rasapi32.dll" "system" fn RasSetCredentialsA(param0 : windows_core::PCSTR, param1 : windows_core::PCSTR, param2 : *const RASCREDENTIALSA, param3 : windows_core::BOOL) -> u32); unsafe { RasSetCredentialsA(param0.param().abi(), param1.param().abi(), param2, param3.into()) } } #[inline] @@ -1272,7 +1272,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("rasapi32.dll" "system" fn RasSetCredentialsW(param0 : windows_core::PCWSTR, param1 : windows_core::PCWSTR, param2 : *const RASCREDENTIALSW, param3 : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("rasapi32.dll" "system" fn RasSetCredentialsW(param0 : windows_core::PCWSTR, param1 : windows_core::PCWSTR, param2 : *const RASCREDENTIALSW, param3 : windows_core::BOOL) -> u32); unsafe { RasSetCredentialsW(param0.param().abi(), param1.param().abi(), param2, param3.into()) } } #[inline] @@ -1316,7 +1316,7 @@ pub unsafe fn RasSetEntryDialParamsA(param0: P0, param1: *const RASDIALPARAM where P0: windows_core::Param, { - windows_targets::link!("rasapi32.dll" "system" fn RasSetEntryDialParamsA(param0 : windows_core::PCSTR, param1 : *const RASDIALPARAMSA, param2 : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("rasapi32.dll" "system" fn RasSetEntryDialParamsA(param0 : windows_core::PCSTR, param1 : *const RASDIALPARAMSA, param2 : windows_core::BOOL) -> u32); unsafe { RasSetEntryDialParamsA(param0.param().abi(), param1, param2.into()) } } #[inline] @@ -1324,7 +1324,7 @@ pub unsafe fn RasSetEntryDialParamsW(param0: P0, param1: *const RASDIALPARAM where P0: windows_core::Param, { - windows_targets::link!("rasapi32.dll" "system" fn RasSetEntryDialParamsW(param0 : windows_core::PCWSTR, param1 : *const RASDIALPARAMSW, param2 : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("rasapi32.dll" "system" fn RasSetEntryDialParamsW(param0 : windows_core::PCWSTR, param1 : *const RASDIALPARAMSW, param2 : windows_core::BOOL) -> u32); unsafe { RasSetEntryDialParamsW(param0.param().abi(), param1, param2.into()) } } #[cfg(feature = "Win32_Networking_WinSock")] @@ -1477,8 +1477,8 @@ pub unsafe fn RtmFindNextHop(rtmreghandle: isize, nexthopinfo: *mut RTM_NEXTHOP_ unsafe { RtmFindNextHop(rtmreghandle, nexthopinfo as _, nexthophandle as _, nexthoppointer as _) } } #[inline] -pub unsafe fn RtmGetChangeStatus(rtmreghandle: isize, notifyhandle: isize, desthandle: isize, changestatus: *mut super::super::Foundation::BOOL) -> u32 { - windows_targets::link!("rtm.dll" "system" fn RtmGetChangeStatus(rtmreghandle : isize, notifyhandle : isize, desthandle : isize, changestatus : *mut super::super::Foundation:: BOOL) -> u32); +pub unsafe fn RtmGetChangeStatus(rtmreghandle: isize, notifyhandle: isize, desthandle: isize, changestatus: *mut windows_core::BOOL) -> u32 { + windows_targets::link!("rtm.dll" "system" fn RtmGetChangeStatus(rtmreghandle : isize, notifyhandle : isize, desthandle : isize, changestatus : *mut windows_core::BOOL) -> u32); unsafe { RtmGetChangeStatus(rtmreghandle, notifyhandle, desthandle, changestatus as _) } } #[inline] @@ -1597,28 +1597,28 @@ pub unsafe fn RtmIsBestRoute(rtmreghandle: isize, routehandle: isize, bestinview unsafe { RtmIsBestRoute(rtmreghandle, routehandle, bestinviews as _) } } #[inline] -pub unsafe fn RtmIsMarkedForChangeNotification(rtmreghandle: isize, notifyhandle: isize, desthandle: isize, destmarked: *mut super::super::Foundation::BOOL) -> u32 { - windows_targets::link!("rtm.dll" "system" fn RtmIsMarkedForChangeNotification(rtmreghandle : isize, notifyhandle : isize, desthandle : isize, destmarked : *mut super::super::Foundation:: BOOL) -> u32); +pub unsafe fn RtmIsMarkedForChangeNotification(rtmreghandle: isize, notifyhandle: isize, desthandle: isize, destmarked: *mut windows_core::BOOL) -> u32 { + windows_targets::link!("rtm.dll" "system" fn RtmIsMarkedForChangeNotification(rtmreghandle : isize, notifyhandle : isize, desthandle : isize, destmarked : *mut windows_core::BOOL) -> u32); unsafe { RtmIsMarkedForChangeNotification(rtmreghandle, notifyhandle, desthandle, destmarked as _) } } #[inline] pub unsafe fn RtmLockDestination(rtmreghandle: isize, desthandle: isize, exclusive: bool, lockdest: bool) -> u32 { - windows_targets::link!("rtm.dll" "system" fn RtmLockDestination(rtmreghandle : isize, desthandle : isize, exclusive : super::super::Foundation:: BOOL, lockdest : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("rtm.dll" "system" fn RtmLockDestination(rtmreghandle : isize, desthandle : isize, exclusive : windows_core::BOOL, lockdest : windows_core::BOOL) -> u32); unsafe { RtmLockDestination(rtmreghandle, desthandle, exclusive.into(), lockdest.into()) } } #[inline] pub unsafe fn RtmLockNextHop(rtmreghandle: isize, nexthophandle: isize, exclusive: bool, locknexthop: bool, nexthoppointer: *mut *mut RTM_NEXTHOP_INFO) -> u32 { - windows_targets::link!("rtm.dll" "system" fn RtmLockNextHop(rtmreghandle : isize, nexthophandle : isize, exclusive : super::super::Foundation:: BOOL, locknexthop : super::super::Foundation:: BOOL, nexthoppointer : *mut *mut RTM_NEXTHOP_INFO) -> u32); + windows_targets::link!("rtm.dll" "system" fn RtmLockNextHop(rtmreghandle : isize, nexthophandle : isize, exclusive : windows_core::BOOL, locknexthop : windows_core::BOOL, nexthoppointer : *mut *mut RTM_NEXTHOP_INFO) -> u32); unsafe { RtmLockNextHop(rtmreghandle, nexthophandle, exclusive.into(), locknexthop.into(), nexthoppointer as _) } } #[inline] pub unsafe fn RtmLockRoute(rtmreghandle: isize, routehandle: isize, exclusive: bool, lockroute: bool, routepointer: *mut *mut RTM_ROUTE_INFO) -> u32 { - windows_targets::link!("rtm.dll" "system" fn RtmLockRoute(rtmreghandle : isize, routehandle : isize, exclusive : super::super::Foundation:: BOOL, lockroute : super::super::Foundation:: BOOL, routepointer : *mut *mut RTM_ROUTE_INFO) -> u32); + windows_targets::link!("rtm.dll" "system" fn RtmLockRoute(rtmreghandle : isize, routehandle : isize, exclusive : windows_core::BOOL, lockroute : windows_core::BOOL, routepointer : *mut *mut RTM_ROUTE_INFO) -> u32); unsafe { RtmLockRoute(rtmreghandle, routehandle, exclusive.into(), lockroute.into(), routepointer as _) } } #[inline] pub unsafe fn RtmMarkDestForChangeNotification(rtmreghandle: isize, notifyhandle: isize, desthandle: isize, markdest: bool) -> u32 { - windows_targets::link!("rtm.dll" "system" fn RtmMarkDestForChangeNotification(rtmreghandle : isize, notifyhandle : isize, desthandle : isize, markdest : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("rtm.dll" "system" fn RtmMarkDestForChangeNotification(rtmreghandle : isize, notifyhandle : isize, desthandle : isize, markdest : windows_core::BOOL) -> u32); unsafe { RtmMarkDestForChangeNotification(rtmreghandle, notifyhandle, desthandle, markdest.into()) } } #[inline] @@ -1628,7 +1628,7 @@ pub unsafe fn RtmReferenceHandles(rtmreghandle: isize, numhandles: u32, rtmhandl } #[inline] pub unsafe fn RtmRegisterEntity(rtmentityinfo: *mut RTM_ENTITY_INFO, exportmethods: *mut RTM_ENTITY_EXPORT_METHODS, eventcallback: RTM_EVENT_CALLBACK, reserveopaquepointer: bool, rtmregprofile: *mut RTM_REGN_PROFILE, rtmreghandle: *mut isize) -> u32 { - windows_targets::link!("rtm.dll" "system" fn RtmRegisterEntity(rtmentityinfo : *mut RTM_ENTITY_INFO, exportmethods : *mut RTM_ENTITY_EXPORT_METHODS, eventcallback : RTM_EVENT_CALLBACK, reserveopaquepointer : super::super::Foundation:: BOOL, rtmregprofile : *mut RTM_REGN_PROFILE, rtmreghandle : *mut isize) -> u32); + windows_targets::link!("rtm.dll" "system" fn RtmRegisterEntity(rtmentityinfo : *mut RTM_ENTITY_INFO, exportmethods : *mut RTM_ENTITY_EXPORT_METHODS, eventcallback : RTM_EVENT_CALLBACK, reserveopaquepointer : windows_core::BOOL, rtmregprofile : *mut RTM_REGN_PROFILE, rtmreghandle : *mut isize) -> u32); unsafe { RtmRegisterEntity(rtmentityinfo as _, exportmethods as _, eventcallback, reserveopaquepointer.into(), rtmregprofile as _, rtmreghandle as _) } } #[inline] @@ -2236,8 +2236,8 @@ pub const MGM_FORWARD_STATE_FLAG: u32 = 2u32; pub struct MGM_IF_ENTRY { pub dwIfIndex: u32, pub dwIfNextHopAddr: u32, - pub bIGMP: super::super::Foundation::BOOL, - pub bIsEnabled: super::super::Foundation::BOOL, + pub bIGMP: windows_core::BOOL, + pub bIsEnabled: windows_core::BOOL, } impl Default for MGM_IF_ENTRY { fn default() -> Self { @@ -2403,7 +2403,7 @@ pub const MPRNP_Ipx: u32 = 2u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct MPR_CERT_EKU { pub dwSize: u32, - pub IsEKUOID: super::super::Foundation::BOOL, + pub IsEKUOID: windows_core::BOOL, pub pwszEKU: windows_core::PWSTR, } impl Default for MPR_CERT_EKU { @@ -2469,7 +2469,7 @@ pub const MPR_ET_RequireMax: MPR_ET = MPR_ET(2u32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct MPR_FILTER_0 { - pub fEnable: super::super::Foundation::BOOL, + pub fEnable: windows_core::BOOL, } impl Default for MPR_FILTER_0 { fn default() -> Self { @@ -2535,7 +2535,7 @@ impl Default for MPR_IF_CUSTOMINFOEX2 { pub struct MPR_INTERFACE_0 { pub wszInterfaceName: [u16; 257], pub hInterface: super::super::Foundation::HANDLE, - pub fEnabled: super::super::Foundation::BOOL, + pub fEnabled: windows_core::BOOL, pub dwIfType: ROUTER_INTERFACE_TYPE, pub dwConnectionState: ROUTER_CONNECTION_STATE, pub fUnReachabilityReasons: u32, @@ -2551,7 +2551,7 @@ impl Default for MPR_INTERFACE_0 { pub struct MPR_INTERFACE_1 { pub wszInterfaceName: [u16; 257], pub hInterface: super::super::Foundation::HANDLE, - pub fEnabled: super::super::Foundation::BOOL, + pub fEnabled: windows_core::BOOL, pub dwIfType: ROUTER_INTERFACE_TYPE, pub dwConnectionState: ROUTER_CONNECTION_STATE, pub fUnReachabilityReasons: u32, @@ -2568,7 +2568,7 @@ impl Default for MPR_INTERFACE_1 { pub struct MPR_INTERFACE_2 { pub wszInterfaceName: [u16; 257], pub hInterface: super::super::Foundation::HANDLE, - pub fEnabled: super::super::Foundation::BOOL, + pub fEnabled: windows_core::BOOL, pub dwIfType: ROUTER_INTERFACE_TYPE, pub dwConnectionState: ROUTER_CONNECTION_STATE, pub fUnReachabilityReasons: u32, @@ -2615,7 +2615,7 @@ impl Default for MPR_INTERFACE_2 { pub struct MPR_INTERFACE_3 { pub wszInterfaceName: [u16; 257], pub hInterface: super::super::Foundation::HANDLE, - pub fEnabled: super::super::Foundation::BOOL, + pub fEnabled: windows_core::BOOL, pub dwIfType: ROUTER_INTERFACE_TYPE, pub dwConnectionState: ROUTER_CONNECTION_STATE, pub fUnReachabilityReasons: u32, @@ -2697,7 +2697,7 @@ pub const MPR_MaxX25Address: u32 = 200u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct MPR_SERVER_0 { - pub fLanOnlyMode: super::super::Foundation::BOOL, + pub fLanOnlyMode: windows_core::BOOL, pub dwUpTime: u32, pub dwTotalPorts: u32, pub dwPortsInUse: u32, @@ -2859,7 +2859,7 @@ pub const MPR_VS_L2tpFirst: MPR_VS = MPR_VS(4u32); pub const MPR_VS_L2tpOnly: MPR_VS = MPR_VS(3u32); pub const MPR_VS_PptpFirst: MPR_VS = MPR_VS(2u32); pub const MPR_VS_PptpOnly: MPR_VS = MPR_VS(1u32); -pub type ORASADFUNC = Option super::super::Foundation::BOOL>; +pub type ORASADFUNC = Option windows_core::BOOL>; pub const PENDING: u32 = 600u32; pub type PFNRASFREEBUFFER = Option u32>; pub type PFNRASGETBUFFER = Option u32>; @@ -2875,27 +2875,27 @@ pub const PID_NBF: u32 = 63u32; pub type PMGM_CREATION_ALERT_CALLBACK = Option u32>; pub type PMGM_DISABLE_IGMP_CALLBACK = Option u32>; pub type PMGM_ENABLE_IGMP_CALLBACK = Option u32>; -pub type PMGM_JOIN_ALERT_CALLBACK = Option u32>; +pub type PMGM_JOIN_ALERT_CALLBACK = Option u32>; pub type PMGM_LOCAL_JOIN_CALLBACK = Option u32>; pub type PMGM_LOCAL_LEAVE_CALLBACK = Option u32>; -pub type PMGM_PRUNE_ALERT_CALLBACK = Option u32>; +pub type PMGM_PRUNE_ALERT_CALLBACK = Option u32>; pub type PMGM_RPF_CALLBACK = Option u32>; pub type PMGM_WRONG_IF_CALLBACK = Option u32>; -pub type PMPRADMINACCEPTNEWCONNECTION = Option super::super::Foundation::BOOL>; -pub type PMPRADMINACCEPTNEWCONNECTION2 = Option super::super::Foundation::BOOL>; -pub type PMPRADMINACCEPTNEWCONNECTION3 = Option super::super::Foundation::BOOL>; -pub type PMPRADMINACCEPTNEWCONNECTIONEX = Option super::super::Foundation::BOOL>; -pub type PMPRADMINACCEPTNEWLINK = Option super::super::Foundation::BOOL>; -pub type PMPRADMINACCEPTREAUTHENTICATION = Option super::super::Foundation::BOOL>; -pub type PMPRADMINACCEPTREAUTHENTICATIONEX = Option super::super::Foundation::BOOL>; -pub type PMPRADMINACCEPTTUNNELENDPOINTCHANGEEX = Option super::super::Foundation::BOOL>; +pub type PMPRADMINACCEPTNEWCONNECTION = Option windows_core::BOOL>; +pub type PMPRADMINACCEPTNEWCONNECTION2 = Option windows_core::BOOL>; +pub type PMPRADMINACCEPTNEWCONNECTION3 = Option windows_core::BOOL>; +pub type PMPRADMINACCEPTNEWCONNECTIONEX = Option windows_core::BOOL>; +pub type PMPRADMINACCEPTNEWLINK = Option windows_core::BOOL>; +pub type PMPRADMINACCEPTREAUTHENTICATION = Option windows_core::BOOL>; +pub type PMPRADMINACCEPTREAUTHENTICATIONEX = Option windows_core::BOOL>; +pub type PMPRADMINACCEPTTUNNELENDPOINTCHANGEEX = Option windows_core::BOOL>; pub type PMPRADMINCONNECTIONHANGUPNOTIFICATION = Option; pub type PMPRADMINCONNECTIONHANGUPNOTIFICATION2 = Option; pub type PMPRADMINCONNECTIONHANGUPNOTIFICATION3 = Option; pub type PMPRADMINCONNECTIONHANGUPNOTIFICATIONEX = Option; -pub type PMPRADMINGETIPADDRESSFORUSER = Option u32>; +pub type PMPRADMINGETIPADDRESSFORUSER = Option u32>; #[cfg(feature = "Win32_Networking_WinSock")] -pub type PMPRADMINGETIPV6ADDRESSFORUSER = Option u32>; +pub type PMPRADMINGETIPV6ADDRESSFORUSER = Option u32>; pub type PMPRADMINLINKHANGUPNOTIFICATION = Option; pub type PMPRADMINRASVALIDATEPREAUTHENTICATEDCONNECTIONEX = Option u32>; pub type PMPRADMINRELEASEIPADRESS = Option; @@ -3220,8 +3220,8 @@ impl Default for PROJECTION_INFO2_0 { pub const PROJECTION_INFO_TYPE_IKEv2: RASPROJECTION_INFO_TYPE = RASPROJECTION_INFO_TYPE(2i32); pub const PROJECTION_INFO_TYPE_PPP: RASPROJECTION_INFO_TYPE = RASPROJECTION_INFO_TYPE(1i32); pub const RASADFLG_PositionDlg: u32 = 1u32; -pub type RASADFUNCA = Option super::super::Foundation::BOOL>; -pub type RASADFUNCW = Option super::super::Foundation::BOOL>; +pub type RASADFUNCA = Option windows_core::BOOL>; +pub type RASADFUNCW = Option windows_core::BOOL>; #[repr(C, packed(4))] #[derive(Clone, Copy)] pub struct RASADPARAMS { @@ -3649,7 +3649,7 @@ pub struct RASDIALEXTENSIONS { pub reserved: usize, pub reserved1: usize, pub RasEapInfo: RASEAPINFO, - pub fSkipPppAuth: super::super::Foundation::BOOL, + pub fSkipPppAuth: windows_core::BOOL, pub RasDevSpecificInfo: RASDEVSPECIFICINFO, } impl Default for RASDIALEXTENSIONS { @@ -3875,10 +3875,10 @@ pub struct RASENTRYA { pub dwNetworkOutageTime: u32, pub szIDi: [i8; 257], pub szIDr: [i8; 257], - pub fIsImsConfig: super::super::Foundation::BOOL, + pub fIsImsConfig: windows_core::BOOL, pub IdiType: IKEV2_ID_PAYLOAD_TYPE, pub IdrType: IKEV2_ID_PAYLOAD_TYPE, - pub fDisableIKEv2Fragmentation: super::super::Foundation::BOOL, + pub fDisableIKEv2Fragmentation: windows_core::BOOL, } #[cfg(feature = "Win32_Networking_WinSock")] impl Default for RASENTRYA { @@ -4053,10 +4053,10 @@ pub struct RASENTRYW { pub dwNetworkOutageTime: u32, pub szIDi: [u16; 257], pub szIDr: [u16; 257], - pub fIsImsConfig: super::super::Foundation::BOOL, + pub fIsImsConfig: windows_core::BOOL, pub IdiType: IKEV2_ID_PAYLOAD_TYPE, pub IdrType: IKEV2_ID_PAYLOAD_TYPE, - pub fDisableIKEv2Fragmentation: super::super::Foundation::BOOL, + pub fDisableIKEv2Fragmentation: windows_core::BOOL, } #[cfg(feature = "Win32_Networking_WinSock")] impl Default for RASENTRYW { @@ -4491,7 +4491,7 @@ impl Default for RASPPPIPXA { #[derive(Clone, Copy, Debug, PartialEq)] pub struct RASPPPLCPA { pub dwSize: u32, - pub fBundled: super::super::Foundation::BOOL, + pub fBundled: windows_core::BOOL, pub dwError: u32, pub dwAuthenticationProtocol: u32, pub dwAuthenticationData: u32, @@ -4499,7 +4499,7 @@ pub struct RASPPPLCPA { pub dwServerAuthenticationProtocol: u32, pub dwServerAuthenticationData: u32, pub dwServerEapTypeId: u32, - pub fMultilink: super::super::Foundation::BOOL, + pub fMultilink: windows_core::BOOL, pub dwTerminateReason: u32, pub dwServerTerminateReason: u32, pub szReplyMessage: [i8; 1024], @@ -4515,7 +4515,7 @@ impl Default for RASPPPLCPA { #[derive(Clone, Copy, Debug, PartialEq)] pub struct RASPPPLCPW { pub dwSize: u32, - pub fBundled: super::super::Foundation::BOOL, + pub fBundled: windows_core::BOOL, pub dwError: u32, pub dwAuthenticationProtocol: u32, pub dwAuthenticationData: u32, @@ -4523,7 +4523,7 @@ pub struct RASPPPLCPW { pub dwServerAuthenticationProtocol: u32, pub dwServerAuthenticationData: u32, pub dwServerEapTypeId: u32, - pub fMultilink: super::super::Foundation::BOOL, + pub fMultilink: windows_core::BOOL, pub dwTerminateReason: u32, pub dwServerTerminateReason: u32, pub szReplyMessage: [u16; 1024], @@ -4577,8 +4577,8 @@ pub struct RASPPP_PROJECTION_INFO { pub dwIPv6NegotiationError: u32, pub bInterfaceIdentifier: [u8; 8], pub bServerInterfaceIdentifier: [u8; 8], - pub fBundled: super::super::Foundation::BOOL, - pub fMultilink: super::super::Foundation::BOOL, + pub fBundled: windows_core::BOOL, + pub fMultilink: windows_core::BOOL, pub dwAuthenticationProtocol: RASPPP_PROJECTION_INFO_SERVER_AUTH_PROTOCOL, pub dwAuthenticationData: RASPPP_PROJECTION_INFO_SERVER_AUTH_DATA, pub dwServerAuthenticationProtocol: RASPPP_PROJECTION_INFO_SERVER_AUTH_PROTOCOL, @@ -5463,9 +5463,9 @@ pub const RTM_VIEW_MASK_NONE: u32 = 0u32; pub const RTM_VIEW_MASK_SIZE: u32 = 32u32; pub const RTM_VIEW_MASK_UCAST: u32 = 1u32; pub type RasCustomDeleteEntryNotifyFn = Option u32>; -pub type RasCustomDialDlgFn = Option super::super::Foundation::BOOL>; +pub type RasCustomDialDlgFn = Option windows_core::BOOL>; pub type RasCustomDialFn = Option u32>; -pub type RasCustomEntryDlgFn = Option super::super::Foundation::BOOL>; +pub type RasCustomEntryDlgFn = Option windows_core::BOOL>; pub type RasCustomHangUpFn = Option u32>; pub type RasCustomScriptExecuteFn = Option u32>; pub const SECURITYMSG_ERROR: SECURITY_MESSAGE_MSG_ID = SECURITY_MESSAGE_MSG_ID(3u32); @@ -5505,7 +5505,7 @@ impl Default for SOURCE_GROUP_ENTRY { #[cfg(feature = "Win32_Security_Cryptography")] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SSTP_CERT_INFO { - pub isDefault: super::super::Foundation::BOOL, + pub isDefault: windows_core::BOOL, pub certBlob: super::super::Security::Cryptography::CRYPT_INTEGER_BLOB, } #[cfg(feature = "Win32_Security_Cryptography")] @@ -5520,7 +5520,7 @@ impl Default for SSTP_CERT_INFO { pub struct SSTP_CONFIG_PARAMS { pub dwNumPorts: u32, pub dwPortFlags: u32, - pub isUseHttps: super::super::Foundation::BOOL, + pub isUseHttps: windows_core::BOOL, pub certAlgorithm: u32, pub sstpCertDetails: SSTP_CERT_INFO, } diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Snmp/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Snmp/mod.rs index 649f6a8303..6428996fe5 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/Snmp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/Snmp/mod.rs @@ -149,28 +149,28 @@ pub unsafe fn SnmpListenEx(hentity: isize, lstatus: u32, nuseentityaddr: u32) -> unsafe { SnmpListenEx(hentity, lstatus, nuseentityaddr) } } #[inline] -pub unsafe fn SnmpMgrClose(session: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("mgmtapi.dll" "system" fn SnmpMgrClose(session : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn SnmpMgrClose(session: *mut core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("mgmtapi.dll" "system" fn SnmpMgrClose(session : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { SnmpMgrClose(session as _) } } #[inline] pub unsafe fn SnmpMgrCtl(session: *mut core::ffi::c_void, dwctlcode: u32, lpvinbuffer: *mut core::ffi::c_void, cbinbuffer: u32, lpvoutbuffer: *mut core::ffi::c_void, cboutbuffer: u32, lpcbbytesreturned: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("mgmtapi.dll" "system" fn SnmpMgrCtl(session : *mut core::ffi::c_void, dwctlcode : u32, lpvinbuffer : *mut core::ffi::c_void, cbinbuffer : u32, lpvoutbuffer : *mut core::ffi::c_void, cboutbuffer : u32, lpcbbytesreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("mgmtapi.dll" "system" fn SnmpMgrCtl(session : *mut core::ffi::c_void, dwctlcode : u32, lpvinbuffer : *mut core::ffi::c_void, cbinbuffer : u32, lpvoutbuffer : *mut core::ffi::c_void, cboutbuffer : u32, lpcbbytesreturned : *mut u32) -> windows_core::BOOL); unsafe { SnmpMgrCtl(session as _, dwctlcode, lpvinbuffer as _, cbinbuffer, lpvoutbuffer as _, cboutbuffer, lpcbbytesreturned as _).ok() } } #[inline] -pub unsafe fn SnmpMgrGetTrap(enterprise: *mut AsnObjectIdentifier, ipaddress: *mut AsnOctetString, generictrap: *mut SNMP_GENERICTRAP, specifictrap: *mut i32, timestamp: *mut u32, variablebindings: *mut SnmpVarBindList) -> super::super::Foundation::BOOL { - windows_targets::link!("mgmtapi.dll" "system" fn SnmpMgrGetTrap(enterprise : *mut AsnObjectIdentifier, ipaddress : *mut AsnOctetString, generictrap : *mut SNMP_GENERICTRAP, specifictrap : *mut i32, timestamp : *mut u32, variablebindings : *mut SnmpVarBindList) -> super::super::Foundation:: BOOL); +pub unsafe fn SnmpMgrGetTrap(enterprise: *mut AsnObjectIdentifier, ipaddress: *mut AsnOctetString, generictrap: *mut SNMP_GENERICTRAP, specifictrap: *mut i32, timestamp: *mut u32, variablebindings: *mut SnmpVarBindList) -> windows_core::BOOL { + windows_targets::link!("mgmtapi.dll" "system" fn SnmpMgrGetTrap(enterprise : *mut AsnObjectIdentifier, ipaddress : *mut AsnOctetString, generictrap : *mut SNMP_GENERICTRAP, specifictrap : *mut i32, timestamp : *mut u32, variablebindings : *mut SnmpVarBindList) -> windows_core::BOOL); unsafe { SnmpMgrGetTrap(enterprise as _, ipaddress as _, generictrap as _, specifictrap as _, timestamp as _, variablebindings as _) } } #[inline] -pub unsafe fn SnmpMgrGetTrapEx(enterprise: *mut AsnObjectIdentifier, agentaddress: *mut AsnOctetString, sourceaddress: *mut AsnOctetString, generictrap: *mut SNMP_GENERICTRAP, specifictrap: *mut i32, community: *mut AsnOctetString, timestamp: *mut u32, variablebindings: *mut SnmpVarBindList) -> super::super::Foundation::BOOL { - windows_targets::link!("mgmtapi.dll" "system" fn SnmpMgrGetTrapEx(enterprise : *mut AsnObjectIdentifier, agentaddress : *mut AsnOctetString, sourceaddress : *mut AsnOctetString, generictrap : *mut SNMP_GENERICTRAP, specifictrap : *mut i32, community : *mut AsnOctetString, timestamp : *mut u32, variablebindings : *mut SnmpVarBindList) -> super::super::Foundation:: BOOL); +pub unsafe fn SnmpMgrGetTrapEx(enterprise: *mut AsnObjectIdentifier, agentaddress: *mut AsnOctetString, sourceaddress: *mut AsnOctetString, generictrap: *mut SNMP_GENERICTRAP, specifictrap: *mut i32, community: *mut AsnOctetString, timestamp: *mut u32, variablebindings: *mut SnmpVarBindList) -> windows_core::BOOL { + windows_targets::link!("mgmtapi.dll" "system" fn SnmpMgrGetTrapEx(enterprise : *mut AsnObjectIdentifier, agentaddress : *mut AsnOctetString, sourceaddress : *mut AsnOctetString, generictrap : *mut SNMP_GENERICTRAP, specifictrap : *mut i32, community : *mut AsnOctetString, timestamp : *mut u32, variablebindings : *mut SnmpVarBindList) -> windows_core::BOOL); unsafe { SnmpMgrGetTrapEx(enterprise as _, agentaddress as _, sourceaddress as _, generictrap as _, specifictrap as _, community as _, timestamp as _, variablebindings as _) } } #[inline] -pub unsafe fn SnmpMgrOidToStr(oid: *mut AsnObjectIdentifier, string: Option<*mut windows_core::PSTR>) -> super::super::Foundation::BOOL { - windows_targets::link!("mgmtapi.dll" "system" fn SnmpMgrOidToStr(oid : *mut AsnObjectIdentifier, string : *mut windows_core::PSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn SnmpMgrOidToStr(oid: *mut AsnObjectIdentifier, string: Option<*mut windows_core::PSTR>) -> windows_core::BOOL { + windows_targets::link!("mgmtapi.dll" "system" fn SnmpMgrOidToStr(oid : *mut AsnObjectIdentifier, string : *mut windows_core::PSTR) -> windows_core::BOOL); unsafe { SnmpMgrOidToStr(oid as _, string.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -188,16 +188,16 @@ pub unsafe fn SnmpMgrRequest(session: *mut core::ffi::c_void, requesttype: u8, v unsafe { SnmpMgrRequest(session as _, requesttype, variablebindings as _, errorstatus as _, errorindex as _) } } #[inline] -pub unsafe fn SnmpMgrStrToOid(string: P0, oid: *mut AsnObjectIdentifier) -> super::super::Foundation::BOOL +pub unsafe fn SnmpMgrStrToOid(string: P0, oid: *mut AsnObjectIdentifier) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("mgmtapi.dll" "system" fn SnmpMgrStrToOid(string : windows_core::PCSTR, oid : *mut AsnObjectIdentifier) -> super::super::Foundation:: BOOL); + windows_targets::link!("mgmtapi.dll" "system" fn SnmpMgrStrToOid(string : windows_core::PCSTR, oid : *mut AsnObjectIdentifier) -> windows_core::BOOL); unsafe { SnmpMgrStrToOid(string.param().abi(), oid as _) } } #[inline] pub unsafe fn SnmpMgrTrapListen(phtrapavailable: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("mgmtapi.dll" "system" fn SnmpMgrTrapListen(phtrapavailable : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("mgmtapi.dll" "system" fn SnmpMgrTrapListen(phtrapavailable : *mut super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SnmpMgrTrapListen(phtrapavailable as _).ok() } } #[inline] @@ -506,7 +506,7 @@ impl Default for AsnObjectIdentifier { pub struct AsnOctetString { pub stream: *mut u8, pub length: u32, - pub dynamic: super::super::Foundation::BOOL, + pub dynamic: windows_core::BOOL, } #[cfg(target_arch = "x86")] impl Default for AsnOctetString { @@ -520,7 +520,7 @@ impl Default for AsnOctetString { pub struct AsnOctetString { pub stream: *mut u8, pub length: u32, - pub dynamic: super::super::Foundation::BOOL, + pub dynamic: windows_core::BOOL, } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] impl Default for AsnOctetString { @@ -538,12 +538,12 @@ pub const MAXVENDORINFO: u32 = 32u32; pub const MGMCTL_SETAGENTPORT: u32 = 1u32; pub type PFNSNMPCLEANUPEX = Option u32>; pub type PFNSNMPEXTENSIONCLOSE = Option; -pub type PFNSNMPEXTENSIONINIT = Option super::super::Foundation::BOOL>; -pub type PFNSNMPEXTENSIONINITEX = Option super::super::Foundation::BOOL>; -pub type PFNSNMPEXTENSIONMONITOR = Option super::super::Foundation::BOOL>; -pub type PFNSNMPEXTENSIONQUERY = Option super::super::Foundation::BOOL>; -pub type PFNSNMPEXTENSIONQUERYEX = Option super::super::Foundation::BOOL>; -pub type PFNSNMPEXTENSIONTRAP = Option super::super::Foundation::BOOL>; +pub type PFNSNMPEXTENSIONINIT = Option windows_core::BOOL>; +pub type PFNSNMPEXTENSIONINITEX = Option windows_core::BOOL>; +pub type PFNSNMPEXTENSIONMONITOR = Option windows_core::BOOL>; +pub type PFNSNMPEXTENSIONQUERY = Option windows_core::BOOL>; +pub type PFNSNMPEXTENSIONQUERYEX = Option windows_core::BOOL>; +pub type PFNSNMPEXTENSIONTRAP = Option windows_core::BOOL>; pub type PFNSNMPSTARTUPEX = Option u32>; pub const SNMPAPI_ALLOC_ERROR: u32 = 2u32; pub type SNMPAPI_CALLBACK = Option u32>; diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WNet/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WNet/mod.rs index 89f57ce17a..6a60373e5d 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WNet/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WNet/mod.rs @@ -36,7 +36,7 @@ pub unsafe fn NPCancelConnection(lpname: P0, fforce: bool) -> u32 where P0: windows_core::Param, { - windows_targets::link!("davclnt.dll" "system" fn NPCancelConnection(lpname : windows_core::PCWSTR, fforce : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("davclnt.dll" "system" fn NPCancelConnection(lpname : windows_core::PCWSTR, fforce : windows_core::BOOL) -> u32); unsafe { NPCancelConnection(lpname.param().abi(), fforce.into()) } } #[inline] @@ -44,7 +44,7 @@ pub unsafe fn NPCancelConnection2(lpname: P0, fforce: bool, dwflags: u32) -> where P0: windows_core::Param, { - windows_targets::link!("ntlanman.dll" "system" fn NPCancelConnection2(lpname : windows_core::PCWSTR, fforce : super::super::Foundation:: BOOL, dwflags : u32) -> u32); + windows_targets::link!("ntlanman.dll" "system" fn NPCancelConnection2(lpname : windows_core::PCWSTR, fforce : windows_core::BOOL, dwflags : u32) -> u32); unsafe { NPCancelConnection2(lpname.param().abi(), fforce.into(), dwflags) } } #[inline] @@ -204,7 +204,7 @@ pub unsafe fn WNetCancelConnection2A(lpname: P0, dwflags: NET_CONNECT_FLAGS, where P0: windows_core::Param, { - windows_targets::link!("mpr.dll" "system" fn WNetCancelConnection2A(lpname : windows_core::PCSTR, dwflags : NET_CONNECT_FLAGS, fforce : super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); + windows_targets::link!("mpr.dll" "system" fn WNetCancelConnection2A(lpname : windows_core::PCSTR, dwflags : NET_CONNECT_FLAGS, fforce : windows_core::BOOL) -> super::super::Foundation:: WIN32_ERROR); unsafe { WNetCancelConnection2A(lpname.param().abi(), dwflags, fforce.into()) } } #[inline] @@ -212,7 +212,7 @@ pub unsafe fn WNetCancelConnection2W(lpname: P0, dwflags: NET_CONNECT_FLAGS, where P0: windows_core::Param, { - windows_targets::link!("mpr.dll" "system" fn WNetCancelConnection2W(lpname : windows_core::PCWSTR, dwflags : NET_CONNECT_FLAGS, fforce : super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); + windows_targets::link!("mpr.dll" "system" fn WNetCancelConnection2W(lpname : windows_core::PCWSTR, dwflags : NET_CONNECT_FLAGS, fforce : windows_core::BOOL) -> super::super::Foundation:: WIN32_ERROR); unsafe { WNetCancelConnection2W(lpname.param().abi(), dwflags, fforce.into()) } } #[inline] @@ -220,7 +220,7 @@ pub unsafe fn WNetCancelConnectionA(lpname: P0, fforce: bool) -> super::supe where P0: windows_core::Param, { - windows_targets::link!("mpr.dll" "system" fn WNetCancelConnectionA(lpname : windows_core::PCSTR, fforce : super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); + windows_targets::link!("mpr.dll" "system" fn WNetCancelConnectionA(lpname : windows_core::PCSTR, fforce : windows_core::BOOL) -> super::super::Foundation:: WIN32_ERROR); unsafe { WNetCancelConnectionA(lpname.param().abi(), fforce.into()) } } #[inline] @@ -228,7 +228,7 @@ pub unsafe fn WNetCancelConnectionW(lpname: P0, fforce: bool) -> super::supe where P0: windows_core::Param, { - windows_targets::link!("mpr.dll" "system" fn WNetCancelConnectionW(lpname : windows_core::PCWSTR, fforce : super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); + windows_targets::link!("mpr.dll" "system" fn WNetCancelConnectionW(lpname : windows_core::PCWSTR, fforce : windows_core::BOOL) -> super::super::Foundation:: WIN32_ERROR); unsafe { WNetCancelConnectionW(lpname.param().abi(), fforce.into()) } } #[inline] @@ -792,7 +792,7 @@ pub struct NOTIFYCANCEL { pub lpName: windows_core::PWSTR, pub lpProvider: windows_core::PWSTR, pub dwFlags: u32, - pub fForce: super::super::Foundation::BOOL, + pub fForce: windows_core::BOOL, } impl Default for NOTIFYCANCEL { fn default() -> Self { @@ -824,21 +824,21 @@ pub type PF_CancelConnectNotify = Option u32>; pub type PF_NPAddConnection3 = Option u32>; pub type PF_NPAddConnection4 = Option u32>; -pub type PF_NPCancelConnection = Option u32>; -pub type PF_NPCancelConnection2 = Option u32>; +pub type PF_NPCancelConnection = Option u32>; +pub type PF_NPCancelConnection2 = Option u32>; pub type PF_NPCloseEnum = Option u32>; pub type PF_NPDeviceMode = Option u32>; pub type PF_NPDirectoryNotify = Option u32>; pub type PF_NPEnumResource = Option u32>; pub type PF_NPFMXEditPerm = Option u32>; pub type PF_NPFMXGetPermCaps = Option u32>; -pub type PF_NPFMXGetPermHelp = Option u32>; +pub type PF_NPFMXGetPermHelp = Option u32>; pub type PF_NPFormatNetworkName = Option u32>; pub type PF_NPGetCaps = Option u32>; pub type PF_NPGetConnection = Option u32>; pub type PF_NPGetConnection3 = Option u32>; pub type PF_NPGetConnectionPerformance = Option u32>; -pub type PF_NPGetDirectoryType = Option u32>; +pub type PF_NPGetDirectoryType = Option u32>; pub type PF_NPGetPersistentUseOptionsForConnection = Option u32>; pub type PF_NPGetPropertyText = Option u32>; pub type PF_NPGetResourceInformation = Option u32>; diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WebDav/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WebDav/mod.rs index 06967dbc1f..31d0504167 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WebDav/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WebDav/mod.rs @@ -13,7 +13,7 @@ pub unsafe fn DavCancelConnectionsToServer(lpname: P0, fforce: bool) -> u32 where P0: windows_core::Param, { - windows_targets::link!("davclnt.dll" "system" fn DavCancelConnectionsToServer(lpname : windows_core::PCWSTR, fforce : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("davclnt.dll" "system" fn DavCancelConnectionsToServer(lpname : windows_core::PCWSTR, fforce : windows_core::BOOL) -> u32); unsafe { DavCancelConnectionsToServer(lpname.param().abi(), fforce.into()) } } #[inline] @@ -114,8 +114,8 @@ impl Default for DAV_CALLBACK_AUTH_UNP { pub struct DAV_CALLBACK_CRED { pub AuthBlob: DAV_CALLBACK_AUTH_BLOB, pub UNPBlob: DAV_CALLBACK_AUTH_UNP, - pub bAuthBlobValid: super::super::Foundation::BOOL, - pub bSave: super::super::Foundation::BOOL, + pub bAuthBlobValid: windows_core::BOOL, + pub bSave: windows_core::BOOL, } impl Default for DAV_CALLBACK_CRED { fn default() -> Self { 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 cfebc60c38..fd7325fe34 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/mod.rs @@ -113,7 +113,7 @@ pub unsafe fn WlanGetInterfaceCapability(hclienthandle: super::super::Foundation } #[inline] pub unsafe fn WlanGetNetworkBssList(hclienthandle: super::super::Foundation::HANDLE, pinterfaceguid: *const windows_core::GUID, pdot11ssid: Option<*const DOT11_SSID>, dot11bsstype: DOT11_BSS_TYPE, bsecurityenabled: bool, preserved: Option<*const core::ffi::c_void>, ppwlanbsslist: *mut *mut WLAN_BSS_LIST) -> u32 { - windows_targets::link!("wlanapi.dll" "system" fn WlanGetNetworkBssList(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, pdot11ssid : *const DOT11_SSID, dot11bsstype : DOT11_BSS_TYPE, bsecurityenabled : super::super::Foundation:: BOOL, preserved : *const core::ffi::c_void, ppwlanbsslist : *mut *mut WLAN_BSS_LIST) -> u32); + windows_targets::link!("wlanapi.dll" "system" fn WlanGetNetworkBssList(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, pdot11ssid : *const DOT11_SSID, dot11bsstype : DOT11_BSS_TYPE, bsecurityenabled : windows_core::BOOL, preserved : *const core::ffi::c_void, ppwlanbsslist : *mut *mut WLAN_BSS_LIST) -> u32); unsafe { WlanGetNetworkBssList(hclienthandle, pinterfaceguid, pdot11ssid.unwrap_or(core::mem::zeroed()) as _, dot11bsstype, bsecurityenabled.into(), preserved.unwrap_or(core::mem::zeroed()) as _, ppwlanbsslist as _) } } #[inline] @@ -168,8 +168,8 @@ pub unsafe fn WlanHostedNetworkQueryProperty(hclienthandle: super::super::Founda unsafe { WlanHostedNetworkQueryProperty(hclienthandle, opcode, pdwdatasize as _, ppvdata as _, pwlanopcodevaluetype as _, pvreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn WlanHostedNetworkQuerySecondaryKey(hclienthandle: super::super::Foundation::HANDLE, pdwkeylength: *mut u32, ppuckeydata: *mut *mut u8, pbispassphrase: *mut super::super::Foundation::BOOL, pbpersistent: *mut super::super::Foundation::BOOL, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 { - windows_targets::link!("wlanapi.dll" "system" fn WlanHostedNetworkQuerySecondaryKey(hclienthandle : super::super::Foundation:: HANDLE, pdwkeylength : *mut u32, ppuckeydata : *mut *mut u8, pbispassphrase : *mut super::super::Foundation:: BOOL, pbpersistent : *mut super::super::Foundation:: BOOL, pfailreason : *mut WLAN_HOSTED_NETWORK_REASON, pvreserved : *const core::ffi::c_void) -> u32); +pub unsafe fn WlanHostedNetworkQuerySecondaryKey(hclienthandle: super::super::Foundation::HANDLE, pdwkeylength: *mut u32, ppuckeydata: *mut *mut u8, pbispassphrase: *mut windows_core::BOOL, pbpersistent: *mut windows_core::BOOL, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 { + windows_targets::link!("wlanapi.dll" "system" fn WlanHostedNetworkQuerySecondaryKey(hclienthandle : super::super::Foundation:: HANDLE, pdwkeylength : *mut u32, ppuckeydata : *mut *mut u8, pbispassphrase : *mut windows_core::BOOL, pbpersistent : *mut windows_core::BOOL, pfailreason : *mut WLAN_HOSTED_NETWORK_REASON, pvreserved : *const core::ffi::c_void) -> u32); unsafe { WlanHostedNetworkQuerySecondaryKey(hclienthandle, pdwkeylength as _, ppuckeydata as _, pbispassphrase as _, pbpersistent as _, pfailreason.unwrap_or(core::mem::zeroed()) as _, pvreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -189,7 +189,7 @@ pub unsafe fn WlanHostedNetworkSetProperty(hclienthandle: super::super::Foundati } #[inline] pub unsafe fn WlanHostedNetworkSetSecondaryKey(hclienthandle: super::super::Foundation::HANDLE, puckeydata: &[u8], bispassphrase: bool, bpersistent: bool, pfailreason: Option<*mut WLAN_HOSTED_NETWORK_REASON>, pvreserved: Option<*const core::ffi::c_void>) -> u32 { - windows_targets::link!("wlanapi.dll" "system" fn WlanHostedNetworkSetSecondaryKey(hclienthandle : super::super::Foundation:: HANDLE, dwkeylength : u32, puckeydata : *const u8, bispassphrase : super::super::Foundation:: BOOL, bpersistent : super::super::Foundation:: BOOL, pfailreason : *mut WLAN_HOSTED_NETWORK_REASON, pvreserved : *const core::ffi::c_void) -> u32); + windows_targets::link!("wlanapi.dll" "system" fn WlanHostedNetworkSetSecondaryKey(hclienthandle : super::super::Foundation:: HANDLE, dwkeylength : u32, puckeydata : *const u8, bispassphrase : windows_core::BOOL, bpersistent : windows_core::BOOL, pfailreason : *mut WLAN_HOSTED_NETWORK_REASON, pvreserved : *const core::ffi::c_void) -> u32); unsafe { WlanHostedNetworkSetSecondaryKey(hclienthandle, puckeydata.len().try_into().unwrap(), core::mem::transmute(puckeydata.as_ptr()), bispassphrase.into(), bpersistent.into(), pfailreason.unwrap_or(core::mem::zeroed()) as _, pvreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -234,12 +234,12 @@ pub unsafe fn WlanRegisterDeviceServiceNotification(hclienthandle: super::super: } #[inline] pub unsafe fn WlanRegisterNotification(hclienthandle: super::super::Foundation::HANDLE, dwnotifsource: WLAN_NOTIFICATION_SOURCES, bignoreduplicate: bool, funccallback: Option, pcallbackcontext: Option<*const core::ffi::c_void>, preserved: Option<*const core::ffi::c_void>, pdwprevnotifsource: Option<*mut u32>) -> u32 { - windows_targets::link!("wlanapi.dll" "system" fn WlanRegisterNotification(hclienthandle : super::super::Foundation:: HANDLE, dwnotifsource : WLAN_NOTIFICATION_SOURCES, bignoreduplicate : super::super::Foundation:: BOOL, funccallback : WLAN_NOTIFICATION_CALLBACK, pcallbackcontext : *const core::ffi::c_void, preserved : *const core::ffi::c_void, pdwprevnotifsource : *mut u32) -> u32); + windows_targets::link!("wlanapi.dll" "system" fn WlanRegisterNotification(hclienthandle : super::super::Foundation:: HANDLE, dwnotifsource : WLAN_NOTIFICATION_SOURCES, bignoreduplicate : windows_core::BOOL, funccallback : WLAN_NOTIFICATION_CALLBACK, pcallbackcontext : *const core::ffi::c_void, preserved : *const core::ffi::c_void, pdwprevnotifsource : *mut u32) -> u32); unsafe { WlanRegisterNotification(hclienthandle, dwnotifsource, bignoreduplicate.into(), funccallback.unwrap_or(core::mem::zeroed()) as _, pcallbackcontext.unwrap_or(core::mem::zeroed()) as _, preserved.unwrap_or(core::mem::zeroed()) as _, pdwprevnotifsource.unwrap_or(core::mem::zeroed()) as _) } } #[inline] pub unsafe fn WlanRegisterVirtualStationNotification(hclienthandle: super::super::Foundation::HANDLE, bregister: bool, preserved: Option<*const core::ffi::c_void>) -> u32 { - windows_targets::link!("wlanapi.dll" "system" fn WlanRegisterVirtualStationNotification(hclienthandle : super::super::Foundation:: HANDLE, bregister : super::super::Foundation:: BOOL, preserved : *const core::ffi::c_void) -> u32); + windows_targets::link!("wlanapi.dll" "system" fn WlanRegisterVirtualStationNotification(hclienthandle : super::super::Foundation:: HANDLE, bregister : windows_core::BOOL, preserved : *const core::ffi::c_void) -> u32); unsafe { WlanRegisterVirtualStationNotification(hclienthandle, bregister.into(), preserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -257,7 +257,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("wlanapi.dll" "system" fn WlanSaveTemporaryProfile(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, strprofilename : windows_core::PCWSTR, stralluserprofilesecurity : windows_core::PCWSTR, dwflags : u32, boverwrite : super::super::Foundation:: BOOL, preserved : *const core::ffi::c_void) -> u32); + windows_targets::link!("wlanapi.dll" "system" fn WlanSaveTemporaryProfile(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, strprofilename : windows_core::PCWSTR, stralluserprofilesecurity : windows_core::PCWSTR, dwflags : u32, boverwrite : windows_core::BOOL, preserved : *const core::ffi::c_void) -> u32); unsafe { WlanSaveTemporaryProfile(hclienthandle, pinterfaceguid, strprofilename.param().abi(), stralluserprofilesecurity.param().abi(), dwflags, boverwrite.into(), preserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -286,7 +286,7 @@ where P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("wlanapi.dll" "system" fn WlanSetProfile(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, dwflags : u32, strprofilexml : windows_core::PCWSTR, stralluserprofilesecurity : windows_core::PCWSTR, boverwrite : super::super::Foundation:: BOOL, preserved : *const core::ffi::c_void, pdwreasoncode : *mut u32) -> u32); + windows_targets::link!("wlanapi.dll" "system" fn WlanSetProfile(hclienthandle : super::super::Foundation:: HANDLE, pinterfaceguid : *const windows_core::GUID, dwflags : u32, strprofilexml : windows_core::PCWSTR, stralluserprofilesecurity : windows_core::PCWSTR, boverwrite : windows_core::BOOL, preserved : *const core::ffi::c_void, pdwreasoncode : *mut u32) -> u32); unsafe { WlanSetProfile(hclienthandle, pinterfaceguid, dwflags, strprofilexml.param().abi(), stralluserprofilesecurity.param().abi(), boverwrite.into(), preserved.unwrap_or(core::mem::zeroed()) as _, pdwreasoncode as _) } } #[inline] @@ -504,7 +504,7 @@ pub const DISCOVERY_FILTER_BITMASK_GO: u32 = 2u32; pub type DOT11EXTIHV_ADAPTER_RESET = Option u32>; pub type DOT11EXTIHV_CONTROL = Option u32>; #[cfg(feature = "Win32_Security_ExtensibleAuthenticationProtocol")] -pub type DOT11EXTIHV_CREATE_DISCOVERY_PROFILES = Option u32>; +pub type DOT11EXTIHV_CREATE_DISCOVERY_PROFILES = Option u32>; pub type DOT11EXTIHV_DEINIT_ADAPTER = Option; pub type DOT11EXTIHV_DEINIT_SERVICE = Option; pub type DOT11EXTIHV_GET_VERSION_INFO = Option u32>; @@ -512,7 +512,7 @@ pub type DOT11EXTIHV_INIT_ADAPTER = Option u32>; pub type DOT11EXTIHV_INIT_VIRTUAL_STATION = Option u32>; -pub type DOT11EXTIHV_IS_UI_REQUEST_PENDING = Option u32>; +pub type DOT11EXTIHV_IS_UI_REQUEST_PENDING = Option u32>; #[cfg(feature = "Win32_Security_ExtensibleAuthenticationProtocol")] pub type DOT11EXTIHV_ONEX_INDICATE_RESULT = Option u32>; #[cfg(feature = "Win32_Security_ExtensibleAuthenticationProtocol")] @@ -668,7 +668,7 @@ impl Default for DOT11EXT_IHV_PROFILE_PARAMS { #[derive(Clone, Copy, Debug, PartialEq)] pub struct DOT11EXT_IHV_SECURITY_PROFILE { pub pszXmlFragmentIhvSecurity: windows_core::PWSTR, - pub bUseMSOnex: super::super::Foundation::BOOL, + pub bUseMSOnex: windows_core::BOOL, } impl Default for DOT11EXT_IHV_SECURITY_PROFILE { fn default() -> Self { @@ -708,7 +708,7 @@ pub type DOT11EXT_POST_ASSOCIATE_COMPLETION = Option u32>; pub type DOT11EXT_PROCESS_ONEX_PACKET = Option u32>; pub const DOT11EXT_PSK_MAX_LENGTH: u32 = 64u32; -pub type DOT11EXT_QUERY_VIRTUAL_STATION_PROPERTIES = Option u32>; +pub type DOT11EXT_QUERY_VIRTUAL_STATION_PROPERTIES = Option u32>; pub type DOT11EXT_RELEASE_VIRTUAL_STATION = Option u32>; pub type DOT11EXT_REQUEST_VIRTUAL_STATION = Option u32>; pub type DOT11EXT_SEND_NOTIFICATION = Option u32>; @@ -720,7 +720,7 @@ pub type DOT11EXT_SET_CURRENT_PROFILE = Option u32>; pub type DOT11EXT_SET_DEFAULT_KEY_ID = Option u32>; pub type DOT11EXT_SET_ETHERTYPE_HANDLING = Option u32>; -pub type DOT11EXT_SET_EXCLUDE_UNENCRYPTED = Option u32>; +pub type DOT11EXT_SET_EXCLUDE_UNENCRYPTED = Option u32>; pub type DOT11EXT_SET_KEY_MAPPING_KEY = Option u32>; pub type DOT11EXT_SET_MULTICAST_CIPHER_ALGORITHM = Option u32>; pub type DOT11EXT_SET_PROFILE_CUSTOM_USER_DATA = Option u32>; @@ -745,7 +745,7 @@ pub struct DOT11EXT_VIRTUAL_STATION_AP_PROPERTY { pub dot11SSID: DOT11_SSID, pub dot11AuthAlgo: DOT11_AUTH_ALGORITHM, pub dot11CipherAlgo: DOT11_CIPHER_ALGORITHM, - pub bIsPassPhrase: super::super::Foundation::BOOL, + pub bIsPassPhrase: windows_core::BOOL, pub dwKeyLength: u32, pub ucKeyData: [u8; 64], } @@ -2431,7 +2431,7 @@ pub const DOT11_MSONEX_SUCCESS: DOT11_MSONEX_RESULT = DOT11_MSONEX_RESULT(0i32); pub struct DOT11_MSSECURITY_SETTINGS { pub dot11AuthAlgorithm: DOT11_AUTH_ALGORITHM, pub dot11CipherAlgorithm: DOT11_CIPHER_ALGORITHM, - pub fOneXEnabled: super::super::Foundation::BOOL, + pub fOneXEnabled: windows_core::BOOL, pub eapMethodType: super::super::Security::ExtensibleAuthenticationProtocol::EAP_METHOD_TYPE, pub dwEapConnectionDataLen: u32, pub pEapConnectionData: *mut u8, @@ -2912,8 +2912,8 @@ pub const DOT11_PMKID_LIST_REVISION_1: u32 = 1u32; pub struct DOT11_PORT_STATE { pub PeerMacAddress: [u8; 6], pub uSessionId: u32, - pub bPortControlled: super::super::Foundation::BOOL, - pub bPortAuthorized: super::super::Foundation::BOOL, + pub bPortControlled: windows_core::BOOL, + pub bPortAuthorized: windows_core::BOOL, } impl Default for DOT11_PORT_STATE { fn default() -> Self { @@ -5772,7 +5772,7 @@ pub struct ONEX_AUTH_IDENTITY(pub i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct ONEX_AUTH_PARAMS { - pub fUpdatePending: super::super::Foundation::BOOL, + pub fUpdatePending: windows_core::BOOL, pub oneXConnProfile: ONEX_VARIABLE_BLOB, pub authIdentity: ONEX_AUTH_IDENTITY, pub dwQuarantineState: u32, @@ -5845,7 +5845,7 @@ pub const ONEX_REASON_START: ONEX_REASON_CODE = ONEX_REASON_CODE(327680i32); pub struct ONEX_RESULT_UPDATE_DATA { pub oneXStatus: ONEX_STATUS, pub BackendSupport: ONEX_EAP_METHOD_BACKEND_SUPPORT, - pub fBackendEngaged: super::super::Foundation::BOOL, + pub fBackendEngaged: windows_core::BOOL, pub _bitfield: u32, pub authParams: ONEX_VARIABLE_BLOB, pub eapError: ONEX_VARIABLE_BLOB, @@ -6021,13 +6021,13 @@ pub struct WLAN_AVAILABLE_NETWORK { pub dot11Ssid: DOT11_SSID, pub dot11BssType: DOT11_BSS_TYPE, pub uNumberOfBssids: u32, - pub bNetworkConnectable: super::super::Foundation::BOOL, + pub bNetworkConnectable: windows_core::BOOL, pub wlanNotConnectableReason: u32, pub uNumberOfPhyTypes: u32, pub dot11PhyTypes: [DOT11_PHY_TYPE; 8], - pub bMorePhyTypes: super::super::Foundation::BOOL, + pub bMorePhyTypes: windows_core::BOOL, pub wlanSignalQuality: u32, - pub bSecurityEnabled: super::super::Foundation::BOOL, + pub bSecurityEnabled: windows_core::BOOL, pub dot11DefaultAuthAlgorithm: DOT11_AUTH_ALGORITHM, pub dot11DefaultCipherAlgorithm: DOT11_CIPHER_ALGORITHM, pub dwFlags: u32, @@ -6080,13 +6080,13 @@ pub struct WLAN_AVAILABLE_NETWORK_V2 { pub dot11Ssid: DOT11_SSID, pub dot11BssType: DOT11_BSS_TYPE, pub uNumberOfBssids: u32, - pub bNetworkConnectable: super::super::Foundation::BOOL, + pub bNetworkConnectable: windows_core::BOOL, pub wlanNotConnectableReason: u32, pub uNumberOfPhyTypes: u32, pub dot11PhyTypes: [DOT11_PHY_TYPE; 8], - pub bMorePhyTypes: super::super::Foundation::BOOL, + pub bMorePhyTypes: windows_core::BOOL, pub wlanSignalQuality: u32, - pub bSecurityEnabled: super::super::Foundation::BOOL, + pub bSecurityEnabled: windows_core::BOOL, pub dot11DefaultAuthAlgorithm: DOT11_AUTH_ALGORITHM, pub dot11DefaultCipherAlgorithm: DOT11_CIPHER_ALGORITHM, pub dwFlags: u32, @@ -6167,7 +6167,7 @@ pub struct WLAN_CONNECTION_NOTIFICATION_DATA { pub strProfileName: [u16; 256], pub dot11Ssid: DOT11_SSID, pub dot11BssType: DOT11_BSS_TYPE, - pub bSecurityEnabled: super::super::Foundation::BOOL, + pub bSecurityEnabled: windows_core::BOOL, pub wlanReasonCode: u32, pub dwFlags: WLAN_CONNECTION_NOTIFICATION_FLAGS, pub strProfileXml: [u16; 1], @@ -6364,7 +6364,7 @@ pub struct WLAN_IHV_CONTROL_TYPE(pub i32); #[derive(Clone, Copy, Debug, PartialEq)] pub struct WLAN_INTERFACE_CAPABILITY { pub interfaceType: WLAN_INTERFACE_TYPE, - pub bDot11DSupported: super::super::Foundation::BOOL, + pub bDot11DSupported: windows_core::BOOL, pub dwMaxDesiredSsidListSize: u32, pub dwMaxDesiredBssidListSize: u32, pub dwNumberOfSupportedPhys: u32, @@ -6440,9 +6440,9 @@ pub struct WLAN_MSM_NOTIFICATION_DATA { pub dot11Ssid: DOT11_SSID, pub dot11BssType: DOT11_BSS_TYPE, pub dot11MacAddr: [u8; 6], - pub bSecurityEnabled: super::super::Foundation::BOOL, - pub bFirstPeer: super::super::Foundation::BOOL, - pub bLastPeer: super::super::Foundation::BOOL, + pub bSecurityEnabled: windows_core::BOOL, + pub bFirstPeer: windows_core::BOOL, + pub bLastPeer: windows_core::BOOL, pub wlanReasonCode: u32, } impl Default for WLAN_MSM_NOTIFICATION_DATA { @@ -6799,8 +6799,8 @@ pub const WLAN_SECURABLE_OBJECT_COUNT: WLAN_SECURABLE_OBJECT = WLAN_SECURABLE_OB #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WLAN_SECURITY_ATTRIBUTES { - pub bSecurityEnabled: super::super::Foundation::BOOL, - pub bOneXEnabled: super::super::Foundation::BOOL, + pub bSecurityEnabled: windows_core::BOOL, + pub bOneXEnabled: windows_core::BOOL, pub dot11AuthAlgorithm: DOT11_AUTH_ALGORITHM, pub dot11CipherAlgorithm: DOT11_CIPHER_ALGORITHM, } diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectionManager/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectionManager/mod.rs index f861d17e25..a0a9181ddd 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectionManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectionManager/mod.rs @@ -59,7 +59,7 @@ where } #[inline] pub unsafe fn WcmSetProfileList(pprofilelist: *const WCM_PROFILE_INFO_LIST, dwposition: u32, fignoreunknownprofiles: bool, preserved: Option<*const core::ffi::c_void>) -> u32 { - windows_targets::link!("wcmapi.dll" "system" fn WcmSetProfileList(pprofilelist : *const WCM_PROFILE_INFO_LIST, dwposition : u32, fignoreunknownprofiles : super::super::Foundation:: BOOL, preserved : *const core::ffi::c_void) -> u32); + windows_targets::link!("wcmapi.dll" "system" fn WcmSetProfileList(pprofilelist : *const WCM_PROFILE_INFO_LIST, dwposition : u32, fignoreunknownprofiles : windows_core::BOOL, preserved : *const core::ffi::c_void) -> u32); unsafe { WcmSetProfileList(pprofilelist, dwposition, fignoreunknownprofiles.into(), preserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -103,7 +103,7 @@ pub const WCM_API_VERSION_1_0: u32 = 1u32; pub struct WCM_BILLING_CYCLE_INFO { pub StartDate: super::super::Foundation::FILETIME, pub Duration: WCM_TIME_INTERVAL, - pub Reset: super::super::Foundation::BOOL, + pub Reset: windows_core::BOOL, } impl Default for WCM_BILLING_CYCLE_INFO { fn default() -> Self { @@ -162,8 +162,8 @@ pub struct WCM_MEDIA_TYPE(pub i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WCM_POLICY_VALUE { - pub fValue: super::super::Foundation::BOOL, - pub fIsGroupPolicy: super::super::Foundation::BOOL, + pub fValue: windows_core::BOOL, + pub fIsGroupPolicy: windows_core::BOOL, } impl Default for WCM_POLICY_VALUE { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFilteringPlatform/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFilteringPlatform/mod.rs index e9028a4031..4d1fc74dd1 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFilteringPlatform/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFilteringPlatform/mod.rs @@ -2015,7 +2015,7 @@ pub type FWPM_NET_EVENT_CALLBACK4 = Option Self { @@ -2027,7 +2027,7 @@ impl Default for FWPM_NET_EVENT_CAPABILITY_ALLOW0 { pub struct FWPM_NET_EVENT_CAPABILITY_DROP0 { pub networkCapabilityId: FWPM_APPC_NETWORK_CAPABILITY_TYPE, pub filterId: u64, - pub isLoopback: super::super::Foundation::BOOL, + pub isLoopback: windows_core::BOOL, } impl Default for FWPM_NET_EVENT_CAPABILITY_DROP0 { fn default() -> Self { @@ -2043,7 +2043,7 @@ pub struct FWPM_NET_EVENT_CLASSIFY_ALLOW0 { pub originalProfile: u32, pub currentProfile: u32, pub msFwpDirection: u32, - pub isLoopback: super::super::Foundation::BOOL, + pub isLoopback: windows_core::BOOL, } impl Default for FWPM_NET_EVENT_CLASSIFY_ALLOW0 { fn default() -> Self { @@ -2070,7 +2070,7 @@ pub struct FWPM_NET_EVENT_CLASSIFY_DROP1 { pub originalProfile: u32, pub currentProfile: u32, pub msFwpDirection: u32, - pub isLoopback: super::super::Foundation::BOOL, + pub isLoopback: windows_core::BOOL, } impl Default for FWPM_NET_EVENT_CLASSIFY_DROP1 { fn default() -> Self { @@ -2086,7 +2086,7 @@ pub struct FWPM_NET_EVENT_CLASSIFY_DROP2 { pub originalProfile: u32, pub currentProfile: u32, pub msFwpDirection: u32, - pub isLoopback: super::super::Foundation::BOOL, + pub isLoopback: windows_core::BOOL, pub vSwitchId: FWP_BYTE_BLOB, pub vSwitchSourcePort: u32, pub vSwitchDestinationPort: u32, @@ -2114,7 +2114,7 @@ pub struct FWPM_NET_EVENT_CLASSIFY_DROP_MAC0 { pub originalProfile: u32, pub currentProfile: u32, pub msFwpDirection: u32, - pub isLoopback: super::super::Foundation::BOOL, + pub isLoopback: windows_core::BOOL, pub vSwitchId: FWP_BYTE_BLOB, pub vSwitchSourcePort: u32, pub vSwitchDestinationPort: u32, @@ -3002,7 +3002,7 @@ pub struct FWPM_SESSION0 { pub processId: u32, pub sid: *mut super::super::Security::SID, pub username: windows_core::PWSTR, - pub kernelMode: super::super::Foundation::BOOL, + pub kernelMode: windows_core::BOOL, } #[cfg(feature = "Win32_Security")] impl Default for FWPM_SESSION0 { @@ -3213,7 +3213,7 @@ impl Default for FWPM_VSWITCH_EVENT0_0_0 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct FWPM_VSWITCH_EVENT0_0_1 { - pub inRequiredPosition: super::super::Foundation::BOOL, + pub inRequiredPosition: windows_core::BOOL, pub numvSwitchFilterExtensions: u32, pub vSwitchFilterExtensions: *mut windows_core::PWSTR, } @@ -5560,9 +5560,9 @@ impl Default for IPSEC_KEY_MANAGER_CALLBACKS0 { } } #[cfg(feature = "Win32_Security")] -pub type IPSEC_KEY_MANAGER_DICTATE_KEY0 = Option u32>; +pub type IPSEC_KEY_MANAGER_DICTATE_KEY0 = Option u32>; pub const IPSEC_KEY_MANAGER_FLAG_DICTATE_KEY: u32 = 1u32; -pub type IPSEC_KEY_MANAGER_KEY_DICTATION_CHECK0 = Option; +pub type IPSEC_KEY_MANAGER_KEY_DICTATION_CHECK0 = Option; #[cfg(feature = "Win32_Security")] pub type IPSEC_KEY_MANAGER_NOTIFY_KEY0 = Option; pub const IPSEC_PFS_1: IPSEC_PFS_GROUP = IPSEC_PFS_GROUP(1i32); diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs index f61fa1e364..7da93d2938 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs @@ -4,11 +4,11 @@ pub unsafe fn NcFreeNetconProperties(pprops: *mut NETCON_PROPERTIES) { unsafe { NcFreeNetconProperties(pprops as _) } } #[inline] -pub unsafe fn NcIsValidConnectionName(pszwname: P0) -> super::super::Foundation::BOOL +pub unsafe fn NcIsValidConnectionName(pszwname: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("netshell.dll" "system" fn NcIsValidConnectionName(pszwname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("netshell.dll" "system" fn NcIsValidConnectionName(pszwname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { NcIsValidConnectionName(pszwname.param().abi()) } } #[inline] @@ -56,7 +56,7 @@ where } #[inline] pub unsafe fn NetworkIsolationGetEnterpriseIdClose(hoperation: super::super::Foundation::HANDLE, bwaitforoperation: bool) -> u32 { - windows_targets::link!("firewallapi.dll" "system" fn NetworkIsolationGetEnterpriseIdClose(hoperation : super::super::Foundation:: HANDLE, bwaitforoperation : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("firewallapi.dll" "system" fn NetworkIsolationGetEnterpriseIdClose(hoperation : super::super::Foundation:: HANDLE, bwaitforoperation : windows_core::BOOL) -> u32); unsafe { NetworkIsolationGetEnterpriseIdClose(hoperation, bwaitforoperation.into()) } } #[cfg(feature = "Win32_Security")] @@ -79,7 +79,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("api-ms-win-net-isolation-l1-1-0.dll" "system" fn NetworkIsolationSetupAppContainerBinaries(applicationcontainersid : super::super::Security:: PSID, packagefullname : windows_core::PCWSTR, packagefolder : windows_core::PCWSTR, displayname : windows_core::PCWSTR, bbinariesfullycomputed : super::super::Foundation:: BOOL, binaries : *const windows_core::PCWSTR, binariescount : u32) -> windows_core::HRESULT); + windows_targets::link!("api-ms-win-net-isolation-l1-1-0.dll" "system" fn NetworkIsolationSetupAppContainerBinaries(applicationcontainersid : super::super::Security:: PSID, packagefullname : windows_core::PCWSTR, packagefolder : windows_core::PCWSTR, displayname : windows_core::PCWSTR, bbinariesfullycomputed : windows_core::BOOL, binaries : *const windows_core::PCWSTR, binariescount : u32) -> windows_core::HRESULT); unsafe { NetworkIsolationSetupAppContainerBinaries(applicationcontainersid, packagefullname.param().abi(), packagefolder.param().abi(), displayname.param().abi(), bbinariesfullycomputed.into(), core::mem::transmute(binaries.as_ptr()), binaries.len().try_into().unwrap()).ok() } } #[inline] @@ -7274,7 +7274,7 @@ pub type PFN_FWDELETEDYNAMICKEYWORDADDRESS0 = Option u32>; pub type PFN_FWENUMDYNAMICKEYWORDADDRESSESBYTYPE0 = Option u32>; pub type PFN_FWFREEDYNAMICKEYWORDADDRESSDATA0 = Option u32>; -pub type PFN_FWUPDATEDYNAMICKEYWORDADDRESS0 = Option u32>; +pub type PFN_FWUPDATEDYNAMICKEYWORDADDRESS0 = Option u32>; pub type PNETISO_EDP_ID_CALLBACK_FN = Option; #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] 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 c5086aedc3..6cdfe20450 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs @@ -77,11 +77,11 @@ where unsafe { ADsOpenObject(lpszpathname.param().abi(), lpszusername.param().abi(), lpszpassword.param().abi(), dwreserved, riid, ppobject as _).ok() } } #[inline] -pub unsafe fn ADsPropCheckIfWritable(pwzattr: P0, pwritableattrs: *const ADS_ATTR_INFO) -> super::super::Foundation::BOOL +pub unsafe fn ADsPropCheckIfWritable(pwzattr: P0, pwritableattrs: *const ADS_ATTR_INFO) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("dsprop.dll" "system" fn ADsPropCheckIfWritable(pwzattr : windows_core::PCWSTR, pwritableattrs : *const ADS_ATTR_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("dsprop.dll" "system" fn ADsPropCheckIfWritable(pwzattr : windows_core::PCWSTR, pwritableattrs : *const ADS_ATTR_INFO) -> windows_core::BOOL); unsafe { ADsPropCheckIfWritable(pwzattr.param().abi(), pwritableattrs) } } #[cfg(feature = "Win32_System_Com")] @@ -95,28 +95,28 @@ where unsafe { ADsPropCreateNotifyObj(pappthddataobj.param().abi(), pwzadsobjname.param().abi(), phnotifyobj as _).ok() } } #[inline] -pub unsafe fn ADsPropGetInitInfo(hnotifyobj: super::super::Foundation::HWND, pinitparams: *mut ADSPROPINITPARAMS) -> super::super::Foundation::BOOL { - windows_targets::link!("dsprop.dll" "system" fn ADsPropGetInitInfo(hnotifyobj : super::super::Foundation:: HWND, pinitparams : *mut ADSPROPINITPARAMS) -> super::super::Foundation:: BOOL); +pub unsafe fn ADsPropGetInitInfo(hnotifyobj: super::super::Foundation::HWND, pinitparams: *mut ADSPROPINITPARAMS) -> windows_core::BOOL { + windows_targets::link!("dsprop.dll" "system" fn ADsPropGetInitInfo(hnotifyobj : super::super::Foundation:: HWND, pinitparams : *mut ADSPROPINITPARAMS) -> windows_core::BOOL); unsafe { ADsPropGetInitInfo(hnotifyobj, core::mem::transmute(pinitparams)) } } #[inline] -pub unsafe fn ADsPropSendErrorMessage(hnotifyobj: super::super::Foundation::HWND, perror: *mut ADSPROPERROR) -> super::super::Foundation::BOOL { - windows_targets::link!("dsprop.dll" "system" fn ADsPropSendErrorMessage(hnotifyobj : super::super::Foundation:: HWND, perror : *mut ADSPROPERROR) -> super::super::Foundation:: BOOL); +pub unsafe fn ADsPropSendErrorMessage(hnotifyobj: super::super::Foundation::HWND, perror: *mut ADSPROPERROR) -> windows_core::BOOL { + windows_targets::link!("dsprop.dll" "system" fn ADsPropSendErrorMessage(hnotifyobj : super::super::Foundation:: HWND, perror : *mut ADSPROPERROR) -> windows_core::BOOL); unsafe { ADsPropSendErrorMessage(hnotifyobj, perror as _) } } #[inline] -pub unsafe fn ADsPropSetHwnd(hnotifyobj: super::super::Foundation::HWND, hpage: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("dsprop.dll" "system" fn ADsPropSetHwnd(hnotifyobj : super::super::Foundation:: HWND, hpage : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn ADsPropSetHwnd(hnotifyobj: super::super::Foundation::HWND, hpage: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("dsprop.dll" "system" fn ADsPropSetHwnd(hnotifyobj : super::super::Foundation:: HWND, hpage : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { ADsPropSetHwnd(hnotifyobj, hpage) } } #[inline] -pub unsafe fn ADsPropSetHwndWithTitle(hnotifyobj: super::super::Foundation::HWND, hpage: super::super::Foundation::HWND, ptztitle: *const i8) -> super::super::Foundation::BOOL { - windows_targets::link!("dsprop.dll" "system" fn ADsPropSetHwndWithTitle(hnotifyobj : super::super::Foundation:: HWND, hpage : super::super::Foundation:: HWND, ptztitle : *const i8) -> super::super::Foundation:: BOOL); +pub unsafe fn ADsPropSetHwndWithTitle(hnotifyobj: super::super::Foundation::HWND, hpage: super::super::Foundation::HWND, ptztitle: *const i8) -> windows_core::BOOL { + windows_targets::link!("dsprop.dll" "system" fn ADsPropSetHwndWithTitle(hnotifyobj : super::super::Foundation:: HWND, hpage : super::super::Foundation:: HWND, ptztitle : *const i8) -> windows_core::BOOL); unsafe { ADsPropSetHwndWithTitle(hnotifyobj, hpage, ptztitle) } } #[inline] -pub unsafe fn ADsPropShowErrorDialog(hnotifyobj: super::super::Foundation::HWND, hpage: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("dsprop.dll" "system" fn ADsPropShowErrorDialog(hnotifyobj : super::super::Foundation:: HWND, hpage : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn ADsPropShowErrorDialog(hnotifyobj: super::super::Foundation::HWND, hpage: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("dsprop.dll" "system" fn ADsPropShowErrorDialog(hnotifyobj : super::super::Foundation:: HWND, hpage : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { ADsPropShowErrorDialog(hnotifyobj, hpage) } } #[inline] @@ -425,13 +425,13 @@ where unsafe { DsCrackSpnW(pszspn.param().abi(), pcserviceclass.unwrap_or(core::mem::zeroed()) as _, serviceclass.unwrap_or(core::mem::zeroed()) as _, pcservicename.unwrap_or(core::mem::zeroed()) as _, servicename.unwrap_or(core::mem::zeroed()) as _, pcinstancename.unwrap_or(core::mem::zeroed()) as _, instancename.unwrap_or(core::mem::zeroed()) as _, pinstanceport.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn DsCrackUnquotedMangledRdnA(pszrdn: &[u8], pguid: Option<*mut windows_core::GUID>, pedsmanglefor: Option<*mut DS_MANGLE_FOR>) -> super::super::Foundation::BOOL { - windows_targets::link!("dsparse.dll" "system" fn DsCrackUnquotedMangledRdnA(pszrdn : windows_core::PCSTR, cchrdn : u32, pguid : *mut windows_core::GUID, pedsmanglefor : *mut DS_MANGLE_FOR) -> super::super::Foundation:: BOOL); +pub unsafe fn DsCrackUnquotedMangledRdnA(pszrdn: &[u8], pguid: Option<*mut windows_core::GUID>, pedsmanglefor: Option<*mut DS_MANGLE_FOR>) -> windows_core::BOOL { + windows_targets::link!("dsparse.dll" "system" fn DsCrackUnquotedMangledRdnA(pszrdn : windows_core::PCSTR, cchrdn : u32, pguid : *mut windows_core::GUID, pedsmanglefor : *mut DS_MANGLE_FOR) -> windows_core::BOOL); unsafe { DsCrackUnquotedMangledRdnA(core::mem::transmute(pszrdn.as_ptr()), pszrdn.len().try_into().unwrap(), pguid.unwrap_or(core::mem::zeroed()) as _, pedsmanglefor.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn DsCrackUnquotedMangledRdnW(pszrdn: &[u16], pguid: Option<*mut windows_core::GUID>, pedsmanglefor: Option<*mut DS_MANGLE_FOR>) -> super::super::Foundation::BOOL { - windows_targets::link!("dsparse.dll" "system" fn DsCrackUnquotedMangledRdnW(pszrdn : windows_core::PCWSTR, cchrdn : u32, pguid : *mut windows_core::GUID, pedsmanglefor : *mut DS_MANGLE_FOR) -> super::super::Foundation:: BOOL); +pub unsafe fn DsCrackUnquotedMangledRdnW(pszrdn: &[u16], pguid: Option<*mut windows_core::GUID>, pedsmanglefor: Option<*mut DS_MANGLE_FOR>) -> windows_core::BOOL { + windows_targets::link!("dsparse.dll" "system" fn DsCrackUnquotedMangledRdnW(pszrdn : windows_core::PCWSTR, cchrdn : u32, pguid : *mut windows_core::GUID, pedsmanglefor : *mut DS_MANGLE_FOR) -> windows_core::BOOL); unsafe { DsCrackUnquotedMangledRdnW(core::mem::transmute(pszrdn.as_ptr()), pszrdn.len().try_into().unwrap(), pguid.unwrap_or(core::mem::zeroed()) as _, pedsmanglefor.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -691,29 +691,29 @@ where unsafe { DsInheritSecurityIdentityW(hds, flags.unwrap_or(core::mem::zeroed()) as _, srcprincipal.param().abi(), dstprincipal.param().abi()) } } #[inline] -pub unsafe fn DsIsMangledDnA(pszdn: P0, edsmanglefor: DS_MANGLE_FOR) -> super::super::Foundation::BOOL +pub unsafe fn DsIsMangledDnA(pszdn: P0, edsmanglefor: DS_MANGLE_FOR) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("dsparse.dll" "system" fn DsIsMangledDnA(pszdn : windows_core::PCSTR, edsmanglefor : DS_MANGLE_FOR) -> super::super::Foundation:: BOOL); + windows_targets::link!("dsparse.dll" "system" fn DsIsMangledDnA(pszdn : windows_core::PCSTR, edsmanglefor : DS_MANGLE_FOR) -> windows_core::BOOL); unsafe { DsIsMangledDnA(pszdn.param().abi(), edsmanglefor) } } #[inline] -pub unsafe fn DsIsMangledDnW(pszdn: P0, edsmanglefor: DS_MANGLE_FOR) -> super::super::Foundation::BOOL +pub unsafe fn DsIsMangledDnW(pszdn: P0, edsmanglefor: DS_MANGLE_FOR) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("dsparse.dll" "system" fn DsIsMangledDnW(pszdn : windows_core::PCWSTR, edsmanglefor : DS_MANGLE_FOR) -> super::super::Foundation:: BOOL); + windows_targets::link!("dsparse.dll" "system" fn DsIsMangledDnW(pszdn : windows_core::PCWSTR, edsmanglefor : DS_MANGLE_FOR) -> windows_core::BOOL); unsafe { DsIsMangledDnW(pszdn.param().abi(), edsmanglefor) } } #[inline] -pub unsafe fn DsIsMangledRdnValueA(pszrdn: &[u8], edsmanglefordesired: DS_MANGLE_FOR) -> super::super::Foundation::BOOL { - windows_targets::link!("dsparse.dll" "system" fn DsIsMangledRdnValueA(pszrdn : windows_core::PCSTR, crdn : u32, edsmanglefordesired : DS_MANGLE_FOR) -> super::super::Foundation:: BOOL); +pub unsafe fn DsIsMangledRdnValueA(pszrdn: &[u8], edsmanglefordesired: DS_MANGLE_FOR) -> windows_core::BOOL { + windows_targets::link!("dsparse.dll" "system" fn DsIsMangledRdnValueA(pszrdn : windows_core::PCSTR, crdn : u32, edsmanglefordesired : DS_MANGLE_FOR) -> windows_core::BOOL); unsafe { DsIsMangledRdnValueA(core::mem::transmute(pszrdn.as_ptr()), pszrdn.len().try_into().unwrap(), edsmanglefordesired) } } #[inline] -pub unsafe fn DsIsMangledRdnValueW(pszrdn: &[u16], edsmanglefordesired: DS_MANGLE_FOR) -> super::super::Foundation::BOOL { - windows_targets::link!("dsparse.dll" "system" fn DsIsMangledRdnValueW(pszrdn : windows_core::PCWSTR, crdn : u32, edsmanglefordesired : DS_MANGLE_FOR) -> super::super::Foundation:: BOOL); +pub unsafe fn DsIsMangledRdnValueW(pszrdn: &[u16], edsmanglefordesired: DS_MANGLE_FOR) -> windows_core::BOOL { + windows_targets::link!("dsparse.dll" "system" fn DsIsMangledRdnValueW(pszrdn : windows_core::PCWSTR, crdn : u32, edsmanglefordesired : DS_MANGLE_FOR) -> windows_core::BOOL); unsafe { DsIsMangledRdnValueW(core::mem::transmute(pszrdn.as_ptr()), pszrdn.len().try_into().unwrap(), edsmanglefordesired) } } #[inline] @@ -911,21 +911,21 @@ where unsafe { DsRemoveDsDomainW(hds, domaindn.param().abi()) } } #[inline] -pub unsafe fn DsRemoveDsServerA(hds: super::super::Foundation::HANDLE, serverdn: P1, domaindn: P2, flastdcindomain: Option<*mut super::super::Foundation::BOOL>, fcommit: bool) -> u32 +pub unsafe fn DsRemoveDsServerA(hds: super::super::Foundation::HANDLE, serverdn: P1, domaindn: P2, flastdcindomain: Option<*mut windows_core::BOOL>, fcommit: bool) -> u32 where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("ntdsapi.dll" "system" fn DsRemoveDsServerA(hds : super::super::Foundation:: HANDLE, serverdn : windows_core::PCSTR, domaindn : windows_core::PCSTR, flastdcindomain : *mut super::super::Foundation:: BOOL, fcommit : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("ntdsapi.dll" "system" fn DsRemoveDsServerA(hds : super::super::Foundation:: HANDLE, serverdn : windows_core::PCSTR, domaindn : windows_core::PCSTR, flastdcindomain : *mut windows_core::BOOL, fcommit : windows_core::BOOL) -> u32); unsafe { DsRemoveDsServerA(hds, serverdn.param().abi(), domaindn.param().abi(), flastdcindomain.unwrap_or(core::mem::zeroed()) as _, fcommit.into()) } } #[inline] -pub unsafe fn DsRemoveDsServerW(hds: super::super::Foundation::HANDLE, serverdn: P1, domaindn: P2, flastdcindomain: Option<*mut super::super::Foundation::BOOL>, fcommit: bool) -> u32 +pub unsafe fn DsRemoveDsServerW(hds: super::super::Foundation::HANDLE, serverdn: P1, domaindn: P2, flastdcindomain: Option<*mut windows_core::BOOL>, fcommit: bool) -> u32 where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("ntdsapi.dll" "system" fn DsRemoveDsServerW(hds : super::super::Foundation:: HANDLE, serverdn : windows_core::PCWSTR, domaindn : windows_core::PCWSTR, flastdcindomain : *mut super::super::Foundation:: BOOL, fcommit : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("ntdsapi.dll" "system" fn DsRemoveDsServerW(hds : super::super::Foundation:: HANDLE, serverdn : windows_core::PCWSTR, domaindn : windows_core::PCWSTR, flastdcindomain : *mut windows_core::BOOL, fcommit : windows_core::BOOL) -> u32); unsafe { DsRemoveDsServerW(hds, serverdn.param().abi(), domaindn.param().abi(), flastdcindomain.unwrap_or(core::mem::zeroed()) as _, fcommit.into()) } } #[inline] @@ -1166,16 +1166,16 @@ where unsafe { DsWriteAccountSpnW(hds, operation, pszaccount.param().abi(), rpszspn.len().try_into().unwrap(), core::mem::transmute(rpszspn.as_ptr())) } } #[inline] -pub unsafe fn FreeADsMem(pmem: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("activeds.dll" "system" fn FreeADsMem(pmem : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn FreeADsMem(pmem: *mut core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("activeds.dll" "system" fn FreeADsMem(pmem : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { FreeADsMem(pmem as _) } } #[inline] -pub unsafe fn FreeADsStr(pstr: P0) -> super::super::Foundation::BOOL +pub unsafe fn FreeADsStr(pstr: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("activeds.dll" "system" fn FreeADsStr(pstr : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("activeds.dll" "system" fn FreeADsStr(pstr : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { FreeADsStr(pstr.param().abi()) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1190,11 +1190,11 @@ pub unsafe fn ReallocADsMem(poldmem: *mut core::ffi::c_void, cbold: u32, cbnew: unsafe { ReallocADsMem(poldmem as _, cbold, cbnew) } } #[inline] -pub unsafe fn ReallocADsStr(ppstr: *mut windows_core::PWSTR, pstr: P1) -> super::super::Foundation::BOOL +pub unsafe fn ReallocADsStr(ppstr: *mut windows_core::PWSTR, pstr: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("activeds.dll" "system" fn ReallocADsStr(ppstr : *mut windows_core::PWSTR, pstr : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("activeds.dll" "system" fn ReallocADsStr(ppstr : *mut windows_core::PWSTR, pstr : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { ReallocADsStr(ppstr as _, pstr.param().abi()) } } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1397,7 +1397,7 @@ pub struct ADS_ATTR_DEF { pub dwADsType: ADSTYPE, pub dwMinRange: u32, pub dwMaxRange: u32, - pub fMultiValued: super::super::Foundation::BOOL, + pub fMultiValued: windows_core::BOOL, } impl Default for ADS_ATTR_DEF { fn default() -> Self { @@ -1465,7 +1465,7 @@ pub struct ADS_CLASS_DEF { pub ppszNamingAttrs: *mut *mut windows_core::PWSTR, pub dwSuperClasses: u32, pub ppszSuperClasses: *mut *mut windows_core::PWSTR, - pub fIsContainer: super::super::Foundation::BOOL, + pub fIsContainer: windows_core::BOOL, } impl Default for ADS_CLASS_DEF { fn default() -> Self { @@ -2065,7 +2065,7 @@ pub struct DOMAINDESC { pub pszTrustParent: windows_core::PWSTR, pub pszObjectClass: windows_core::PWSTR, pub ulFlags: u32, - pub fDownLevel: super::super::Foundation::BOOL, + pub fDownLevel: windows_core::BOOL, pub pdChildList: *mut DOMAINDESC, pub pdNextSibling: *mut DOMAINDESC, } @@ -2635,8 +2635,8 @@ pub struct DS_DOMAIN_CONTROLLER_INFO_1A { pub SiteName: windows_core::PSTR, pub ComputerObjectName: windows_core::PSTR, pub ServerObjectName: windows_core::PSTR, - pub fIsPdc: super::super::Foundation::BOOL, - pub fDsEnabled: super::super::Foundation::BOOL, + pub fIsPdc: windows_core::BOOL, + pub fDsEnabled: windows_core::BOOL, } impl Default for DS_DOMAIN_CONTROLLER_INFO_1A { fn default() -> Self { @@ -2651,8 +2651,8 @@ pub struct DS_DOMAIN_CONTROLLER_INFO_1W { pub SiteName: windows_core::PWSTR, pub ComputerObjectName: windows_core::PWSTR, pub ServerObjectName: windows_core::PWSTR, - pub fIsPdc: super::super::Foundation::BOOL, - pub fDsEnabled: super::super::Foundation::BOOL, + pub fIsPdc: windows_core::BOOL, + pub fDsEnabled: windows_core::BOOL, } impl Default for DS_DOMAIN_CONTROLLER_INFO_1W { fn default() -> Self { @@ -2669,9 +2669,9 @@ pub struct DS_DOMAIN_CONTROLLER_INFO_2A { pub ComputerObjectName: windows_core::PSTR, pub ServerObjectName: windows_core::PSTR, pub NtdsDsaObjectName: windows_core::PSTR, - pub fIsPdc: super::super::Foundation::BOOL, - pub fDsEnabled: super::super::Foundation::BOOL, - pub fIsGc: super::super::Foundation::BOOL, + pub fIsPdc: windows_core::BOOL, + pub fDsEnabled: windows_core::BOOL, + pub fIsGc: windows_core::BOOL, pub SiteObjectGuid: windows_core::GUID, pub ComputerObjectGuid: windows_core::GUID, pub ServerObjectGuid: windows_core::GUID, @@ -2692,9 +2692,9 @@ pub struct DS_DOMAIN_CONTROLLER_INFO_2W { pub ComputerObjectName: windows_core::PWSTR, pub ServerObjectName: windows_core::PWSTR, pub NtdsDsaObjectName: windows_core::PWSTR, - pub fIsPdc: super::super::Foundation::BOOL, - pub fDsEnabled: super::super::Foundation::BOOL, - pub fIsGc: super::super::Foundation::BOOL, + pub fIsPdc: windows_core::BOOL, + pub fDsEnabled: windows_core::BOOL, + pub fIsGc: windows_core::BOOL, pub SiteObjectGuid: windows_core::GUID, pub ComputerObjectGuid: windows_core::GUID, pub ServerObjectGuid: windows_core::GUID, @@ -2715,10 +2715,10 @@ pub struct DS_DOMAIN_CONTROLLER_INFO_3A { pub ComputerObjectName: windows_core::PSTR, pub ServerObjectName: windows_core::PSTR, pub NtdsDsaObjectName: windows_core::PSTR, - pub fIsPdc: super::super::Foundation::BOOL, - pub fDsEnabled: super::super::Foundation::BOOL, - pub fIsGc: super::super::Foundation::BOOL, - pub fIsRodc: super::super::Foundation::BOOL, + pub fIsPdc: windows_core::BOOL, + pub fDsEnabled: windows_core::BOOL, + pub fIsGc: windows_core::BOOL, + pub fIsRodc: windows_core::BOOL, pub SiteObjectGuid: windows_core::GUID, pub ComputerObjectGuid: windows_core::GUID, pub ServerObjectGuid: windows_core::GUID, @@ -2739,10 +2739,10 @@ pub struct DS_DOMAIN_CONTROLLER_INFO_3W { pub ComputerObjectName: windows_core::PWSTR, pub ServerObjectName: windows_core::PWSTR, pub NtdsDsaObjectName: windows_core::PWSTR, - pub fIsPdc: super::super::Foundation::BOOL, - pub fDsEnabled: super::super::Foundation::BOOL, - pub fIsGc: super::super::Foundation::BOOL, - pub fIsRodc: super::super::Foundation::BOOL, + pub fIsPdc: windows_core::BOOL, + pub fDsEnabled: windows_core::BOOL, + pub fIsGc: windows_core::BOOL, + pub fIsRodc: windows_core::BOOL, pub SiteObjectGuid: windows_core::GUID, pub ComputerObjectGuid: windows_core::GUID, pub ServerObjectGuid: windows_core::GUID, @@ -16570,16 +16570,16 @@ impl IDsAdminNewObj { #[repr(C)] pub struct IDsAdminNewObj_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetButtons: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetButtons: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, pub GetPageCounts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32, *mut i32) -> windows_core::HRESULT, } pub trait IDsAdminNewObj_Impl: windows_core::IUnknownImpl { - fn SetButtons(&self, ncurrindex: u32, bvalid: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetButtons(&self, ncurrindex: u32, bvalid: windows_core::BOOL) -> windows_core::Result<()>; fn GetPageCounts(&self, pntotal: *mut i32, pnstartindex: *mut i32) -> windows_core::Result<()>; } impl IDsAdminNewObj_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetButtons(this: *mut core::ffi::c_void, ncurrindex: u32, bvalid: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetButtons(this: *mut core::ffi::c_void, ncurrindex: u32, bvalid: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsAdminNewObj_Impl::SetButtons(this, core::mem::transmute_copy(&ncurrindex), core::mem::transmute_copy(&bvalid)).into() @@ -16982,7 +16982,7 @@ impl IDsDisplaySpecifier { { unsafe { (windows_core::Interface::vtable(self).GetFriendlyAttributeName)(windows_core::Interface::as_raw(self), pszobjectclass.param().abi(), pszattributename.param().abi(), core::mem::transmute(pszbuffer.as_ptr()), pszbuffer.len().try_into().unwrap()).ok() } } - pub unsafe fn IsClassContainer(&self, pszobjectclass: P0, pszadspath: P1, dwflags: u32) -> super::super::Foundation::BOOL + pub unsafe fn IsClassContainer(&self, pszobjectclass: P0, pszadspath: P1, dwflags: u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, @@ -17021,7 +17021,7 @@ pub struct IDsDisplaySpecifier_Vtbl { GetIcon: usize, pub GetFriendlyClassName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PWSTR, i32) -> windows_core::HRESULT, pub GetFriendlyAttributeName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PWSTR, u32) -> windows_core::HRESULT, - pub IsClassContainer: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, u32) -> super::super::Foundation::BOOL, + pub IsClassContainer: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, u32) -> windows_core::BOOL, pub GetClassCreationInfo: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut *mut DSCLASSCREATIONINFO) -> windows_core::HRESULT, pub EnumClassAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, LPDSENUMATTRIBUTES, super::super::Foundation::LPARAM) -> windows_core::HRESULT, pub GetAttributeADsType: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> ADSTYPE, @@ -17035,7 +17035,7 @@ pub trait IDsDisplaySpecifier_Impl: windows_core::IUnknownImpl { fn GetIcon(&self, pszobjectclass: &windows_core::PCWSTR, dwflags: u32, cxicon: i32, cyicon: i32) -> super::super::UI::WindowsAndMessaging::HICON; fn GetFriendlyClassName(&self, pszobjectclass: &windows_core::PCWSTR, pszbuffer: windows_core::PWSTR, cchbuffer: i32) -> windows_core::Result<()>; fn GetFriendlyAttributeName(&self, pszobjectclass: &windows_core::PCWSTR, pszattributename: &windows_core::PCWSTR, pszbuffer: windows_core::PWSTR, cchbuffer: u32) -> windows_core::Result<()>; - fn IsClassContainer(&self, pszobjectclass: &windows_core::PCWSTR, pszadspath: &windows_core::PCWSTR, dwflags: u32) -> super::super::Foundation::BOOL; + fn IsClassContainer(&self, pszobjectclass: &windows_core::PCWSTR, pszadspath: &windows_core::PCWSTR, dwflags: u32) -> windows_core::BOOL; fn GetClassCreationInfo(&self, pszobjectclass: &windows_core::PCWSTR, ppdscci: *mut *mut DSCLASSCREATIONINFO) -> windows_core::Result<()>; fn EnumClassAttributes(&self, pszobjectclass: &windows_core::PCWSTR, pcbenum: LPDSENUMATTRIBUTES, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; fn GetAttributeADsType(&self, pszattributename: &windows_core::PCWSTR) -> ADSTYPE; @@ -17085,7 +17085,7 @@ impl IDsDisplaySpecifier_Vtbl { IDsDisplaySpecifier_Impl::GetFriendlyAttributeName(this, core::mem::transmute(&pszobjectclass), core::mem::transmute(&pszattributename), core::mem::transmute_copy(&pszbuffer), core::mem::transmute_copy(&cchbuffer)).into() } } - unsafe extern "system" fn IsClassContainer(this: *mut core::ffi::c_void, pszobjectclass: windows_core::PCWSTR, pszadspath: windows_core::PCWSTR, dwflags: u32) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsClassContainer(this: *mut core::ffi::c_void, pszobjectclass: windows_core::PCWSTR, pszadspath: windows_core::PCWSTR, dwflags: u32) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDsDisplaySpecifier_Impl::IsClassContainer(this, core::mem::transmute(&pszobjectclass), core::mem::transmute(&pszadspath), core::mem::transmute_copy(&dwflags)) 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 c07b97e3a0..95b9a8cc9d 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/mod.rs @@ -321,7 +321,7 @@ impl Default for BG_FILE_INFO { pub struct BG_FILE_PROGRESS { pub BytesTotal: u64, pub BytesTransferred: u64, - pub Completed: super::super::Foundation::BOOL, + pub Completed: windows_core::BOOL, } impl Default for BG_FILE_PROGRESS { fn default() -> Self { @@ -478,7 +478,7 @@ pub const BITS_JOB_PROPERTY_USE_STORED_CREDENTIALS: BITS_JOB_PROPERTY_ID = BITS_ pub union BITS_JOB_PROPERTY_VALUE { pub Dword: u32, pub ClsID: windows_core::GUID, - pub Enable: super::super::Foundation::BOOL, + pub Enable: windows_core::BOOL, pub Uint64: u64, pub Target: BG_AUTH_TARGET, } @@ -1180,13 +1180,13 @@ impl IBackgroundCopyFile3 { pub unsafe fn SetValidationState(&self, state: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetValidationState)(windows_core::Interface::as_raw(self), state.into()).ok() } } - pub unsafe fn GetValidationState(&self) -> windows_core::Result { + pub unsafe fn GetValidationState(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetValidationState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsDownloadedFromPeer(&self) -> windows_core::Result { + pub unsafe fn IsDownloadedFromPeer(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsDownloadedFromPeer)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1197,15 +1197,15 @@ impl IBackgroundCopyFile3 { pub struct IBackgroundCopyFile3_Vtbl { pub base__: IBackgroundCopyFile2_Vtbl, pub GetTemporaryName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub SetValidationState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetValidationState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsDownloadedFromPeer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetValidationState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetValidationState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsDownloadedFromPeer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IBackgroundCopyFile3_Impl: IBackgroundCopyFile2_Impl { fn GetTemporaryName(&self) -> windows_core::Result; - fn SetValidationState(&self, state: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetValidationState(&self) -> windows_core::Result; - fn IsDownloadedFromPeer(&self) -> windows_core::Result; + fn SetValidationState(&self, state: windows_core::BOOL) -> windows_core::Result<()>; + fn GetValidationState(&self) -> windows_core::Result; + fn IsDownloadedFromPeer(&self) -> windows_core::Result; } impl IBackgroundCopyFile3_Vtbl { pub const fn new() -> Self { @@ -1221,13 +1221,13 @@ impl IBackgroundCopyFile3_Vtbl { } } } - unsafe extern "system" fn SetValidationState(this: *mut core::ffi::c_void, state: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetValidationState(this: *mut core::ffi::c_void, state: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBackgroundCopyFile3_Impl::SetValidationState(this, core::mem::transmute_copy(&state)).into() } } - unsafe extern "system" fn GetValidationState(this: *mut core::ffi::c_void, pstate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetValidationState(this: *mut core::ffi::c_void, pstate: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyFile3_Impl::GetValidationState(this) { @@ -1239,7 +1239,7 @@ impl IBackgroundCopyFile3_Vtbl { } } } - unsafe extern "system" fn IsDownloadedFromPeer(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsDownloadedFromPeer(this: *mut core::ffi::c_void, pval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyFile3_Impl::IsDownloadedFromPeer(this) { @@ -2666,7 +2666,7 @@ impl IBackgroundCopyJob4 { (windows_core::Interface::vtable(self).GetOwnerIntegrityLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetOwnerElevationState(&self) -> windows_core::Result { + pub unsafe fn GetOwnerElevationState(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetOwnerElevationState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2688,7 +2688,7 @@ pub struct IBackgroundCopyJob4_Vtbl { pub SetPeerCachingFlags: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetPeerCachingFlags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetOwnerIntegrityLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub GetOwnerElevationState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetOwnerElevationState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetMaximumDownloadTime: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetMaximumDownloadTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } @@ -2696,7 +2696,7 @@ pub trait IBackgroundCopyJob4_Impl: IBackgroundCopyJob3_Impl { fn SetPeerCachingFlags(&self, flags: u32) -> windows_core::Result<()>; fn GetPeerCachingFlags(&self) -> windows_core::Result; fn GetOwnerIntegrityLevel(&self) -> windows_core::Result; - fn GetOwnerElevationState(&self) -> windows_core::Result; + fn GetOwnerElevationState(&self) -> windows_core::Result; fn SetMaximumDownloadTime(&self, timeout: u32) -> windows_core::Result<()>; fn GetMaximumDownloadTime(&self) -> windows_core::Result; } @@ -2732,7 +2732,7 @@ impl IBackgroundCopyJob4_Vtbl { } } } - unsafe extern "system" fn GetOwnerElevationState(this: *mut core::ffi::c_void, pelevated: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetOwnerElevationState(this: *mut core::ffi::c_void, pelevated: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBackgroundCopyJob4_Impl::GetOwnerElevationState(this) { @@ -3325,13 +3325,13 @@ impl IBitsPeer { (windows_core::Interface::vtable(self).GetPeerName)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsAuthenticated(&self) -> windows_core::Result { + pub unsafe fn IsAuthenticated(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsAuthenticated)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsAvailable(&self) -> windows_core::Result { + pub unsafe fn IsAvailable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsAvailable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3342,13 +3342,13 @@ impl IBitsPeer { pub struct IBitsPeer_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetPeerName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub IsAuthenticated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsAvailable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsAuthenticated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsAvailable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IBitsPeer_Impl: windows_core::IUnknownImpl { fn GetPeerName(&self) -> windows_core::Result; - fn IsAuthenticated(&self) -> windows_core::Result; - fn IsAvailable(&self) -> windows_core::Result; + fn IsAuthenticated(&self) -> windows_core::Result; + fn IsAvailable(&self) -> windows_core::Result; } impl IBitsPeer_Vtbl { pub const fn new() -> Self { @@ -3364,7 +3364,7 @@ impl IBitsPeer_Vtbl { } } } - unsafe extern "system" fn IsAuthenticated(this: *mut core::ffi::c_void, pauth: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsAuthenticated(this: *mut core::ffi::c_void, pauth: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitsPeer_Impl::IsAuthenticated(this) { @@ -3376,7 +3376,7 @@ impl IBitsPeer_Vtbl { } } } - unsafe extern "system" fn IsAvailable(this: *mut core::ffi::c_void, ponline: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsAvailable(this: *mut core::ffi::c_void, ponline: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBitsPeer_Impl::IsAvailable(this) { 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 6fceb76d2a..bc884509e1 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs @@ -112,8 +112,8 @@ where unsafe { BackupClusterDatabase(hcluster, lpszpathname.param().abi()) } } #[inline] -pub unsafe fn CanResourceBeDependent(hresource: HRESOURCE, hresourcedependent: HRESOURCE) -> super::super::Foundation::BOOL { - windows_targets::link!("clusapi.dll" "system" fn CanResourceBeDependent(hresource : HRESOURCE, hresourcedependent : HRESOURCE) -> super::super::Foundation:: BOOL); +pub unsafe fn CanResourceBeDependent(hresource: HRESOURCE, hresourcedependent: HRESOURCE) -> windows_core::BOOL { + windows_targets::link!("clusapi.dll" "system" fn CanResourceBeDependent(hresource : HRESOURCE, hresourcedependent : HRESOURCE) -> windows_core::BOOL); unsafe { CanResourceBeDependent(hresource, hresourcedependent) } } #[inline] @@ -140,8 +140,8 @@ where unsafe { ChangeClusterResourceGroupEx2(hresource, hgroup, flags, lpszreason.param().abi()) } } #[inline] -pub unsafe fn CloseCluster(hcluster: HCLUSTER) -> super::super::Foundation::BOOL { - windows_targets::link!("clusapi.dll" "system" fn CloseCluster(hcluster : HCLUSTER) -> super::super::Foundation:: BOOL); +pub unsafe fn CloseCluster(hcluster: HCLUSTER) -> windows_core::BOOL { + windows_targets::link!("clusapi.dll" "system" fn CloseCluster(hcluster : HCLUSTER) -> windows_core::BOOL); unsafe { CloseCluster(hcluster) } } #[inline] @@ -151,37 +151,37 @@ pub unsafe fn CloseClusterCryptProvider(hcluscryptprovider: HCLUSCRYPTPROVIDER) } #[inline] pub unsafe fn CloseClusterGroup(hgroup: HGROUP) -> windows_core::Result<()> { - windows_targets::link!("clusapi.dll" "system" fn CloseClusterGroup(hgroup : HGROUP) -> super::super::Foundation:: BOOL); + windows_targets::link!("clusapi.dll" "system" fn CloseClusterGroup(hgroup : HGROUP) -> windows_core::BOOL); unsafe { CloseClusterGroup(hgroup).ok() } } #[inline] pub unsafe fn CloseClusterGroupSet(hgroupset: HGROUPSET) -> windows_core::Result<()> { - windows_targets::link!("clusapi.dll" "system" fn CloseClusterGroupSet(hgroupset : HGROUPSET) -> super::super::Foundation:: BOOL); + windows_targets::link!("clusapi.dll" "system" fn CloseClusterGroupSet(hgroupset : HGROUPSET) -> windows_core::BOOL); unsafe { CloseClusterGroupSet(hgroupset).ok() } } #[inline] pub unsafe fn CloseClusterNetInterface(hnetinterface: HNETINTERFACE) -> windows_core::Result<()> { - windows_targets::link!("clusapi.dll" "system" fn CloseClusterNetInterface(hnetinterface : HNETINTERFACE) -> super::super::Foundation:: BOOL); + windows_targets::link!("clusapi.dll" "system" fn CloseClusterNetInterface(hnetinterface : HNETINTERFACE) -> windows_core::BOOL); unsafe { CloseClusterNetInterface(hnetinterface).ok() } } #[inline] pub unsafe fn CloseClusterNetwork(hnetwork: HNETWORK) -> windows_core::Result<()> { - windows_targets::link!("clusapi.dll" "system" fn CloseClusterNetwork(hnetwork : HNETWORK) -> super::super::Foundation:: BOOL); + windows_targets::link!("clusapi.dll" "system" fn CloseClusterNetwork(hnetwork : HNETWORK) -> windows_core::BOOL); unsafe { CloseClusterNetwork(hnetwork).ok() } } #[inline] pub unsafe fn CloseClusterNode(hnode: HNODE) -> windows_core::Result<()> { - windows_targets::link!("clusapi.dll" "system" fn CloseClusterNode(hnode : HNODE) -> super::super::Foundation:: BOOL); + windows_targets::link!("clusapi.dll" "system" fn CloseClusterNode(hnode : HNODE) -> windows_core::BOOL); unsafe { CloseClusterNode(hnode).ok() } } #[inline] -pub unsafe fn CloseClusterNotifyPort(hchange: HCHANGE) -> super::super::Foundation::BOOL { - windows_targets::link!("clusapi.dll" "system" fn CloseClusterNotifyPort(hchange : HCHANGE) -> super::super::Foundation:: BOOL); +pub unsafe fn CloseClusterNotifyPort(hchange: HCHANGE) -> windows_core::BOOL { + windows_targets::link!("clusapi.dll" "system" fn CloseClusterNotifyPort(hchange : HCHANGE) -> windows_core::BOOL); unsafe { CloseClusterNotifyPort(hchange) } } #[inline] pub unsafe fn CloseClusterResource(hresource: HRESOURCE) -> windows_core::Result<()> { - windows_targets::link!("clusapi.dll" "system" fn CloseClusterResource(hresource : HRESOURCE) -> super::super::Foundation:: BOOL); + windows_targets::link!("clusapi.dll" "system" fn CloseClusterResource(hresource : HRESOURCE) -> windows_core::BOOL); unsafe { CloseClusterResource(hresource).ok() } } #[inline] @@ -203,8 +203,8 @@ where unsafe { ClusRemoveClusterHealthFault(hcluster, id.param().abi(), flags) } } #[inline] -pub unsafe fn ClusWorkerCheckTerminate(lpworker: *mut CLUS_WORKER) -> super::super::Foundation::BOOL { - windows_targets::link!("resutils.dll" "system" fn ClusWorkerCheckTerminate(lpworker : *mut CLUS_WORKER) -> super::super::Foundation:: BOOL); +pub unsafe fn ClusWorkerCheckTerminate(lpworker: *mut CLUS_WORKER) -> windows_core::BOOL { + windows_targets::link!("resutils.dll" "system" fn ClusWorkerCheckTerminate(lpworker : *mut CLUS_WORKER) -> windows_core::BOOL); unsafe { ClusWorkerCheckTerminate(lpworker as _) } } #[inline] @@ -219,12 +219,12 @@ pub unsafe fn ClusWorkerTerminate(lpworker: *const CLUS_WORKER) { } #[inline] pub unsafe fn ClusWorkerTerminateEx(clusworker: *mut CLUS_WORKER, timeoutinmilliseconds: u32, waitonly: bool) -> u32 { - windows_targets::link!("resutils.dll" "system" fn ClusWorkerTerminateEx(clusworker : *mut CLUS_WORKER, timeoutinmilliseconds : u32, waitonly : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("resutils.dll" "system" fn ClusWorkerTerminateEx(clusworker : *mut CLUS_WORKER, timeoutinmilliseconds : u32, waitonly : windows_core::BOOL) -> u32); unsafe { ClusWorkerTerminateEx(clusworker as _, timeoutinmilliseconds, waitonly.into()) } } #[inline] pub unsafe fn ClusWorkersTerminate(clusworkers: &mut [*mut CLUS_WORKER], timeoutinmilliseconds: u32, waitonly: bool) -> u32 { - windows_targets::link!("resutils.dll" "system" fn ClusWorkersTerminate(clusworkers : *mut *mut CLUS_WORKER, clusworkerscount : usize, timeoutinmilliseconds : u32, waitonly : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("resutils.dll" "system" fn ClusWorkersTerminate(clusworkers : *mut *mut CLUS_WORKER, clusworkerscount : usize, timeoutinmilliseconds : u32, waitonly : windows_core::BOOL) -> u32); unsafe { ClusWorkersTerminate(core::mem::transmute(clusworkers.as_ptr()), clusworkers.len().try_into().unwrap(), timeoutinmilliseconds, waitonly.into()) } } #[inline] @@ -340,7 +340,7 @@ pub unsafe fn ClusterGetVolumeNameForVolumeMountPoint(lpszvolumemountpoint: where P0: windows_core::Param, { - windows_targets::link!("resutils.dll" "system" fn ClusterGetVolumeNameForVolumeMountPoint(lpszvolumemountpoint : windows_core::PCWSTR, lpszvolumename : windows_core::PWSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("resutils.dll" "system" fn ClusterGetVolumeNameForVolumeMountPoint(lpszvolumemountpoint : windows_core::PCWSTR, lpszvolumename : windows_core::PWSTR, cchbufferlength : u32) -> windows_core::BOOL); unsafe { ClusterGetVolumeNameForVolumeMountPoint(lpszvolumemountpoint.param().abi(), core::mem::transmute(lpszvolumename), cchbufferlength).ok() } } #[inline] @@ -348,7 +348,7 @@ pub unsafe fn ClusterGetVolumePathName(lpszfilename: P0, lpszvolumepathname: where P0: windows_core::Param, { - windows_targets::link!("resutils.dll" "system" fn ClusterGetVolumePathName(lpszfilename : windows_core::PCWSTR, lpszvolumepathname : windows_core::PWSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("resutils.dll" "system" fn ClusterGetVolumePathName(lpszfilename : windows_core::PCWSTR, lpszvolumepathname : windows_core::PWSTR, cchbufferlength : u32) -> windows_core::BOOL); unsafe { ClusterGetVolumePathName(lpszfilename.param().abi(), core::mem::transmute(lpszvolumepathname), cchbufferlength).ok() } } #[inline] @@ -442,11 +442,11 @@ pub unsafe fn ClusterGroupSetOpenEnum(hcluster: HCLUSTER) -> HGROUPSETENUM { unsafe { ClusterGroupSetOpenEnum(hcluster) } } #[inline] -pub unsafe fn ClusterIsPathOnSharedVolume(lpszpathname: P0) -> super::super::Foundation::BOOL +pub unsafe fn ClusterIsPathOnSharedVolume(lpszpathname: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("resutils.dll" "system" fn ClusterIsPathOnSharedVolume(lpszpathname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("resutils.dll" "system" fn ClusterIsPathOnSharedVolume(lpszpathname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { ClusterIsPathOnSharedVolume(lpszpathname.param().abi()) } } #[inline] @@ -614,7 +614,7 @@ pub unsafe fn ClusterRegBatchReadCommand(hbatchnotification: HREGBATCHNOTIFICATI } #[inline] pub unsafe fn ClusterRegCloseBatch(hregbatch: HREGBATCH, bcommit: bool, failedcommandnumber: Option<*mut i32>) -> i32 { - windows_targets::link!("clusapi.dll" "system" fn ClusterRegCloseBatch(hregbatch : HREGBATCH, bcommit : super::super::Foundation:: BOOL, failedcommandnumber : *mut i32) -> i32); + windows_targets::link!("clusapi.dll" "system" fn ClusterRegCloseBatch(hregbatch : HREGBATCH, bcommit : windows_core::BOOL, failedcommandnumber : *mut i32) -> i32); unsafe { ClusterRegCloseBatch(hregbatch, bcommit.into(), failedcommandnumber.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -997,7 +997,7 @@ where } #[inline] pub unsafe fn ClusterUpgradeFunctionalLevel(hcluster: HCLUSTER, perform: bool, pfnprogresscallback: Option, pvcallbackarg: Option<*const core::ffi::c_void>) -> u32 { - windows_targets::link!("clusapi.dll" "system" fn ClusterUpgradeFunctionalLevel(hcluster : HCLUSTER, perform : super::super::Foundation:: BOOL, pfnprogresscallback : PCLUSTER_UPGRADE_PROGRESS_CALLBACK, pvcallbackarg : *const core::ffi::c_void) -> u32); + windows_targets::link!("clusapi.dll" "system" fn ClusterUpgradeFunctionalLevel(hcluster : HCLUSTER, perform : windows_core::BOOL, pfnprogresscallback : PCLUSTER_UPGRADE_PROGRESS_CALLBACK, pvcallbackarg : *const core::ffi::c_void) -> u32); unsafe { ClusterUpgradeFunctionalLevel(hcluster, perform.into(), pfnprogresscallback.unwrap_or(core::mem::zeroed()) as _, pvcallbackarg.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1150,7 +1150,7 @@ where } #[inline] pub unsafe fn DestroyCluster(hcluster: HCLUSTER, pfnprogresscallback: Option, pvcallbackarg: Option<*const core::ffi::c_void>, fdeletevirtualcomputerobjects: bool) -> u32 { - windows_targets::link!("clusapi.dll" "system" fn DestroyCluster(hcluster : HCLUSTER, pfnprogresscallback : PCLUSTER_SETUP_PROGRESS_CALLBACK, pvcallbackarg : *const core::ffi::c_void, fdeletevirtualcomputerobjects : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("clusapi.dll" "system" fn DestroyCluster(hcluster : HCLUSTER, pfnprogresscallback : PCLUSTER_SETUP_PROGRESS_CALLBACK, pvcallbackarg : *const core::ffi::c_void, fdeletevirtualcomputerobjects : windows_core::BOOL) -> u32); unsafe { DestroyCluster(hcluster, pfnprogresscallback.unwrap_or(core::mem::zeroed()) as _, pvcallbackarg.unwrap_or(core::mem::zeroed()) as _, fdeletevirtualcomputerobjects.into()) } } #[inline] @@ -1382,7 +1382,7 @@ pub unsafe fn GetClusterResourceKey(hresource: HRESOURCE, samdesired: u32) -> wi } #[inline] pub unsafe fn GetClusterResourceNetworkName(hresource: HRESOURCE, lpbuffer: windows_core::PWSTR, nsize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("clusapi.dll" "system" fn GetClusterResourceNetworkName(hresource : HRESOURCE, lpbuffer : windows_core::PWSTR, nsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("clusapi.dll" "system" fn GetClusterResourceNetworkName(hresource : HRESOURCE, lpbuffer : windows_core::PWSTR, nsize : *mut u32) -> windows_core::BOOL); unsafe { GetClusterResourceNetworkName(hresource, core::mem::transmute(lpbuffer), nsize as _).ok() } } #[inline] @@ -1432,11 +1432,11 @@ pub unsafe fn InitializeClusterHealthFaultArray(clusterhealthfaultarray: *mut CL unsafe { InitializeClusterHealthFaultArray(clusterhealthfaultarray as _) } } #[inline] -pub unsafe fn IsFileOnClusterSharedVolume(lpszpathname: P0, pbfileisonsharedvolume: *mut super::super::Foundation::BOOL) -> u32 +pub unsafe fn IsFileOnClusterSharedVolume(lpszpathname: P0, pbfileisonsharedvolume: *mut windows_core::BOOL) -> u32 where P0: windows_core::Param, { - windows_targets::link!("clusapi.dll" "system" fn IsFileOnClusterSharedVolume(lpszpathname : windows_core::PCWSTR, pbfileisonsharedvolume : *mut super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("clusapi.dll" "system" fn IsFileOnClusterSharedVolume(lpszpathname : windows_core::PCWSTR, pbfileisonsharedvolume : *mut windows_core::BOOL) -> u32); unsafe { IsFileOnClusterSharedVolume(lpszpathname.param().abi(), pbfileisonsharedvolume as _) } } #[inline] @@ -1662,7 +1662,7 @@ pub unsafe fn PauseClusterNode(hnode: HNODE) -> u32 { } #[inline] pub unsafe fn PauseClusterNodeEx(hnode: HNODE, bdrainnode: bool, dwpauseflags: u32, hnodedraintarget: Option) -> u32 { - windows_targets::link!("clusapi.dll" "system" fn PauseClusterNodeEx(hnode : HNODE, bdrainnode : super::super::Foundation:: BOOL, dwpauseflags : u32, hnodedraintarget : HNODE) -> u32); + windows_targets::link!("clusapi.dll" "system" fn PauseClusterNodeEx(hnode : HNODE, bdrainnode : windows_core::BOOL, dwpauseflags : u32, hnodedraintarget : HNODE) -> u32); unsafe { PauseClusterNodeEx(hnode, bdrainnode.into(), dwpauseflags, hnodedraintarget.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1670,7 +1670,7 @@ pub unsafe fn PauseClusterNodeEx2(hnode: HNODE, bdrainnode: bool, dwpausefla where P4: windows_core::Param, { - windows_targets::link!("clusapi.dll" "system" fn PauseClusterNodeEx2(hnode : HNODE, bdrainnode : super::super::Foundation:: BOOL, dwpauseflags : u32, hnodedraintarget : HNODE, lpszreason : windows_core::PCWSTR) -> u32); + windows_targets::link!("clusapi.dll" "system" fn PauseClusterNodeEx2(hnode : HNODE, bdrainnode : windows_core::BOOL, dwpauseflags : u32, hnodedraintarget : HNODE, lpszreason : windows_core::PCWSTR) -> u32); unsafe { PauseClusterNodeEx2(hnode, bdrainnode.into(), dwpauseflags, hnodedraintarget.unwrap_or(core::mem::zeroed()) as _, lpszreason.param().abi()) } } #[inline] @@ -1680,7 +1680,7 @@ pub unsafe fn QueryAppInstanceVersion(appinstanceid: *const windows_core::GUID, } #[inline] pub unsafe fn RegisterAppInstance(processhandle: super::super::Foundation::HANDLE, appinstanceid: *const windows_core::GUID, childreninheritappinstance: bool) -> u32 { - windows_targets::link!("ntlanman.dll" "system" fn RegisterAppInstance(processhandle : super::super::Foundation:: HANDLE, appinstanceid : *const windows_core::GUID, childreninheritappinstance : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("ntlanman.dll" "system" fn RegisterAppInstance(processhandle : super::super::Foundation:: HANDLE, appinstanceid : *const windows_core::GUID, childreninheritappinstance : windows_core::BOOL) -> u32); unsafe { RegisterAppInstance(processhandle, appinstanceid, childreninheritappinstance.into()) } } #[inline] @@ -1747,7 +1747,7 @@ where } #[inline] pub unsafe fn RemoveClusterNameAccount(hcluster: HCLUSTER, bdeletecomputerobjects: bool) -> u32 { - windows_targets::link!("clusapi.dll" "system" fn RemoveClusterNameAccount(hcluster : HCLUSTER, bdeletecomputerobjects : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("clusapi.dll" "system" fn RemoveClusterNameAccount(hcluster : HCLUSTER, bdeletecomputerobjects : windows_core::BOOL) -> u32); unsafe { RemoveClusterNameAccount(hcluster, bdeletecomputerobjects.into()) } } #[inline] @@ -2077,7 +2077,7 @@ pub unsafe fn ResUtilGetProperties(hkeyclusterkey: super::super::System::Registr #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilGetPropertiesToParameterBlock(hkeyclusterkey: super::super::System::Registry::HKEY, ppropertytable: *const RESUTIL_PROPERTY_ITEM, poutparams: *mut u8, bcheckforrequiredproperties: bool, psznameofpropinerror: *mut windows_core::PWSTR) -> u32 { - windows_targets::link!("resutils.dll" "system" fn ResUtilGetPropertiesToParameterBlock(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytable : *const RESUTIL_PROPERTY_ITEM, poutparams : *mut u8, bcheckforrequiredproperties : super::super::Foundation:: BOOL, psznameofpropinerror : *mut windows_core::PWSTR) -> u32); + windows_targets::link!("resutils.dll" "system" fn ResUtilGetPropertiesToParameterBlock(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytable : *const RESUTIL_PROPERTY_ITEM, poutparams : *mut u8, bcheckforrequiredproperties : windows_core::BOOL, psznameofpropinerror : *mut windows_core::PWSTR) -> u32); unsafe { ResUtilGetPropertiesToParameterBlock(hkeyclusterkey, ppropertytable, poutparams as _, bcheckforrequiredproperties.into(), psznameofpropinerror as _) } } #[cfg(feature = "Win32_System_Registry")] @@ -2116,12 +2116,12 @@ where } #[inline] pub unsafe fn ResUtilGetResourceDependencyByClass(hcluster: HCLUSTER, hself: super::super::Foundation::HANDLE, prci: *mut CLUS_RESOURCE_CLASS_INFO, brecurse: bool) -> HRESOURCE { - windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceDependencyByClass(hcluster : HCLUSTER, hself : super::super::Foundation:: HANDLE, prci : *mut CLUS_RESOURCE_CLASS_INFO, brecurse : super::super::Foundation:: BOOL) -> HRESOURCE); + windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceDependencyByClass(hcluster : HCLUSTER, hself : super::super::Foundation:: HANDLE, prci : *mut CLUS_RESOURCE_CLASS_INFO, brecurse : windows_core::BOOL) -> HRESOURCE); unsafe { ResUtilGetResourceDependencyByClass(hcluster, hself, prci as _, brecurse.into()) } } #[inline] pub unsafe fn ResUtilGetResourceDependencyByClassEx(hcluster: HCLUSTER, hself: super::super::Foundation::HANDLE, prci: *mut CLUS_RESOURCE_CLASS_INFO, brecurse: bool, dwdesiredaccess: u32) -> HRESOURCE { - windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceDependencyByClassEx(hcluster : HCLUSTER, hself : super::super::Foundation:: HANDLE, prci : *mut CLUS_RESOURCE_CLASS_INFO, brecurse : super::super::Foundation:: BOOL, dwdesiredaccess : u32) -> HRESOURCE); + windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceDependencyByClassEx(hcluster : HCLUSTER, hself : super::super::Foundation:: HANDLE, prci : *mut CLUS_RESOURCE_CLASS_INFO, brecurse : windows_core::BOOL, dwdesiredaccess : u32) -> HRESOURCE); unsafe { ResUtilGetResourceDependencyByClassEx(hcluster, hself, prci as _, brecurse.into(), dwdesiredaccess) } } #[inline] @@ -2129,7 +2129,7 @@ pub unsafe fn ResUtilGetResourceDependencyByName(hcluster: HCLUSTER, hself: where P2: windows_core::Param, { - windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceDependencyByName(hcluster : HCLUSTER, hself : super::super::Foundation:: HANDLE, lpszresourcetype : windows_core::PCWSTR, brecurse : super::super::Foundation:: BOOL) -> HRESOURCE); + windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceDependencyByName(hcluster : HCLUSTER, hself : super::super::Foundation:: HANDLE, lpszresourcetype : windows_core::PCWSTR, brecurse : windows_core::BOOL) -> HRESOURCE); unsafe { ResUtilGetResourceDependencyByName(hcluster, hself, lpszresourcetype.param().abi(), brecurse.into()) } } #[inline] @@ -2137,7 +2137,7 @@ pub unsafe fn ResUtilGetResourceDependencyByNameEx(hcluster: HCLUSTER, hself where P2: windows_core::Param, { - windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceDependencyByNameEx(hcluster : HCLUSTER, hself : super::super::Foundation:: HANDLE, lpszresourcetype : windows_core::PCWSTR, brecurse : super::super::Foundation:: BOOL, dwdesiredaccess : u32) -> HRESOURCE); + windows_targets::link!("resutils.dll" "system" fn ResUtilGetResourceDependencyByNameEx(hcluster : HCLUSTER, hself : super::super::Foundation:: HANDLE, lpszresourcetype : windows_core::PCWSTR, brecurse : windows_core::BOOL, dwdesiredaccess : u32) -> HRESOURCE); unsafe { ResUtilGetResourceDependencyByNameEx(hcluster, hself, lpszresourcetype.param().abi(), brecurse.into(), dwdesiredaccess) } } #[inline] @@ -2194,26 +2194,26 @@ where unsafe { ResUtilGetSzValue(hkeyclusterkey, pszvaluename.param().abi()) } } #[inline] -pub unsafe fn ResUtilGroupsEqual(hself: HGROUP, hgroup: HGROUP, pequal: *mut super::super::Foundation::BOOL) -> u32 { - windows_targets::link!("resutils.dll" "system" fn ResUtilGroupsEqual(hself : HGROUP, hgroup : HGROUP, pequal : *mut super::super::Foundation:: BOOL) -> u32); +pub unsafe fn ResUtilGroupsEqual(hself: HGROUP, hgroup: HGROUP, pequal: *mut windows_core::BOOL) -> u32 { + windows_targets::link!("resutils.dll" "system" fn ResUtilGroupsEqual(hself : HGROUP, hgroup : HGROUP, pequal : *mut windows_core::BOOL) -> u32); unsafe { ResUtilGroupsEqual(hself, hgroup, pequal as _) } } #[inline] -pub unsafe fn ResUtilIsPathValid(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn ResUtilIsPathValid(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("resutils.dll" "system" fn ResUtilIsPathValid(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("resutils.dll" "system" fn ResUtilIsPathValid(pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { ResUtilIsPathValid(pszpath.param().abi()) } } #[inline] -pub unsafe fn ResUtilIsResourceClassEqual(prci: *mut CLUS_RESOURCE_CLASS_INFO, hresource: HRESOURCE) -> super::super::Foundation::BOOL { - windows_targets::link!("resutils.dll" "system" fn ResUtilIsResourceClassEqual(prci : *mut CLUS_RESOURCE_CLASS_INFO, hresource : HRESOURCE) -> super::super::Foundation:: BOOL); +pub unsafe fn ResUtilIsResourceClassEqual(prci: *mut CLUS_RESOURCE_CLASS_INFO, hresource: HRESOURCE) -> windows_core::BOOL { + windows_targets::link!("resutils.dll" "system" fn ResUtilIsResourceClassEqual(prci : *mut CLUS_RESOURCE_CLASS_INFO, hresource : HRESOURCE) -> windows_core::BOOL); unsafe { ResUtilIsResourceClassEqual(prci as _, hresource) } } #[inline] -pub unsafe fn ResUtilLeftPaxosIsLessThanRight(left: *const PaxosTagCStruct, right: *const PaxosTagCStruct) -> super::super::Foundation::BOOL { - windows_targets::link!("resutils.dll" "system" fn ResUtilLeftPaxosIsLessThanRight(left : *const PaxosTagCStruct, right : *const PaxosTagCStruct) -> super::super::Foundation:: BOOL); +pub unsafe fn ResUtilLeftPaxosIsLessThanRight(left: *const PaxosTagCStruct, right: *const PaxosTagCStruct) -> windows_core::BOOL { + windows_targets::link!("resutils.dll" "system" fn ResUtilLeftPaxosIsLessThanRight(left : *const PaxosTagCStruct, right : *const PaxosTagCStruct) -> windows_core::BOOL); unsafe { ResUtilLeftPaxosIsLessThanRight(left, right) } } #[inline] @@ -2222,8 +2222,8 @@ pub unsafe fn ResUtilNodeEnum(hcluster: HCLUSTER, pnodecallback: LPNODE_CALLBACK unsafe { ResUtilNodeEnum(hcluster, pnodecallback, pparameter as _) } } #[inline] -pub unsafe fn ResUtilPaxosComparer(left: *const PaxosTagCStruct, right: *const PaxosTagCStruct) -> super::super::Foundation::BOOL { - windows_targets::link!("resutils.dll" "system" fn ResUtilPaxosComparer(left : *const PaxosTagCStruct, right : *const PaxosTagCStruct) -> super::super::Foundation:: BOOL); +pub unsafe fn ResUtilPaxosComparer(left: *const PaxosTagCStruct, right: *const PaxosTagCStruct) -> windows_core::BOOL { + windows_targets::link!("resutils.dll" "system" fn ResUtilPaxosComparer(left : *const PaxosTagCStruct, right : *const PaxosTagCStruct) -> windows_core::BOOL); unsafe { ResUtilPaxosComparer(left, right) } } #[inline] @@ -2245,16 +2245,16 @@ pub unsafe fn ResUtilResourceDepEnum(hself: HRESOURCE, enumtype: u32, prescallba unsafe { ResUtilResourceDepEnum(hself, enumtype, prescallback, pparameter as _) } } #[inline] -pub unsafe fn ResUtilResourceTypesEqual(lpszresourcetypename: P0, hresource: HRESOURCE) -> super::super::Foundation::BOOL +pub unsafe fn ResUtilResourceTypesEqual(lpszresourcetypename: P0, hresource: HRESOURCE) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("resutils.dll" "system" fn ResUtilResourceTypesEqual(lpszresourcetypename : windows_core::PCWSTR, hresource : HRESOURCE) -> super::super::Foundation:: BOOL); + windows_targets::link!("resutils.dll" "system" fn ResUtilResourceTypesEqual(lpszresourcetypename : windows_core::PCWSTR, hresource : HRESOURCE) -> windows_core::BOOL); unsafe { ResUtilResourceTypesEqual(lpszresourcetypename.param().abi(), hresource) } } #[inline] -pub unsafe fn ResUtilResourcesEqual(hself: HRESOURCE, hresource: HRESOURCE) -> super::super::Foundation::BOOL { - windows_targets::link!("resutils.dll" "system" fn ResUtilResourcesEqual(hself : HRESOURCE, hresource : HRESOURCE) -> super::super::Foundation:: BOOL); +pub unsafe fn ResUtilResourcesEqual(hself: HRESOURCE, hresource: HRESOURCE) -> windows_core::BOOL { + windows_targets::link!("resutils.dll" "system" fn ResUtilResourcesEqual(hself : HRESOURCE, hresource : HRESOURCE) -> windows_core::BOOL); unsafe { ResUtilResourcesEqual(hself, hresource) } } #[cfg(feature = "Win32_System_Registry")] @@ -2310,19 +2310,19 @@ pub unsafe fn ResUtilSetPropertyParameterBlock(hkeyclusterkey: super::super::Sys #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetPropertyParameterBlockEx(hkeyclusterkey: super::super::System::Registry::HKEY, ppropertytable: *const RESUTIL_PROPERTY_ITEM, reserved: *mut core::ffi::c_void, pinparams: *const u8, pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32, bforcewrite: bool, poutparams: *mut u8) -> u32 { - windows_targets::link!("resutils.dll" "system" fn ResUtilSetPropertyParameterBlockEx(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytable : *const RESUTIL_PROPERTY_ITEM, reserved : *mut core::ffi::c_void, pinparams : *const u8, pinpropertylist : *const core::ffi::c_void, cbinpropertylistsize : u32, bforcewrite : super::super::Foundation:: BOOL, poutparams : *mut u8) -> u32); + windows_targets::link!("resutils.dll" "system" fn ResUtilSetPropertyParameterBlockEx(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytable : *const RESUTIL_PROPERTY_ITEM, reserved : *mut core::ffi::c_void, pinparams : *const u8, pinpropertylist : *const core::ffi::c_void, cbinpropertylistsize : u32, bforcewrite : windows_core::BOOL, poutparams : *mut u8) -> u32); unsafe { ResUtilSetPropertyParameterBlockEx(hkeyclusterkey, ppropertytable, reserved as _, pinparams, pinpropertylist, cbinpropertylistsize, bforcewrite.into(), poutparams as _) } } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetPropertyTable(hkeyclusterkey: super::super::System::Registry::HKEY, ppropertytable: *const RESUTIL_PROPERTY_ITEM, reserved: Option<*const core::ffi::c_void>, ballowunknownproperties: bool, pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32, poutparams: Option<*mut u8>) -> u32 { - windows_targets::link!("resutils.dll" "system" fn ResUtilSetPropertyTable(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytable : *const RESUTIL_PROPERTY_ITEM, reserved : *const core::ffi::c_void, ballowunknownproperties : super::super::Foundation:: BOOL, pinpropertylist : *const core::ffi::c_void, cbinpropertylistsize : u32, poutparams : *mut u8) -> u32); + windows_targets::link!("resutils.dll" "system" fn ResUtilSetPropertyTable(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytable : *const RESUTIL_PROPERTY_ITEM, reserved : *const core::ffi::c_void, ballowunknownproperties : windows_core::BOOL, pinpropertylist : *const core::ffi::c_void, cbinpropertylistsize : u32, poutparams : *mut u8) -> u32); unsafe { ResUtilSetPropertyTable(hkeyclusterkey, ppropertytable, reserved.unwrap_or(core::mem::zeroed()) as _, ballowunknownproperties.into(), pinpropertylist, cbinpropertylistsize, poutparams.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ResUtilSetPropertyTableEx(hkeyclusterkey: super::super::System::Registry::HKEY, ppropertytable: *const RESUTIL_PROPERTY_ITEM, reserved: *mut core::ffi::c_void, ballowunknownproperties: bool, pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32, bforcewrite: bool, poutparams: *mut u8) -> u32 { - windows_targets::link!("resutils.dll" "system" fn ResUtilSetPropertyTableEx(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytable : *const RESUTIL_PROPERTY_ITEM, reserved : *mut core::ffi::c_void, ballowunknownproperties : super::super::Foundation:: BOOL, pinpropertylist : *const core::ffi::c_void, cbinpropertylistsize : u32, bforcewrite : super::super::Foundation:: BOOL, poutparams : *mut u8) -> u32); + windows_targets::link!("resutils.dll" "system" fn ResUtilSetPropertyTableEx(hkeyclusterkey : super::super::System::Registry:: HKEY, ppropertytable : *const RESUTIL_PROPERTY_ITEM, reserved : *mut core::ffi::c_void, ballowunknownproperties : windows_core::BOOL, pinpropertylist : *const core::ffi::c_void, cbinpropertylistsize : u32, bforcewrite : windows_core::BOOL, poutparams : *mut u8) -> u32); unsafe { ResUtilSetPropertyTableEx(hkeyclusterkey, ppropertytable, reserved as _, ballowunknownproperties.into(), pinpropertylist, cbinpropertylistsize, bforcewrite.into(), poutparams as _) } } #[cfg(feature = "Win32_System_Registry")] @@ -2410,7 +2410,7 @@ pub unsafe fn ResUtilStopService(hservicehandle: super::super::System::Services: } #[inline] pub unsafe fn ResUtilTerminateServiceProcessFromResDll(dwservicepid: u32, boffline: bool, pdwresourcestate: *mut u32, pfnlogevent: PLOG_EVENT_ROUTINE, hresourcehandle: isize) -> u32 { - windows_targets::link!("resutils.dll" "system" fn ResUtilTerminateServiceProcessFromResDll(dwservicepid : u32, boffline : super::super::Foundation:: BOOL, pdwresourcestate : *mut u32, pfnlogevent : PLOG_EVENT_ROUTINE, hresourcehandle : isize) -> u32); + windows_targets::link!("resutils.dll" "system" fn ResUtilTerminateServiceProcessFromResDll(dwservicepid : u32, boffline : windows_core::BOOL, pdwresourcestate : *mut u32, pfnlogevent : PLOG_EVENT_ROUTINE, hresourcehandle : isize) -> u32); unsafe { ResUtilTerminateServiceProcessFromResDll(dwservicepid, boffline.into(), pdwresourcestate as _, pfnlogevent, hresourcehandle) } } #[inline] @@ -2420,7 +2420,7 @@ pub unsafe fn ResUtilVerifyPrivatePropertyList(pinpropertylist: *const core::ffi } #[inline] pub unsafe fn ResUtilVerifyPropertyTable(ppropertytable: *const RESUTIL_PROPERTY_ITEM, reserved: Option<*const core::ffi::c_void>, ballowunknownproperties: bool, pinpropertylist: *const core::ffi::c_void, cbinpropertylistsize: u32, poutparams: Option<*mut u8>) -> u32 { - windows_targets::link!("resutils.dll" "system" fn ResUtilVerifyPropertyTable(ppropertytable : *const RESUTIL_PROPERTY_ITEM, reserved : *const core::ffi::c_void, ballowunknownproperties : super::super::Foundation:: BOOL, pinpropertylist : *const core::ffi::c_void, cbinpropertylistsize : u32, poutparams : *mut u8) -> u32); + windows_targets::link!("resutils.dll" "system" fn ResUtilVerifyPropertyTable(ppropertytable : *const RESUTIL_PROPERTY_ITEM, reserved : *const core::ffi::c_void, ballowunknownproperties : windows_core::BOOL, pinpropertylist : *const core::ffi::c_void, cbinpropertylistsize : u32, poutparams : *mut u8) -> u32); unsafe { ResUtilVerifyPropertyTable(ppropertytable, reserved.unwrap_or(core::mem::zeroed()) as _, ballowunknownproperties.into(), pinpropertylist, cbinpropertylistsize, poutparams.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -2448,7 +2448,7 @@ pub unsafe fn ResUtilsDeleteKeyTree(key: super::super::System::Registry::HKE where P1: windows_core::Param, { - windows_targets::link!("resutils.dll" "system" fn ResUtilsDeleteKeyTree(key : super::super::System::Registry:: HKEY, keyname : windows_core::PCWSTR, treatnokeyaserror : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("resutils.dll" "system" fn ResUtilsDeleteKeyTree(key : super::super::System::Registry:: HKEY, keyname : windows_core::PCWSTR, treatnokeyaserror : windows_core::BOOL) -> u32); unsafe { ResUtilsDeleteKeyTree(key, keyname.param().abi(), treatnokeyaserror.into()) } } #[inline] @@ -2475,7 +2475,7 @@ where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("clusapi.dll" "system" fn RestoreClusterDatabase(lpszpathname : windows_core::PCWSTR, bforce : super::super::Foundation:: BOOL, lpszquorumdriveletter : windows_core::PCWSTR) -> u32); + windows_targets::link!("clusapi.dll" "system" fn RestoreClusterDatabase(lpszpathname : windows_core::PCWSTR, bforce : windows_core::BOOL, lpszquorumdriveletter : windows_core::PCWSTR) -> u32); unsafe { RestoreClusterDatabase(lpszpathname.param().abi(), bforce.into(), lpszquorumdriveletter.param().abi()) } } #[inline] @@ -4234,7 +4234,7 @@ pub struct CLUSTER_AVAILABILITY_SET_CONFIG { pub dwVersion: u32, pub dwUpdateDomains: u32, pub dwFaultDomains: u32, - pub bReserveSpareNode: super::super::Foundation::BOOL, + pub bReserveSpareNode: windows_core::BOOL, } impl Default for CLUSTER_AVAILABILITY_SET_CONFIG { fn default() -> Self { @@ -4584,7 +4584,7 @@ impl Default for CLUSTER_IP_ENTRY { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct CLUSTER_MEMBERSHIP_INFO { - pub HasQuorum: super::super::Foundation::BOOL, + pub HasQuorum: windows_core::BOOL, pub UpnodesSize: u32, pub Upnodes: [u8; 1], } @@ -5033,7 +5033,7 @@ impl Default for CLUS_CREATE_INFRASTRUCTURE_FILESERVER_OUTPUT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct CLUS_CSV_MAINTENANCE_MODE_INFO { - pub InMaintenance: super::super::Foundation::BOOL, + pub InMaintenance: windows_core::BOOL, pub VolumeName: [u16; 260], } impl Default for CLUS_CSV_MAINTENANCE_MODE_INFO { @@ -5082,8 +5082,8 @@ impl Default for CLUS_DISK_NUMBER_INFO { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct CLUS_DNN_LEADER_STATUS { - pub IsOnline: super::super::Foundation::BOOL, - pub IsFileServerPresent: super::super::Foundation::BOOL, + pub IsOnline: windows_core::BOOL, + pub IsFileServerPresent: windows_core::BOOL, } impl Default for CLUS_DNN_LEADER_STATUS { fn default() -> Self { @@ -5142,7 +5142,7 @@ pub const CLUS_HYBRID_QUORUM: u32 = 1024u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct CLUS_MAINTENANCE_MODE_INFO { - pub InMaintenance: super::super::Foundation::BOOL, + pub InMaintenance: windows_core::BOOL, } impl Default for CLUS_MAINTENANCE_MODE_INFO { fn default() -> Self { @@ -5152,7 +5152,7 @@ impl Default for CLUS_MAINTENANCE_MODE_INFO { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct CLUS_MAINTENANCE_MODE_INFOEX { - pub InMaintenance: super::super::Foundation::BOOL, + pub InMaintenance: windows_core::BOOL, pub MaintainenceModeType: MAINTENANCE_MODE_TYPE_ENUM, pub InternalState: CLUSTER_RESOURCE_STATE, pub Signature: u32, @@ -5231,7 +5231,7 @@ impl Default for CLUS_NETNAME_PWD_INFOEX { pub struct CLUS_NETNAME_VS_TOKEN_INFO { pub ProcessID: u32, pub DesiredAccess: u32, - pub InheritHandle: super::super::Foundation::BOOL, + pub InheritHandle: windows_core::BOOL, } impl Default for CLUS_NETNAME_VS_TOKEN_INFO { fn default() -> Self { @@ -5480,7 +5480,7 @@ impl Default for CLUS_SCSI_ADDRESS_0_0 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct CLUS_SET_MAINTENANCE_MODE_INPUT { - pub InMaintenance: super::super::Foundation::BOOL, + pub InMaintenance: windows_core::BOOL, pub ExtraParameterSize: u32, pub ExtraParameter: [u8; 1], } @@ -5505,8 +5505,8 @@ impl Default for CLUS_SHARED_VOLUME_BACKUP_MODE { #[derive(Clone, Copy, Debug, PartialEq)] pub struct CLUS_STARTING_PARAMS { pub dwSize: u32, - pub bForm: super::super::Foundation::BOOL, - pub bFirst: super::super::Foundation::BOOL, + pub bForm: windows_core::BOOL, + pub bFirst: windows_core::BOOL, } impl Default for CLUS_STARTING_PARAMS { fn default() -> Self { @@ -5549,7 +5549,7 @@ impl Default for CLUS_STORAGE_SET_DRIVELETTER { #[derive(Clone, Copy, Debug, PartialEq)] pub struct CLUS_WORKER { pub hThread: super::super::Foundation::HANDLE, - pub Terminate: super::super::Foundation::BOOL, + pub Terminate: windows_core::BOOL, } impl Default for CLUS_WORKER { fn default() -> Self { @@ -6210,7 +6210,7 @@ impl IGetClusterResourceInfo { pub unsafe fn GetResourceTypeName(&self, lobjindex: i32, lpszrestypename: &windows_core::BSTR, pcchrestypename: *mut i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetResourceTypeName)(windows_core::Interface::as_raw(self), lobjindex, core::mem::transmute_copy(lpszrestypename), pcchrestypename as _).ok() } } - pub unsafe fn GetResourceNetworkName(&self, lobjindex: i32, lpsznetname: &windows_core::BSTR, pcchnetname: *mut u32) -> super::super::Foundation::BOOL { + pub unsafe fn GetResourceNetworkName(&self, lobjindex: i32, lpsznetname: &windows_core::BSTR, pcchnetname: *mut u32) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).GetResourceNetworkName)(windows_core::Interface::as_raw(self), lobjindex, core::mem::transmute_copy(lpsznetname), pcchnetname as _) } } } @@ -6219,12 +6219,12 @@ pub struct IGetClusterResourceInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetResourceHandle: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> HRESOURCE, pub GetResourceTypeName: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - pub GetResourceNetworkName: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut core::ffi::c_void, *mut u32) -> super::super::Foundation::BOOL, + pub GetResourceNetworkName: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut core::ffi::c_void, *mut u32) -> windows_core::BOOL, } pub trait IGetClusterResourceInfo_Impl: windows_core::IUnknownImpl { fn GetResourceHandle(&self, lobjindex: i32) -> HRESOURCE; fn GetResourceTypeName(&self, lobjindex: i32, lpszrestypename: windows_core::BSTR, pcchrestypename: *mut i32) -> windows_core::Result<()>; - fn GetResourceNetworkName(&self, lobjindex: i32, lpsznetname: windows_core::BSTR, pcchnetname: *mut u32) -> super::super::Foundation::BOOL; + fn GetResourceNetworkName(&self, lobjindex: i32, lpsznetname: windows_core::BSTR, pcchnetname: *mut u32) -> windows_core::BOOL; } impl IGetClusterResourceInfo_Vtbl { pub const fn new() -> Self { @@ -6240,7 +6240,7 @@ impl IGetClusterResourceInfo_Vtbl { IGetClusterResourceInfo_Impl::GetResourceTypeName(this, core::mem::transmute_copy(&lobjindex), core::mem::transmute_copy(&lpszrestypename), core::mem::transmute_copy(&pcchrestypename)).into() } } - unsafe extern "system" fn GetResourceNetworkName(this: *mut core::ffi::c_void, lobjindex: i32, lpsznetname: *mut core::ffi::c_void, pcchnetname: *mut u32) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetResourceNetworkName(this: *mut core::ffi::c_void, lobjindex: i32, lpsznetname: *mut core::ffi::c_void, pcchnetname: *mut u32) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetClusterResourceInfo_Impl::GetResourceNetworkName(this, core::mem::transmute_copy(&lobjindex), core::mem::transmute_copy(&lpsznetname), core::mem::transmute_copy(&pcchnetname)) @@ -12096,7 +12096,7 @@ impl ISClusResource { (windows_core::Interface::vtable(self).Type)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn MaintenanceMode(&self) -> windows_core::Result { + pub unsafe fn MaintenanceMode(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MaintenanceMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -12149,8 +12149,8 @@ pub struct ISClusResource_Vtbl { pub CryptoKeys: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TypeName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Type: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub MaintenanceMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetMaintenanceMode: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MaintenanceMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetMaintenanceMode: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait ISClusResource_Impl: super::super::System::Com::IDispatch_Impl { @@ -12184,8 +12184,8 @@ pub trait ISClusResource_Impl: super::super::System::Com::IDispatch_Impl { fn CryptoKeys(&self) -> windows_core::Result; fn TypeName(&self) -> windows_core::Result; fn Type(&self) -> windows_core::Result; - fn MaintenanceMode(&self) -> windows_core::Result; - fn SetMaintenanceMode(&self, bmaintenancemode: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn MaintenanceMode(&self) -> windows_core::Result; + fn SetMaintenanceMode(&self, bmaintenancemode: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl ISClusResource_Vtbl { @@ -12508,7 +12508,7 @@ impl ISClusResource_Vtbl { } } } - unsafe extern "system" fn MaintenanceMode(this: *mut core::ffi::c_void, pbmaintenancemode: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MaintenanceMode(this: *mut core::ffi::c_void, pbmaintenancemode: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISClusResource_Impl::MaintenanceMode(this) { @@ -12520,7 +12520,7 @@ impl ISClusResource_Vtbl { } } } - unsafe extern "system" fn SetMaintenanceMode(this: *mut core::ffi::c_void, bmaintenancemode: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetMaintenanceMode(this: *mut core::ffi::c_void, bmaintenancemode: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISClusResource_Impl::SetMaintenanceMode(this, core::mem::transmute_copy(&bmaintenancemode)).into() @@ -13860,11 +13860,11 @@ impl IWCWizard97Callback { pub struct IWCWizard97Callback_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub AddWizard97Page: unsafe extern "system" fn(*mut core::ffi::c_void, *const i32) -> windows_core::HRESULT, - pub EnableNext: unsafe extern "system" fn(*mut core::ffi::c_void, *const i32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableNext: unsafe extern "system" fn(*mut core::ffi::c_void, *const i32, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWCWizard97Callback_Impl: windows_core::IUnknownImpl { fn AddWizard97Page(&self, hpage: *const i32) -> windows_core::Result<()>; - fn EnableNext(&self, hpage: *const i32, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EnableNext(&self, hpage: *const i32, benable: windows_core::BOOL) -> windows_core::Result<()>; } impl IWCWizard97Callback_Vtbl { pub const fn new() -> Self { @@ -13874,7 +13874,7 @@ impl IWCWizard97Callback_Vtbl { IWCWizard97Callback_Impl::AddWizard97Page(this, core::mem::transmute_copy(&hpage)).into() } } - unsafe extern "system" fn EnableNext(this: *mut core::ffi::c_void, hpage: *const i32, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableNext(this: *mut core::ffi::c_void, hpage: *const i32, benable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCWizard97Callback_Impl::EnableNext(this, core::mem::transmute_copy(&hpage), core::mem::transmute_copy(&benable)).into() @@ -13905,11 +13905,11 @@ impl IWCWizardCallback { pub struct IWCWizardCallback_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub AddWizardPage: unsafe extern "system" fn(*mut core::ffi::c_void, *const i32) -> windows_core::HRESULT, - pub EnableNext: unsafe extern "system" fn(*mut core::ffi::c_void, *const i32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableNext: unsafe extern "system" fn(*mut core::ffi::c_void, *const i32, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWCWizardCallback_Impl: windows_core::IUnknownImpl { fn AddWizardPage(&self, hpage: *const i32) -> windows_core::Result<()>; - fn EnableNext(&self, hpage: *const i32, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EnableNext(&self, hpage: *const i32, benable: windows_core::BOOL) -> windows_core::Result<()>; } impl IWCWizardCallback_Vtbl { pub const fn new() -> Self { @@ -13919,7 +13919,7 @@ impl IWCWizardCallback_Vtbl { IWCWizardCallback_Impl::AddWizardPage(this, core::mem::transmute_copy(&hpage)).into() } } - unsafe extern "system" fn EnableNext(this: *mut core::ffi::c_void, hpage: *const i32, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableNext(this: *mut core::ffi::c_void, hpage: *const i32, benable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWCWizardCallback_Impl::EnableNext(this, core::mem::transmute_copy(&hpage), core::mem::transmute_copy(&benable)).into() @@ -14136,7 +14136,7 @@ pub struct MONITOR_STATE { pub LastUpdate: i64, pub State: RESOURCE_MONITOR_STATE, pub ActiveResource: super::super::Foundation::HANDLE, - pub ResmonStop: super::super::Foundation::BOOL, + pub ResmonStop: windows_core::BOOL, } impl Default for MONITOR_STATE { fn default() -> Self { @@ -14204,16 +14204,16 @@ impl Default for NodeUtilizationInfoElement { pub const OperationalQuorum: CLUSTER_QUORUM_TYPE = CLUSTER_QUORUM_TYPE(0i32); pub type PARBITRATE_ROUTINE = Option u32>; pub type PARM_WPR_WATCHDOG_FOR_CURRENT_RESOURCE_CALL_ROUTINE = Option u32>; -pub type PBEGIN_RESCALL_AS_USER_ROUTINE = Option u32>; -pub type PBEGIN_RESCALL_ROUTINE = Option u32>; -pub type PBEGIN_RESTYPECALL_AS_USER_ROUTINE = Option u32>; -pub type PBEGIN_RESTYPECALL_ROUTINE = Option u32>; +pub type PBEGIN_RESCALL_AS_USER_ROUTINE = Option u32>; +pub type PBEGIN_RESCALL_ROUTINE = Option u32>; +pub type PBEGIN_RESTYPECALL_AS_USER_ROUTINE = Option u32>; +pub type PBEGIN_RESTYPECALL_ROUTINE = Option u32>; pub type PCANCEL_ROUTINE = Option u32>; -pub type PCHANGE_RESOURCE_PROCESS_FOR_DUMPS = Option u32>; -pub type PCHANGE_RES_TYPE_PROCESS_FOR_DUMPS = Option u32>; +pub type PCHANGE_RESOURCE_PROCESS_FOR_DUMPS = Option u32>; +pub type PCHANGE_RES_TYPE_PROCESS_FOR_DUMPS = Option u32>; pub type PCLOSE_CLUSTER_CRYPT_PROVIDER = Option u32>; pub type PCLOSE_ROUTINE = Option; -pub type PCLUSAPIClusWorkerCheckTerminate = Option super::super::Foundation::BOOL>; +pub type PCLUSAPIClusWorkerCheckTerminate = Option windows_core::BOOL>; pub type PCLUSAPI_ADD_CLUSTER_GROUP_DEPENDENCY = Option u32>; pub type PCLUSAPI_ADD_CLUSTER_GROUP_DEPENDENCY_EX = Option u32>; pub type PCLUSAPI_ADD_CLUSTER_GROUP_GROUPSET_DEPENDENCY = Option u32>; @@ -14229,18 +14229,18 @@ pub type PCLUSAPI_ADD_CLUSTER_RESOURCE_NODE_EX = Option u32>; pub type PCLUSAPI_ADD_RESOURCE_TO_CLUSTER_SHARED_VOLUMES = Option u32>; pub type PCLUSAPI_BACKUP_CLUSTER_DATABASE = Option u32>; -pub type PCLUSAPI_CAN_RESOURCE_BE_DEPENDENT = Option super::super::Foundation::BOOL>; +pub type PCLUSAPI_CAN_RESOURCE_BE_DEPENDENT = Option windows_core::BOOL>; pub type PCLUSAPI_CHANGE_CLUSTER_RESOURCE_GROUP = Option u32>; pub type PCLUSAPI_CHANGE_CLUSTER_RESOURCE_GROUP_EX = Option u32>; pub type PCLUSAPI_CHANGE_CLUSTER_RESOURCE_GROUP_EX2 = Option u32>; -pub type PCLUSAPI_CLOSE_CLUSTER = Option super::super::Foundation::BOOL>; -pub type PCLUSAPI_CLOSE_CLUSTER_GROUP = Option super::super::Foundation::BOOL>; -pub type PCLUSAPI_CLOSE_CLUSTER_GROUP_GROUPSET = Option super::super::Foundation::BOOL>; -pub type PCLUSAPI_CLOSE_CLUSTER_NETWORK = Option super::super::Foundation::BOOL>; -pub type PCLUSAPI_CLOSE_CLUSTER_NET_INTERFACE = Option super::super::Foundation::BOOL>; -pub type PCLUSAPI_CLOSE_CLUSTER_NODE = Option super::super::Foundation::BOOL>; -pub type PCLUSAPI_CLOSE_CLUSTER_NOTIFY_PORT = Option super::super::Foundation::BOOL>; -pub type PCLUSAPI_CLOSE_CLUSTER_RESOURCE = Option super::super::Foundation::BOOL>; +pub type PCLUSAPI_CLOSE_CLUSTER = Option windows_core::BOOL>; +pub type PCLUSAPI_CLOSE_CLUSTER_GROUP = Option windows_core::BOOL>; +pub type PCLUSAPI_CLOSE_CLUSTER_GROUP_GROUPSET = Option windows_core::BOOL>; +pub type PCLUSAPI_CLOSE_CLUSTER_NETWORK = Option windows_core::BOOL>; +pub type PCLUSAPI_CLOSE_CLUSTER_NET_INTERFACE = Option windows_core::BOOL>; +pub type PCLUSAPI_CLOSE_CLUSTER_NODE = Option windows_core::BOOL>; +pub type PCLUSAPI_CLOSE_CLUSTER_NOTIFY_PORT = Option windows_core::BOOL>; +pub type PCLUSAPI_CLOSE_CLUSTER_RESOURCE = Option windows_core::BOOL>; pub type PCLUSAPI_CLUSTER_ADD_GROUP_TO_AFFINITY_RULE = Option u32>; pub type PCLUSAPI_CLUSTER_ADD_GROUP_TO_GROUPSET_WITH_DOMAINS_EX = Option u32>; pub type PCLUSAPI_CLUSTER_ADD_GROUP_TO_GROUP_GROUPSET = Option u32>; @@ -14345,7 +14345,7 @@ pub type PCLUSAPI_CLUSTER_RESOURCE_TYPE_CONTROL_EX = Option u32>; pub type PCLUSAPI_CLUSTER_RESOURCE_TYPE_GET_ENUM_COUNT = Option u32>; pub type PCLUSAPI_CLUSTER_RESOURCE_TYPE_OPEN_ENUM = Option HRESTYPEENUM>; -pub type PCLUSAPI_CLUSTER_UPGRADE = Option u32>; +pub type PCLUSAPI_CLUSTER_UPGRADE = Option u32>; pub type PCLUSAPI_CLUS_WORKER_CREATE = Option u32>; pub type PCLUSAPI_CLUS_WORKER_TERMINATE = Option; pub type PCLUSAPI_CREATE_CLUSTER = Option HCLUSTER>; @@ -14369,7 +14369,7 @@ pub type PCLUSAPI_DELETE_CLUSTER_RESOURCE = Option u32>; pub type PCLUSAPI_DELETE_CLUSTER_RESOURCE_TYPE = Option u32>; pub type PCLUSAPI_DELETE_CLUSTER_RESOURCE_TYPE_EX = Option u32>; -pub type PCLUSAPI_DESTROY_CLUSTER = Option u32>; +pub type PCLUSAPI_DESTROY_CLUSTER = Option u32>; pub type PCLUSAPI_DESTROY_CLUSTER_GROUP = Option u32>; pub type PCLUSAPI_DESTROY_CLUSTER_GROUP_EX = Option u32>; pub type PCLUSAPI_EVICT_CLUSTER_NODE = Option u32>; @@ -14407,13 +14407,13 @@ pub type PCLUSAPI_GET_CLUSTER_QUORUM_RESOURCE = Option u32>; #[cfg(feature = "Win32_System_Registry")] pub type PCLUSAPI_GET_CLUSTER_RESOURCE_KEY = Option super::super::System::Registry::HKEY>; -pub type PCLUSAPI_GET_CLUSTER_RESOURCE_NETWORK_NAME = Option super::super::Foundation::BOOL>; +pub type PCLUSAPI_GET_CLUSTER_RESOURCE_NETWORK_NAME = Option windows_core::BOOL>; pub type PCLUSAPI_GET_CLUSTER_RESOURCE_STATE = Option CLUSTER_RESOURCE_STATE>; #[cfg(feature = "Win32_System_Registry")] pub type PCLUSAPI_GET_CLUSTER_RESOURCE_TYPE_KEY = Option super::super::System::Registry::HKEY>; pub type PCLUSAPI_GET_NODE_CLUSTER_STATE = Option u32>; pub type PCLUSAPI_GET_NOTIFY_EVENT_HANDLE_V2 = Option u32>; -pub type PCLUSAPI_IS_FILE_ON_CLUSTER_SHARED_VOLUME = Option u32>; +pub type PCLUSAPI_IS_FILE_ON_CLUSTER_SHARED_VOLUME = Option u32>; pub type PCLUSAPI_MOVE_CLUSTER_GROUP = Option u32>; pub type PCLUSAPI_OFFLINE_CLUSTER_GROUP = Option u32>; pub type PCLUSAPI_OFFLINE_CLUSTER_RESOURCE = Option u32>; @@ -14434,9 +14434,9 @@ pub type PCLUSAPI_OPEN_CLUSTER_RESOURCE = Option HRESOURCE>; pub type PCLUSAPI_OPEN_NODE_BY_ID = Option HNODE>; pub type PCLUSAPI_PAUSE_CLUSTER_NODE = Option u32>; -pub type PCLUSAPI_PAUSE_CLUSTER_NODE_EX = Option u32>; -pub type PCLUSAPI_PAUSE_CLUSTER_NODE_EX2 = Option u32>; -pub type PCLUSAPI_PFN_REASON_HANDLER = Option super::super::Foundation::BOOL>; +pub type PCLUSAPI_PAUSE_CLUSTER_NODE_EX = Option u32>; +pub type PCLUSAPI_PAUSE_CLUSTER_NODE_EX2 = Option u32>; +pub type PCLUSAPI_PFN_REASON_HANDLER = Option windows_core::BOOL>; pub type PCLUSAPI_REGISTER_CLUSTER_NOTIFY = Option u32>; pub type PCLUSAPI_REGISTER_CLUSTER_NOTIFY_V2 = Option u32>; pub type PCLUSAPI_REMOVE_CLUSTER_GROUP_DEPENDENCY = Option u32>; @@ -14454,7 +14454,7 @@ pub type PCLUSAPI_REMOVE_CROSS_CLUSTER_GROUPSET_DEPENDENCY = Option u32>; pub type PCLUSAPI_RESTART_CLUSTER_RESOURCE = Option u32>; pub type PCLUSAPI_RESTART_CLUSTER_RESOURCE_EX = Option u32>; -pub type PCLUSAPI_RESTORE_CLUSTER_DATABASE = Option u32>; +pub type PCLUSAPI_RESTORE_CLUSTER_DATABASE = Option u32>; pub type PCLUSAPI_RESUME_CLUSTER_NODE = Option u32>; pub type PCLUSAPI_RESUME_CLUSTER_NODE_EX = Option u32>; pub type PCLUSAPI_RESUME_CLUSTER_NODE_EX2 = Option u32>; @@ -14482,14 +14482,14 @@ pub type PCLUSAPI_SetClusterName = Option u32>; pub type PCLUSTER_DECRYPT = Option u32>; pub type PCLUSTER_ENCRYPT = Option u32>; -pub type PCLUSTER_GET_VOLUME_NAME_FOR_VOLUME_MOUNT_POINT = Option super::super::Foundation::BOOL>; -pub type PCLUSTER_GET_VOLUME_PATH_NAME = Option super::super::Foundation::BOOL>; -pub type PCLUSTER_IS_PATH_ON_SHARED_VOLUME = Option super::super::Foundation::BOOL>; +pub type PCLUSTER_GET_VOLUME_NAME_FOR_VOLUME_MOUNT_POINT = Option windows_core::BOOL>; +pub type PCLUSTER_GET_VOLUME_PATH_NAME = Option windows_core::BOOL>; +pub type PCLUSTER_IS_PATH_ON_SHARED_VOLUME = Option windows_core::BOOL>; pub type PCLUSTER_PREPARE_SHARED_VOLUME_FOR_BACKUP = Option u32>; pub type PCLUSTER_REG_BATCH_ADD_COMMAND = Option i32>; pub type PCLUSTER_REG_BATCH_CLOSE_NOTIFICATION = Option i32>; pub type PCLUSTER_REG_BATCH_READ_COMMAND = Option i32>; -pub type PCLUSTER_REG_CLOSE_BATCH = Option i32>; +pub type PCLUSTER_REG_CLOSE_BATCH = Option i32>; pub type PCLUSTER_REG_CLOSE_BATCH_NOTIFY_PORT = Option i32>; pub type PCLUSTER_REG_CLOSE_READ_BATCH = Option i32>; pub type PCLUSTER_REG_CLOSE_READ_BATCH_EX = Option i32>; @@ -14501,15 +14501,15 @@ pub type PCLUSTER_REG_CREATE_READ_BATCH = Option i32>; pub type PCLUSTER_REG_READ_BATCH_ADD_COMMAND = Option i32>; pub type PCLUSTER_REG_READ_BATCH_REPLY_NEXT_COMMAND = Option i32>; -pub type PCLUSTER_SETUP_PROGRESS_CALLBACK = Option super::super::Foundation::BOOL>; +pub type PCLUSTER_SETUP_PROGRESS_CALLBACK = Option windows_core::BOOL>; pub type PCLUSTER_SET_ACCOUNT_ACCESS = Option u32>; -pub type PCLUSTER_UPGRADE_PROGRESS_CALLBACK = Option super::super::Foundation::BOOL>; +pub type PCLUSTER_UPGRADE_PROGRESS_CALLBACK = Option windows_core::BOOL>; pub type PEND_CONTROL_CALL = Option u32>; pub type PEND_TYPE_CONTROL_CALL = Option u32>; pub type PEXTEND_RES_CONTROL_CALL = Option u32>; pub type PEXTEND_RES_TYPE_CONTROL_CALL = Option u32>; pub type PFREE_CLUSTER_CRYPT = Option u32>; -pub type PIS_ALIVE_ROUTINE = Option super::super::Foundation::BOOL>; +pub type PIS_ALIVE_ROUTINE = Option windows_core::BOOL>; #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct PLACEMENT_OPTIONS(pub i32); @@ -14527,7 +14527,7 @@ pub const PLACEMENT_OPTIONS_MIN_VALUE: PLACEMENT_OPTIONS = PLACEMENT_OPTIONS(0i3 pub const PLACEMENT_OPTIONS_SAVE_AVAILABILTY_SET_VMS_WITH_LOCAL_DISK_ON_DRAIN_OVERWRITE: PLACEMENT_OPTIONS = PLACEMENT_OPTIONS(256i32); pub const PLACEMENT_OPTIONS_SAVE_VMS_WITH_LOCAL_DISK_ON_DRAIN_OVERWRITE: PLACEMENT_OPTIONS = PLACEMENT_OPTIONS(64i32); pub type PLOG_EVENT_ROUTINE = Option; -pub type PLOOKS_ALIVE_ROUTINE = Option super::super::Foundation::BOOL>; +pub type PLOOKS_ALIVE_ROUTINE = Option windows_core::BOOL>; pub type POFFLINE_ROUTINE = Option u32>; pub type POFFLINE_V2_ROUTINE = Option u32>; pub type PONLINE_ROUTINE = Option u32>; @@ -14555,10 +14555,10 @@ impl Default for POST_UPGRADE_VERSION_INFO { pub type PQUERY_APPINSTANCE_VERSION = Option u32>; pub type PQUORUM_RESOURCE_LOST = Option; pub type PRAISE_RES_TYPE_NOTIFICATION = Option u32>; -pub type PREGISTER_APPINSTANCE = Option u32>; +pub type PREGISTER_APPINSTANCE = Option u32>; pub type PREGISTER_APPINSTANCE_VERSION = Option u32>; pub type PRELEASE_ROUTINE = Option u32>; -pub type PREQUEST_DUMP_ROUTINE = Option u32>; +pub type PREQUEST_DUMP_ROUTINE = Option u32>; pub type PRESET_ALL_APPINSTANCE_VERSIONS = Option u32>; pub type PRESOURCE_CONTROL_ROUTINE = Option u32>; pub type PRESOURCE_TYPE_CONTROL_ROUTINE = Option u32>; @@ -14598,7 +14598,7 @@ pub type PRESUTIL_GET_DWORD_PROPERTY = Option u32>; pub type PRESUTIL_GET_ENVIRONMENT_WITH_NET_NAME = Option *mut core::ffi::c_void>; #[cfg(feature = "Win32_System_Registry")] -pub type PRESUTIL_GET_EXPAND_SZ_VALUE = Option windows_core::PWSTR>; +pub type PRESUTIL_GET_EXPAND_SZ_VALUE = Option windows_core::PWSTR>; pub type PRESUTIL_GET_FILETIME_PROPERTY = Option u32>; pub type PRESUTIL_GET_LONG_PROPERTY = Option u32>; pub type PRESUTIL_GET_MULTI_SZ_PROPERTY = Option u32>; @@ -14607,7 +14607,7 @@ pub type PRESUTIL_GET_PRIVATE_PROPERTIES = Option u32>; #[cfg(feature = "Win32_System_Registry")] -pub type PRESUTIL_GET_PROPERTIES_TO_PARAMETER_BLOCK = Option u32>; +pub type PRESUTIL_GET_PROPERTIES_TO_PARAMETER_BLOCK = Option u32>; #[cfg(feature = "Win32_System_Registry")] pub type PRESUTIL_GET_PROPERTY = Option u32>; pub type PRESUTIL_GET_PROPERTY_FORMATS = Option u32>; @@ -14616,10 +14616,10 @@ pub type PRESUTIL_GET_PROPERTY_SIZE = Option u32>; pub type PRESUTIL_GET_RESOURCE_DEPENDENCY = Option HRESOURCE>; -pub type PRESUTIL_GET_RESOURCE_DEPENDENCY_BY_CLASS = Option HRESOURCE>; -pub type PRESUTIL_GET_RESOURCE_DEPENDENCY_BY_CLASS_EX = Option HRESOURCE>; -pub type PRESUTIL_GET_RESOURCE_DEPENDENCY_BY_NAME = Option HRESOURCE>; -pub type PRESUTIL_GET_RESOURCE_DEPENDENCY_BY_NAME_EX = Option HRESOURCE>; +pub type PRESUTIL_GET_RESOURCE_DEPENDENCY_BY_CLASS = Option HRESOURCE>; +pub type PRESUTIL_GET_RESOURCE_DEPENDENCY_BY_CLASS_EX = Option HRESOURCE>; +pub type PRESUTIL_GET_RESOURCE_DEPENDENCY_BY_NAME = Option HRESOURCE>; +pub type PRESUTIL_GET_RESOURCE_DEPENDENCY_BY_NAME_EX = Option HRESOURCE>; pub type PRESUTIL_GET_RESOURCE_DEPENDENCY_EX = Option HRESOURCE>; pub type PRESUTIL_GET_RESOURCE_DEPENDENTIP_ADDRESS_PROPS = Option u32>; pub type PRESUTIL_GET_RESOURCE_NAME = Option u32>; @@ -14628,12 +14628,12 @@ pub type PRESUTIL_GET_RESOURCE_NAME_DEPENDENCY_EX = Option u32>; #[cfg(feature = "Win32_System_Registry")] pub type PRESUTIL_GET_SZ_VALUE = Option windows_core::PWSTR>; -pub type PRESUTIL_IS_PATH_VALID = Option super::super::Foundation::BOOL>; -pub type PRESUTIL_IS_RESOURCE_CLASS_EQUAL = Option super::super::Foundation::BOOL>; +pub type PRESUTIL_IS_PATH_VALID = Option windows_core::BOOL>; +pub type PRESUTIL_IS_RESOURCE_CLASS_EQUAL = Option windows_core::BOOL>; pub type PRESUTIL_PROPERTY_LIST_FROM_PARAMETER_BLOCK = Option u32>; pub type PRESUTIL_REMOVE_RESOURCE_SERVICE_ENVIRONMENT = Option u32>; -pub type PRESUTIL_RESOURCES_EQUAL = Option super::super::Foundation::BOOL>; -pub type PRESUTIL_RESOURCE_TYPES_EQUAL = Option super::super::Foundation::BOOL>; +pub type PRESUTIL_RESOURCES_EQUAL = Option windows_core::BOOL>; +pub type PRESUTIL_RESOURCE_TYPES_EQUAL = Option windows_core::BOOL>; #[cfg(feature = "Win32_System_Registry")] pub type PRESUTIL_SET_BINARY_VALUE = Option u32>; #[cfg(feature = "Win32_System_Registry")] @@ -14647,11 +14647,11 @@ pub type PRESUTIL_SET_PRIVATE_PROPERTY_LIST = Option u32>; #[cfg(feature = "Win32_System_Registry")] -pub type PRESUTIL_SET_PROPERTY_PARAMETER_BLOCK_EX = Option u32>; +pub type PRESUTIL_SET_PROPERTY_PARAMETER_BLOCK_EX = Option u32>; #[cfg(feature = "Win32_System_Registry")] -pub type PRESUTIL_SET_PROPERTY_TABLE = Option u32>; +pub type PRESUTIL_SET_PROPERTY_TABLE = Option u32>; #[cfg(feature = "Win32_System_Registry")] -pub type PRESUTIL_SET_PROPERTY_TABLE_EX = Option u32>; +pub type PRESUTIL_SET_PROPERTY_TABLE_EX = Option u32>; #[cfg(feature = "Win32_System_Registry")] pub type PRESUTIL_SET_QWORD_VALUE = Option u32>; pub type PRESUTIL_SET_RESOURCE_SERVICE_ENVIRONMENT = Option u32>; @@ -14668,17 +14668,17 @@ pub type PRESUTIL_START_RESOURCE_SERVICE = Option u32>; #[cfg(feature = "Win32_System_Services")] pub type PRESUTIL_STOP_SERVICE = Option u32>; -pub type PRESUTIL_TERMINATE_SERVICE_PROCESS_FROM_RES_DLL = Option u32>; +pub type PRESUTIL_TERMINATE_SERVICE_PROCESS_FROM_RES_DLL = Option u32>; pub type PRESUTIL_VERIFY_PRIVATE_PROPERTY_LIST = Option u32>; -pub type PRESUTIL_VERIFY_PROPERTY_TABLE = Option u32>; +pub type PRESUTIL_VERIFY_PROPERTY_TABLE = Option u32>; pub type PRESUTIL_VERIFY_RESOURCE_SERVICE = Option u32>; #[cfg(feature = "Win32_System_Services")] pub type PRESUTIL_VERIFY_SERVICE = Option u32>; pub type PRES_UTIL_VERIFY_SHUTDOWN_SAFE = Option u32>; -pub type PSET_INTERNAL_STATE = Option u32>; +pub type PSET_INTERNAL_STATE = Option u32>; pub type PSET_RESOURCE_INMEMORY_NODELOCAL_PROPERTIES_ROUTINE = Option u32>; -pub type PSET_RESOURCE_LOCKED_MODE_EX_ROUTINE = Option u32>; -pub type PSET_RESOURCE_LOCKED_MODE_ROUTINE = Option u32>; +pub type PSET_RESOURCE_LOCKED_MODE_EX_ROUTINE = Option u32>; +pub type PSET_RESOURCE_LOCKED_MODE_ROUTINE = Option u32>; pub type PSET_RESOURCE_STATUS_ROUTINE = Option u32>; pub type PSET_RESOURCE_STATUS_ROUTINE_EX = Option u32>; pub type PSET_RESOURCE_WPR_POLICY_ROUTINE = Option u32>; @@ -14778,7 +14778,7 @@ impl Default for RESOURCE_STATUS_EX { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct RESOURCE_TERMINAL_FAILURE_INFO_BUFFER { - pub isTerminalFailure: super::super::Foundation::BOOL, + pub isTerminalFailure: windows_core::BOOL, pub restartPeriodRemaining: u32, } impl Default for RESOURCE_TERMINAL_FAILURE_INFO_BUFFER { diff --git a/crates/libs/windows/src/Windows/Win32/Networking/HttpServer/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/HttpServer/mod.rs index e52ff4af71..e1bb8c54a2 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/HttpServer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/HttpServer/mod.rs @@ -116,8 +116,8 @@ pub unsafe fn HttpInitialize(version: HTTPAPI_VERSION, flags: HTTP_INITIALIZE, p unsafe { HttpInitialize(core::mem::transmute(version), flags, preserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn HttpIsFeatureSupported(featureid: HTTP_FEATURE_ID) -> super::super::Foundation::BOOL { - windows_targets::link!("httpapi.dll" "system" fn HttpIsFeatureSupported(featureid : HTTP_FEATURE_ID) -> super::super::Foundation:: BOOL); +pub unsafe fn HttpIsFeatureSupported(featureid: HTTP_FEATURE_ID) -> windows_core::BOOL { + windows_targets::link!("httpapi.dll" "system" fn HttpIsFeatureSupported(featureid : HTTP_FEATURE_ID) -> windows_core::BOOL); unsafe { HttpIsFeatureSupported(featureid) } } #[inline] 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 76b6e45a47..b7efedfb0f 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/mod.rs @@ -517,7 +517,7 @@ impl core::ops::Deref for INetwork2 { 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 IsDomainAuthenticatedBy(&self, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND) -> windows_core::Result { + pub unsafe fn IsDomainAuthenticatedBy(&self, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsDomainAuthenticatedBy)(windows_core::Interface::as_raw(self), domainauthenticationkind, &mut result__).map(|| result__) @@ -528,16 +528,16 @@ impl INetwork2 { #[repr(C)] pub struct INetwork2_Vtbl { pub base__: INetwork_Vtbl, - pub IsDomainAuthenticatedBy: unsafe extern "system" fn(*mut core::ffi::c_void, NLM_DOMAIN_AUTHENTICATION_KIND, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsDomainAuthenticatedBy: unsafe extern "system" fn(*mut core::ffi::c_void, NLM_DOMAIN_AUTHENTICATION_KIND, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait INetwork2_Impl: INetwork_Impl { - fn IsDomainAuthenticatedBy(&self, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND) -> windows_core::Result; + fn IsDomainAuthenticatedBy(&self, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl INetwork2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsDomainAuthenticatedBy(this: *mut core::ffi::c_void, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND, pvalue: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsDomainAuthenticatedBy(this: *mut core::ffi::c_void, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND, pvalue: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetwork2_Impl::IsDomainAuthenticatedBy(this, core::mem::transmute_copy(&domainauthenticationkind)) { @@ -752,7 +752,7 @@ impl core::ops::Deref for INetworkConnection2 { windows_core::imp::interface_hierarchy!(INetworkConnection2, windows_core::IUnknown, super::super::System::Com::IDispatch, INetworkConnection); #[cfg(feature = "Win32_System_Com")] impl INetworkConnection2 { - pub unsafe fn IsDomainAuthenticatedBy(&self, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND) -> windows_core::Result { + pub unsafe fn IsDomainAuthenticatedBy(&self, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsDomainAuthenticatedBy)(windows_core::Interface::as_raw(self), domainauthenticationkind, &mut result__).map(|| result__) @@ -763,16 +763,16 @@ impl INetworkConnection2 { #[repr(C)] pub struct INetworkConnection2_Vtbl { pub base__: INetworkConnection_Vtbl, - pub IsDomainAuthenticatedBy: unsafe extern "system" fn(*mut core::ffi::c_void, NLM_DOMAIN_AUTHENTICATION_KIND, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsDomainAuthenticatedBy: unsafe extern "system" fn(*mut core::ffi::c_void, NLM_DOMAIN_AUTHENTICATION_KIND, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait INetworkConnection2_Impl: INetworkConnection_Impl { - fn IsDomainAuthenticatedBy(&self, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND) -> windows_core::Result; + fn IsDomainAuthenticatedBy(&self, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl INetworkConnection2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsDomainAuthenticatedBy(this: *mut core::ffi::c_void, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND, pvalue: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsDomainAuthenticatedBy(this: *mut core::ffi::c_void, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND, pvalue: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INetworkConnection2_Impl::IsDomainAuthenticatedBy(this, core::mem::transmute_copy(&domainauthenticationkind)) { 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 69a117a23e..0927784936 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/RemoteDifferentialCompression/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/RemoteDifferentialCompression/mod.rs @@ -70,21 +70,21 @@ impl windows_core::RuntimeName for IFindSimilarResults {} windows_core::imp::define_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: bool, endofoutput: *mut super::super::Foundation::BOOL, inputbuffer: *mut RdcBufferPointer, outputbuffer: *mut RdcNeedPointer, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::Result<()> { + pub unsafe fn Process(&self, endofinput: bool, endofoutput: *mut windows_core::BOOL, inputbuffer: *mut RdcBufferPointer, outputbuffer: *mut RdcNeedPointer, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Process)(windows_core::Interface::as_raw(self), endofinput.into(), endofoutput as _, inputbuffer as _, outputbuffer as _, rdc_errorcode as _).ok() } } } #[repr(C)] pub struct IRdcComparator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Process: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL, *mut RdcBufferPointer, *mut RdcNeedPointer, *mut RDC_ErrorCode) -> windows_core::HRESULT, + pub Process: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut windows_core::BOOL, *mut RdcBufferPointer, *mut RdcNeedPointer, *mut RDC_ErrorCode) -> windows_core::HRESULT, } pub trait IRdcComparator_Impl: windows_core::IUnknownImpl { - fn Process(&self, endofinput: super::super::Foundation::BOOL, endofoutput: *mut super::super::Foundation::BOOL, inputbuffer: *mut RdcBufferPointer, outputbuffer: *mut RdcNeedPointer, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::Result<()>; + fn Process(&self, endofinput: windows_core::BOOL, endofoutput: *mut windows_core::BOOL, inputbuffer: *mut RdcBufferPointer, outputbuffer: *mut RdcNeedPointer, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::Result<()>; } impl IRdcComparator_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Process(this: *mut core::ffi::c_void, endofinput: super::super::Foundation::BOOL, endofoutput: *mut super::super::Foundation::BOOL, inputbuffer: *mut RdcBufferPointer, outputbuffer: *mut RdcNeedPointer, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::HRESULT { + unsafe extern "system" fn Process(this: *mut core::ffi::c_void, endofinput: windows_core::BOOL, endofoutput: *mut windows_core::BOOL, inputbuffer: *mut RdcBufferPointer, outputbuffer: *mut RdcNeedPointer, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRdcComparator_Impl::Process(this, core::mem::transmute_copy(&endofinput), core::mem::transmute_copy(&endofoutput), core::mem::transmute_copy(&inputbuffer), core::mem::transmute_copy(&outputbuffer), core::mem::transmute_copy(&rdc_errorcode)).into() @@ -106,7 +106,7 @@ impl IRdcFileReader { (windows_core::Interface::vtable(self).GetFileSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn Read(&self, offsetfilestart: u64, bytestoread: u32, bytesactuallyread: *mut u32, buffer: *mut u8, eof: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn Read(&self, offsetfilestart: u64, bytestoread: u32, bytesactuallyread: *mut u32, buffer: *mut u8, eof: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Read)(windows_core::Interface::as_raw(self), offsetfilestart, bytestoread, bytesactuallyread as _, buffer as _, eof as _).ok() } } pub unsafe fn GetFilePosition(&self) -> windows_core::Result { @@ -120,12 +120,12 @@ impl IRdcFileReader { pub struct IRdcFileReader_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetFileSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, - pub Read: unsafe extern "system" fn(*mut core::ffi::c_void, u64, u32, *mut u32, *mut u8, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Read: unsafe extern "system" fn(*mut core::ffi::c_void, u64, u32, *mut u32, *mut u8, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetFilePosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, } pub trait IRdcFileReader_Impl: windows_core::IUnknownImpl { fn GetFileSize(&self) -> windows_core::Result; - fn Read(&self, offsetfilestart: u64, bytestoread: u32, bytesactuallyread: *mut u32, buffer: *mut u8, eof: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Read(&self, offsetfilestart: u64, bytestoread: u32, bytesactuallyread: *mut u32, buffer: *mut u8, eof: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetFilePosition(&self) -> windows_core::Result; } impl IRdcFileReader_Vtbl { @@ -142,7 +142,7 @@ impl IRdcFileReader_Vtbl { } } } - unsafe extern "system" fn Read(this: *mut core::ffi::c_void, offsetfilestart: u64, bytestoread: u32, bytesactuallyread: *mut u32, buffer: *mut u8, eof: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Read(this: *mut core::ffi::c_void, offsetfilestart: u64, bytestoread: u32, bytesactuallyread: *mut u32, buffer: *mut u8, eof: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRdcFileReader_Impl::Read(this, core::mem::transmute_copy(&offsetfilestart), core::mem::transmute_copy(&bytestoread), core::mem::transmute_copy(&bytesactuallyread), core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&eof)).into() @@ -253,7 +253,7 @@ impl IRdcGenerator { (windows_core::Interface::vtable(self).GetGeneratorParameters)(windows_core::Interface::as_raw(self), level, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn Process(&self, endofinput: bool, endofoutput: *mut super::super::Foundation::BOOL, inputbuffer: *mut RdcBufferPointer, outputbuffers: &mut [*mut RdcBufferPointer], rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::Result<()> { + pub unsafe fn Process(&self, endofinput: bool, endofoutput: *mut windows_core::BOOL, inputbuffer: *mut RdcBufferPointer, outputbuffers: &mut [*mut RdcBufferPointer], rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Process)(windows_core::Interface::as_raw(self), endofinput.into(), endofoutput as _, inputbuffer as _, outputbuffers.len().try_into().unwrap(), core::mem::transmute(outputbuffers.as_ptr()), rdc_errorcode as _).ok() } } } @@ -261,11 +261,11 @@ impl IRdcGenerator { pub struct IRdcGenerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetGeneratorParameters: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Process: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL, *mut RdcBufferPointer, u32, *mut *mut RdcBufferPointer, *mut RDC_ErrorCode) -> windows_core::HRESULT, + pub Process: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut windows_core::BOOL, *mut RdcBufferPointer, u32, *mut *mut RdcBufferPointer, *mut RDC_ErrorCode) -> windows_core::HRESULT, } pub trait IRdcGenerator_Impl: windows_core::IUnknownImpl { fn GetGeneratorParameters(&self, level: u32) -> windows_core::Result; - fn Process(&self, endofinput: super::super::Foundation::BOOL, endofoutput: *mut super::super::Foundation::BOOL, inputbuffer: *mut RdcBufferPointer, depth: u32, outputbuffers: *mut *mut RdcBufferPointer, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::Result<()>; + fn Process(&self, endofinput: windows_core::BOOL, endofoutput: *mut windows_core::BOOL, inputbuffer: *mut RdcBufferPointer, depth: u32, outputbuffers: *mut *mut RdcBufferPointer, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::Result<()>; } impl IRdcGenerator_Vtbl { pub const fn new() -> Self { @@ -281,7 +281,7 @@ impl IRdcGenerator_Vtbl { } } } - unsafe extern "system" fn Process(this: *mut core::ffi::c_void, endofinput: super::super::Foundation::BOOL, endofoutput: *mut super::super::Foundation::BOOL, inputbuffer: *mut RdcBufferPointer, depth: u32, outputbuffers: *mut *mut RdcBufferPointer, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::HRESULT { + unsafe extern "system" fn Process(this: *mut core::ffi::c_void, endofinput: windows_core::BOOL, endofoutput: *mut windows_core::BOOL, inputbuffer: *mut RdcBufferPointer, depth: u32, outputbuffers: *mut *mut RdcBufferPointer, rdc_errorcode: *mut RDC_ErrorCode) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRdcGenerator_Impl::Process(this, core::mem::transmute_copy(&endofinput), core::mem::transmute_copy(&endofoutput), core::mem::transmute_copy(&inputbuffer), core::mem::transmute_copy(&depth), core::mem::transmute_copy(&outputbuffers), core::mem::transmute_copy(&rdc_errorcode)).into() @@ -646,7 +646,7 @@ impl IRdcSignatureReader { (windows_core::Interface::vtable(self).ReadHeader)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn ReadSignatures(&self, rdcsignaturepointer: *mut RdcSignaturePointer, endofoutput: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn ReadSignatures(&self, rdcsignaturepointer: *mut RdcSignaturePointer, endofoutput: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).ReadSignatures)(windows_core::Interface::as_raw(self), rdcsignaturepointer as _, endofoutput as _).ok() } } } @@ -654,11 +654,11 @@ impl IRdcSignatureReader { pub struct IRdcSignatureReader_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub ReadHeader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut RDC_ErrorCode) -> windows_core::HRESULT, - pub ReadSignatures: unsafe extern "system" fn(*mut core::ffi::c_void, *mut RdcSignaturePointer, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ReadSignatures: unsafe extern "system" fn(*mut core::ffi::c_void, *mut RdcSignaturePointer, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IRdcSignatureReader_Impl: windows_core::IUnknownImpl { fn ReadHeader(&self) -> windows_core::Result; - fn ReadSignatures(&self, rdcsignaturepointer: *mut RdcSignaturePointer, endofoutput: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ReadSignatures(&self, rdcsignaturepointer: *mut RdcSignaturePointer, endofoutput: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IRdcSignatureReader_Vtbl { pub const fn new() -> Self { @@ -674,7 +674,7 @@ impl IRdcSignatureReader_Vtbl { } } } - unsafe extern "system" fn ReadSignatures(this: *mut core::ffi::c_void, rdcsignaturepointer: *mut RdcSignaturePointer, endofoutput: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ReadSignatures(this: *mut core::ffi::c_void, rdcsignaturepointer: *mut RdcSignaturePointer, endofoutput: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRdcSignatureReader_Impl::ReadSignatures(this, core::mem::transmute_copy(&rdcsignaturepointer), core::mem::transmute_copy(&endofoutput)).into() @@ -796,18 +796,18 @@ impl ISimilarity { #[repr(C)] pub struct ISimilarity_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub CreateTable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL, *const u8, u32, *mut RdcCreatedTables) -> windows_core::HRESULT, - pub CreateTableIndirect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, u32, *mut RdcCreatedTables) -> windows_core::HRESULT, - pub CloseTable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CreateTable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL, *const u8, u32, *mut RdcCreatedTables) -> windows_core::HRESULT, + pub CreateTableIndirect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, u32, *mut RdcCreatedTables) -> windows_core::HRESULT, + pub CloseTable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub Append: unsafe extern "system" fn(*mut core::ffi::c_void, *const SimilarityFileId, *const SimilarityData) -> windows_core::HRESULT, pub FindSimilarFileId: unsafe extern "system" fn(*mut core::ffi::c_void, *const SimilarityData, u16, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CopyAndSwap: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetRecordCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } pub trait ISimilarity_Impl: windows_core::IUnknownImpl { - fn CreateTable(&self, path: &windows_core::PCWSTR, truncate: super::super::Foundation::BOOL, securitydescriptor: *const u8, recordsize: u32) -> windows_core::Result; - fn CreateTableIndirect(&self, mapping: windows_core::Ref, fileidfile: windows_core::Ref, truncate: super::super::Foundation::BOOL, recordsize: u32) -> windows_core::Result; - fn CloseTable(&self, isvalid: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn CreateTable(&self, path: &windows_core::PCWSTR, truncate: windows_core::BOOL, securitydescriptor: *const u8, recordsize: u32) -> windows_core::Result; + fn CreateTableIndirect(&self, mapping: windows_core::Ref, fileidfile: windows_core::Ref, truncate: windows_core::BOOL, recordsize: u32) -> windows_core::Result; + fn CloseTable(&self, isvalid: windows_core::BOOL) -> windows_core::Result<()>; fn Append(&self, similarityfileid: *const SimilarityFileId, similaritydata: *const SimilarityData) -> windows_core::Result<()>; fn FindSimilarFileId(&self, similaritydata: *const SimilarityData, numberofmatchesrequired: u16, resultssize: u32) -> windows_core::Result; fn CopyAndSwap(&self, newsimilaritytables: windows_core::Ref, reportprogress: windows_core::Ref) -> windows_core::Result<()>; @@ -815,7 +815,7 @@ pub trait ISimilarity_Impl: windows_core::IUnknownImpl { } impl ISimilarity_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CreateTable(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, truncate: super::super::Foundation::BOOL, securitydescriptor: *const u8, recordsize: u32, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT { + unsafe extern "system" fn CreateTable(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, truncate: windows_core::BOOL, securitydescriptor: *const u8, recordsize: u32, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarity_Impl::CreateTable(this, core::mem::transmute(&path), core::mem::transmute_copy(&truncate), core::mem::transmute_copy(&securitydescriptor), core::mem::transmute_copy(&recordsize)) { @@ -827,7 +827,7 @@ impl ISimilarity_Vtbl { } } } - unsafe extern "system" fn CreateTableIndirect(this: *mut core::ffi::c_void, mapping: *mut core::ffi::c_void, fileidfile: *mut core::ffi::c_void, truncate: super::super::Foundation::BOOL, recordsize: u32, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT { + unsafe extern "system" fn CreateTableIndirect(this: *mut core::ffi::c_void, mapping: *mut core::ffi::c_void, fileidfile: *mut core::ffi::c_void, truncate: windows_core::BOOL, recordsize: u32, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarity_Impl::CreateTableIndirect(this, core::mem::transmute_copy(&mapping), core::mem::transmute_copy(&fileidfile), core::mem::transmute_copy(&truncate), core::mem::transmute_copy(&recordsize)) { @@ -839,7 +839,7 @@ impl ISimilarity_Vtbl { } } } - unsafe extern "system" fn CloseTable(this: *mut core::ffi::c_void, isvalid: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CloseTable(this: *mut core::ffi::c_void, isvalid: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarity_Impl::CloseTable(this, core::mem::transmute_copy(&isvalid)).into() @@ -943,18 +943,18 @@ impl ISimilarityFileIdTable { #[repr(C)] pub struct ISimilarityFileIdTable_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub CreateTable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL, *const u8, u32, *mut RdcCreatedTables) -> windows_core::HRESULT, - pub CreateTableIndirect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, u32, *mut RdcCreatedTables) -> windows_core::HRESULT, - pub CloseTable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CreateTable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL, *const u8, u32, *mut RdcCreatedTables) -> windows_core::HRESULT, + pub CreateTableIndirect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, u32, *mut RdcCreatedTables) -> windows_core::HRESULT, + pub CloseTable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub Append: unsafe extern "system" fn(*mut core::ffi::c_void, *const SimilarityFileId, *mut u32) -> windows_core::HRESULT, pub Lookup: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut SimilarityFileId) -> windows_core::HRESULT, pub Invalidate: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetRecordCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } pub trait ISimilarityFileIdTable_Impl: windows_core::IUnknownImpl { - fn CreateTable(&self, path: &windows_core::PCWSTR, truncate: super::super::Foundation::BOOL, securitydescriptor: *const u8, recordsize: u32) -> windows_core::Result; - fn CreateTableIndirect(&self, fileidfile: windows_core::Ref, truncate: super::super::Foundation::BOOL, recordsize: u32) -> windows_core::Result; - fn CloseTable(&self, isvalid: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn CreateTable(&self, path: &windows_core::PCWSTR, truncate: windows_core::BOOL, securitydescriptor: *const u8, recordsize: u32) -> windows_core::Result; + fn CreateTableIndirect(&self, fileidfile: windows_core::Ref, truncate: windows_core::BOOL, recordsize: u32) -> windows_core::Result; + fn CloseTable(&self, isvalid: windows_core::BOOL) -> windows_core::Result<()>; fn Append(&self, similarityfileid: *const SimilarityFileId) -> windows_core::Result; fn Lookup(&self, similarityfileindex: u32, similarityfileid: *mut SimilarityFileId) -> windows_core::Result<()>; fn Invalidate(&self, similarityfileindex: u32) -> windows_core::Result<()>; @@ -962,7 +962,7 @@ pub trait ISimilarityFileIdTable_Impl: windows_core::IUnknownImpl { } impl ISimilarityFileIdTable_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CreateTable(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, truncate: super::super::Foundation::BOOL, securitydescriptor: *const u8, recordsize: u32, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT { + unsafe extern "system" fn CreateTable(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, truncate: windows_core::BOOL, securitydescriptor: *const u8, recordsize: u32, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarityFileIdTable_Impl::CreateTable(this, core::mem::transmute(&path), core::mem::transmute_copy(&truncate), core::mem::transmute_copy(&securitydescriptor), core::mem::transmute_copy(&recordsize)) { @@ -974,7 +974,7 @@ impl ISimilarityFileIdTable_Vtbl { } } } - unsafe extern "system" fn CreateTableIndirect(this: *mut core::ffi::c_void, fileidfile: *mut core::ffi::c_void, truncate: super::super::Foundation::BOOL, recordsize: u32, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT { + unsafe extern "system" fn CreateTableIndirect(this: *mut core::ffi::c_void, fileidfile: *mut core::ffi::c_void, truncate: windows_core::BOOL, recordsize: u32, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarityFileIdTable_Impl::CreateTableIndirect(this, core::mem::transmute_copy(&fileidfile), core::mem::transmute_copy(&truncate), core::mem::transmute_copy(&recordsize)) { @@ -986,7 +986,7 @@ impl ISimilarityFileIdTable_Vtbl { } } } - unsafe extern "system" fn CloseTable(this: *mut core::ffi::c_void, isvalid: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CloseTable(this: *mut core::ffi::c_void, isvalid: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarityFileIdTable_Impl::CloseTable(this, core::mem::transmute_copy(&isvalid)).into() @@ -1077,21 +1077,21 @@ impl windows_core::RuntimeName for ISimilarityReportProgress {} windows_core::imp::define_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<()> { + pub unsafe fn GetNextData(&self, resultssize: u32, resultsused: *mut u32, eof: *mut windows_core::BOOL, results: *mut SimilarityDumpData) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetNextData)(windows_core::Interface::as_raw(self), resultssize, resultsused as _, eof as _, results as _).ok() } } } #[repr(C)] pub struct ISimilarityTableDumpState_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetNextData: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32, *mut super::super::Foundation::BOOL, *mut SimilarityDumpData) -> windows_core::HRESULT, + pub GetNextData: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32, *mut windows_core::BOOL, *mut SimilarityDumpData) -> windows_core::HRESULT, } pub trait ISimilarityTableDumpState_Impl: windows_core::IUnknownImpl { - fn GetNextData(&self, resultssize: u32, resultsused: *mut u32, eof: *mut super::super::Foundation::BOOL, results: *mut SimilarityDumpData) -> windows_core::Result<()>; + fn GetNextData(&self, resultssize: u32, resultsused: *mut u32, eof: *mut windows_core::BOOL, results: *mut SimilarityDumpData) -> windows_core::Result<()>; } impl ISimilarityTableDumpState_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetNextData(this: *mut core::ffi::c_void, resultssize: u32, resultsused: *mut u32, eof: *mut super::super::Foundation::BOOL, results: *mut SimilarityDumpData) -> windows_core::HRESULT { + unsafe extern "system" fn GetNextData(this: *mut core::ffi::c_void, resultssize: u32, resultsused: *mut u32, eof: *mut windows_core::BOOL, results: *mut SimilarityDumpData) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarityTableDumpState_Impl::GetNextData(this, core::mem::transmute_copy(&resultssize), core::mem::transmute_copy(&resultsused), core::mem::transmute_copy(&eof), core::mem::transmute_copy(&results)).into() @@ -1128,13 +1128,13 @@ pub struct ISimilarityTraitsMappedView_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Flush: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Unmap: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub Get: unsafe extern "system" fn(*mut core::ffi::c_void, u64, super::super::Foundation::BOOL, u32, *mut SimilarityMappedViewInfo) -> windows_core::HRESULT, + pub Get: unsafe extern "system" fn(*mut core::ffi::c_void, u64, windows_core::BOOL, u32, *mut SimilarityMappedViewInfo) -> windows_core::HRESULT, pub GetView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut u8, *mut *mut u8), } pub trait ISimilarityTraitsMappedView_Impl: windows_core::IUnknownImpl { fn Flush(&self) -> windows_core::Result<()>; fn Unmap(&self) -> windows_core::Result<()>; - fn Get(&self, index: u64, dirty: super::super::Foundation::BOOL, numelements: u32) -> windows_core::Result; + fn Get(&self, index: u64, dirty: windows_core::BOOL, numelements: u32) -> windows_core::Result; fn GetView(&self, mappedpagebegin: *mut *mut u8, mappedpageend: *mut *mut u8); } impl ISimilarityTraitsMappedView_Vtbl { @@ -1151,7 +1151,7 @@ impl ISimilarityTraitsMappedView_Vtbl { ISimilarityTraitsMappedView_Impl::Unmap(this).into() } } - unsafe extern "system" fn Get(this: *mut core::ffi::c_void, index: u64, dirty: super::super::Foundation::BOOL, numelements: u32, viewinfo: *mut SimilarityMappedViewInfo) -> windows_core::HRESULT { + unsafe extern "system" fn Get(this: *mut core::ffi::c_void, index: u64, dirty: windows_core::BOOL, numelements: u32, viewinfo: *mut SimilarityMappedViewInfo) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarityTraitsMappedView_Impl::Get(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&dirty), core::mem::transmute_copy(&numelements)) { @@ -1373,18 +1373,18 @@ impl ISimilarityTraitsTable { #[repr(C)] pub struct ISimilarityTraitsTable_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub CreateTable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL, *const u8, *mut RdcCreatedTables) -> windows_core::HRESULT, - pub CreateTableIndirect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut RdcCreatedTables) -> windows_core::HRESULT, - pub CloseTable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CreateTable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL, *const u8, *mut RdcCreatedTables) -> windows_core::HRESULT, + pub CreateTableIndirect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut RdcCreatedTables) -> windows_core::HRESULT, + pub CloseTable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub Append: unsafe extern "system" fn(*mut core::ffi::c_void, *const SimilarityData, u32) -> windows_core::HRESULT, pub FindSimilarFileIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *const SimilarityData, u16, *mut FindSimilarFileIndexResults, u32, *mut u32) -> windows_core::HRESULT, pub BeginDump: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetLastIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } pub trait ISimilarityTraitsTable_Impl: windows_core::IUnknownImpl { - fn CreateTable(&self, path: &windows_core::PCWSTR, truncate: super::super::Foundation::BOOL, securitydescriptor: *const u8) -> windows_core::Result; - fn CreateTableIndirect(&self, mapping: windows_core::Ref, truncate: super::super::Foundation::BOOL) -> windows_core::Result; - fn CloseTable(&self, isvalid: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn CreateTable(&self, path: &windows_core::PCWSTR, truncate: windows_core::BOOL, securitydescriptor: *const u8) -> windows_core::Result; + fn CreateTableIndirect(&self, mapping: windows_core::Ref, truncate: windows_core::BOOL) -> windows_core::Result; + fn CloseTable(&self, isvalid: windows_core::BOOL) -> windows_core::Result<()>; fn Append(&self, data: *const SimilarityData, fileindex: u32) -> windows_core::Result<()>; fn FindSimilarFileIndex(&self, similaritydata: *const SimilarityData, numberofmatchesrequired: u16, findsimilarfileindexresults: *mut FindSimilarFileIndexResults, resultssize: u32, resultsused: *mut u32) -> windows_core::Result<()>; fn BeginDump(&self) -> windows_core::Result; @@ -1392,7 +1392,7 @@ pub trait ISimilarityTraitsTable_Impl: windows_core::IUnknownImpl { } impl ISimilarityTraitsTable_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CreateTable(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, truncate: super::super::Foundation::BOOL, securitydescriptor: *const u8, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT { + unsafe extern "system" fn CreateTable(this: *mut core::ffi::c_void, path: windows_core::PCWSTR, truncate: windows_core::BOOL, securitydescriptor: *const u8, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarityTraitsTable_Impl::CreateTable(this, core::mem::transmute(&path), core::mem::transmute_copy(&truncate), core::mem::transmute_copy(&securitydescriptor)) { @@ -1404,7 +1404,7 @@ impl ISimilarityTraitsTable_Vtbl { } } } - unsafe extern "system" fn CreateTableIndirect(this: *mut core::ffi::c_void, mapping: *mut core::ffi::c_void, truncate: super::super::Foundation::BOOL, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT { + unsafe extern "system" fn CreateTableIndirect(this: *mut core::ffi::c_void, mapping: *mut core::ffi::c_void, truncate: windows_core::BOOL, isnew: *mut RdcCreatedTables) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISimilarityTraitsTable_Impl::CreateTableIndirect(this, core::mem::transmute_copy(&mapping), core::mem::transmute_copy(&truncate)) { @@ -1416,7 +1416,7 @@ impl ISimilarityTraitsTable_Vtbl { } } } - unsafe extern "system" fn CloseTable(this: *mut core::ffi::c_void, isvalid: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CloseTable(this: *mut core::ffi::c_void, isvalid: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISimilarityTraitsTable_Impl::CloseTable(this, core::mem::transmute_copy(&isvalid)).into() 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 c1517c5425..c11b056caf 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/mod.rs @@ -1,6 +1,6 @@ #[inline] pub unsafe fn WinHttpAddRequestHeaders(hrequest: *mut core::ffi::c_void, lpszheaders: &[u16], dwmodifiers: u32) -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpAddRequestHeaders(hrequest : *mut core::ffi::c_void, lpszheaders : windows_core::PCWSTR, dwheaderslength : u32, dwmodifiers : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpAddRequestHeaders(hrequest : *mut core::ffi::c_void, lpszheaders : windows_core::PCWSTR, dwheaderslength : u32, dwmodifiers : u32) -> windows_core::BOOL); unsafe { WinHttpAddRequestHeaders(hrequest as _, core::mem::transmute(lpszheaders.as_ptr()), lpszheaders.len().try_into().unwrap(), dwmodifiers).ok() } } #[inline] @@ -10,12 +10,12 @@ pub unsafe fn WinHttpAddRequestHeadersEx(hrequest: *mut core::ffi::c_void, dwmod } #[inline] pub unsafe fn WinHttpCheckPlatform() -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpCheckPlatform() -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpCheckPlatform() -> windows_core::BOOL); unsafe { WinHttpCheckPlatform().ok() } } #[inline] pub unsafe fn WinHttpCloseHandle(hinternet: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpCloseHandle(hinternet : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpCloseHandle(hinternet : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { WinHttpCloseHandle(hinternet as _).ok() } } #[inline] @@ -28,7 +28,7 @@ where } #[inline] pub unsafe fn WinHttpCrackUrl(pwszurl: &[u16], dwflags: u32, lpurlcomponents: *mut URL_COMPONENTS) -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpCrackUrl(pwszurl : windows_core::PCWSTR, dwurllength : u32, dwflags : u32, lpurlcomponents : *mut URL_COMPONENTS) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpCrackUrl(pwszurl : windows_core::PCWSTR, dwurllength : u32, dwflags : u32, lpurlcomponents : *mut URL_COMPONENTS) -> windows_core::BOOL); unsafe { WinHttpCrackUrl(core::mem::transmute(pwszurl.as_ptr()), pwszurl.len().try_into().unwrap(), dwflags, lpurlcomponents as _).ok() } } #[inline] @@ -38,12 +38,12 @@ pub unsafe fn WinHttpCreateProxyResolver(hsession: *const core::ffi::c_void, phr } #[inline] pub unsafe fn WinHttpCreateUrl(lpurlcomponents: *const URL_COMPONENTS, dwflags: WIN_HTTP_CREATE_URL_FLAGS, pwszurl: Option, pdwurllength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpCreateUrl(lpurlcomponents : *const URL_COMPONENTS, dwflags : WIN_HTTP_CREATE_URL_FLAGS, pwszurl : windows_core::PWSTR, pdwurllength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpCreateUrl(lpurlcomponents : *const URL_COMPONENTS, dwflags : WIN_HTTP_CREATE_URL_FLAGS, pwszurl : windows_core::PWSTR, pdwurllength : *mut u32) -> windows_core::BOOL); unsafe { WinHttpCreateUrl(lpurlcomponents, dwflags, pwszurl.unwrap_or(core::mem::zeroed()) as _, pdwurllength as _).ok() } } #[inline] pub unsafe fn WinHttpDetectAutoProxyConfigUrl(dwautodetectflags: u32, ppwstrautoconfigurl: *mut windows_core::PWSTR) -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpDetectAutoProxyConfigUrl(dwautodetectflags : u32, ppwstrautoconfigurl : *mut windows_core::PWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpDetectAutoProxyConfigUrl(dwautodetectflags : u32, ppwstrautoconfigurl : *mut windows_core::PWSTR) -> windows_core::BOOL); unsafe { WinHttpDetectAutoProxyConfigUrl(dwautodetectflags, ppwstrautoconfigurl as _).ok() } } #[inline] @@ -73,12 +73,12 @@ pub unsafe fn WinHttpFreeQueryConnectionGroupResult(presult: *mut WINHTTP_QUERY_ } #[inline] pub unsafe fn WinHttpGetDefaultProxyConfiguration(pproxyinfo: *mut WINHTTP_PROXY_INFO) -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpGetDefaultProxyConfiguration(pproxyinfo : *mut WINHTTP_PROXY_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpGetDefaultProxyConfiguration(pproxyinfo : *mut WINHTTP_PROXY_INFO) -> windows_core::BOOL); unsafe { WinHttpGetDefaultProxyConfiguration(pproxyinfo as _).ok() } } #[inline] pub unsafe fn WinHttpGetIEProxyConfigForCurrentUser(pproxyconfig: *mut WINHTTP_CURRENT_USER_IE_PROXY_CONFIG) -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpGetIEProxyConfigForCurrentUser(pproxyconfig : *mut WINHTTP_CURRENT_USER_IE_PROXY_CONFIG) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpGetIEProxyConfigForCurrentUser(pproxyconfig : *mut WINHTTP_CURRENT_USER_IE_PROXY_CONFIG) -> windows_core::BOOL); unsafe { WinHttpGetIEProxyConfigForCurrentUser(pproxyconfig as _).ok() } } #[inline] @@ -86,7 +86,7 @@ pub unsafe fn WinHttpGetProxyForUrl(hsession: *mut core::ffi::c_void, lpcwsz where P1: windows_core::Param, { - windows_targets::link!("winhttp.dll" "system" fn WinHttpGetProxyForUrl(hsession : *mut core::ffi::c_void, lpcwszurl : windows_core::PCWSTR, pautoproxyoptions : *mut WINHTTP_AUTOPROXY_OPTIONS, pproxyinfo : *mut WINHTTP_PROXY_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpGetProxyForUrl(hsession : *mut core::ffi::c_void, lpcwszurl : windows_core::PCWSTR, pautoproxyoptions : *mut WINHTTP_AUTOPROXY_OPTIONS, pproxyinfo : *mut WINHTTP_PROXY_INFO) -> windows_core::BOOL); unsafe { WinHttpGetProxyForUrl(hsession as _, lpcwszurl.param().abi(), pautoproxyoptions as _, pproxyinfo as _).ok() } } #[inline] @@ -153,7 +153,7 @@ where } #[inline] pub unsafe fn WinHttpQueryAuthSchemes(hrequest: *mut core::ffi::c_void, lpdwsupportedschemes: *mut u32, lpdwfirstscheme: *mut u32, pdwauthtarget: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpQueryAuthSchemes(hrequest : *mut core::ffi::c_void, lpdwsupportedschemes : *mut u32, lpdwfirstscheme : *mut u32, pdwauthtarget : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpQueryAuthSchemes(hrequest : *mut core::ffi::c_void, lpdwsupportedschemes : *mut u32, lpdwfirstscheme : *mut u32, pdwauthtarget : *mut u32) -> windows_core::BOOL); unsafe { WinHttpQueryAuthSchemes(hrequest as _, lpdwsupportedschemes as _, lpdwfirstscheme as _, pdwauthtarget as _).ok() } } #[inline] @@ -163,7 +163,7 @@ pub unsafe fn WinHttpQueryConnectionGroup(hinternet: *const core::ffi::c_void, p } #[inline] pub unsafe fn WinHttpQueryDataAvailable(hrequest: *mut core::ffi::c_void, lpdwnumberofbytesavailable: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpQueryDataAvailable(hrequest : *mut core::ffi::c_void, lpdwnumberofbytesavailable : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpQueryDataAvailable(hrequest : *mut core::ffi::c_void, lpdwnumberofbytesavailable : *mut u32) -> windows_core::BOOL); unsafe { WinHttpQueryDataAvailable(hrequest as _, lpdwnumberofbytesavailable as _).ok() } } #[inline] @@ -171,7 +171,7 @@ pub unsafe fn WinHttpQueryHeaders(hrequest: *mut core::ffi::c_void, dwinfole where P2: windows_core::Param, { - windows_targets::link!("winhttp.dll" "system" fn WinHttpQueryHeaders(hrequest : *mut core::ffi::c_void, dwinfolevel : u32, pwszname : windows_core::PCWSTR, lpbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32, lpdwindex : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpQueryHeaders(hrequest : *mut core::ffi::c_void, dwinfolevel : u32, pwszname : windows_core::PCWSTR, lpbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32, lpdwindex : *mut u32) -> windows_core::BOOL); unsafe { WinHttpQueryHeaders(hrequest as _, dwinfolevel, pwszname.param().abi(), lpbuffer.unwrap_or(core::mem::zeroed()) as _, lpdwbufferlength as _, lpdwindex as _).ok() } } #[inline] @@ -181,12 +181,12 @@ pub unsafe fn WinHttpQueryHeadersEx(hrequest: *const core::ffi::c_void, dwinfole } #[inline] pub unsafe fn WinHttpQueryOption(hinternet: *mut core::ffi::c_void, dwoption: u32, lpbuffer: Option<*mut core::ffi::c_void>, lpdwbufferlength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpQueryOption(hinternet : *mut core::ffi::c_void, dwoption : u32, lpbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpQueryOption(hinternet : *mut core::ffi::c_void, dwoption : u32, lpbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32) -> windows_core::BOOL); unsafe { WinHttpQueryOption(hinternet as _, dwoption, lpbuffer.unwrap_or(core::mem::zeroed()) as _, lpdwbufferlength as _).ok() } } #[inline] pub unsafe fn WinHttpReadData(hrequest: *mut core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, dwnumberofbytestoread: u32, lpdwnumberofbytesread: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpReadData(hrequest : *mut core::ffi::c_void, lpbuffer : *mut core::ffi::c_void, dwnumberofbytestoread : u32, lpdwnumberofbytesread : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpReadData(hrequest : *mut core::ffi::c_void, lpbuffer : *mut core::ffi::c_void, dwnumberofbytestoread : u32, lpdwnumberofbytesread : *mut u32) -> windows_core::BOOL); unsafe { WinHttpReadData(hrequest as _, lpbuffer as _, dwnumberofbytestoread, lpdwnumberofbytesread as _).ok() } } #[inline] @@ -195,16 +195,16 @@ pub unsafe fn WinHttpReadDataEx(hrequest: *mut core::ffi::c_void, lpbuffer: *mut unsafe { WinHttpReadDataEx(hrequest as _, lpbuffer as _, dwnumberofbytestoread, lpdwnumberofbytesread as _, ullflags, cbproperty, pvproperty.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn WinHttpReadProxySettings(hsession: *const core::ffi::c_void, pcwszconnectionname: P1, ffallbacktodefaultsettings: bool, fsetautodiscoverfordefaultsettings: bool, pdwsettingsversion: *mut u32, pfdefaultsettingsarereturned: *mut super::super::Foundation::BOOL, pwinhttpproxysettings: *mut WINHTTP_PROXY_SETTINGS) -> u32 +pub unsafe fn WinHttpReadProxySettings(hsession: *const core::ffi::c_void, pcwszconnectionname: P1, ffallbacktodefaultsettings: bool, fsetautodiscoverfordefaultsettings: bool, pdwsettingsversion: *mut u32, pfdefaultsettingsarereturned: *mut windows_core::BOOL, pwinhttpproxysettings: *mut WINHTTP_PROXY_SETTINGS) -> u32 where P1: windows_core::Param, { - windows_targets::link!("winhttp.dll" "system" fn WinHttpReadProxySettings(hsession : *const core::ffi::c_void, pcwszconnectionname : windows_core::PCWSTR, ffallbacktodefaultsettings : super::super::Foundation:: BOOL, fsetautodiscoverfordefaultsettings : super::super::Foundation:: BOOL, pdwsettingsversion : *mut u32, pfdefaultsettingsarereturned : *mut super::super::Foundation:: BOOL, pwinhttpproxysettings : *mut WINHTTP_PROXY_SETTINGS) -> u32); + windows_targets::link!("winhttp.dll" "system" fn WinHttpReadProxySettings(hsession : *const core::ffi::c_void, pcwszconnectionname : windows_core::PCWSTR, ffallbacktodefaultsettings : windows_core::BOOL, fsetautodiscoverfordefaultsettings : windows_core::BOOL, pdwsettingsversion : *mut u32, pfdefaultsettingsarereturned : *mut windows_core::BOOL, pwinhttpproxysettings : *mut WINHTTP_PROXY_SETTINGS) -> u32); unsafe { WinHttpReadProxySettings(hsession, pcwszconnectionname.param().abi(), ffallbacktodefaultsettings.into(), fsetautodiscoverfordefaultsettings.into(), pdwsettingsversion as _, pfdefaultsettingsarereturned as _, pwinhttpproxysettings as _) } } #[inline] pub unsafe fn WinHttpReceiveResponse(hrequest: *mut core::ffi::c_void, lpreserved: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpReceiveResponse(hrequest : *mut core::ffi::c_void, lpreserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpReceiveResponse(hrequest : *mut core::ffi::c_void, lpreserved : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { WinHttpReceiveResponse(hrequest as _, lpreserved as _).ok() } } #[inline] @@ -219,7 +219,7 @@ pub unsafe fn WinHttpResetAutoProxy(hsession: *const core::ffi::c_void, dwflags: } #[inline] pub unsafe fn WinHttpSendRequest(hrequest: *mut core::ffi::c_void, lpszheaders: Option<&[u16]>, lpoptional: Option<*const core::ffi::c_void>, dwoptionallength: u32, dwtotallength: u32, dwcontext: usize) -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpSendRequest(hrequest : *mut core::ffi::c_void, lpszheaders : windows_core::PCWSTR, dwheaderslength : u32, lpoptional : *const core::ffi::c_void, dwoptionallength : u32, dwtotallength : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpSendRequest(hrequest : *mut core::ffi::c_void, lpszheaders : windows_core::PCWSTR, dwheaderslength : u32, lpoptional : *const core::ffi::c_void, dwoptionallength : u32, dwtotallength : u32, dwcontext : usize) -> windows_core::BOOL); unsafe { WinHttpSendRequest(hrequest as _, core::mem::transmute(lpszheaders.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszheaders.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpoptional.unwrap_or(core::mem::zeroed()) as _, dwoptionallength, dwtotallength, dwcontext).ok() } } #[inline] @@ -228,22 +228,22 @@ where P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("winhttp.dll" "system" fn WinHttpSetCredentials(hrequest : *mut core::ffi::c_void, authtargets : u32, authscheme : u32, pwszusername : windows_core::PCWSTR, pwszpassword : windows_core::PCWSTR, pauthparams : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpSetCredentials(hrequest : *mut core::ffi::c_void, authtargets : u32, authscheme : u32, pwszusername : windows_core::PCWSTR, pwszpassword : windows_core::PCWSTR, pauthparams : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { WinHttpSetCredentials(hrequest as _, authtargets, authscheme, pwszusername.param().abi(), pwszpassword.param().abi(), pauthparams as _).ok() } } #[inline] pub unsafe fn WinHttpSetDefaultProxyConfiguration(pproxyinfo: *mut WINHTTP_PROXY_INFO) -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpSetDefaultProxyConfiguration(pproxyinfo : *mut WINHTTP_PROXY_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpSetDefaultProxyConfiguration(pproxyinfo : *mut WINHTTP_PROXY_INFO) -> windows_core::BOOL); unsafe { WinHttpSetDefaultProxyConfiguration(pproxyinfo as _).ok() } } #[inline] pub unsafe fn WinHttpSetOption(hinternet: Option<*const core::ffi::c_void>, dwoption: u32, lpbuffer: Option<&[u8]>) -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpSetOption(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *const core::ffi::c_void, dwbufferlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpSetOption(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *const core::ffi::c_void, dwbufferlength : u32) -> windows_core::BOOL); unsafe { WinHttpSetOption(hinternet.unwrap_or(core::mem::zeroed()) as _, dwoption, core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } } #[inline] pub unsafe fn WinHttpSetProxySettingsPerUser(fproxysettingsperuser: bool) -> u32 { - windows_targets::link!("winhttp.dll" "system" fn WinHttpSetProxySettingsPerUser(fproxysettingsperuser : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("winhttp.dll" "system" fn WinHttpSetProxySettingsPerUser(fproxysettingsperuser : windows_core::BOOL) -> u32); unsafe { WinHttpSetProxySettingsPerUser(fproxysettingsperuser.into()) } } #[inline] @@ -253,12 +253,12 @@ pub unsafe fn WinHttpSetStatusCallback(hinternet: *mut core::ffi::c_void, lpfnin } #[inline] pub unsafe fn WinHttpSetTimeouts(hinternet: *mut core::ffi::c_void, nresolvetimeout: i32, nconnecttimeout: i32, nsendtimeout: i32, nreceivetimeout: i32) -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpSetTimeouts(hinternet : *mut core::ffi::c_void, nresolvetimeout : i32, nconnecttimeout : i32, nsendtimeout : i32, nreceivetimeout : i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpSetTimeouts(hinternet : *mut core::ffi::c_void, nresolvetimeout : i32, nconnecttimeout : i32, nsendtimeout : i32, nreceivetimeout : i32) -> windows_core::BOOL); unsafe { WinHttpSetTimeouts(hinternet as _, nresolvetimeout, nconnecttimeout, nsendtimeout, nreceivetimeout).ok() } } #[inline] pub unsafe fn WinHttpTimeFromSystemTime(pst: *const super::super::Foundation::SYSTEMTIME, pwsztime: &mut [u16; 62]) -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpTimeFromSystemTime(pst : *const super::super::Foundation:: SYSTEMTIME, pwsztime : windows_core::PWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpTimeFromSystemTime(pst : *const super::super::Foundation:: SYSTEMTIME, pwsztime : windows_core::PWSTR) -> windows_core::BOOL); unsafe { WinHttpTimeFromSystemTime(pst, core::mem::transmute(pwsztime.as_ptr())).ok() } } #[inline] @@ -266,7 +266,7 @@ pub unsafe fn WinHttpTimeToSystemTime(pwsztime: P0, pst: *mut super::super:: where P0: windows_core::Param, { - windows_targets::link!("winhttp.dll" "system" fn WinHttpTimeToSystemTime(pwsztime : windows_core::PCWSTR, pst : *mut super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpTimeToSystemTime(pwsztime : windows_core::PCWSTR, pst : *mut super::super::Foundation:: SYSTEMTIME) -> windows_core::BOOL); unsafe { WinHttpTimeToSystemTime(pwsztime.param().abi(), pst as _).ok() } } #[inline] @@ -306,12 +306,12 @@ pub unsafe fn WinHttpWebSocketShutdown(hwebsocket: *const core::ffi::c_void, uss } #[inline] pub unsafe fn WinHttpWriteData(hrequest: *mut core::ffi::c_void, lpbuffer: Option<*const core::ffi::c_void>, dwnumberofbytestowrite: u32, lpdwnumberofbyteswritten: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("winhttp.dll" "system" fn WinHttpWriteData(hrequest : *mut core::ffi::c_void, lpbuffer : *const core::ffi::c_void, dwnumberofbytestowrite : u32, lpdwnumberofbyteswritten : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("winhttp.dll" "system" fn WinHttpWriteData(hrequest : *mut core::ffi::c_void, lpbuffer : *const core::ffi::c_void, dwnumberofbytestowrite : u32, lpdwnumberofbyteswritten : *mut u32) -> windows_core::BOOL); unsafe { WinHttpWriteData(hrequest as _, lpbuffer.unwrap_or(core::mem::zeroed()) as _, dwnumberofbytestowrite, lpdwnumberofbyteswritten as _).ok() } } #[inline] pub unsafe fn WinHttpWriteProxySettings(hsession: *const core::ffi::c_void, fforceupdate: bool, pwinhttpproxysettings: *const WINHTTP_PROXY_SETTINGS) -> u32 { - windows_targets::link!("winhttp.dll" "system" fn WinHttpWriteProxySettings(hsession : *const core::ffi::c_void, fforceupdate : super::super::Foundation:: BOOL, pwinhttpproxysettings : *const WINHTTP_PROXY_SETTINGS) -> u32); + windows_targets::link!("winhttp.dll" "system" fn WinHttpWriteProxySettings(hsession : *const core::ffi::c_void, fforceupdate : windows_core::BOOL, pwinhttpproxysettings : *const WINHTTP_PROXY_SETTINGS) -> u32); unsafe { WinHttpWriteProxySettings(hsession, fforceupdate.into(), pwinhttpproxysettings) } } pub const API_GET_PROXY_FOR_URL: u32 = 6u32; @@ -1004,7 +1004,7 @@ pub struct WINHTTP_AUTOPROXY_OPTIONS { pub lpszAutoConfigUrl: windows_core::PCWSTR, pub lpvReserved: *mut core::ffi::c_void, pub dwReserved: u32, - pub fAutoLogonIfChallenged: super::super::Foundation::BOOL, + pub fAutoLogonIfChallenged: windows_core::BOOL, } impl Default for WINHTTP_AUTOPROXY_OPTIONS { fn default() -> Self { @@ -1167,7 +1167,7 @@ impl Default for WINHTTP_CREDS_EX { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WINHTTP_CURRENT_USER_IE_PROXY_CONFIG { - pub fAutoDetect: super::super::Foundation::BOOL, + pub fAutoDetect: windows_core::BOOL, pub lpszAutoConfigUrl: windows_core::PWSTR, pub lpszProxy: windows_core::PWSTR, pub lpszProxyBypass: windows_core::PWSTR, @@ -1603,8 +1603,8 @@ impl Default for WINHTTP_PROXY_RESULT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WINHTTP_PROXY_RESULT_ENTRY { - pub fProxy: super::super::Foundation::BOOL, - pub fBypass: super::super::Foundation::BOOL, + pub fProxy: windows_core::BOOL, + pub fBypass: windows_core::BOOL, pub ProxyScheme: WINHTTP_INTERNET_SCHEME, pub pwszProxy: windows_core::PWSTR, pub ProxyPort: u16, 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 04d068d4d4..ff56ca5d6b 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs @@ -116,7 +116,7 @@ where P7: windows_core::Param, P8: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn CommitUrlCacheEntryA(lpszurlname : windows_core::PCSTR, lpszlocalfilename : windows_core::PCSTR, expiretime : super::super::Foundation:: FILETIME, lastmodifiedtime : super::super::Foundation:: FILETIME, cacheentrytype : u32, lpheaderinfo : *const u8, cchheaderinfo : u32, lpszfileextension : windows_core::PCSTR, lpszoriginalurl : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn CommitUrlCacheEntryA(lpszurlname : windows_core::PCSTR, lpszlocalfilename : windows_core::PCSTR, expiretime : super::super::Foundation:: FILETIME, lastmodifiedtime : super::super::Foundation:: FILETIME, cacheentrytype : u32, lpheaderinfo : *const u8, cchheaderinfo : u32, lpszfileextension : windows_core::PCSTR, lpszoriginalurl : windows_core::PCSTR) -> windows_core::BOOL); unsafe { CommitUrlCacheEntryA(lpszurlname.param().abi(), lpszlocalfilename.param().abi(), core::mem::transmute(expiretime), core::mem::transmute(lastmodifiedtime), cacheentrytype, core::mem::transmute(lpheaderinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpheaderinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszfileextension.param().abi(), lpszoriginalurl.param().abi()).ok() } } #[inline] @@ -135,17 +135,17 @@ where P7: windows_core::Param, P8: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn CommitUrlCacheEntryW(lpszurlname : windows_core::PCWSTR, lpszlocalfilename : windows_core::PCWSTR, expiretime : super::super::Foundation:: FILETIME, lastmodifiedtime : super::super::Foundation:: FILETIME, cacheentrytype : u32, lpszheaderinfo : windows_core::PCWSTR, cchheaderinfo : u32, lpszfileextension : windows_core::PCWSTR, lpszoriginalurl : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn CommitUrlCacheEntryW(lpszurlname : windows_core::PCWSTR, lpszlocalfilename : windows_core::PCWSTR, expiretime : super::super::Foundation:: FILETIME, lastmodifiedtime : super::super::Foundation:: FILETIME, cacheentrytype : u32, lpszheaderinfo : windows_core::PCWSTR, cchheaderinfo : u32, lpszfileextension : windows_core::PCWSTR, lpszoriginalurl : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { CommitUrlCacheEntryW(lpszurlname.param().abi(), lpszlocalfilename.param().abi(), core::mem::transmute(expiretime), core::mem::transmute(lastmodifiedtime), cacheentrytype, core::mem::transmute(lpszheaderinfo.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszheaderinfo.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpszfileextension.param().abi(), lpszoriginalurl.param().abi()).ok() } } #[inline] -pub unsafe fn CreateMD5SSOHash(pszchallengeinfo: P0, pwszrealm: P1, pwsztarget: P2, pbhexhash: *mut u8) -> super::super::Foundation::BOOL +pub unsafe fn CreateMD5SSOHash(pszchallengeinfo: P0, pwszrealm: P1, pwsztarget: P2, pbhexhash: *mut u8) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn CreateMD5SSOHash(pszchallengeinfo : windows_core::PCWSTR, pwszrealm : windows_core::PCWSTR, pwsztarget : windows_core::PCWSTR, pbhexhash : *mut u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn CreateMD5SSOHash(pszchallengeinfo : windows_core::PCWSTR, pwszrealm : windows_core::PCWSTR, pwsztarget : windows_core::PCWSTR, pbhexhash : *mut u8) -> windows_core::BOOL); unsafe { CreateMD5SSOHash(pszchallengeinfo.param().abi(), pwszrealm.param().abi(), pwsztarget.param().abi(), pbhexhash as _) } } #[inline] @@ -155,7 +155,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn CreateUrlCacheContainerA(name : windows_core::PCSTR, lpcacheprefix : windows_core::PCSTR, lpszcachepath : windows_core::PCSTR, kbcachelimit : u32, dwcontainertype : u32, dwoptions : u32, pvbuffer : *const core::ffi::c_void, cbbuffer : *const u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn CreateUrlCacheContainerA(name : windows_core::PCSTR, lpcacheprefix : windows_core::PCSTR, lpszcachepath : windows_core::PCSTR, kbcachelimit : u32, dwcontainertype : u32, dwoptions : u32, pvbuffer : *const core::ffi::c_void, cbbuffer : *const u32) -> windows_core::BOOL); unsafe { CreateUrlCacheContainerA(name.param().abi(), lpcacheprefix.param().abi(), lpszcachepath.param().abi(), kbcachelimit, dwcontainertype, dwoptions, pvbuffer.unwrap_or(core::mem::zeroed()) as _, cbbuffer.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -165,7 +165,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn CreateUrlCacheContainerW(name : windows_core::PCWSTR, lpcacheprefix : windows_core::PCWSTR, lpszcachepath : windows_core::PCWSTR, kbcachelimit : u32, dwcontainertype : u32, dwoptions : u32, pvbuffer : *const core::ffi::c_void, cbbuffer : *const u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn CreateUrlCacheContainerW(name : windows_core::PCWSTR, lpcacheprefix : windows_core::PCWSTR, lpszcachepath : windows_core::PCWSTR, kbcachelimit : u32, dwcontainertype : u32, dwoptions : u32, pvbuffer : *const core::ffi::c_void, cbbuffer : *const u32) -> windows_core::BOOL); unsafe { CreateUrlCacheContainerW(name.param().abi(), lpcacheprefix.param().abi(), lpszcachepath.param().abi(), kbcachelimit, dwcontainertype, dwoptions, pvbuffer.unwrap_or(core::mem::zeroed()) as _, cbbuffer.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -174,16 +174,16 @@ where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn CreateUrlCacheEntryA(lpszurlname : windows_core::PCSTR, dwexpectedfilesize : u32, lpszfileextension : windows_core::PCSTR, lpszfilename : windows_core::PSTR, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn CreateUrlCacheEntryA(lpszurlname : windows_core::PCSTR, dwexpectedfilesize : u32, lpszfileextension : windows_core::PCSTR, lpszfilename : windows_core::PSTR, dwreserved : u32) -> windows_core::BOOL); unsafe { CreateUrlCacheEntryA(lpszurlname.param().abi(), dwexpectedfilesize, lpszfileextension.param().abi(), core::mem::transmute(lpszfilename.as_ptr()), dwreserved).ok() } } #[inline] -pub unsafe fn CreateUrlCacheEntryExW(lpszurlname: P0, dwexpectedfilesize: u32, lpszfileextension: P2, lpszfilename: &mut [u16; 260], dwreserved: u32, fpreserveincomingfilename: bool) -> super::super::Foundation::BOOL +pub unsafe fn CreateUrlCacheEntryExW(lpszurlname: P0, dwexpectedfilesize: u32, lpszfileextension: P2, lpszfilename: &mut [u16; 260], dwreserved: u32, fpreserveincomingfilename: bool) -> windows_core::BOOL where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn CreateUrlCacheEntryExW(lpszurlname : windows_core::PCWSTR, dwexpectedfilesize : u32, lpszfileextension : windows_core::PCWSTR, lpszfilename : windows_core::PWSTR, dwreserved : u32, fpreserveincomingfilename : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn CreateUrlCacheEntryExW(lpszurlname : windows_core::PCWSTR, dwexpectedfilesize : u32, lpszfileextension : windows_core::PCWSTR, lpszfilename : windows_core::PWSTR, dwreserved : u32, fpreserveincomingfilename : windows_core::BOOL) -> windows_core::BOOL); unsafe { CreateUrlCacheEntryExW(lpszurlname.param().abi(), dwexpectedfilesize, lpszfileextension.param().abi(), core::mem::transmute(lpszfilename.as_ptr()), dwreserved, fpreserveincomingfilename.into()) } } #[inline] @@ -192,7 +192,7 @@ where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn CreateUrlCacheEntryW(lpszurlname : windows_core::PCWSTR, dwexpectedfilesize : u32, lpszfileextension : windows_core::PCWSTR, lpszfilename : windows_core::PWSTR, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn CreateUrlCacheEntryW(lpszurlname : windows_core::PCWSTR, dwexpectedfilesize : u32, lpszfileextension : windows_core::PCWSTR, lpszfilename : windows_core::PWSTR, dwreserved : u32) -> windows_core::BOOL); unsafe { CreateUrlCacheEntryW(lpszurlname.param().abi(), dwexpectedfilesize, lpszfileextension.param().abi(), core::mem::transmute(lpszfilename.as_ptr()), dwreserved).ok() } } #[inline] @@ -213,7 +213,7 @@ pub unsafe fn DeleteUrlCacheContainerA(name: P0, dwoptions: u32) -> windows_ where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheContainerA(name : windows_core::PCSTR, dwoptions : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheContainerA(name : windows_core::PCSTR, dwoptions : u32) -> windows_core::BOOL); unsafe { DeleteUrlCacheContainerA(name.param().abi(), dwoptions).ok() } } #[inline] @@ -221,7 +221,7 @@ pub unsafe fn DeleteUrlCacheContainerW(name: P0, dwoptions: u32) -> windows_ where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheContainerW(name : windows_core::PCWSTR, dwoptions : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheContainerW(name : windows_core::PCWSTR, dwoptions : u32) -> windows_core::BOOL); unsafe { DeleteUrlCacheContainerW(name.param().abi(), dwoptions).ok() } } #[inline] @@ -229,7 +229,7 @@ pub unsafe fn DeleteUrlCacheEntry(lpszurlname: P0) -> windows_core::Result<( where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheEntry(lpszurlname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheEntry(lpszurlname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { DeleteUrlCacheEntry(lpszurlname.param().abi()).ok() } } #[inline] @@ -237,7 +237,7 @@ pub unsafe fn DeleteUrlCacheEntryA(lpszurlname: P0) -> windows_core::Result< where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheEntryA(lpszurlname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheEntryA(lpszurlname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { DeleteUrlCacheEntryA(lpszurlname.param().abi()).ok() } } #[inline] @@ -245,48 +245,48 @@ pub unsafe fn DeleteUrlCacheEntryW(lpszurlname: P0) -> windows_core::Result< where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheEntryW(lpszurlname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheEntryW(lpszurlname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { DeleteUrlCacheEntryW(lpszurlname.param().abi()).ok() } } #[inline] pub unsafe fn DeleteUrlCacheGroup(groupid: i64, dwflags: u32, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheGroup(groupid : i64, dwflags : u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn DeleteUrlCacheGroup(groupid : i64, dwflags : u32, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { DeleteUrlCacheGroup(groupid, dwflags, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn DeleteWpadCacheForNetworks(param0: WPAD_CACHE_DELETE) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn DeleteWpadCacheForNetworks(param0 : WPAD_CACHE_DELETE) -> super::super::Foundation:: BOOL); +pub unsafe fn DeleteWpadCacheForNetworks(param0: WPAD_CACHE_DELETE) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn DeleteWpadCacheForNetworks(param0 : WPAD_CACHE_DELETE) -> windows_core::BOOL); unsafe { DeleteWpadCacheForNetworks(param0) } } #[inline] pub unsafe fn DetectAutoProxyUrl(pszautoproxyurl: &mut [u8], dwdetectflags: PROXY_AUTO_DETECT_TYPE) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn DetectAutoProxyUrl(pszautoproxyurl : windows_core::PSTR, cchautoproxyurl : u32, dwdetectflags : PROXY_AUTO_DETECT_TYPE) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn DetectAutoProxyUrl(pszautoproxyurl : windows_core::PSTR, cchautoproxyurl : u32, dwdetectflags : PROXY_AUTO_DETECT_TYPE) -> windows_core::BOOL); unsafe { DetectAutoProxyUrl(core::mem::transmute(pszautoproxyurl.as_ptr()), pszautoproxyurl.len().try_into().unwrap(), dwdetectflags).ok() } } #[inline] -pub unsafe fn DoConnectoidsExist() -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn DoConnectoidsExist() -> super::super::Foundation:: BOOL); +pub unsafe fn DoConnectoidsExist() -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn DoConnectoidsExist() -> windows_core::BOOL); unsafe { DoConnectoidsExist() } } #[inline] -pub unsafe fn ExportCookieFileA(szfilename: P0, fappend: bool) -> super::super::Foundation::BOOL +pub unsafe fn ExportCookieFileA(szfilename: P0, fappend: bool) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn ExportCookieFileA(szfilename : windows_core::PCSTR, fappend : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn ExportCookieFileA(szfilename : windows_core::PCSTR, fappend : windows_core::BOOL) -> windows_core::BOOL); unsafe { ExportCookieFileA(szfilename.param().abi(), fappend.into()) } } #[inline] -pub unsafe fn ExportCookieFileW(szfilename: P0, fappend: bool) -> super::super::Foundation::BOOL +pub unsafe fn ExportCookieFileW(szfilename: P0, fappend: bool) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn ExportCookieFileW(szfilename : windows_core::PCWSTR, fappend : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn ExportCookieFileW(szfilename : windows_core::PCWSTR, fappend : windows_core::BOOL) -> windows_core::BOOL); unsafe { ExportCookieFileW(szfilename.param().abi(), fappend.into()) } } #[inline] pub unsafe fn FindCloseUrlCache(henumhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn FindCloseUrlCache(henumhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FindCloseUrlCache(henumhandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { FindCloseUrlCache(henumhandle).ok() } } #[inline] @@ -342,38 +342,38 @@ pub unsafe fn FindFirstUrlCacheGroup(dwflags: u32, dwfilter: u32, lpsearchcondit (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] -pub unsafe fn FindNextUrlCacheContainerA(henumhandle: super::super::Foundation::HANDLE, lpcontainerinfo: *mut INTERNET_CACHE_CONTAINER_INFOA, lpcbcontainerinfo: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheContainerA(henumhandle : super::super::Foundation:: HANDLE, lpcontainerinfo : *mut INTERNET_CACHE_CONTAINER_INFOA, lpcbcontainerinfo : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn FindNextUrlCacheContainerA(henumhandle: super::super::Foundation::HANDLE, lpcontainerinfo: *mut INTERNET_CACHE_CONTAINER_INFOA, lpcbcontainerinfo: *mut u32) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheContainerA(henumhandle : super::super::Foundation:: HANDLE, lpcontainerinfo : *mut INTERNET_CACHE_CONTAINER_INFOA, lpcbcontainerinfo : *mut u32) -> windows_core::BOOL); unsafe { FindNextUrlCacheContainerA(henumhandle, lpcontainerinfo as _, lpcbcontainerinfo as _) } } #[inline] -pub unsafe fn FindNextUrlCacheContainerW(henumhandle: super::super::Foundation::HANDLE, lpcontainerinfo: *mut INTERNET_CACHE_CONTAINER_INFOW, lpcbcontainerinfo: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheContainerW(henumhandle : super::super::Foundation:: HANDLE, lpcontainerinfo : *mut INTERNET_CACHE_CONTAINER_INFOW, lpcbcontainerinfo : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn FindNextUrlCacheContainerW(henumhandle: super::super::Foundation::HANDLE, lpcontainerinfo: *mut INTERNET_CACHE_CONTAINER_INFOW, lpcbcontainerinfo: *mut u32) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheContainerW(henumhandle : super::super::Foundation:: HANDLE, lpcontainerinfo : *mut INTERNET_CACHE_CONTAINER_INFOW, lpcbcontainerinfo : *mut u32) -> windows_core::BOOL); unsafe { FindNextUrlCacheContainerW(henumhandle, lpcontainerinfo as _, lpcbcontainerinfo as _) } } #[inline] pub unsafe fn FindNextUrlCacheEntryA(henumhandle: super::super::Foundation::HANDLE, lpnextcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOA>, lpcbcacheentryinfo: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheEntryA(henumhandle : super::super::Foundation:: HANDLE, lpnextcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheEntryA(henumhandle : super::super::Foundation:: HANDLE, lpnextcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32) -> windows_core::BOOL); unsafe { FindNextUrlCacheEntryA(henumhandle, lpnextcacheentryinfo.unwrap_or(core::mem::zeroed()) as _, lpcbcacheentryinfo as _).ok() } } #[inline] pub unsafe fn FindNextUrlCacheEntryExA(henumhandle: super::super::Foundation::HANDLE, lpnextcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOA>, lpcbcacheentryinfo: *mut u32, lpgroupattributes: Option<*const core::ffi::c_void>, lpcbgroupattributes: Option<*const u32>, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheEntryExA(henumhandle : super::super::Foundation:: HANDLE, lpnextcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32, lpgroupattributes : *const core::ffi::c_void, lpcbgroupattributes : *const u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheEntryExA(henumhandle : super::super::Foundation:: HANDLE, lpnextcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32, lpgroupattributes : *const core::ffi::c_void, lpcbgroupattributes : *const u32, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { FindNextUrlCacheEntryExA(henumhandle, lpnextcacheentryinfo.unwrap_or(core::mem::zeroed()) as _, lpcbcacheentryinfo as _, lpgroupattributes.unwrap_or(core::mem::zeroed()) as _, lpcbgroupattributes.unwrap_or(core::mem::zeroed()) as _, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn FindNextUrlCacheEntryExW(henumhandle: super::super::Foundation::HANDLE, lpnextcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOW>, lpcbcacheentryinfo: *mut u32, lpgroupattributes: Option<*const core::ffi::c_void>, lpcbgroupattributes: Option<*const u32>, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheEntryExW(henumhandle : super::super::Foundation:: HANDLE, lpnextcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32, lpgroupattributes : *const core::ffi::c_void, lpcbgroupattributes : *const u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheEntryExW(henumhandle : super::super::Foundation:: HANDLE, lpnextcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32, lpgroupattributes : *const core::ffi::c_void, lpcbgroupattributes : *const u32, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { FindNextUrlCacheEntryExW(henumhandle, lpnextcacheentryinfo.unwrap_or(core::mem::zeroed()) as _, lpcbcacheentryinfo as _, lpgroupattributes.unwrap_or(core::mem::zeroed()) as _, lpcbgroupattributes.unwrap_or(core::mem::zeroed()) as _, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn FindNextUrlCacheEntryW(henumhandle: super::super::Foundation::HANDLE, lpnextcacheentryinfo: Option<*mut INTERNET_CACHE_ENTRY_INFOW>, lpcbcacheentryinfo: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheEntryW(henumhandle : super::super::Foundation:: HANDLE, lpnextcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheEntryW(henumhandle : super::super::Foundation:: HANDLE, lpnextcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32) -> windows_core::BOOL); unsafe { FindNextUrlCacheEntryW(henumhandle, lpnextcacheentryinfo.unwrap_or(core::mem::zeroed()) as _, lpcbcacheentryinfo as _).ok() } } #[inline] pub unsafe fn FindNextUrlCacheGroup(hfind: super::super::Foundation::HANDLE, lpgroupid: *mut i64, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheGroup(hfind : super::super::Foundation:: HANDLE, lpgroupid : *mut i64, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FindNextUrlCacheGroup(hfind : super::super::Foundation:: HANDLE, lpgroupid : *mut i64, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { FindNextUrlCacheGroup(hfind, lpgroupid as _, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -389,7 +389,7 @@ pub unsafe fn FreeUrlCacheSpaceA(lpszcachepath: P0, dwsize: u32, dwfilter: u where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FreeUrlCacheSpaceA(lpszcachepath : windows_core::PCSTR, dwsize : u32, dwfilter : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FreeUrlCacheSpaceA(lpszcachepath : windows_core::PCSTR, dwsize : u32, dwfilter : u32) -> windows_core::BOOL); unsafe { FreeUrlCacheSpaceA(lpszcachepath.param().abi(), dwsize, dwfilter).ok() } } #[inline] @@ -397,7 +397,7 @@ pub unsafe fn FreeUrlCacheSpaceW(lpszcachepath: P0, dwsize: u32, dwfilter: u where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FreeUrlCacheSpaceW(lpszcachepath : windows_core::PCWSTR, dwsize : u32, dwfilter : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FreeUrlCacheSpaceW(lpszcachepath : windows_core::PCWSTR, dwsize : u32, dwfilter : u32) -> windows_core::BOOL); unsafe { FreeUrlCacheSpaceW(lpszcachepath.param().abi(), dwsize, dwfilter).ok() } } #[inline] @@ -405,7 +405,7 @@ pub unsafe fn FtpCommandA(hconnect: *const core::ffi::c_void, fexpectrespons where P3: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FtpCommandA(hconnect : *const core::ffi::c_void, fexpectresponse : super::super::Foundation:: BOOL, dwflags : FTP_FLAGS, lpszcommand : windows_core::PCSTR, dwcontext : usize, phftpcommand : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpCommandA(hconnect : *const core::ffi::c_void, fexpectresponse : windows_core::BOOL, dwflags : FTP_FLAGS, lpszcommand : windows_core::PCSTR, dwcontext : usize, phftpcommand : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { FtpCommandA(hconnect, fexpectresponse.into(), dwflags, lpszcommand.param().abi(), dwcontext.unwrap_or(core::mem::zeroed()) as _, phftpcommand.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -413,7 +413,7 @@ pub unsafe fn FtpCommandW(hconnect: *const core::ffi::c_void, fexpectrespons where P3: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FtpCommandW(hconnect : *const core::ffi::c_void, fexpectresponse : super::super::Foundation:: BOOL, dwflags : FTP_FLAGS, lpszcommand : windows_core::PCWSTR, dwcontext : usize, phftpcommand : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpCommandW(hconnect : *const core::ffi::c_void, fexpectresponse : windows_core::BOOL, dwflags : FTP_FLAGS, lpszcommand : windows_core::PCWSTR, dwcontext : usize, phftpcommand : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { FtpCommandW(hconnect, fexpectresponse.into(), dwflags, lpszcommand.param().abi(), dwcontext.unwrap_or(core::mem::zeroed()) as _, phftpcommand.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -421,7 +421,7 @@ pub unsafe fn FtpCreateDirectoryA(hconnect: *const core::ffi::c_void, lpszdi where P1: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FtpCreateDirectoryA(hconnect : *const core::ffi::c_void, lpszdirectory : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpCreateDirectoryA(hconnect : *const core::ffi::c_void, lpszdirectory : windows_core::PCSTR) -> windows_core::BOOL); unsafe { FtpCreateDirectoryA(hconnect, lpszdirectory.param().abi()).ok() } } #[inline] @@ -429,7 +429,7 @@ pub unsafe fn FtpCreateDirectoryW(hconnect: *const core::ffi::c_void, lpszdi where P1: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FtpCreateDirectoryW(hconnect : *const core::ffi::c_void, lpszdirectory : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpCreateDirectoryW(hconnect : *const core::ffi::c_void, lpszdirectory : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { FtpCreateDirectoryW(hconnect, lpszdirectory.param().abi()).ok() } } #[inline] @@ -437,7 +437,7 @@ pub unsafe fn FtpDeleteFileA(hconnect: *const core::ffi::c_void, lpszfilenam where P1: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FtpDeleteFileA(hconnect : *const core::ffi::c_void, lpszfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpDeleteFileA(hconnect : *const core::ffi::c_void, lpszfilename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { FtpDeleteFileA(hconnect, lpszfilename.param().abi()).ok() } } #[inline] @@ -445,7 +445,7 @@ pub unsafe fn FtpDeleteFileW(hconnect: *const core::ffi::c_void, lpszfilenam where P1: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FtpDeleteFileW(hconnect : *const core::ffi::c_void, lpszfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpDeleteFileW(hconnect : *const core::ffi::c_void, lpszfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { FtpDeleteFileW(hconnect, lpszfilename.param().abi()).ok() } } #[cfg(feature = "Win32_Storage_FileSystem")] @@ -468,12 +468,12 @@ where } #[inline] pub unsafe fn FtpGetCurrentDirectoryA(hconnect: *const core::ffi::c_void, lpszcurrentdirectory: windows_core::PSTR, lpdwcurrentdirectory: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn FtpGetCurrentDirectoryA(hconnect : *const core::ffi::c_void, lpszcurrentdirectory : windows_core::PSTR, lpdwcurrentdirectory : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpGetCurrentDirectoryA(hconnect : *const core::ffi::c_void, lpszcurrentdirectory : windows_core::PSTR, lpdwcurrentdirectory : *mut u32) -> windows_core::BOOL); unsafe { FtpGetCurrentDirectoryA(hconnect, core::mem::transmute(lpszcurrentdirectory), lpdwcurrentdirectory as _).ok() } } #[inline] pub unsafe fn FtpGetCurrentDirectoryW(hconnect: *const core::ffi::c_void, lpszcurrentdirectory: windows_core::PWSTR, lpdwcurrentdirectory: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn FtpGetCurrentDirectoryW(hconnect : *const core::ffi::c_void, lpszcurrentdirectory : windows_core::PWSTR, lpdwcurrentdirectory : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpGetCurrentDirectoryW(hconnect : *const core::ffi::c_void, lpszcurrentdirectory : windows_core::PWSTR, lpdwcurrentdirectory : *mut u32) -> windows_core::BOOL); unsafe { FtpGetCurrentDirectoryW(hconnect, core::mem::transmute(lpszcurrentdirectory), lpdwcurrentdirectory as _).ok() } } #[inline] @@ -482,16 +482,16 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FtpGetFileA(hconnect : *const core::ffi::c_void, lpszremotefile : windows_core::PCSTR, lpsznewfile : windows_core::PCSTR, ffailifexists : super::super::Foundation:: BOOL, dwflagsandattributes : u32, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpGetFileA(hconnect : *const core::ffi::c_void, lpszremotefile : windows_core::PCSTR, lpsznewfile : windows_core::PCSTR, ffailifexists : windows_core::BOOL, dwflagsandattributes : u32, dwflags : u32, dwcontext : usize) -> windows_core::BOOL); unsafe { FtpGetFileA(hconnect, lpszremotefile.param().abi(), lpsznewfile.param().abi(), ffailifexists.into(), dwflagsandattributes, dwflags, dwcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn FtpGetFileEx(hftpsession: *const core::ffi::c_void, lpszremotefile: P1, lpsznewfile: P2, ffailifexists: bool, dwflagsandattributes: u32, dwflags: u32, dwcontext: Option) -> super::super::Foundation::BOOL +pub unsafe fn FtpGetFileEx(hftpsession: *const core::ffi::c_void, lpszremotefile: P1, lpsznewfile: P2, ffailifexists: bool, dwflagsandattributes: u32, dwflags: u32, dwcontext: Option) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FtpGetFileEx(hftpsession : *const core::ffi::c_void, lpszremotefile : windows_core::PCSTR, lpsznewfile : windows_core::PCWSTR, ffailifexists : super::super::Foundation:: BOOL, dwflagsandattributes : u32, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpGetFileEx(hftpsession : *const core::ffi::c_void, lpszremotefile : windows_core::PCSTR, lpsznewfile : windows_core::PCWSTR, ffailifexists : windows_core::BOOL, dwflagsandattributes : u32, dwflags : u32, dwcontext : usize) -> windows_core::BOOL); unsafe { FtpGetFileEx(hftpsession, lpszremotefile.param().abi(), lpsznewfile.param().abi(), ffailifexists.into(), dwflagsandattributes, dwflags, dwcontext.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -505,7 +505,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FtpGetFileW(hconnect : *const core::ffi::c_void, lpszremotefile : windows_core::PCWSTR, lpsznewfile : windows_core::PCWSTR, ffailifexists : super::super::Foundation:: BOOL, dwflagsandattributes : u32, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpGetFileW(hconnect : *const core::ffi::c_void, lpszremotefile : windows_core::PCWSTR, lpsznewfile : windows_core::PCWSTR, ffailifexists : windows_core::BOOL, dwflagsandattributes : u32, dwflags : u32, dwcontext : usize) -> windows_core::BOOL); unsafe { FtpGetFileW(hconnect, lpszremotefile.param().abi(), lpsznewfile.param().abi(), ffailifexists.into(), dwflagsandattributes, dwflags, dwcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -530,16 +530,16 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FtpPutFileA(hconnect : *const core::ffi::c_void, lpszlocalfile : windows_core::PCSTR, lpsznewremotefile : windows_core::PCSTR, dwflags : FTP_FLAGS, dwcontext : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpPutFileA(hconnect : *const core::ffi::c_void, lpszlocalfile : windows_core::PCSTR, lpsznewremotefile : windows_core::PCSTR, dwflags : FTP_FLAGS, dwcontext : usize) -> windows_core::BOOL); unsafe { FtpPutFileA(hconnect, lpszlocalfile.param().abi(), lpsznewremotefile.param().abi(), dwflags, dwcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn FtpPutFileEx(hftpsession: *const core::ffi::c_void, lpszlocalfile: P1, lpsznewremotefile: P2, dwflags: u32, dwcontext: Option) -> super::super::Foundation::BOOL +pub unsafe fn FtpPutFileEx(hftpsession: *const core::ffi::c_void, lpszlocalfile: P1, lpsznewremotefile: P2, dwflags: u32, dwcontext: Option) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FtpPutFileEx(hftpsession : *const core::ffi::c_void, lpszlocalfile : windows_core::PCWSTR, lpsznewremotefile : windows_core::PCSTR, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpPutFileEx(hftpsession : *const core::ffi::c_void, lpszlocalfile : windows_core::PCWSTR, lpsznewremotefile : windows_core::PCSTR, dwflags : u32, dwcontext : usize) -> windows_core::BOOL); unsafe { FtpPutFileEx(hftpsession, lpszlocalfile.param().abi(), lpsznewremotefile.param().abi(), dwflags, dwcontext.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -548,7 +548,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FtpPutFileW(hconnect : *const core::ffi::c_void, lpszlocalfile : windows_core::PCWSTR, lpsznewremotefile : windows_core::PCWSTR, dwflags : FTP_FLAGS, dwcontext : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpPutFileW(hconnect : *const core::ffi::c_void, lpszlocalfile : windows_core::PCWSTR, lpsznewremotefile : windows_core::PCWSTR, dwflags : FTP_FLAGS, dwcontext : usize) -> windows_core::BOOL); unsafe { FtpPutFileW(hconnect, lpszlocalfile.param().abi(), lpsznewremotefile.param().abi(), dwflags, dwcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -556,7 +556,7 @@ pub unsafe fn FtpRemoveDirectoryA(hconnect: *const core::ffi::c_void, lpszdi where P1: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FtpRemoveDirectoryA(hconnect : *const core::ffi::c_void, lpszdirectory : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpRemoveDirectoryA(hconnect : *const core::ffi::c_void, lpszdirectory : windows_core::PCSTR) -> windows_core::BOOL); unsafe { FtpRemoveDirectoryA(hconnect, lpszdirectory.param().abi()).ok() } } #[inline] @@ -564,7 +564,7 @@ pub unsafe fn FtpRemoveDirectoryW(hconnect: *const core::ffi::c_void, lpszdi where P1: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FtpRemoveDirectoryW(hconnect : *const core::ffi::c_void, lpszdirectory : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpRemoveDirectoryW(hconnect : *const core::ffi::c_void, lpszdirectory : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { FtpRemoveDirectoryW(hconnect, lpszdirectory.param().abi()).ok() } } #[inline] @@ -573,7 +573,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FtpRenameFileA(hconnect : *const core::ffi::c_void, lpszexisting : windows_core::PCSTR, lpsznew : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpRenameFileA(hconnect : *const core::ffi::c_void, lpszexisting : windows_core::PCSTR, lpsznew : windows_core::PCSTR) -> windows_core::BOOL); unsafe { FtpRenameFileA(hconnect, lpszexisting.param().abi(), lpsznew.param().abi()).ok() } } #[inline] @@ -582,7 +582,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FtpRenameFileW(hconnect : *const core::ffi::c_void, lpszexisting : windows_core::PCWSTR, lpsznew : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpRenameFileW(hconnect : *const core::ffi::c_void, lpszexisting : windows_core::PCWSTR, lpsznew : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { FtpRenameFileW(hconnect, lpszexisting.param().abi(), lpsznew.param().abi()).ok() } } #[inline] @@ -590,7 +590,7 @@ pub unsafe fn FtpSetCurrentDirectoryA(hconnect: *const core::ffi::c_void, lp where P1: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FtpSetCurrentDirectoryA(hconnect : *const core::ffi::c_void, lpszdirectory : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpSetCurrentDirectoryA(hconnect : *const core::ffi::c_void, lpszdirectory : windows_core::PCSTR) -> windows_core::BOOL); unsafe { FtpSetCurrentDirectoryA(hconnect, lpszdirectory.param().abi()).ok() } } #[inline] @@ -598,25 +598,25 @@ pub unsafe fn FtpSetCurrentDirectoryW(hconnect: *const core::ffi::c_void, lp where P1: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn FtpSetCurrentDirectoryW(hconnect : *const core::ffi::c_void, lpszdirectory : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn FtpSetCurrentDirectoryW(hconnect : *const core::ffi::c_void, lpszdirectory : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { FtpSetCurrentDirectoryW(hconnect, lpszdirectory.param().abi()).ok() } } #[inline] -pub unsafe fn GetDiskInfoA(pszpath: P0, pdwclustersize: Option<*mut u32>, pdlavail: Option<*mut u64>, pdltotal: Option<*mut u64>) -> super::super::Foundation::BOOL +pub unsafe fn GetDiskInfoA(pszpath: P0, pdwclustersize: Option<*mut u32>, pdlavail: Option<*mut u64>, pdltotal: Option<*mut u64>) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn GetDiskInfoA(pszpath : windows_core::PCSTR, pdwclustersize : *mut u32, pdlavail : *mut u64, pdltotal : *mut u64) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn GetDiskInfoA(pszpath : windows_core::PCSTR, pdwclustersize : *mut u32, pdlavail : *mut u64, pdltotal : *mut u64) -> windows_core::BOOL); unsafe { GetDiskInfoA(pszpath.param().abi(), pdwclustersize.unwrap_or(core::mem::zeroed()) as _, pdlavail.unwrap_or(core::mem::zeroed()) as _, pdltotal.unwrap_or(core::mem::zeroed()) as _) } } #[inline] pub unsafe fn GetUrlCacheConfigInfoA(lpcacheconfiginfo: *mut INTERNET_CACHE_CONFIG_INFOA, lpcbcacheconfiginfo: Option<*const u32>, dwfieldcontrol: CACHE_CONFIG) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn GetUrlCacheConfigInfoA(lpcacheconfiginfo : *mut INTERNET_CACHE_CONFIG_INFOA, lpcbcacheconfiginfo : *const u32, dwfieldcontrol : CACHE_CONFIG) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn GetUrlCacheConfigInfoA(lpcacheconfiginfo : *mut INTERNET_CACHE_CONFIG_INFOA, lpcbcacheconfiginfo : *const u32, dwfieldcontrol : CACHE_CONFIG) -> windows_core::BOOL); unsafe { GetUrlCacheConfigInfoA(lpcacheconfiginfo as _, lpcbcacheconfiginfo.unwrap_or(core::mem::zeroed()) as _, dwfieldcontrol).ok() } } #[inline] pub unsafe fn GetUrlCacheConfigInfoW(lpcacheconfiginfo: *mut INTERNET_CACHE_CONFIG_INFOW, lpcbcacheconfiginfo: Option<*const u32>, dwfieldcontrol: CACHE_CONFIG) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn GetUrlCacheConfigInfoW(lpcacheconfiginfo : *mut INTERNET_CACHE_CONFIG_INFOW, lpcbcacheconfiginfo : *const u32, dwfieldcontrol : CACHE_CONFIG) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn GetUrlCacheConfigInfoW(lpcacheconfiginfo : *mut INTERNET_CACHE_CONFIG_INFOW, lpcbcacheconfiginfo : *const u32, dwfieldcontrol : CACHE_CONFIG) -> windows_core::BOOL); unsafe { GetUrlCacheConfigInfoW(lpcacheconfiginfo as _, lpcbcacheconfiginfo.unwrap_or(core::mem::zeroed()) as _, dwfieldcontrol).ok() } } #[inline] @@ -632,7 +632,7 @@ pub unsafe fn GetUrlCacheEntryInfoA(lpszurlname: P0, lpcacheentryinfo: Optio where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn GetUrlCacheEntryInfoA(lpszurlname : windows_core::PCSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn GetUrlCacheEntryInfoA(lpszurlname : windows_core::PCSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32) -> windows_core::BOOL); unsafe { GetUrlCacheEntryInfoA(lpszurlname.param().abi(), lpcacheentryinfo.unwrap_or(core::mem::zeroed()) as _, lpcbcacheentryinfo.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -641,7 +641,7 @@ where P0: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn GetUrlCacheEntryInfoExA(lpszurl : windows_core::PCSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32, lpszredirecturl : windows_core::PCSTR, lpcbredirecturl : *const u32, lpreserved : *const core::ffi::c_void, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn GetUrlCacheEntryInfoExA(lpszurl : windows_core::PCSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32, lpszredirecturl : windows_core::PCSTR, lpcbredirecturl : *const u32, lpreserved : *const core::ffi::c_void, dwflags : u32) -> windows_core::BOOL); unsafe { GetUrlCacheEntryInfoExA(lpszurl.param().abi(), lpcacheentryinfo.unwrap_or(core::mem::zeroed()) as _, lpcbcacheentryinfo.unwrap_or(core::mem::zeroed()) as _, lpszredirecturl.param().abi(), lpcbredirecturl.unwrap_or(core::mem::zeroed()) as _, lpreserved.unwrap_or(core::mem::zeroed()) as _, dwflags).ok() } } #[inline] @@ -650,7 +650,7 @@ where P0: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn GetUrlCacheEntryInfoExW(lpszurl : windows_core::PCWSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32, lpszredirecturl : windows_core::PCWSTR, lpcbredirecturl : *const u32, lpreserved : *const core::ffi::c_void, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn GetUrlCacheEntryInfoExW(lpszurl : windows_core::PCWSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32, lpszredirecturl : windows_core::PCWSTR, lpcbredirecturl : *const u32, lpreserved : *const core::ffi::c_void, dwflags : u32) -> windows_core::BOOL); unsafe { GetUrlCacheEntryInfoExW(lpszurl.param().abi(), lpcacheentryinfo.unwrap_or(core::mem::zeroed()) as _, lpcbcacheentryinfo.unwrap_or(core::mem::zeroed()) as _, lpszredirecturl.param().abi(), lpcbredirecturl.unwrap_or(core::mem::zeroed()) as _, lpreserved.unwrap_or(core::mem::zeroed()) as _, dwflags).ok() } } #[inline] @@ -658,22 +658,22 @@ pub unsafe fn GetUrlCacheEntryInfoW(lpszurlname: P0, lpcacheentryinfo: Optio where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn GetUrlCacheEntryInfoW(lpszurlname : windows_core::PCWSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn GetUrlCacheEntryInfoW(lpszurlname : windows_core::PCWSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32) -> windows_core::BOOL); unsafe { GetUrlCacheEntryInfoW(lpszurlname.param().abi(), lpcacheentryinfo.unwrap_or(core::mem::zeroed()) as _, lpcbcacheentryinfo.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn GetUrlCacheGroupAttributeA(gid: i64, dwflags: Option, dwattributes: u32, lpgroupinfo: *mut INTERNET_CACHE_GROUP_INFOA, lpcbgroupinfo: *mut u32, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn GetUrlCacheGroupAttributeA(gid : i64, dwflags : u32, dwattributes : u32, lpgroupinfo : *mut INTERNET_CACHE_GROUP_INFOA, lpcbgroupinfo : *mut u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn GetUrlCacheGroupAttributeA(gid : i64, dwflags : u32, dwattributes : u32, lpgroupinfo : *mut INTERNET_CACHE_GROUP_INFOA, lpcbgroupinfo : *mut u32, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { GetUrlCacheGroupAttributeA(gid, dwflags.unwrap_or(core::mem::zeroed()) as _, dwattributes, lpgroupinfo as _, lpcbgroupinfo as _, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn GetUrlCacheGroupAttributeW(gid: i64, dwflags: Option, dwattributes: u32, lpgroupinfo: *mut INTERNET_CACHE_GROUP_INFOW, lpcbgroupinfo: *mut u32, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn GetUrlCacheGroupAttributeW(gid : i64, dwflags : u32, dwattributes : u32, lpgroupinfo : *mut INTERNET_CACHE_GROUP_INFOW, lpcbgroupinfo : *mut u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn GetUrlCacheGroupAttributeW(gid : i64, dwflags : u32, dwattributes : u32, lpgroupinfo : *mut INTERNET_CACHE_GROUP_INFOW, lpcbgroupinfo : *mut u32, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { GetUrlCacheGroupAttributeW(gid, dwflags.unwrap_or(core::mem::zeroed()) as _, dwattributes, lpgroupinfo as _, lpcbgroupinfo as _, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn GetUrlCacheHeaderData(nidx: u32, lpdwdata: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn GetUrlCacheHeaderData(nidx : u32, lpdwdata : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetUrlCacheHeaderData(nidx: u32, lpdwdata: *mut u32) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn GetUrlCacheHeaderData(nidx : u32, lpdwdata : *mut u32) -> windows_core::BOOL); unsafe { GetUrlCacheHeaderData(nidx, lpdwdata as _) } } #[inline] @@ -683,7 +683,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn GopherCreateLocatorA(lpszhost : windows_core::PCSTR, nserverport : u16, lpszdisplaystring : windows_core::PCSTR, lpszselectorstring : windows_core::PCSTR, dwgophertype : u32, lpszlocator : windows_core::PSTR, lpdwbufferlength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn GopherCreateLocatorA(lpszhost : windows_core::PCSTR, nserverport : u16, lpszdisplaystring : windows_core::PCSTR, lpszselectorstring : windows_core::PCSTR, dwgophertype : u32, lpszlocator : windows_core::PSTR, lpdwbufferlength : *mut u32) -> windows_core::BOOL); unsafe { GopherCreateLocatorA(lpszhost.param().abi(), nserverport, lpszdisplaystring.param().abi(), lpszselectorstring.param().abi(), dwgophertype, lpszlocator.unwrap_or(core::mem::zeroed()) as _, lpdwbufferlength as _).ok() } } #[inline] @@ -693,7 +693,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn GopherCreateLocatorW(lpszhost : windows_core::PCWSTR, nserverport : u16, lpszdisplaystring : windows_core::PCWSTR, lpszselectorstring : windows_core::PCWSTR, dwgophertype : u32, lpszlocator : windows_core::PWSTR, lpdwbufferlength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn GopherCreateLocatorW(lpszhost : windows_core::PCWSTR, nserverport : u16, lpszdisplaystring : windows_core::PCWSTR, lpszselectorstring : windows_core::PCWSTR, dwgophertype : u32, lpszlocator : windows_core::PWSTR, lpdwbufferlength : *mut u32) -> windows_core::BOOL); unsafe { GopherCreateLocatorW(lpszhost.param().abi(), nserverport, lpszdisplaystring.param().abi(), lpszselectorstring.param().abi(), dwgophertype, lpszlocator.unwrap_or(core::mem::zeroed()) as _, lpdwbufferlength as _).ok() } } #[inline] @@ -720,7 +720,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn GopherGetAttributeA(hconnect : *const core::ffi::c_void, lpszlocator : windows_core::PCSTR, lpszattributename : windows_core::PCSTR, lpbuffer : *mut u8, dwbufferlength : u32, lpdwcharactersreturned : *mut u32, lpfnenumerator : GOPHER_ATTRIBUTE_ENUMERATOR, dwcontext : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn GopherGetAttributeA(hconnect : *const core::ffi::c_void, lpszlocator : windows_core::PCSTR, lpszattributename : windows_core::PCSTR, lpbuffer : *mut u8, dwbufferlength : u32, lpdwcharactersreturned : *mut u32, lpfnenumerator : GOPHER_ATTRIBUTE_ENUMERATOR, dwcontext : usize) -> windows_core::BOOL); unsafe { GopherGetAttributeA(hconnect, lpszlocator.param().abi(), lpszattributename.param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpdwcharactersreturned as _, lpfnenumerator.unwrap_or(core::mem::zeroed()) as _, dwcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -729,7 +729,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn GopherGetAttributeW(hconnect : *const core::ffi::c_void, lpszlocator : windows_core::PCWSTR, lpszattributename : windows_core::PCWSTR, lpbuffer : *mut u8, dwbufferlength : u32, lpdwcharactersreturned : *mut u32, lpfnenumerator : GOPHER_ATTRIBUTE_ENUMERATOR, dwcontext : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn GopherGetAttributeW(hconnect : *const core::ffi::c_void, lpszlocator : windows_core::PCWSTR, lpszattributename : windows_core::PCWSTR, lpbuffer : *mut u8, dwbufferlength : u32, lpdwcharactersreturned : *mut u32, lpfnenumerator : GOPHER_ATTRIBUTE_ENUMERATOR, dwcontext : usize) -> windows_core::BOOL); unsafe { GopherGetAttributeW(hconnect, lpszlocator.param().abi(), lpszattributename.param().abi(), core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpdwcharactersreturned as _, lpfnenumerator.unwrap_or(core::mem::zeroed()) as _, dwcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -737,7 +737,7 @@ pub unsafe fn GopherGetLocatorTypeA(lpszlocator: P0, lpdwgophertype: *mut u3 where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn GopherGetLocatorTypeA(lpszlocator : windows_core::PCSTR, lpdwgophertype : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn GopherGetLocatorTypeA(lpszlocator : windows_core::PCSTR, lpdwgophertype : *mut u32) -> windows_core::BOOL); unsafe { GopherGetLocatorTypeA(lpszlocator.param().abi(), lpdwgophertype as _).ok() } } #[inline] @@ -745,7 +745,7 @@ pub unsafe fn GopherGetLocatorTypeW(lpszlocator: P0, lpdwgophertype: *mut u3 where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn GopherGetLocatorTypeW(lpszlocator : windows_core::PCWSTR, lpdwgophertype : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn GopherGetLocatorTypeW(lpszlocator : windows_core::PCWSTR, lpdwgophertype : *mut u32) -> windows_core::BOOL); unsafe { GopherGetLocatorTypeW(lpszlocator.param().abi(), lpdwgophertype as _).ok() } } #[inline] @@ -768,30 +768,30 @@ where } #[inline] pub unsafe fn HttpAddRequestHeadersA(hrequest: *const core::ffi::c_void, lpszheaders: &[u8], dwmodifiers: HTTP_ADDREQ_FLAG) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn HttpAddRequestHeadersA(hrequest : *const core::ffi::c_void, lpszheaders : windows_core::PCSTR, dwheaderslength : u32, dwmodifiers : HTTP_ADDREQ_FLAG) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn HttpAddRequestHeadersA(hrequest : *const core::ffi::c_void, lpszheaders : windows_core::PCSTR, dwheaderslength : u32, dwmodifiers : HTTP_ADDREQ_FLAG) -> windows_core::BOOL); unsafe { HttpAddRequestHeadersA(hrequest, core::mem::transmute(lpszheaders.as_ptr()), lpszheaders.len().try_into().unwrap(), dwmodifiers).ok() } } #[inline] pub unsafe fn HttpAddRequestHeadersW(hrequest: *const core::ffi::c_void, lpszheaders: &[u16], dwmodifiers: HTTP_ADDREQ_FLAG) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn HttpAddRequestHeadersW(hrequest : *const core::ffi::c_void, lpszheaders : windows_core::PCWSTR, dwheaderslength : u32, dwmodifiers : HTTP_ADDREQ_FLAG) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn HttpAddRequestHeadersW(hrequest : *const core::ffi::c_void, lpszheaders : windows_core::PCWSTR, dwheaderslength : u32, dwmodifiers : HTTP_ADDREQ_FLAG) -> windows_core::BOOL); unsafe { HttpAddRequestHeadersW(hrequest, core::mem::transmute(lpszheaders.as_ptr()), lpszheaders.len().try_into().unwrap(), dwmodifiers).ok() } } #[inline] -pub unsafe fn HttpCheckDavComplianceA(lpszurl: P0, lpszcompliancetoken: P1, lpffound: *mut super::super::Foundation::BOOL, hwnd: super::super::Foundation::HWND, lpvreserved: *const core::ffi::c_void) -> super::super::Foundation::BOOL +pub unsafe fn HttpCheckDavComplianceA(lpszurl: P0, lpszcompliancetoken: P1, lpffound: *mut windows_core::BOOL, hwnd: super::super::Foundation::HWND, lpvreserved: *const core::ffi::c_void) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn HttpCheckDavComplianceA(lpszurl : windows_core::PCSTR, lpszcompliancetoken : windows_core::PCSTR, lpffound : *mut super::super::Foundation:: BOOL, hwnd : super::super::Foundation:: HWND, lpvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn HttpCheckDavComplianceA(lpszurl : windows_core::PCSTR, lpszcompliancetoken : windows_core::PCSTR, lpffound : *mut windows_core::BOOL, hwnd : super::super::Foundation:: HWND, lpvreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { HttpCheckDavComplianceA(lpszurl.param().abi(), lpszcompliancetoken.param().abi(), lpffound as _, hwnd, lpvreserved) } } #[inline] -pub unsafe fn HttpCheckDavComplianceW(lpszurl: P0, lpszcompliancetoken: P1, lpffound: *mut super::super::Foundation::BOOL, hwnd: super::super::Foundation::HWND, lpvreserved: *const core::ffi::c_void) -> super::super::Foundation::BOOL +pub unsafe fn HttpCheckDavComplianceW(lpszurl: P0, lpszcompliancetoken: P1, lpffound: *mut windows_core::BOOL, hwnd: super::super::Foundation::HWND, lpvreserved: *const core::ffi::c_void) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn HttpCheckDavComplianceW(lpszurl : windows_core::PCWSTR, lpszcompliancetoken : windows_core::PCWSTR, lpffound : *mut super::super::Foundation:: BOOL, hwnd : super::super::Foundation:: HWND, lpvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn HttpCheckDavComplianceW(lpszurl : windows_core::PCWSTR, lpszcompliancetoken : windows_core::PCWSTR, lpffound : *mut windows_core::BOOL, hwnd : super::super::Foundation:: HWND, lpvreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { HttpCheckDavComplianceW(lpszurl.param().abi(), lpszcompliancetoken.param().abi(), lpffound as _, hwnd, lpvreserved) } } #[inline] @@ -806,12 +806,12 @@ pub unsafe fn HttpDuplicateDependencyHandle(hdependencyhandle: *const core::ffi: } #[inline] pub unsafe fn HttpEndRequestA(hrequest: *const core::ffi::c_void, lpbuffersout: Option<*mut INTERNET_BUFFERSA>, dwflags: u32, dwcontext: Option) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn HttpEndRequestA(hrequest : *const core::ffi::c_void, lpbuffersout : *mut INTERNET_BUFFERSA, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn HttpEndRequestA(hrequest : *const core::ffi::c_void, lpbuffersout : *mut INTERNET_BUFFERSA, dwflags : u32, dwcontext : usize) -> windows_core::BOOL); unsafe { HttpEndRequestA(hrequest, lpbuffersout.unwrap_or(core::mem::zeroed()) as _, dwflags, dwcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn HttpEndRequestW(hrequest: *const core::ffi::c_void, lpbuffersout: Option<*mut INTERNET_BUFFERSW>, dwflags: u32, dwcontext: Option) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn HttpEndRequestW(hrequest : *const core::ffi::c_void, lpbuffersout : *mut INTERNET_BUFFERSW, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn HttpEndRequestW(hrequest : *const core::ffi::c_void, lpbuffersout : *mut INTERNET_BUFFERSW, dwflags : u32, dwcontext : usize) -> windows_core::BOOL); unsafe { HttpEndRequestW(hrequest, lpbuffersout.unwrap_or(core::mem::zeroed()) as _, dwflags, dwcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -828,16 +828,16 @@ pub unsafe fn HttpIndicatePageLoadComplete(hdependencyhandle: *const core::ffi:: unsafe { HttpIndicatePageLoadComplete(hdependencyhandle) } } #[inline] -pub unsafe fn HttpIsHostHstsEnabled(pcwszurl: P0, pfishsts: *mut super::super::Foundation::BOOL) -> u32 +pub unsafe fn HttpIsHostHstsEnabled(pcwszurl: P0, pfishsts: *mut windows_core::BOOL) -> u32 where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn HttpIsHostHstsEnabled(pcwszurl : windows_core::PCWSTR, pfishsts : *mut super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("wininet.dll" "system" fn HttpIsHostHstsEnabled(pcwszurl : windows_core::PCWSTR, pfishsts : *mut windows_core::BOOL) -> u32); unsafe { HttpIsHostHstsEnabled(pcwszurl.param().abi(), pfishsts as _) } } #[inline] pub unsafe fn HttpOpenDependencyHandle(hrequesthandle: *const core::ffi::c_void, fbackground: bool, phdependencyhandle: *mut *mut core::ffi::c_void) -> u32 { - windows_targets::link!("wininet.dll" "system" fn HttpOpenDependencyHandle(hrequesthandle : *const core::ffi::c_void, fbackground : super::super::Foundation:: BOOL, phdependencyhandle : *mut *mut core::ffi::c_void) -> u32); + windows_targets::link!("wininet.dll" "system" fn HttpOpenDependencyHandle(hrequesthandle : *const core::ffi::c_void, fbackground : windows_core::BOOL, phdependencyhandle : *mut *mut core::ffi::c_void) -> u32); unsafe { HttpOpenDependencyHandle(hrequesthandle, fbackground.into(), phdependencyhandle as _) } } #[inline] @@ -879,37 +879,37 @@ pub unsafe fn HttpPushWait(hwait: HTTP_PUSH_WAIT_HANDLE, etype: HTTP_PUSH_WAIT_T } #[inline] pub unsafe fn HttpQueryInfoA(hrequest: *const core::ffi::c_void, dwinfolevel: u32, lpbuffer: Option<*mut core::ffi::c_void>, lpdwbufferlength: *mut u32, lpdwindex: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn HttpQueryInfoA(hrequest : *const core::ffi::c_void, dwinfolevel : u32, lpbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32, lpdwindex : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn HttpQueryInfoA(hrequest : *const core::ffi::c_void, dwinfolevel : u32, lpbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32, lpdwindex : *mut u32) -> windows_core::BOOL); unsafe { HttpQueryInfoA(hrequest, dwinfolevel, lpbuffer.unwrap_or(core::mem::zeroed()) as _, lpdwbufferlength as _, lpdwindex.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn HttpQueryInfoW(hrequest: *const core::ffi::c_void, dwinfolevel: u32, lpbuffer: Option<*mut core::ffi::c_void>, lpdwbufferlength: *mut u32, lpdwindex: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn HttpQueryInfoW(hrequest : *const core::ffi::c_void, dwinfolevel : u32, lpbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32, lpdwindex : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn HttpQueryInfoW(hrequest : *const core::ffi::c_void, dwinfolevel : u32, lpbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32, lpdwindex : *mut u32) -> windows_core::BOOL); unsafe { HttpQueryInfoW(hrequest, dwinfolevel, lpbuffer.unwrap_or(core::mem::zeroed()) as _, lpdwbufferlength as _, lpdwindex.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn HttpSendRequestA(hrequest: *const core::ffi::c_void, lpszheaders: Option<&[u8]>, lpoptional: Option<*const core::ffi::c_void>, dwoptionallength: u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn HttpSendRequestA(hrequest : *const core::ffi::c_void, lpszheaders : windows_core::PCSTR, dwheaderslength : u32, lpoptional : *const core::ffi::c_void, dwoptionallength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn HttpSendRequestA(hrequest : *const core::ffi::c_void, lpszheaders : windows_core::PCSTR, dwheaderslength : u32, lpoptional : *const core::ffi::c_void, dwoptionallength : u32) -> windows_core::BOOL); unsafe { HttpSendRequestA(hrequest, core::mem::transmute(lpszheaders.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszheaders.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpoptional.unwrap_or(core::mem::zeroed()) as _, dwoptionallength).ok() } } #[inline] pub unsafe fn HttpSendRequestExA(hrequest: *const core::ffi::c_void, lpbuffersin: Option<*const INTERNET_BUFFERSA>, lpbuffersout: Option<*mut INTERNET_BUFFERSA>, dwflags: u32, dwcontext: Option) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn HttpSendRequestExA(hrequest : *const core::ffi::c_void, lpbuffersin : *const INTERNET_BUFFERSA, lpbuffersout : *mut INTERNET_BUFFERSA, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn HttpSendRequestExA(hrequest : *const core::ffi::c_void, lpbuffersin : *const INTERNET_BUFFERSA, lpbuffersout : *mut INTERNET_BUFFERSA, dwflags : u32, dwcontext : usize) -> windows_core::BOOL); unsafe { HttpSendRequestExA(hrequest, lpbuffersin.unwrap_or(core::mem::zeroed()) as _, lpbuffersout.unwrap_or(core::mem::zeroed()) as _, dwflags, dwcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn HttpSendRequestExW(hrequest: *const core::ffi::c_void, lpbuffersin: Option<*const INTERNET_BUFFERSW>, lpbuffersout: Option<*mut INTERNET_BUFFERSW>, dwflags: u32, dwcontext: Option) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn HttpSendRequestExW(hrequest : *const core::ffi::c_void, lpbuffersin : *const INTERNET_BUFFERSW, lpbuffersout : *mut INTERNET_BUFFERSW, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn HttpSendRequestExW(hrequest : *const core::ffi::c_void, lpbuffersin : *const INTERNET_BUFFERSW, lpbuffersout : *mut INTERNET_BUFFERSW, dwflags : u32, dwcontext : usize) -> windows_core::BOOL); unsafe { HttpSendRequestExW(hrequest, lpbuffersin.unwrap_or(core::mem::zeroed()) as _, lpbuffersout.unwrap_or(core::mem::zeroed()) as _, dwflags, dwcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn HttpSendRequestW(hrequest: *const core::ffi::c_void, lpszheaders: Option<&[u16]>, lpoptional: Option<*const core::ffi::c_void>, dwoptionallength: u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn HttpSendRequestW(hrequest : *const core::ffi::c_void, lpszheaders : windows_core::PCWSTR, dwheaderslength : u32, lpoptional : *const core::ffi::c_void, dwoptionallength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn HttpSendRequestW(hrequest : *const core::ffi::c_void, lpszheaders : windows_core::PCWSTR, dwheaderslength : u32, lpoptional : *const core::ffi::c_void, dwoptionallength : u32) -> windows_core::BOOL); unsafe { HttpSendRequestW(hrequest, core::mem::transmute(lpszheaders.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszheaders.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpoptional.unwrap_or(core::mem::zeroed()) as _, dwoptionallength).ok() } } #[inline] -pub unsafe fn HttpWebSocketClose(hwebsocket: *const core::ffi::c_void, usstatus: u16, pvreason: Option<*const core::ffi::c_void>, dwreasonlength: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn HttpWebSocketClose(hwebsocket : *const core::ffi::c_void, usstatus : u16, pvreason : *const core::ffi::c_void, dwreasonlength : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn HttpWebSocketClose(hwebsocket: *const core::ffi::c_void, usstatus: u16, pvreason: Option<*const core::ffi::c_void>, dwreasonlength: u32) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn HttpWebSocketClose(hwebsocket : *const core::ffi::c_void, usstatus : u16, pvreason : *const core::ffi::c_void, dwreasonlength : u32) -> windows_core::BOOL); unsafe { HttpWebSocketClose(hwebsocket, usstatus, pvreason.unwrap_or(core::mem::zeroed()) as _, dwreasonlength) } } #[inline] @@ -918,44 +918,44 @@ pub unsafe fn HttpWebSocketCompleteUpgrade(hrequest: *const core::ffi::c_void, d unsafe { HttpWebSocketCompleteUpgrade(hrequest, dwcontext) } } #[inline] -pub unsafe fn HttpWebSocketQueryCloseStatus(hwebsocket: *const core::ffi::c_void, pusstatus: *mut u16, pvreason: Option<*mut core::ffi::c_void>, dwreasonlength: u32, pdwreasonlengthconsumed: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn HttpWebSocketQueryCloseStatus(hwebsocket : *const core::ffi::c_void, pusstatus : *mut u16, pvreason : *mut core::ffi::c_void, dwreasonlength : u32, pdwreasonlengthconsumed : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn HttpWebSocketQueryCloseStatus(hwebsocket: *const core::ffi::c_void, pusstatus: *mut u16, pvreason: Option<*mut core::ffi::c_void>, dwreasonlength: u32, pdwreasonlengthconsumed: *mut u32) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn HttpWebSocketQueryCloseStatus(hwebsocket : *const core::ffi::c_void, pusstatus : *mut u16, pvreason : *mut core::ffi::c_void, dwreasonlength : u32, pdwreasonlengthconsumed : *mut u32) -> windows_core::BOOL); unsafe { HttpWebSocketQueryCloseStatus(hwebsocket, pusstatus as _, pvreason.unwrap_or(core::mem::zeroed()) as _, dwreasonlength, pdwreasonlengthconsumed as _) } } #[inline] -pub unsafe fn HttpWebSocketReceive(hwebsocket: *const core::ffi::c_void, pvbuffer: *mut core::ffi::c_void, dwbufferlength: u32, pdwbytesread: *mut u32, pbuffertype: *mut HTTP_WEB_SOCKET_BUFFER_TYPE) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn HttpWebSocketReceive(hwebsocket : *const core::ffi::c_void, pvbuffer : *mut core::ffi::c_void, dwbufferlength : u32, pdwbytesread : *mut u32, pbuffertype : *mut HTTP_WEB_SOCKET_BUFFER_TYPE) -> super::super::Foundation:: BOOL); +pub unsafe fn HttpWebSocketReceive(hwebsocket: *const core::ffi::c_void, pvbuffer: *mut core::ffi::c_void, dwbufferlength: u32, pdwbytesread: *mut u32, pbuffertype: *mut HTTP_WEB_SOCKET_BUFFER_TYPE) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn HttpWebSocketReceive(hwebsocket : *const core::ffi::c_void, pvbuffer : *mut core::ffi::c_void, dwbufferlength : u32, pdwbytesread : *mut u32, pbuffertype : *mut HTTP_WEB_SOCKET_BUFFER_TYPE) -> windows_core::BOOL); unsafe { HttpWebSocketReceive(hwebsocket, pvbuffer as _, dwbufferlength, pdwbytesread as _, pbuffertype as _) } } #[inline] -pub unsafe fn HttpWebSocketSend(hwebsocket: *const core::ffi::c_void, buffertype: HTTP_WEB_SOCKET_BUFFER_TYPE, pvbuffer: Option<*const core::ffi::c_void>, dwbufferlength: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn HttpWebSocketSend(hwebsocket : *const core::ffi::c_void, buffertype : HTTP_WEB_SOCKET_BUFFER_TYPE, pvbuffer : *const core::ffi::c_void, dwbufferlength : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn HttpWebSocketSend(hwebsocket: *const core::ffi::c_void, buffertype: HTTP_WEB_SOCKET_BUFFER_TYPE, pvbuffer: Option<*const core::ffi::c_void>, dwbufferlength: u32) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn HttpWebSocketSend(hwebsocket : *const core::ffi::c_void, buffertype : HTTP_WEB_SOCKET_BUFFER_TYPE, pvbuffer : *const core::ffi::c_void, dwbufferlength : u32) -> windows_core::BOOL); unsafe { HttpWebSocketSend(hwebsocket, buffertype, pvbuffer.unwrap_or(core::mem::zeroed()) as _, dwbufferlength) } } #[inline] -pub unsafe fn HttpWebSocketShutdown(hwebsocket: *const core::ffi::c_void, usstatus: u16, pvreason: Option<*const core::ffi::c_void>, dwreasonlength: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn HttpWebSocketShutdown(hwebsocket : *const core::ffi::c_void, usstatus : u16, pvreason : *const core::ffi::c_void, dwreasonlength : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn HttpWebSocketShutdown(hwebsocket: *const core::ffi::c_void, usstatus: u16, pvreason: Option<*const core::ffi::c_void>, dwreasonlength: u32) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn HttpWebSocketShutdown(hwebsocket : *const core::ffi::c_void, usstatus : u16, pvreason : *const core::ffi::c_void, dwreasonlength : u32) -> windows_core::BOOL); unsafe { HttpWebSocketShutdown(hwebsocket, usstatus, pvreason.unwrap_or(core::mem::zeroed()) as _, dwreasonlength) } } #[inline] -pub unsafe fn ImportCookieFileA(szfilename: P0) -> super::super::Foundation::BOOL +pub unsafe fn ImportCookieFileA(szfilename: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn ImportCookieFileA(szfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn ImportCookieFileA(szfilename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { ImportCookieFileA(szfilename.param().abi()) } } #[inline] -pub unsafe fn ImportCookieFileW(szfilename: P0) -> super::super::Foundation::BOOL +pub unsafe fn ImportCookieFileW(szfilename: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn ImportCookieFileW(szfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn ImportCookieFileW(szfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { ImportCookieFileW(szfilename.param().abi()) } } #[inline] -pub unsafe fn IncrementUrlCacheHeaderData(nidx: u32, lpdwdata: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn IncrementUrlCacheHeaderData(nidx : u32, lpdwdata : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn IncrementUrlCacheHeaderData(nidx: u32, lpdwdata: *mut u32) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn IncrementUrlCacheHeaderData(nidx : u32, lpdwdata : *mut u32) -> windows_core::BOOL); unsafe { IncrementUrlCacheHeaderData(nidx, lpdwdata as _) } } #[inline] @@ -968,14 +968,14 @@ where } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] -pub unsafe fn InternetAlgIdToStringA(ai: super::super::Security::Cryptography::ALG_ID, lpstr: windows_core::PSTR, lpdwstrlength: *mut u32, dwreserved: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn InternetAlgIdToStringA(ai : super::super::Security::Cryptography:: ALG_ID, lpstr : windows_core::PSTR, lpdwstrlength : *mut u32, dwreserved : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn InternetAlgIdToStringA(ai: super::super::Security::Cryptography::ALG_ID, lpstr: windows_core::PSTR, lpdwstrlength: *mut u32, dwreserved: Option) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn InternetAlgIdToStringA(ai : super::super::Security::Cryptography:: ALG_ID, lpstr : windows_core::PSTR, lpdwstrlength : *mut u32, dwreserved : u32) -> windows_core::BOOL); unsafe { InternetAlgIdToStringA(ai, core::mem::transmute(lpstr), lpdwstrlength as _, dwreserved.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] -pub unsafe fn InternetAlgIdToStringW(ai: super::super::Security::Cryptography::ALG_ID, lpstr: windows_core::PWSTR, lpdwstrlength: *mut u32, dwreserved: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn InternetAlgIdToStringW(ai : super::super::Security::Cryptography:: ALG_ID, lpstr : windows_core::PWSTR, lpdwstrlength : *mut u32, dwreserved : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn InternetAlgIdToStringW(ai: super::super::Security::Cryptography::ALG_ID, lpstr: windows_core::PWSTR, lpdwstrlength: *mut u32, dwreserved: Option) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn InternetAlgIdToStringW(ai : super::super::Security::Cryptography:: ALG_ID, lpstr : windows_core::PWSTR, lpdwstrlength : *mut u32, dwreserved : u32) -> windows_core::BOOL); unsafe { InternetAlgIdToStringW(ai, core::mem::transmute(lpstr), lpdwstrlength as _, dwreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -985,12 +985,12 @@ pub unsafe fn InternetAttemptConnect(dwreserved: u32) -> u32 { } #[inline] pub unsafe fn InternetAutodial(dwflags: INTERNET_AUTODIAL, hwndparent: Option) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetAutodial(dwflags : INTERNET_AUTODIAL, hwndparent : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetAutodial(dwflags : INTERNET_AUTODIAL, hwndparent : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { InternetAutodial(dwflags, hwndparent.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn InternetAutodialHangup(dwreserved: Option) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetAutodialHangup(dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetAutodialHangup(dwreserved : u32) -> windows_core::BOOL); unsafe { InternetAutodialHangup(dwreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -998,7 +998,7 @@ pub unsafe fn InternetCanonicalizeUrlA(lpszurl: P0, lpszbuffer: windows_core where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetCanonicalizeUrlA(lpszurl : windows_core::PCSTR, lpszbuffer : windows_core::PSTR, lpdwbufferlength : *mut u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetCanonicalizeUrlA(lpszurl : windows_core::PCSTR, lpszbuffer : windows_core::PSTR, lpdwbufferlength : *mut u32, dwflags : u32) -> windows_core::BOOL); unsafe { InternetCanonicalizeUrlA(lpszurl.param().abi(), core::mem::transmute(lpszbuffer), lpdwbufferlength as _, dwflags).ok() } } #[inline] @@ -1006,7 +1006,7 @@ pub unsafe fn InternetCanonicalizeUrlW(lpszurl: P0, lpszbuffer: windows_core where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetCanonicalizeUrlW(lpszurl : windows_core::PCWSTR, lpszbuffer : windows_core::PWSTR, lpdwbufferlength : *mut u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetCanonicalizeUrlW(lpszurl : windows_core::PCWSTR, lpszbuffer : windows_core::PWSTR, lpdwbufferlength : *mut u32, dwflags : u32) -> windows_core::BOOL); unsafe { InternetCanonicalizeUrlW(lpszurl.param().abi(), core::mem::transmute(lpszbuffer), lpdwbufferlength as _, dwflags).ok() } } #[inline] @@ -1014,7 +1014,7 @@ pub unsafe fn InternetCheckConnectionA(lpszurl: P0, dwflags: u32, dwreserved where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetCheckConnectionA(lpszurl : windows_core::PCSTR, dwflags : u32, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetCheckConnectionA(lpszurl : windows_core::PCSTR, dwflags : u32, dwreserved : u32) -> windows_core::BOOL); unsafe { InternetCheckConnectionA(lpszurl.param().abi(), dwflags, dwreserved).ok() } } #[inline] @@ -1022,17 +1022,17 @@ pub unsafe fn InternetCheckConnectionW(lpszurl: P0, dwflags: u32, dwreserved where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetCheckConnectionW(lpszurl : windows_core::PCWSTR, dwflags : u32, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetCheckConnectionW(lpszurl : windows_core::PCWSTR, dwflags : u32, dwreserved : u32) -> windows_core::BOOL); unsafe { InternetCheckConnectionW(lpszurl.param().abi(), dwflags, dwreserved).ok() } } #[inline] -pub unsafe fn InternetClearAllPerSiteCookieDecisions() -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn InternetClearAllPerSiteCookieDecisions() -> super::super::Foundation:: BOOL); +pub unsafe fn InternetClearAllPerSiteCookieDecisions() -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn InternetClearAllPerSiteCookieDecisions() -> windows_core::BOOL); unsafe { InternetClearAllPerSiteCookieDecisions() } } #[inline] pub unsafe fn InternetCloseHandle(hinternet: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetCloseHandle(hinternet : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetCloseHandle(hinternet : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { InternetCloseHandle(hinternet).ok() } } #[inline] @@ -1041,7 +1041,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetCombineUrlA(lpszbaseurl : windows_core::PCSTR, lpszrelativeurl : windows_core::PCSTR, lpszbuffer : windows_core::PSTR, lpdwbufferlength : *mut u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetCombineUrlA(lpszbaseurl : windows_core::PCSTR, lpszrelativeurl : windows_core::PCSTR, lpszbuffer : windows_core::PSTR, lpdwbufferlength : *mut u32, dwflags : u32) -> windows_core::BOOL); unsafe { InternetCombineUrlA(lpszbaseurl.param().abi(), lpszrelativeurl.param().abi(), core::mem::transmute(lpszbuffer), lpdwbufferlength as _, dwflags).ok() } } #[inline] @@ -1050,7 +1050,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetCombineUrlW(lpszbaseurl : windows_core::PCWSTR, lpszrelativeurl : windows_core::PCWSTR, lpszbuffer : windows_core::PWSTR, lpdwbufferlength : *mut u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetCombineUrlW(lpszbaseurl : windows_core::PCWSTR, lpszrelativeurl : windows_core::PCWSTR, lpszbuffer : windows_core::PWSTR, lpdwbufferlength : *mut u32, dwflags : u32) -> windows_core::BOOL); unsafe { InternetCombineUrlW(lpszbaseurl.param().abi(), lpszrelativeurl.param().abi(), core::mem::transmute(lpszbuffer), lpdwbufferlength as _, dwflags).ok() } } #[inline] @@ -1059,7 +1059,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetConfirmZoneCrossing(hwnd : super::super::Foundation:: HWND, szurlprev : windows_core::PCSTR, szurlnew : windows_core::PCSTR, bpost : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("wininet.dll" "system" fn InternetConfirmZoneCrossing(hwnd : super::super::Foundation:: HWND, szurlprev : windows_core::PCSTR, szurlnew : windows_core::PCSTR, bpost : windows_core::BOOL) -> u32); unsafe { InternetConfirmZoneCrossing(hwnd, szurlprev.param().abi(), szurlnew.param().abi(), bpost.into()) } } #[inline] @@ -1068,7 +1068,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetConfirmZoneCrossingA(hwnd : super::super::Foundation:: HWND, szurlprev : windows_core::PCSTR, szurlnew : windows_core::PCSTR, bpost : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("wininet.dll" "system" fn InternetConfirmZoneCrossingA(hwnd : super::super::Foundation:: HWND, szurlprev : windows_core::PCSTR, szurlnew : windows_core::PCSTR, bpost : windows_core::BOOL) -> u32); unsafe { InternetConfirmZoneCrossingA(hwnd, szurlprev.param().abi(), szurlnew.param().abi(), bpost.into()) } } #[inline] @@ -1077,7 +1077,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetConfirmZoneCrossingW(hwnd : super::super::Foundation:: HWND, szurlprev : windows_core::PCWSTR, szurlnew : windows_core::PCWSTR, bpost : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("wininet.dll" "system" fn InternetConfirmZoneCrossingW(hwnd : super::super::Foundation:: HWND, szurlprev : windows_core::PCWSTR, szurlnew : windows_core::PCWSTR, bpost : windows_core::BOOL) -> u32); unsafe { InternetConfirmZoneCrossingW(hwnd, szurlprev.param().abi(), szurlnew.param().abi(), bpost.into()) } } #[inline] @@ -1105,29 +1105,29 @@ pub unsafe fn InternetConvertUrlFromWireToWideChar(pcszurl: &[u8], pcwszbase where P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetConvertUrlFromWireToWideChar(pcszurl : windows_core::PCSTR, cchurl : u32, pcwszbaseurl : windows_core::PCWSTR, dwcodepagehost : u32, dwcodepagepath : u32, fencodepathextra : super::super::Foundation:: BOOL, dwcodepageextra : u32, ppwszconvertedurl : *mut windows_core::PWSTR) -> u32); + windows_targets::link!("wininet.dll" "system" fn InternetConvertUrlFromWireToWideChar(pcszurl : windows_core::PCSTR, cchurl : u32, pcwszbaseurl : windows_core::PCWSTR, dwcodepagehost : u32, dwcodepagepath : u32, fencodepathextra : windows_core::BOOL, dwcodepageextra : u32, ppwszconvertedurl : *mut windows_core::PWSTR) -> u32); unsafe { InternetConvertUrlFromWireToWideChar(core::mem::transmute(pcszurl.as_ptr()), pcszurl.len().try_into().unwrap(), pcwszbaseurl.param().abi(), dwcodepagehost, dwcodepagepath, fencodepathextra.into(), dwcodepageextra, ppwszconvertedurl as _) } } #[cfg(feature = "Win32_Networking_WinHttp")] #[inline] pub unsafe fn InternetCrackUrlA(lpszurl: &[u8], dwflags: super::WinHttp::WIN_HTTP_CREATE_URL_FLAGS, lpurlcomponents: *mut URL_COMPONENTSA) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetCrackUrlA(lpszurl : windows_core::PCSTR, dwurllength : u32, dwflags : super::WinHttp:: WIN_HTTP_CREATE_URL_FLAGS, lpurlcomponents : *mut URL_COMPONENTSA) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetCrackUrlA(lpszurl : windows_core::PCSTR, dwurllength : u32, dwflags : super::WinHttp:: WIN_HTTP_CREATE_URL_FLAGS, lpurlcomponents : *mut URL_COMPONENTSA) -> windows_core::BOOL); unsafe { InternetCrackUrlA(core::mem::transmute(lpszurl.as_ptr()), lpszurl.len().try_into().unwrap(), dwflags, lpurlcomponents as _).ok() } } #[cfg(feature = "Win32_Networking_WinHttp")] #[inline] pub unsafe fn InternetCrackUrlW(lpszurl: &[u16], dwflags: super::WinHttp::WIN_HTTP_CREATE_URL_FLAGS, lpurlcomponents: *mut URL_COMPONENTSW) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetCrackUrlW(lpszurl : windows_core::PCWSTR, dwurllength : u32, dwflags : super::WinHttp:: WIN_HTTP_CREATE_URL_FLAGS, lpurlcomponents : *mut URL_COMPONENTSW) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetCrackUrlW(lpszurl : windows_core::PCWSTR, dwurllength : u32, dwflags : super::WinHttp:: WIN_HTTP_CREATE_URL_FLAGS, lpurlcomponents : *mut URL_COMPONENTSW) -> windows_core::BOOL); unsafe { InternetCrackUrlW(core::mem::transmute(lpszurl.as_ptr()), lpszurl.len().try_into().unwrap(), dwflags, lpurlcomponents as _).ok() } } #[inline] pub unsafe fn InternetCreateUrlA(lpurlcomponents: *const URL_COMPONENTSA, dwflags: u32, lpszurl: Option, lpdwurllength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetCreateUrlA(lpurlcomponents : *const URL_COMPONENTSA, dwflags : u32, lpszurl : windows_core::PSTR, lpdwurllength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetCreateUrlA(lpurlcomponents : *const URL_COMPONENTSA, dwflags : u32, lpszurl : windows_core::PSTR, lpdwurllength : *mut u32) -> windows_core::BOOL); unsafe { InternetCreateUrlA(lpurlcomponents, dwflags, lpszurl.unwrap_or(core::mem::zeroed()) as _, lpdwurllength as _).ok() } } #[inline] pub unsafe fn InternetCreateUrlW(lpurlcomponents: *const URL_COMPONENTSW, dwflags: u32, lpszurl: Option, lpdwurllength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetCreateUrlW(lpurlcomponents : *const URL_COMPONENTSW, dwflags : u32, lpszurl : windows_core::PWSTR, lpdwurllength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetCreateUrlW(lpurlcomponents : *const URL_COMPONENTSW, dwflags : u32, lpszurl : windows_core::PWSTR, lpdwurllength : *mut u32) -> windows_core::BOOL); unsafe { InternetCreateUrlW(lpurlcomponents, dwflags, lpszurl.unwrap_or(core::mem::zeroed()) as _, lpdwurllength as _).ok() } } #[inline] @@ -1155,13 +1155,13 @@ where unsafe { InternetDialW(hwndparent, lpszconnectoid.param().abi(), dwflags, lpdwconnection as _, dwreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn InternetEnumPerSiteCookieDecisionA(pszsitename: windows_core::PSTR, pcsitenamesize: *mut u32, pdwdecision: *mut u32, dwindex: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn InternetEnumPerSiteCookieDecisionA(pszsitename : windows_core::PSTR, pcsitenamesize : *mut u32, pdwdecision : *mut u32, dwindex : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn InternetEnumPerSiteCookieDecisionA(pszsitename: windows_core::PSTR, pcsitenamesize: *mut u32, pdwdecision: *mut u32, dwindex: u32) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn InternetEnumPerSiteCookieDecisionA(pszsitename : windows_core::PSTR, pcsitenamesize : *mut u32, pdwdecision : *mut u32, dwindex : u32) -> windows_core::BOOL); unsafe { InternetEnumPerSiteCookieDecisionA(core::mem::transmute(pszsitename), pcsitenamesize as _, pdwdecision as _, dwindex) } } #[inline] -pub unsafe fn InternetEnumPerSiteCookieDecisionW(pszsitename: windows_core::PWSTR, pcsitenamesize: *mut u32, pdwdecision: *mut u32, dwindex: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn InternetEnumPerSiteCookieDecisionW(pszsitename : windows_core::PWSTR, pcsitenamesize : *mut u32, pdwdecision : *mut u32, dwindex : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn InternetEnumPerSiteCookieDecisionW(pszsitename: windows_core::PWSTR, pcsitenamesize: *mut u32, pdwdecision: *mut u32, dwindex: u32) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn InternetEnumPerSiteCookieDecisionW(pszsitename : windows_core::PWSTR, pcsitenamesize : *mut u32, pdwdecision : *mut u32, dwindex : u32) -> windows_core::BOOL); unsafe { InternetEnumPerSiteCookieDecisionW(core::mem::transmute(pszsitename), pcsitenamesize as _, pdwdecision as _, dwindex) } } #[inline] @@ -1171,17 +1171,17 @@ pub unsafe fn InternetErrorDlg(hwnd: super::super::Foundation::HWND, hrequest: O } #[inline] pub unsafe fn InternetFindNextFileA(hfind: *const core::ffi::c_void, lpvfinddata: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetFindNextFileA(hfind : *const core::ffi::c_void, lpvfinddata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetFindNextFileA(hfind : *const core::ffi::c_void, lpvfinddata : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { InternetFindNextFileA(hfind, lpvfinddata as _).ok() } } #[inline] pub unsafe fn InternetFindNextFileW(hfind: *const core::ffi::c_void, lpvfinddata: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetFindNextFileW(hfind : *const core::ffi::c_void, lpvfinddata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetFindNextFileW(hfind : *const core::ffi::c_void, lpvfinddata : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { InternetFindNextFileW(hfind, lpvfinddata as _).ok() } } #[inline] -pub unsafe fn InternetFortezzaCommand(dwcommand: u32, hwnd: super::super::Foundation::HWND, dwreserved: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn InternetFortezzaCommand(dwcommand : u32, hwnd : super::super::Foundation:: HWND, dwreserved : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn InternetFortezzaCommand(dwcommand: u32, hwnd: super::super::Foundation::HWND, dwreserved: Option) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn InternetFortezzaCommand(dwcommand : u32, hwnd : super::super::Foundation:: HWND, dwreserved : usize) -> windows_core::BOOL); unsafe { InternetFortezzaCommand(dwcommand, hwnd, dwreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1196,22 +1196,22 @@ pub unsafe fn InternetFreeProxyInfoList(pproxyinfolist: *mut WININET_PROXY_INFO_ } #[inline] pub unsafe fn InternetGetConnectedState(lpdwflags: *mut INTERNET_CONNECTION, dwreserved: Option) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetGetConnectedState(lpdwflags : *mut INTERNET_CONNECTION, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetGetConnectedState(lpdwflags : *mut INTERNET_CONNECTION, dwreserved : u32) -> windows_core::BOOL); unsafe { InternetGetConnectedState(lpdwflags as _, dwreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn InternetGetConnectedStateEx(lpdwflags: *mut INTERNET_CONNECTION, lpszconnectionname: Option<&mut [u8]>, dwreserved: u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetGetConnectedStateEx(lpdwflags : *mut INTERNET_CONNECTION, lpszconnectionname : windows_core::PSTR, dwnamelen : u32, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetGetConnectedStateEx(lpdwflags : *mut INTERNET_CONNECTION, lpszconnectionname : windows_core::PSTR, dwnamelen : u32, dwreserved : u32) -> windows_core::BOOL); unsafe { InternetGetConnectedStateEx(lpdwflags as _, core::mem::transmute(lpszconnectionname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszconnectionname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwreserved).ok() } } #[inline] pub unsafe fn InternetGetConnectedStateExA(lpdwflags: Option<*mut INTERNET_CONNECTION>, lpszconnectionname: Option<&mut [u8]>, dwreserved: Option) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetGetConnectedStateExA(lpdwflags : *mut INTERNET_CONNECTION, lpszconnectionname : windows_core::PSTR, cchnamelen : u32, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetGetConnectedStateExA(lpdwflags : *mut INTERNET_CONNECTION, lpszconnectionname : windows_core::PSTR, cchnamelen : u32, dwreserved : u32) -> windows_core::BOOL); unsafe { InternetGetConnectedStateExA(lpdwflags.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(lpszconnectionname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszconnectionname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn InternetGetConnectedStateExW(lpdwflags: Option<*mut INTERNET_CONNECTION>, lpszconnectionname: Option<&mut [u16]>, dwreserved: Option) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetGetConnectedStateExW(lpdwflags : *mut INTERNET_CONNECTION, lpszconnectionname : windows_core::PWSTR, cchnamelen : u32, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetGetConnectedStateExW(lpdwflags : *mut INTERNET_CONNECTION, lpszconnectionname : windows_core::PWSTR, cchnamelen : u32, dwreserved : u32) -> windows_core::BOOL); unsafe { InternetGetConnectedStateExW(lpdwflags.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(lpszconnectionname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszconnectionname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1220,7 +1220,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetGetCookieA(lpszurl : windows_core::PCSTR, lpszcookiename : windows_core::PCSTR, lpszcookiedata : windows_core::PSTR, lpdwsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetGetCookieA(lpszurl : windows_core::PCSTR, lpszcookiename : windows_core::PCSTR, lpszcookiedata : windows_core::PSTR, lpdwsize : *mut u32) -> windows_core::BOOL); unsafe { InternetGetCookieA(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.unwrap_or(core::mem::zeroed()) as _, lpdwsize as _).ok() } } #[inline] @@ -1239,7 +1239,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetGetCookieExA(lpszurl : windows_core::PCSTR, lpszcookiename : windows_core::PCSTR, lpszcookiedata : windows_core::PCSTR, lpdwsize : *mut u32, dwflags : INTERNET_COOKIE_FLAGS, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetGetCookieExA(lpszurl : windows_core::PCSTR, lpszcookiename : windows_core::PCSTR, lpszcookiedata : windows_core::PCSTR, lpdwsize : *mut u32, dwflags : INTERNET_COOKIE_FLAGS, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { InternetGetCookieExA(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi(), lpdwsize as _, dwflags, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1249,7 +1249,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetGetCookieExW(lpszurl : windows_core::PCWSTR, lpszcookiename : windows_core::PCWSTR, lpszcookiedata : windows_core::PCWSTR, lpdwsize : *mut u32, dwflags : INTERNET_COOKIE_FLAGS, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetGetCookieExW(lpszurl : windows_core::PCWSTR, lpszcookiename : windows_core::PCWSTR, lpszcookiedata : windows_core::PCWSTR, lpdwsize : *mut u32, dwflags : INTERNET_COOKIE_FLAGS, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { InternetGetCookieExW(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi(), lpdwsize as _, dwflags, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1258,33 +1258,33 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetGetCookieW(lpszurl : windows_core::PCWSTR, lpszcookiename : windows_core::PCWSTR, lpszcookiedata : windows_core::PWSTR, lpdwsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetGetCookieW(lpszurl : windows_core::PCWSTR, lpszcookiename : windows_core::PCWSTR, lpszcookiedata : windows_core::PWSTR, lpdwsize : *mut u32) -> windows_core::BOOL); unsafe { InternetGetCookieW(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.unwrap_or(core::mem::zeroed()) as _, lpdwsize as _).ok() } } #[inline] pub unsafe fn InternetGetLastResponseInfoA(lpdwerror: *mut u32, lpszbuffer: Option, lpdwbufferlength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetGetLastResponseInfoA(lpdwerror : *mut u32, lpszbuffer : windows_core::PSTR, lpdwbufferlength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetGetLastResponseInfoA(lpdwerror : *mut u32, lpszbuffer : windows_core::PSTR, lpdwbufferlength : *mut u32) -> windows_core::BOOL); unsafe { InternetGetLastResponseInfoA(lpdwerror as _, lpszbuffer.unwrap_or(core::mem::zeroed()) as _, lpdwbufferlength as _).ok() } } #[inline] pub unsafe fn InternetGetLastResponseInfoW(lpdwerror: *mut u32, lpszbuffer: Option, lpdwbufferlength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetGetLastResponseInfoW(lpdwerror : *mut u32, lpszbuffer : windows_core::PWSTR, lpdwbufferlength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetGetLastResponseInfoW(lpdwerror : *mut u32, lpszbuffer : windows_core::PWSTR, lpdwbufferlength : *mut u32) -> windows_core::BOOL); unsafe { InternetGetLastResponseInfoW(lpdwerror as _, lpszbuffer.unwrap_or(core::mem::zeroed()) as _, lpdwbufferlength as _).ok() } } #[inline] -pub unsafe fn InternetGetPerSiteCookieDecisionA(pchhostname: P0, presult: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn InternetGetPerSiteCookieDecisionA(pchhostname: P0, presult: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetGetPerSiteCookieDecisionA(pchhostname : windows_core::PCSTR, presult : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetGetPerSiteCookieDecisionA(pchhostname : windows_core::PCSTR, presult : *mut u32) -> windows_core::BOOL); unsafe { InternetGetPerSiteCookieDecisionA(pchhostname.param().abi(), presult as _) } } #[inline] -pub unsafe fn InternetGetPerSiteCookieDecisionW(pchhostname: P0, presult: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn InternetGetPerSiteCookieDecisionW(pchhostname: P0, presult: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetGetPerSiteCookieDecisionW(pchhostname : windows_core::PCWSTR, presult : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetGetPerSiteCookieDecisionW(pchhostname : windows_core::PCWSTR, presult : *mut u32) -> windows_core::BOOL); unsafe { InternetGetPerSiteCookieDecisionW(pchhostname.param().abi(), presult as _) } } #[inline] @@ -1297,29 +1297,29 @@ where } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] -pub unsafe fn InternetGetSecurityInfoByURL(lpszurl: P0, ppcertchain: *mut *mut super::super::Security::Cryptography::CERT_CHAIN_CONTEXT, pdwsecureflags: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn InternetGetSecurityInfoByURL(lpszurl: P0, ppcertchain: *mut *mut super::super::Security::Cryptography::CERT_CHAIN_CONTEXT, pdwsecureflags: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetGetSecurityInfoByURL(lpszurl : windows_core::PCSTR, ppcertchain : *mut *mut super::super::Security::Cryptography:: CERT_CHAIN_CONTEXT, pdwsecureflags : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetGetSecurityInfoByURL(lpszurl : windows_core::PCSTR, ppcertchain : *mut *mut super::super::Security::Cryptography:: CERT_CHAIN_CONTEXT, pdwsecureflags : *mut u32) -> windows_core::BOOL); unsafe { InternetGetSecurityInfoByURL(lpszurl.param().abi(), ppcertchain as _, pdwsecureflags as _) } } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] -pub unsafe fn InternetGetSecurityInfoByURLA(lpszurl: P0, ppcertchain: *mut *mut super::super::Security::Cryptography::CERT_CHAIN_CONTEXT, pdwsecureflags: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn InternetGetSecurityInfoByURLA(lpszurl: P0, ppcertchain: *mut *mut super::super::Security::Cryptography::CERT_CHAIN_CONTEXT, pdwsecureflags: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetGetSecurityInfoByURLA(lpszurl : windows_core::PCSTR, ppcertchain : *mut *mut super::super::Security::Cryptography:: CERT_CHAIN_CONTEXT, pdwsecureflags : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetGetSecurityInfoByURLA(lpszurl : windows_core::PCSTR, ppcertchain : *mut *mut super::super::Security::Cryptography:: CERT_CHAIN_CONTEXT, pdwsecureflags : *mut u32) -> windows_core::BOOL); unsafe { InternetGetSecurityInfoByURLA(lpszurl.param().abi(), ppcertchain as _, pdwsecureflags as _) } } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] -pub unsafe fn InternetGetSecurityInfoByURLW(lpszurl: P0, ppcertchain: *mut *mut super::super::Security::Cryptography::CERT_CHAIN_CONTEXT, pdwsecureflags: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn InternetGetSecurityInfoByURLW(lpszurl: P0, ppcertchain: *mut *mut super::super::Security::Cryptography::CERT_CHAIN_CONTEXT, pdwsecureflags: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetGetSecurityInfoByURLW(lpszurl : windows_core::PCWSTR, ppcertchain : *mut *mut super::super::Security::Cryptography:: CERT_CHAIN_CONTEXT, pdwsecureflags : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetGetSecurityInfoByURLW(lpszurl : windows_core::PCWSTR, ppcertchain : *mut *mut super::super::Security::Cryptography:: CERT_CHAIN_CONTEXT, pdwsecureflags : *mut u32) -> windows_core::BOOL); unsafe { InternetGetSecurityInfoByURLW(lpszurl.param().abi(), ppcertchain as _, pdwsecureflags as _) } } #[inline] @@ -1327,7 +1327,7 @@ pub unsafe fn InternetGoOnline(lpszurl: P0, hwndparent: super::super::Founda where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetGoOnline(lpszurl : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetGoOnline(lpszurl : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND, dwflags : u32) -> windows_core::BOOL); unsafe { InternetGoOnline(lpszurl.param().abi(), hwndparent, dwflags).ok() } } #[inline] @@ -1335,7 +1335,7 @@ pub unsafe fn InternetGoOnlineA(lpszurl: P0, hwndparent: super::super::Found where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetGoOnlineA(lpszurl : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetGoOnlineA(lpszurl : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND, dwflags : u32) -> windows_core::BOOL); unsafe { InternetGoOnlineA(lpszurl.param().abi(), hwndparent, dwflags).ok() } } #[inline] @@ -1343,7 +1343,7 @@ pub unsafe fn InternetGoOnlineW(lpszurl: P0, hwndparent: super::super::Found where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetGoOnlineW(lpszurl : windows_core::PCWSTR, hwndparent : super::super::Foundation:: HWND, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetGoOnlineW(lpszurl : windows_core::PCWSTR, hwndparent : super::super::Foundation:: HWND, dwflags : u32) -> windows_core::BOOL); unsafe { InternetGoOnlineW(lpszurl.param().abi(), hwndparent, dwflags).ok() } } #[inline] @@ -1353,12 +1353,12 @@ pub unsafe fn InternetHangUp(dwconnection: usize, dwreserved: Option) -> u3 } #[inline] pub unsafe fn InternetInitializeAutoProxyDll(dwreserved: u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetInitializeAutoProxyDll(dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetInitializeAutoProxyDll(dwreserved : u32) -> windows_core::BOOL); unsafe { InternetInitializeAutoProxyDll(dwreserved).ok() } } #[inline] pub unsafe fn InternetLockRequestFile(hinternet: *const core::ffi::c_void, lphlockrequestinfo: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetLockRequestFile(hinternet : *const core::ffi::c_void, lphlockrequestinfo : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetLockRequestFile(hinternet : *const core::ffi::c_void, lphlockrequestinfo : *mut super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { InternetLockRequestFile(hinternet, lphlockrequestinfo as _).ok() } } #[inline] @@ -1399,47 +1399,47 @@ where } #[inline] pub unsafe fn InternetQueryDataAvailable(hfile: *const core::ffi::c_void, lpdwnumberofbytesavailable: Option<*mut u32>, dwflags: u32, dwcontext: Option) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetQueryDataAvailable(hfile : *const core::ffi::c_void, lpdwnumberofbytesavailable : *mut u32, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetQueryDataAvailable(hfile : *const core::ffi::c_void, lpdwnumberofbytesavailable : *mut u32, dwflags : u32, dwcontext : usize) -> windows_core::BOOL); unsafe { InternetQueryDataAvailable(hfile, lpdwnumberofbytesavailable.unwrap_or(core::mem::zeroed()) as _, dwflags, dwcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn InternetQueryFortezzaStatus(pdwstatus: *mut u32, dwreserved: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn InternetQueryFortezzaStatus(pdwstatus : *mut u32, dwreserved : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn InternetQueryFortezzaStatus(pdwstatus: *mut u32, dwreserved: Option) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn InternetQueryFortezzaStatus(pdwstatus : *mut u32, dwreserved : usize) -> windows_core::BOOL); unsafe { InternetQueryFortezzaStatus(pdwstatus as _, dwreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] pub unsafe fn InternetQueryOptionA(hinternet: Option<*const core::ffi::c_void>, dwoption: u32, lpbuffer: Option<*mut core::ffi::c_void>, lpdwbufferlength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetQueryOptionA(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetQueryOptionA(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32) -> windows_core::BOOL); unsafe { InternetQueryOptionA(hinternet.unwrap_or(core::mem::zeroed()) as _, dwoption, lpbuffer.unwrap_or(core::mem::zeroed()) as _, lpdwbufferlength as _).ok() } } #[inline] pub unsafe fn InternetQueryOptionW(hinternet: Option<*const core::ffi::c_void>, dwoption: u32, lpbuffer: Option<*mut core::ffi::c_void>, lpdwbufferlength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetQueryOptionW(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetQueryOptionW(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *mut core::ffi::c_void, lpdwbufferlength : *mut u32) -> windows_core::BOOL); unsafe { InternetQueryOptionW(hinternet.unwrap_or(core::mem::zeroed()) as _, dwoption, lpbuffer.unwrap_or(core::mem::zeroed()) as _, lpdwbufferlength as _).ok() } } #[inline] pub unsafe fn InternetReadFile(hfile: *const core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, dwnumberofbytestoread: u32, lpdwnumberofbytesread: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetReadFile(hfile : *const core::ffi::c_void, lpbuffer : *mut core::ffi::c_void, dwnumberofbytestoread : u32, lpdwnumberofbytesread : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetReadFile(hfile : *const core::ffi::c_void, lpbuffer : *mut core::ffi::c_void, dwnumberofbytestoread : u32, lpdwnumberofbytesread : *mut u32) -> windows_core::BOOL); unsafe { InternetReadFile(hfile, lpbuffer as _, dwnumberofbytestoread, lpdwnumberofbytesread as _).ok() } } #[inline] pub unsafe fn InternetReadFileExA(hfile: *const core::ffi::c_void, lpbuffersout: *mut INTERNET_BUFFERSA, dwflags: u32, dwcontext: Option) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetReadFileExA(hfile : *const core::ffi::c_void, lpbuffersout : *mut INTERNET_BUFFERSA, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetReadFileExA(hfile : *const core::ffi::c_void, lpbuffersout : *mut INTERNET_BUFFERSA, dwflags : u32, dwcontext : usize) -> windows_core::BOOL); unsafe { InternetReadFileExA(hfile, lpbuffersout as _, dwflags, dwcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn InternetReadFileExW(hfile: *const core::ffi::c_void, lpbuffersout: *mut INTERNET_BUFFERSW, dwflags: u32, dwcontext: Option) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetReadFileExW(hfile : *const core::ffi::c_void, lpbuffersout : *mut INTERNET_BUFFERSW, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetReadFileExW(hfile : *const core::ffi::c_void, lpbuffersout : *mut INTERNET_BUFFERSW, dwflags : u32, dwcontext : usize) -> windows_core::BOOL); unsafe { InternetReadFileExW(hfile, lpbuffersout as _, dwflags, dwcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn InternetSecurityProtocolToStringA(dwprotocol: u32, lpstr: Option, lpdwstrlength: *mut u32, dwreserved: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn InternetSecurityProtocolToStringA(dwprotocol : u32, lpstr : windows_core::PSTR, lpdwstrlength : *mut u32, dwreserved : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn InternetSecurityProtocolToStringA(dwprotocol: u32, lpstr: Option, lpdwstrlength: *mut u32, dwreserved: Option) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn InternetSecurityProtocolToStringA(dwprotocol : u32, lpstr : windows_core::PSTR, lpdwstrlength : *mut u32, dwreserved : u32) -> windows_core::BOOL); unsafe { InternetSecurityProtocolToStringA(dwprotocol, lpstr.unwrap_or(core::mem::zeroed()) as _, lpdwstrlength as _, dwreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn InternetSecurityProtocolToStringW(dwprotocol: u32, lpstr: Option, lpdwstrlength: *mut u32, dwreserved: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn InternetSecurityProtocolToStringW(dwprotocol : u32, lpstr : windows_core::PWSTR, lpdwstrlength : *mut u32, dwreserved : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn InternetSecurityProtocolToStringW(dwprotocol: u32, lpstr: Option, lpdwstrlength: *mut u32, dwreserved: Option) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn InternetSecurityProtocolToStringW(dwprotocol : u32, lpstr : windows_core::PWSTR, lpdwstrlength : *mut u32, dwreserved : u32) -> windows_core::BOOL); unsafe { InternetSecurityProtocolToStringW(dwprotocol, lpstr.unwrap_or(core::mem::zeroed()) as _, lpdwstrlength as _, dwreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1449,7 +1449,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetSetCookieA(lpszurl : windows_core::PCSTR, lpszcookiename : windows_core::PCSTR, lpszcookiedata : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetSetCookieA(lpszurl : windows_core::PCSTR, lpszcookiename : windows_core::PCSTR, lpszcookiedata : windows_core::PCSTR) -> windows_core::BOOL); unsafe { InternetSetCookieA(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi()).ok() } } #[inline] @@ -1488,31 +1488,31 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetSetCookieW(lpszurl : windows_core::PCWSTR, lpszcookiename : windows_core::PCWSTR, lpszcookiedata : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetSetCookieW(lpszurl : windows_core::PCWSTR, lpszcookiename : windows_core::PCWSTR, lpszcookiedata : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { InternetSetCookieW(lpszurl.param().abi(), lpszcookiename.param().abi(), lpszcookiedata.param().abi()).ok() } } #[inline] -pub unsafe fn InternetSetDialState(lpszconnectoid: P0, dwstate: u32, dwreserved: u32) -> super::super::Foundation::BOOL +pub unsafe fn InternetSetDialState(lpszconnectoid: P0, dwstate: u32, dwreserved: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetSetDialState(lpszconnectoid : windows_core::PCSTR, dwstate : u32, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetSetDialState(lpszconnectoid : windows_core::PCSTR, dwstate : u32, dwreserved : u32) -> windows_core::BOOL); unsafe { InternetSetDialState(lpszconnectoid.param().abi(), dwstate, dwreserved) } } #[inline] -pub unsafe fn InternetSetDialStateA(lpszconnectoid: P0, dwstate: u32, dwreserved: Option) -> super::super::Foundation::BOOL +pub unsafe fn InternetSetDialStateA(lpszconnectoid: P0, dwstate: u32, dwreserved: Option) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetSetDialStateA(lpszconnectoid : windows_core::PCSTR, dwstate : u32, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetSetDialStateA(lpszconnectoid : windows_core::PCSTR, dwstate : u32, dwreserved : u32) -> windows_core::BOOL); unsafe { InternetSetDialStateA(lpszconnectoid.param().abi(), dwstate, dwreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn InternetSetDialStateW(lpszconnectoid: P0, dwstate: u32, dwreserved: Option) -> super::super::Foundation::BOOL +pub unsafe fn InternetSetDialStateW(lpszconnectoid: P0, dwstate: u32, dwreserved: Option) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetSetDialStateW(lpszconnectoid : windows_core::PCWSTR, dwstate : u32, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetSetDialStateW(lpszconnectoid : windows_core::PCWSTR, dwstate : u32, dwreserved : u32) -> windows_core::BOOL); unsafe { InternetSetDialStateW(lpszconnectoid.param().abi(), dwstate, dwreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1522,38 +1522,38 @@ pub unsafe fn InternetSetFilePointer(hfile: *const core::ffi::c_void, ldistancet } #[inline] pub unsafe fn InternetSetOptionA(hinternet: Option<*const core::ffi::c_void>, dwoption: u32, lpbuffer: Option<*const core::ffi::c_void>, dwbufferlength: u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetSetOptionA(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *const core::ffi::c_void, dwbufferlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetSetOptionA(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *const core::ffi::c_void, dwbufferlength : u32) -> windows_core::BOOL); unsafe { InternetSetOptionA(hinternet.unwrap_or(core::mem::zeroed()) as _, dwoption, lpbuffer.unwrap_or(core::mem::zeroed()) as _, dwbufferlength).ok() } } #[inline] -pub unsafe fn InternetSetOptionExA(hinternet: Option<*const core::ffi::c_void>, dwoption: u32, lpbuffer: Option<*const core::ffi::c_void>, dwbufferlength: u32, dwflags: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn InternetSetOptionExA(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *const core::ffi::c_void, dwbufferlength : u32, dwflags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn InternetSetOptionExA(hinternet: Option<*const core::ffi::c_void>, dwoption: u32, lpbuffer: Option<*const core::ffi::c_void>, dwbufferlength: u32, dwflags: u32) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn InternetSetOptionExA(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *const core::ffi::c_void, dwbufferlength : u32, dwflags : u32) -> windows_core::BOOL); unsafe { InternetSetOptionExA(hinternet.unwrap_or(core::mem::zeroed()) as _, dwoption, lpbuffer.unwrap_or(core::mem::zeroed()) as _, dwbufferlength, dwflags) } } #[inline] -pub unsafe fn InternetSetOptionExW(hinternet: Option<*const core::ffi::c_void>, dwoption: u32, lpbuffer: Option<*const core::ffi::c_void>, dwbufferlength: u32, dwflags: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn InternetSetOptionExW(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *const core::ffi::c_void, dwbufferlength : u32, dwflags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn InternetSetOptionExW(hinternet: Option<*const core::ffi::c_void>, dwoption: u32, lpbuffer: Option<*const core::ffi::c_void>, dwbufferlength: u32, dwflags: u32) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn InternetSetOptionExW(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *const core::ffi::c_void, dwbufferlength : u32, dwflags : u32) -> windows_core::BOOL); unsafe { InternetSetOptionExW(hinternet.unwrap_or(core::mem::zeroed()) as _, dwoption, lpbuffer.unwrap_or(core::mem::zeroed()) as _, dwbufferlength, dwflags) } } #[inline] pub unsafe fn InternetSetOptionW(hinternet: Option<*const core::ffi::c_void>, dwoption: u32, lpbuffer: Option<*const core::ffi::c_void>, dwbufferlength: u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetSetOptionW(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *const core::ffi::c_void, dwbufferlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetSetOptionW(hinternet : *const core::ffi::c_void, dwoption : u32, lpbuffer : *const core::ffi::c_void, dwbufferlength : u32) -> windows_core::BOOL); unsafe { InternetSetOptionW(hinternet.unwrap_or(core::mem::zeroed()) as _, dwoption, lpbuffer.unwrap_or(core::mem::zeroed()) as _, dwbufferlength).ok() } } #[inline] -pub unsafe fn InternetSetPerSiteCookieDecisionA(pchhostname: P0, dwdecision: u32) -> super::super::Foundation::BOOL +pub unsafe fn InternetSetPerSiteCookieDecisionA(pchhostname: P0, dwdecision: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetSetPerSiteCookieDecisionA(pchhostname : windows_core::PCSTR, dwdecision : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetSetPerSiteCookieDecisionA(pchhostname : windows_core::PCSTR, dwdecision : u32) -> windows_core::BOOL); unsafe { InternetSetPerSiteCookieDecisionA(pchhostname.param().abi(), dwdecision) } } #[inline] -pub unsafe fn InternetSetPerSiteCookieDecisionW(pchhostname: P0, dwdecision: u32) -> super::super::Foundation::BOOL +pub unsafe fn InternetSetPerSiteCookieDecisionW(pchhostname: P0, dwdecision: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetSetPerSiteCookieDecisionW(pchhostname : windows_core::PCWSTR, dwdecision : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetSetPerSiteCookieDecisionW(pchhostname : windows_core::PCWSTR, dwdecision : u32) -> windows_core::BOOL); unsafe { InternetSetPerSiteCookieDecisionW(pchhostname.param().abi(), dwdecision) } } #[inline] @@ -1572,42 +1572,42 @@ pub unsafe fn InternetSetStatusCallbackW(hinternet: *const core::ffi::c_void, lp unsafe { InternetSetStatusCallbackW(hinternet, lpfninternetcallback.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn InternetShowSecurityInfoByURL(lpszurl: P0, hwndparent: super::super::Foundation::HWND) -> super::super::Foundation::BOOL +pub unsafe fn InternetShowSecurityInfoByURL(lpszurl: P0, hwndparent: super::super::Foundation::HWND) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetShowSecurityInfoByURL(lpszurl : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetShowSecurityInfoByURL(lpszurl : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { InternetShowSecurityInfoByURL(lpszurl.param().abi(), hwndparent) } } #[inline] -pub unsafe fn InternetShowSecurityInfoByURLA(lpszurl: P0, hwndparent: super::super::Foundation::HWND) -> super::super::Foundation::BOOL +pub unsafe fn InternetShowSecurityInfoByURLA(lpszurl: P0, hwndparent: super::super::Foundation::HWND) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetShowSecurityInfoByURLA(lpszurl : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetShowSecurityInfoByURLA(lpszurl : windows_core::PCSTR, hwndparent : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { InternetShowSecurityInfoByURLA(lpszurl.param().abi(), hwndparent) } } #[inline] -pub unsafe fn InternetShowSecurityInfoByURLW(lpszurl: P0, hwndparent: super::super::Foundation::HWND) -> super::super::Foundation::BOOL +pub unsafe fn InternetShowSecurityInfoByURLW(lpszurl: P0, hwndparent: super::super::Foundation::HWND) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetShowSecurityInfoByURLW(lpszurl : windows_core::PCWSTR, hwndparent : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetShowSecurityInfoByURLW(lpszurl : windows_core::PCWSTR, hwndparent : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { InternetShowSecurityInfoByURLW(lpszurl.param().abi(), hwndparent) } } #[inline] pub unsafe fn InternetTimeFromSystemTime(pst: *const super::super::Foundation::SYSTEMTIME, dwrfc: u32, lpsztime: &mut [u8]) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetTimeFromSystemTime(pst : *const super::super::Foundation:: SYSTEMTIME, dwrfc : u32, lpsztime : windows_core::PSTR, cbtime : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetTimeFromSystemTime(pst : *const super::super::Foundation:: SYSTEMTIME, dwrfc : u32, lpsztime : windows_core::PSTR, cbtime : u32) -> windows_core::BOOL); unsafe { InternetTimeFromSystemTime(pst, dwrfc, core::mem::transmute(lpsztime.as_ptr()), lpsztime.len().try_into().unwrap()).ok() } } #[inline] pub unsafe fn InternetTimeFromSystemTimeA(pst: *const super::super::Foundation::SYSTEMTIME, dwrfc: u32, lpsztime: &mut [u8]) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetTimeFromSystemTimeA(pst : *const super::super::Foundation:: SYSTEMTIME, dwrfc : u32, lpsztime : windows_core::PSTR, cbtime : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetTimeFromSystemTimeA(pst : *const super::super::Foundation:: SYSTEMTIME, dwrfc : u32, lpsztime : windows_core::PSTR, cbtime : u32) -> windows_core::BOOL); unsafe { InternetTimeFromSystemTimeA(pst, dwrfc, core::mem::transmute(lpsztime.as_ptr()), lpsztime.len().try_into().unwrap()).ok() } } #[inline] pub unsafe fn InternetTimeFromSystemTimeW(pst: *const super::super::Foundation::SYSTEMTIME, dwrfc: u32, lpsztime: windows_core::PWSTR, cbtime: u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetTimeFromSystemTimeW(pst : *const super::super::Foundation:: SYSTEMTIME, dwrfc : u32, lpsztime : windows_core::PWSTR, cbtime : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetTimeFromSystemTimeW(pst : *const super::super::Foundation:: SYSTEMTIME, dwrfc : u32, lpsztime : windows_core::PWSTR, cbtime : u32) -> windows_core::BOOL); unsafe { InternetTimeFromSystemTimeW(pst, dwrfc, core::mem::transmute(lpsztime), cbtime).ok() } } #[inline] @@ -1615,7 +1615,7 @@ pub unsafe fn InternetTimeToSystemTime(lpsztime: P0, pst: *mut super::super: where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetTimeToSystemTime(lpsztime : windows_core::PCSTR, pst : *mut super::super::Foundation:: SYSTEMTIME, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetTimeToSystemTime(lpsztime : windows_core::PCSTR, pst : *mut super::super::Foundation:: SYSTEMTIME, dwreserved : u32) -> windows_core::BOOL); unsafe { InternetTimeToSystemTime(lpsztime.param().abi(), pst as _, dwreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1623,7 +1623,7 @@ pub unsafe fn InternetTimeToSystemTimeA(lpsztime: P0, pst: *mut super::super where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetTimeToSystemTimeA(lpsztime : windows_core::PCSTR, pst : *mut super::super::Foundation:: SYSTEMTIME, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetTimeToSystemTimeA(lpsztime : windows_core::PCSTR, pst : *mut super::super::Foundation:: SYSTEMTIME, dwreserved : u32) -> windows_core::BOOL); unsafe { InternetTimeToSystemTimeA(lpsztime.param().abi(), pst as _, dwreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1631,76 +1631,76 @@ pub unsafe fn InternetTimeToSystemTimeW(lpsztime: P0, pst: *mut super::super where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn InternetTimeToSystemTimeW(lpsztime : windows_core::PCWSTR, pst : *mut super::super::Foundation:: SYSTEMTIME, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetTimeToSystemTimeW(lpsztime : windows_core::PCWSTR, pst : *mut super::super::Foundation:: SYSTEMTIME, dwreserved : u32) -> windows_core::BOOL); unsafe { InternetTimeToSystemTimeW(lpsztime.param().abi(), pst as _, dwreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn InternetUnlockRequestFile(hlockrequestinfo: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetUnlockRequestFile(hlockrequestinfo : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetUnlockRequestFile(hlockrequestinfo : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { InternetUnlockRequestFile(hlockrequestinfo as _).ok() } } #[inline] pub unsafe fn InternetWriteFile(hfile: *const core::ffi::c_void, lpbuffer: *const core::ffi::c_void, dwnumberofbytestowrite: u32, lpdwnumberofbyteswritten: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn InternetWriteFile(hfile : *const core::ffi::c_void, lpbuffer : *const core::ffi::c_void, dwnumberofbytestowrite : u32, lpdwnumberofbyteswritten : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn InternetWriteFile(hfile : *const core::ffi::c_void, lpbuffer : *const core::ffi::c_void, dwnumberofbytestowrite : u32, lpdwnumberofbyteswritten : *mut u32) -> windows_core::BOOL); unsafe { InternetWriteFile(hfile, lpbuffer, dwnumberofbytestowrite, lpdwnumberofbyteswritten as _).ok() } } #[inline] -pub unsafe fn InternetWriteFileExA(hfile: *const core::ffi::c_void, lpbuffersin: *const INTERNET_BUFFERSA, dwflags: u32, dwcontext: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn InternetWriteFileExA(hfile : *const core::ffi::c_void, lpbuffersin : *const INTERNET_BUFFERSA, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn InternetWriteFileExA(hfile: *const core::ffi::c_void, lpbuffersin: *const INTERNET_BUFFERSA, dwflags: u32, dwcontext: Option) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn InternetWriteFileExA(hfile : *const core::ffi::c_void, lpbuffersin : *const INTERNET_BUFFERSA, dwflags : u32, dwcontext : usize) -> windows_core::BOOL); unsafe { InternetWriteFileExA(hfile, lpbuffersin, dwflags, dwcontext.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn InternetWriteFileExW(hfile: *const core::ffi::c_void, lpbuffersin: *const INTERNET_BUFFERSW, dwflags: u32, dwcontext: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn InternetWriteFileExW(hfile : *const core::ffi::c_void, lpbuffersin : *const INTERNET_BUFFERSW, dwflags : u32, dwcontext : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn InternetWriteFileExW(hfile: *const core::ffi::c_void, lpbuffersin: *const INTERNET_BUFFERSW, dwflags: u32, dwcontext: Option) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn InternetWriteFileExW(hfile : *const core::ffi::c_void, lpbuffersin : *const INTERNET_BUFFERSW, dwflags : u32, dwcontext : usize) -> windows_core::BOOL); unsafe { InternetWriteFileExW(hfile, lpbuffersin, dwflags, dwcontext.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn IsDomainLegalCookieDomainA(pchdomain: P0, pchfulldomain: P1) -> super::super::Foundation::BOOL +pub unsafe fn IsDomainLegalCookieDomainA(pchdomain: P0, pchfulldomain: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn IsDomainLegalCookieDomainA(pchdomain : windows_core::PCSTR, pchfulldomain : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn IsDomainLegalCookieDomainA(pchdomain : windows_core::PCSTR, pchfulldomain : windows_core::PCSTR) -> windows_core::BOOL); unsafe { IsDomainLegalCookieDomainA(pchdomain.param().abi(), pchfulldomain.param().abi()) } } #[inline] -pub unsafe fn IsDomainLegalCookieDomainW(pchdomain: P0, pchfulldomain: P1) -> super::super::Foundation::BOOL +pub unsafe fn IsDomainLegalCookieDomainW(pchdomain: P0, pchfulldomain: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn IsDomainLegalCookieDomainW(pchdomain : windows_core::PCWSTR, pchfulldomain : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn IsDomainLegalCookieDomainW(pchdomain : windows_core::PCWSTR, pchfulldomain : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { IsDomainLegalCookieDomainW(pchdomain.param().abi(), pchfulldomain.param().abi()) } } #[inline] -pub unsafe fn IsHostInProxyBypassList(tscheme: INTERNET_SCHEME, lpszhost: &[u8]) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn IsHostInProxyBypassList(tscheme : INTERNET_SCHEME, lpszhost : windows_core::PCSTR, cchhost : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn IsHostInProxyBypassList(tscheme: INTERNET_SCHEME, lpszhost: &[u8]) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn IsHostInProxyBypassList(tscheme : INTERNET_SCHEME, lpszhost : windows_core::PCSTR, cchhost : u32) -> windows_core::BOOL); unsafe { IsHostInProxyBypassList(tscheme, core::mem::transmute(lpszhost.as_ptr()), lpszhost.len().try_into().unwrap()) } } #[inline] -pub unsafe fn IsProfilesEnabled() -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn IsProfilesEnabled() -> super::super::Foundation:: BOOL); +pub unsafe fn IsProfilesEnabled() -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn IsProfilesEnabled() -> windows_core::BOOL); unsafe { IsProfilesEnabled() } } #[inline] -pub unsafe fn IsUrlCacheEntryExpiredA(lpszurlname: P0, dwflags: u32, pftlastmodified: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL +pub unsafe fn IsUrlCacheEntryExpiredA(lpszurlname: P0, dwflags: u32, pftlastmodified: *mut super::super::Foundation::FILETIME) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn IsUrlCacheEntryExpiredA(lpszurlname : windows_core::PCSTR, dwflags : u32, pftlastmodified : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn IsUrlCacheEntryExpiredA(lpszurlname : windows_core::PCSTR, dwflags : u32, pftlastmodified : *mut super::super::Foundation:: FILETIME) -> windows_core::BOOL); unsafe { IsUrlCacheEntryExpiredA(lpszurlname.param().abi(), dwflags, pftlastmodified as _) } } #[inline] -pub unsafe fn IsUrlCacheEntryExpiredW(lpszurlname: P0, dwflags: u32, pftlastmodified: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL +pub unsafe fn IsUrlCacheEntryExpiredW(lpszurlname: P0, dwflags: u32, pftlastmodified: *mut super::super::Foundation::FILETIME) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn IsUrlCacheEntryExpiredW(lpszurlname : windows_core::PCWSTR, dwflags : u32, pftlastmodified : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn IsUrlCacheEntryExpiredW(lpszurlname : windows_core::PCWSTR, dwflags : u32, pftlastmodified : *mut super::super::Foundation:: FILETIME) -> windows_core::BOOL); unsafe { IsUrlCacheEntryExpiredW(lpszurlname.param().abi(), dwflags, pftlastmodified as _) } } #[inline] -pub unsafe fn LoadUrlCacheContent() -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn LoadUrlCacheContent() -> super::super::Foundation:: BOOL); +pub unsafe fn LoadUrlCacheContent() -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn LoadUrlCacheContent() -> windows_core::BOOL); unsafe { LoadUrlCacheContent() } } #[inline] @@ -1709,11 +1709,11 @@ pub unsafe fn ParseX509EncodedCertificateForListBoxEntry(lpcert: &[u8], lpszlist unsafe { ParseX509EncodedCertificateForListBoxEntry(core::mem::transmute(lpcert.as_ptr()), lpcert.len().try_into().unwrap(), lpszlistboxentry.unwrap_or(core::mem::zeroed()) as _, lpdwlistboxentry as _) } } #[inline] -pub unsafe fn PerformOperationOverUrlCacheA(pszurlsearchpattern: P0, dwflags: u32, dwfilter: u32, groupid: i64, preserved1: Option<*const core::ffi::c_void>, pdwreserved2: Option<*const u32>, preserved3: Option<*const core::ffi::c_void>, op: CACHE_OPERATOR, poperatordata: *mut core::ffi::c_void) -> super::super::Foundation::BOOL +pub unsafe fn PerformOperationOverUrlCacheA(pszurlsearchpattern: P0, dwflags: u32, dwfilter: u32, groupid: i64, preserved1: Option<*const core::ffi::c_void>, pdwreserved2: Option<*const u32>, preserved3: Option<*const core::ffi::c_void>, op: CACHE_OPERATOR, poperatordata: *mut core::ffi::c_void) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn PerformOperationOverUrlCacheA(pszurlsearchpattern : windows_core::PCSTR, dwflags : u32, dwfilter : u32, groupid : i64, preserved1 : *const core::ffi::c_void, pdwreserved2 : *const u32, preserved3 : *const core::ffi::c_void, op : CACHE_OPERATOR, poperatordata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn PerformOperationOverUrlCacheA(pszurlsearchpattern : windows_core::PCSTR, dwflags : u32, dwfilter : u32, groupid : i64, preserved1 : *const core::ffi::c_void, pdwreserved2 : *const u32, preserved3 : *const core::ffi::c_void, op : CACHE_OPERATOR, poperatordata : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { PerformOperationOverUrlCacheA(pszurlsearchpattern.param().abi(), dwflags, dwfilter, groupid, preserved1.unwrap_or(core::mem::zeroed()) as _, pdwreserved2.unwrap_or(core::mem::zeroed()) as _, preserved3.unwrap_or(core::mem::zeroed()) as _, op, poperatordata as _) } } #[inline] @@ -1730,28 +1730,28 @@ where unsafe { PrivacySetZonePreferenceW(dwzone, dwtype, dwtemplate, pszpreference.param().abi()) } } #[inline] -pub unsafe fn ReadGuidsForConnectedNetworks(pcnetworks: Option<*mut u32>, pppwsznetworkguids: Option<*mut *mut windows_core::PWSTR>, pppbstrnetworknames: Option<*mut *mut windows_core::BSTR>, pppwszgwmacs: Option<*mut *mut windows_core::PWSTR>, pcgatewaymacs: Option<*mut u32>, pdwflags: Option<*mut u32>) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn ReadGuidsForConnectedNetworks(pcnetworks : *mut u32, pppwsznetworkguids : *mut *mut windows_core::PWSTR, pppbstrnetworknames : *mut *mut * mut core::ffi::c_void, pppwszgwmacs : *mut *mut windows_core::PWSTR, pcgatewaymacs : *mut u32, pdwflags : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn ReadGuidsForConnectedNetworks(pcnetworks: Option<*mut u32>, pppwsznetworkguids: Option<*mut *mut windows_core::PWSTR>, pppbstrnetworknames: Option<*mut *mut windows_core::BSTR>, pppwszgwmacs: Option<*mut *mut windows_core::PWSTR>, pcgatewaymacs: Option<*mut u32>, pdwflags: Option<*mut u32>) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn ReadGuidsForConnectedNetworks(pcnetworks : *mut u32, pppwsznetworkguids : *mut *mut windows_core::PWSTR, pppbstrnetworknames : *mut *mut * mut core::ffi::c_void, pppwszgwmacs : *mut *mut windows_core::PWSTR, pcgatewaymacs : *mut u32, pdwflags : *mut u32) -> windows_core::BOOL); unsafe { ReadGuidsForConnectedNetworks(pcnetworks.unwrap_or(core::mem::zeroed()) as _, pppwsznetworkguids.unwrap_or(core::mem::zeroed()) as _, pppbstrnetworknames.unwrap_or(core::mem::zeroed()) as _, pppwszgwmacs.unwrap_or(core::mem::zeroed()) as _, pcgatewaymacs.unwrap_or(core::mem::zeroed()) as _, pdwflags.unwrap_or(core::mem::zeroed()) as _) } } #[inline] pub unsafe fn ReadUrlCacheEntryStream(hurlcachestream: super::super::Foundation::HANDLE, dwlocation: u32, lpbuffer: *mut core::ffi::c_void, lpdwlen: *mut u32, reserved: Option) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn ReadUrlCacheEntryStream(hurlcachestream : super::super::Foundation:: HANDLE, dwlocation : u32, lpbuffer : *mut core::ffi::c_void, lpdwlen : *mut u32, reserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn ReadUrlCacheEntryStream(hurlcachestream : super::super::Foundation:: HANDLE, dwlocation : u32, lpbuffer : *mut core::ffi::c_void, lpdwlen : *mut u32, reserved : u32) -> windows_core::BOOL); unsafe { ReadUrlCacheEntryStream(hurlcachestream, dwlocation, lpbuffer as _, lpdwlen as _, reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn ReadUrlCacheEntryStreamEx(hurlcachestream: super::super::Foundation::HANDLE, qwlocation: u64, lpbuffer: *mut core::ffi::c_void, lpdwlen: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn ReadUrlCacheEntryStreamEx(hurlcachestream : super::super::Foundation:: HANDLE, qwlocation : u64, lpbuffer : *mut core::ffi::c_void, lpdwlen : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn ReadUrlCacheEntryStreamEx(hurlcachestream: super::super::Foundation::HANDLE, qwlocation: u64, lpbuffer: *mut core::ffi::c_void, lpdwlen: *mut u32) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn ReadUrlCacheEntryStreamEx(hurlcachestream : super::super::Foundation:: HANDLE, qwlocation : u64, lpbuffer : *mut core::ffi::c_void, lpdwlen : *mut u32) -> windows_core::BOOL); unsafe { ReadUrlCacheEntryStreamEx(hurlcachestream, qwlocation, lpbuffer as _, lpdwlen as _) } } #[inline] -pub unsafe fn RegisterUrlCacheNotification(hwnd: Option, umsg: u32, gid: i64, dwopsfilter: u32, dwreserved: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn RegisterUrlCacheNotification(hwnd : super::super::Foundation:: HWND, umsg : u32, gid : i64, dwopsfilter : u32, dwreserved : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn RegisterUrlCacheNotification(hwnd: Option, umsg: u32, gid: i64, dwopsfilter: u32, dwreserved: u32) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn RegisterUrlCacheNotification(hwnd : super::super::Foundation:: HWND, umsg : u32, gid : i64, dwopsfilter : u32, dwreserved : u32) -> windows_core::BOOL); unsafe { RegisterUrlCacheNotification(hwnd.unwrap_or(core::mem::zeroed()) as _, umsg, gid, dwopsfilter, dwreserved) } } #[inline] pub unsafe fn ResumeSuspendedDownload(hrequest: *const core::ffi::c_void, dwresultcode: u32) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn ResumeSuspendedDownload(hrequest : *const core::ffi::c_void, dwresultcode : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn ResumeSuspendedDownload(hrequest : *const core::ffi::c_void, dwresultcode : u32) -> windows_core::BOOL); unsafe { ResumeSuspendedDownload(hrequest, dwresultcode).ok() } } #[inline] @@ -1759,7 +1759,7 @@ pub unsafe fn RetrieveUrlCacheEntryFileA(lpszurlname: P0, lpcacheentryinfo: where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn RetrieveUrlCacheEntryFileA(lpszurlname : windows_core::PCSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn RetrieveUrlCacheEntryFileA(lpszurlname : windows_core::PCSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32, dwreserved : u32) -> windows_core::BOOL); unsafe { RetrieveUrlCacheEntryFileA(lpszurlname.param().abi(), lpcacheentryinfo.unwrap_or(core::mem::zeroed()) as _, lpcbcacheentryinfo as _, dwreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1767,7 +1767,7 @@ pub unsafe fn RetrieveUrlCacheEntryFileW(lpszurlname: P0, lpcacheentryinfo: where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn RetrieveUrlCacheEntryFileW(lpszurlname : windows_core::PCWSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn RetrieveUrlCacheEntryFileW(lpszurlname : windows_core::PCWSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32, dwreserved : u32) -> windows_core::BOOL); unsafe { RetrieveUrlCacheEntryFileW(lpszurlname.param().abi(), lpcacheentryinfo.unwrap_or(core::mem::zeroed()) as _, lpcbcacheentryinfo as _, dwreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1775,7 +1775,7 @@ pub unsafe fn RetrieveUrlCacheEntryStreamA(lpszurlname: P0, lpcacheentryinfo where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn RetrieveUrlCacheEntryStreamA(lpszurlname : windows_core::PCSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32, frandomread : super::super::Foundation:: BOOL, dwreserved : u32) -> super::super::Foundation:: HANDLE); + windows_targets::link!("wininet.dll" "system" fn RetrieveUrlCacheEntryStreamA(lpszurlname : windows_core::PCSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOA, lpcbcacheentryinfo : *mut u32, frandomread : windows_core::BOOL, dwreserved : u32) -> super::super::Foundation:: HANDLE); let result__ = unsafe { RetrieveUrlCacheEntryStreamA(lpszurlname.param().abi(), lpcacheentryinfo.unwrap_or(core::mem::zeroed()) as _, lpcbcacheentryinfo as _, frandomread.into(), dwreserved.unwrap_or(core::mem::zeroed()) as _) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -1784,7 +1784,7 @@ pub unsafe fn RetrieveUrlCacheEntryStreamW(lpszurlname: P0, lpcacheentryinfo where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn RetrieveUrlCacheEntryStreamW(lpszurlname : windows_core::PCWSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32, frandomread : super::super::Foundation:: BOOL, dwreserved : u32) -> super::super::Foundation:: HANDLE); + windows_targets::link!("wininet.dll" "system" fn RetrieveUrlCacheEntryStreamW(lpszurlname : windows_core::PCWSTR, lpcacheentryinfo : *mut INTERNET_CACHE_ENTRY_INFOW, lpcbcacheentryinfo : *mut u32, frandomread : windows_core::BOOL, dwreserved : u32) -> super::super::Foundation:: HANDLE); let result__ = unsafe { RetrieveUrlCacheEntryStreamW(lpszurlname.param().abi(), lpcacheentryinfo.unwrap_or(core::mem::zeroed()) as _, lpcbcacheentryinfo as _, frandomread.into(), dwreserved.unwrap_or(core::mem::zeroed()) as _) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -1797,37 +1797,37 @@ where unsafe { RunOnceUrlCache(hwnd, hinst, lpszcmd.param().abi(), ncmdshow) } } #[inline] -pub unsafe fn SetUrlCacheConfigInfoA(lpcacheconfiginfo: *const INTERNET_CACHE_CONFIG_INFOA, dwfieldcontrol: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn SetUrlCacheConfigInfoA(lpcacheconfiginfo : *const INTERNET_CACHE_CONFIG_INFOA, dwfieldcontrol : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn SetUrlCacheConfigInfoA(lpcacheconfiginfo: *const INTERNET_CACHE_CONFIG_INFOA, dwfieldcontrol: u32) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn SetUrlCacheConfigInfoA(lpcacheconfiginfo : *const INTERNET_CACHE_CONFIG_INFOA, dwfieldcontrol : u32) -> windows_core::BOOL); unsafe { SetUrlCacheConfigInfoA(lpcacheconfiginfo, dwfieldcontrol) } } #[inline] -pub unsafe fn SetUrlCacheConfigInfoW(lpcacheconfiginfo: *const INTERNET_CACHE_CONFIG_INFOW, dwfieldcontrol: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn SetUrlCacheConfigInfoW(lpcacheconfiginfo : *const INTERNET_CACHE_CONFIG_INFOW, dwfieldcontrol : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn SetUrlCacheConfigInfoW(lpcacheconfiginfo: *const INTERNET_CACHE_CONFIG_INFOW, dwfieldcontrol: u32) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn SetUrlCacheConfigInfoW(lpcacheconfiginfo : *const INTERNET_CACHE_CONFIG_INFOW, dwfieldcontrol : u32) -> windows_core::BOOL); unsafe { SetUrlCacheConfigInfoW(lpcacheconfiginfo, dwfieldcontrol) } } #[inline] -pub unsafe fn SetUrlCacheEntryGroup(lpszurlname: P0, dwflags: u32, groupid: i64, pbgroupattributes: Option<*const u8>, cbgroupattributes: Option, lpreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL +pub unsafe fn SetUrlCacheEntryGroup(lpszurlname: P0, dwflags: u32, groupid: i64, pbgroupattributes: Option<*const u8>, cbgroupattributes: Option, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn SetUrlCacheEntryGroup(lpszurlname : windows_core::PCSTR, dwflags : u32, groupid : i64, pbgroupattributes : *const u8, cbgroupattributes : u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn SetUrlCacheEntryGroup(lpszurlname : windows_core::PCSTR, dwflags : u32, groupid : i64, pbgroupattributes : *const u8, cbgroupattributes : u32, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetUrlCacheEntryGroup(lpszurlname.param().abi(), dwflags, groupid, pbgroupattributes.unwrap_or(core::mem::zeroed()) as _, cbgroupattributes.unwrap_or(core::mem::zeroed()) as _, lpreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn SetUrlCacheEntryGroupA(lpszurlname: P0, dwflags: u32, groupid: i64, pbgroupattributes: Option<*const u8>, cbgroupattributes: Option, lpreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL +pub unsafe fn SetUrlCacheEntryGroupA(lpszurlname: P0, dwflags: u32, groupid: i64, pbgroupattributes: Option<*const u8>, cbgroupattributes: Option, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn SetUrlCacheEntryGroupA(lpszurlname : windows_core::PCSTR, dwflags : u32, groupid : i64, pbgroupattributes : *const u8, cbgroupattributes : u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn SetUrlCacheEntryGroupA(lpszurlname : windows_core::PCSTR, dwflags : u32, groupid : i64, pbgroupattributes : *const u8, cbgroupattributes : u32, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetUrlCacheEntryGroupA(lpszurlname.param().abi(), dwflags, groupid, pbgroupattributes.unwrap_or(core::mem::zeroed()) as _, cbgroupattributes.unwrap_or(core::mem::zeroed()) as _, lpreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn SetUrlCacheEntryGroupW(lpszurlname: P0, dwflags: u32, groupid: i64, pbgroupattributes: Option<*const u8>, cbgroupattributes: Option, lpreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL +pub unsafe fn SetUrlCacheEntryGroupW(lpszurlname: P0, dwflags: u32, groupid: i64, pbgroupattributes: Option<*const u8>, cbgroupattributes: Option, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn SetUrlCacheEntryGroupW(lpszurlname : windows_core::PCWSTR, dwflags : u32, groupid : i64, pbgroupattributes : *const u8, cbgroupattributes : u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn SetUrlCacheEntryGroupW(lpszurlname : windows_core::PCWSTR, dwflags : u32, groupid : i64, pbgroupattributes : *const u8, cbgroupattributes : u32, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetUrlCacheEntryGroupW(lpszurlname.param().abi(), dwflags, groupid, pbgroupattributes.unwrap_or(core::mem::zeroed()) as _, cbgroupattributes.unwrap_or(core::mem::zeroed()) as _, lpreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1835,7 +1835,7 @@ pub unsafe fn SetUrlCacheEntryInfoA(lpszurlname: P0, lpcacheentryinfo: *cons where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn SetUrlCacheEntryInfoA(lpszurlname : windows_core::PCSTR, lpcacheentryinfo : *const INTERNET_CACHE_ENTRY_INFOA, dwfieldcontrol : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn SetUrlCacheEntryInfoA(lpszurlname : windows_core::PCSTR, lpcacheentryinfo : *const INTERNET_CACHE_ENTRY_INFOA, dwfieldcontrol : u32) -> windows_core::BOOL); unsafe { SetUrlCacheEntryInfoA(lpszurlname.param().abi(), lpcacheentryinfo, dwfieldcontrol).ok() } } #[inline] @@ -1843,22 +1843,22 @@ pub unsafe fn SetUrlCacheEntryInfoW(lpszurlname: P0, lpcacheentryinfo: *cons where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn SetUrlCacheEntryInfoW(lpszurlname : windows_core::PCWSTR, lpcacheentryinfo : *const INTERNET_CACHE_ENTRY_INFOW, dwfieldcontrol : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn SetUrlCacheEntryInfoW(lpszurlname : windows_core::PCWSTR, lpcacheentryinfo : *const INTERNET_CACHE_ENTRY_INFOW, dwfieldcontrol : u32) -> windows_core::BOOL); unsafe { SetUrlCacheEntryInfoW(lpszurlname.param().abi(), lpcacheentryinfo, dwfieldcontrol).ok() } } #[inline] pub unsafe fn SetUrlCacheGroupAttributeA(gid: i64, dwflags: Option, dwattributes: u32, lpgroupinfo: *const INTERNET_CACHE_GROUP_INFOA, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn SetUrlCacheGroupAttributeA(gid : i64, dwflags : u32, dwattributes : u32, lpgroupinfo : *const INTERNET_CACHE_GROUP_INFOA, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn SetUrlCacheGroupAttributeA(gid : i64, dwflags : u32, dwattributes : u32, lpgroupinfo : *const INTERNET_CACHE_GROUP_INFOA, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetUrlCacheGroupAttributeA(gid, dwflags.unwrap_or(core::mem::zeroed()) as _, dwattributes, lpgroupinfo, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetUrlCacheGroupAttributeW(gid: i64, dwflags: Option, dwattributes: u32, lpgroupinfo: *const INTERNET_CACHE_GROUP_INFOW, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn SetUrlCacheGroupAttributeW(gid : i64, dwflags : u32, dwattributes : u32, lpgroupinfo : *const INTERNET_CACHE_GROUP_INFOW, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn SetUrlCacheGroupAttributeW(gid : i64, dwflags : u32, dwattributes : u32, lpgroupinfo : *const INTERNET_CACHE_GROUP_INFOW, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetUrlCacheGroupAttributeW(gid, dwflags.unwrap_or(core::mem::zeroed()) as _, dwattributes, lpgroupinfo, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn SetUrlCacheHeaderData(nidx: u32, dwdata: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wininet.dll" "system" fn SetUrlCacheHeaderData(nidx : u32, dwdata : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn SetUrlCacheHeaderData(nidx: u32, dwdata: u32) -> windows_core::BOOL { + windows_targets::link!("wininet.dll" "system" fn SetUrlCacheHeaderData(nidx : u32, dwdata : u32) -> windows_core::BOOL); unsafe { SetUrlCacheHeaderData(nidx, dwdata) } } #[inline] @@ -1882,7 +1882,7 @@ pub unsafe fn UnlockUrlCacheEntryFile(lpszurlname: P0, dwreserved: Option, { - windows_targets::link!("wininet.dll" "system" fn UnlockUrlCacheEntryFile(lpszurlname : windows_core::PCSTR, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn UnlockUrlCacheEntryFile(lpszurlname : windows_core::PCSTR, dwreserved : u32) -> windows_core::BOOL); unsafe { UnlockUrlCacheEntryFile(lpszurlname.param().abi(), dwreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1890,7 +1890,7 @@ pub unsafe fn UnlockUrlCacheEntryFileA(lpszurlname: P0, dwreserved: Option, { - windows_targets::link!("wininet.dll" "system" fn UnlockUrlCacheEntryFileA(lpszurlname : windows_core::PCSTR, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn UnlockUrlCacheEntryFileA(lpszurlname : windows_core::PCSTR, dwreserved : u32) -> windows_core::BOOL); unsafe { UnlockUrlCacheEntryFileA(lpszurlname.param().abi(), dwreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1898,25 +1898,25 @@ pub unsafe fn UnlockUrlCacheEntryFileW(lpszurlname: P0, dwreserved: Option, { - windows_targets::link!("wininet.dll" "system" fn UnlockUrlCacheEntryFileW(lpszurlname : windows_core::PCWSTR, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn UnlockUrlCacheEntryFileW(lpszurlname : windows_core::PCWSTR, dwreserved : u32) -> windows_core::BOOL); unsafe { UnlockUrlCacheEntryFileW(lpszurlname.param().abi(), dwreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn UnlockUrlCacheEntryStream(hurlcachestream: super::super::Foundation::HANDLE, reserved: Option) -> windows_core::Result<()> { - windows_targets::link!("wininet.dll" "system" fn UnlockUrlCacheEntryStream(hurlcachestream : super::super::Foundation:: HANDLE, reserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn UnlockUrlCacheEntryStream(hurlcachestream : super::super::Foundation:: HANDLE, reserved : u32) -> windows_core::BOOL); unsafe { UnlockUrlCacheEntryStream(hurlcachestream, reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn UpdateUrlCacheContentPath(sznewpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn UpdateUrlCacheContentPath(sznewpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn UpdateUrlCacheContentPath(sznewpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wininet.dll" "system" fn UpdateUrlCacheContentPath(sznewpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { UpdateUrlCacheContentPath(sznewpath.param().abi()) } } #[inline] -pub unsafe fn UrlCacheCheckEntriesExist(rgpwszurls: *const windows_core::PCWSTR, centries: u32, rgfexist: *mut super::super::Foundation::BOOL) -> u32 { - windows_targets::link!("wininet.dll" "system" fn UrlCacheCheckEntriesExist(rgpwszurls : *const windows_core::PCWSTR, centries : u32, rgfexist : *mut super::super::Foundation:: BOOL) -> u32); +pub unsafe fn UrlCacheCheckEntriesExist(rgpwszurls: *const windows_core::PCWSTR, centries: u32, rgfexist: *mut windows_core::BOOL) -> u32 { + windows_targets::link!("wininet.dll" "system" fn UrlCacheCheckEntriesExist(rgpwszurls : *const windows_core::PCWSTR, centries : u32, rgfexist : *mut windows_core::BOOL) -> u32); unsafe { UrlCacheCheckEntriesExist(rgpwszurls, centries, rgfexist as _) } } #[inline] @@ -2011,7 +2011,7 @@ pub unsafe fn UrlCacheRetrieveEntryStream(happcache: Option<*const core::ffi where P1: windows_core::Param, { - windows_targets::link!("wininet.dll" "system" fn UrlCacheRetrieveEntryStream(happcache : *const core::ffi::c_void, pcwszurl : windows_core::PCWSTR, frandomread : super::super::Foundation:: BOOL, pcacheentryinfo : *mut URLCACHE_ENTRY_INFO, phentrystream : *mut *mut core::ffi::c_void) -> u32); + windows_targets::link!("wininet.dll" "system" fn UrlCacheRetrieveEntryStream(happcache : *const core::ffi::c_void, pcwszurl : windows_core::PCWSTR, frandomread : windows_core::BOOL, pcacheentryinfo : *mut URLCACHE_ENTRY_INFO, phentrystream : *mut *mut core::ffi::c_void) -> u32); unsafe { UrlCacheRetrieveEntryStream(happcache.unwrap_or(core::mem::zeroed()) as _, pcwszurl.param().abi(), frandomread.into(), pcacheentryinfo as _, phentrystream as _) } } #[inline] @@ -2238,7 +2238,7 @@ pub const CACHE_NOTIFY_SET_ONLINE: u32 = 256u32; pub const CACHE_NOTIFY_UPDATE_URL: u32 = 4u32; pub const CACHE_NOTIFY_URL_SET_STICKY: u32 = 16u32; pub const CACHE_NOTIFY_URL_UNSET_STICKY: u32 = 32u32; -pub type CACHE_OPERATOR = Option super::super::Foundation::BOOL>; +pub type CACHE_OPERATOR = Option windows_core::BOOL>; pub const COOKIE_ACCEPTED_CACHE_ENTRY: u32 = 4096u32; pub const COOKIE_ALLOW: u32 = 2u32; pub const COOKIE_ALLOW_ALL: u32 = 4u32; @@ -2285,7 +2285,7 @@ pub const ConnectionEstablishmentStart: REQUEST_TIMES = REQUEST_TIMES(2i32); #[derive(Clone, Copy, Debug, PartialEq)] pub struct CookieDecision { pub dwCookieState: u32, - pub fAllowSession: super::super::Foundation::BOOL, + pub fAllowSession: windows_core::BOOL, } impl Default for CookieDecision { fn default() -> Self { @@ -2492,7 +2492,7 @@ impl Default for GOPHER_ASK_ATTRIBUTE_TYPE { unsafe { core::mem::zeroed() } } } -pub type GOPHER_ATTRIBUTE_ENUMERATOR = Option super::super::Foundation::BOOL>; +pub type GOPHER_ATTRIBUTE_ENUMERATOR = Option windows_core::BOOL>; pub const GOPHER_ATTRIBUTE_ID_ABSTRACT: u32 = 2882325526u32; pub const GOPHER_ATTRIBUTE_ID_ADMIN: u32 = 2882325514u32; pub const GOPHER_ATTRIBUTE_ID_ALL: u32 = 2882325513u32; @@ -2745,7 +2745,7 @@ impl Default for GOPHER_UNKNOWN_ATTRIBUTE_TYPE { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct GOPHER_VERONICA_ATTRIBUTE_TYPE { - pub TreeWalk: super::super::Foundation::BOOL, + pub TreeWalk: windows_core::BOOL, } impl Default for GOPHER_VERONICA_ATTRIBUTE_TYPE { fn default() -> Self { @@ -2853,7 +2853,7 @@ pub const HTTP_PROTOCOL_MASK: u32 = 2u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct HTTP_PUSH_NOTIFICATION_STATUS { - pub ChannelStatusValid: super::super::Foundation::BOOL, + pub ChannelStatusValid: windows_core::BOOL, pub ChannelStatus: u32, } impl Default for HTTP_PUSH_NOTIFICATION_STATUS { @@ -3387,7 +3387,7 @@ pub struct INTERNET_CACHE_CONFIG_INFOA { pub dwContainer: u32, pub dwQuota: u32, pub dwReserved4: u32, - pub fPerUser: super::super::Foundation::BOOL, + pub fPerUser: windows_core::BOOL, pub dwSyncMode: u32, pub dwNumCachePaths: u32, pub Anonymous: INTERNET_CACHE_CONFIG_INFOA_0, @@ -3428,7 +3428,7 @@ pub struct INTERNET_CACHE_CONFIG_INFOW { pub dwContainer: u32, pub dwQuota: u32, pub dwReserved4: u32, - pub fPerUser: super::super::Foundation::BOOL, + pub fPerUser: windows_core::BOOL, pub dwSyncMode: u32, pub dwNumCachePaths: u32, pub Anonymous: INTERNET_CACHE_CONFIG_INFOW_0, @@ -3754,7 +3754,7 @@ pub struct INTERNET_COOKIE2 { pub pwszPath: windows_core::PWSTR, pub dwFlags: u32, pub ftExpires: super::super::Foundation::FILETIME, - pub fExpiresSet: super::super::Foundation::BOOL, + pub fExpiresSet: windows_core::BOOL, } impl Default for INTERNET_COOKIE2 { fn default() -> Self { @@ -3796,7 +3796,7 @@ pub struct INTERNET_CREDENTIALS { pub dwScheme: u32, pub lpcwszUrl: windows_core::PCWSTR, pub lpcwszRealm: windows_core::PCWSTR, - pub fAuthIdentity: super::super::Foundation::BOOL, + pub fAuthIdentity: windows_core::BOOL, pub Anonymous: INTERNET_CREDENTIALS_0, } impl Default for INTERNET_CREDENTIALS { @@ -4299,7 +4299,7 @@ pub const INTERNET_SCHEME_VBSCRIPT: INTERNET_SCHEME = INTERNET_SCHEME(10i32); #[derive(Clone, Copy, Debug, PartialEq)] pub struct INTERNET_SECURITY_CONNECTION_INFO { pub dwSize: u32, - pub fSecure: super::super::Foundation::BOOL, + pub fSecure: windows_core::BOOL, pub connectionInfo: super::super::Security::Authentication::Identity::SecPkgContext_ConnectionInfo, pub cipherInfo: super::super::Security::Authentication::Identity::SecPkgContext_CipherInfo, } @@ -4331,7 +4331,7 @@ impl Default for INTERNET_SECURITY_INFO { #[derive(Clone, Copy, Debug, PartialEq)] pub struct INTERNET_SERVER_CONNECTION_STATE { pub lpcwszHostName: windows_core::PCWSTR, - pub fProxy: super::super::Foundation::BOOL, + pub fProxy: windows_core::BOOL, pub dwCounter: u32, pub dwConnectionLimit: u32, pub dwAvailableCreates: u32, @@ -4518,10 +4518,10 @@ impl Default for IncomingCookieState { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct InternetCookieHistory { - pub fAccepted: super::super::Foundation::BOOL, - pub fLeashed: super::super::Foundation::BOOL, - pub fDowngraded: super::super::Foundation::BOOL, - pub fRejected: super::super::Foundation::BOOL, + pub fAccepted: windows_core::BOOL, + pub fLeashed: windows_core::BOOL, + pub fDowngraded: windows_core::BOOL, + pub fRejected: windows_core::BOOL, } impl Default for InternetCookieHistory { fn default() -> Self { @@ -4755,8 +4755,8 @@ pub const WININET_API_FLAG_USE_CONTEXT: u32 = 8u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WININET_PROXY_INFO { - pub fProxy: super::super::Foundation::BOOL, - pub fBypass: super::super::Foundation::BOOL, + pub fProxy: windows_core::BOOL, + pub fBypass: windows_core::BOOL, pub ProxyScheme: INTERNET_SCHEME, pub pwszProxy: windows_core::PWSTR, pub ProxyPort: u16, @@ -4792,6 +4792,6 @@ pub struct WPAD_CACHE_DELETE(pub i32); pub const WPAD_CACHE_DELETE_ALL: WPAD_CACHE_DELETE = WPAD_CACHE_DELETE(1i32); pub const WPAD_CACHE_DELETE_CURRENT: WPAD_CACHE_DELETE = WPAD_CACHE_DELETE(0i32); pub const XDR_CACHE_ENTRY: u32 = 262144u32; -pub type pfnInternetDeInitializeAutoProxyDll = Option super::super::Foundation::BOOL>; -pub type pfnInternetGetProxyInfo = Option super::super::Foundation::BOOL>; -pub type pfnInternetInitializeAutoProxyDll = Option super::super::Foundation::BOOL>; +pub type pfnInternetDeInitializeAutoProxyDll = Option windows_core::BOOL>; +pub type pfnInternetGetProxyInfo = Option windows_core::BOOL>; +pub type pfnInternetInitializeAutoProxyDll = Option windows_core::BOOL>; diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs index ca4dac8909..da57a165b0 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs @@ -1,7 +1,7 @@ #[cfg(feature = "Win32_System_IO")] #[inline] -pub unsafe fn AcceptEx(slistensocket: SOCKET, sacceptsocket: SOCKET, lpoutputbuffer: *mut core::ffi::c_void, dwreceivedatalength: u32, dwlocaladdresslength: u32, dwremoteaddresslength: u32, lpdwbytesreceived: *mut u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL { - windows_targets::link!("mswsock.dll" "system" fn AcceptEx(slistensocket : SOCKET, sacceptsocket : SOCKET, lpoutputbuffer : *mut core::ffi::c_void, dwreceivedatalength : u32, dwlocaladdresslength : u32, dwremoteaddresslength : u32, lpdwbytesreceived : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); +pub unsafe fn AcceptEx(slistensocket: SOCKET, sacceptsocket: SOCKET, lpoutputbuffer: *mut core::ffi::c_void, dwreceivedatalength: u32, dwlocaladdresslength: u32, dwremoteaddresslength: u32, lpdwbytesreceived: *mut u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::BOOL { + windows_targets::link!("mswsock.dll" "system" fn AcceptEx(slistensocket : SOCKET, sacceptsocket : SOCKET, lpoutputbuffer : *mut core::ffi::c_void, dwreceivedatalength : u32, dwlocaladdresslength : u32, dwremoteaddresslength : u32, lpdwbytesreceived : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { AcceptEx(slistensocket, sacceptsocket, lpoutputbuffer as _, dwreceivedatalength, dwlocaladdresslength, dwremoteaddresslength, lpdwbytesreceived as _, lpoverlapped as _) } } #[inline] @@ -325,13 +325,13 @@ pub unsafe fn SetServiceW(dwnamespace: u32, dwoperation: SET_SERVICE_OPERATION, } #[inline] pub unsafe fn SetSocketMediaStreamingMode(value: bool) -> windows_core::Result<()> { - windows_targets::link!("windows.networking.dll" "system" fn SetSocketMediaStreamingMode(value : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("windows.networking.dll" "system" fn SetSocketMediaStreamingMode(value : windows_core::BOOL) -> windows_core::HRESULT); unsafe { SetSocketMediaStreamingMode(value.into()).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] -pub unsafe fn TransmitFile(hsocket: SOCKET, hfile: super::super::Foundation::HANDLE, nnumberofbytestowrite: u32, nnumberofbytespersend: u32, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lptransmitbuffers: Option<*const TRANSMIT_FILE_BUFFERS>, dwreserved: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("mswsock.dll" "system" fn TransmitFile(hsocket : SOCKET, hfile : super::super::Foundation:: HANDLE, nnumberofbytestowrite : u32, nnumberofbytespersend : u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lptransmitbuffers : *const TRANSMIT_FILE_BUFFERS, dwreserved : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn TransmitFile(hsocket: SOCKET, hfile: super::super::Foundation::HANDLE, nnumberofbytestowrite: u32, nnumberofbytespersend: u32, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lptransmitbuffers: Option<*const TRANSMIT_FILE_BUFFERS>, dwreserved: u32) -> windows_core::BOOL { + windows_targets::link!("mswsock.dll" "system" fn TransmitFile(hsocket : SOCKET, hfile : super::super::Foundation:: HANDLE, nnumberofbytestowrite : u32, nnumberofbytespersend : u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lptransmitbuffers : *const TRANSMIT_FILE_BUFFERS, dwreserved : u32) -> windows_core::BOOL); unsafe { TransmitFile(hsocket, hfile, nnumberofbytestowrite, nnumberofbytespersend, lpoverlapped.unwrap_or(core::mem::zeroed()) as _, lptransmitbuffers.unwrap_or(core::mem::zeroed()) as _, dwreserved) } } #[cfg(feature = "Win32_System_IO")] @@ -433,7 +433,7 @@ pub unsafe fn WSACleanup() -> i32 { } #[inline] pub unsafe fn WSACloseEvent(hevent: WSAEVENT) -> windows_core::Result<()> { - windows_targets::link!("ws2_32.dll" "system" fn WSACloseEvent(hevent : WSAEVENT) -> super::super::Foundation:: BOOL); + windows_targets::link!("ws2_32.dll" "system" fn WSACloseEvent(hevent : WSAEVENT) -> windows_core::BOOL); unsafe { WSACloseEvent(hevent).ok() } } #[inline] @@ -444,7 +444,7 @@ pub unsafe fn WSAConnect(s: SOCKET, name: *const SOCKADDR, namelen: i32, lpcalle #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSAConnectByList(s: SOCKET, socketaddress: *const SOCKET_ADDRESS_LIST, localaddresslength: Option<*mut u32>, localaddress: Option<*mut SOCKADDR>, remoteaddresslength: Option<*mut u32>, remoteaddress: Option<*mut SOCKADDR>, timeout: Option<*const TIMEVAL>, reserved: Option<*const super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { - windows_targets::link!("ws2_32.dll" "system" fn WSAConnectByList(s : SOCKET, socketaddress : *const SOCKET_ADDRESS_LIST, localaddresslength : *mut u32, localaddress : *mut SOCKADDR, remoteaddresslength : *mut u32, remoteaddress : *mut SOCKADDR, timeout : *const TIMEVAL, reserved : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("ws2_32.dll" "system" fn WSAConnectByList(s : SOCKET, socketaddress : *const SOCKET_ADDRESS_LIST, localaddresslength : *mut u32, localaddress : *mut SOCKADDR, remoteaddresslength : *mut u32, remoteaddress : *mut SOCKADDR, timeout : *const TIMEVAL, reserved : *const super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { WSAConnectByList(s, socketaddress, localaddresslength.unwrap_or(core::mem::zeroed()) as _, localaddress.unwrap_or(core::mem::zeroed()) as _, remoteaddresslength.unwrap_or(core::mem::zeroed()) as _, remoteaddress.unwrap_or(core::mem::zeroed()) as _, timeout.unwrap_or(core::mem::zeroed()) as _, reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_System_IO")] @@ -454,7 +454,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("ws2_32.dll" "system" fn WSAConnectByNameA(s : SOCKET, nodename : windows_core::PCSTR, servicename : windows_core::PCSTR, localaddresslength : *mut u32, localaddress : *mut SOCKADDR, remoteaddresslength : *mut u32, remoteaddress : *mut SOCKADDR, timeout : *const TIMEVAL, reserved : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("ws2_32.dll" "system" fn WSAConnectByNameA(s : SOCKET, nodename : windows_core::PCSTR, servicename : windows_core::PCSTR, localaddresslength : *mut u32, localaddress : *mut SOCKADDR, remoteaddresslength : *mut u32, remoteaddress : *mut SOCKADDR, timeout : *const TIMEVAL, reserved : *const super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { WSAConnectByNameA(s, nodename.param().abi(), servicename.param().abi(), localaddresslength.unwrap_or(core::mem::zeroed()) as _, localaddress.unwrap_or(core::mem::zeroed()) as _, remoteaddresslength.unwrap_or(core::mem::zeroed()) as _, remoteaddress.unwrap_or(core::mem::zeroed()) as _, timeout.unwrap_or(core::mem::zeroed()) as _, reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_System_IO")] @@ -464,7 +464,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("ws2_32.dll" "system" fn WSAConnectByNameW(s : SOCKET, nodename : windows_core::PCWSTR, servicename : windows_core::PCWSTR, localaddresslength : *mut u32, localaddress : *mut SOCKADDR, remoteaddresslength : *mut u32, remoteaddress : *mut SOCKADDR, timeout : *const TIMEVAL, reserved : *const super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("ws2_32.dll" "system" fn WSAConnectByNameW(s : SOCKET, nodename : windows_core::PCWSTR, servicename : windows_core::PCWSTR, localaddresslength : *mut u32, localaddress : *mut SOCKADDR, remoteaddresslength : *mut u32, remoteaddress : *mut SOCKADDR, timeout : *const TIMEVAL, reserved : *const super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { WSAConnectByNameW(s, nodename.param().abi(), servicename.param().abi(), localaddresslength.unwrap_or(core::mem::zeroed()) as _, localaddress.unwrap_or(core::mem::zeroed()) as _, remoteaddresslength.unwrap_or(core::mem::zeroed()) as _, remoteaddress.unwrap_or(core::mem::zeroed()) as _, timeout.unwrap_or(core::mem::zeroed()) as _, reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -539,12 +539,12 @@ pub unsafe fn WSAGetLastError() -> WSA_ERROR { #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WSAGetOverlappedResult(s: SOCKET, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpcbtransfer: *mut u32, fwait: bool, lpdwflags: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("ws2_32.dll" "system" fn WSAGetOverlappedResult(s : SOCKET, lpoverlapped : *const super::super::System::IO:: OVERLAPPED, lpcbtransfer : *mut u32, fwait : super::super::Foundation:: BOOL, lpdwflags : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("ws2_32.dll" "system" fn WSAGetOverlappedResult(s : SOCKET, lpoverlapped : *const super::super::System::IO:: OVERLAPPED, lpcbtransfer : *mut u32, fwait : windows_core::BOOL, lpdwflags : *mut u32) -> windows_core::BOOL); unsafe { WSAGetOverlappedResult(s, lpoverlapped, lpcbtransfer as _, fwait.into(), lpdwflags as _).ok() } } #[inline] pub unsafe fn WSAGetQOSByName(s: SOCKET, lpqosname: *const WSABUF, lpqos: *mut QOS) -> windows_core::Result<()> { - windows_targets::link!("ws2_32.dll" "system" fn WSAGetQOSByName(s : SOCKET, lpqosname : *const WSABUF, lpqos : *mut QOS) -> super::super::Foundation:: BOOL); + windows_targets::link!("ws2_32.dll" "system" fn WSAGetQOSByName(s : SOCKET, lpqosname : *const WSABUF, lpqos : *mut QOS) -> windows_core::BOOL); unsafe { WSAGetQOSByName(s, lpqosname, lpqos as _).ok() } } #[inline] @@ -600,7 +600,7 @@ pub unsafe fn WSAIoctl(s: SOCKET, dwiocontrolcode: u32, lpvinbuffer: Option<*con } #[inline] pub unsafe fn WSAIsBlocking() -> windows_core::Result<()> { - windows_targets::link!("ws2_32.dll" "system" fn WSAIsBlocking() -> super::super::Foundation:: BOOL); + windows_targets::link!("ws2_32.dll" "system" fn WSAIsBlocking() -> windows_core::BOOL); unsafe { WSAIsBlocking().ok() } } #[inline] @@ -705,7 +705,7 @@ pub unsafe fn WSARemoveServiceClass(lpserviceclassid: *const windows_core::GUID) } #[inline] pub unsafe fn WSAResetEvent(hevent: WSAEVENT) -> windows_core::Result<()> { - windows_targets::link!("ws2_32.dll" "system" fn WSAResetEvent(hevent : WSAEVENT) -> super::super::Foundation:: BOOL); + windows_targets::link!("ws2_32.dll" "system" fn WSAResetEvent(hevent : WSAEVENT) -> windows_core::BOOL); unsafe { WSAResetEvent(hevent).ok() } } #[inline] @@ -743,7 +743,7 @@ pub unsafe fn WSASetBlockingHook(lpblockfunc: super::super::Foundation::FARPROC) } #[inline] pub unsafe fn WSASetEvent(hevent: WSAEVENT) -> windows_core::Result<()> { - windows_targets::link!("ws2_32.dll" "system" fn WSASetEvent(hevent : WSAEVENT) -> super::super::Foundation:: BOOL); + windows_targets::link!("ws2_32.dll" "system" fn WSASetEvent(hevent : WSAEVENT) -> windows_core::BOOL); unsafe { WSASetEvent(hevent).ok() } } #[inline] @@ -820,7 +820,7 @@ pub unsafe fn WSAUnhookBlockingHook() -> i32 { } #[inline] pub unsafe fn WSAWaitForMultipleEvents(lphevents: &[super::super::Foundation::HANDLE], fwaitall: bool, dwtimeout: u32, falertable: bool) -> super::super::Foundation::WAIT_EVENT { - windows_targets::link!("ws2_32.dll" "system" fn WSAWaitForMultipleEvents(cevents : u32, lphevents : *const super::super::Foundation:: HANDLE, fwaitall : super::super::Foundation:: BOOL, dwtimeout : u32, falertable : super::super::Foundation:: BOOL) -> super::super::Foundation:: WAIT_EVENT); + windows_targets::link!("ws2_32.dll" "system" fn WSAWaitForMultipleEvents(cevents : u32, lphevents : *const super::super::Foundation:: HANDLE, fwaitall : windows_core::BOOL, dwtimeout : u32, falertable : windows_core::BOOL) -> super::super::Foundation:: WAIT_EVENT); unsafe { WSAWaitForMultipleEvents(lphevents.len().try_into().unwrap(), core::mem::transmute(lphevents.as_ptr()), fwaitall.into(), dwtimeout, falertable.into()) } } #[inline] @@ -836,13 +836,13 @@ pub unsafe fn WSCDeinstallProvider32(lpproviderid: *const windows_core::GUID, lp } #[inline] pub unsafe fn WSCEnableNSProvider(lpproviderid: *const windows_core::GUID, fenable: bool) -> i32 { - windows_targets::link!("ws2_32.dll" "system" fn WSCEnableNSProvider(lpproviderid : *const windows_core::GUID, fenable : super::super::Foundation:: BOOL) -> i32); + windows_targets::link!("ws2_32.dll" "system" fn WSCEnableNSProvider(lpproviderid : *const windows_core::GUID, fenable : windows_core::BOOL) -> i32); unsafe { WSCEnableNSProvider(lpproviderid, fenable.into()) } } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[inline] pub unsafe fn WSCEnableNSProvider32(lpproviderid: *const windows_core::GUID, fenable: bool) -> i32 { - windows_targets::link!("ws2_32.dll" "system" fn WSCEnableNSProvider32(lpproviderid : *const windows_core::GUID, fenable : super::super::Foundation:: BOOL) -> i32); + windows_targets::link!("ws2_32.dll" "system" fn WSCEnableNSProvider32(lpproviderid : *const windows_core::GUID, fenable : windows_core::BOOL) -> i32); unsafe { WSCEnableNSProvider32(lpproviderid, fenable.into()) } } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] @@ -1804,7 +1804,7 @@ pub struct ATM_TD { pub SustainableCellRate_CLP01: u32, pub MaxBurstSize_CLP0: u32, pub MaxBurstSize_CLP01: u32, - pub Tagging: super::super::Foundation::BOOL, + pub Tagging: windows_core::BOOL, } impl Default for ATM_TD { fn default() -> Self { @@ -1816,7 +1816,7 @@ impl Default for ATM_TD { pub struct ATM_TRAFFIC_DESCRIPTOR_IE { pub Forward: ATM_TD, pub Backward: ATM_TD, - pub BestEffort: super::super::Foundation::BOOL, + pub BestEffort: windows_core::BOOL, } impl Default for ATM_TRAFFIC_DESCRIPTOR_IE { fn default() -> Self { @@ -3659,14 +3659,14 @@ impl Default for LM_IRPARMS { } } pub const LOG2_BITS_PER_BYTE: u32 = 3u32; -pub type LPBLOCKINGCALLBACK = Option super::super::Foundation::BOOL>; +pub type LPBLOCKINGCALLBACK = Option windows_core::BOOL>; pub type LPCONDITIONPROC = Option i32>; #[cfg(feature = "Win32_System_IO")] -pub type LPFN_ACCEPTEX = Option super::super::Foundation::BOOL>; +pub type LPFN_ACCEPTEX = Option windows_core::BOOL>; #[cfg(feature = "Win32_System_IO")] -pub type LPFN_CONNECTEX = Option super::super::Foundation::BOOL>; +pub type LPFN_CONNECTEX = Option windows_core::BOOL>; #[cfg(feature = "Win32_System_IO")] -pub type LPFN_DISCONNECTEX = Option super::super::Foundation::BOOL>; +pub type LPFN_DISCONNECTEX = Option windows_core::BOOL>; pub type LPFN_GETACCEPTEXSOCKADDRS = Option; pub type LPFN_NSPAPI = Option u32>; pub type LPFN_RIOCLOSECOMPLETIONQUEUE = Option; @@ -3675,17 +3675,17 @@ pub type LPFN_RIOCREATEREQUESTQUEUE = Option u32>; pub type LPFN_RIODEREGISTERBUFFER = Option; pub type LPFN_RIONOTIFY = Option i32>; -pub type LPFN_RIORECEIVE = Option super::super::Foundation::BOOL>; +pub type LPFN_RIORECEIVE = Option windows_core::BOOL>; pub type LPFN_RIORECEIVEEX = Option i32>; pub type LPFN_RIOREGISTERBUFFER = Option RIO_BUFFERID>; -pub type LPFN_RIORESIZECOMPLETIONQUEUE = Option super::super::Foundation::BOOL>; -pub type LPFN_RIORESIZEREQUESTQUEUE = Option super::super::Foundation::BOOL>; -pub type LPFN_RIOSEND = Option super::super::Foundation::BOOL>; -pub type LPFN_RIOSENDEX = Option super::super::Foundation::BOOL>; +pub type LPFN_RIORESIZECOMPLETIONQUEUE = Option windows_core::BOOL>; +pub type LPFN_RIORESIZEREQUESTQUEUE = Option windows_core::BOOL>; +pub type LPFN_RIOSEND = Option windows_core::BOOL>; +pub type LPFN_RIOSENDEX = Option windows_core::BOOL>; #[cfg(feature = "Win32_System_IO")] -pub type LPFN_TRANSMITFILE = Option super::super::Foundation::BOOL>; +pub type LPFN_TRANSMITFILE = Option windows_core::BOOL>; #[cfg(feature = "Win32_System_IO")] -pub type LPFN_TRANSMITPACKETS = Option super::super::Foundation::BOOL>; +pub type LPFN_TRANSMITPACKETS = Option windows_core::BOOL>; pub type LPFN_WSAPOLL = Option i32>; #[cfg(feature = "Win32_System_IO")] pub type LPFN_WSARECVMSG = Option i32>; @@ -3719,7 +3719,7 @@ pub type LPNSPV2LOOKUPSERVICENEXTEX = Option; pub type LPNSPV2STARTUP = Option i32>; pub type LPSERVICE_CALLBACK_PROC = Option; -pub type LPWPUCLOSEEVENT = Option super::super::Foundation::BOOL>; +pub type LPWPUCLOSEEVENT = Option windows_core::BOOL>; pub type LPWPUCLOSESOCKETHANDLE = Option i32>; pub type LPWPUCLOSETHREAD = Option i32>; #[cfg(feature = "Win32_System_IO")] @@ -3730,17 +3730,17 @@ pub type LPWPUFDISSET = Option i32>; pub type LPWPUMODIFYIFSHANDLE = Option SOCKET>; pub type LPWPUOPENCURRENTTHREAD = Option i32>; -pub type LPWPUPOSTMESSAGE = Option super::super::Foundation::BOOL>; +pub type LPWPUPOSTMESSAGE = Option windows_core::BOOL>; pub type LPWPUQUERYBLOCKINGCALLBACK = Option i32>; pub type LPWPUQUERYSOCKETHANDLECONTEXT = Option i32>; pub type LPWPUQUEUEAPC = Option i32>; -pub type LPWPURESETEVENT = Option super::super::Foundation::BOOL>; -pub type LPWPUSETEVENT = Option super::super::Foundation::BOOL>; +pub type LPWPURESETEVENT = Option windows_core::BOOL>; +pub type LPWPUSETEVENT = Option windows_core::BOOL>; #[cfg(feature = "Win32_System_IO")] pub type LPWSAOVERLAPPED_COMPLETION_ROUTINE = Option; pub type LPWSAUSERAPC = Option; pub type LPWSCDEINSTALLPROVIDER = Option i32>; -pub type LPWSCENABLENSPROVIDER = Option i32>; +pub type LPWSCENABLENSPROVIDER = Option i32>; pub type LPWSCENUMPROTOCOLS = Option i32>; pub type LPWSCGETPROVIDERPATH = Option i32>; pub type LPWSCINSTALLNAMESPACE = Option i32>; @@ -3761,9 +3761,9 @@ pub type LPWSPDUPLICATESOCKET = Option i32>; pub type LPWSPEVENTSELECT = Option i32>; #[cfg(feature = "Win32_System_IO")] -pub type LPWSPGETOVERLAPPEDRESULT = Option super::super::Foundation::BOOL>; +pub type LPWSPGETOVERLAPPEDRESULT = Option windows_core::BOOL>; pub type LPWSPGETPEERNAME = Option i32>; -pub type LPWSPGETQOSBYNAME = Option super::super::Foundation::BOOL>; +pub type LPWSPGETQOSBYNAME = Option windows_core::BOOL>; pub type LPWSPGETSOCKNAME = Option i32>; pub type LPWSPGETSOCKOPT = Option i32>; #[cfg(feature = "Win32_System_IO")] @@ -5097,7 +5097,7 @@ impl Default for RIO_NOTIFICATION_COMPLETION_0 { #[derive(Clone, Copy, Debug, PartialEq)] pub struct RIO_NOTIFICATION_COMPLETION_0_0 { pub EventHandle: super::super::Foundation::HANDLE, - pub NotifyReset: super::super::Foundation::BOOL, + pub NotifyReset: windows_core::BOOL, } impl Default for RIO_NOTIFICATION_COMPLETION_0_0 { fn default() -> Self { @@ -6995,7 +6995,7 @@ impl Default for WSAMSG { pub struct WSANAMESPACE_INFOA { pub NSProviderId: windows_core::GUID, pub dwNameSpace: u32, - pub fActive: super::super::Foundation::BOOL, + pub fActive: windows_core::BOOL, pub dwVersion: u32, pub lpszIdentifier: windows_core::PSTR, } @@ -7010,7 +7010,7 @@ impl Default for WSANAMESPACE_INFOA { pub struct WSANAMESPACE_INFOEXA { pub NSProviderId: windows_core::GUID, pub dwNameSpace: u32, - pub fActive: super::super::Foundation::BOOL, + pub fActive: windows_core::BOOL, pub dwVersion: u32, pub lpszIdentifier: windows_core::PSTR, pub ProviderSpecific: super::super::System::Com::BLOB, @@ -7027,7 +7027,7 @@ impl Default for WSANAMESPACE_INFOEXA { pub struct WSANAMESPACE_INFOEXW { pub NSProviderId: windows_core::GUID, pub dwNameSpace: u32, - pub fActive: super::super::Foundation::BOOL, + pub fActive: windows_core::BOOL, pub dwVersion: u32, pub lpszIdentifier: windows_core::PWSTR, pub ProviderSpecific: super::super::System::Com::BLOB, @@ -7043,7 +7043,7 @@ impl Default for WSANAMESPACE_INFOEXW { pub struct WSANAMESPACE_INFOW { pub NSProviderId: windows_core::GUID, pub dwNameSpace: u32, - pub fActive: super::super::Foundation::BOOL, + pub fActive: windows_core::BOOL, pub dwVersion: u32, pub lpszIdentifier: windows_core::PWSTR, } 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 9915edf0fd..40459cd3a6 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs @@ -74,8 +74,8 @@ pub unsafe fn WebAuthNGetW3CExceptionDOMError(hr: windows_core::HRESULT) -> wind unsafe { WebAuthNGetW3CExceptionDOMError(hr).ok() } } #[inline] -pub unsafe fn WebAuthNIsUserVerifyingPlatformAuthenticatorAvailable() -> windows_core::Result { - windows_targets::link!("webauthn.dll" "system" fn WebAuthNIsUserVerifyingPlatformAuthenticatorAvailable(pbisuserverifyingplatformauthenticatoravailable : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn WebAuthNIsUserVerifyingPlatformAuthenticatorAvailable() -> windows_core::Result { + windows_targets::link!("webauthn.dll" "system" fn WebAuthNIsUserVerifyingPlatformAuthenticatorAvailable(pbisuserverifyingplatformauthenticatoravailable : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); WebAuthNIsUserVerifyingPlatformAuthenticatorAvailable(&mut result__).map(|| core::mem::transmute(result__)) @@ -352,7 +352,7 @@ pub unsafe fn WsFillReader(reader: *const WS_XML_READER, minsize: u32, asynccont } #[inline] pub unsafe fn WsFindAttribute(reader: *const WS_XML_READER, localname: *const WS_XML_STRING, ns: *const WS_XML_STRING, required: bool, attributeindex: *mut u32, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { - windows_targets::link!("webservices.dll" "system" fn WsFindAttribute(reader : *const WS_XML_READER, localname : *const WS_XML_STRING, ns : *const WS_XML_STRING, required : super::super::Foundation:: BOOL, attributeindex : *mut u32, error : *const WS_ERROR) -> windows_core::HRESULT); + windows_targets::link!("webservices.dll" "system" fn WsFindAttribute(reader : *const WS_XML_READER, localname : *const WS_XML_STRING, ns : *const WS_XML_STRING, required : windows_core::BOOL, attributeindex : *mut u32, error : *const WS_ERROR) -> windows_core::HRESULT); unsafe { WsFindAttribute(reader, localname, ns, required.into(), attributeindex as _, error.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -505,7 +505,7 @@ pub unsafe fn WsGetMissingMetadataDocumentAddress(metadata: *const WS_METADATA, } #[inline] pub unsafe fn WsGetNamespaceFromPrefix(reader: *const WS_XML_READER, prefix: *const WS_XML_STRING, required: bool, ns: *mut *mut WS_XML_STRING, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { - windows_targets::link!("webservices.dll" "system" fn WsGetNamespaceFromPrefix(reader : *const WS_XML_READER, prefix : *const WS_XML_STRING, required : super::super::Foundation:: BOOL, ns : *mut *mut WS_XML_STRING, error : *const WS_ERROR) -> windows_core::HRESULT); + windows_targets::link!("webservices.dll" "system" fn WsGetNamespaceFromPrefix(reader : *const WS_XML_READER, prefix : *const WS_XML_STRING, required : windows_core::BOOL, ns : *mut *mut WS_XML_STRING, error : *const WS_ERROR) -> windows_core::HRESULT); unsafe { WsGetNamespaceFromPrefix(reader, prefix, required.into(), ns as _, error.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -525,7 +525,7 @@ pub unsafe fn WsGetPolicyProperty(policy: *const WS_POLICY, id: WS_POLICY_PROPER } #[inline] pub unsafe fn WsGetPrefixFromNamespace(writer: *const WS_XML_WRITER, ns: *const WS_XML_STRING, required: bool, prefix: *mut *mut WS_XML_STRING, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { - windows_targets::link!("webservices.dll" "system" fn WsGetPrefixFromNamespace(writer : *const WS_XML_WRITER, ns : *const WS_XML_STRING, required : super::super::Foundation:: BOOL, prefix : *mut *mut WS_XML_STRING, error : *const WS_ERROR) -> windows_core::HRESULT); + windows_targets::link!("webservices.dll" "system" fn WsGetPrefixFromNamespace(writer : *const WS_XML_WRITER, ns : *const WS_XML_STRING, required : windows_core::BOOL, prefix : *mut *mut WS_XML_STRING, error : *const WS_ERROR) -> windows_core::HRESULT); unsafe { WsGetPrefixFromNamespace(writer, ns, required.into(), prefix as _, error.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -590,17 +590,17 @@ pub unsafe fn WsMarkHeaderAsUnderstood(message: *const WS_MESSAGE, headerpositio } #[inline] pub unsafe fn WsMatchPolicyAlternative(policy: *const WS_POLICY, alternativeindex: u32, policyconstraints: *const WS_POLICY_CONSTRAINTS, matchrequired: bool, heap: *const WS_HEAP, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { - windows_targets::link!("webservices.dll" "system" fn WsMatchPolicyAlternative(policy : *const WS_POLICY, alternativeindex : u32, policyconstraints : *const WS_POLICY_CONSTRAINTS, matchrequired : super::super::Foundation:: BOOL, heap : *const WS_HEAP, error : *const WS_ERROR) -> windows_core::HRESULT); + windows_targets::link!("webservices.dll" "system" fn WsMatchPolicyAlternative(policy : *const WS_POLICY, alternativeindex : u32, policyconstraints : *const WS_POLICY_CONSTRAINTS, matchrequired : windows_core::BOOL, heap : *const WS_HEAP, error : *const WS_ERROR) -> windows_core::HRESULT); unsafe { WsMatchPolicyAlternative(policy, alternativeindex, policyconstraints, matchrequired.into(), heap, error.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn WsMoveReader(reader: *const WS_XML_READER, moveto: WS_MOVE_TO, found: Option<*mut super::super::Foundation::BOOL>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { - windows_targets::link!("webservices.dll" "system" fn WsMoveReader(reader : *const WS_XML_READER, moveto : WS_MOVE_TO, found : *mut super::super::Foundation:: BOOL, error : *const WS_ERROR) -> windows_core::HRESULT); +pub unsafe fn WsMoveReader(reader: *const WS_XML_READER, moveto: WS_MOVE_TO, found: Option<*mut windows_core::BOOL>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { + windows_targets::link!("webservices.dll" "system" fn WsMoveReader(reader : *const WS_XML_READER, moveto : WS_MOVE_TO, found : *mut windows_core::BOOL, error : *const WS_ERROR) -> windows_core::HRESULT); unsafe { WsMoveReader(reader, moveto, found.unwrap_or(core::mem::zeroed()) as _, error.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn WsMoveWriter(writer: *const WS_XML_WRITER, moveto: WS_MOVE_TO, found: Option<*mut super::super::Foundation::BOOL>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { - windows_targets::link!("webservices.dll" "system" fn WsMoveWriter(writer : *const WS_XML_WRITER, moveto : WS_MOVE_TO, found : *mut super::super::Foundation:: BOOL, error : *const WS_ERROR) -> windows_core::HRESULT); +pub unsafe fn WsMoveWriter(writer: *const WS_XML_WRITER, moveto: WS_MOVE_TO, found: Option<*mut windows_core::BOOL>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { + windows_targets::link!("webservices.dll" "system" fn WsMoveWriter(writer : *const WS_XML_WRITER, moveto : WS_MOVE_TO, found : *mut windows_core::BOOL, error : *const WS_ERROR) -> windows_core::HRESULT); unsafe { WsMoveWriter(writer, moveto, found.unwrap_or(core::mem::zeroed()) as _, error.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -729,8 +729,8 @@ pub unsafe fn WsReadStartElement(reader: *const WS_XML_READER, error: Option<*co unsafe { WsReadStartElement(reader, error.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn WsReadToStartElement(reader: *const WS_XML_READER, localname: Option<*const WS_XML_STRING>, ns: Option<*const WS_XML_STRING>, found: Option<*mut super::super::Foundation::BOOL>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { - windows_targets::link!("webservices.dll" "system" fn WsReadToStartElement(reader : *const WS_XML_READER, localname : *const WS_XML_STRING, ns : *const WS_XML_STRING, found : *mut super::super::Foundation:: BOOL, error : *const WS_ERROR) -> windows_core::HRESULT); +pub unsafe fn WsReadToStartElement(reader: *const WS_XML_READER, localname: Option<*const WS_XML_STRING>, ns: Option<*const WS_XML_STRING>, found: Option<*mut windows_core::BOOL>, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { + windows_targets::link!("webservices.dll" "system" fn WsReadToStartElement(reader : *const WS_XML_READER, localname : *const WS_XML_STRING, ns : *const WS_XML_STRING, found : *mut windows_core::BOOL, error : *const WS_ERROR) -> windows_core::HRESULT); unsafe { WsReadToStartElement(reader, localname.unwrap_or(core::mem::zeroed()) as _, ns.unwrap_or(core::mem::zeroed()) as _, found.unwrap_or(core::mem::zeroed()) as _, error.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1035,7 +1035,7 @@ pub unsafe fn WsWriteQualifiedName(writer: *const WS_XML_WRITER, prefix: Option< } #[inline] pub unsafe fn WsWriteStartAttribute(writer: *const WS_XML_WRITER, prefix: Option<*const WS_XML_STRING>, localname: *const WS_XML_STRING, ns: *const WS_XML_STRING, singlequote: bool, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { - windows_targets::link!("webservices.dll" "system" fn WsWriteStartAttribute(writer : *const WS_XML_WRITER, prefix : *const WS_XML_STRING, localname : *const WS_XML_STRING, ns : *const WS_XML_STRING, singlequote : super::super::Foundation:: BOOL, error : *const WS_ERROR) -> windows_core::HRESULT); + windows_targets::link!("webservices.dll" "system" fn WsWriteStartAttribute(writer : *const WS_XML_WRITER, prefix : *const WS_XML_STRING, localname : *const WS_XML_STRING, ns : *const WS_XML_STRING, singlequote : windows_core::BOOL, error : *const WS_ERROR) -> windows_core::HRESULT); unsafe { WsWriteStartAttribute(writer, prefix.unwrap_or(core::mem::zeroed()) as _, localname, ns, singlequote.into(), error.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1075,7 +1075,7 @@ pub unsafe fn WsWriteXmlBufferToBytes(writer: *const WS_XML_WRITER, xmlbuffer: * } #[inline] pub unsafe fn WsWriteXmlnsAttribute(writer: *const WS_XML_WRITER, prefix: Option<*const WS_XML_STRING>, ns: *const WS_XML_STRING, singlequote: bool, error: Option<*const WS_ERROR>) -> windows_core::Result<()> { - windows_targets::link!("webservices.dll" "system" fn WsWriteXmlnsAttribute(writer : *const WS_XML_WRITER, prefix : *const WS_XML_STRING, ns : *const WS_XML_STRING, singlequote : super::super::Foundation:: BOOL, error : *const WS_ERROR) -> windows_core::HRESULT); + windows_targets::link!("webservices.dll" "system" fn WsWriteXmlnsAttribute(writer : *const WS_XML_WRITER, prefix : *const WS_XML_STRING, ns : *const WS_XML_STRING, singlequote : windows_core::BOOL, error : *const WS_ERROR) -> windows_core::HRESULT); unsafe { WsWriteXmlnsAttribute(writer, prefix.unwrap_or(core::mem::zeroed()) as _, ns, singlequote.into(), error.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1230,16 +1230,16 @@ pub struct WEBAUTHN_AUTHENTICATOR_GET_ASSERTION_OPTIONS { pub dwUserVerificationRequirement: u32, pub dwFlags: u32, pub pwszU2fAppId: windows_core::PCWSTR, - pub pbU2fAppId: *mut super::super::Foundation::BOOL, + pub pbU2fAppId: *mut windows_core::BOOL, pub pCancellationId: *mut windows_core::GUID, pub pAllowCredentialList: *mut WEBAUTHN_CREDENTIAL_LIST, pub dwCredLargeBlobOperation: u32, pub cbCredLargeBlob: u32, pub pbCredLargeBlob: *mut u8, pub pHmacSecretSaltValues: *mut WEBAUTHN_HMAC_SECRET_SALT_VALUES, - pub bBrowserInPrivateMode: super::super::Foundation::BOOL, + pub bBrowserInPrivateMode: windows_core::BOOL, pub pLinkedDevice: *mut CTAPCBOR_HYBRID_STORAGE_LINKED_DATA, - pub bAutoFill: super::super::Foundation::BOOL, + pub bAutoFill: windows_core::BOOL, pub cbJsonExt: u32, pub pbJsonExt: *mut u8, } @@ -1265,7 +1265,7 @@ pub struct WEBAUTHN_AUTHENTICATOR_MAKE_CREDENTIAL_OPTIONS { pub CredentialList: WEBAUTHN_CREDENTIALS, pub Extensions: WEBAUTHN_EXTENSIONS, pub dwAuthenticatorAttachment: u32, - pub bRequireResidentKey: super::super::Foundation::BOOL, + pub bRequireResidentKey: windows_core::BOOL, pub dwUserVerificationRequirement: u32, pub dwAttestationConveyancePreference: u32, pub dwFlags: u32, @@ -1273,9 +1273,9 @@ pub struct WEBAUTHN_AUTHENTICATOR_MAKE_CREDENTIAL_OPTIONS { pub pExcludeCredentialList: *mut WEBAUTHN_CREDENTIAL_LIST, pub dwEnterpriseAttestation: u32, pub dwLargeBlobSupport: u32, - pub bPreferResidentKey: super::super::Foundation::BOOL, - pub bBrowserInPrivateMode: super::super::Foundation::BOOL, - pub bEnablePrf: super::super::Foundation::BOOL, + pub bPreferResidentKey: windows_core::BOOL, + pub bBrowserInPrivateMode: windows_core::BOOL, + pub bEnablePrf: windows_core::BOOL, pub pLinkedDevice: *mut CTAPCBOR_HYBRID_STORAGE_LINKED_DATA, pub cbJsonExt: u32, pub pbJsonExt: *mut u8, @@ -1403,10 +1403,10 @@ pub struct WEBAUTHN_CREDENTIAL_ATTESTATION { pub pbCredentialId: *mut u8, pub Extensions: WEBAUTHN_EXTENSIONS, pub dwUsedTransport: u32, - pub bEpAtt: super::super::Foundation::BOOL, - pub bLargeBlobSupported: super::super::Foundation::BOOL, - pub bResidentKey: super::super::Foundation::BOOL, - pub bPrfEnabled: super::super::Foundation::BOOL, + pub bEpAtt: windows_core::BOOL, + pub bLargeBlobSupported: windows_core::BOOL, + pub bResidentKey: windows_core::BOOL, + pub bPrfEnabled: windows_core::BOOL, pub cbUnsignedExtensionOutputs: u32, pub pbUnsignedExtensionOutputs: *mut u8, } @@ -1431,8 +1431,8 @@ pub struct WEBAUTHN_CREDENTIAL_DETAILS { pub pbCredentialID: *mut u8, pub pRpInformation: *mut WEBAUTHN_RP_ENTITY_INFORMATION, pub pUserInformation: *mut WEBAUTHN_USER_ENTITY_INFORMATION, - pub bRemovable: super::super::Foundation::BOOL, - pub bBackedUp: super::super::Foundation::BOOL, + pub bRemovable: windows_core::BOOL, + pub bBackedUp: windows_core::BOOL, } impl Default for WEBAUTHN_CREDENTIAL_DETAILS { fn default() -> Self { @@ -1509,7 +1509,7 @@ pub const WEBAUTHN_CRED_LARGE_BLOB_STATUS_SUCCESS: u32 = 1u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct WEBAUTHN_CRED_PROTECT_EXTENSION_IN { pub dwCredProtect: u32, - pub bRequireCredProtect: super::super::Foundation::BOOL, + pub bRequireCredProtect: windows_core::BOOL, } impl Default for WEBAUTHN_CRED_PROTECT_EXTENSION_IN { fn default() -> Self { @@ -1571,7 +1571,7 @@ pub const WEBAUTHN_EXTENSIONS_IDENTIFIER_MIN_PIN_LENGTH: windows_core::PCWSTR = pub struct WEBAUTHN_GET_CREDENTIALS_OPTIONS { pub dwVersion: u32, pub pwszRpId: windows_core::PCWSTR, - pub bBrowserInPrivateMode: super::super::Foundation::BOOL, + pub bBrowserInPrivateMode: windows_core::BOOL, } impl Default for WEBAUTHN_GET_CREDENTIALS_OPTIONS { fn default() -> Self { @@ -1760,7 +1760,7 @@ pub const WS_BLANK_MESSAGE: WS_MESSAGE_INITIALIZATION = WS_MESSAGE_INITIALIZATIO #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WS_BOOL_DESCRIPTION { - pub value: super::super::Foundation::BOOL, + pub value: windows_core::BOOL, } impl Default for WS_BOOL_DESCRIPTION { fn default() -> Self { @@ -2324,7 +2324,7 @@ pub const WS_DUPLICATE_MESSAGE: WS_MESSAGE_INITIALIZATION = WS_MESSAGE_INITIALIZ #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WS_DURATION { - pub negative: super::super::Foundation::BOOL, + pub negative: windows_core::BOOL, pub years: u32, pub months: u32, pub days: u32, @@ -2354,7 +2354,7 @@ impl Default for WS_DURATION_DESCRIPTION { } pub const WS_DURATION_TYPE: WS_TYPE = WS_TYPE(32i32); pub const WS_DURATION_VALUE_TYPE: WS_VALUE_TYPE = WS_VALUE_TYPE(15i32); -pub type WS_DYNAMIC_STRING_CALLBACK = Option windows_core::HRESULT>; +pub type WS_DYNAMIC_STRING_CALLBACK = Option windows_core::HRESULT>; pub const WS_ELEMENT_CHOICE_FIELD_MAPPING: WS_FIELD_MAPPING = WS_FIELD_MAPPING(7i32); pub const WS_ELEMENT_CONTENT_TYPE_MAPPING: WS_TYPE_MAPPING = WS_TYPE_MAPPING(3i32); #[repr(C)] @@ -3140,7 +3140,7 @@ impl Default for WS_ISSUED_TOKEN_MESSAGE_SECURITY_BINDING_CONSTRAINT_0 { } } pub const WS_ISSUED_TOKEN_MESSAGE_SECURITY_BINDING_CONSTRAINT_TYPE: WS_SECURITY_BINDING_CONSTRAINT_TYPE = WS_SECURITY_BINDING_CONSTRAINT_TYPE(6i32); -pub type WS_IS_DEFAULT_VALUE_CALLBACK = Option windows_core::HRESULT>; +pub type WS_IS_DEFAULT_VALUE_CALLBACK = Option windows_core::HRESULT>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WS_ITEM_RANGE { @@ -4415,7 +4415,7 @@ pub const WS_SERVICE_PROXY_STATE_CREATED: WS_SERVICE_PROXY_STATE = WS_SERVICE_PR pub const WS_SERVICE_PROXY_STATE_FAULTED: WS_SERVICE_PROXY_STATE = WS_SERVICE_PROXY_STATE(5i32); pub const WS_SERVICE_PROXY_STATE_OPEN: WS_SERVICE_PROXY_STATE = WS_SERVICE_PROXY_STATE(2i32); pub const WS_SERVICE_PROXY_STATE_OPENING: WS_SERVICE_PROXY_STATE = WS_SERVICE_PROXY_STATE(1i32); -pub type WS_SERVICE_SECURITY_CALLBACK = Option windows_core::HRESULT>; +pub type WS_SERVICE_SECURITY_CALLBACK = Option windows_core::HRESULT>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WS_SERVICE_SECURITY_IDENTITIES { @@ -4486,7 +4486,7 @@ impl Default for WS_SSL_TRANSPORT_SECURITY_BINDING_CONSTRAINT { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct WS_SSL_TRANSPORT_SECURITY_BINDING_CONSTRAINT_0 { - pub clientCertCredentialRequired: super::super::Foundation::BOOL, + pub clientCertCredentialRequired: windows_core::BOOL, } impl Default for WS_SSL_TRANSPORT_SECURITY_BINDING_CONSTRAINT_0 { fn default() -> Self { @@ -5378,7 +5378,7 @@ impl Default for WS_XML_BASE64_TEXT { #[derive(Clone, Copy, Debug, PartialEq)] pub struct WS_XML_BOOL_TEXT { pub text: WS_XML_TEXT, - pub value: super::super::Foundation::BOOL, + pub value: windows_core::BOOL, } impl Default for WS_XML_BOOL_TEXT { fn default() -> Self { @@ -5476,7 +5476,7 @@ pub struct WS_XML_DICTIONARY { pub guid: windows_core::GUID, pub strings: *mut WS_XML_STRING, pub stringCount: u32, - pub isConst: super::super::Foundation::BOOL, + pub isConst: windows_core::BOOL, } impl Default for WS_XML_DICTIONARY { fn default() -> Self { @@ -5503,7 +5503,7 @@ pub struct WS_XML_ELEMENT_NODE { pub ns: *mut WS_XML_STRING, pub attributeCount: u32, pub attributes: *mut *mut WS_XML_ATTRIBUTE, - pub isEmpty: super::super::Foundation::BOOL, + pub isEmpty: windows_core::BOOL, } impl Default for WS_XML_ELEMENT_NODE { fn default() -> Self { @@ -5700,7 +5700,7 @@ pub const WS_XML_READER_INPUT_TYPE_STREAM: WS_XML_READER_INPUT_TYPE = WS_XML_REA pub struct WS_XML_READER_MTOM_ENCODING { pub encoding: WS_XML_READER_ENCODING, pub textEncoding: *mut WS_XML_READER_ENCODING, - pub readMimeHeader: super::super::Foundation::BOOL, + pub readMimeHeader: windows_core::BOOL, pub startInfo: WS_STRING, pub boundary: WS_STRING, pub startUri: WS_STRING, @@ -5985,7 +5985,7 @@ pub const WS_XML_WRITER_ENCODING_TYPE_TEXT: WS_XML_WRITER_ENCODING_TYPE = WS_XML pub struct WS_XML_WRITER_MTOM_ENCODING { pub encoding: WS_XML_WRITER_ENCODING, pub textEncoding: *mut WS_XML_WRITER_ENCODING, - pub writeMimeHeader: super::super::Foundation::BOOL, + pub writeMimeHeader: windows_core::BOOL, pub boundary: WS_STRING, pub startInfo: WS_STRING, pub startUri: WS_STRING, diff --git a/crates/libs/windows/src/Windows/Win32/Security/AppLocker/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/AppLocker/mod.rs index 952b500cdc..8657b15d8a 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/AppLocker/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/AppLocker/mod.rs @@ -1,32 +1,32 @@ #[inline] pub unsafe fn SaferCloseLevel(hlevelhandle: super::SAFER_LEVEL_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SaferCloseLevel(hlevelhandle : super:: SAFER_LEVEL_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SaferCloseLevel(hlevelhandle : super:: SAFER_LEVEL_HANDLE) -> windows_core::BOOL); unsafe { SaferCloseLevel(hlevelhandle).ok() } } #[inline] pub unsafe fn SaferComputeTokenFromLevel(levelhandle: super::SAFER_LEVEL_HANDLE, inaccesstoken: Option, outaccesstoken: *mut super::super::Foundation::HANDLE, dwflags: SAFER_COMPUTE_TOKEN_FROM_LEVEL_FLAGS, lpreserved: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SaferComputeTokenFromLevel(levelhandle : super:: SAFER_LEVEL_HANDLE, inaccesstoken : super::super::Foundation:: HANDLE, outaccesstoken : *mut super::super::Foundation:: HANDLE, dwflags : SAFER_COMPUTE_TOKEN_FROM_LEVEL_FLAGS, lpreserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SaferComputeTokenFromLevel(levelhandle : super:: SAFER_LEVEL_HANDLE, inaccesstoken : super::super::Foundation:: HANDLE, outaccesstoken : *mut super::super::Foundation:: HANDLE, dwflags : SAFER_COMPUTE_TOKEN_FROM_LEVEL_FLAGS, lpreserved : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { SaferComputeTokenFromLevel(levelhandle, inaccesstoken.unwrap_or(core::mem::zeroed()) as _, outaccesstoken as _, dwflags, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SaferCreateLevel(dwscopeid: u32, dwlevelid: u32, openflags: u32, plevelhandle: *mut super::SAFER_LEVEL_HANDLE, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SaferCreateLevel(dwscopeid : u32, dwlevelid : u32, openflags : u32, plevelhandle : *mut super:: SAFER_LEVEL_HANDLE, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SaferCreateLevel(dwscopeid : u32, dwlevelid : u32, openflags : u32, plevelhandle : *mut super:: SAFER_LEVEL_HANDLE, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SaferCreateLevel(dwscopeid, dwlevelid, openflags, plevelhandle as _, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SaferGetLevelInformation(levelhandle: super::SAFER_LEVEL_HANDLE, dwinfotype: SAFER_OBJECT_INFO_CLASS, lpquerybuffer: Option<*mut core::ffi::c_void>, dwinbuffersize: u32, lpdwoutbuffersize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SaferGetLevelInformation(levelhandle : super:: SAFER_LEVEL_HANDLE, dwinfotype : SAFER_OBJECT_INFO_CLASS, lpquerybuffer : *mut core::ffi::c_void, dwinbuffersize : u32, lpdwoutbuffersize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SaferGetLevelInformation(levelhandle : super:: SAFER_LEVEL_HANDLE, dwinfotype : SAFER_OBJECT_INFO_CLASS, lpquerybuffer : *mut core::ffi::c_void, dwinbuffersize : u32, lpdwoutbuffersize : *mut u32) -> windows_core::BOOL); unsafe { SaferGetLevelInformation(levelhandle, dwinfotype, lpquerybuffer.unwrap_or(core::mem::zeroed()) as _, dwinbuffersize, lpdwoutbuffersize as _).ok() } } #[inline] pub unsafe fn SaferGetPolicyInformation(dwscopeid: u32, saferpolicyinfoclass: SAFER_POLICY_INFO_CLASS, infobuffersize: u32, infobuffer: *mut core::ffi::c_void, infobufferretsize: *mut u32, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SaferGetPolicyInformation(dwscopeid : u32, saferpolicyinfoclass : SAFER_POLICY_INFO_CLASS, infobuffersize : u32, infobuffer : *mut core::ffi::c_void, infobufferretsize : *mut u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SaferGetPolicyInformation(dwscopeid : u32, saferpolicyinfoclass : SAFER_POLICY_INFO_CLASS, infobuffersize : u32, infobuffer : *mut core::ffi::c_void, infobufferretsize : *mut u32, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SaferGetPolicyInformation(dwscopeid, saferpolicyinfoclass, infobuffersize, infobuffer as _, infobufferretsize as _, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] pub unsafe fn SaferIdentifyLevel(pcodeproperties: Option<&[SAFER_CODE_PROPERTIES_V2]>, plevelhandle: *mut super::SAFER_LEVEL_HANDLE, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SaferIdentifyLevel(dwnumproperties : u32, pcodeproperties : *const SAFER_CODE_PROPERTIES_V2, plevelhandle : *mut super:: SAFER_LEVEL_HANDLE, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SaferIdentifyLevel(dwnumproperties : u32, pcodeproperties : *const SAFER_CODE_PROPERTIES_V2, plevelhandle : *mut super:: SAFER_LEVEL_HANDLE, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SaferIdentifyLevel(pcodeproperties.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcodeproperties.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), plevelhandle as _, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -34,25 +34,25 @@ pub unsafe fn SaferRecordEventLogEntry(hlevel: super::SAFER_LEVEL_HANDLE, sz where P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn SaferRecordEventLogEntry(hlevel : super:: SAFER_LEVEL_HANDLE, sztargetpath : windows_core::PCWSTR, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SaferRecordEventLogEntry(hlevel : super:: SAFER_LEVEL_HANDLE, sztargetpath : windows_core::PCWSTR, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SaferRecordEventLogEntry(hlevel, sztargetpath.param().abi(), lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SaferSetLevelInformation(levelhandle: super::SAFER_LEVEL_HANDLE, dwinfotype: SAFER_OBJECT_INFO_CLASS, lpquerybuffer: *const core::ffi::c_void, dwinbuffersize: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SaferSetLevelInformation(levelhandle : super:: SAFER_LEVEL_HANDLE, dwinfotype : SAFER_OBJECT_INFO_CLASS, lpquerybuffer : *const core::ffi::c_void, dwinbuffersize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SaferSetLevelInformation(levelhandle : super:: SAFER_LEVEL_HANDLE, dwinfotype : SAFER_OBJECT_INFO_CLASS, lpquerybuffer : *const core::ffi::c_void, dwinbuffersize : u32) -> windows_core::BOOL); unsafe { SaferSetLevelInformation(levelhandle, dwinfotype, lpquerybuffer, dwinbuffersize).ok() } } #[inline] pub unsafe fn SaferSetPolicyInformation(dwscopeid: u32, saferpolicyinfoclass: SAFER_POLICY_INFO_CLASS, infobuffersize: u32, infobuffer: *const core::ffi::c_void, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SaferSetPolicyInformation(dwscopeid : u32, saferpolicyinfoclass : SAFER_POLICY_INFO_CLASS, infobuffersize : u32, infobuffer : *const core::ffi::c_void, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SaferSetPolicyInformation(dwscopeid : u32, saferpolicyinfoclass : SAFER_POLICY_INFO_CLASS, infobuffersize : u32, infobuffer : *const core::ffi::c_void, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SaferSetPolicyInformation(dwscopeid, saferpolicyinfoclass, infobuffersize, infobuffer, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn SaferiIsExecutableFileType(szfullpathname: P0, bfromshellexecute: bool) -> super::super::Foundation::BOOL +pub unsafe fn SaferiIsExecutableFileType(szfullpathname: P0, bfromshellexecute: bool) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn SaferiIsExecutableFileType(szfullpathname : windows_core::PCWSTR, bfromshellexecute : bool) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SaferiIsExecutableFileType(szfullpathname : windows_core::PCWSTR, bfromshellexecute : bool) -> windows_core::BOOL); unsafe { SaferiIsExecutableFileType(szfullpathname.param().abi(), bfromshellexecute) } } #[repr(C)] @@ -98,7 +98,7 @@ pub struct SAFER_CODE_PROPERTIES_V2 { pub PackagePublisher: windows_core::PCWSTR, pub PackageName: windows_core::PCWSTR, pub PackageVersion: u64, - pub PackageIsFramework: super::super::Foundation::BOOL, + pub PackageIsFramework: windows_core::BOOL, } #[cfg(feature = "Win32_Security_Cryptography")] impl Default for SAFER_CODE_PROPERTIES_V2 { 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 1c2d45370b..9fd804266d 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 @@ -134,7 +134,7 @@ impl AsyncIConnectedIdentityProvider { pub unsafe fn Begin_IsConnected(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Begin_IsConnected)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn Finish_IsConnected(&self) -> windows_core::Result { + pub unsafe fn Finish_IsConnected(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Finish_IsConnected)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -169,7 +169,7 @@ pub struct AsyncIConnectedIdentityProvider_Vtbl { pub Begin_DisconnectIdentity: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Finish_DisconnectIdentity: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Begin_IsConnected: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub Finish_IsConnected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Finish_IsConnected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Begin_GetUrl: unsafe extern "system" fn(*mut core::ffi::c_void, IDENTITY_URL, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -188,7 +188,7 @@ pub trait AsyncIConnectedIdentityProvider_Impl: windows_core::IUnknownImpl { fn Begin_DisconnectIdentity(&self) -> windows_core::Result<()>; fn Finish_DisconnectIdentity(&self) -> windows_core::Result<()>; fn Begin_IsConnected(&self) -> windows_core::Result<()>; - fn Finish_IsConnected(&self) -> windows_core::Result; + fn Finish_IsConnected(&self) -> windows_core::Result; fn Begin_GetUrl(&self, identifier: IDENTITY_URL, context: windows_core::Ref) -> windows_core::Result<()>; fn Finish_GetUrl(&self, postdata: *mut super::super::super::super::System::Variant::VARIANT, url: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn Begin_GetAccountState(&self) -> windows_core::Result<()>; @@ -227,7 +227,7 @@ impl AsyncIConnectedIdentityProvider_Vtbl { AsyncIConnectedIdentityProvider_Impl::Begin_IsConnected(this).into() } } - unsafe extern "system" fn Finish_IsConnected(this: *mut core::ffi::c_void, connected: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Finish_IsConnected(this: *mut core::ffi::c_void, connected: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match AsyncIConnectedIdentityProvider_Impl::Finish_IsConnected(this) { @@ -1093,7 +1093,7 @@ impl IConnectedIdentityProvider { pub unsafe fn DisconnectIdentity(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).DisconnectIdentity)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn IsConnected(&self) -> windows_core::Result { + pub unsafe fn IsConnected(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsConnected)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1118,7 +1118,7 @@ pub struct IConnectedIdentityProvider_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub ConnectIdentity: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, u32) -> windows_core::HRESULT, pub DisconnectIdentity: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsConnected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsConnected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub GetUrl: unsafe extern "system" fn(*mut core::ffi::c_void, IDENTITY_URL, *mut core::ffi::c_void, *mut super::super::super::super::System::Variant::VARIANT, *mut windows_core::PWSTR) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -1129,7 +1129,7 @@ pub struct IConnectedIdentityProvider_Vtbl { pub trait IConnectedIdentityProvider_Impl: windows_core::IUnknownImpl { fn ConnectIdentity(&self, authbuffer: *const u8, authbuffersize: u32) -> windows_core::Result<()>; fn DisconnectIdentity(&self) -> windows_core::Result<()>; - fn IsConnected(&self) -> windows_core::Result; + fn IsConnected(&self) -> windows_core::Result; fn GetUrl(&self, identifier: IDENTITY_URL, context: windows_core::Ref, postdata: *mut super::super::super::super::System::Variant::VARIANT, url: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn GetAccountState(&self) -> windows_core::Result; } @@ -1148,7 +1148,7 @@ impl IConnectedIdentityProvider_Vtbl { IConnectedIdentityProvider_Impl::DisconnectIdentity(this).into() } } - unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, connected: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsConnected(this: *mut core::ffi::c_void, connected: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConnectedIdentityProvider_Impl::IsConnected(this) { 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 d316784dc8..3903372812 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 @@ -1070,7 +1070,7 @@ pub unsafe fn SaslSetContextOption(contexthandle: *const super::super::Credentia } #[inline] pub unsafe fn SendSAS(asuser: bool) { - windows_targets::link!("sas.dll" "system" fn SendSAS(asuser : super::super::super::Foundation:: BOOL)); + windows_targets::link!("sas.dll" "system" fn SendSAS(asuser : windows_core::BOOL)); unsafe { SendSAS(asuser.into()) } } #[cfg(feature = "Win32_Security_Credentials")] @@ -1099,8 +1099,8 @@ pub unsafe fn SetCredentialsAttributesW(phcredential: *const super::super::Crede } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] -pub unsafe fn SslCrackCertificate(pbcertificate: *mut u8, cbcertificate: u32, dwflags: u32, ppcertificate: *mut *mut X509Certificate) -> super::super::super::Foundation::BOOL { - windows_targets::link!("schannel.dll" "system" fn SslCrackCertificate(pbcertificate : *mut u8, cbcertificate : u32, dwflags : u32, ppcertificate : *mut *mut X509Certificate) -> super::super::super::Foundation:: BOOL); +pub unsafe fn SslCrackCertificate(pbcertificate: *mut u8, cbcertificate: u32, dwflags: u32, ppcertificate: *mut *mut X509Certificate) -> windows_core::BOOL { + windows_targets::link!("schannel.dll" "system" fn SslCrackCertificate(pbcertificate : *mut u8, cbcertificate : u32, dwflags : u32, ppcertificate : *mut *mut X509Certificate) -> windows_core::BOOL); unsafe { SslCrackCertificate(pbcertificate as _, cbcertificate, dwflags, ppcertificate as _) } } #[cfg(feature = "Win32_Security_Cryptography")] @@ -1113,19 +1113,19 @@ pub unsafe fn SslDeserializeCertificateStore(serializedcertificatestore: super:: } } #[inline] -pub unsafe fn SslEmptyCacheA(psztargetname: P0, dwflags: u32) -> super::super::super::Foundation::BOOL +pub unsafe fn SslEmptyCacheA(psztargetname: P0, dwflags: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("schannel.dll" "system" fn SslEmptyCacheA(psztargetname : windows_core::PCSTR, dwflags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("schannel.dll" "system" fn SslEmptyCacheA(psztargetname : windows_core::PCSTR, dwflags : u32) -> windows_core::BOOL); unsafe { SslEmptyCacheA(psztargetname.param().abi(), dwflags) } } #[inline] -pub unsafe fn SslEmptyCacheW(psztargetname: P0, dwflags: u32) -> super::super::super::Foundation::BOOL +pub unsafe fn SslEmptyCacheW(psztargetname: P0, dwflags: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("schannel.dll" "system" fn SslEmptyCacheW(psztargetname : windows_core::PCWSTR, dwflags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("schannel.dll" "system" fn SslEmptyCacheW(psztargetname : windows_core::PCWSTR, dwflags : u32) -> windows_core::BOOL); unsafe { SslEmptyCacheW(psztargetname.param().abi(), dwflags) } } #[cfg(feature = "Win32_Security_Cryptography")] @@ -7508,7 +7508,7 @@ pub const SSL3SP_NAME: windows_core::PCWSTR = windows_core::w!("Microsoft SSL 3. pub const SSL3SP_NAME_A: windows_core::PCSTR = windows_core::s!("Microsoft SSL 3.0"); pub const SSL3SP_NAME_W: windows_core::PCWSTR = windows_core::w!("Microsoft SSL 3.0"); #[cfg(feature = "Win32_Security_Cryptography")] -pub type SSL_CRACK_CERTIFICATE_FN = Option super::super::super::Foundation::BOOL>; +pub type SSL_CRACK_CERTIFICATE_FN = Option windows_core::BOOL>; pub const SSL_CRACK_CERTIFICATE_NAME: windows_core::PCWSTR = windows_core::w!("SslCrackCertificate"); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -7524,8 +7524,8 @@ impl Default for SSL_CREDENTIAL_CERTIFICATE { unsafe { core::mem::zeroed() } } } -pub type SSL_EMPTY_CACHE_FN_A = Option super::super::super::Foundation::BOOL>; -pub type SSL_EMPTY_CACHE_FN_W = Option super::super::super::Foundation::BOOL>; +pub type SSL_EMPTY_CACHE_FN_A = Option windows_core::BOOL>; +pub type SSL_EMPTY_CACHE_FN_W = Option windows_core::BOOL>; #[cfg(feature = "Win32_Security_Cryptography")] pub type SSL_FREE_CERTIFICATE_FN = Option; pub const SSL_FREE_CERTIFICATE_NAME: windows_core::PCWSTR = windows_core::w!("SslFreeCertificate"); @@ -8441,9 +8441,9 @@ pub struct SecPkgCred_ClientCertPolicy { pub guidPolicyId: windows_core::GUID, pub dwCertFlags: u32, pub dwUrlRetrievalTimeout: u32, - pub fCheckRevocationFreshnessTime: super::super::super::Foundation::BOOL, + pub fCheckRevocationFreshnessTime: windows_core::BOOL, pub dwRevocationFreshnessTime: u32, - pub fOmitUsageCheck: super::super::super::Foundation::BOOL, + pub fOmitUsageCheck: windows_core::BOOL, pub pwszSslCtlStoreName: windows_core::PWSTR, pub pwszSslCtlIdentifier: windows_core::PWSTR, } 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 bb18ac1880..41a7d65399 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 @@ -13,7 +13,7 @@ pub unsafe fn EditSecurity(hwndowner: super::super::super::Foundation::HWND, where P1: windows_core::Param, { - windows_targets::link!("aclui.dll" "system" fn EditSecurity(hwndowner : super::super::super::Foundation:: HWND, psi : * mut core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("aclui.dll" "system" fn EditSecurity(hwndowner : super::super::super::Foundation:: HWND, psi : * mut core::ffi::c_void) -> windows_core::BOOL); unsafe { EditSecurity(hwndowner, psi.param().abi()).ok() } } #[inline] @@ -226,7 +226,7 @@ impl ISecurityInformation { pub struct ISecurityInformation_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetObjectInformation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SI_OBJECT_INFO) -> windows_core::HRESULT, - pub GetSecurity: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::OBJECT_SECURITY_INFORMATION, *mut super::super::PSECURITY_DESCRIPTOR, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetSecurity: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::OBJECT_SECURITY_INFORMATION, *mut super::super::PSECURITY_DESCRIPTOR, windows_core::BOOL) -> windows_core::HRESULT, pub SetSecurity: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::OBJECT_SECURITY_INFORMATION, super::super::PSECURITY_DESCRIPTOR) -> windows_core::HRESULT, pub GetAccessRights: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, SECURITY_INFO_PAGE_FLAGS, *mut *mut SI_ACCESS, *mut u32, *mut u32) -> windows_core::HRESULT, pub MapGeneric: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut u8, *mut u32) -> windows_core::HRESULT, @@ -239,7 +239,7 @@ pub struct ISecurityInformation_Vtbl { #[cfg(feature = "Win32_UI_Controls")] pub trait ISecurityInformation_Impl: windows_core::IUnknownImpl { fn GetObjectInformation(&self, pobjectinfo: *mut SI_OBJECT_INFO) -> windows_core::Result<()>; - fn GetSecurity(&self, requestedinformation: super::super::OBJECT_SECURITY_INFORMATION, ppsecuritydescriptor: *mut super::super::PSECURITY_DESCRIPTOR, fdefault: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetSecurity(&self, requestedinformation: super::super::OBJECT_SECURITY_INFORMATION, ppsecuritydescriptor: *mut super::super::PSECURITY_DESCRIPTOR, fdefault: windows_core::BOOL) -> windows_core::Result<()>; fn SetSecurity(&self, securityinformation: super::super::OBJECT_SECURITY_INFORMATION, psecuritydescriptor: super::super::PSECURITY_DESCRIPTOR) -> windows_core::Result<()>; fn GetAccessRights(&self, pguidobjecttype: *const windows_core::GUID, dwflags: SECURITY_INFO_PAGE_FLAGS, ppaccess: *mut *mut SI_ACCESS, pcaccesses: *mut u32, pidefaultaccess: *mut u32) -> windows_core::Result<()>; fn MapGeneric(&self, pguidobjecttype: *const windows_core::GUID, paceflags: *mut u8, pmask: *mut u32) -> windows_core::Result<()>; @@ -255,7 +255,7 @@ impl ISecurityInformation_Vtbl { ISecurityInformation_Impl::GetObjectInformation(this, core::mem::transmute_copy(&pobjectinfo)).into() } } - unsafe extern "system" fn GetSecurity(this: *mut core::ffi::c_void, requestedinformation: super::super::OBJECT_SECURITY_INFORMATION, ppsecuritydescriptor: *mut super::super::PSECURITY_DESCRIPTOR, fdefault: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetSecurity(this: *mut core::ffi::c_void, requestedinformation: super::super::OBJECT_SECURITY_INFORMATION, ppsecuritydescriptor: *mut super::super::PSECURITY_DESCRIPTOR, fdefault: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityInformation_Impl::GetSecurity(this, core::mem::transmute_copy(&requestedinformation), core::mem::transmute_copy(&ppsecuritydescriptor), core::mem::transmute_copy(&fdefault)).into() @@ -311,7 +311,7 @@ impl windows_core::RuntimeName for ISecurityInformation {} windows_core::imp::define_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 { + pub unsafe fn IsDaclCanonical(&self, pdacl: *const super::super::ACL) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsDaclCanonical)(windows_core::Interface::as_raw(self), pdacl) } } #[cfg(feature = "Win32_System_Com")] @@ -325,7 +325,7 @@ impl ISecurityInformation2 { #[repr(C)] pub struct ISecurityInformation2_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsDaclCanonical: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::ACL) -> super::super::super::Foundation::BOOL, + pub IsDaclCanonical: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::ACL) -> windows_core::BOOL, #[cfg(feature = "Win32_System_Com")] pub LookupSids: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::super::PSID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -333,13 +333,13 @@ pub struct ISecurityInformation2_Vtbl { } #[cfg(feature = "Win32_System_Com")] pub trait ISecurityInformation2_Impl: windows_core::IUnknownImpl { - fn IsDaclCanonical(&self, pdacl: *const super::super::ACL) -> super::super::super::Foundation::BOOL; + fn IsDaclCanonical(&self, pdacl: *const super::super::ACL) -> windows_core::BOOL; fn LookupSids(&self, csids: u32, rgpsids: *const super::super::PSID) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl ISecurityInformation2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsDaclCanonical(this: *mut core::ffi::c_void, pdacl: *const super::super::ACL) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn IsDaclCanonical(this: *mut core::ffi::c_void, pdacl: *const super::super::ACL) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISecurityInformation2_Impl::IsDaclCanonical(this, core::mem::transmute_copy(&pdacl)) 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 32227ce2d4..c8ec3b0dc1 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs @@ -2,77 +2,77 @@ pub mod UI; #[inline] pub unsafe fn AuthzAccessCheck(flags: AUTHZ_ACCESS_CHECK_FLAGS, hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, prequest: *const AUTHZ_ACCESS_REQUEST, hauditevent: Option, psecuritydescriptor: super::PSECURITY_DESCRIPTOR, optionalsecuritydescriptorarray: Option<&[super::PSECURITY_DESCRIPTOR]>, preply: *mut AUTHZ_ACCESS_REPLY, phaccesscheckresults: Option<*mut AUTHZ_ACCESS_CHECK_RESULTS_HANDLE>) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzAccessCheck(flags : AUTHZ_ACCESS_CHECK_FLAGS, hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, prequest : *const AUTHZ_ACCESS_REQUEST, hauditevent : AUTHZ_AUDIT_EVENT_HANDLE, psecuritydescriptor : super:: PSECURITY_DESCRIPTOR, optionalsecuritydescriptorarray : *const super:: PSECURITY_DESCRIPTOR, optionalsecuritydescriptorcount : u32, preply : *mut AUTHZ_ACCESS_REPLY, phaccesscheckresults : *mut AUTHZ_ACCESS_CHECK_RESULTS_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzAccessCheck(flags : AUTHZ_ACCESS_CHECK_FLAGS, hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, prequest : *const AUTHZ_ACCESS_REQUEST, hauditevent : AUTHZ_AUDIT_EVENT_HANDLE, psecuritydescriptor : super:: PSECURITY_DESCRIPTOR, optionalsecuritydescriptorarray : *const super:: PSECURITY_DESCRIPTOR, optionalsecuritydescriptorcount : u32, preply : *mut AUTHZ_ACCESS_REPLY, phaccesscheckresults : *mut AUTHZ_ACCESS_CHECK_RESULTS_HANDLE) -> windows_core::BOOL); unsafe { AuthzAccessCheck(flags, hauthzclientcontext, prequest, hauditevent.unwrap_or(core::mem::zeroed()) as _, psecuritydescriptor, core::mem::transmute(optionalsecuritydescriptorarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), optionalsecuritydescriptorarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), preply as _, phaccesscheckresults.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn AuthzAddSidsToContext(hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, sids: Option<*const super::SID_AND_ATTRIBUTES>, sidcount: u32, restrictedsids: Option<*const super::SID_AND_ATTRIBUTES>, restrictedsidcount: u32, phnewauthzclientcontext: *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzAddSidsToContext(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, sids : *const super:: SID_AND_ATTRIBUTES, sidcount : u32, restrictedsids : *const super:: SID_AND_ATTRIBUTES, restrictedsidcount : u32, phnewauthzclientcontext : *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzAddSidsToContext(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, sids : *const super:: SID_AND_ATTRIBUTES, sidcount : u32, restrictedsids : *const super:: SID_AND_ATTRIBUTES, restrictedsidcount : u32, phnewauthzclientcontext : *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::BOOL); unsafe { AuthzAddSidsToContext(hauthzclientcontext, sids.unwrap_or(core::mem::zeroed()) as _, sidcount, restrictedsids.unwrap_or(core::mem::zeroed()) as _, restrictedsidcount, phnewauthzclientcontext as _).ok() } } #[inline] pub unsafe fn AuthzCachedAccessCheck(flags: u32, haccesscheckresults: AUTHZ_ACCESS_CHECK_RESULTS_HANDLE, prequest: *const AUTHZ_ACCESS_REQUEST, hauditevent: Option, preply: *mut AUTHZ_ACCESS_REPLY) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzCachedAccessCheck(flags : u32, haccesscheckresults : AUTHZ_ACCESS_CHECK_RESULTS_HANDLE, prequest : *const AUTHZ_ACCESS_REQUEST, hauditevent : AUTHZ_AUDIT_EVENT_HANDLE, preply : *mut AUTHZ_ACCESS_REPLY) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzCachedAccessCheck(flags : u32, haccesscheckresults : AUTHZ_ACCESS_CHECK_RESULTS_HANDLE, prequest : *const AUTHZ_ACCESS_REQUEST, hauditevent : AUTHZ_AUDIT_EVENT_HANDLE, preply : *mut AUTHZ_ACCESS_REPLY) -> windows_core::BOOL); unsafe { AuthzCachedAccessCheck(flags, haccesscheckresults, prequest, hauditevent.unwrap_or(core::mem::zeroed()) as _, preply as _).ok() } } #[inline] pub unsafe fn AuthzEnumerateSecurityEventSources(dwflags: u32, buffer: *mut AUTHZ_SOURCE_SCHEMA_REGISTRATION, pdwcount: *mut u32, pdwlength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzEnumerateSecurityEventSources(dwflags : u32, buffer : *mut AUTHZ_SOURCE_SCHEMA_REGISTRATION, pdwcount : *mut u32, pdwlength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzEnumerateSecurityEventSources(dwflags : u32, buffer : *mut AUTHZ_SOURCE_SCHEMA_REGISTRATION, pdwcount : *mut u32, pdwlength : *mut u32) -> windows_core::BOOL); unsafe { AuthzEnumerateSecurityEventSources(dwflags, buffer as _, pdwcount as _, pdwlength as _).ok() } } #[inline] -pub unsafe fn AuthzEvaluateSacl(authzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, prequest: *const AUTHZ_ACCESS_REQUEST, sacl: *const super::ACL, grantedaccess: u32, accessgranted: bool, pbgenerateaudit: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { - windows_targets::link!("authz.dll" "system" fn AuthzEvaluateSacl(authzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, prequest : *const AUTHZ_ACCESS_REQUEST, sacl : *const super:: ACL, grantedaccess : u32, accessgranted : super::super::Foundation:: BOOL, pbgenerateaudit : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn AuthzEvaluateSacl(authzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, prequest: *const AUTHZ_ACCESS_REQUEST, sacl: *const super::ACL, grantedaccess: u32, accessgranted: bool, pbgenerateaudit: *mut windows_core::BOOL) -> windows_core::BOOL { + windows_targets::link!("authz.dll" "system" fn AuthzEvaluateSacl(authzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, prequest : *const AUTHZ_ACCESS_REQUEST, sacl : *const super:: ACL, grantedaccess : u32, accessgranted : windows_core::BOOL, pbgenerateaudit : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { AuthzEvaluateSacl(authzclientcontext, prequest, sacl, grantedaccess, accessgranted.into(), pbgenerateaudit as _) } } #[inline] pub unsafe fn AuthzFreeAuditEvent(hauditevent: AUTHZ_AUDIT_EVENT_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzFreeAuditEvent(hauditevent : AUTHZ_AUDIT_EVENT_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzFreeAuditEvent(hauditevent : AUTHZ_AUDIT_EVENT_HANDLE) -> windows_core::BOOL); unsafe { AuthzFreeAuditEvent(hauditevent).ok() } } #[inline] pub unsafe fn AuthzFreeCentralAccessPolicyCache() -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzFreeCentralAccessPolicyCache() -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzFreeCentralAccessPolicyCache() -> windows_core::BOOL); unsafe { AuthzFreeCentralAccessPolicyCache().ok() } } #[inline] pub unsafe fn AuthzFreeContext(hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzFreeContext(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzFreeContext(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::BOOL); unsafe { AuthzFreeContext(hauthzclientcontext).ok() } } #[inline] pub unsafe fn AuthzFreeHandle(haccesscheckresults: AUTHZ_ACCESS_CHECK_RESULTS_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzFreeHandle(haccesscheckresults : AUTHZ_ACCESS_CHECK_RESULTS_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzFreeHandle(haccesscheckresults : AUTHZ_ACCESS_CHECK_RESULTS_HANDLE) -> windows_core::BOOL); unsafe { AuthzFreeHandle(haccesscheckresults as _).ok() } } #[inline] pub unsafe fn AuthzFreeResourceManager(hauthzresourcemanager: AUTHZ_RESOURCE_MANAGER_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzFreeResourceManager(hauthzresourcemanager : AUTHZ_RESOURCE_MANAGER_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzFreeResourceManager(hauthzresourcemanager : AUTHZ_RESOURCE_MANAGER_HANDLE) -> windows_core::BOOL); unsafe { AuthzFreeResourceManager(hauthzresourcemanager).ok() } } #[inline] pub unsafe fn AuthzGetInformationFromContext(hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, infoclass: AUTHZ_CONTEXT_INFORMATION_CLASS, buffersize: u32, psizerequired: *mut u32, buffer: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzGetInformationFromContext(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, infoclass : AUTHZ_CONTEXT_INFORMATION_CLASS, buffersize : u32, psizerequired : *mut u32, buffer : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzGetInformationFromContext(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, infoclass : AUTHZ_CONTEXT_INFORMATION_CLASS, buffersize : u32, psizerequired : *mut u32, buffer : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { AuthzGetInformationFromContext(hauthzclientcontext, infoclass, buffersize, psizerequired as _, buffer as _).ok() } } #[inline] pub unsafe fn AuthzInitializeCompoundContext(usercontext: AUTHZ_CLIENT_CONTEXT_HANDLE, devicecontext: AUTHZ_CLIENT_CONTEXT_HANDLE, phcompoundcontext: *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzInitializeCompoundContext(usercontext : AUTHZ_CLIENT_CONTEXT_HANDLE, devicecontext : AUTHZ_CLIENT_CONTEXT_HANDLE, phcompoundcontext : *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzInitializeCompoundContext(usercontext : AUTHZ_CLIENT_CONTEXT_HANDLE, devicecontext : AUTHZ_CLIENT_CONTEXT_HANDLE, phcompoundcontext : *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::BOOL); unsafe { AuthzInitializeCompoundContext(usercontext, devicecontext, phcompoundcontext as _).ok() } } #[inline] pub unsafe fn AuthzInitializeContextFromAuthzContext(flags: u32, hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, pexpirationtime: Option<*const i64>, identifier: super::super::Foundation::LUID, dynamicgroupargs: *const core::ffi::c_void, phnewauthzclientcontext: *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzInitializeContextFromAuthzContext(flags : u32, hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, pexpirationtime : *const i64, identifier : super::super::Foundation:: LUID, dynamicgroupargs : *const core::ffi::c_void, phnewauthzclientcontext : *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzInitializeContextFromAuthzContext(flags : u32, hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, pexpirationtime : *const i64, identifier : super::super::Foundation:: LUID, dynamicgroupargs : *const core::ffi::c_void, phnewauthzclientcontext : *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::BOOL); unsafe { AuthzInitializeContextFromAuthzContext(flags, hauthzclientcontext, pexpirationtime.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(identifier), dynamicgroupargs, phnewauthzclientcontext as _).ok() } } #[inline] pub unsafe fn AuthzInitializeContextFromSid(flags: u32, usersid: super::PSID, hauthzresourcemanager: AUTHZ_RESOURCE_MANAGER_HANDLE, pexpirationtime: Option<*const i64>, identifier: super::super::Foundation::LUID, dynamicgroupargs: Option<*const core::ffi::c_void>, phauthzclientcontext: *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzInitializeContextFromSid(flags : u32, usersid : super:: PSID, hauthzresourcemanager : AUTHZ_RESOURCE_MANAGER_HANDLE, pexpirationtime : *const i64, identifier : super::super::Foundation:: LUID, dynamicgroupargs : *const core::ffi::c_void, phauthzclientcontext : *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzInitializeContextFromSid(flags : u32, usersid : super:: PSID, hauthzresourcemanager : AUTHZ_RESOURCE_MANAGER_HANDLE, pexpirationtime : *const i64, identifier : super::super::Foundation:: LUID, dynamicgroupargs : *const core::ffi::c_void, phauthzclientcontext : *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::BOOL); unsafe { AuthzInitializeContextFromSid(flags, usersid, hauthzresourcemanager, pexpirationtime.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(identifier), dynamicgroupargs.unwrap_or(core::mem::zeroed()) as _, phauthzclientcontext as _).ok() } } #[inline] pub unsafe fn AuthzInitializeContextFromToken(flags: u32, tokenhandle: super::super::Foundation::HANDLE, hauthzresourcemanager: AUTHZ_RESOURCE_MANAGER_HANDLE, pexpirationtime: Option<*const i64>, identifier: super::super::Foundation::LUID, dynamicgroupargs: Option<*const core::ffi::c_void>, phauthzclientcontext: *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzInitializeContextFromToken(flags : u32, tokenhandle : super::super::Foundation:: HANDLE, hauthzresourcemanager : AUTHZ_RESOURCE_MANAGER_HANDLE, pexpirationtime : *const i64, identifier : super::super::Foundation:: LUID, dynamicgroupargs : *const core::ffi::c_void, phauthzclientcontext : *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzInitializeContextFromToken(flags : u32, tokenhandle : super::super::Foundation:: HANDLE, hauthzresourcemanager : AUTHZ_RESOURCE_MANAGER_HANDLE, pexpirationtime : *const i64, identifier : super::super::Foundation:: LUID, dynamicgroupargs : *const core::ffi::c_void, phauthzclientcontext : *mut AUTHZ_CLIENT_CONTEXT_HANDLE) -> windows_core::BOOL); unsafe { AuthzInitializeContextFromToken(flags, tokenhandle, hauthzresourcemanager, pexpirationtime.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(identifier), dynamicgroupargs.unwrap_or(core::mem::zeroed()) as _, phauthzclientcontext as _).ok() } } #[inline] @@ -83,7 +83,7 @@ where P4: windows_core::Param, P5: windows_core::Param, { - windows_targets::link!("authz.dll" "cdecl" fn AuthzInitializeObjectAccessAuditEvent(flags : AUTHZ_INITIALIZE_OBJECT_ACCESS_AUDIT_EVENT_FLAGS, hauditeventtype : AUTHZ_AUDIT_EVENT_TYPE_HANDLE, szoperationtype : windows_core::PCWSTR, szobjecttype : windows_core::PCWSTR, szobjectname : windows_core::PCWSTR, szadditionalinfo : windows_core::PCWSTR, phauditevent : *mut AUTHZ_AUDIT_EVENT_HANDLE, dwadditionalparametercount : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "cdecl" fn AuthzInitializeObjectAccessAuditEvent(flags : AUTHZ_INITIALIZE_OBJECT_ACCESS_AUDIT_EVENT_FLAGS, hauditeventtype : AUTHZ_AUDIT_EVENT_TYPE_HANDLE, szoperationtype : windows_core::PCWSTR, szobjecttype : windows_core::PCWSTR, szobjectname : windows_core::PCWSTR, szadditionalinfo : windows_core::PCWSTR, phauditevent : *mut AUTHZ_AUDIT_EVENT_HANDLE, dwadditionalparametercount : u32) -> windows_core::BOOL); unsafe { AuthzInitializeObjectAccessAuditEvent(flags, hauditeventtype, szoperationtype.param().abi(), szobjecttype.param().abi(), szobjectname.param().abi(), szadditionalinfo.param().abi(), phauditevent as _, dwadditionalparametercount).ok() } } #[inline] @@ -95,12 +95,12 @@ where P5: windows_core::Param, P6: windows_core::Param, { - windows_targets::link!("authz.dll" "cdecl" fn AuthzInitializeObjectAccessAuditEvent2(flags : u32, hauditeventtype : AUTHZ_AUDIT_EVENT_TYPE_HANDLE, szoperationtype : windows_core::PCWSTR, szobjecttype : windows_core::PCWSTR, szobjectname : windows_core::PCWSTR, szadditionalinfo : windows_core::PCWSTR, szadditionalinfo2 : windows_core::PCWSTR, phauditevent : *mut AUTHZ_AUDIT_EVENT_HANDLE, dwadditionalparametercount : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "cdecl" fn AuthzInitializeObjectAccessAuditEvent2(flags : u32, hauditeventtype : AUTHZ_AUDIT_EVENT_TYPE_HANDLE, szoperationtype : windows_core::PCWSTR, szobjecttype : windows_core::PCWSTR, szobjectname : windows_core::PCWSTR, szadditionalinfo : windows_core::PCWSTR, szadditionalinfo2 : windows_core::PCWSTR, phauditevent : *mut AUTHZ_AUDIT_EVENT_HANDLE, dwadditionalparametercount : u32) -> windows_core::BOOL); unsafe { AuthzInitializeObjectAccessAuditEvent2(flags, hauditeventtype, szoperationtype.param().abi(), szobjecttype.param().abi(), szobjectname.param().abi(), szadditionalinfo.param().abi(), szadditionalinfo2.param().abi(), phauditevent as _, dwadditionalparametercount).ok() } } #[inline] pub unsafe fn AuthzInitializeRemoteResourceManager(prpcinitinfo: *const AUTHZ_RPC_INIT_INFO_CLIENT, phauthzresourcemanager: *mut AUTHZ_RESOURCE_MANAGER_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzInitializeRemoteResourceManager(prpcinitinfo : *const AUTHZ_RPC_INIT_INFO_CLIENT, phauthzresourcemanager : *mut AUTHZ_RESOURCE_MANAGER_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzInitializeRemoteResourceManager(prpcinitinfo : *const AUTHZ_RPC_INIT_INFO_CLIENT, phauthzresourcemanager : *mut AUTHZ_RESOURCE_MANAGER_HANDLE) -> windows_core::BOOL); unsafe { AuthzInitializeRemoteResourceManager(prpcinitinfo, phauthzresourcemanager as _).ok() } } #[inline] @@ -108,43 +108,43 @@ pub unsafe fn AuthzInitializeResourceManager(flags: u32, pfndynamicaccessche where P4: windows_core::Param, { - windows_targets::link!("authz.dll" "system" fn AuthzInitializeResourceManager(flags : u32, pfndynamicaccesscheck : PFN_AUTHZ_DYNAMIC_ACCESS_CHECK, pfncomputedynamicgroups : PFN_AUTHZ_COMPUTE_DYNAMIC_GROUPS, pfnfreedynamicgroups : PFN_AUTHZ_FREE_DYNAMIC_GROUPS, szresourcemanagername : windows_core::PCWSTR, phauthzresourcemanager : *mut AUTHZ_RESOURCE_MANAGER_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzInitializeResourceManager(flags : u32, pfndynamicaccesscheck : PFN_AUTHZ_DYNAMIC_ACCESS_CHECK, pfncomputedynamicgroups : PFN_AUTHZ_COMPUTE_DYNAMIC_GROUPS, pfnfreedynamicgroups : PFN_AUTHZ_FREE_DYNAMIC_GROUPS, szresourcemanagername : windows_core::PCWSTR, phauthzresourcemanager : *mut AUTHZ_RESOURCE_MANAGER_HANDLE) -> windows_core::BOOL); unsafe { AuthzInitializeResourceManager(flags, pfndynamicaccesscheck.unwrap_or(core::mem::zeroed()) as _, pfncomputedynamicgroups.unwrap_or(core::mem::zeroed()) as _, pfnfreedynamicgroups.unwrap_or(core::mem::zeroed()) as _, szresourcemanagername.param().abi(), phauthzresourcemanager as _).ok() } } #[inline] pub unsafe fn AuthzInitializeResourceManagerEx(flags: Option, pauthzinitinfo: Option<*const AUTHZ_INIT_INFO>, phauthzresourcemanager: *mut AUTHZ_RESOURCE_MANAGER_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzInitializeResourceManagerEx(flags : AUTHZ_RESOURCE_MANAGER_FLAGS, pauthzinitinfo : *const AUTHZ_INIT_INFO, phauthzresourcemanager : *mut AUTHZ_RESOURCE_MANAGER_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzInitializeResourceManagerEx(flags : AUTHZ_RESOURCE_MANAGER_FLAGS, pauthzinitinfo : *const AUTHZ_INIT_INFO, phauthzresourcemanager : *mut AUTHZ_RESOURCE_MANAGER_HANDLE) -> windows_core::BOOL); unsafe { AuthzInitializeResourceManagerEx(flags.unwrap_or(core::mem::zeroed()) as _, pauthzinitinfo.unwrap_or(core::mem::zeroed()) as _, phauthzresourcemanager as _).ok() } } #[inline] pub unsafe fn AuthzInstallSecurityEventSource(dwflags: u32, pregistration: *const AUTHZ_SOURCE_SCHEMA_REGISTRATION) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzInstallSecurityEventSource(dwflags : u32, pregistration : *const AUTHZ_SOURCE_SCHEMA_REGISTRATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzInstallSecurityEventSource(dwflags : u32, pregistration : *const AUTHZ_SOURCE_SCHEMA_REGISTRATION) -> windows_core::BOOL); unsafe { AuthzInstallSecurityEventSource(dwflags, pregistration).ok() } } #[inline] pub unsafe fn AuthzModifyClaims(hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, claimclass: AUTHZ_CONTEXT_INFORMATION_CLASS, pclaimoperations: *const AUTHZ_SECURITY_ATTRIBUTE_OPERATION, pclaims: Option<*const AUTHZ_SECURITY_ATTRIBUTES_INFORMATION>) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzModifyClaims(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, claimclass : AUTHZ_CONTEXT_INFORMATION_CLASS, pclaimoperations : *const AUTHZ_SECURITY_ATTRIBUTE_OPERATION, pclaims : *const AUTHZ_SECURITY_ATTRIBUTES_INFORMATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzModifyClaims(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, claimclass : AUTHZ_CONTEXT_INFORMATION_CLASS, pclaimoperations : *const AUTHZ_SECURITY_ATTRIBUTE_OPERATION, pclaims : *const AUTHZ_SECURITY_ATTRIBUTES_INFORMATION) -> windows_core::BOOL); unsafe { AuthzModifyClaims(hauthzclientcontext, claimclass, pclaimoperations, pclaims.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn AuthzModifySecurityAttributes(hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, poperations: *const AUTHZ_SECURITY_ATTRIBUTE_OPERATION, pattributes: Option<*const AUTHZ_SECURITY_ATTRIBUTES_INFORMATION>) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzModifySecurityAttributes(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, poperations : *const AUTHZ_SECURITY_ATTRIBUTE_OPERATION, pattributes : *const AUTHZ_SECURITY_ATTRIBUTES_INFORMATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzModifySecurityAttributes(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, poperations : *const AUTHZ_SECURITY_ATTRIBUTE_OPERATION, pattributes : *const AUTHZ_SECURITY_ATTRIBUTES_INFORMATION) -> windows_core::BOOL); unsafe { AuthzModifySecurityAttributes(hauthzclientcontext, poperations, pattributes.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn AuthzModifySids(hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, sidclass: AUTHZ_CONTEXT_INFORMATION_CLASS, psidoperations: *const AUTHZ_SID_OPERATION, psids: Option<*const super::TOKEN_GROUPS>) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzModifySids(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, sidclass : AUTHZ_CONTEXT_INFORMATION_CLASS, psidoperations : *const AUTHZ_SID_OPERATION, psids : *const super:: TOKEN_GROUPS) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzModifySids(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, sidclass : AUTHZ_CONTEXT_INFORMATION_CLASS, psidoperations : *const AUTHZ_SID_OPERATION, psids : *const super:: TOKEN_GROUPS) -> windows_core::BOOL); unsafe { AuthzModifySids(hauthzclientcontext, sidclass, psidoperations, psids.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn AuthzOpenObjectAudit(flags: u32, hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, prequest: *const AUTHZ_ACCESS_REQUEST, hauditevent: AUTHZ_AUDIT_EVENT_HANDLE, psecuritydescriptor: super::PSECURITY_DESCRIPTOR, optionalsecuritydescriptorarray: Option<&[super::PSECURITY_DESCRIPTOR]>, preply: *const AUTHZ_ACCESS_REPLY) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzOpenObjectAudit(flags : u32, hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, prequest : *const AUTHZ_ACCESS_REQUEST, hauditevent : AUTHZ_AUDIT_EVENT_HANDLE, psecuritydescriptor : super:: PSECURITY_DESCRIPTOR, optionalsecuritydescriptorarray : *const super:: PSECURITY_DESCRIPTOR, optionalsecuritydescriptorcount : u32, preply : *const AUTHZ_ACCESS_REPLY) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzOpenObjectAudit(flags : u32, hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, prequest : *const AUTHZ_ACCESS_REQUEST, hauditevent : AUTHZ_AUDIT_EVENT_HANDLE, psecuritydescriptor : super:: PSECURITY_DESCRIPTOR, optionalsecuritydescriptorarray : *const super:: PSECURITY_DESCRIPTOR, optionalsecuritydescriptorcount : u32, preply : *const AUTHZ_ACCESS_REPLY) -> windows_core::BOOL); unsafe { AuthzOpenObjectAudit(flags, hauthzclientcontext, prequest, hauditevent, psecuritydescriptor, core::mem::transmute(optionalsecuritydescriptorarray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), optionalsecuritydescriptorarray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), preply).ok() } } #[cfg(feature = "Win32_System_Threading")] #[inline] pub unsafe fn AuthzRegisterCapChangeNotification(phcapchangesubscription: *mut AUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE, pfncapchangecallback: super::super::System::Threading::LPTHREAD_START_ROUTINE, pcallbackcontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzRegisterCapChangeNotification(phcapchangesubscription : *mut AUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE, pfncapchangecallback : super::super::System::Threading:: LPTHREAD_START_ROUTINE, pcallbackcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzRegisterCapChangeNotification(phcapchangesubscription : *mut AUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE, pfncapchangecallback : super::super::System::Threading:: LPTHREAD_START_ROUTINE, pcallbackcontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { AuthzRegisterCapChangeNotification(phcapchangesubscription as _, pfncapchangecallback, pcallbackcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -152,22 +152,22 @@ pub unsafe fn AuthzRegisterSecurityEventSource(dwflags: u32, szeventsourcena where P1: windows_core::Param, { - windows_targets::link!("authz.dll" "system" fn AuthzRegisterSecurityEventSource(dwflags : u32, szeventsourcename : windows_core::PCWSTR, pheventprovider : *mut AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzRegisterSecurityEventSource(dwflags : u32, szeventsourcename : windows_core::PCWSTR, pheventprovider : *mut AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE) -> windows_core::BOOL); unsafe { AuthzRegisterSecurityEventSource(dwflags, szeventsourcename.param().abi(), pheventprovider as _).ok() } } #[inline] pub unsafe fn AuthzReportSecurityEvent(dwflags: u32, heventprovider: AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE, dwauditid: u32, pusersid: Option, dwcount: u32) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "cdecl" fn AuthzReportSecurityEvent(dwflags : u32, heventprovider : AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE, dwauditid : u32, pusersid : super:: PSID, dwcount : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "cdecl" fn AuthzReportSecurityEvent(dwflags : u32, heventprovider : AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE, dwauditid : u32, pusersid : super:: PSID, dwcount : u32) -> windows_core::BOOL); unsafe { AuthzReportSecurityEvent(dwflags, heventprovider as _, dwauditid, pusersid.unwrap_or(core::mem::zeroed()) as _, dwcount).ok() } } #[inline] pub unsafe fn AuthzReportSecurityEventFromParams(dwflags: u32, heventprovider: AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE, dwauditid: u32, pusersid: Option, pparams: *const AUDIT_PARAMS) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzReportSecurityEventFromParams(dwflags : u32, heventprovider : AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE, dwauditid : u32, pusersid : super:: PSID, pparams : *const AUDIT_PARAMS) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzReportSecurityEventFromParams(dwflags : u32, heventprovider : AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE, dwauditid : u32, pusersid : super:: PSID, pparams : *const AUDIT_PARAMS) -> windows_core::BOOL); unsafe { AuthzReportSecurityEventFromParams(dwflags, heventprovider as _, dwauditid, pusersid.unwrap_or(core::mem::zeroed()) as _, pparams).ok() } } #[inline] pub unsafe fn AuthzSetAppContainerInformation(hauthzclientcontext: AUTHZ_CLIENT_CONTEXT_HANDLE, pappcontainersid: super::PSID, pcapabilitysids: Option<&[super::SID_AND_ATTRIBUTES]>) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzSetAppContainerInformation(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, pappcontainersid : super:: PSID, capabilitycount : u32, pcapabilitysids : *const super:: SID_AND_ATTRIBUTES) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzSetAppContainerInformation(hauthzclientcontext : AUTHZ_CLIENT_CONTEXT_HANDLE, pappcontainersid : super:: PSID, capabilitycount : u32, pcapabilitysids : *const super:: SID_AND_ATTRIBUTES) -> windows_core::BOOL); unsafe { AuthzSetAppContainerInformation(hauthzclientcontext, pappcontainersid, pcapabilitysids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pcapabilitysids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } } #[inline] @@ -175,17 +175,17 @@ pub unsafe fn AuthzUninstallSecurityEventSource(dwflags: u32, szeventsourcen where P1: windows_core::Param, { - windows_targets::link!("authz.dll" "system" fn AuthzUninstallSecurityEventSource(dwflags : u32, szeventsourcename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzUninstallSecurityEventSource(dwflags : u32, szeventsourcename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { AuthzUninstallSecurityEventSource(dwflags, szeventsourcename.param().abi()).ok() } } #[inline] pub unsafe fn AuthzUnregisterCapChangeNotification(hcapchangesubscription: AUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzUnregisterCapChangeNotification(hcapchangesubscription : AUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzUnregisterCapChangeNotification(hcapchangesubscription : AUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE) -> windows_core::BOOL); unsafe { AuthzUnregisterCapChangeNotification(hcapchangesubscription).ok() } } #[inline] pub unsafe fn AuthzUnregisterSecurityEventSource(dwflags: u32, pheventprovider: *mut AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("authz.dll" "system" fn AuthzUnregisterSecurityEventSource(dwflags : u32, pheventprovider : *mut AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("authz.dll" "system" fn AuthzUnregisterSecurityEventSource(dwflags : u32, pheventprovider : *mut AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE) -> windows_core::BOOL); unsafe { AuthzUnregisterSecurityEventSource(dwflags, pheventprovider as _).ok() } } #[inline] @@ -322,22 +322,22 @@ pub unsafe fn BuildTrusteeWithSidW(ptrustee: *mut TRUSTEE_W, psid: Option) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ConvertSecurityDescriptorToStringSecurityDescriptorA(securitydescriptor : super:: PSECURITY_DESCRIPTOR, requestedstringsdrevision : u32, securityinformation : super:: OBJECT_SECURITY_INFORMATION, stringsecuritydescriptor : *mut windows_core::PSTR, stringsecuritydescriptorlen : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ConvertSecurityDescriptorToStringSecurityDescriptorA(securitydescriptor : super:: PSECURITY_DESCRIPTOR, requestedstringsdrevision : u32, securityinformation : super:: OBJECT_SECURITY_INFORMATION, stringsecuritydescriptor : *mut windows_core::PSTR, stringsecuritydescriptorlen : *mut u32) -> windows_core::BOOL); unsafe { ConvertSecurityDescriptorToStringSecurityDescriptorA(securitydescriptor, requestedstringsdrevision, securityinformation, stringsecuritydescriptor as _, stringsecuritydescriptorlen.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn ConvertSecurityDescriptorToStringSecurityDescriptorW(securitydescriptor: super::PSECURITY_DESCRIPTOR, requestedstringsdrevision: u32, securityinformation: super::OBJECT_SECURITY_INFORMATION, stringsecuritydescriptor: *mut windows_core::PWSTR, stringsecuritydescriptorlen: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ConvertSecurityDescriptorToStringSecurityDescriptorW(securitydescriptor : super:: PSECURITY_DESCRIPTOR, requestedstringsdrevision : u32, securityinformation : super:: OBJECT_SECURITY_INFORMATION, stringsecuritydescriptor : *mut windows_core::PWSTR, stringsecuritydescriptorlen : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ConvertSecurityDescriptorToStringSecurityDescriptorW(securitydescriptor : super:: PSECURITY_DESCRIPTOR, requestedstringsdrevision : u32, securityinformation : super:: OBJECT_SECURITY_INFORMATION, stringsecuritydescriptor : *mut windows_core::PWSTR, stringsecuritydescriptorlen : *mut u32) -> windows_core::BOOL); unsafe { ConvertSecurityDescriptorToStringSecurityDescriptorW(securitydescriptor, requestedstringsdrevision, securityinformation, stringsecuritydescriptor as _, stringsecuritydescriptorlen.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn ConvertSidToStringSidA(sid: super::PSID, stringsid: *mut windows_core::PSTR) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ConvertSidToStringSidA(sid : super:: PSID, stringsid : *mut windows_core::PSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ConvertSidToStringSidA(sid : super:: PSID, stringsid : *mut windows_core::PSTR) -> windows_core::BOOL); unsafe { ConvertSidToStringSidA(sid, stringsid as _).ok() } } #[inline] pub unsafe fn ConvertSidToStringSidW(sid: super::PSID, stringsid: *mut windows_core::PWSTR) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ConvertSidToStringSidW(sid : super:: PSID, stringsid : *mut windows_core::PWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ConvertSidToStringSidW(sid : super:: PSID, stringsid : *mut windows_core::PWSTR) -> windows_core::BOOL); unsafe { ConvertSidToStringSidW(sid, stringsid as _).ok() } } #[inline] @@ -345,7 +345,7 @@ pub unsafe fn ConvertStringSecurityDescriptorToSecurityDescriptorA(stringsec where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn ConvertStringSecurityDescriptorToSecurityDescriptorA(stringsecuritydescriptor : windows_core::PCSTR, stringsdrevision : u32, securitydescriptor : *mut super:: PSECURITY_DESCRIPTOR, securitydescriptorsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ConvertStringSecurityDescriptorToSecurityDescriptorA(stringsecuritydescriptor : windows_core::PCSTR, stringsdrevision : u32, securitydescriptor : *mut super:: PSECURITY_DESCRIPTOR, securitydescriptorsize : *mut u32) -> windows_core::BOOL); unsafe { ConvertStringSecurityDescriptorToSecurityDescriptorA(stringsecuritydescriptor.param().abi(), stringsdrevision, securitydescriptor as _, securitydescriptorsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -353,7 +353,7 @@ pub unsafe fn ConvertStringSecurityDescriptorToSecurityDescriptorW(stringsec where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn ConvertStringSecurityDescriptorToSecurityDescriptorW(stringsecuritydescriptor : windows_core::PCWSTR, stringsdrevision : u32, securitydescriptor : *mut super:: PSECURITY_DESCRIPTOR, securitydescriptorsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ConvertStringSecurityDescriptorToSecurityDescriptorW(stringsecuritydescriptor : windows_core::PCWSTR, stringsdrevision : u32, securitydescriptor : *mut super:: PSECURITY_DESCRIPTOR, securitydescriptorsize : *mut u32) -> windows_core::BOOL); unsafe { ConvertStringSecurityDescriptorToSecurityDescriptorW(stringsecuritydescriptor.param().abi(), stringsdrevision, securitydescriptor as _, securitydescriptorsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -361,7 +361,7 @@ pub unsafe fn ConvertStringSidToSidA(stringsid: P0, sid: *mut super::PSID) - where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn ConvertStringSidToSidA(stringsid : windows_core::PCSTR, sid : *mut super:: PSID) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ConvertStringSidToSidA(stringsid : windows_core::PCSTR, sid : *mut super:: PSID) -> windows_core::BOOL); unsafe { ConvertStringSidToSidA(stringsid.param().abi(), sid as _).ok() } } #[inline] @@ -369,7 +369,7 @@ pub unsafe fn ConvertStringSidToSidW(stringsid: P0, sid: *mut super::PSID) - where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn ConvertStringSidToSidW(stringsid : windows_core::PCWSTR, sid : *mut super:: PSID) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ConvertStringSidToSidW(stringsid : windows_core::PCWSTR, sid : *mut super:: PSID) -> windows_core::BOOL); unsafe { ConvertStringSidToSidW(stringsid.param().abi(), sid as _).ok() } } #[inline] @@ -412,7 +412,7 @@ pub unsafe fn GetInheritanceSourceA(pobjectname: P0, objecttype: SE_OBJECT_T where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn GetInheritanceSourceA(pobjectname : windows_core::PCSTR, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, container : super::super::Foundation:: BOOL, pobjectclassguids : *const *const windows_core::GUID, guidcount : u32, pacl : *const super:: ACL, pfnarray : *const FN_OBJECT_MGR_FUNCTS, pgenericmapping : *const super:: GENERIC_MAPPING, pinheritarray : *mut INHERITED_FROMA) -> super::super::Foundation:: WIN32_ERROR); + windows_targets::link!("advapi32.dll" "system" fn GetInheritanceSourceA(pobjectname : windows_core::PCSTR, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, container : windows_core::BOOL, pobjectclassguids : *const *const windows_core::GUID, guidcount : u32, pacl : *const super:: ACL, pfnarray : *const FN_OBJECT_MGR_FUNCTS, pgenericmapping : *const super:: GENERIC_MAPPING, pinheritarray : *mut INHERITED_FROMA) -> super::super::Foundation:: WIN32_ERROR); unsafe { GetInheritanceSourceA(pobjectname.param().abi(), objecttype, securityinfo, container.into(), core::mem::transmute(pobjectclassguids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pobjectclassguids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pacl, pfnarray.unwrap_or(core::mem::zeroed()) as _, pgenericmapping, pinheritarray as _) } } #[inline] @@ -420,7 +420,7 @@ pub unsafe fn GetInheritanceSourceW(pobjectname: P0, objecttype: SE_OBJECT_T where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn GetInheritanceSourceW(pobjectname : windows_core::PCWSTR, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, container : super::super::Foundation:: BOOL, pobjectclassguids : *const *const windows_core::GUID, guidcount : u32, pacl : *const super:: ACL, pfnarray : *const FN_OBJECT_MGR_FUNCTS, pgenericmapping : *const super:: GENERIC_MAPPING, pinheritarray : *mut INHERITED_FROMW) -> super::super::Foundation:: WIN32_ERROR); + windows_targets::link!("advapi32.dll" "system" fn GetInheritanceSourceW(pobjectname : windows_core::PCWSTR, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, container : windows_core::BOOL, pobjectclassguids : *const *const windows_core::GUID, guidcount : u32, pacl : *const super:: ACL, pfnarray : *const FN_OBJECT_MGR_FUNCTS, pgenericmapping : *const super:: GENERIC_MAPPING, pinheritarray : *mut INHERITED_FROMW) -> super::super::Foundation:: WIN32_ERROR); unsafe { GetInheritanceSourceW(pobjectname.param().abi(), objecttype, securityinfo, container.into(), core::mem::transmute(pobjectclassguids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pobjectclassguids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pacl, pfnarray.unwrap_or(core::mem::zeroed()) as _, pgenericmapping, pinheritarray as _) } } #[inline] @@ -540,7 +540,7 @@ pub unsafe fn TreeResetNamedSecurityInfoA(pobjectname: P0, objecttype: SE_OB where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn TreeResetNamedSecurityInfoA(pobjectname : windows_core::PCSTR, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, powner : super:: PSID, pgroup : super:: PSID, pdacl : *const super:: ACL, psacl : *const super:: ACL, keepexplicit : super::super::Foundation:: BOOL, fnprogress : FN_PROGRESS, progressinvokesetting : PROG_INVOKE_SETTING, args : *const core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); + windows_targets::link!("advapi32.dll" "system" fn TreeResetNamedSecurityInfoA(pobjectname : windows_core::PCSTR, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, powner : super:: PSID, pgroup : super:: PSID, pdacl : *const super:: ACL, psacl : *const super:: ACL, keepexplicit : windows_core::BOOL, fnprogress : FN_PROGRESS, progressinvokesetting : PROG_INVOKE_SETTING, args : *const core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); unsafe { TreeResetNamedSecurityInfoA(pobjectname.param().abi(), objecttype, securityinfo, powner.unwrap_or(core::mem::zeroed()) as _, pgroup.unwrap_or(core::mem::zeroed()) as _, pdacl.unwrap_or(core::mem::zeroed()) as _, psacl.unwrap_or(core::mem::zeroed()) as _, keepexplicit.into(), fnprogress.unwrap_or(core::mem::zeroed()) as _, progressinvokesetting, args.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -548,7 +548,7 @@ pub unsafe fn TreeResetNamedSecurityInfoW(pobjectname: P0, objecttype: SE_OB where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn TreeResetNamedSecurityInfoW(pobjectname : windows_core::PCWSTR, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, powner : super:: PSID, pgroup : super:: PSID, pdacl : *const super:: ACL, psacl : *const super:: ACL, keepexplicit : super::super::Foundation:: BOOL, fnprogress : FN_PROGRESS, progressinvokesetting : PROG_INVOKE_SETTING, args : *const core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); + windows_targets::link!("advapi32.dll" "system" fn TreeResetNamedSecurityInfoW(pobjectname : windows_core::PCWSTR, objecttype : SE_OBJECT_TYPE, securityinfo : super:: OBJECT_SECURITY_INFORMATION, powner : super:: PSID, pgroup : super:: PSID, pdacl : *const super:: ACL, psacl : *const super:: ACL, keepexplicit : windows_core::BOOL, fnprogress : FN_PROGRESS, progressinvokesetting : PROG_INVOKE_SETTING, args : *const core::ffi::c_void) -> super::super::Foundation:: WIN32_ERROR); unsafe { TreeResetNamedSecurityInfoW(pobjectname.param().abi(), objecttype, securityinfo, powner.unwrap_or(core::mem::zeroed()) as _, pgroup.unwrap_or(core::mem::zeroed()) as _, pdacl.unwrap_or(core::mem::zeroed()) as _, psacl.unwrap_or(core::mem::zeroed()) as _, keepexplicit.into(), fnprogress.unwrap_or(core::mem::zeroed()) as _, progressinvokesetting, args.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1601,7 +1601,7 @@ impl Default for FN_OBJECT_MGR_FUNCTS { unsafe { core::mem::zeroed() } } } -pub type FN_PROGRESS = Option; +pub type FN_PROGRESS = Option; pub const GRANT_ACCESS: ACCESS_MODE = ACCESS_MODE(1i32); #[cfg(feature = "Win32_System_Com")] windows_core::imp::define_interface!(IAzApplication, IAzApplication_Vtbl, 0x987bc7c7_b813_4d27_bede_6ba5ae867e95); @@ -1661,7 +1661,7 @@ impl IAzApplication { pub unsafe fn SetVersion(&self, bstrprop: &windows_core::BSTR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetVersion)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprop)).ok() } } - pub unsafe fn GenerateAudits(&self) -> windows_core::Result { + pub unsafe fn GenerateAudits(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GenerateAudits)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1670,7 +1670,7 @@ impl IAzApplication { pub unsafe fn SetGenerateAudits(&self, bprop: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetGenerateAudits)(windows_core::Interface::as_raw(self), bprop.into()).ok() } } - pub unsafe fn ApplyStoreSacl(&self) -> windows_core::Result { + pub unsafe fn ApplyStoreSacl(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ApplyStoreSacl)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1679,7 +1679,7 @@ impl IAzApplication { pub unsafe fn SetApplyStoreSacl(&self, bprop: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetApplyStoreSacl)(windows_core::Interface::as_raw(self), bprop.into()).ok() } } - pub unsafe fn Writable(&self) -> windows_core::Result { + pub unsafe fn Writable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Writable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1954,11 +1954,11 @@ pub struct IAzApplication_Vtbl { pub SetAuthzInterfaceClsid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Version: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetVersion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GenerateAudits: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetGenerateAudits: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub ApplyStoreSacl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetApplyStoreSacl: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub Writable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GenerateAudits: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetGenerateAudits: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub ApplyStoreSacl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetApplyStoreSacl: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub Writable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub GetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, i32, super::super::System::Variant::VARIANT, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -2141,11 +2141,11 @@ pub trait IAzApplication_Impl: super::super::System::Com::IDispatch_Impl { fn SetAuthzInterfaceClsid(&self, bstrprop: &windows_core::BSTR) -> windows_core::Result<()>; fn Version(&self) -> windows_core::Result; fn SetVersion(&self, bstrprop: &windows_core::BSTR) -> windows_core::Result<()>; - fn GenerateAudits(&self) -> windows_core::Result; - fn SetGenerateAudits(&self, bprop: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn ApplyStoreSacl(&self) -> windows_core::Result; - fn SetApplyStoreSacl(&self, bprop: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn Writable(&self) -> windows_core::Result; + fn GenerateAudits(&self) -> windows_core::Result; + fn SetGenerateAudits(&self, bprop: windows_core::BOOL) -> windows_core::Result<()>; + fn ApplyStoreSacl(&self) -> windows_core::Result; + fn SetApplyStoreSacl(&self, bprop: windows_core::BOOL) -> windows_core::Result<()>; + fn Writable(&self) -> windows_core::Result; fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result; fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn PolicyAdministrators(&self) -> windows_core::Result; @@ -2286,7 +2286,7 @@ impl IAzApplication_Vtbl { IAzApplication_Impl::SetVersion(this, core::mem::transmute(&bstrprop)).into() } } - unsafe extern "system" fn GenerateAudits(this: *mut core::ffi::c_void, pbprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GenerateAudits(this: *mut core::ffi::c_void, pbprop: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::GenerateAudits(this) { @@ -2298,13 +2298,13 @@ impl IAzApplication_Vtbl { } } } - unsafe extern "system" fn SetGenerateAudits(this: *mut core::ffi::c_void, bprop: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetGenerateAudits(this: *mut core::ffi::c_void, bprop: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::SetGenerateAudits(this, core::mem::transmute_copy(&bprop)).into() } } - unsafe extern "system" fn ApplyStoreSacl(this: *mut core::ffi::c_void, pbprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ApplyStoreSacl(this: *mut core::ffi::c_void, pbprop: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::ApplyStoreSacl(this) { @@ -2316,13 +2316,13 @@ impl IAzApplication_Vtbl { } } } - unsafe extern "system" fn SetApplyStoreSacl(this: *mut core::ffi::c_void, bprop: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetApplyStoreSacl(this: *mut core::ffi::c_void, bprop: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzApplication_Impl::SetApplyStoreSacl(this, core::mem::transmute_copy(&bprop)).into() } } - unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplication_Impl::Writable(this) { @@ -3318,7 +3318,7 @@ impl IAzApplicationGroup { pub unsafe fn DeleteNonMember(&self, bstrprop: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).DeleteNonMember)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprop), core::mem::transmute_copy(varreserved)).ok() } } - pub unsafe fn Writable(&self) -> windows_core::Result { + pub unsafe fn Writable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Writable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3438,7 +3438,7 @@ pub struct IAzApplicationGroup_Vtbl { pub DeleteNonMember: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] DeleteNonMember: usize, - pub Writable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Writable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub GetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, i32, super::super::System::Variant::VARIANT, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -3506,7 +3506,7 @@ pub trait IAzApplicationGroup_Impl: super::super::System::Com::IDispatch_Impl { fn DeleteMember(&self, bstrprop: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn AddNonMember(&self, bstrprop: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn DeleteNonMember(&self, bstrprop: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; - fn Writable(&self) -> windows_core::Result; + fn Writable(&self) -> windows_core::Result; fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result; fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn AddPropertyItem(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; @@ -3690,7 +3690,7 @@ impl IAzApplicationGroup_Vtbl { IAzApplicationGroup_Impl::DeleteNonMember(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } } - unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzApplicationGroup_Impl::Writable(this) { @@ -4245,7 +4245,7 @@ impl IAzAuthorizationStore { pub unsafe fn SetMaxScriptEngines(&self, lprop: i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetMaxScriptEngines)(windows_core::Interface::as_raw(self), lprop).ok() } } - pub unsafe fn GenerateAudits(&self) -> windows_core::Result { + pub unsafe fn GenerateAudits(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GenerateAudits)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4254,7 +4254,7 @@ impl IAzAuthorizationStore { pub unsafe fn SetGenerateAudits(&self, bprop: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetGenerateAudits)(windows_core::Interface::as_raw(self), bprop.into()).ok() } } - pub unsafe fn Writable(&self) -> windows_core::Result { + pub unsafe fn Writable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Writable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4394,7 +4394,7 @@ impl IAzAuthorizationStore { (windows_core::Interface::vtable(self).TargetMachine)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn ApplyStoreSacl(&self) -> windows_core::Result { + pub unsafe fn ApplyStoreSacl(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ApplyStoreSacl)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4466,9 +4466,9 @@ pub struct IAzAuthorizationStore_Vtbl { pub SetScriptEngineTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub MaxScriptEngines: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetMaxScriptEngines: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, - pub GenerateAudits: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetGenerateAudits: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub Writable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GenerateAudits: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetGenerateAudits: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub Writable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub GetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, i32, super::super::System::Variant::VARIANT, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -4564,8 +4564,8 @@ pub struct IAzAuthorizationStore_Vtbl { #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] DeleteDelegatedPolicyUser: usize, pub TargetMachine: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub ApplyStoreSacl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetApplyStoreSacl: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ApplyStoreSacl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetApplyStoreSacl: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub PolicyAdministratorsName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -4616,9 +4616,9 @@ pub trait IAzAuthorizationStore_Impl: super::super::System::Com::IDispatch_Impl fn SetScriptEngineTimeout(&self, lprop: i32) -> windows_core::Result<()>; fn MaxScriptEngines(&self) -> windows_core::Result; fn SetMaxScriptEngines(&self, lprop: i32) -> windows_core::Result<()>; - fn GenerateAudits(&self) -> windows_core::Result; - fn SetGenerateAudits(&self, bprop: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn Writable(&self) -> windows_core::Result; + fn GenerateAudits(&self) -> windows_core::Result; + fn SetGenerateAudits(&self, bprop: windows_core::BOOL) -> windows_core::Result<()>; + fn Writable(&self) -> windows_core::Result; fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result; fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn AddPropertyItem(&self, lpropid: AZ_PROP_CONSTANTS, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; @@ -4645,8 +4645,8 @@ pub trait IAzAuthorizationStore_Impl: super::super::System::Com::IDispatch_Impl fn AddDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn DeleteDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn TargetMachine(&self) -> windows_core::Result; - fn ApplyStoreSacl(&self) -> windows_core::Result; - fn SetApplyStoreSacl(&self, bapplystoresacl: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ApplyStoreSacl(&self) -> windows_core::Result; + fn SetApplyStoreSacl(&self, bapplystoresacl: windows_core::BOOL) -> windows_core::Result<()>; fn PolicyAdministratorsName(&self) -> windows_core::Result; fn PolicyReadersName(&self) -> windows_core::Result; fn AddPolicyAdministratorName(&self, bstradmin: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; @@ -4751,7 +4751,7 @@ impl IAzAuthorizationStore_Vtbl { IAzAuthorizationStore_Impl::SetMaxScriptEngines(this, core::mem::transmute_copy(&lprop)).into() } } - unsafe extern "system" fn GenerateAudits(this: *mut core::ffi::c_void, pbprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GenerateAudits(this: *mut core::ffi::c_void, pbprop: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::GenerateAudits(this) { @@ -4763,13 +4763,13 @@ impl IAzAuthorizationStore_Vtbl { } } } - unsafe extern "system" fn SetGenerateAudits(this: *mut core::ffi::c_void, bprop: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetGenerateAudits(this: *mut core::ffi::c_void, bprop: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::SetGenerateAudits(this, core::mem::transmute_copy(&bprop)).into() } } - unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::Writable(this) { @@ -5003,7 +5003,7 @@ impl IAzAuthorizationStore_Vtbl { } } } - unsafe extern "system" fn ApplyStoreSacl(this: *mut core::ffi::c_void, pbapplystoresacl: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ApplyStoreSacl(this: *mut core::ffi::c_void, pbapplystoresacl: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzAuthorizationStore_Impl::ApplyStoreSacl(this) { @@ -5015,7 +5015,7 @@ impl IAzAuthorizationStore_Vtbl { } } } - unsafe extern "system" fn SetApplyStoreSacl(this: *mut core::ffi::c_void, bapplystoresacl: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetApplyStoreSacl(this: *mut core::ffi::c_void, bapplystoresacl: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzAuthorizationStore_Impl::SetApplyStoreSacl(this, core::mem::transmute_copy(&bapplystoresacl)).into() @@ -5404,7 +5404,7 @@ impl IAzBizRuleContext { #[repr(C)] pub struct IAzBizRuleContext_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - pub SetBusinessRuleResult: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetBusinessRuleResult: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetBusinessRuleString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub BusinessRuleString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -5414,7 +5414,7 @@ pub struct IAzBizRuleContext_Vtbl { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IAzBizRuleContext_Impl: super::super::System::Com::IDispatch_Impl { - fn SetBusinessRuleResult(&self, bresult: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetBusinessRuleResult(&self, bresult: windows_core::BOOL) -> windows_core::Result<()>; fn SetBusinessRuleString(&self, bstrbusinessrulestring: &windows_core::BSTR) -> windows_core::Result<()>; fn BusinessRuleString(&self) -> windows_core::Result; fn GetParameter(&self, bstrparametername: &windows_core::BSTR) -> windows_core::Result; @@ -5422,7 +5422,7 @@ pub trait IAzBizRuleContext_Impl: super::super::System::Com::IDispatch_Impl { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IAzBizRuleContext_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetBusinessRuleResult(this: *mut core::ffi::c_void, bresult: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBusinessRuleResult(this: *mut core::ffi::c_void, bresult: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzBizRuleContext_Impl::SetBusinessRuleResult(this, core::mem::transmute_copy(&bresult)).into() @@ -6575,7 +6575,7 @@ impl IAzOperation { pub unsafe fn SetOperationID(&self, lprop: i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetOperationID)(windows_core::Interface::as_raw(self), lprop).ok() } } - pub unsafe fn Writable(&self) -> windows_core::Result { + pub unsafe fn Writable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Writable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6609,7 +6609,7 @@ pub struct IAzOperation_Vtbl { pub SetApplicationData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub OperationID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetOperationID: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, - pub Writable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Writable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub GetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, i32, super::super::System::Variant::VARIANT, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -6633,7 +6633,7 @@ pub trait IAzOperation_Impl: super::super::System::Com::IDispatch_Impl { fn SetApplicationData(&self, bstrapplicationdata: &windows_core::BSTR) -> windows_core::Result<()>; fn OperationID(&self) -> windows_core::Result; fn SetOperationID(&self, lprop: i32) -> windows_core::Result<()>; - fn Writable(&self) -> windows_core::Result; + fn Writable(&self) -> windows_core::Result; fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result; fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn Submit(&self, lflags: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; @@ -6713,7 +6713,7 @@ impl IAzOperation_Vtbl { IAzOperation_Impl::SetOperationID(this, core::mem::transmute_copy(&lprop)).into() } } - unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzOperation_Impl::Writable(this) { @@ -7075,7 +7075,7 @@ impl IAzRole { pub unsafe fn DeleteMember(&self, bstrprop: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).DeleteMember)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprop), core::mem::transmute_copy(varreserved)).ok() } } - pub unsafe fn Writable(&self) -> windows_core::Result { + pub unsafe fn Writable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Writable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7190,7 +7190,7 @@ pub struct IAzRole_Vtbl { pub DeleteMember: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] DeleteMember: usize, - pub Writable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Writable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub GetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, i32, super::super::System::Variant::VARIANT, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -7256,7 +7256,7 @@ pub trait IAzRole_Impl: super::super::System::Com::IDispatch_Impl { fn DeleteOperation(&self, bstrprop: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn AddMember(&self, bstrprop: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn DeleteMember(&self, bstrprop: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; - fn Writable(&self) -> windows_core::Result; + fn Writable(&self) -> windows_core::Result; fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result; fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn AppMembers(&self) -> windows_core::Result; @@ -7375,7 +7375,7 @@ impl IAzRole_Vtbl { IAzRole_Impl::DeleteMember(this, core::mem::transmute(&bstrprop), core::mem::transmute(&varreserved)).into() } } - unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzRole_Impl::Writable(this) { @@ -8080,7 +8080,7 @@ impl IAzScope { pub unsafe fn SetApplicationData(&self, bstrapplicationdata: &windows_core::BSTR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetApplicationData)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrapplicationdata)).ok() } } - pub unsafe fn Writable(&self) -> windows_core::Result { + pub unsafe fn Writable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Writable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -8211,13 +8211,13 @@ impl IAzScope { pub unsafe fn Submit(&self, lflags: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Submit)(windows_core::Interface::as_raw(self), lflags, core::mem::transmute_copy(varreserved)).ok() } } - pub unsafe fn CanBeDelegated(&self) -> windows_core::Result { + pub unsafe fn CanBeDelegated(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanBeDelegated)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn BizrulesWritable(&self) -> windows_core::Result { + pub unsafe fn BizrulesWritable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BizrulesWritable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -8264,7 +8264,7 @@ pub struct IAzScope_Vtbl { pub SetDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub ApplicationData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetApplicationData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Writable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Writable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub GetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, i32, super::super::System::Variant::VARIANT, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -8348,8 +8348,8 @@ pub struct IAzScope_Vtbl { pub Submit: unsafe extern "system" fn(*mut core::ffi::c_void, i32, super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Submit: usize, - pub CanBeDelegated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub BizrulesWritable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CanBeDelegated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub BizrulesWritable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub PolicyAdministratorsName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -8383,7 +8383,7 @@ pub trait IAzScope_Impl: super::super::System::Com::IDispatch_Impl { fn SetDescription(&self, bstrdescription: &windows_core::BSTR) -> windows_core::Result<()>; fn ApplicationData(&self) -> windows_core::Result; fn SetApplicationData(&self, bstrapplicationdata: &windows_core::BSTR) -> windows_core::Result<()>; - fn Writable(&self) -> windows_core::Result; + fn Writable(&self) -> windows_core::Result; fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result; fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn AddPropertyItem(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; @@ -8407,8 +8407,8 @@ pub trait IAzScope_Impl: super::super::System::Com::IDispatch_Impl { fn CreateTask(&self, bstrtaskname: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result; fn DeleteTask(&self, bstrtaskname: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn Submit(&self, lflags: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; - fn CanBeDelegated(&self) -> windows_core::Result; - fn BizrulesWritable(&self) -> windows_core::Result; + fn CanBeDelegated(&self) -> windows_core::Result; + fn BizrulesWritable(&self) -> windows_core::Result; fn PolicyAdministratorsName(&self) -> windows_core::Result; fn PolicyReadersName(&self) -> windows_core::Result; fn AddPolicyAdministratorName(&self, bstradmin: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; @@ -8473,7 +8473,7 @@ impl IAzScope_Vtbl { IAzScope_Impl::SetApplicationData(this, core::mem::transmute(&bstrapplicationdata)).into() } } - unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::Writable(this) { @@ -8695,7 +8695,7 @@ impl IAzScope_Vtbl { IAzScope_Impl::Submit(this, core::mem::transmute_copy(&lflags), core::mem::transmute(&varreserved)).into() } } - unsafe extern "system" fn CanBeDelegated(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanBeDelegated(this: *mut core::ffi::c_void, pfprop: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::CanBeDelegated(this) { @@ -8707,7 +8707,7 @@ impl IAzScope_Vtbl { } } } - unsafe extern "system" fn BizrulesWritable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn BizrulesWritable(this: *mut core::ffi::c_void, pfprop: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzScope_Impl::BizrulesWritable(this) { @@ -9169,7 +9169,7 @@ impl IAzTask { pub unsafe fn SetBizRuleImportedPath(&self, bstrprop: &windows_core::BSTR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBizRuleImportedPath)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrprop)).ok() } } - pub unsafe fn IsRoleDefinition(&self) -> windows_core::Result { + pub unsafe fn IsRoleDefinition(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsRoleDefinition)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9208,7 +9208,7 @@ impl IAzTask { pub unsafe fn DeleteTask(&self, bstrtask: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).DeleteTask)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrtask), core::mem::transmute_copy(varreserved)).ok() } } - pub unsafe fn Writable(&self) -> windows_core::Result { + pub unsafe fn Writable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Writable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9254,8 +9254,8 @@ pub struct IAzTask_Vtbl { pub SetBizRuleLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub BizRuleImportedPath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetBizRuleImportedPath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsRoleDefinition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetIsRoleDefinition: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsRoleDefinition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetIsRoleDefinition: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub Operations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -9280,7 +9280,7 @@ pub struct IAzTask_Vtbl { pub DeleteTask: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] DeleteTask: usize, - pub Writable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Writable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub GetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, i32, super::super::System::Variant::VARIANT, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -9316,15 +9316,15 @@ pub trait IAzTask_Impl: super::super::System::Com::IDispatch_Impl { fn SetBizRuleLanguage(&self, bstrprop: &windows_core::BSTR) -> windows_core::Result<()>; fn BizRuleImportedPath(&self) -> windows_core::Result; fn SetBizRuleImportedPath(&self, bstrprop: &windows_core::BSTR) -> windows_core::Result<()>; - fn IsRoleDefinition(&self) -> windows_core::Result; - fn SetIsRoleDefinition(&self, fprop: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsRoleDefinition(&self) -> windows_core::Result; + fn SetIsRoleDefinition(&self, fprop: windows_core::BOOL) -> windows_core::Result<()>; fn Operations(&self) -> windows_core::Result; fn Tasks(&self) -> windows_core::Result; fn AddOperation(&self, bstrop: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn DeleteOperation(&self, bstrop: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn AddTask(&self, bstrtask: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn DeleteTask(&self, bstrtask: &windows_core::BSTR, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; - fn Writable(&self) -> windows_core::Result; + fn Writable(&self) -> windows_core::Result; fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result; fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn AddPropertyItem(&self, lpropid: i32, varprop: &super::super::System::Variant::VARIANT, varreserved: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; @@ -9442,7 +9442,7 @@ impl IAzTask_Vtbl { IAzTask_Impl::SetBizRuleImportedPath(this, core::mem::transmute(&bstrprop)).into() } } - unsafe extern "system" fn IsRoleDefinition(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsRoleDefinition(this: *mut core::ffi::c_void, pfprop: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzTask_Impl::IsRoleDefinition(this) { @@ -9454,7 +9454,7 @@ impl IAzTask_Vtbl { } } } - unsafe extern "system" fn SetIsRoleDefinition(this: *mut core::ffi::c_void, fprop: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetIsRoleDefinition(this: *mut core::ffi::c_void, fprop: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAzTask_Impl::SetIsRoleDefinition(this, core::mem::transmute_copy(&fprop)).into() @@ -9508,7 +9508,7 @@ impl IAzTask_Vtbl { IAzTask_Impl::DeleteTask(this, core::mem::transmute(&bstrtask), core::mem::transmute(&varreserved)).into() } } - unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Writable(this: *mut core::ffi::c_void, pfprop: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAzTask_Impl::Writable(this) { @@ -9819,11 +9819,11 @@ impl Default for OBJECTS_AND_SID { } } pub const OLESCRIPT_E_SYNTAX: windows_core::HRESULT = windows_core::HRESULT(0x80020101_u32 as _); -pub type PFN_AUTHZ_COMPUTE_DYNAMIC_GROUPS = Option super::super::Foundation::BOOL>; -pub type PFN_AUTHZ_DYNAMIC_ACCESS_CHECK = Option super::super::Foundation::BOOL>; +pub type PFN_AUTHZ_COMPUTE_DYNAMIC_GROUPS = Option windows_core::BOOL>; +pub type PFN_AUTHZ_DYNAMIC_ACCESS_CHECK = Option windows_core::BOOL>; pub type PFN_AUTHZ_FREE_CENTRAL_ACCESS_POLICY = Option; pub type PFN_AUTHZ_FREE_DYNAMIC_GROUPS = Option; -pub type PFN_AUTHZ_GET_CENTRAL_ACCESS_POLICY = Option super::super::Foundation::BOOL>; +pub type PFN_AUTHZ_GET_CENTRAL_ACCESS_POLICY = Option windows_core::BOOL>; #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct PROG_INVOKE_SETTING(pub i32); 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 40a4097d74..bda395e01c 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/ConfigurationSnapin/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/ConfigurationSnapin/mod.rs @@ -75,7 +75,7 @@ impl windows_core::RuntimeName for ISceSvcAttachmentData {} windows_core::imp::define_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<()> { + pub unsafe fn Save(&self, lptemplatename: *mut i8, scesvchandle: *mut *mut core::ffi::c_void, ppvdata: *mut *mut core::ffi::c_void, pboverwriteall: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Save)(windows_core::Interface::as_raw(self), lptemplatename as _, scesvchandle as _, ppvdata as _, pboverwriteall as _).ok() } } pub unsafe fn IsDirty(&self, lptemplatename: *mut i8) -> windows_core::HRESULT { @@ -88,18 +88,18 @@ impl ISceSvcAttachmentPersistInfo { #[repr(C)] pub struct ISceSvcAttachmentPersistInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i8, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i8, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub IsDirty: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i8) -> windows_core::HRESULT, pub FreeBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ISceSvcAttachmentPersistInfo_Impl: windows_core::IUnknownImpl { - fn Save(&self, lptemplatename: *mut i8, scesvchandle: *mut *mut core::ffi::c_void, ppvdata: *mut *mut core::ffi::c_void, pboverwriteall: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Save(&self, lptemplatename: *mut i8, scesvchandle: *mut *mut core::ffi::c_void, ppvdata: *mut *mut core::ffi::c_void, pboverwriteall: *mut windows_core::BOOL) -> windows_core::Result<()>; fn IsDirty(&self, lptemplatename: *mut i8) -> windows_core::HRESULT; fn FreeBuffer(&self, pvdata: *mut core::ffi::c_void) -> windows_core::Result<()>; } impl ISceSvcAttachmentPersistInfo_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, lptemplatename: *mut i8, scesvchandle: *mut *mut core::ffi::c_void, ppvdata: *mut *mut core::ffi::c_void, pboverwriteall: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, lptemplatename: *mut i8, scesvchandle: *mut *mut core::ffi::c_void, ppvdata: *mut *mut core::ffi::c_void, pboverwriteall: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISceSvcAttachmentPersistInfo_Impl::Save(this, core::mem::transmute_copy(&lptemplatename), core::mem::transmute_copy(&scesvchandle), core::mem::transmute_copy(&ppvdata), core::mem::transmute_copy(&pboverwriteall)).into() @@ -131,8 +131,8 @@ impl ISceSvcAttachmentPersistInfo_Vtbl { impl windows_core::RuntimeName for ISceSvcAttachmentPersistInfo {} pub type PFSCE_FREE_INFO = Option u32>; pub type PFSCE_LOG_INFO = Option u32>; -pub type PFSCE_QUERY_INFO = Option u32>; -pub type PFSCE_SET_INFO = Option u32>; +pub type PFSCE_QUERY_INFO = Option u32>; +pub type PFSCE_SET_INFO = Option u32>; pub type PF_ConfigAnalyzeService = Option u32>; pub type PF_UpdateService = Option u32>; pub const SCESTATUS_ACCESS_DENIED: i32 = 9i32; diff --git a/crates/libs/windows/src/Windows/Win32/Security/Credentials/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Credentials/mod.rs index 4527334946..472a35a054 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Credentials/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Credentials/mod.rs @@ -3,7 +3,7 @@ pub unsafe fn CredDeleteA(targetname: P0, r#type: CRED_TYPE, flags: Option, { - windows_targets::link!("advapi32.dll" "system" fn CredDeleteA(targetname : windows_core::PCSTR, r#type : CRED_TYPE, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredDeleteA(targetname : windows_core::PCSTR, r#type : CRED_TYPE, flags : u32) -> windows_core::BOOL); unsafe { CredDeleteA(targetname.param().abi(), r#type, flags.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -11,7 +11,7 @@ pub unsafe fn CredDeleteW(targetname: P0, r#type: CRED_TYPE, flags: Option, { - windows_targets::link!("advapi32.dll" "system" fn CredDeleteW(targetname : windows_core::PCWSTR, r#type : CRED_TYPE, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredDeleteW(targetname : windows_core::PCWSTR, r#type : CRED_TYPE, flags : u32) -> windows_core::BOOL); unsafe { CredDeleteW(targetname.param().abi(), r#type, flags.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -19,7 +19,7 @@ pub unsafe fn CredEnumerateA(filter: P0, flags: Option where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CredEnumerateA(filter : windows_core::PCSTR, flags : CRED_ENUMERATE_FLAGS, count : *mut u32, credential : *mut *mut *mut CREDENTIALA) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredEnumerateA(filter : windows_core::PCSTR, flags : CRED_ENUMERATE_FLAGS, count : *mut u32, credential : *mut *mut *mut CREDENTIALA) -> windows_core::BOOL); unsafe { CredEnumerateA(filter.param().abi(), flags.unwrap_or(core::mem::zeroed()) as _, count as _, credential as _).ok() } } #[inline] @@ -27,7 +27,7 @@ pub unsafe fn CredEnumerateW(filter: P0, flags: Option where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CredEnumerateW(filter : windows_core::PCWSTR, flags : CRED_ENUMERATE_FLAGS, count : *mut u32, credential : *mut *mut *mut CREDENTIALW) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredEnumerateW(filter : windows_core::PCWSTR, flags : CRED_ENUMERATE_FLAGS, count : *mut u32, credential : *mut *mut *mut CREDENTIALW) -> windows_core::BOOL); unsafe { CredEnumerateW(filter.param().abi(), flags.unwrap_or(core::mem::zeroed()) as _, count as _, credential as _).ok() } } #[inline] @@ -35,7 +35,7 @@ pub unsafe fn CredFindBestCredentialA(targetname: P0, r#type: u32, flags: u3 where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CredFindBestCredentialA(targetname : windows_core::PCSTR, r#type : u32, flags : u32, credential : *mut *mut CREDENTIALA) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredFindBestCredentialA(targetname : windows_core::PCSTR, r#type : u32, flags : u32, credential : *mut *mut CREDENTIALA) -> windows_core::BOOL); unsafe { CredFindBestCredentialA(targetname.param().abi(), r#type, flags, credential as _).ok() } } #[inline] @@ -43,7 +43,7 @@ pub unsafe fn CredFindBestCredentialW(targetname: P0, r#type: u32, flags: u3 where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CredFindBestCredentialW(targetname : windows_core::PCWSTR, r#type : u32, flags : u32, credential : *mut *mut CREDENTIALW) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredFindBestCredentialW(targetname : windows_core::PCWSTR, r#type : u32, flags : u32, credential : *mut *mut CREDENTIALW) -> windows_core::BOOL); unsafe { CredFindBestCredentialW(targetname.param().abi(), r#type, flags, credential as _).ok() } } #[inline] @@ -53,7 +53,7 @@ pub unsafe fn CredFree(buffer: *const core::ffi::c_void) { } #[inline] pub unsafe fn CredGetSessionTypes(maximumpersist: &mut [u32]) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CredGetSessionTypes(maximumpersistcount : u32, maximumpersist : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredGetSessionTypes(maximumpersistcount : u32, maximumpersist : *mut u32) -> windows_core::BOOL); unsafe { CredGetSessionTypes(maximumpersist.len().try_into().unwrap(), core::mem::transmute(maximumpersist.as_ptr())).ok() } } #[inline] @@ -61,7 +61,7 @@ pub unsafe fn CredGetTargetInfoA(targetname: P0, flags: u32, targetinfo: *mu where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CredGetTargetInfoA(targetname : windows_core::PCSTR, flags : u32, targetinfo : *mut *mut CREDENTIAL_TARGET_INFORMATIONA) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredGetTargetInfoA(targetname : windows_core::PCSTR, flags : u32, targetinfo : *mut *mut CREDENTIAL_TARGET_INFORMATIONA) -> windows_core::BOOL); unsafe { CredGetTargetInfoA(targetname.param().abi(), flags, targetinfo as _).ok() } } #[inline] @@ -69,23 +69,23 @@ pub unsafe fn CredGetTargetInfoW(targetname: P0, flags: u32, targetinfo: *mu where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CredGetTargetInfoW(targetname : windows_core::PCWSTR, flags : u32, targetinfo : *mut *mut CREDENTIAL_TARGET_INFORMATIONW) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredGetTargetInfoW(targetname : windows_core::PCWSTR, flags : u32, targetinfo : *mut *mut CREDENTIAL_TARGET_INFORMATIONW) -> windows_core::BOOL); unsafe { CredGetTargetInfoW(targetname.param().abi(), flags, targetinfo as _).ok() } } #[inline] -pub unsafe fn CredIsMarshaledCredentialA(marshaledcredential: P0) -> super::super::Foundation::BOOL +pub unsafe fn CredIsMarshaledCredentialA(marshaledcredential: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CredIsMarshaledCredentialA(marshaledcredential : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredIsMarshaledCredentialA(marshaledcredential : windows_core::PCSTR) -> windows_core::BOOL); unsafe { CredIsMarshaledCredentialA(marshaledcredential.param().abi()) } } #[inline] -pub unsafe fn CredIsMarshaledCredentialW(marshaledcredential: P0) -> super::super::Foundation::BOOL +pub unsafe fn CredIsMarshaledCredentialW(marshaledcredential: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CredIsMarshaledCredentialW(marshaledcredential : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredIsMarshaledCredentialW(marshaledcredential : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { CredIsMarshaledCredentialW(marshaledcredential.param().abi()) } } #[inline] @@ -93,7 +93,7 @@ pub unsafe fn CredIsProtectedA(pszprotectedcredentials: P0, pprotectiontype: where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CredIsProtectedA(pszprotectedcredentials : windows_core::PCSTR, pprotectiontype : *mut CRED_PROTECTION_TYPE) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredIsProtectedA(pszprotectedcredentials : windows_core::PCSTR, pprotectiontype : *mut CRED_PROTECTION_TYPE) -> windows_core::BOOL); unsafe { CredIsProtectedA(pszprotectedcredentials.param().abi(), pprotectiontype as _).ok() } } #[inline] @@ -101,17 +101,17 @@ pub unsafe fn CredIsProtectedW(pszprotectedcredentials: P0, pprotectiontype: where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CredIsProtectedW(pszprotectedcredentials : windows_core::PCWSTR, pprotectiontype : *mut CRED_PROTECTION_TYPE) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredIsProtectedW(pszprotectedcredentials : windows_core::PCWSTR, pprotectiontype : *mut CRED_PROTECTION_TYPE) -> windows_core::BOOL); unsafe { CredIsProtectedW(pszprotectedcredentials.param().abi(), pprotectiontype as _).ok() } } #[inline] pub unsafe fn CredMarshalCredentialA(credtype: CRED_MARSHAL_TYPE, credential: *const core::ffi::c_void, marshaledcredential: *mut windows_core::PSTR) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CredMarshalCredentialA(credtype : CRED_MARSHAL_TYPE, credential : *const core::ffi::c_void, marshaledcredential : *mut windows_core::PSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredMarshalCredentialA(credtype : CRED_MARSHAL_TYPE, credential : *const core::ffi::c_void, marshaledcredential : *mut windows_core::PSTR) -> windows_core::BOOL); unsafe { CredMarshalCredentialA(credtype, credential, marshaledcredential as _).ok() } } #[inline] pub unsafe fn CredMarshalCredentialW(credtype: CRED_MARSHAL_TYPE, credential: *const core::ffi::c_void, marshaledcredential: *mut windows_core::PWSTR) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CredMarshalCredentialW(credtype : CRED_MARSHAL_TYPE, credential : *const core::ffi::c_void, marshaledcredential : *mut windows_core::PWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredMarshalCredentialW(credtype : CRED_MARSHAL_TYPE, credential : *const core::ffi::c_void, marshaledcredential : *mut windows_core::PWSTR) -> windows_core::BOOL); unsafe { CredMarshalCredentialW(credtype, credential, marshaledcredential as _).ok() } } #[inline] @@ -120,7 +120,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("credui.dll" "system" fn CredPackAuthenticationBufferA(dwflags : CRED_PACK_FLAGS, pszusername : windows_core::PCSTR, pszpassword : windows_core::PCSTR, ppackedcredentials : *mut u8, pcbpackedcredentials : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("credui.dll" "system" fn CredPackAuthenticationBufferA(dwflags : CRED_PACK_FLAGS, pszusername : windows_core::PCSTR, pszpassword : windows_core::PCSTR, ppackedcredentials : *mut u8, pcbpackedcredentials : *mut u32) -> windows_core::BOOL); unsafe { CredPackAuthenticationBufferA(dwflags, pszusername.param().abi(), pszpassword.param().abi(), ppackedcredentials.unwrap_or(core::mem::zeroed()) as _, pcbpackedcredentials as _).ok() } } #[inline] @@ -129,17 +129,17 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("credui.dll" "system" fn CredPackAuthenticationBufferW(dwflags : CRED_PACK_FLAGS, pszusername : windows_core::PCWSTR, pszpassword : windows_core::PCWSTR, ppackedcredentials : *mut u8, pcbpackedcredentials : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("credui.dll" "system" fn CredPackAuthenticationBufferW(dwflags : CRED_PACK_FLAGS, pszusername : windows_core::PCWSTR, pszpassword : windows_core::PCWSTR, ppackedcredentials : *mut u8, pcbpackedcredentials : *mut u32) -> windows_core::BOOL); unsafe { CredPackAuthenticationBufferW(dwflags, pszusername.param().abi(), pszpassword.param().abi(), ppackedcredentials.unwrap_or(core::mem::zeroed()) as _, pcbpackedcredentials as _).ok() } } #[inline] pub unsafe fn CredProtectA(fasself: bool, pszcredentials: &[u8], pszprotectedcredentials: windows_core::PSTR, pcchmaxchars: *mut u32, protectiontype: Option<*mut CRED_PROTECTION_TYPE>) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CredProtectA(fasself : super::super::Foundation:: BOOL, pszcredentials : windows_core::PCSTR, cchcredentials : u32, pszprotectedcredentials : windows_core::PSTR, pcchmaxchars : *mut u32, protectiontype : *mut CRED_PROTECTION_TYPE) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredProtectA(fasself : windows_core::BOOL, pszcredentials : windows_core::PCSTR, cchcredentials : u32, pszprotectedcredentials : windows_core::PSTR, pcchmaxchars : *mut u32, protectiontype : *mut CRED_PROTECTION_TYPE) -> windows_core::BOOL); unsafe { CredProtectA(fasself.into(), core::mem::transmute(pszcredentials.as_ptr()), pszcredentials.len().try_into().unwrap(), core::mem::transmute(pszprotectedcredentials), pcchmaxchars as _, protectiontype.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CredProtectW(fasself: bool, pszcredentials: &[u16], pszprotectedcredentials: windows_core::PWSTR, pcchmaxchars: *mut u32, protectiontype: Option<*mut CRED_PROTECTION_TYPE>) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CredProtectW(fasself : super::super::Foundation:: BOOL, pszcredentials : windows_core::PCWSTR, cchcredentials : u32, pszprotectedcredentials : windows_core::PWSTR, pcchmaxchars : *mut u32, protectiontype : *mut CRED_PROTECTION_TYPE) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredProtectW(fasself : windows_core::BOOL, pszcredentials : windows_core::PCWSTR, cchcredentials : u32, pszprotectedcredentials : windows_core::PWSTR, pcchmaxchars : *mut u32, protectiontype : *mut CRED_PROTECTION_TYPE) -> windows_core::BOOL); unsafe { CredProtectW(fasself.into(), core::mem::transmute(pszcredentials.as_ptr()), pszcredentials.len().try_into().unwrap(), core::mem::transmute(pszprotectedcredentials), pcchmaxchars as _, protectiontype.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -147,17 +147,17 @@ pub unsafe fn CredReadA(targetname: P0, r#type: CRED_TYPE, flags: Option, { - windows_targets::link!("advapi32.dll" "system" fn CredReadA(targetname : windows_core::PCSTR, r#type : CRED_TYPE, flags : u32, credential : *mut *mut CREDENTIALA) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredReadA(targetname : windows_core::PCSTR, r#type : CRED_TYPE, flags : u32, credential : *mut *mut CREDENTIALA) -> windows_core::BOOL); unsafe { CredReadA(targetname.param().abi(), r#type, flags.unwrap_or(core::mem::zeroed()) as _, credential as _).ok() } } #[inline] pub unsafe fn CredReadDomainCredentialsA(targetinfo: *const CREDENTIAL_TARGET_INFORMATIONA, flags: u32, count: *mut u32, credential: *mut *mut *mut CREDENTIALA) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CredReadDomainCredentialsA(targetinfo : *const CREDENTIAL_TARGET_INFORMATIONA, flags : u32, count : *mut u32, credential : *mut *mut *mut CREDENTIALA) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredReadDomainCredentialsA(targetinfo : *const CREDENTIAL_TARGET_INFORMATIONA, flags : u32, count : *mut u32, credential : *mut *mut *mut CREDENTIALA) -> windows_core::BOOL); unsafe { CredReadDomainCredentialsA(targetinfo, flags, count as _, credential as _).ok() } } #[inline] pub unsafe fn CredReadDomainCredentialsW(targetinfo: *const CREDENTIAL_TARGET_INFORMATIONW, flags: u32, count: *mut u32, credential: *mut *mut *mut CREDENTIALW) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CredReadDomainCredentialsW(targetinfo : *const CREDENTIAL_TARGET_INFORMATIONW, flags : u32, count : *mut u32, credential : *mut *mut *mut CREDENTIALW) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredReadDomainCredentialsW(targetinfo : *const CREDENTIAL_TARGET_INFORMATIONW, flags : u32, count : *mut u32, credential : *mut *mut *mut CREDENTIALW) -> windows_core::BOOL); unsafe { CredReadDomainCredentialsW(targetinfo, flags, count as _, credential as _).ok() } } #[inline] @@ -165,7 +165,7 @@ pub unsafe fn CredReadW(targetname: P0, r#type: CRED_TYPE, flags: Option, { - windows_targets::link!("advapi32.dll" "system" fn CredReadW(targetname : windows_core::PCWSTR, r#type : CRED_TYPE, flags : u32, credential : *mut *mut CREDENTIALW) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredReadW(targetname : windows_core::PCWSTR, r#type : CRED_TYPE, flags : u32, credential : *mut *mut CREDENTIALW) -> windows_core::BOOL); unsafe { CredReadW(targetname.param().abi(), r#type, flags.unwrap_or(core::mem::zeroed()) as _, credential as _).ok() } } #[inline] @@ -174,7 +174,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CredRenameA(oldtargetname : windows_core::PCSTR, newtargetname : windows_core::PCSTR, r#type : CRED_TYPE, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredRenameA(oldtargetname : windows_core::PCSTR, newtargetname : windows_core::PCSTR, r#type : CRED_TYPE, flags : u32) -> windows_core::BOOL); unsafe { CredRenameA(oldtargetname.param().abi(), newtargetname.param().abi(), r#type, flags.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -183,23 +183,23 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CredRenameW(oldtargetname : windows_core::PCWSTR, newtargetname : windows_core::PCWSTR, r#type : CRED_TYPE, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredRenameW(oldtargetname : windows_core::PCWSTR, newtargetname : windows_core::PCWSTR, r#type : CRED_TYPE, flags : u32) -> windows_core::BOOL); unsafe { CredRenameW(oldtargetname.param().abi(), newtargetname.param().abi(), r#type, flags.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn CredUICmdLinePromptForCredentialsA(psztargetname: P0, pcontext: Option<*const SecHandle>, dwautherror: u32, username: &mut [u8], pszpassword: &mut [u8], pfsave: Option<*mut super::super::Foundation::BOOL>, dwflags: CREDUI_FLAGS) -> u32 +pub unsafe fn CredUICmdLinePromptForCredentialsA(psztargetname: P0, pcontext: Option<*const SecHandle>, dwautherror: u32, username: &mut [u8], pszpassword: &mut [u8], pfsave: Option<*mut windows_core::BOOL>, dwflags: CREDUI_FLAGS) -> u32 where P0: windows_core::Param, { - windows_targets::link!("credui.dll" "system" fn CredUICmdLinePromptForCredentialsA(psztargetname : windows_core::PCSTR, pcontext : *const SecHandle, dwautherror : u32, username : windows_core::PSTR, uluserbuffersize : u32, pszpassword : windows_core::PSTR, ulpasswordbuffersize : u32, pfsave : *mut super::super::Foundation:: BOOL, dwflags : CREDUI_FLAGS) -> u32); + windows_targets::link!("credui.dll" "system" fn CredUICmdLinePromptForCredentialsA(psztargetname : windows_core::PCSTR, pcontext : *const SecHandle, dwautherror : u32, username : windows_core::PSTR, uluserbuffersize : u32, pszpassword : windows_core::PSTR, ulpasswordbuffersize : u32, pfsave : *mut windows_core::BOOL, dwflags : CREDUI_FLAGS) -> u32); unsafe { CredUICmdLinePromptForCredentialsA(psztargetname.param().abi(), pcontext.unwrap_or(core::mem::zeroed()) as _, dwautherror, core::mem::transmute(username.as_ptr()), username.len().try_into().unwrap(), core::mem::transmute(pszpassword.as_ptr()), pszpassword.len().try_into().unwrap(), pfsave.unwrap_or(core::mem::zeroed()) as _, dwflags) } } #[inline] -pub unsafe fn CredUICmdLinePromptForCredentialsW(psztargetname: P0, pcontext: Option<*const SecHandle>, dwautherror: u32, username: &mut [u16], pszpassword: &mut [u16], pfsave: Option<*mut super::super::Foundation::BOOL>, dwflags: CREDUI_FLAGS) -> u32 +pub unsafe fn CredUICmdLinePromptForCredentialsW(psztargetname: P0, pcontext: Option<*const SecHandle>, dwautherror: u32, username: &mut [u16], pszpassword: &mut [u16], pfsave: Option<*mut windows_core::BOOL>, dwflags: CREDUI_FLAGS) -> u32 where P0: windows_core::Param, { - windows_targets::link!("credui.dll" "system" fn CredUICmdLinePromptForCredentialsW(psztargetname : windows_core::PCWSTR, pcontext : *const SecHandle, dwautherror : u32, username : windows_core::PWSTR, uluserbuffersize : u32, pszpassword : windows_core::PWSTR, ulpasswordbuffersize : u32, pfsave : *mut super::super::Foundation:: BOOL, dwflags : CREDUI_FLAGS) -> u32); + windows_targets::link!("credui.dll" "system" fn CredUICmdLinePromptForCredentialsW(psztargetname : windows_core::PCWSTR, pcontext : *const SecHandle, dwautherror : u32, username : windows_core::PWSTR, uluserbuffersize : u32, pszpassword : windows_core::PWSTR, ulpasswordbuffersize : u32, pfsave : *mut windows_core::BOOL, dwflags : CREDUI_FLAGS) -> u32); unsafe { CredUICmdLinePromptForCredentialsW(psztargetname.param().abi(), pcontext.unwrap_or(core::mem::zeroed()) as _, dwautherror, core::mem::transmute(username.as_ptr()), username.len().try_into().unwrap(), core::mem::transmute(pszpassword.as_ptr()), pszpassword.len().try_into().unwrap(), pfsave.unwrap_or(core::mem::zeroed()) as _, dwflags) } } #[inline] @@ -207,7 +207,7 @@ pub unsafe fn CredUIConfirmCredentialsA(psztargetname: P0, bconfirm: bool) - where P0: windows_core::Param, { - windows_targets::link!("credui.dll" "system" fn CredUIConfirmCredentialsA(psztargetname : windows_core::PCSTR, bconfirm : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("credui.dll" "system" fn CredUIConfirmCredentialsA(psztargetname : windows_core::PCSTR, bconfirm : windows_core::BOOL) -> u32); unsafe { CredUIConfirmCredentialsA(psztargetname.param().abi(), bconfirm.into()) } } #[inline] @@ -215,7 +215,7 @@ pub unsafe fn CredUIConfirmCredentialsW(psztargetname: P0, bconfirm: bool) - where P0: windows_core::Param, { - windows_targets::link!("credui.dll" "system" fn CredUIConfirmCredentialsW(psztargetname : windows_core::PCWSTR, bconfirm : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("credui.dll" "system" fn CredUIConfirmCredentialsW(psztargetname : windows_core::PCWSTR, bconfirm : windows_core::BOOL) -> u32); unsafe { CredUIConfirmCredentialsW(psztargetname.param().abi(), bconfirm.into()) } } #[inline] @@ -236,32 +236,32 @@ where } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn CredUIPromptForCredentialsA(puiinfo: Option<*const CREDUI_INFOA>, psztargetname: P1, pcontext: Option<*const SecHandle>, dwautherror: u32, pszusername: &mut [u8], pszpassword: &mut [u8], save: Option<*mut super::super::Foundation::BOOL>, dwflags: CREDUI_FLAGS) -> super::super::Foundation::WIN32_ERROR +pub unsafe fn CredUIPromptForCredentialsA(puiinfo: Option<*const CREDUI_INFOA>, psztargetname: P1, pcontext: Option<*const SecHandle>, dwautherror: u32, pszusername: &mut [u8], pszpassword: &mut [u8], save: Option<*mut windows_core::BOOL>, dwflags: CREDUI_FLAGS) -> super::super::Foundation::WIN32_ERROR where P1: windows_core::Param, { - windows_targets::link!("credui.dll" "system" fn CredUIPromptForCredentialsA(puiinfo : *const CREDUI_INFOA, psztargetname : windows_core::PCSTR, pcontext : *const SecHandle, dwautherror : u32, pszusername : windows_core::PSTR, ulusernamebuffersize : u32, pszpassword : windows_core::PSTR, ulpasswordbuffersize : u32, save : *mut super::super::Foundation:: BOOL, dwflags : CREDUI_FLAGS) -> super::super::Foundation:: WIN32_ERROR); + windows_targets::link!("credui.dll" "system" fn CredUIPromptForCredentialsA(puiinfo : *const CREDUI_INFOA, psztargetname : windows_core::PCSTR, pcontext : *const SecHandle, dwautherror : u32, pszusername : windows_core::PSTR, ulusernamebuffersize : u32, pszpassword : windows_core::PSTR, ulpasswordbuffersize : u32, save : *mut windows_core::BOOL, dwflags : CREDUI_FLAGS) -> super::super::Foundation:: WIN32_ERROR); unsafe { CredUIPromptForCredentialsA(puiinfo.unwrap_or(core::mem::zeroed()) as _, psztargetname.param().abi(), pcontext.unwrap_or(core::mem::zeroed()) as _, dwautherror, core::mem::transmute(pszusername.as_ptr()), pszusername.len().try_into().unwrap(), core::mem::transmute(pszpassword.as_ptr()), pszpassword.len().try_into().unwrap(), save.unwrap_or(core::mem::zeroed()) as _, dwflags) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn CredUIPromptForCredentialsW(puiinfo: Option<*const CREDUI_INFOW>, psztargetname: P1, pcontext: Option<*const SecHandle>, dwautherror: u32, pszusername: &mut [u16], pszpassword: &mut [u16], save: Option<*mut super::super::Foundation::BOOL>, dwflags: CREDUI_FLAGS) -> super::super::Foundation::WIN32_ERROR +pub unsafe fn CredUIPromptForCredentialsW(puiinfo: Option<*const CREDUI_INFOW>, psztargetname: P1, pcontext: Option<*const SecHandle>, dwautherror: u32, pszusername: &mut [u16], pszpassword: &mut [u16], save: Option<*mut windows_core::BOOL>, dwflags: CREDUI_FLAGS) -> super::super::Foundation::WIN32_ERROR where P1: windows_core::Param, { - windows_targets::link!("credui.dll" "system" fn CredUIPromptForCredentialsW(puiinfo : *const CREDUI_INFOW, psztargetname : windows_core::PCWSTR, pcontext : *const SecHandle, dwautherror : u32, pszusername : windows_core::PWSTR, ulusernamebuffersize : u32, pszpassword : windows_core::PWSTR, ulpasswordbuffersize : u32, save : *mut super::super::Foundation:: BOOL, dwflags : CREDUI_FLAGS) -> super::super::Foundation:: WIN32_ERROR); + windows_targets::link!("credui.dll" "system" fn CredUIPromptForCredentialsW(puiinfo : *const CREDUI_INFOW, psztargetname : windows_core::PCWSTR, pcontext : *const SecHandle, dwautherror : u32, pszusername : windows_core::PWSTR, ulusernamebuffersize : u32, pszpassword : windows_core::PWSTR, ulpasswordbuffersize : u32, save : *mut windows_core::BOOL, dwflags : CREDUI_FLAGS) -> super::super::Foundation:: WIN32_ERROR); unsafe { CredUIPromptForCredentialsW(puiinfo.unwrap_or(core::mem::zeroed()) as _, psztargetname.param().abi(), pcontext.unwrap_or(core::mem::zeroed()) as _, dwautherror, core::mem::transmute(pszusername.as_ptr()), pszusername.len().try_into().unwrap(), core::mem::transmute(pszpassword.as_ptr()), pszpassword.len().try_into().unwrap(), save.unwrap_or(core::mem::zeroed()) as _, dwflags) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn CredUIPromptForWindowsCredentialsA(puiinfo: Option<*const CREDUI_INFOA>, dwautherror: u32, pulauthpackage: *mut u32, pvinauthbuffer: Option<*const core::ffi::c_void>, ulinauthbuffersize: u32, ppvoutauthbuffer: *mut *mut core::ffi::c_void, puloutauthbuffersize: *mut u32, pfsave: Option<*mut super::super::Foundation::BOOL>, dwflags: CREDUIWIN_FLAGS) -> u32 { - windows_targets::link!("credui.dll" "system" fn CredUIPromptForWindowsCredentialsA(puiinfo : *const CREDUI_INFOA, dwautherror : u32, pulauthpackage : *mut u32, pvinauthbuffer : *const core::ffi::c_void, ulinauthbuffersize : u32, ppvoutauthbuffer : *mut *mut core::ffi::c_void, puloutauthbuffersize : *mut u32, pfsave : *mut super::super::Foundation:: BOOL, dwflags : CREDUIWIN_FLAGS) -> u32); +pub unsafe fn CredUIPromptForWindowsCredentialsA(puiinfo: Option<*const CREDUI_INFOA>, dwautherror: u32, pulauthpackage: *mut u32, pvinauthbuffer: Option<*const core::ffi::c_void>, ulinauthbuffersize: u32, ppvoutauthbuffer: *mut *mut core::ffi::c_void, puloutauthbuffersize: *mut u32, pfsave: Option<*mut windows_core::BOOL>, dwflags: CREDUIWIN_FLAGS) -> u32 { + windows_targets::link!("credui.dll" "system" fn CredUIPromptForWindowsCredentialsA(puiinfo : *const CREDUI_INFOA, dwautherror : u32, pulauthpackage : *mut u32, pvinauthbuffer : *const core::ffi::c_void, ulinauthbuffersize : u32, ppvoutauthbuffer : *mut *mut core::ffi::c_void, puloutauthbuffersize : *mut u32, pfsave : *mut windows_core::BOOL, dwflags : CREDUIWIN_FLAGS) -> u32); unsafe { CredUIPromptForWindowsCredentialsA(puiinfo.unwrap_or(core::mem::zeroed()) as _, dwautherror, pulauthpackage as _, pvinauthbuffer.unwrap_or(core::mem::zeroed()) as _, ulinauthbuffersize, ppvoutauthbuffer as _, puloutauthbuffersize as _, pfsave.unwrap_or(core::mem::zeroed()) as _, dwflags) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn CredUIPromptForWindowsCredentialsW(puiinfo: Option<*const CREDUI_INFOW>, dwautherror: u32, pulauthpackage: *mut u32, pvinauthbuffer: Option<*const core::ffi::c_void>, ulinauthbuffersize: u32, ppvoutauthbuffer: *mut *mut core::ffi::c_void, puloutauthbuffersize: *mut u32, pfsave: Option<*mut super::super::Foundation::BOOL>, dwflags: CREDUIWIN_FLAGS) -> u32 { - windows_targets::link!("credui.dll" "system" fn CredUIPromptForWindowsCredentialsW(puiinfo : *const CREDUI_INFOW, dwautherror : u32, pulauthpackage : *mut u32, pvinauthbuffer : *const core::ffi::c_void, ulinauthbuffersize : u32, ppvoutauthbuffer : *mut *mut core::ffi::c_void, puloutauthbuffersize : *mut u32, pfsave : *mut super::super::Foundation:: BOOL, dwflags : CREDUIWIN_FLAGS) -> u32); +pub unsafe fn CredUIPromptForWindowsCredentialsW(puiinfo: Option<*const CREDUI_INFOW>, dwautherror: u32, pulauthpackage: *mut u32, pvinauthbuffer: Option<*const core::ffi::c_void>, ulinauthbuffersize: u32, ppvoutauthbuffer: *mut *mut core::ffi::c_void, puloutauthbuffersize: *mut u32, pfsave: Option<*mut windows_core::BOOL>, dwflags: CREDUIWIN_FLAGS) -> u32 { + windows_targets::link!("credui.dll" "system" fn CredUIPromptForWindowsCredentialsW(puiinfo : *const CREDUI_INFOW, dwautherror : u32, pulauthpackage : *mut u32, pvinauthbuffer : *const core::ffi::c_void, ulinauthbuffersize : u32, ppvoutauthbuffer : *mut *mut core::ffi::c_void, puloutauthbuffersize : *mut u32, pfsave : *mut windows_core::BOOL, dwflags : CREDUIWIN_FLAGS) -> u32); unsafe { CredUIPromptForWindowsCredentialsW(puiinfo.unwrap_or(core::mem::zeroed()) as _, dwautherror, pulauthpackage as _, pvinauthbuffer.unwrap_or(core::mem::zeroed()) as _, ulinauthbuffersize, ppvoutauthbuffer as _, puloutauthbuffersize as _, pfsave.unwrap_or(core::mem::zeroed()) as _, dwflags) } } #[inline] @@ -279,17 +279,17 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("credui.dll" "system" fn CredUIStoreSSOCredW(pszrealm : windows_core::PCWSTR, pszusername : windows_core::PCWSTR, pszpassword : windows_core::PCWSTR, bpersist : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("credui.dll" "system" fn CredUIStoreSSOCredW(pszrealm : windows_core::PCWSTR, pszusername : windows_core::PCWSTR, pszpassword : windows_core::PCWSTR, bpersist : windows_core::BOOL) -> u32); unsafe { CredUIStoreSSOCredW(pszrealm.param().abi(), pszusername.param().abi(), pszpassword.param().abi(), bpersist.into()) } } #[inline] pub unsafe fn CredUnPackAuthenticationBufferA(dwflags: CRED_PACK_FLAGS, pauthbuffer: *const core::ffi::c_void, cbauthbuffer: u32, pszusername: Option, pcchlmaxusername: *mut u32, pszdomainname: Option, pcchmaxdomainname: Option<*mut u32>, pszpassword: Option, pcchmaxpassword: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("credui.dll" "system" fn CredUnPackAuthenticationBufferA(dwflags : CRED_PACK_FLAGS, pauthbuffer : *const core::ffi::c_void, cbauthbuffer : u32, pszusername : windows_core::PSTR, pcchlmaxusername : *mut u32, pszdomainname : windows_core::PSTR, pcchmaxdomainname : *mut u32, pszpassword : windows_core::PSTR, pcchmaxpassword : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("credui.dll" "system" fn CredUnPackAuthenticationBufferA(dwflags : CRED_PACK_FLAGS, pauthbuffer : *const core::ffi::c_void, cbauthbuffer : u32, pszusername : windows_core::PSTR, pcchlmaxusername : *mut u32, pszdomainname : windows_core::PSTR, pcchmaxdomainname : *mut u32, pszpassword : windows_core::PSTR, pcchmaxpassword : *mut u32) -> windows_core::BOOL); unsafe { CredUnPackAuthenticationBufferA(dwflags, pauthbuffer, cbauthbuffer, pszusername.unwrap_or(core::mem::zeroed()) as _, pcchlmaxusername as _, pszdomainname.unwrap_or(core::mem::zeroed()) as _, pcchmaxdomainname.unwrap_or(core::mem::zeroed()) as _, pszpassword.unwrap_or(core::mem::zeroed()) as _, pcchmaxpassword as _).ok() } } #[inline] pub unsafe fn CredUnPackAuthenticationBufferW(dwflags: CRED_PACK_FLAGS, pauthbuffer: *const core::ffi::c_void, cbauthbuffer: u32, pszusername: Option, pcchmaxusername: *mut u32, pszdomainname: Option, pcchmaxdomainname: Option<*mut u32>, pszpassword: Option, pcchmaxpassword: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("credui.dll" "system" fn CredUnPackAuthenticationBufferW(dwflags : CRED_PACK_FLAGS, pauthbuffer : *const core::ffi::c_void, cbauthbuffer : u32, pszusername : windows_core::PWSTR, pcchmaxusername : *mut u32, pszdomainname : windows_core::PWSTR, pcchmaxdomainname : *mut u32, pszpassword : windows_core::PWSTR, pcchmaxpassword : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("credui.dll" "system" fn CredUnPackAuthenticationBufferW(dwflags : CRED_PACK_FLAGS, pauthbuffer : *const core::ffi::c_void, cbauthbuffer : u32, pszusername : windows_core::PWSTR, pcchmaxusername : *mut u32, pszdomainname : windows_core::PWSTR, pcchmaxdomainname : *mut u32, pszpassword : windows_core::PWSTR, pcchmaxpassword : *mut u32) -> windows_core::BOOL); unsafe { CredUnPackAuthenticationBufferW(dwflags, pauthbuffer, cbauthbuffer, pszusername.unwrap_or(core::mem::zeroed()) as _, pcchmaxusername as _, pszdomainname.unwrap_or(core::mem::zeroed()) as _, pcchmaxdomainname.unwrap_or(core::mem::zeroed()) as _, pszpassword.unwrap_or(core::mem::zeroed()) as _, pcchmaxpassword as _).ok() } } #[inline] @@ -297,7 +297,7 @@ pub unsafe fn CredUnmarshalCredentialA(marshaledcredential: P0, credtype: *m where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CredUnmarshalCredentialA(marshaledcredential : windows_core::PCSTR, credtype : *mut CRED_MARSHAL_TYPE, credential : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredUnmarshalCredentialA(marshaledcredential : windows_core::PCSTR, credtype : *mut CRED_MARSHAL_TYPE, credential : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { CredUnmarshalCredentialA(marshaledcredential.param().abi(), credtype as _, credential as _).ok() } } #[inline] @@ -305,37 +305,37 @@ pub unsafe fn CredUnmarshalCredentialW(marshaledcredential: P0, credtype: *m where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CredUnmarshalCredentialW(marshaledcredential : windows_core::PCWSTR, credtype : *mut CRED_MARSHAL_TYPE, credential : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredUnmarshalCredentialW(marshaledcredential : windows_core::PCWSTR, credtype : *mut CRED_MARSHAL_TYPE, credential : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { CredUnmarshalCredentialW(marshaledcredential.param().abi(), credtype as _, credential as _).ok() } } #[inline] pub unsafe fn CredUnprotectA(fasself: bool, pszprotectedcredentials: &[u8], pszcredentials: Option, pcchmaxchars: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CredUnprotectA(fasself : super::super::Foundation:: BOOL, pszprotectedcredentials : windows_core::PCSTR, cchprotectedcredentials : u32, pszcredentials : windows_core::PSTR, pcchmaxchars : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredUnprotectA(fasself : windows_core::BOOL, pszprotectedcredentials : windows_core::PCSTR, cchprotectedcredentials : u32, pszcredentials : windows_core::PSTR, pcchmaxchars : *mut u32) -> windows_core::BOOL); unsafe { CredUnprotectA(fasself.into(), core::mem::transmute(pszprotectedcredentials.as_ptr()), pszprotectedcredentials.len().try_into().unwrap(), pszcredentials.unwrap_or(core::mem::zeroed()) as _, pcchmaxchars as _).ok() } } #[inline] pub unsafe fn CredUnprotectW(fasself: bool, pszprotectedcredentials: &[u16], pszcredentials: Option, pcchmaxchars: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CredUnprotectW(fasself : super::super::Foundation:: BOOL, pszprotectedcredentials : windows_core::PCWSTR, cchprotectedcredentials : u32, pszcredentials : windows_core::PWSTR, pcchmaxchars : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredUnprotectW(fasself : windows_core::BOOL, pszprotectedcredentials : windows_core::PCWSTR, cchprotectedcredentials : u32, pszcredentials : windows_core::PWSTR, pcchmaxchars : *mut u32) -> windows_core::BOOL); unsafe { CredUnprotectW(fasself.into(), core::mem::transmute(pszprotectedcredentials.as_ptr()), pszprotectedcredentials.len().try_into().unwrap(), pszcredentials.unwrap_or(core::mem::zeroed()) as _, pcchmaxchars as _).ok() } } #[inline] pub unsafe fn CredWriteA(credential: *const CREDENTIALA, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CredWriteA(credential : *const CREDENTIALA, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredWriteA(credential : *const CREDENTIALA, flags : u32) -> windows_core::BOOL); unsafe { CredWriteA(credential, flags).ok() } } #[inline] pub unsafe fn CredWriteDomainCredentialsA(targetinfo: *const CREDENTIAL_TARGET_INFORMATIONA, credential: *const CREDENTIALA, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CredWriteDomainCredentialsA(targetinfo : *const CREDENTIAL_TARGET_INFORMATIONA, credential : *const CREDENTIALA, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredWriteDomainCredentialsA(targetinfo : *const CREDENTIAL_TARGET_INFORMATIONA, credential : *const CREDENTIALA, flags : u32) -> windows_core::BOOL); unsafe { CredWriteDomainCredentialsA(targetinfo, credential, flags).ok() } } #[inline] pub unsafe fn CredWriteDomainCredentialsW(targetinfo: *const CREDENTIAL_TARGET_INFORMATIONW, credential: *const CREDENTIALW, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CredWriteDomainCredentialsW(targetinfo : *const CREDENTIAL_TARGET_INFORMATIONW, credential : *const CREDENTIALW, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredWriteDomainCredentialsW(targetinfo : *const CREDENTIAL_TARGET_INFORMATIONW, credential : *const CREDENTIALW, flags : u32) -> windows_core::BOOL); unsafe { CredWriteDomainCredentialsW(targetinfo, credential, flags).ok() } } #[inline] pub unsafe fn CredWriteW(credential: *const CREDENTIALW, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CredWriteW(credential : *const CREDENTIALW, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CredWriteW(credential : *const CREDENTIALW, flags : u32) -> windows_core::BOOL); unsafe { CredWriteW(credential, flags).ok() } } #[inline] @@ -362,8 +362,8 @@ pub unsafe fn KeyCredentialManagerGetInformation() -> windows_core::Result<*mut } } #[inline] -pub unsafe fn KeyCredentialManagerGetOperationErrorStates(keycredentialmanageroperationtype: KeyCredentialManagerOperationType, isready: *mut super::super::Foundation::BOOL, keycredentialmanageroperationerrorstates: *mut KeyCredentialManagerOperationErrorStates) -> windows_core::Result<()> { - windows_targets::link!("keycredmgr.dll" "system" fn KeyCredentialManagerGetOperationErrorStates(keycredentialmanageroperationtype : KeyCredentialManagerOperationType, isready : *mut super::super::Foundation:: BOOL, keycredentialmanageroperationerrorstates : *mut KeyCredentialManagerOperationErrorStates) -> windows_core::HRESULT); +pub unsafe fn KeyCredentialManagerGetOperationErrorStates(keycredentialmanageroperationtype: KeyCredentialManagerOperationType, isready: *mut windows_core::BOOL, keycredentialmanageroperationerrorstates: *mut KeyCredentialManagerOperationErrorStates) -> windows_core::Result<()> { + windows_targets::link!("keycredmgr.dll" "system" fn KeyCredentialManagerGetOperationErrorStates(keycredentialmanageroperationtype : KeyCredentialManagerOperationType, isready : *mut windows_core::BOOL, keycredentialmanageroperationerrorstates : *mut KeyCredentialManagerOperationErrorStates) -> windows_core::HRESULT); unsafe { KeyCredentialManagerGetOperationErrorStates(keycredentialmanageroperationtype, isready as _, keycredentialmanageroperationerrorstates as _).ok() } } #[inline] @@ -1456,7 +1456,7 @@ pub struct KeyCredentialManagerOperationType(pub i32); pub const KeyCredentialManagerPinChange: KeyCredentialManagerOperationType = KeyCredentialManagerOperationType(1i32); pub const KeyCredentialManagerPinReset: KeyCredentialManagerOperationType = KeyCredentialManagerOperationType(2i32); pub const KeyCredentialManagerProvisioning: KeyCredentialManagerOperationType = KeyCredentialManagerOperationType(0i32); -pub type LPOCNCHKPROC = Option super::super::Foundation::BOOL>; +pub type LPOCNCHKPROC = Option windows_core::BOOL>; pub type LPOCNCONNPROCA = Option usize>; pub type LPOCNCONNPROCW = Option usize>; pub type LPOCNDSCPROC = Option; diff --git a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Catalog/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Catalog/mod.rs index 3b17f9ae25..3f3601ecfd 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Catalog/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Catalog/mod.rs @@ -1,6 +1,6 @@ #[inline] pub unsafe fn CryptCATAdminAcquireContext(phcatadmin: *mut isize, pgsubsystem: Option<*const windows_core::GUID>, dwflags: Option) -> windows_core::Result<()> { - windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminAcquireContext(phcatadmin : *mut isize, pgsubsystem : *const windows_core::GUID, dwflags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminAcquireContext(phcatadmin : *mut isize, pgsubsystem : *const windows_core::GUID, dwflags : u32) -> windows_core::BOOL); unsafe { CryptCATAdminAcquireContext(phcatadmin as _, pgsubsystem.unwrap_or(core::mem::zeroed()) as _, dwflags.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -8,7 +8,7 @@ pub unsafe fn CryptCATAdminAcquireContext2(phcatadmin: *mut isize, pgsubsyst where P2: windows_core::Param, { - windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminAcquireContext2(phcatadmin : *mut isize, pgsubsystem : *const windows_core::GUID, pwszhashalgorithm : windows_core::PCWSTR, pstronghashpolicy : *const super:: CERT_STRONG_SIGN_PARA, dwflags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminAcquireContext2(phcatadmin : *mut isize, pgsubsystem : *const windows_core::GUID, pwszhashalgorithm : windows_core::PCWSTR, pstronghashpolicy : *const super:: CERT_STRONG_SIGN_PARA, dwflags : u32) -> windows_core::BOOL); unsafe { CryptCATAdminAcquireContext2(phcatadmin as _, pgsubsystem.unwrap_or(core::mem::zeroed()) as _, pwszhashalgorithm.param().abi(), pstronghashpolicy.unwrap_or(core::mem::zeroed()) as _, dwflags.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -21,13 +21,13 @@ where unsafe { CryptCATAdminAddCatalog(hcatadmin, pwszcatalogfile.param().abi(), pwszselectbasename.param().abi(), dwflags) } } #[inline] -pub unsafe fn CryptCATAdminCalcHashFromFileHandle(hfile: super::super::super::Foundation::HANDLE, pcbhash: *mut u32, pbhash: Option<*mut u8>, dwflags: Option) -> super::super::super::Foundation::BOOL { - windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminCalcHashFromFileHandle(hfile : super::super::super::Foundation:: HANDLE, pcbhash : *mut u32, pbhash : *mut u8, dwflags : u32) -> super::super::super::Foundation:: BOOL); +pub unsafe fn CryptCATAdminCalcHashFromFileHandle(hfile: super::super::super::Foundation::HANDLE, pcbhash: *mut u32, pbhash: Option<*mut u8>, dwflags: Option) -> windows_core::BOOL { + windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminCalcHashFromFileHandle(hfile : super::super::super::Foundation:: HANDLE, pcbhash : *mut u32, pbhash : *mut u8, dwflags : u32) -> windows_core::BOOL); unsafe { CryptCATAdminCalcHashFromFileHandle(hfile, pcbhash as _, pbhash.unwrap_or(core::mem::zeroed()) as _, dwflags.unwrap_or(core::mem::zeroed()) as _) } } #[inline] pub unsafe fn CryptCATAdminCalcHashFromFileHandle2(hcatadmin: isize, hfile: super::super::super::Foundation::HANDLE, pcbhash: *mut u32, pbhash: Option<*mut u8>, dwflags: Option) -> windows_core::Result<()> { - windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminCalcHashFromFileHandle2(hcatadmin : isize, hfile : super::super::super::Foundation:: HANDLE, pcbhash : *mut u32, pbhash : *mut u8, dwflags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminCalcHashFromFileHandle2(hcatadmin : isize, hfile : super::super::super::Foundation:: HANDLE, pcbhash : *mut u32, pbhash : *mut u8, dwflags : u32) -> windows_core::BOOL); unsafe { CryptCATAdminCalcHashFromFileHandle2(hcatadmin, hfile, pcbhash as _, pbhash.unwrap_or(core::mem::zeroed()) as _, dwflags.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -36,18 +36,18 @@ pub unsafe fn CryptCATAdminEnumCatalogFromHash(hcatadmin: isize, pbhash: &[u8], unsafe { CryptCATAdminEnumCatalogFromHash(hcatadmin, core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap(), dwflags.unwrap_or(core::mem::zeroed()) as _, phprevcatinfo.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn CryptCATAdminPauseServiceForBackup(dwflags: u32, fresume: bool) -> super::super::super::Foundation::BOOL { - windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminPauseServiceForBackup(dwflags : u32, fresume : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); +pub unsafe fn CryptCATAdminPauseServiceForBackup(dwflags: u32, fresume: bool) -> windows_core::BOOL { + windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminPauseServiceForBackup(dwflags : u32, fresume : windows_core::BOOL) -> windows_core::BOOL); unsafe { CryptCATAdminPauseServiceForBackup(dwflags, fresume.into()) } } #[inline] -pub unsafe fn CryptCATAdminReleaseCatalogContext(hcatadmin: isize, hcatinfo: isize, dwflags: u32) -> super::super::super::Foundation::BOOL { - windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminReleaseCatalogContext(hcatadmin : isize, hcatinfo : isize, dwflags : u32) -> super::super::super::Foundation:: BOOL); +pub unsafe fn CryptCATAdminReleaseCatalogContext(hcatadmin: isize, hcatinfo: isize, dwflags: u32) -> windows_core::BOOL { + windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminReleaseCatalogContext(hcatadmin : isize, hcatinfo : isize, dwflags : u32) -> windows_core::BOOL); unsafe { CryptCATAdminReleaseCatalogContext(hcatadmin, hcatinfo, dwflags) } } #[inline] -pub unsafe fn CryptCATAdminReleaseContext(hcatadmin: isize, dwflags: u32) -> super::super::super::Foundation::BOOL { - windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminReleaseContext(hcatadmin : isize, dwflags : u32) -> super::super::super::Foundation:: BOOL); +pub unsafe fn CryptCATAdminReleaseContext(hcatadmin: isize, dwflags: u32) -> windows_core::BOOL { + windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminReleaseContext(hcatadmin : isize, dwflags : u32) -> windows_core::BOOL); unsafe { CryptCATAdminReleaseContext(hcatadmin, dwflags) } } #[inline] @@ -55,7 +55,7 @@ pub unsafe fn CryptCATAdminRemoveCatalog(hcatadmin: isize, pwszcatalogfile: where P1: windows_core::Param, { - windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminRemoveCatalog(hcatadmin : isize, pwszcatalogfile : windows_core::PCWSTR, dwflags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminRemoveCatalog(hcatadmin : isize, pwszcatalogfile : windows_core::PCWSTR, dwflags : u32) -> windows_core::BOOL); unsafe { CryptCATAdminRemoveCatalog(hcatadmin, pwszcatalogfile.param().abi(), dwflags).ok() } } #[inline] @@ -63,7 +63,7 @@ pub unsafe fn CryptCATAdminResolveCatalogPath(hcatadmin: isize, pwszcatalogf where P1: windows_core::Param, { - windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminResolveCatalogPath(hcatadmin : isize, pwszcatalogfile : windows_core::PCWSTR, pscatinfo : *mut CATALOG_INFO, dwflags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("wintrust.dll" "system" fn CryptCATAdminResolveCatalogPath(hcatadmin : isize, pwszcatalogfile : windows_core::PCWSTR, pscatinfo : *mut CATALOG_INFO, dwflags : u32) -> windows_core::BOOL); unsafe { CryptCATAdminResolveCatalogPath(hcatadmin, pwszcatalogfile.param().abi(), pscatinfo as _, dwflags).ok() } } #[cfg(feature = "Win32_Security_Cryptography_Sip")] @@ -76,8 +76,8 @@ where unsafe { CryptCATAllocSortedMemberInfo(hcatalog, pwszreferencetag.param().abi()) } } #[inline] -pub unsafe fn CryptCATCDFClose(pcdf: *mut CRYPTCATCDF) -> super::super::super::Foundation::BOOL { - windows_targets::link!("wintrust.dll" "system" fn CryptCATCDFClose(pcdf : *mut CRYPTCATCDF) -> super::super::super::Foundation:: BOOL); +pub unsafe fn CryptCATCDFClose(pcdf: *mut CRYPTCATCDF) -> windows_core::BOOL { + windows_targets::link!("wintrust.dll" "system" fn CryptCATCDFClose(pcdf : *mut CRYPTCATCDF) -> windows_core::BOOL); unsafe { CryptCATCDFClose(pcdf as _) } } #[cfg(feature = "Win32_Security_Cryptography_Sip")] @@ -109,7 +109,7 @@ pub unsafe fn CryptCATCDFEnumMembers(pcdf: *mut CRYPTCATCDF, pprevmember: *mut C #[cfg(feature = "Win32_Security_Cryptography_Sip")] #[inline] pub unsafe fn CryptCATCDFEnumMembersByCDFTagEx(pcdf: *const CRYPTCATCDF, pwszprevcdftag: windows_core::PWSTR, pfnparseerror: PFN_CDF_PARSE_ERROR_CALLBACK, ppmember: *const *const CRYPTCATMEMBER, fcontinueonerror: bool, pvreserved: *const core::ffi::c_void) -> windows_core::PWSTR { - windows_targets::link!("wintrust.dll" "system" fn CryptCATCDFEnumMembersByCDFTagEx(pcdf : *const CRYPTCATCDF, pwszprevcdftag : windows_core::PWSTR, pfnparseerror : PFN_CDF_PARSE_ERROR_CALLBACK, ppmember : *const *const CRYPTCATMEMBER, fcontinueonerror : super::super::super::Foundation:: BOOL, pvreserved : *const core::ffi::c_void) -> windows_core::PWSTR); + windows_targets::link!("wintrust.dll" "system" fn CryptCATCDFEnumMembersByCDFTagEx(pcdf : *const CRYPTCATCDF, pwszprevcdftag : windows_core::PWSTR, pfnparseerror : PFN_CDF_PARSE_ERROR_CALLBACK, ppmember : *const *const CRYPTCATMEMBER, fcontinueonerror : windows_core::BOOL, pvreserved : *const core::ffi::c_void) -> windows_core::PWSTR); unsafe { CryptCATCDFEnumMembersByCDFTagEx(pcdf, core::mem::transmute(pwszprevcdftag), pfnparseerror, ppmember, fcontinueonerror.into(), pvreserved) } } #[inline] @@ -122,12 +122,12 @@ where } #[inline] pub unsafe fn CryptCATCatalogInfoFromContext(hcatinfo: isize, pscatinfo: *mut CATALOG_INFO, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("wintrust.dll" "system" fn CryptCATCatalogInfoFromContext(hcatinfo : isize, pscatinfo : *mut CATALOG_INFO, dwflags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("wintrust.dll" "system" fn CryptCATCatalogInfoFromContext(hcatinfo : isize, pscatinfo : *mut CATALOG_INFO, dwflags : u32) -> windows_core::BOOL); unsafe { CryptCATCatalogInfoFromContext(hcatinfo, pscatinfo as _, dwflags).ok() } } #[inline] -pub unsafe fn CryptCATClose(hcatalog: super::super::super::Foundation::HANDLE) -> super::super::super::Foundation::BOOL { - windows_targets::link!("wintrust.dll" "system" fn CryptCATClose(hcatalog : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: BOOL); +pub unsafe fn CryptCATClose(hcatalog: super::super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("wintrust.dll" "system" fn CryptCATClose(hcatalog : super::super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CryptCATClose(hcatalog) } } #[cfg(feature = "Win32_Security_Cryptography_Sip")] @@ -194,7 +194,7 @@ where } #[inline] pub unsafe fn CryptCATPersistStore(hcatalog: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("wintrust.dll" "system" fn CryptCATPersistStore(hcatalog : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("wintrust.dll" "system" fn CryptCATPersistStore(hcatalog : super::super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CryptCATPersistStore(hcatalog).ok() } } #[cfg(feature = "Win32_Security_Cryptography_Sip")] @@ -230,11 +230,11 @@ pub unsafe fn CryptCATStoreFromHandle(hcatalog: super::super::super::Foundation: unsafe { CryptCATStoreFromHandle(hcatalog) } } #[inline] -pub unsafe fn IsCatalogFile(hfile: super::super::super::Foundation::HANDLE, pwszfilename: P1) -> super::super::super::Foundation::BOOL +pub unsafe fn IsCatalogFile(hfile: super::super::super::Foundation::HANDLE, pwszfilename: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("wintrust.dll" "system" fn IsCatalogFile(hfile : super::super::super::Foundation:: HANDLE, pwszfilename : windows_core::PCWSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("wintrust.dll" "system" fn IsCatalogFile(hfile : super::super::super::Foundation:: HANDLE, pwszfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { IsCatalogFile(hfile, pwszfilename.param().abi()) } } #[repr(C)] @@ -306,7 +306,7 @@ pub struct CRYPTCATCDF { pub hFile: super::super::super::Foundation::HANDLE, pub dwCurFilePos: u32, pub dwLastMemberOffset: u32, - pub fEOF: super::super::super::Foundation::BOOL, + pub fEOF: windows_core::BOOL, pub pwszResultDir: windows_core::PWSTR, pub hCATStore: super::super::super::Foundation::HANDLE, } 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 8ced702454..3bc9222a9c 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 @@ -55,11 +55,11 @@ pub unsafe fn CertSrvBackupTruncateLogs(hbc: *mut core::ffi::c_void) -> windows_ unsafe { CertSrvBackupTruncateLogs(hbc as _).ok() } } #[inline] -pub unsafe fn CertSrvIsServerOnlineW(pwszservername: P0, pfserveronline: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> +pub unsafe fn CertSrvIsServerOnlineW(pwszservername: P0, pfserveronline: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("certadm.dll" "system" fn CertSrvIsServerOnlineW(pwszservername : windows_core::PCWSTR, pfserveronline : *mut super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("certadm.dll" "system" fn CertSrvIsServerOnlineW(pwszservername : windows_core::PCWSTR, pfserveronline : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { CertSrvIsServerOnlineW(pwszservername.param().abi(), pfserveronline as _).ok() } } #[inline] @@ -126,7 +126,7 @@ pub unsafe fn PstGetCertificateChain(pcert: *const super::CERT_CONTEXT, ptrusted } #[inline] pub unsafe fn PstGetCertificates(ptargetname: *const super::super::super::Foundation::UNICODE_STRING, rgpcriteria: Option<&[super::CERT_SELECT_CRITERIA]>, bisclient: bool, pdwcertchaincontextcount: *mut u32, ppcertchaincontexts: *mut *mut *mut super::CERT_CHAIN_CONTEXT) -> super::super::super::Foundation::NTSTATUS { - windows_targets::link!("certpoleng.dll" "system" fn PstGetCertificates(ptargetname : *const super::super::super::Foundation:: UNICODE_STRING, ccriteria : u32, rgpcriteria : *const super:: CERT_SELECT_CRITERIA, bisclient : super::super::super::Foundation:: BOOL, pdwcertchaincontextcount : *mut u32, ppcertchaincontexts : *mut *mut *mut super:: CERT_CHAIN_CONTEXT) -> super::super::super::Foundation:: NTSTATUS); + windows_targets::link!("certpoleng.dll" "system" fn PstGetCertificates(ptargetname : *const super::super::super::Foundation:: UNICODE_STRING, ccriteria : u32, rgpcriteria : *const super:: CERT_SELECT_CRITERIA, bisclient : windows_core::BOOL, pdwcertchaincontextcount : *mut u32, ppcertchaincontexts : *mut *mut *mut super:: CERT_CHAIN_CONTEXT) -> super::super::super::Foundation:: NTSTATUS); unsafe { PstGetCertificates(ptargetname, rgpcriteria.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgpcriteria.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), bisclient.into(), pdwcertchaincontextcount as _, ppcertchaincontexts as _) } } #[cfg(feature = "Win32_Security_Authentication_Identity")] @@ -154,7 +154,7 @@ pub unsafe fn PstMapCertificate(pcert: *const super::CERT_CONTEXT, ptokeninforma } #[inline] pub unsafe fn PstValidate(ptargetname: Option<*const super::super::super::Foundation::UNICODE_STRING>, bisclient: bool, prequestedissuancepolicy: Option<*const super::CERT_USAGE_MATCH>, phadditionalcertstore: Option<*const super::HCERTSTORE>, pcert: *const super::CERT_CONTEXT, pprovguid: Option<*mut windows_core::GUID>) -> super::super::super::Foundation::NTSTATUS { - windows_targets::link!("certpoleng.dll" "system" fn PstValidate(ptargetname : *const super::super::super::Foundation:: UNICODE_STRING, bisclient : super::super::super::Foundation:: BOOL, prequestedissuancepolicy : *const super:: CERT_USAGE_MATCH, phadditionalcertstore : *const super:: HCERTSTORE, pcert : *const super:: CERT_CONTEXT, pprovguid : *mut windows_core::GUID) -> super::super::super::Foundation:: NTSTATUS); + windows_targets::link!("certpoleng.dll" "system" fn PstValidate(ptargetname : *const super::super::super::Foundation:: UNICODE_STRING, bisclient : windows_core::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); unsafe { PstValidate(ptargetname.unwrap_or(core::mem::zeroed()) as _, bisclient.into(), prequestedissuancepolicy.unwrap_or(core::mem::zeroed()) as _, phadditionalcertstore.unwrap_or(core::mem::zeroed()) as _, pcert, pprovguid.unwrap_or(core::mem::zeroed()) as _) } } #[repr(transparent)] @@ -936,7 +936,7 @@ pub type FNCERTSRVBACKUPOPENFILEW = Option windows_core::HRESULT>; pub type FNCERTSRVBACKUPREAD = Option windows_core::HRESULT>; pub type FNCERTSRVBACKUPTRUNCATELOGS = Option windows_core::HRESULT>; -pub type FNCERTSRVISSERVERONLINEW = Option windows_core::HRESULT>; +pub type FNCERTSRVISSERVERONLINEW = Option windows_core::HRESULT>; pub type FNCERTSRVRESTOREEND = Option windows_core::HRESULT>; pub type FNCERTSRVRESTOREGETDATABASELOCATIONSW = Option windows_core::HRESULT>; pub type FNCERTSRVRESTOREPREPAREW = Option windows_core::HRESULT>; @@ -1665,7 +1665,7 @@ impl ICEnroll { pub unsafe fn SetProviderFlags(&self, dwflags: i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetProviderFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } } - pub unsafe fn UseExistingKeySet(&self) -> windows_core::Result { + pub unsafe fn UseExistingKeySet(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).UseExistingKeySet)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1683,7 +1683,7 @@ impl ICEnroll { pub unsafe fn SetGenKeyFlags(&self, dwflags: i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetGenKeyFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } } - pub unsafe fn DeleteRequestCert(&self) -> windows_core::Result { + pub unsafe fn DeleteRequestCert(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DeleteRequestCert)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1692,7 +1692,7 @@ impl ICEnroll { pub unsafe fn SetDeleteRequestCert(&self, fdelete: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetDeleteRequestCert)(windows_core::Interface::as_raw(self), fdelete.into()).ok() } } - pub unsafe fn WriteCertToCSP(&self) -> windows_core::Result { + pub unsafe fn WriteCertToCSP(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).WriteCertToCSP)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1775,14 +1775,14 @@ pub struct ICEnroll_Vtbl { pub SetKeySpec: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub ProviderFlags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetProviderFlags: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, - pub UseExistingKeySet: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetUseExistingKeySet: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub UseExistingKeySet: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetUseExistingKeySet: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GenKeyFlags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetGenKeyFlags: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, - pub DeleteRequestCert: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetDeleteRequestCert: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub WriteCertToCSP: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetWriteCertToCSP: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub DeleteRequestCert: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetDeleteRequestCert: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub WriteCertToCSP: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetWriteCertToCSP: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SPCFileName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetSPCFileName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub PVKFileName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1834,14 +1834,14 @@ pub trait ICEnroll_Impl: super::super::super::System::Com::IDispatch_Impl { fn SetKeySpec(&self, dw: i32) -> windows_core::Result<()>; fn ProviderFlags(&self) -> windows_core::Result; fn SetProviderFlags(&self, dwflags: i32) -> windows_core::Result<()>; - fn UseExistingKeySet(&self) -> windows_core::Result; - fn SetUseExistingKeySet(&self, fuseexistingkeys: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn UseExistingKeySet(&self) -> windows_core::Result; + fn SetUseExistingKeySet(&self, fuseexistingkeys: windows_core::BOOL) -> windows_core::Result<()>; fn GenKeyFlags(&self) -> windows_core::Result; fn SetGenKeyFlags(&self, dwflags: i32) -> windows_core::Result<()>; - fn DeleteRequestCert(&self) -> windows_core::Result; - fn SetDeleteRequestCert(&self, fdelete: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn WriteCertToCSP(&self) -> windows_core::Result; - fn SetWriteCertToCSP(&self, fbool: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn DeleteRequestCert(&self) -> windows_core::Result; + fn SetDeleteRequestCert(&self, fdelete: windows_core::BOOL) -> windows_core::Result<()>; + fn WriteCertToCSP(&self) -> windows_core::Result; + fn SetWriteCertToCSP(&self, fbool: windows_core::BOOL) -> windows_core::Result<()>; fn SPCFileName(&self) -> windows_core::Result; fn SetSPCFileName(&self, bstr: &windows_core::BSTR) -> windows_core::Result<()>; fn PVKFileName(&self) -> windows_core::Result; @@ -2230,7 +2230,7 @@ impl ICEnroll_Vtbl { ICEnroll_Impl::SetProviderFlags(this, core::mem::transmute_copy(&dwflags)).into() } } - unsafe extern "system" fn UseExistingKeySet(this: *mut core::ffi::c_void, fuseexistingkeys: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn UseExistingKeySet(this: *mut core::ffi::c_void, fuseexistingkeys: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::UseExistingKeySet(this) { @@ -2242,7 +2242,7 @@ impl ICEnroll_Vtbl { } } } - unsafe extern "system" fn SetUseExistingKeySet(this: *mut core::ffi::c_void, fuseexistingkeys: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetUseExistingKeySet(this: *mut core::ffi::c_void, fuseexistingkeys: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetUseExistingKeySet(this, core::mem::transmute_copy(&fuseexistingkeys)).into() @@ -2266,7 +2266,7 @@ impl ICEnroll_Vtbl { ICEnroll_Impl::SetGenKeyFlags(this, core::mem::transmute_copy(&dwflags)).into() } } - unsafe extern "system" fn DeleteRequestCert(this: *mut core::ffi::c_void, fdelete: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DeleteRequestCert(this: *mut core::ffi::c_void, fdelete: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::DeleteRequestCert(this) { @@ -2278,13 +2278,13 @@ impl ICEnroll_Vtbl { } } } - unsafe extern "system" fn SetDeleteRequestCert(this: *mut core::ffi::c_void, fdelete: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetDeleteRequestCert(this: *mut core::ffi::c_void, fdelete: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetDeleteRequestCert(this, core::mem::transmute_copy(&fdelete)).into() } } - unsafe extern "system" fn WriteCertToCSP(this: *mut core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn WriteCertToCSP(this: *mut core::ffi::c_void, fbool: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll_Impl::WriteCertToCSP(this) { @@ -2296,7 +2296,7 @@ impl ICEnroll_Vtbl { } } } - unsafe extern "system" fn SetWriteCertToCSP(this: *mut core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetWriteCertToCSP(this: *mut core::ffi::c_void, fbool: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll_Impl::SetWriteCertToCSP(this, core::mem::transmute_copy(&fbool)).into() @@ -2441,7 +2441,7 @@ impl ICEnroll2 { pub unsafe fn addNameValuePairToSignature(&self, name: &windows_core::BSTR, value: &windows_core::BSTR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).addNameValuePairToSignature)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(name), core::mem::transmute_copy(value)).ok() } } - pub unsafe fn WriteCertToUserDS(&self) -> windows_core::Result { + pub unsafe fn WriteCertToUserDS(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).WriteCertToUserDS)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2450,7 +2450,7 @@ impl ICEnroll2 { pub unsafe fn SetWriteCertToUserDS(&self, fbool: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetWriteCertToUserDS)(windows_core::Interface::as_raw(self), fbool.into()).ok() } } - pub unsafe fn EnableT61DNEncoding(&self) -> windows_core::Result { + pub unsafe fn EnableT61DNEncoding(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EnableT61DNEncoding)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2466,19 +2466,19 @@ pub struct ICEnroll2_Vtbl { pub base__: ICEnroll_Vtbl, pub addCertTypeToRequest: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub addNameValuePairToSignature: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub WriteCertToUserDS: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetWriteCertToUserDS: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub EnableT61DNEncoding: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnableT61DNEncoding: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub WriteCertToUserDS: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetWriteCertToUserDS: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub EnableT61DNEncoding: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnableT61DNEncoding: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait ICEnroll2_Impl: ICEnroll_Impl { fn addCertTypeToRequest(&self, certtype: &windows_core::BSTR) -> windows_core::Result<()>; fn addNameValuePairToSignature(&self, name: &windows_core::BSTR, value: &windows_core::BSTR) -> windows_core::Result<()>; - fn WriteCertToUserDS(&self) -> windows_core::Result; - fn SetWriteCertToUserDS(&self, fbool: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn EnableT61DNEncoding(&self) -> windows_core::Result; - fn SetEnableT61DNEncoding(&self, fbool: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn WriteCertToUserDS(&self) -> windows_core::Result; + fn SetWriteCertToUserDS(&self, fbool: windows_core::BOOL) -> windows_core::Result<()>; + fn EnableT61DNEncoding(&self) -> windows_core::Result; + fn SetEnableT61DNEncoding(&self, fbool: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl ICEnroll2_Vtbl { @@ -2495,7 +2495,7 @@ impl ICEnroll2_Vtbl { ICEnroll2_Impl::addNameValuePairToSignature(this, core::mem::transmute(&name), core::mem::transmute(&value)).into() } } - unsafe extern "system" fn WriteCertToUserDS(this: *mut core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn WriteCertToUserDS(this: *mut core::ffi::c_void, fbool: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll2_Impl::WriteCertToUserDS(this) { @@ -2507,13 +2507,13 @@ impl ICEnroll2_Vtbl { } } } - unsafe extern "system" fn SetWriteCertToUserDS(this: *mut core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetWriteCertToUserDS(this: *mut core::ffi::c_void, fbool: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll2_Impl::SetWriteCertToUserDS(this, core::mem::transmute_copy(&fbool)).into() } } - unsafe extern "system" fn EnableT61DNEncoding(this: *mut core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableT61DNEncoding(this: *mut core::ffi::c_void, fbool: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll2_Impl::EnableT61DNEncoding(this) { @@ -2525,7 +2525,7 @@ impl ICEnroll2_Vtbl { } } } - unsafe extern "system" fn SetEnableT61DNEncoding(this: *mut core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnableT61DNEncoding(this: *mut core::ffi::c_void, fbool: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll2_Impl::SetEnableT61DNEncoding(this, core::mem::transmute_copy(&fbool)).into() @@ -2593,7 +2593,7 @@ impl ICEnroll3 { pub unsafe fn SetReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetReuseHardwareKeyIfUnableToGenNew)(windows_core::Interface::as_raw(self), freusehardwarekeyifunabletogennew.into()).ok() } } - pub unsafe fn ReuseHardwareKeyIfUnableToGenNew(&self) -> windows_core::Result { + pub unsafe fn ReuseHardwareKeyIfUnableToGenNew(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ReuseHardwareKeyIfUnableToGenNew)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2611,7 +2611,7 @@ impl ICEnroll3 { pub unsafe fn SetLimitExchangeKeyToEncipherment(&self, flimitexchangekeytoencipherment: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetLimitExchangeKeyToEncipherment)(windows_core::Interface::as_raw(self), flimitexchangekeytoencipherment.into()).ok() } } - pub unsafe fn LimitExchangeKeyToEncipherment(&self) -> windows_core::Result { + pub unsafe fn LimitExchangeKeyToEncipherment(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LimitExchangeKeyToEncipherment)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2620,7 +2620,7 @@ impl ICEnroll3 { pub unsafe fn SetEnableSMIMECapabilities(&self, fenablesmimecapabilities: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetEnableSMIMECapabilities)(windows_core::Interface::as_raw(self), fenablesmimecapabilities.into()).ok() } } - pub unsafe fn EnableSMIMECapabilities(&self) -> windows_core::Result { + pub unsafe fn EnableSMIMECapabilities(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EnableSMIMECapabilities)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2634,34 +2634,34 @@ pub struct ICEnroll3_Vtbl { pub InstallPKCS7: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Reset: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSupportedKeySpec: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - pub GetKeyLen: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL, super::super::super::Foundation::BOOL, *mut i32) -> windows_core::HRESULT, + pub GetKeyLen: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL, *mut i32) -> windows_core::HRESULT, pub EnumAlgs: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, *mut i32) -> windows_core::HRESULT, pub GetAlgName: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetReuseHardwareKeyIfUnableToGenNew: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub ReuseHardwareKeyIfUnableToGenNew: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetReuseHardwareKeyIfUnableToGenNew: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub ReuseHardwareKeyIfUnableToGenNew: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetHashAlgID: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub HashAlgID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - pub SetLimitExchangeKeyToEncipherment: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub LimitExchangeKeyToEncipherment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnableSMIMECapabilities: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub EnableSMIMECapabilities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetLimitExchangeKeyToEncipherment: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub LimitExchangeKeyToEncipherment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnableSMIMECapabilities: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub EnableSMIMECapabilities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait ICEnroll3_Impl: ICEnroll2_Impl { fn InstallPKCS7(&self, pkcs7: &windows_core::BSTR) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn GetSupportedKeySpec(&self) -> windows_core::Result; - fn GetKeyLen(&self, fmin: super::super::super::Foundation::BOOL, fexchange: super::super::super::Foundation::BOOL) -> windows_core::Result; + fn GetKeyLen(&self, fmin: windows_core::BOOL, fexchange: windows_core::BOOL) -> windows_core::Result; fn EnumAlgs(&self, dwindex: i32, algclass: i32) -> windows_core::Result; fn GetAlgName(&self, algid: i32) -> windows_core::Result; - fn SetReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn ReuseHardwareKeyIfUnableToGenNew(&self) -> windows_core::Result; + fn SetReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: windows_core::BOOL) -> windows_core::Result<()>; + fn ReuseHardwareKeyIfUnableToGenNew(&self) -> windows_core::Result; fn SetHashAlgID(&self, hashalgid: i32) -> windows_core::Result<()>; fn HashAlgID(&self) -> windows_core::Result; - fn SetLimitExchangeKeyToEncipherment(&self, flimitexchangekeytoencipherment: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn LimitExchangeKeyToEncipherment(&self) -> windows_core::Result; - fn SetEnableSMIMECapabilities(&self, fenablesmimecapabilities: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn EnableSMIMECapabilities(&self) -> windows_core::Result; + fn SetLimitExchangeKeyToEncipherment(&self, flimitexchangekeytoencipherment: windows_core::BOOL) -> windows_core::Result<()>; + fn LimitExchangeKeyToEncipherment(&self) -> windows_core::Result; + fn SetEnableSMIMECapabilities(&self, fenablesmimecapabilities: windows_core::BOOL) -> windows_core::Result<()>; + fn EnableSMIMECapabilities(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl ICEnroll3_Vtbl { @@ -2690,7 +2690,7 @@ impl ICEnroll3_Vtbl { } } } - unsafe extern "system" fn GetKeyLen(this: *mut core::ffi::c_void, fmin: super::super::super::Foundation::BOOL, fexchange: super::super::super::Foundation::BOOL, pdwkeysize: *mut i32) -> windows_core::HRESULT { + unsafe extern "system" fn GetKeyLen(this: *mut core::ffi::c_void, fmin: windows_core::BOOL, fexchange: windows_core::BOOL, pdwkeysize: *mut i32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll3_Impl::GetKeyLen(this, core::mem::transmute_copy(&fmin), core::mem::transmute_copy(&fexchange)) { @@ -2726,13 +2726,13 @@ impl ICEnroll3_Vtbl { } } } - unsafe extern "system" fn SetReuseHardwareKeyIfUnableToGenNew(this: *mut core::ffi::c_void, freusehardwarekeyifunabletogennew: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetReuseHardwareKeyIfUnableToGenNew(this: *mut core::ffi::c_void, freusehardwarekeyifunabletogennew: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll3_Impl::SetReuseHardwareKeyIfUnableToGenNew(this, core::mem::transmute_copy(&freusehardwarekeyifunabletogennew)).into() } } - unsafe extern "system" fn ReuseHardwareKeyIfUnableToGenNew(this: *mut core::ffi::c_void, freusehardwarekeyifunabletogennew: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ReuseHardwareKeyIfUnableToGenNew(this: *mut core::ffi::c_void, freusehardwarekeyifunabletogennew: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll3_Impl::ReuseHardwareKeyIfUnableToGenNew(this) { @@ -2762,13 +2762,13 @@ impl ICEnroll3_Vtbl { } } } - unsafe extern "system" fn SetLimitExchangeKeyToEncipherment(this: *mut core::ffi::c_void, flimitexchangekeytoencipherment: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetLimitExchangeKeyToEncipherment(this: *mut core::ffi::c_void, flimitexchangekeytoencipherment: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll3_Impl::SetLimitExchangeKeyToEncipherment(this, core::mem::transmute_copy(&flimitexchangekeytoencipherment)).into() } } - unsafe extern "system" fn LimitExchangeKeyToEncipherment(this: *mut core::ffi::c_void, flimitexchangekeytoencipherment: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn LimitExchangeKeyToEncipherment(this: *mut core::ffi::c_void, flimitexchangekeytoencipherment: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll3_Impl::LimitExchangeKeyToEncipherment(this) { @@ -2780,13 +2780,13 @@ impl ICEnroll3_Vtbl { } } } - unsafe extern "system" fn SetEnableSMIMECapabilities(this: *mut core::ffi::c_void, fenablesmimecapabilities: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnableSMIMECapabilities(this: *mut core::ffi::c_void, fenablesmimecapabilities: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll3_Impl::SetEnableSMIMECapabilities(this, core::mem::transmute_copy(&fenablesmimecapabilities)).into() } } - unsafe extern "system" fn EnableSMIMECapabilities(this: *mut core::ffi::c_void, fenablesmimecapabilities: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableSMIMECapabilities(this: *mut core::ffi::c_void, fenablesmimecapabilities: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll3_Impl::EnableSMIMECapabilities(this) { @@ -2971,7 +2971,7 @@ impl ICEnroll4 { pub unsafe fn SetIncludeSubjectKeyID(&self, finclude: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetIncludeSubjectKeyID)(windows_core::Interface::as_raw(self), finclude.into()).ok() } } - pub unsafe fn IncludeSubjectKeyID(&self) -> windows_core::Result { + pub unsafe fn IncludeSubjectKeyID(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IncludeSubjectKeyID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3009,15 +3009,15 @@ pub struct ICEnroll4_Vtbl { pub removePendingRequest: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetKeyLenEx: unsafe extern "system" fn(*mut core::ffi::c_void, XEKL_KEYSIZE, XEKL_KEYSPEC, *mut i32) -> windows_core::HRESULT, pub InstallPKCS7Ex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - pub addCertTypeToRequestEx: unsafe extern "system" fn(*mut core::ffi::c_void, ADDED_CERT_TYPE, *mut core::ffi::c_void, i32, super::super::super::Foundation::BOOL, i32) -> windows_core::HRESULT, + pub addCertTypeToRequestEx: unsafe extern "system" fn(*mut core::ffi::c_void, ADDED_CERT_TYPE, *mut core::ffi::c_void, i32, windows_core::BOOL, i32) -> windows_core::HRESULT, pub getProviderType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetSignerCertificate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetClientId: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub ClientId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub addBlobPropertyToCertificate: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, *mut core::ffi::c_void) -> windows_core::HRESULT, pub resetBlobProperties: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetIncludeSubjectKeyID: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IncludeSubjectKeyID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetIncludeSubjectKeyID: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub IncludeSubjectKeyID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait ICEnroll4_Impl: ICEnroll3_Impl { @@ -3045,15 +3045,15 @@ pub trait ICEnroll4_Impl: ICEnroll3_Impl { fn removePendingRequest(&self, strthumbprint: &windows_core::BSTR) -> windows_core::Result<()>; fn GetKeyLenEx(&self, lsizespec: XEKL_KEYSIZE, lkeyspec: XEKL_KEYSPEC) -> windows_core::Result; fn InstallPKCS7Ex(&self, pkcs7: &windows_core::BSTR) -> windows_core::Result; - fn addCertTypeToRequestEx(&self, ltype: ADDED_CERT_TYPE, bstroidorname: &windows_core::BSTR, lmajorversion: i32, fminorversion: super::super::super::Foundation::BOOL, lminorversion: i32) -> windows_core::Result<()>; + fn addCertTypeToRequestEx(&self, ltype: ADDED_CERT_TYPE, bstroidorname: &windows_core::BSTR, lmajorversion: i32, fminorversion: windows_core::BOOL, lminorversion: i32) -> windows_core::Result<()>; fn getProviderType(&self, strprovname: &windows_core::BSTR) -> windows_core::Result; fn SetSignerCertificate(&self, bstrcert: &windows_core::BSTR) -> windows_core::Result<()>; fn SetClientId(&self, lclientid: i32) -> windows_core::Result<()>; fn ClientId(&self) -> windows_core::Result; fn addBlobPropertyToCertificate(&self, lpropertyid: i32, lreserved: i32, bstrproperty: &windows_core::BSTR) -> windows_core::Result<()>; fn resetBlobProperties(&self) -> windows_core::Result<()>; - fn SetIncludeSubjectKeyID(&self, finclude: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn IncludeSubjectKeyID(&self) -> windows_core::Result; + fn SetIncludeSubjectKeyID(&self, finclude: windows_core::BOOL) -> windows_core::Result<()>; + fn IncludeSubjectKeyID(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl ICEnroll4_Vtbl { @@ -3268,7 +3268,7 @@ impl ICEnroll4_Vtbl { } } } - unsafe extern "system" fn addCertTypeToRequestEx(this: *mut core::ffi::c_void, ltype: ADDED_CERT_TYPE, bstroidorname: *mut core::ffi::c_void, lmajorversion: i32, fminorversion: super::super::super::Foundation::BOOL, lminorversion: i32) -> windows_core::HRESULT { + unsafe extern "system" fn addCertTypeToRequestEx(this: *mut core::ffi::c_void, ltype: ADDED_CERT_TYPE, bstroidorname: *mut core::ffi::c_void, lmajorversion: i32, fminorversion: windows_core::BOOL, lminorversion: i32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::addCertTypeToRequestEx(this, core::mem::transmute_copy(<ype), core::mem::transmute(&bstroidorname), core::mem::transmute_copy(&lmajorversion), core::mem::transmute_copy(&fminorversion), core::mem::transmute_copy(&lminorversion)).into() @@ -3322,13 +3322,13 @@ impl ICEnroll4_Vtbl { ICEnroll4_Impl::resetBlobProperties(this).into() } } - unsafe extern "system" fn SetIncludeSubjectKeyID(this: *mut core::ffi::c_void, finclude: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetIncludeSubjectKeyID(this: *mut core::ffi::c_void, finclude: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICEnroll4_Impl::SetIncludeSubjectKeyID(this, core::mem::transmute_copy(&finclude)).into() } } - unsafe extern "system" fn IncludeSubjectKeyID(this: *mut core::ffi::c_void, pfinclude: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IncludeSubjectKeyID(this: *mut core::ffi::c_void, pfinclude: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICEnroll4_Impl::IncludeSubjectKeyID(this) { @@ -11034,7 +11034,7 @@ impl IEnroll { pub unsafe fn SetProviderFlags(&self, dwflags: i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetProviderFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } } - pub unsafe fn UseExistingKeySet(&self, fuseexistingkeys: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn UseExistingKeySet(&self, fuseexistingkeys: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).UseExistingKeySet)(windows_core::Interface::as_raw(self), fuseexistingkeys as _).ok() } } pub unsafe fn SetUseExistingKeySet(&self, fuseexistingkeys: bool) -> windows_core::Result<()> { @@ -11046,25 +11046,25 @@ impl IEnroll { pub unsafe fn SetGenKeyFlags(&self, dwflags: i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetGenKeyFlags)(windows_core::Interface::as_raw(self), dwflags).ok() } } - pub unsafe fn DeleteRequestCert(&self, fdelete: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn DeleteRequestCert(&self, fdelete: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).DeleteRequestCert)(windows_core::Interface::as_raw(self), fdelete as _).ok() } } pub unsafe fn SetDeleteRequestCert(&self, fdelete: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetDeleteRequestCert)(windows_core::Interface::as_raw(self), fdelete.into()).ok() } } - pub unsafe fn WriteCertToUserDS(&self, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn WriteCertToUserDS(&self, fbool: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).WriteCertToUserDS)(windows_core::Interface::as_raw(self), fbool as _).ok() } } pub unsafe fn SetWriteCertToUserDS(&self, fbool: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetWriteCertToUserDS)(windows_core::Interface::as_raw(self), fbool.into()).ok() } } - pub unsafe fn EnableT61DNEncoding(&self, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn EnableT61DNEncoding(&self, fbool: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).EnableT61DNEncoding)(windows_core::Interface::as_raw(self), fbool as _).ok() } } pub unsafe fn SetEnableT61DNEncoding(&self, fbool: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetEnableT61DNEncoding)(windows_core::Interface::as_raw(self), fbool.into()).ok() } } - pub unsafe fn WriteCertToCSP(&self, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn WriteCertToCSP(&self, fbool: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).WriteCertToCSP)(windows_core::Interface::as_raw(self), fbool as _).ok() } } pub unsafe fn SetWriteCertToCSP(&self, fbool: bool) -> windows_core::Result<()> { @@ -11174,18 +11174,18 @@ pub struct IEnroll_Vtbl { pub SetKeySpec: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub ProviderFlags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetProviderFlags: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, - pub UseExistingKeySet: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetUseExistingKeySet: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub UseExistingKeySet: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetUseExistingKeySet: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GenKeyFlags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetGenKeyFlags: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, - pub DeleteRequestCert: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetDeleteRequestCert: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub WriteCertToUserDS: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetWriteCertToUserDS: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub EnableT61DNEncoding: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnableT61DNEncoding: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub WriteCertToCSP: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetWriteCertToCSP: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub DeleteRequestCert: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetDeleteRequestCert: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub WriteCertToUserDS: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetWriteCertToUserDS: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub EnableT61DNEncoding: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnableT61DNEncoding: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub WriteCertToCSP: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetWriteCertToCSP: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SPCFileNameWStr: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub SetSPCFileNameWStr: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub PVKFileNameWStr: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, @@ -11246,18 +11246,18 @@ pub trait IEnroll_Impl: windows_core::IUnknownImpl { fn SetKeySpec(&self, dw: i32) -> windows_core::Result<()>; fn ProviderFlags(&self, pdwflags: *mut i32) -> windows_core::Result<()>; fn SetProviderFlags(&self, dwflags: i32) -> windows_core::Result<()>; - fn UseExistingKeySet(&self, fuseexistingkeys: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetUseExistingKeySet(&self, fuseexistingkeys: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn UseExistingKeySet(&self, fuseexistingkeys: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn SetUseExistingKeySet(&self, fuseexistingkeys: windows_core::BOOL) -> windows_core::Result<()>; fn GenKeyFlags(&self, pdwflags: *mut i32) -> windows_core::Result<()>; fn SetGenKeyFlags(&self, dwflags: i32) -> windows_core::Result<()>; - fn DeleteRequestCert(&self, fdelete: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetDeleteRequestCert(&self, fdelete: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn WriteCertToUserDS(&self, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetWriteCertToUserDS(&self, fbool: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn EnableT61DNEncoding(&self, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetEnableT61DNEncoding(&self, fbool: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn WriteCertToCSP(&self, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetWriteCertToCSP(&self, fbool: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn DeleteRequestCert(&self, fdelete: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn SetDeleteRequestCert(&self, fdelete: windows_core::BOOL) -> windows_core::Result<()>; + fn WriteCertToUserDS(&self, fbool: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn SetWriteCertToUserDS(&self, fbool: windows_core::BOOL) -> windows_core::Result<()>; + fn EnableT61DNEncoding(&self, fbool: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn SetEnableT61DNEncoding(&self, fbool: windows_core::BOOL) -> windows_core::Result<()>; + fn WriteCertToCSP(&self, fbool: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn SetWriteCertToCSP(&self, fbool: windows_core::BOOL) -> windows_core::Result<()>; fn SPCFileNameWStr(&self, szw: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn SetSPCFileNameWStr(&self, szw: &windows_core::PCWSTR) -> windows_core::Result<()>; fn PVKFileNameWStr(&self, szw: *mut windows_core::PWSTR) -> windows_core::Result<()>; @@ -11544,13 +11544,13 @@ impl IEnroll_Vtbl { IEnroll_Impl::SetProviderFlags(this, core::mem::transmute_copy(&dwflags)).into() } } - unsafe extern "system" fn UseExistingKeySet(this: *mut core::ffi::c_void, fuseexistingkeys: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn UseExistingKeySet(this: *mut core::ffi::c_void, fuseexistingkeys: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::UseExistingKeySet(this, core::mem::transmute_copy(&fuseexistingkeys)).into() } } - unsafe extern "system" fn SetUseExistingKeySet(this: *mut core::ffi::c_void, fuseexistingkeys: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetUseExistingKeySet(this: *mut core::ffi::c_void, fuseexistingkeys: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetUseExistingKeySet(this, core::mem::transmute_copy(&fuseexistingkeys)).into() @@ -11568,49 +11568,49 @@ impl IEnroll_Vtbl { IEnroll_Impl::SetGenKeyFlags(this, core::mem::transmute_copy(&dwflags)).into() } } - unsafe extern "system" fn DeleteRequestCert(this: *mut core::ffi::c_void, fdelete: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DeleteRequestCert(this: *mut core::ffi::c_void, fdelete: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::DeleteRequestCert(this, core::mem::transmute_copy(&fdelete)).into() } } - unsafe extern "system" fn SetDeleteRequestCert(this: *mut core::ffi::c_void, fdelete: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetDeleteRequestCert(this: *mut core::ffi::c_void, fdelete: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetDeleteRequestCert(this, core::mem::transmute_copy(&fdelete)).into() } } - unsafe extern "system" fn WriteCertToUserDS(this: *mut core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn WriteCertToUserDS(this: *mut core::ffi::c_void, fbool: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::WriteCertToUserDS(this, core::mem::transmute_copy(&fbool)).into() } } - unsafe extern "system" fn SetWriteCertToUserDS(this: *mut core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetWriteCertToUserDS(this: *mut core::ffi::c_void, fbool: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetWriteCertToUserDS(this, core::mem::transmute_copy(&fbool)).into() } } - unsafe extern "system" fn EnableT61DNEncoding(this: *mut core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableT61DNEncoding(this: *mut core::ffi::c_void, fbool: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::EnableT61DNEncoding(this, core::mem::transmute_copy(&fbool)).into() } } - unsafe extern "system" fn SetEnableT61DNEncoding(this: *mut core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnableT61DNEncoding(this: *mut core::ffi::c_void, fbool: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetEnableT61DNEncoding(this, core::mem::transmute_copy(&fbool)).into() } } - unsafe extern "system" fn WriteCertToCSP(this: *mut core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn WriteCertToCSP(this: *mut core::ffi::c_void, fbool: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::WriteCertToCSP(this, core::mem::transmute_copy(&fbool)).into() } } - unsafe extern "system" fn SetWriteCertToCSP(this: *mut core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetWriteCertToCSP(this: *mut core::ffi::c_void, fbool: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll_Impl::SetWriteCertToCSP(this, core::mem::transmute_copy(&fbool)).into() @@ -11803,7 +11803,7 @@ impl IEnroll2 { pub unsafe fn SetReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetReuseHardwareKeyIfUnableToGenNew)(windows_core::Interface::as_raw(self), freusehardwarekeyifunabletogennew.into()).ok() } } - pub unsafe fn ReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn ReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).ReuseHardwareKeyIfUnableToGenNew)(windows_core::Interface::as_raw(self), freusehardwarekeyifunabletogennew as _).ok() } } pub unsafe fn SetHashAlgID(&self, hashalgid: i32) -> windows_core::Result<()> { @@ -11827,13 +11827,13 @@ impl IEnroll2 { pub unsafe fn SetLimitExchangeKeyToEncipherment(&self, flimitexchangekeytoencipherment: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetLimitExchangeKeyToEncipherment)(windows_core::Interface::as_raw(self), flimitexchangekeytoencipherment.into()).ok() } } - pub unsafe fn LimitExchangeKeyToEncipherment(&self, flimitexchangekeytoencipherment: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn LimitExchangeKeyToEncipherment(&self, flimitexchangekeytoencipherment: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).LimitExchangeKeyToEncipherment)(windows_core::Interface::as_raw(self), flimitexchangekeytoencipherment as _).ok() } } pub unsafe fn SetEnableSMIMECapabilities(&self, fenablesmimecapabilities: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetEnableSMIMECapabilities)(windows_core::Interface::as_raw(self), fenablesmimecapabilities.into()).ok() } } - pub unsafe fn EnableSMIMECapabilities(&self, fenablesmimecapabilities: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn EnableSMIMECapabilities(&self, fenablesmimecapabilities: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).EnableSMIMECapabilities)(windows_core::Interface::as_raw(self), fenablesmimecapabilities as _).ok() } } } @@ -11843,41 +11843,41 @@ pub struct IEnroll2_Vtbl { pub InstallPKCS7Blob: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT, pub Reset: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSupportedKeySpec: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - pub GetKeyLen: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL, super::super::super::Foundation::BOOL, *mut i32) -> windows_core::HRESULT, + pub GetKeyLen: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL, *mut i32) -> windows_core::HRESULT, pub EnumAlgs: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, *mut i32) -> windows_core::HRESULT, pub GetAlgNameWStr: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub SetReuseHardwareKeyIfUnableToGenNew: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub ReuseHardwareKeyIfUnableToGenNew: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetReuseHardwareKeyIfUnableToGenNew: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub ReuseHardwareKeyIfUnableToGenNew: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetHashAlgID: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub HashAlgID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetHStoreMy: unsafe extern "system" fn(*mut core::ffi::c_void, super::HCERTSTORE) -> windows_core::HRESULT, pub SetHStoreCA: unsafe extern "system" fn(*mut core::ffi::c_void, super::HCERTSTORE) -> windows_core::HRESULT, pub SetHStoreROOT: unsafe extern "system" fn(*mut core::ffi::c_void, super::HCERTSTORE) -> windows_core::HRESULT, pub SetHStoreRequest: unsafe extern "system" fn(*mut core::ffi::c_void, super::HCERTSTORE) -> windows_core::HRESULT, - pub SetLimitExchangeKeyToEncipherment: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub LimitExchangeKeyToEncipherment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnableSMIMECapabilities: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub EnableSMIMECapabilities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetLimitExchangeKeyToEncipherment: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub LimitExchangeKeyToEncipherment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnableSMIMECapabilities: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub EnableSMIMECapabilities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IEnroll2_Impl: IEnroll_Impl { fn InstallPKCS7Blob(&self, pblobpkcs7: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; fn GetSupportedKeySpec(&self, pdwkeyspec: *mut i32) -> windows_core::Result<()>; - fn GetKeyLen(&self, fmin: super::super::super::Foundation::BOOL, fexchange: super::super::super::Foundation::BOOL, pdwkeysize: *mut i32) -> windows_core::Result<()>; + fn GetKeyLen(&self, fmin: windows_core::BOOL, fexchange: windows_core::BOOL, pdwkeysize: *mut i32) -> windows_core::Result<()>; fn EnumAlgs(&self, dwindex: i32, algclass: i32, pdwalgid: *mut i32) -> windows_core::Result<()>; fn GetAlgNameWStr(&self, algid: i32, ppwsz: *mut windows_core::PWSTR) -> windows_core::Result<()>; - fn SetReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn ReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: windows_core::BOOL) -> windows_core::Result<()>; + fn ReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: *mut windows_core::BOOL) -> windows_core::Result<()>; fn SetHashAlgID(&self, hashalgid: i32) -> windows_core::Result<()>; fn HashAlgID(&self, hashalgid: *mut i32) -> windows_core::Result<()>; fn SetHStoreMy(&self, hstore: super::HCERTSTORE) -> windows_core::Result<()>; fn SetHStoreCA(&self, hstore: super::HCERTSTORE) -> windows_core::Result<()>; fn SetHStoreROOT(&self, hstore: super::HCERTSTORE) -> windows_core::Result<()>; fn SetHStoreRequest(&self, hstore: super::HCERTSTORE) -> windows_core::Result<()>; - fn SetLimitExchangeKeyToEncipherment(&self, flimitexchangekeytoencipherment: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn LimitExchangeKeyToEncipherment(&self, flimitexchangekeytoencipherment: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetEnableSMIMECapabilities(&self, fenablesmimecapabilities: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn EnableSMIMECapabilities(&self, fenablesmimecapabilities: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetLimitExchangeKeyToEncipherment(&self, flimitexchangekeytoencipherment: windows_core::BOOL) -> windows_core::Result<()>; + fn LimitExchangeKeyToEncipherment(&self, flimitexchangekeytoencipherment: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn SetEnableSMIMECapabilities(&self, fenablesmimecapabilities: windows_core::BOOL) -> windows_core::Result<()>; + fn EnableSMIMECapabilities(&self, fenablesmimecapabilities: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IEnroll2_Vtbl { pub const fn new() -> Self { @@ -11899,7 +11899,7 @@ impl IEnroll2_Vtbl { IEnroll2_Impl::GetSupportedKeySpec(this, core::mem::transmute_copy(&pdwkeyspec)).into() } } - unsafe extern "system" fn GetKeyLen(this: *mut core::ffi::c_void, fmin: super::super::super::Foundation::BOOL, fexchange: super::super::super::Foundation::BOOL, pdwkeysize: *mut i32) -> windows_core::HRESULT { + unsafe extern "system" fn GetKeyLen(this: *mut core::ffi::c_void, fmin: windows_core::BOOL, fexchange: windows_core::BOOL, pdwkeysize: *mut i32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::GetKeyLen(this, core::mem::transmute_copy(&fmin), core::mem::transmute_copy(&fexchange), core::mem::transmute_copy(&pdwkeysize)).into() @@ -11917,13 +11917,13 @@ impl IEnroll2_Vtbl { IEnroll2_Impl::GetAlgNameWStr(this, core::mem::transmute_copy(&algid), core::mem::transmute_copy(&ppwsz)).into() } } - unsafe extern "system" fn SetReuseHardwareKeyIfUnableToGenNew(this: *mut core::ffi::c_void, freusehardwarekeyifunabletogennew: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetReuseHardwareKeyIfUnableToGenNew(this: *mut core::ffi::c_void, freusehardwarekeyifunabletogennew: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::SetReuseHardwareKeyIfUnableToGenNew(this, core::mem::transmute_copy(&freusehardwarekeyifunabletogennew)).into() } } - unsafe extern "system" fn ReuseHardwareKeyIfUnableToGenNew(this: *mut core::ffi::c_void, freusehardwarekeyifunabletogennew: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ReuseHardwareKeyIfUnableToGenNew(this: *mut core::ffi::c_void, freusehardwarekeyifunabletogennew: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::ReuseHardwareKeyIfUnableToGenNew(this, core::mem::transmute_copy(&freusehardwarekeyifunabletogennew)).into() @@ -11965,25 +11965,25 @@ impl IEnroll2_Vtbl { IEnroll2_Impl::SetHStoreRequest(this, core::mem::transmute_copy(&hstore)).into() } } - unsafe extern "system" fn SetLimitExchangeKeyToEncipherment(this: *mut core::ffi::c_void, flimitexchangekeytoencipherment: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetLimitExchangeKeyToEncipherment(this: *mut core::ffi::c_void, flimitexchangekeytoencipherment: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::SetLimitExchangeKeyToEncipherment(this, core::mem::transmute_copy(&flimitexchangekeytoencipherment)).into() } } - unsafe extern "system" fn LimitExchangeKeyToEncipherment(this: *mut core::ffi::c_void, flimitexchangekeytoencipherment: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn LimitExchangeKeyToEncipherment(this: *mut core::ffi::c_void, flimitexchangekeytoencipherment: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::LimitExchangeKeyToEncipherment(this, core::mem::transmute_copy(&flimitexchangekeytoencipherment)).into() } } - unsafe extern "system" fn SetEnableSMIMECapabilities(this: *mut core::ffi::c_void, fenablesmimecapabilities: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnableSMIMECapabilities(this: *mut core::ffi::c_void, fenablesmimecapabilities: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::SetEnableSMIMECapabilities(this, core::mem::transmute_copy(&fenablesmimecapabilities)).into() } } - unsafe extern "system" fn EnableSMIMECapabilities(this: *mut core::ffi::c_void, fenablesmimecapabilities: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableSMIMECapabilities(this: *mut core::ffi::c_void, fenablesmimecapabilities: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll2_Impl::EnableSMIMECapabilities(this, core::mem::transmute_copy(&fenablesmimecapabilities)).into() @@ -12164,7 +12164,7 @@ impl IEnroll4 { pub unsafe fn SetIncludeSubjectKeyID(&self, finclude: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetIncludeSubjectKeyID)(windows_core::Interface::as_raw(self), finclude.into()).ok() } } - pub unsafe fn IncludeSubjectKeyID(&self, pfinclude: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn IncludeSubjectKeyID(&self, pfinclude: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IncludeSubjectKeyID)(windows_core::Interface::as_raw(self), pfinclude as _).ok() } } } @@ -12195,14 +12195,14 @@ pub struct IEnroll4_Vtbl { pub removePendingRequestWStr: unsafe extern "system" fn(*mut core::ffi::c_void, super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT, pub GetKeyLenEx: unsafe extern "system" fn(*mut core::ffi::c_void, XEKL_KEYSIZE, XEKL_KEYSPEC, *mut i32) -> windows_core::HRESULT, pub InstallPKCS7BlobEx: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::CRYPT_INTEGER_BLOB, *mut i32) -> windows_core::HRESULT, - pub AddCertTypeToRequestWStrEx: unsafe extern "system" fn(*mut core::ffi::c_void, ADDED_CERT_TYPE, windows_core::PCWSTR, i32, super::super::super::Foundation::BOOL, i32) -> windows_core::HRESULT, + pub AddCertTypeToRequestWStrEx: unsafe extern "system" fn(*mut core::ffi::c_void, ADDED_CERT_TYPE, windows_core::PCWSTR, i32, windows_core::BOOL, i32) -> windows_core::HRESULT, pub getProviderTypeWStr: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut i32) -> windows_core::HRESULT, pub addBlobPropertyToCertificateWStr: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, *mut super::CRYPT_INTEGER_BLOB) -> windows_core::HRESULT, pub SetSignerCertificate: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::CERT_CONTEXT) -> windows_core::HRESULT, pub SetClientId: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub ClientId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - pub SetIncludeSubjectKeyID: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IncludeSubjectKeyID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetIncludeSubjectKeyID: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub IncludeSubjectKeyID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IEnroll4_Impl: IEnroll2_Impl { fn SetThumbPrintWStr(&self, thumbprintblob: &super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()>; @@ -12229,14 +12229,14 @@ pub trait IEnroll4_Impl: IEnroll2_Impl { fn removePendingRequestWStr(&self, thumbprintblob: &super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()>; fn GetKeyLenEx(&self, lsizespec: XEKL_KEYSIZE, lkeyspec: XEKL_KEYSPEC, pdwkeysize: *mut i32) -> windows_core::Result<()>; fn InstallPKCS7BlobEx(&self, pblobpkcs7: *mut super::CRYPT_INTEGER_BLOB, plcertinstalled: *mut i32) -> windows_core::Result<()>; - fn AddCertTypeToRequestWStrEx(&self, ltype: ADDED_CERT_TYPE, pwszoidorname: &windows_core::PCWSTR, lmajorversion: i32, fminorversion: super::super::super::Foundation::BOOL, lminorversion: i32) -> windows_core::Result<()>; + fn AddCertTypeToRequestWStrEx(&self, ltype: ADDED_CERT_TYPE, pwszoidorname: &windows_core::PCWSTR, lmajorversion: i32, fminorversion: windows_core::BOOL, lminorversion: i32) -> windows_core::Result<()>; fn getProviderTypeWStr(&self, pwszprovname: &windows_core::PCWSTR, plprovtype: *mut i32) -> windows_core::Result<()>; fn addBlobPropertyToCertificateWStr(&self, lpropertyid: i32, lreserved: i32, pblobproperty: *mut super::CRYPT_INTEGER_BLOB) -> windows_core::Result<()>; fn SetSignerCertificate(&self, psignercert: *const super::CERT_CONTEXT) -> windows_core::Result<()>; fn SetClientId(&self, lclientid: i32) -> windows_core::Result<()>; fn ClientId(&self, plclientid: *mut i32) -> windows_core::Result<()>; - fn SetIncludeSubjectKeyID(&self, finclude: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn IncludeSubjectKeyID(&self, pfinclude: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetIncludeSubjectKeyID(&self, finclude: windows_core::BOOL) -> windows_core::Result<()>; + fn IncludeSubjectKeyID(&self, pfinclude: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IEnroll4_Vtbl { pub const fn new() -> Self { @@ -12384,7 +12384,7 @@ impl IEnroll4_Vtbl { IEnroll4_Impl::InstallPKCS7BlobEx(this, core::mem::transmute_copy(&pblobpkcs7), core::mem::transmute_copy(&plcertinstalled)).into() } } - unsafe extern "system" fn AddCertTypeToRequestWStrEx(this: *mut core::ffi::c_void, ltype: ADDED_CERT_TYPE, pwszoidorname: windows_core::PCWSTR, lmajorversion: i32, fminorversion: super::super::super::Foundation::BOOL, lminorversion: i32) -> windows_core::HRESULT { + unsafe extern "system" fn AddCertTypeToRequestWStrEx(this: *mut core::ffi::c_void, ltype: ADDED_CERT_TYPE, pwszoidorname: windows_core::PCWSTR, lmajorversion: i32, fminorversion: windows_core::BOOL, lminorversion: i32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::AddCertTypeToRequestWStrEx(this, core::mem::transmute_copy(<ype), core::mem::transmute(&pwszoidorname), core::mem::transmute_copy(&lmajorversion), core::mem::transmute_copy(&fminorversion), core::mem::transmute_copy(&lminorversion)).into() @@ -12420,13 +12420,13 @@ impl IEnroll4_Vtbl { IEnroll4_Impl::ClientId(this, core::mem::transmute_copy(&plclientid)).into() } } - unsafe extern "system" fn SetIncludeSubjectKeyID(this: *mut core::ffi::c_void, finclude: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetIncludeSubjectKeyID(this: *mut core::ffi::c_void, finclude: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::SetIncludeSubjectKeyID(this, core::mem::transmute_copy(&finclude)).into() } } - unsafe extern "system" fn IncludeSubjectKeyID(this: *mut core::ffi::c_void, pfinclude: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IncludeSubjectKeyID(this: *mut core::ffi::c_void, pfinclude: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEnroll4_Impl::IncludeSubjectKeyID(this, core::mem::transmute_copy(&pfinclude)).into() @@ -13089,7 +13089,7 @@ impl INDESPolicy { (windows_core::Interface::vtable(self).GenerateChallenge)(windows_core::Interface::as_raw(self), pwsztemplate.param().abi(), pwszparams.param().abi(), &mut result__).map(|| result__) } } - pub unsafe fn VerifyRequest(&self, pctbrequest: *mut CERTTRANSBLOB, pctbsigningcertencoded: *mut CERTTRANSBLOB, pwsztemplate: P2, pwsztransactionid: P3) -> windows_core::Result + pub unsafe fn VerifyRequest(&self, pctbrequest: *mut CERTTRANSBLOB, pctbsigningcertencoded: *mut CERTTRANSBLOB, pwsztemplate: P2, pwsztransactionid: P3) -> windows_core::Result where P2: windows_core::Param, P3: windows_core::Param, @@ -13113,14 +13113,14 @@ pub struct INDESPolicy_Vtbl { pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Uninitialize: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GenerateChallenge: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub VerifyRequest: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CERTTRANSBLOB, *mut CERTTRANSBLOB, windows_core::PCWSTR, windows_core::PCWSTR, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub VerifyRequest: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CERTTRANSBLOB, *mut CERTTRANSBLOB, windows_core::PCWSTR, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Notify: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, X509SCEPDisposition, i32, *mut CERTTRANSBLOB) -> windows_core::HRESULT, } pub trait INDESPolicy_Impl: windows_core::IUnknownImpl { fn Initialize(&self) -> windows_core::Result<()>; fn Uninitialize(&self) -> windows_core::Result<()>; fn GenerateChallenge(&self, pwsztemplate: &windows_core::PCWSTR, pwszparams: &windows_core::PCWSTR) -> windows_core::Result; - fn VerifyRequest(&self, pctbrequest: *mut CERTTRANSBLOB, pctbsigningcertencoded: *mut CERTTRANSBLOB, pwsztemplate: &windows_core::PCWSTR, pwsztransactionid: &windows_core::PCWSTR) -> windows_core::Result; + fn VerifyRequest(&self, pctbrequest: *mut CERTTRANSBLOB, pctbsigningcertencoded: *mut CERTTRANSBLOB, pwsztemplate: &windows_core::PCWSTR, pwsztransactionid: &windows_core::PCWSTR) -> windows_core::Result; fn Notify(&self, pwszchallenge: &windows_core::PCWSTR, pwsztransactionid: &windows_core::PCWSTR, disposition: X509SCEPDisposition, lasthresult: i32, pctbissuedcertencoded: *mut CERTTRANSBLOB) -> windows_core::Result<()>; } impl INDESPolicy_Vtbl { @@ -13149,7 +13149,7 @@ impl INDESPolicy_Vtbl { } } } - unsafe extern "system" fn VerifyRequest(this: *mut core::ffi::c_void, pctbrequest: *mut CERTTRANSBLOB, pctbsigningcertencoded: *mut CERTTRANSBLOB, pwsztemplate: windows_core::PCWSTR, pwsztransactionid: windows_core::PCWSTR, pfverified: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn VerifyRequest(this: *mut core::ffi::c_void, pctbrequest: *mut CERTTRANSBLOB, pctbsigningcertencoded: *mut CERTTRANSBLOB, pwsztemplate: windows_core::PCWSTR, pwsztransactionid: windows_core::PCWSTR, pfverified: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match INDESPolicy_Impl::VerifyRequest(this, core::mem::transmute_copy(&pctbrequest), core::mem::transmute_copy(&pctbsigningcertencoded), core::mem::transmute(&pwsztemplate), core::mem::transmute(&pwsztransactionid)) { diff --git a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Sip/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Sip/mod.rs index ebc94d9467..5741f0ecf7 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Sip/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Sip/mod.rs @@ -1,53 +1,53 @@ #[inline] pub unsafe fn CryptSIPAddProvider(psnewprov: *mut SIP_ADD_NEWPROVIDER) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptSIPAddProvider(psnewprov : *mut SIP_ADD_NEWPROVIDER) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptSIPAddProvider(psnewprov : *mut SIP_ADD_NEWPROVIDER) -> windows_core::BOOL); unsafe { CryptSIPAddProvider(psnewprov as _).ok() } } #[cfg(feature = "Win32_Security_Cryptography_Catalog")] #[inline] pub unsafe fn CryptSIPCreateIndirectData(psubjectinfo: *mut SIP_SUBJECTINFO, pcbindirectdata: *mut u32, pindirectdata: *mut SIP_INDIRECT_DATA) -> windows_core::Result<()> { - windows_targets::link!("wintrust.dll" "system" fn CryptSIPCreateIndirectData(psubjectinfo : *mut SIP_SUBJECTINFO, pcbindirectdata : *mut u32, pindirectdata : *mut SIP_INDIRECT_DATA) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("wintrust.dll" "system" fn CryptSIPCreateIndirectData(psubjectinfo : *mut SIP_SUBJECTINFO, pcbindirectdata : *mut u32, pindirectdata : *mut SIP_INDIRECT_DATA) -> windows_core::BOOL); unsafe { CryptSIPCreateIndirectData(psubjectinfo as _, pcbindirectdata as _, pindirectdata as _).ok() } } #[cfg(feature = "Win32_Security_Cryptography_Catalog")] #[inline] -pub unsafe fn CryptSIPGetCaps(psubjinfo: *const SIP_SUBJECTINFO, pcaps: *mut SIP_CAP_SET_V3) -> super::super::super::Foundation::BOOL { - windows_targets::link!("wintrust.dll" "system" fn CryptSIPGetCaps(psubjinfo : *const SIP_SUBJECTINFO, pcaps : *mut SIP_CAP_SET_V3) -> super::super::super::Foundation:: BOOL); +pub unsafe fn CryptSIPGetCaps(psubjinfo: *const SIP_SUBJECTINFO, pcaps: *mut SIP_CAP_SET_V3) -> windows_core::BOOL { + windows_targets::link!("wintrust.dll" "system" fn CryptSIPGetCaps(psubjinfo : *const SIP_SUBJECTINFO, pcaps : *mut SIP_CAP_SET_V3) -> windows_core::BOOL); unsafe { CryptSIPGetCaps(psubjinfo, pcaps as _) } } #[cfg(feature = "Win32_Security_Cryptography_Catalog")] #[inline] -pub unsafe fn CryptSIPGetSealedDigest(psubjectinfo: *const SIP_SUBJECTINFO, psig: Option<&[u8]>, pbdigest: Option<*mut u8>, pcbdigest: *mut u32) -> super::super::super::Foundation::BOOL { - windows_targets::link!("wintrust.dll" "system" fn CryptSIPGetSealedDigest(psubjectinfo : *const SIP_SUBJECTINFO, psig : *const u8, dwsig : u32, pbdigest : *mut u8, pcbdigest : *mut u32) -> super::super::super::Foundation:: BOOL); +pub unsafe fn CryptSIPGetSealedDigest(psubjectinfo: *const SIP_SUBJECTINFO, psig: Option<&[u8]>, pbdigest: Option<*mut u8>, pcbdigest: *mut u32) -> windows_core::BOOL { + windows_targets::link!("wintrust.dll" "system" fn CryptSIPGetSealedDigest(psubjectinfo : *const SIP_SUBJECTINFO, psig : *const u8, dwsig : u32, pbdigest : *mut u8, pcbdigest : *mut u32) -> windows_core::BOOL); unsafe { CryptSIPGetSealedDigest(psubjectinfo, core::mem::transmute(psig.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psig.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pbdigest.unwrap_or(core::mem::zeroed()) as _, pcbdigest as _) } } #[cfg(feature = "Win32_Security_Cryptography_Catalog")] #[inline] pub unsafe fn CryptSIPGetSignedDataMsg(psubjectinfo: *mut SIP_SUBJECTINFO, pdwencodingtype: *mut super::CERT_QUERY_ENCODING_TYPE, dwindex: u32, pcbsigneddatamsg: *mut u32, pbsigneddatamsg: *mut u8) -> windows_core::Result<()> { - windows_targets::link!("wintrust.dll" "system" fn CryptSIPGetSignedDataMsg(psubjectinfo : *mut SIP_SUBJECTINFO, pdwencodingtype : *mut super:: CERT_QUERY_ENCODING_TYPE, dwindex : u32, pcbsigneddatamsg : *mut u32, pbsigneddatamsg : *mut u8) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("wintrust.dll" "system" fn CryptSIPGetSignedDataMsg(psubjectinfo : *mut SIP_SUBJECTINFO, pdwencodingtype : *mut super:: CERT_QUERY_ENCODING_TYPE, dwindex : u32, pcbsigneddatamsg : *mut u32, pbsigneddatamsg : *mut u8) -> windows_core::BOOL); unsafe { CryptSIPGetSignedDataMsg(psubjectinfo as _, pdwencodingtype as _, dwindex, pcbsigneddatamsg as _, pbsigneddatamsg as _).ok() } } #[cfg(feature = "Win32_Security_Cryptography_Catalog")] #[inline] pub unsafe fn CryptSIPLoad(pgsubject: *const windows_core::GUID, dwflags: u32, psipdispatch: *mut SIP_DISPATCH_INFO) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptSIPLoad(pgsubject : *const windows_core::GUID, dwflags : u32, psipdispatch : *mut SIP_DISPATCH_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptSIPLoad(pgsubject : *const windows_core::GUID, dwflags : u32, psipdispatch : *mut SIP_DISPATCH_INFO) -> windows_core::BOOL); unsafe { CryptSIPLoad(pgsubject, dwflags, psipdispatch as _).ok() } } #[cfg(feature = "Win32_Security_Cryptography_Catalog")] #[inline] pub unsafe fn CryptSIPPutSignedDataMsg(psubjectinfo: *mut SIP_SUBJECTINFO, dwencodingtype: super::CERT_QUERY_ENCODING_TYPE, pdwindex: *mut u32, cbsigneddatamsg: u32, pbsigneddatamsg: *mut u8) -> windows_core::Result<()> { - windows_targets::link!("wintrust.dll" "system" fn CryptSIPPutSignedDataMsg(psubjectinfo : *mut SIP_SUBJECTINFO, dwencodingtype : super:: CERT_QUERY_ENCODING_TYPE, pdwindex : *mut u32, cbsigneddatamsg : u32, pbsigneddatamsg : *mut u8) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("wintrust.dll" "system" fn CryptSIPPutSignedDataMsg(psubjectinfo : *mut SIP_SUBJECTINFO, dwencodingtype : super:: CERT_QUERY_ENCODING_TYPE, pdwindex : *mut u32, cbsigneddatamsg : u32, pbsigneddatamsg : *mut u8) -> windows_core::BOOL); unsafe { CryptSIPPutSignedDataMsg(psubjectinfo as _, dwencodingtype, pdwindex as _, cbsigneddatamsg, pbsigneddatamsg as _).ok() } } #[inline] pub unsafe fn CryptSIPRemoveProvider(pgprov: *mut windows_core::GUID) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptSIPRemoveProvider(pgprov : *mut windows_core::GUID) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptSIPRemoveProvider(pgprov : *mut windows_core::GUID) -> windows_core::BOOL); unsafe { CryptSIPRemoveProvider(pgprov as _).ok() } } #[cfg(feature = "Win32_Security_Cryptography_Catalog")] #[inline] pub unsafe fn CryptSIPRemoveSignedDataMsg(psubjectinfo: *mut SIP_SUBJECTINFO, dwindex: u32) -> windows_core::Result<()> { - windows_targets::link!("wintrust.dll" "system" fn CryptSIPRemoveSignedDataMsg(psubjectinfo : *mut SIP_SUBJECTINFO, dwindex : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("wintrust.dll" "system" fn CryptSIPRemoveSignedDataMsg(psubjectinfo : *mut SIP_SUBJECTINFO, dwindex : u32) -> windows_core::BOOL); unsafe { CryptSIPRemoveSignedDataMsg(psubjectinfo as _, dwindex).ok() } } #[inline] @@ -55,7 +55,7 @@ pub unsafe fn CryptSIPRetrieveSubjectGuid(filename: P0, hfilein: super::supe where P0: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptSIPRetrieveSubjectGuid(filename : windows_core::PCWSTR, hfilein : super::super::super::Foundation:: HANDLE, pgsubject : *mut windows_core::GUID) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptSIPRetrieveSubjectGuid(filename : windows_core::PCWSTR, hfilein : super::super::super::Foundation:: HANDLE, pgsubject : *mut windows_core::GUID) -> windows_core::BOOL); unsafe { CryptSIPRetrieveSubjectGuid(filename.param().abi(), hfilein, pgsubject as _).ok() } } #[inline] @@ -63,13 +63,13 @@ pub unsafe fn CryptSIPRetrieveSubjectGuidForCatalogFile(filename: P0, hfilei where P0: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptSIPRetrieveSubjectGuidForCatalogFile(filename : windows_core::PCWSTR, hfilein : super::super::super::Foundation:: HANDLE, pgsubject : *mut windows_core::GUID) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptSIPRetrieveSubjectGuidForCatalogFile(filename : windows_core::PCWSTR, hfilein : super::super::super::Foundation:: HANDLE, pgsubject : *mut windows_core::GUID) -> windows_core::BOOL); unsafe { CryptSIPRetrieveSubjectGuidForCatalogFile(filename.param().abi(), hfilein, pgsubject as _).ok() } } #[cfg(feature = "Win32_Security_Cryptography_Catalog")] #[inline] pub unsafe fn CryptSIPVerifyIndirectData(psubjectinfo: *mut SIP_SUBJECTINFO, pindirectdata: *mut SIP_INDIRECT_DATA) -> windows_core::Result<()> { - windows_targets::link!("wintrust.dll" "system" fn CryptSIPVerifyIndirectData(psubjectinfo : *mut SIP_SUBJECTINFO, pindirectdata : *mut SIP_INDIRECT_DATA) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("wintrust.dll" "system" fn CryptSIPVerifyIndirectData(psubjectinfo : *mut SIP_SUBJECTINFO, pindirectdata : *mut SIP_INDIRECT_DATA) -> windows_core::BOOL); unsafe { CryptSIPVerifyIndirectData(psubjectinfo as _, pindirectdata as _).ok() } } pub const MSSIP_ADDINFO_BLOB: u32 = 3u32; @@ -133,7 +133,7 @@ pub const SIP_CAP_SET_CUR_VER: u32 = 3u32; pub struct SIP_CAP_SET_V2 { pub cbSize: u32, pub dwVersion: u32, - pub isMultiSign: super::super::super::Foundation::BOOL, + pub isMultiSign: windows_core::BOOL, pub dwReserved: u32, } impl Default for SIP_CAP_SET_V2 { @@ -146,7 +146,7 @@ impl Default for SIP_CAP_SET_V2 { pub struct SIP_CAP_SET_V3 { pub cbSize: u32, pub dwVersion: u32, - pub isMultiSign: super::super::super::Foundation::BOOL, + pub isMultiSign: windows_core::BOOL, pub Anonymous: SIP_CAP_SET_V3_0, } impl Default for SIP_CAP_SET_V3 { @@ -245,18 +245,18 @@ pub const SPC_MARKER_CHECK_CURRENTLY_SUPPORTED_FLAGS: u32 = 1u32; pub const SPC_MARKER_CHECK_SKIP_SIP_INDIRECT_DATA_FLAG: u32 = 1u32; pub const SPC_RELAXED_PE_MARKER_CHECK: u32 = 2048u32; #[cfg(feature = "Win32_Security_Cryptography_Catalog")] -pub type pCryptSIPCreateIndirectData = Option super::super::super::Foundation::BOOL>; +pub type pCryptSIPCreateIndirectData = Option windows_core::BOOL>; #[cfg(feature = "Win32_Security_Cryptography_Catalog")] -pub type pCryptSIPGetCaps = Option super::super::super::Foundation::BOOL>; +pub type pCryptSIPGetCaps = Option windows_core::BOOL>; #[cfg(feature = "Win32_Security_Cryptography_Catalog")] -pub type pCryptSIPGetSealedDigest = Option super::super::super::Foundation::BOOL>; +pub type pCryptSIPGetSealedDigest = Option windows_core::BOOL>; #[cfg(feature = "Win32_Security_Cryptography_Catalog")] -pub type pCryptSIPGetSignedDataMsg = Option super::super::super::Foundation::BOOL>; +pub type pCryptSIPGetSignedDataMsg = Option windows_core::BOOL>; #[cfg(feature = "Win32_Security_Cryptography_Catalog")] -pub type pCryptSIPPutSignedDataMsg = Option super::super::super::Foundation::BOOL>; +pub type pCryptSIPPutSignedDataMsg = Option windows_core::BOOL>; #[cfg(feature = "Win32_Security_Cryptography_Catalog")] -pub type pCryptSIPRemoveSignedDataMsg = Option super::super::super::Foundation::BOOL>; +pub type pCryptSIPRemoveSignedDataMsg = Option windows_core::BOOL>; #[cfg(feature = "Win32_Security_Cryptography_Catalog")] -pub type pCryptSIPVerifyIndirectData = Option super::super::super::Foundation::BOOL>; -pub type pfnIsFileSupported = Option super::super::super::Foundation::BOOL>; -pub type pfnIsFileSupportedName = Option super::super::super::Foundation::BOOL>; +pub type pCryptSIPVerifyIndirectData = Option windows_core::BOOL>; +pub type pfnIsFileSupported = Option windows_core::BOOL>; +pub type pfnIsFileSupportedName = Option windows_core::BOOL>; diff --git a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/UI/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/UI/mod.rs index 9911c78b91..c2aa725aee 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/UI/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/UI/mod.rs @@ -4,8 +4,8 @@ pub unsafe fn CertSelectionGetSerializedBlob(pcsi: *const CERT_SELECTUI_INPUT, p unsafe { CertSelectionGetSerializedBlob(pcsi, ppoutbuffer as _, puloutbuffersize as _).ok() } } #[inline] -pub unsafe fn CryptUIDlgCertMgr(pcryptuicertmgr: *const CRYPTUI_CERT_MGR_STRUCT) -> super::super::super::Foundation::BOOL { - windows_targets::link!("cryptui.dll" "system" fn CryptUIDlgCertMgr(pcryptuicertmgr : *const CRYPTUI_CERT_MGR_STRUCT) -> super::super::super::Foundation:: BOOL); +pub unsafe fn CryptUIDlgCertMgr(pcryptuicertmgr: *const CRYPTUI_CERT_MGR_STRUCT) -> windows_core::BOOL { + windows_targets::link!("cryptui.dll" "system" fn CryptUIDlgCertMgr(pcryptuicertmgr : *const CRYPTUI_CERT_MGR_STRUCT) -> windows_core::BOOL); unsafe { CryptUIDlgCertMgr(pcryptuicertmgr) } } #[inline] @@ -19,30 +19,30 @@ where } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip", feature = "Win32_Security_WinTrust", feature = "Win32_UI_Controls", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] -pub unsafe fn CryptUIDlgViewCertificateA(pcertviewinfo: *const CRYPTUI_VIEWCERTIFICATE_STRUCTA, pfpropertieschanged: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("cryptui.dll" "system" fn CryptUIDlgViewCertificateA(pcertviewinfo : *const CRYPTUI_VIEWCERTIFICATE_STRUCTA, pfpropertieschanged : *mut super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); +pub unsafe fn CryptUIDlgViewCertificateA(pcertviewinfo: *const CRYPTUI_VIEWCERTIFICATE_STRUCTA, pfpropertieschanged: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("cryptui.dll" "system" fn CryptUIDlgViewCertificateA(pcertviewinfo : *const CRYPTUI_VIEWCERTIFICATE_STRUCTA, pfpropertieschanged : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { CryptUIDlgViewCertificateA(pcertviewinfo, pfpropertieschanged as _).ok() } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip", feature = "Win32_Security_WinTrust", feature = "Win32_UI_Controls", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] -pub unsafe fn CryptUIDlgViewCertificateW(pcertviewinfo: *const CRYPTUI_VIEWCERTIFICATE_STRUCTW, pfpropertieschanged: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("cryptui.dll" "system" fn CryptUIDlgViewCertificateW(pcertviewinfo : *const CRYPTUI_VIEWCERTIFICATE_STRUCTW, pfpropertieschanged : *mut super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); +pub unsafe fn CryptUIDlgViewCertificateW(pcertviewinfo: *const CRYPTUI_VIEWCERTIFICATE_STRUCTW, pfpropertieschanged: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("cryptui.dll" "system" fn CryptUIDlgViewCertificateW(pcertviewinfo : *const CRYPTUI_VIEWCERTIFICATE_STRUCTW, pfpropertieschanged : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { CryptUIDlgViewCertificateW(pcertviewinfo, pfpropertieschanged as _).ok() } } #[inline] -pub unsafe fn CryptUIDlgViewContext(dwcontexttype: u32, pvcontext: *const core::ffi::c_void, hwnd: Option, pwsztitle: P3, dwflags: u32, pvreserved: *const core::ffi::c_void) -> super::super::super::Foundation::BOOL +pub unsafe fn CryptUIDlgViewContext(dwcontexttype: u32, pvcontext: *const core::ffi::c_void, hwnd: Option, pwsztitle: P3, dwflags: u32, pvreserved: *const core::ffi::c_void) -> windows_core::BOOL where P3: windows_core::Param, { - windows_targets::link!("cryptui.dll" "system" fn CryptUIDlgViewContext(dwcontexttype : u32, pvcontext : *const core::ffi::c_void, hwnd : super::super::super::Foundation:: HWND, pwsztitle : windows_core::PCWSTR, dwflags : u32, pvreserved : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("cryptui.dll" "system" fn CryptUIDlgViewContext(dwcontexttype : u32, pvcontext : *const core::ffi::c_void, hwnd : super::super::super::Foundation:: HWND, pwsztitle : windows_core::PCWSTR, dwflags : u32, pvreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CryptUIDlgViewContext(dwcontexttype, pvcontext, hwnd.unwrap_or(core::mem::zeroed()) as _, pwsztitle.param().abi(), dwflags, pvreserved) } } #[inline] -pub unsafe fn CryptUIWizDigitalSign(dwflags: u32, hwndparent: Option, pwszwizardtitle: P2, pdigitalsigninfo: *const CRYPTUI_WIZ_DIGITAL_SIGN_INFO, ppsigncontext: Option<*mut *mut CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT>) -> super::super::super::Foundation::BOOL +pub unsafe fn CryptUIWizDigitalSign(dwflags: u32, hwndparent: Option, pwszwizardtitle: P2, pdigitalsigninfo: *const CRYPTUI_WIZ_DIGITAL_SIGN_INFO, ppsigncontext: Option<*mut *mut CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT>) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("cryptui.dll" "system" fn CryptUIWizDigitalSign(dwflags : u32, hwndparent : super::super::super::Foundation:: HWND, pwszwizardtitle : windows_core::PCWSTR, pdigitalsigninfo : *const CRYPTUI_WIZ_DIGITAL_SIGN_INFO, ppsigncontext : *mut *mut CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("cryptui.dll" "system" fn CryptUIWizDigitalSign(dwflags : u32, hwndparent : super::super::super::Foundation:: HWND, pwszwizardtitle : windows_core::PCWSTR, pdigitalsigninfo : *const CRYPTUI_WIZ_DIGITAL_SIGN_INFO, ppsigncontext : *mut *mut CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT) -> windows_core::BOOL); unsafe { CryptUIWizDigitalSign(dwflags, hwndparent.unwrap_or(core::mem::zeroed()) as _, pwszwizardtitle.param().abi(), pdigitalsigninfo, ppsigncontext.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -50,12 +50,12 @@ pub unsafe fn CryptUIWizExport(dwflags: CRYPTUI_WIZ_FLAGS, hwndparent: Optio where P2: windows_core::Param, { - windows_targets::link!("cryptui.dll" "system" fn CryptUIWizExport(dwflags : CRYPTUI_WIZ_FLAGS, hwndparent : super::super::super::Foundation:: HWND, pwszwizardtitle : windows_core::PCWSTR, pexportinfo : *const CRYPTUI_WIZ_EXPORT_INFO, pvoid : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("cryptui.dll" "system" fn CryptUIWizExport(dwflags : CRYPTUI_WIZ_FLAGS, hwndparent : super::super::super::Foundation:: HWND, pwszwizardtitle : windows_core::PCWSTR, pexportinfo : *const CRYPTUI_WIZ_EXPORT_INFO, pvoid : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CryptUIWizExport(dwflags, hwndparent.unwrap_or(core::mem::zeroed()) as _, pwszwizardtitle.param().abi(), pexportinfo, pvoid.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn CryptUIWizFreeDigitalSignContext(psigncontext: *const CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT) -> super::super::super::Foundation::BOOL { - windows_targets::link!("cryptui.dll" "system" fn CryptUIWizFreeDigitalSignContext(psigncontext : *const CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT) -> super::super::super::Foundation:: BOOL); +pub unsafe fn CryptUIWizFreeDigitalSignContext(psigncontext: *const CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT) -> windows_core::BOOL { + windows_targets::link!("cryptui.dll" "system" fn CryptUIWizFreeDigitalSignContext(psigncontext : *const CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT) -> windows_core::BOOL); unsafe { CryptUIWizFreeDigitalSignContext(psigncontext) } } #[inline] @@ -63,7 +63,7 @@ pub unsafe fn CryptUIWizImport(dwflags: CRYPTUI_WIZ_FLAGS, hwndparent: Optio where P2: windows_core::Param, { - windows_targets::link!("cryptui.dll" "system" fn CryptUIWizImport(dwflags : CRYPTUI_WIZ_FLAGS, hwndparent : super::super::super::Foundation:: HWND, pwszwizardtitle : windows_core::PCWSTR, pimportsrc : *const CRYPTUI_WIZ_IMPORT_SRC_INFO, hdestcertstore : super:: HCERTSTORE) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("cryptui.dll" "system" fn CryptUIWizImport(dwflags : CRYPTUI_WIZ_FLAGS, hwndparent : super::super::super::Foundation:: HWND, pwszwizardtitle : windows_core::PCWSTR, pimportsrc : *const CRYPTUI_WIZ_IMPORT_SRC_INFO, hdestcertstore : super:: HCERTSTORE) -> windows_core::BOOL); unsafe { CryptUIWizImport(dwflags, hwndparent.unwrap_or(core::mem::zeroed()) as _, pwszwizardtitle.param().abi(), pimportsrc.unwrap_or(core::mem::zeroed()) as _, hdestcertstore.unwrap_or(core::mem::zeroed()) as _).ok() } } pub const ACTION_REVOCATION_DEFAULT_CACHE: u32 = 131072u32; @@ -488,10 +488,10 @@ pub struct CRYPTUI_VIEWCERTIFICATE_STRUCTA { pub rgszPurposes: *const windows_core::PCSTR, pub cPurposes: u32, pub Anonymous: CRYPTUI_VIEWCERTIFICATE_STRUCTA_0, - pub fpCryptProviderDataTrustedUsage: super::super::super::Foundation::BOOL, + pub fpCryptProviderDataTrustedUsage: windows_core::BOOL, pub idxSigner: u32, pub idxCert: u32, - pub fCounterSigner: super::super::super::Foundation::BOOL, + pub fCounterSigner: windows_core::BOOL, pub idxCounterSigner: u32, pub cStores: u32, pub rghStores: *mut super::HCERTSTORE, @@ -530,10 +530,10 @@ pub struct CRYPTUI_VIEWCERTIFICATE_STRUCTW { pub rgszPurposes: *const windows_core::PCSTR, pub cPurposes: u32, pub Anonymous: CRYPTUI_VIEWCERTIFICATE_STRUCTW_0, - pub fpCryptProviderDataTrustedUsage: super::super::super::Foundation::BOOL, + pub fpCryptProviderDataTrustedUsage: windows_core::BOOL, pub idxSigner: u32, pub idxCert: u32, - pub fCounterSigner: super::super::super::Foundation::BOOL, + pub fCounterSigner: windows_core::BOOL, pub idxCounterSigner: u32, pub cStores: u32, pub rghStores: *mut super::HCERTSTORE, @@ -733,10 +733,10 @@ pub const CRYPTUI_WIZ_DIGITAL_SIGN_SUBJECT_NONE: CRYPTUI_WIZ_DIGITAL_SIGN_SUBJEC pub struct CRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO { pub dwSize: u32, pub dwExportFormat: CRYPTUI_WIZ_EXPORT_FORMAT, - pub fExportChain: super::super::super::Foundation::BOOL, - pub fExportPrivateKeys: super::super::super::Foundation::BOOL, + pub fExportChain: windows_core::BOOL, + pub fExportPrivateKeys: windows_core::BOOL, pub pwszPassword: windows_core::PCWSTR, - pub fStrongEncryption: super::super::super::Foundation::BOOL, + pub fStrongEncryption: windows_core::BOOL, } impl Default for CRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO { fn default() -> Self { @@ -899,10 +899,10 @@ pub const CTL_MODIFY_REQUEST_ADD_TRUSTED: CTL_MODIFY_REQUEST_OPERATION = CTL_MOD #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct CTL_MODIFY_REQUEST_OPERATION(pub u32); pub const CTL_MODIFY_REQUEST_REMOVE: CTL_MODIFY_REQUEST_OPERATION = CTL_MODIFY_REQUEST_OPERATION(2u32); -pub type PFNCFILTERPROC = Option super::super::super::Foundation::BOOL>; -pub type PFNCMFILTERPROC = Option super::super::super::Foundation::BOOL>; +pub type PFNCFILTERPROC = Option windows_core::BOOL>; +pub type PFNCMFILTERPROC = Option windows_core::BOOL>; pub type PFNCMHOOKPROC = Option u32>; -pub type PFNTRUSTHELPER = Option windows_core::HRESULT>; +pub type PFNTRUSTHELPER = Option windows_core::HRESULT>; pub const POLICY_IGNORE_NON_CRITICAL_BC: u32 = 1u32; pub const SELCERT_ALGORITHM: u32 = 105u32; pub const SELCERT_CERTLIST: u32 = 102u32; 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 ac9c1abf75..e33e2220a6 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs @@ -413,47 +413,47 @@ pub unsafe fn BCryptVerifySignature(hkey: BCRYPT_KEY_HANDLE, ppaddinginfo: Optio } #[inline] pub unsafe fn CertAddCRLContextToStore(hcertstore: Option, pcrlcontext: *const CRL_CONTEXT, dwadddisposition: u32, ppstorecontext: Option<*mut *mut CRL_CONTEXT>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertAddCRLContextToStore(hcertstore : HCERTSTORE, pcrlcontext : *const CRL_CONTEXT, dwadddisposition : u32, ppstorecontext : *mut *mut CRL_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertAddCRLContextToStore(hcertstore : HCERTSTORE, pcrlcontext : *const CRL_CONTEXT, dwadddisposition : u32, ppstorecontext : *mut *mut CRL_CONTEXT) -> windows_core::BOOL); unsafe { CertAddCRLContextToStore(hcertstore.unwrap_or(core::mem::zeroed()) as _, pcrlcontext, dwadddisposition, ppstorecontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CertAddCRLLinkToStore(hcertstore: HCERTSTORE, pcrlcontext: *const CRL_CONTEXT, dwadddisposition: u32, ppstorecontext: Option<*mut *mut CRL_CONTEXT>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertAddCRLLinkToStore(hcertstore : HCERTSTORE, pcrlcontext : *const CRL_CONTEXT, dwadddisposition : u32, ppstorecontext : *mut *mut CRL_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertAddCRLLinkToStore(hcertstore : HCERTSTORE, pcrlcontext : *const CRL_CONTEXT, dwadddisposition : u32, ppstorecontext : *mut *mut CRL_CONTEXT) -> windows_core::BOOL); unsafe { CertAddCRLLinkToStore(hcertstore, pcrlcontext, dwadddisposition, ppstorecontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CertAddCTLContextToStore(hcertstore: Option, pctlcontext: *const CTL_CONTEXT, dwadddisposition: u32, ppstorecontext: Option<*mut *mut CTL_CONTEXT>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertAddCTLContextToStore(hcertstore : HCERTSTORE, pctlcontext : *const CTL_CONTEXT, dwadddisposition : u32, ppstorecontext : *mut *mut CTL_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertAddCTLContextToStore(hcertstore : HCERTSTORE, pctlcontext : *const CTL_CONTEXT, dwadddisposition : u32, ppstorecontext : *mut *mut CTL_CONTEXT) -> windows_core::BOOL); unsafe { CertAddCTLContextToStore(hcertstore.unwrap_or(core::mem::zeroed()) as _, pctlcontext, dwadddisposition, ppstorecontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CertAddCTLLinkToStore(hcertstore: HCERTSTORE, pctlcontext: *const CTL_CONTEXT, dwadddisposition: u32, ppstorecontext: Option<*mut *mut CTL_CONTEXT>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertAddCTLLinkToStore(hcertstore : HCERTSTORE, pctlcontext : *const CTL_CONTEXT, dwadddisposition : u32, ppstorecontext : *mut *mut CTL_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertAddCTLLinkToStore(hcertstore : HCERTSTORE, pctlcontext : *const CTL_CONTEXT, dwadddisposition : u32, ppstorecontext : *mut *mut CTL_CONTEXT) -> windows_core::BOOL); unsafe { CertAddCTLLinkToStore(hcertstore, pctlcontext, dwadddisposition, ppstorecontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CertAddCertificateContextToStore(hcertstore: Option, pcertcontext: *const CERT_CONTEXT, dwadddisposition: u32, ppstorecontext: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertAddCertificateContextToStore(hcertstore : HCERTSTORE, pcertcontext : *const CERT_CONTEXT, dwadddisposition : u32, ppstorecontext : *mut *mut CERT_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertAddCertificateContextToStore(hcertstore : HCERTSTORE, pcertcontext : *const CERT_CONTEXT, dwadddisposition : u32, ppstorecontext : *mut *mut CERT_CONTEXT) -> windows_core::BOOL); unsafe { CertAddCertificateContextToStore(hcertstore.unwrap_or(core::mem::zeroed()) as _, pcertcontext, dwadddisposition, ppstorecontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CertAddCertificateLinkToStore(hcertstore: HCERTSTORE, pcertcontext: *const CERT_CONTEXT, dwadddisposition: u32, ppstorecontext: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertAddCertificateLinkToStore(hcertstore : HCERTSTORE, pcertcontext : *const CERT_CONTEXT, dwadddisposition : u32, ppstorecontext : *mut *mut CERT_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertAddCertificateLinkToStore(hcertstore : HCERTSTORE, pcertcontext : *const CERT_CONTEXT, dwadddisposition : u32, ppstorecontext : *mut *mut CERT_CONTEXT) -> windows_core::BOOL); unsafe { CertAddCertificateLinkToStore(hcertstore, pcertcontext, dwadddisposition, ppstorecontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CertAddEncodedCRLToStore(hcertstore: Option, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbcrlencoded: &[u8], dwadddisposition: u32, ppcrlcontext: Option<*mut *mut CRL_CONTEXT>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertAddEncodedCRLToStore(hcertstore : HCERTSTORE, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbcrlencoded : *const u8, cbcrlencoded : u32, dwadddisposition : u32, ppcrlcontext : *mut *mut CRL_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertAddEncodedCRLToStore(hcertstore : HCERTSTORE, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbcrlencoded : *const u8, cbcrlencoded : u32, dwadddisposition : u32, ppcrlcontext : *mut *mut CRL_CONTEXT) -> windows_core::BOOL); unsafe { CertAddEncodedCRLToStore(hcertstore.unwrap_or(core::mem::zeroed()) as _, dwcertencodingtype, core::mem::transmute(pbcrlencoded.as_ptr()), pbcrlencoded.len().try_into().unwrap(), dwadddisposition, ppcrlcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CertAddEncodedCTLToStore(hcertstore: Option, dwmsgandcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbctlencoded: &[u8], dwadddisposition: u32, ppctlcontext: Option<*mut *mut CTL_CONTEXT>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertAddEncodedCTLToStore(hcertstore : HCERTSTORE, dwmsgandcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbctlencoded : *const u8, cbctlencoded : u32, dwadddisposition : u32, ppctlcontext : *mut *mut CTL_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertAddEncodedCTLToStore(hcertstore : HCERTSTORE, dwmsgandcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbctlencoded : *const u8, cbctlencoded : u32, dwadddisposition : u32, ppctlcontext : *mut *mut CTL_CONTEXT) -> windows_core::BOOL); unsafe { CertAddEncodedCTLToStore(hcertstore.unwrap_or(core::mem::zeroed()) as _, dwmsgandcertencodingtype, core::mem::transmute(pbctlencoded.as_ptr()), pbctlencoded.len().try_into().unwrap(), dwadddisposition, ppctlcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CertAddEncodedCertificateToStore(hcertstore: Option, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbcertencoded: &[u8], dwadddisposition: u32, ppcertcontext: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertAddEncodedCertificateToStore(hcertstore : HCERTSTORE, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbcertencoded : *const u8, cbcertencoded : u32, dwadddisposition : u32, ppcertcontext : *mut *mut CERT_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertAddEncodedCertificateToStore(hcertstore : HCERTSTORE, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbcertencoded : *const u8, cbcertencoded : u32, dwadddisposition : u32, ppcertcontext : *mut *mut CERT_CONTEXT) -> windows_core::BOOL); unsafe { CertAddEncodedCertificateToStore(hcertstore.unwrap_or(core::mem::zeroed()) as _, dwcertencodingtype, core::mem::transmute(pbcertencoded.as_ptr()), pbcertencoded.len().try_into().unwrap(), dwadddisposition, ppcertcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -461,7 +461,7 @@ pub unsafe fn CertAddEncodedCertificateToSystemStoreA(szcertstorename: P0, p where P0: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CertAddEncodedCertificateToSystemStoreA(szcertstorename : windows_core::PCSTR, pbcertencoded : *const u8, cbcertencoded : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertAddEncodedCertificateToSystemStoreA(szcertstorename : windows_core::PCSTR, pbcertencoded : *const u8, cbcertencoded : u32) -> windows_core::BOOL); unsafe { CertAddEncodedCertificateToSystemStoreA(szcertstorename.param().abi(), core::mem::transmute(pbcertencoded.as_ptr()), pbcertencoded.len().try_into().unwrap()).ok() } } #[inline] @@ -469,7 +469,7 @@ pub unsafe fn CertAddEncodedCertificateToSystemStoreW(szcertstorename: P0, p where P0: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CertAddEncodedCertificateToSystemStoreW(szcertstorename : windows_core::PCWSTR, pbcertencoded : *const u8, cbcertencoded : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertAddEncodedCertificateToSystemStoreW(szcertstorename : windows_core::PCWSTR, pbcertencoded : *const u8, cbcertencoded : u32) -> windows_core::BOOL); unsafe { CertAddEncodedCertificateToSystemStoreW(szcertstorename.param().abi(), core::mem::transmute(pbcertencoded.as_ptr()), pbcertencoded.len().try_into().unwrap()).ok() } } #[inline] @@ -477,7 +477,7 @@ pub unsafe fn CertAddEnhancedKeyUsageIdentifier(pcertcontext: *const CERT_CO where P1: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CertAddEnhancedKeyUsageIdentifier(pcertcontext : *const CERT_CONTEXT, pszusageidentifier : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertAddEnhancedKeyUsageIdentifier(pcertcontext : *const CERT_CONTEXT, pszusageidentifier : windows_core::PCSTR) -> windows_core::BOOL); unsafe { CertAddEnhancedKeyUsageIdentifier(pcertcontext, pszusageidentifier.param().abi()).ok() } } #[inline] @@ -492,12 +492,12 @@ pub unsafe fn CertAddRefServerOcspResponseContext(pserverocspresponsecontext: Op } #[inline] pub unsafe fn CertAddSerializedElementToStore(hcertstore: Option, pbelement: &[u8], dwadddisposition: u32, dwflags: u32, dwcontexttypeflags: u32, pdwcontexttype: Option<*mut u32>, ppvcontext: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertAddSerializedElementToStore(hcertstore : HCERTSTORE, pbelement : *const u8, cbelement : u32, dwadddisposition : u32, dwflags : u32, dwcontexttypeflags : u32, pdwcontexttype : *mut u32, ppvcontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertAddSerializedElementToStore(hcertstore : HCERTSTORE, pbelement : *const u8, cbelement : u32, dwadddisposition : u32, dwflags : u32, dwcontexttypeflags : u32, pdwcontexttype : *mut u32, ppvcontext : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { CertAddSerializedElementToStore(hcertstore.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(pbelement.as_ptr()), pbelement.len().try_into().unwrap(), dwadddisposition, dwflags, dwcontexttypeflags, pdwcontexttype.unwrap_or(core::mem::zeroed()) as _, ppvcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn CertAddStoreToCollection(hcollectionstore: HCERTSTORE, hsiblingstore: Option, dwupdateflags: u32, dwpriority: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CertAddStoreToCollection(hcollectionstore : HCERTSTORE, hsiblingstore : HCERTSTORE, dwupdateflags : u32, dwpriority : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn CertAddStoreToCollection(hcollectionstore: HCERTSTORE, hsiblingstore: Option, dwupdateflags: u32, dwpriority: u32) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CertAddStoreToCollection(hcollectionstore : HCERTSTORE, hsiblingstore : HCERTSTORE, dwupdateflags : u32, dwpriority : u32) -> windows_core::BOOL); unsafe { CertAddStoreToCollection(hcollectionstore, hsiblingstore.unwrap_or(core::mem::zeroed()) as _, dwupdateflags, dwpriority) } } #[inline] @@ -512,32 +512,32 @@ pub unsafe fn CertCloseServerOcspResponse(hserverocspresponse: Option<*const cor } #[inline] pub unsafe fn CertCloseStore(hcertstore: Option, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertCloseStore(hcertstore : HCERTSTORE, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertCloseStore(hcertstore : HCERTSTORE, dwflags : u32) -> windows_core::BOOL); unsafe { CertCloseStore(hcertstore.unwrap_or(core::mem::zeroed()) as _, dwflags).ok() } } #[inline] -pub unsafe fn CertCompareCertificate(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pcertid1: *const CERT_INFO, pcertid2: *const CERT_INFO) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CertCompareCertificate(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pcertid1 : *const CERT_INFO, pcertid2 : *const CERT_INFO) -> super::super::Foundation:: BOOL); +pub unsafe fn CertCompareCertificate(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pcertid1: *const CERT_INFO, pcertid2: *const CERT_INFO) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CertCompareCertificate(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pcertid1 : *const CERT_INFO, pcertid2 : *const CERT_INFO) -> windows_core::BOOL); unsafe { CertCompareCertificate(dwcertencodingtype, pcertid1, pcertid2) } } #[inline] -pub unsafe fn CertCompareCertificateName(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pcertname1: *const CRYPT_INTEGER_BLOB, pcertname2: *const CRYPT_INTEGER_BLOB) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CertCompareCertificateName(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pcertname1 : *const CRYPT_INTEGER_BLOB, pcertname2 : *const CRYPT_INTEGER_BLOB) -> super::super::Foundation:: BOOL); +pub unsafe fn CertCompareCertificateName(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pcertname1: *const CRYPT_INTEGER_BLOB, pcertname2: *const CRYPT_INTEGER_BLOB) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CertCompareCertificateName(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pcertname1 : *const CRYPT_INTEGER_BLOB, pcertname2 : *const CRYPT_INTEGER_BLOB) -> windows_core::BOOL); unsafe { CertCompareCertificateName(dwcertencodingtype, pcertname1, pcertname2) } } #[inline] pub unsafe fn CertCompareIntegerBlob(pint1: *const CRYPT_INTEGER_BLOB, pint2: *const CRYPT_INTEGER_BLOB) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertCompareIntegerBlob(pint1 : *const CRYPT_INTEGER_BLOB, pint2 : *const CRYPT_INTEGER_BLOB) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertCompareIntegerBlob(pint1 : *const CRYPT_INTEGER_BLOB, pint2 : *const CRYPT_INTEGER_BLOB) -> windows_core::BOOL); unsafe { CertCompareIntegerBlob(pint1, pint2).ok() } } #[inline] -pub unsafe fn CertComparePublicKeyInfo(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, ppublickey1: *const CERT_PUBLIC_KEY_INFO, ppublickey2: *const CERT_PUBLIC_KEY_INFO) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CertComparePublicKeyInfo(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, ppublickey1 : *const CERT_PUBLIC_KEY_INFO, ppublickey2 : *const CERT_PUBLIC_KEY_INFO) -> super::super::Foundation:: BOOL); +pub unsafe fn CertComparePublicKeyInfo(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, ppublickey1: *const CERT_PUBLIC_KEY_INFO, ppublickey2: *const CERT_PUBLIC_KEY_INFO) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CertComparePublicKeyInfo(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, ppublickey1 : *const CERT_PUBLIC_KEY_INFO, ppublickey2 : *const CERT_PUBLIC_KEY_INFO) -> windows_core::BOOL); unsafe { CertComparePublicKeyInfo(dwcertencodingtype, ppublickey1, ppublickey2) } } #[inline] pub unsafe fn CertControlStore(hcertstore: HCERTSTORE, dwflags: CERT_CONTROL_STORE_FLAGS, dwctrltype: u32, pvctrlpara: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertControlStore(hcertstore : HCERTSTORE, dwflags : CERT_CONTROL_STORE_FLAGS, dwctrltype : u32, pvctrlpara : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertControlStore(hcertstore : HCERTSTORE, dwflags : CERT_CONTROL_STORE_FLAGS, dwctrltype : u32, pvctrlpara : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CertControlStore(hcertstore, dwflags, dwctrltype, pvctrlpara.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -552,12 +552,12 @@ pub unsafe fn CertCreateCTLContext(dwmsgandcertencodingtype: u32, pbctlencoded: } #[inline] pub unsafe fn CertCreateCTLEntryFromCertificateContextProperties(pcertcontext: *const CERT_CONTEXT, rgoptattr: Option<&[CRYPT_ATTRIBUTE]>, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>, pctlentry: Option<*mut CTL_ENTRY>, pcbctlentry: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertCreateCTLEntryFromCertificateContextProperties(pcertcontext : *const CERT_CONTEXT, coptattr : u32, rgoptattr : *const CRYPT_ATTRIBUTE, dwflags : u32, pvreserved : *const core::ffi::c_void, pctlentry : *mut CTL_ENTRY, pcbctlentry : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertCreateCTLEntryFromCertificateContextProperties(pcertcontext : *const CERT_CONTEXT, coptattr : u32, rgoptattr : *const CRYPT_ATTRIBUTE, dwflags : u32, pvreserved : *const core::ffi::c_void, pctlentry : *mut CTL_ENTRY, pcbctlentry : *mut u32) -> windows_core::BOOL); unsafe { CertCreateCTLEntryFromCertificateContextProperties(pcertcontext, rgoptattr.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgoptattr.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dwflags, pvreserved.unwrap_or(core::mem::zeroed()) as _, pctlentry.unwrap_or(core::mem::zeroed()) as _, pcbctlentry as _).ok() } } #[inline] pub unsafe fn CertCreateCertificateChainEngine(pconfig: *const CERT_CHAIN_ENGINE_CONFIG, phchainengine: *mut HCERTCHAINENGINE) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertCreateCertificateChainEngine(pconfig : *const CERT_CHAIN_ENGINE_CONFIG, phchainengine : *mut HCERTCHAINENGINE) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertCreateCertificateChainEngine(pconfig : *const CERT_CHAIN_ENGINE_CONFIG, phchainengine : *mut HCERTCHAINENGINE) -> windows_core::BOOL); unsafe { CertCreateCertificateChainEngine(pconfig, phchainengine as _).ok() } } #[inline] @@ -577,17 +577,17 @@ pub unsafe fn CertCreateSelfSignCertificate(hcryptprovorncryptkey: Option windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertDeleteCRLFromStore(pcrlcontext : *const CRL_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertDeleteCRLFromStore(pcrlcontext : *const CRL_CONTEXT) -> windows_core::BOOL); unsafe { CertDeleteCRLFromStore(pcrlcontext).ok() } } #[inline] pub unsafe fn CertDeleteCTLFromStore(pctlcontext: *const CTL_CONTEXT) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertDeleteCTLFromStore(pctlcontext : *const CTL_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertDeleteCTLFromStore(pctlcontext : *const CTL_CONTEXT) -> windows_core::BOOL); unsafe { CertDeleteCTLFromStore(pctlcontext).ok() } } #[inline] pub unsafe fn CertDeleteCertificateFromStore(pcertcontext: *const CERT_CONTEXT) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertDeleteCertificateFromStore(pcertcontext : *const CERT_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertDeleteCertificateFromStore(pcertcontext : *const CERT_CONTEXT) -> windows_core::BOOL); unsafe { CertDeleteCertificateFromStore(pcertcontext).ok() } } #[inline] @@ -647,22 +647,22 @@ pub unsafe fn CertEnumCertificatesInStore(hcertstore: HCERTSTORE, pprevcertconte } #[inline] pub unsafe fn CertEnumPhysicalStore(pvsystemstore: *const core::ffi::c_void, dwflags: u32, pvarg: Option<*mut core::ffi::c_void>, pfnenum: PFN_CERT_ENUM_PHYSICAL_STORE) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertEnumPhysicalStore(pvsystemstore : *const core::ffi::c_void, dwflags : u32, pvarg : *mut core::ffi::c_void, pfnenum : PFN_CERT_ENUM_PHYSICAL_STORE) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertEnumPhysicalStore(pvsystemstore : *const core::ffi::c_void, dwflags : u32, pvarg : *mut core::ffi::c_void, pfnenum : PFN_CERT_ENUM_PHYSICAL_STORE) -> windows_core::BOOL); unsafe { CertEnumPhysicalStore(pvsystemstore, dwflags, pvarg.unwrap_or(core::mem::zeroed()) as _, pfnenum).ok() } } #[inline] -pub unsafe fn CertEnumSubjectInSortedCTL(pctlcontext: *const CTL_CONTEXT, ppvnextsubject: *mut *mut core::ffi::c_void, psubjectidentifier: Option<*mut CRYPT_INTEGER_BLOB>, pencodedattributes: Option<*mut CRYPT_INTEGER_BLOB>) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CertEnumSubjectInSortedCTL(pctlcontext : *const CTL_CONTEXT, ppvnextsubject : *mut *mut core::ffi::c_void, psubjectidentifier : *mut CRYPT_INTEGER_BLOB, pencodedattributes : *mut CRYPT_INTEGER_BLOB) -> super::super::Foundation:: BOOL); +pub unsafe fn CertEnumSubjectInSortedCTL(pctlcontext: *const CTL_CONTEXT, ppvnextsubject: *mut *mut core::ffi::c_void, psubjectidentifier: Option<*mut CRYPT_INTEGER_BLOB>, pencodedattributes: Option<*mut CRYPT_INTEGER_BLOB>) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CertEnumSubjectInSortedCTL(pctlcontext : *const CTL_CONTEXT, ppvnextsubject : *mut *mut core::ffi::c_void, psubjectidentifier : *mut CRYPT_INTEGER_BLOB, pencodedattributes : *mut CRYPT_INTEGER_BLOB) -> windows_core::BOOL); unsafe { CertEnumSubjectInSortedCTL(pctlcontext, ppvnextsubject as _, psubjectidentifier.unwrap_or(core::mem::zeroed()) as _, pencodedattributes.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn CertEnumSystemStore(dwflags: u32, pvsystemstorelocationpara: Option<*const core::ffi::c_void>, pvarg: Option<*mut core::ffi::c_void>, pfnenum: PFN_CERT_ENUM_SYSTEM_STORE) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CertEnumSystemStore(dwflags : u32, pvsystemstorelocationpara : *const core::ffi::c_void, pvarg : *mut core::ffi::c_void, pfnenum : PFN_CERT_ENUM_SYSTEM_STORE) -> super::super::Foundation:: BOOL); +pub unsafe fn CertEnumSystemStore(dwflags: u32, pvsystemstorelocationpara: Option<*const core::ffi::c_void>, pvarg: Option<*mut core::ffi::c_void>, pfnenum: PFN_CERT_ENUM_SYSTEM_STORE) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CertEnumSystemStore(dwflags : u32, pvsystemstorelocationpara : *const core::ffi::c_void, pvarg : *mut core::ffi::c_void, pfnenum : PFN_CERT_ENUM_SYSTEM_STORE) -> windows_core::BOOL); unsafe { CertEnumSystemStore(dwflags, pvsystemstorelocationpara.unwrap_or(core::mem::zeroed()) as _, pvarg.unwrap_or(core::mem::zeroed()) as _, pfnenum) } } #[inline] -pub unsafe fn CertEnumSystemStoreLocation(dwflags: u32, pvarg: Option<*mut core::ffi::c_void>, pfnenum: PFN_CERT_ENUM_SYSTEM_STORE_LOCATION) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CertEnumSystemStoreLocation(dwflags : u32, pvarg : *mut core::ffi::c_void, pfnenum : PFN_CERT_ENUM_SYSTEM_STORE_LOCATION) -> super::super::Foundation:: BOOL); +pub unsafe fn CertEnumSystemStoreLocation(dwflags: u32, pvarg: Option<*mut core::ffi::c_void>, pfnenum: PFN_CERT_ENUM_SYSTEM_STORE_LOCATION) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CertEnumSystemStoreLocation(dwflags : u32, pvarg : *mut core::ffi::c_void, pfnenum : PFN_CERT_ENUM_SYSTEM_STORE_LOCATION) -> windows_core::BOOL); unsafe { CertEnumSystemStoreLocation(dwflags, pvarg.unwrap_or(core::mem::zeroed()) as _, pfnenum) } } #[inline] @@ -684,8 +684,8 @@ pub unsafe fn CertFindCTLInStore(hcertstore: HCERTSTORE, dwmsgandcertencodingtyp unsafe { CertFindCTLInStore(hcertstore, dwmsgandcertencodingtype, dwfindflags, dwfindtype, pvfindpara.unwrap_or(core::mem::zeroed()) as _, pprevctlcontext.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn CertFindCertificateInCRL(pcert: *const CERT_CONTEXT, pcrlcontext: *const CRL_CONTEXT, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>, ppcrlentry: *mut *mut CRL_ENTRY) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CertFindCertificateInCRL(pcert : *const CERT_CONTEXT, pcrlcontext : *const CRL_CONTEXT, dwflags : u32, pvreserved : *const core::ffi::c_void, ppcrlentry : *mut *mut CRL_ENTRY) -> super::super::Foundation:: BOOL); +pub unsafe fn CertFindCertificateInCRL(pcert: *const CERT_CONTEXT, pcrlcontext: *const CRL_CONTEXT, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>, ppcrlentry: *mut *mut CRL_ENTRY) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CertFindCertificateInCRL(pcert : *const CERT_CONTEXT, pcrlcontext : *const CRL_CONTEXT, dwflags : u32, pvreserved : *const core::ffi::c_void, ppcrlentry : *mut *mut CRL_ENTRY) -> windows_core::BOOL); unsafe { CertFindCertificateInCRL(pcert, pcrlcontext, dwflags, pvreserved.unwrap_or(core::mem::zeroed()) as _, ppcrlentry as _) } } #[inline] @@ -720,18 +720,18 @@ pub unsafe fn CertFindSubjectInCTL(dwencodingtype: u32, dwsubjecttype: u32, pvsu unsafe { CertFindSubjectInCTL(dwencodingtype, dwsubjecttype, pvsubject, pctlcontext, dwflags) } } #[inline] -pub unsafe fn CertFindSubjectInSortedCTL(psubjectidentifier: *const CRYPT_INTEGER_BLOB, pctlcontext: *const CTL_CONTEXT, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>, pencodedattributes: Option<*mut CRYPT_INTEGER_BLOB>) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CertFindSubjectInSortedCTL(psubjectidentifier : *const CRYPT_INTEGER_BLOB, pctlcontext : *const CTL_CONTEXT, dwflags : u32, pvreserved : *const core::ffi::c_void, pencodedattributes : *mut CRYPT_INTEGER_BLOB) -> super::super::Foundation:: BOOL); +pub unsafe fn CertFindSubjectInSortedCTL(psubjectidentifier: *const CRYPT_INTEGER_BLOB, pctlcontext: *const CTL_CONTEXT, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>, pencodedattributes: Option<*mut CRYPT_INTEGER_BLOB>) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CertFindSubjectInSortedCTL(psubjectidentifier : *const CRYPT_INTEGER_BLOB, pctlcontext : *const CTL_CONTEXT, dwflags : u32, pvreserved : *const core::ffi::c_void, pencodedattributes : *mut CRYPT_INTEGER_BLOB) -> windows_core::BOOL); unsafe { CertFindSubjectInSortedCTL(psubjectidentifier, pctlcontext, dwflags, pvreserved.unwrap_or(core::mem::zeroed()) as _, pencodedattributes.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn CertFreeCRLContext(pcrlcontext: Option<*const CRL_CONTEXT>) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CertFreeCRLContext(pcrlcontext : *const CRL_CONTEXT) -> super::super::Foundation:: BOOL); +pub unsafe fn CertFreeCRLContext(pcrlcontext: Option<*const CRL_CONTEXT>) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CertFreeCRLContext(pcrlcontext : *const CRL_CONTEXT) -> windows_core::BOOL); unsafe { CertFreeCRLContext(pcrlcontext.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn CertFreeCTLContext(pctlcontext: Option<*const CTL_CONTEXT>) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CertFreeCTLContext(pctlcontext : *const CTL_CONTEXT) -> super::super::Foundation:: BOOL); +pub unsafe fn CertFreeCTLContext(pctlcontext: Option<*const CTL_CONTEXT>) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CertFreeCTLContext(pctlcontext : *const CTL_CONTEXT) -> windows_core::BOOL); unsafe { CertFreeCTLContext(pctlcontext.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -750,8 +750,8 @@ pub unsafe fn CertFreeCertificateChainList(prgpselection: *const *const CERT_CHA unsafe { CertFreeCertificateChainList(prgpselection) } } #[inline] -pub unsafe fn CertFreeCertificateContext(pcertcontext: Option<*const CERT_CONTEXT>) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CertFreeCertificateContext(pcertcontext : *const CERT_CONTEXT) -> super::super::Foundation:: BOOL); +pub unsafe fn CertFreeCertificateContext(pcertcontext: Option<*const CERT_CONTEXT>) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CertFreeCertificateContext(pcertcontext : *const CERT_CONTEXT) -> windows_core::BOOL); unsafe { CertFreeCertificateContext(pcertcontext.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -761,7 +761,7 @@ pub unsafe fn CertFreeServerOcspResponseContext(pserverocspresponsecontext: Opti } #[inline] pub unsafe fn CertGetCRLContextProperty(pcrlcontext: *const CRL_CONTEXT, dwpropid: u32, pvdata: Option<*mut core::ffi::c_void>, pcbdata: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertGetCRLContextProperty(pcrlcontext : *const CRL_CONTEXT, dwpropid : u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertGetCRLContextProperty(pcrlcontext : *const CRL_CONTEXT, dwpropid : u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> windows_core::BOOL); unsafe { CertGetCRLContextProperty(pcrlcontext, dwpropid, pvdata.unwrap_or(core::mem::zeroed()) as _, pcbdata as _).ok() } } #[inline] @@ -771,27 +771,27 @@ pub unsafe fn CertGetCRLFromStore(hcertstore: HCERTSTORE, pissuercontext: Option } #[inline] pub unsafe fn CertGetCTLContextProperty(pctlcontext: *const CTL_CONTEXT, dwpropid: u32, pvdata: Option<*mut core::ffi::c_void>, pcbdata: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertGetCTLContextProperty(pctlcontext : *const CTL_CONTEXT, dwpropid : u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertGetCTLContextProperty(pctlcontext : *const CTL_CONTEXT, dwpropid : u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> windows_core::BOOL); unsafe { CertGetCTLContextProperty(pctlcontext, dwpropid, pvdata.unwrap_or(core::mem::zeroed()) as _, pcbdata as _).ok() } } #[inline] pub unsafe fn CertGetCertificateChain(hchainengine: Option, pcertcontext: *const CERT_CONTEXT, ptime: Option<*const super::super::Foundation::FILETIME>, hadditionalstore: Option, pchainpara: *const CERT_CHAIN_PARA, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>, ppchaincontext: *mut *mut CERT_CHAIN_CONTEXT) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertGetCertificateChain(hchainengine : HCERTCHAINENGINE, pcertcontext : *const CERT_CONTEXT, ptime : *const super::super::Foundation:: FILETIME, hadditionalstore : HCERTSTORE, pchainpara : *const CERT_CHAIN_PARA, dwflags : u32, pvreserved : *const core::ffi::c_void, ppchaincontext : *mut *mut CERT_CHAIN_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertGetCertificateChain(hchainengine : HCERTCHAINENGINE, pcertcontext : *const CERT_CONTEXT, ptime : *const super::super::Foundation:: FILETIME, hadditionalstore : HCERTSTORE, pchainpara : *const CERT_CHAIN_PARA, dwflags : u32, pvreserved : *const core::ffi::c_void, ppchaincontext : *mut *mut CERT_CHAIN_CONTEXT) -> windows_core::BOOL); unsafe { CertGetCertificateChain(hchainengine.unwrap_or(core::mem::zeroed()) as _, pcertcontext, ptime.unwrap_or(core::mem::zeroed()) as _, hadditionalstore.unwrap_or(core::mem::zeroed()) as _, pchainpara, dwflags, pvreserved.unwrap_or(core::mem::zeroed()) as _, ppchaincontext as _).ok() } } #[inline] pub unsafe fn CertGetCertificateContextProperty(pcertcontext: *const CERT_CONTEXT, dwpropid: u32, pvdata: Option<*mut core::ffi::c_void>, pcbdata: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertGetCertificateContextProperty(pcertcontext : *const CERT_CONTEXT, dwpropid : u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertGetCertificateContextProperty(pcertcontext : *const CERT_CONTEXT, dwpropid : u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> windows_core::BOOL); unsafe { CertGetCertificateContextProperty(pcertcontext, dwpropid, pvdata.unwrap_or(core::mem::zeroed()) as _, pcbdata as _).ok() } } #[inline] pub unsafe fn CertGetEnhancedKeyUsage(pcertcontext: *const CERT_CONTEXT, dwflags: u32, pusage: Option<*mut CTL_USAGE>, pcbusage: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertGetEnhancedKeyUsage(pcertcontext : *const CERT_CONTEXT, dwflags : u32, pusage : *mut CTL_USAGE, pcbusage : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertGetEnhancedKeyUsage(pcertcontext : *const CERT_CONTEXT, dwflags : u32, pusage : *mut CTL_USAGE, pcbusage : *mut u32) -> windows_core::BOOL); unsafe { CertGetEnhancedKeyUsage(pcertcontext, dwflags, pusage.unwrap_or(core::mem::zeroed()) as _, pcbusage as _).ok() } } #[inline] pub unsafe fn CertGetIntendedKeyUsage(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pcertinfo: *const CERT_INFO, pbkeyusage: &mut [u8]) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertGetIntendedKeyUsage(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pcertinfo : *const CERT_INFO, pbkeyusage : *mut u8, cbkeyusage : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertGetIntendedKeyUsage(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pcertinfo : *const CERT_INFO, pbkeyusage : *mut u8, cbkeyusage : u32) -> windows_core::BOOL); unsafe { CertGetIntendedKeyUsage(dwcertencodingtype, pcertinfo, core::mem::transmute(pbkeyusage.as_ptr()), pbkeyusage.len().try_into().unwrap()).ok() } } #[inline] @@ -821,7 +821,7 @@ pub unsafe fn CertGetServerOcspResponseContext(hserverocspresponse: *const core: } #[inline] pub unsafe fn CertGetStoreProperty(hcertstore: HCERTSTORE, dwpropid: u32, pvdata: Option<*mut core::ffi::c_void>, pcbdata: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertGetStoreProperty(hcertstore : HCERTSTORE, dwpropid : u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertGetStoreProperty(hcertstore : HCERTSTORE, dwpropid : u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> windows_core::BOOL); unsafe { CertGetStoreProperty(hcertstore, dwpropid, pvdata.unwrap_or(core::mem::zeroed()) as _, pcbdata as _).ok() } } #[inline] @@ -831,12 +831,12 @@ pub unsafe fn CertGetSubjectCertificateFromStore(hcertstore: HCERTSTORE, dwcerte } #[inline] pub unsafe fn CertGetValidUsages(rghcerts: &[*const CERT_CONTEXT], cnumoids: *mut i32, rghoids: Option<*mut windows_core::PSTR>, pcboids: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertGetValidUsages(ccerts : u32, rghcerts : *const *const CERT_CONTEXT, cnumoids : *mut i32, rghoids : *mut windows_core::PSTR, pcboids : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertGetValidUsages(ccerts : u32, rghcerts : *const *const CERT_CONTEXT, cnumoids : *mut i32, rghoids : *mut windows_core::PSTR, pcboids : *mut u32) -> windows_core::BOOL); unsafe { CertGetValidUsages(rghcerts.len().try_into().unwrap(), core::mem::transmute(rghcerts.as_ptr()), cnumoids as _, rghoids.unwrap_or(core::mem::zeroed()) as _, pcboids as _).ok() } } #[inline] pub unsafe fn CertIsRDNAttrsInCertificateName(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, dwflags: u32, pcertname: *const CRYPT_INTEGER_BLOB, prdn: *const CERT_RDN) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertIsRDNAttrsInCertificateName(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, dwflags : u32, pcertname : *const CRYPT_INTEGER_BLOB, prdn : *const CERT_RDN) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertIsRDNAttrsInCertificateName(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, dwflags : u32, pcertname : *const CRYPT_INTEGER_BLOB, prdn : *const CERT_RDN) -> windows_core::BOOL); unsafe { CertIsRDNAttrsInCertificateName(dwcertencodingtype, dwflags, pcertname, prdn).ok() } } #[inline] @@ -844,21 +844,21 @@ pub unsafe fn CertIsStrongHashToSign(pstrongsignpara: *const CERT_STRONG_SIG where P1: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CertIsStrongHashToSign(pstrongsignpara : *const CERT_STRONG_SIGN_PARA, pwszcnghashalgid : windows_core::PCWSTR, psigningcert : *const CERT_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertIsStrongHashToSign(pstrongsignpara : *const CERT_STRONG_SIGN_PARA, pwszcnghashalgid : windows_core::PCWSTR, psigningcert : *const CERT_CONTEXT) -> windows_core::BOOL); unsafe { CertIsStrongHashToSign(pstrongsignpara, pwszcnghashalgid.param().abi(), psigningcert.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn CertIsValidCRLForCertificate(pcert: *const CERT_CONTEXT, pcrl: *const CRL_CONTEXT, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CertIsValidCRLForCertificate(pcert : *const CERT_CONTEXT, pcrl : *const CRL_CONTEXT, dwflags : u32, pvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn CertIsValidCRLForCertificate(pcert: *const CERT_CONTEXT, pcrl: *const CRL_CONTEXT, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CertIsValidCRLForCertificate(pcert : *const CERT_CONTEXT, pcrl : *const CRL_CONTEXT, dwflags : u32, pvreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CertIsValidCRLForCertificate(pcert, pcrl, dwflags, pvreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn CertIsWeakHash(dwhashusetype: u32, pwszcnghashalgid: P1, dwchainflags: u32, psignerchaincontext: Option<*const CERT_CHAIN_CONTEXT>, ptimestamp: Option<*const super::super::Foundation::FILETIME>, pwszfilename: P5) -> super::super::Foundation::BOOL +pub unsafe fn CertIsWeakHash(dwhashusetype: u32, pwszcnghashalgid: P1, dwchainflags: u32, psignerchaincontext: Option<*const CERT_CHAIN_CONTEXT>, ptimestamp: Option<*const super::super::Foundation::FILETIME>, pwszfilename: P5) -> windows_core::BOOL where P1: windows_core::Param, P5: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CertIsWeakHash(dwhashusetype : u32, pwszcnghashalgid : windows_core::PCWSTR, dwchainflags : u32, psignerchaincontext : *const CERT_CHAIN_CONTEXT, ptimestamp : *const super::super::Foundation:: FILETIME, pwszfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertIsWeakHash(dwhashusetype : u32, pwszcnghashalgid : windows_core::PCWSTR, dwchainflags : u32, psignerchaincontext : *const CERT_CHAIN_CONTEXT, ptimestamp : *const super::super::Foundation:: FILETIME, pwszfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { CertIsWeakHash(dwhashusetype, pwszcnghashalgid.param().abi(), dwchainflags, psignerchaincontext.unwrap_or(core::mem::zeroed()) as _, ptimestamp.unwrap_or(core::mem::zeroed()) as _, pwszfilename.param().abi()) } } #[inline] @@ -922,16 +922,16 @@ pub unsafe fn CertRDNValueToStrW(dwvaluetype: u32, pvalue: *const CRYPT_INTEGER_ unsafe { CertRDNValueToStrW(dwvaluetype, pvalue, core::mem::transmute(psz.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), psz.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } } #[inline] -pub unsafe fn CertRegisterPhysicalStore(pvsystemstore: *const core::ffi::c_void, dwflags: u32, pwszstorename: P2, pstoreinfo: *const CERT_PHYSICAL_STORE_INFO, pvreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL +pub unsafe fn CertRegisterPhysicalStore(pvsystemstore: *const core::ffi::c_void, dwflags: u32, pwszstorename: P2, pstoreinfo: *const CERT_PHYSICAL_STORE_INFO, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CertRegisterPhysicalStore(pvsystemstore : *const core::ffi::c_void, dwflags : u32, pwszstorename : windows_core::PCWSTR, pstoreinfo : *const CERT_PHYSICAL_STORE_INFO, pvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertRegisterPhysicalStore(pvsystemstore : *const core::ffi::c_void, dwflags : u32, pwszstorename : windows_core::PCWSTR, pstoreinfo : *const CERT_PHYSICAL_STORE_INFO, pvreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CertRegisterPhysicalStore(pvsystemstore, dwflags, pwszstorename.param().abi(), pstoreinfo, pvreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn CertRegisterSystemStore(pvsystemstore: *const core::ffi::c_void, dwflags: u32, pstoreinfo: Option<*const CERT_SYSTEM_STORE_INFO>, pvreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CertRegisterSystemStore(pvsystemstore : *const core::ffi::c_void, dwflags : u32, pstoreinfo : *const CERT_SYSTEM_STORE_INFO, pvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn CertRegisterSystemStore(pvsystemstore: *const core::ffi::c_void, dwflags: u32, pstoreinfo: Option<*const CERT_SYSTEM_STORE_INFO>, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CertRegisterSystemStore(pvsystemstore : *const core::ffi::c_void, dwflags : u32, pstoreinfo : *const CERT_SYSTEM_STORE_INFO, pvreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CertRegisterSystemStore(pvsystemstore, dwflags, pstoreinfo.unwrap_or(core::mem::zeroed()) as _, pvreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -939,7 +939,7 @@ pub unsafe fn CertRemoveEnhancedKeyUsageIdentifier(pcertcontext: *const CERT where P1: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CertRemoveEnhancedKeyUsageIdentifier(pcertcontext : *const CERT_CONTEXT, pszusageidentifier : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertRemoveEnhancedKeyUsageIdentifier(pcertcontext : *const CERT_CONTEXT, pszusageidentifier : windows_core::PCSTR) -> windows_core::BOOL); unsafe { CertRemoveEnhancedKeyUsageIdentifier(pcertcontext, pszusageidentifier.param().abi()).ok() } } #[inline] @@ -949,7 +949,7 @@ pub unsafe fn CertRemoveStoreFromCollection(hcollectionstore: HCERTSTORE, hsibli } #[inline] pub unsafe fn CertResyncCertificateChainEngine(hchainengine: Option) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertResyncCertificateChainEngine(hchainengine : HCERTCHAINENGINE) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertResyncCertificateChainEngine(hchainengine : HCERTCHAINENGINE) -> windows_core::BOOL); unsafe { CertResyncCertificateChainEngine(hchainengine.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -957,62 +957,62 @@ pub unsafe fn CertRetrieveLogoOrBiometricInfo(pcertcontext: *const CERT_CONT where P1: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CertRetrieveLogoOrBiometricInfo(pcertcontext : *const CERT_CONTEXT, lpszlogoorbiometrictype : windows_core::PCSTR, dwretrievalflags : u32, dwtimeout : u32, dwflags : u32, pvreserved : *const core::ffi::c_void, ppbdata : *mut *mut u8, pcbdata : *mut u32, ppwszmimetype : *mut windows_core::PWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertRetrieveLogoOrBiometricInfo(pcertcontext : *const CERT_CONTEXT, lpszlogoorbiometrictype : windows_core::PCSTR, dwretrievalflags : u32, dwtimeout : u32, dwflags : u32, pvreserved : *const core::ffi::c_void, ppbdata : *mut *mut u8, pcbdata : *mut u32, ppwszmimetype : *mut windows_core::PWSTR) -> windows_core::BOOL); unsafe { CertRetrieveLogoOrBiometricInfo(pcertcontext, lpszlogoorbiometrictype.param().abi(), dwretrievalflags, dwtimeout, dwflags, pvreserved.unwrap_or(core::mem::zeroed()) as _, ppbdata as _, pcbdata as _, ppwszmimetype.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CertSaveStore(hcertstore: HCERTSTORE, dwencodingtype: CERT_QUERY_ENCODING_TYPE, dwsaveas: CERT_STORE_SAVE_AS, dwsaveto: CERT_STORE_SAVE_TO, pvsavetopara: *mut core::ffi::c_void, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertSaveStore(hcertstore : HCERTSTORE, dwencodingtype : CERT_QUERY_ENCODING_TYPE, dwsaveas : CERT_STORE_SAVE_AS, dwsaveto : CERT_STORE_SAVE_TO, pvsavetopara : *mut core::ffi::c_void, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertSaveStore(hcertstore : HCERTSTORE, dwencodingtype : CERT_QUERY_ENCODING_TYPE, dwsaveas : CERT_STORE_SAVE_AS, dwsaveto : CERT_STORE_SAVE_TO, pvsavetopara : *mut core::ffi::c_void, dwflags : u32) -> windows_core::BOOL); unsafe { CertSaveStore(hcertstore, dwencodingtype, dwsaveas, dwsaveto, pvsavetopara as _, dwflags).ok() } } #[inline] pub unsafe fn CertSelectCertificateChains(pselectioncontext: Option<*const windows_core::GUID>, dwflags: u32, pchainparameters: Option<*const CERT_SELECT_CHAIN_PARA>, rgpcriteria: Option<&[CERT_SELECT_CRITERIA]>, hstore: HCERTSTORE, pcselection: *mut u32, pprgpselection: *mut *mut *mut CERT_CHAIN_CONTEXT) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertSelectCertificateChains(pselectioncontext : *const windows_core::GUID, dwflags : u32, pchainparameters : *const CERT_SELECT_CHAIN_PARA, ccriteria : u32, rgpcriteria : *const CERT_SELECT_CRITERIA, hstore : HCERTSTORE, pcselection : *mut u32, pprgpselection : *mut *mut *mut CERT_CHAIN_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertSelectCertificateChains(pselectioncontext : *const windows_core::GUID, dwflags : u32, pchainparameters : *const CERT_SELECT_CHAIN_PARA, ccriteria : u32, rgpcriteria : *const CERT_SELECT_CRITERIA, hstore : HCERTSTORE, pcselection : *mut u32, pprgpselection : *mut *mut *mut CERT_CHAIN_CONTEXT) -> windows_core::BOOL); unsafe { CertSelectCertificateChains(pselectioncontext.unwrap_or(core::mem::zeroed()) as _, dwflags, pchainparameters.unwrap_or(core::mem::zeroed()) as _, rgpcriteria.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rgpcriteria.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), hstore, pcselection as _, pprgpselection as _).ok() } } #[inline] pub unsafe fn CertSerializeCRLStoreElement(pcrlcontext: *const CRL_CONTEXT, dwflags: u32, pbelement: Option<*mut u8>, pcbelement: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertSerializeCRLStoreElement(pcrlcontext : *const CRL_CONTEXT, dwflags : u32, pbelement : *mut u8, pcbelement : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertSerializeCRLStoreElement(pcrlcontext : *const CRL_CONTEXT, dwflags : u32, pbelement : *mut u8, pcbelement : *mut u32) -> windows_core::BOOL); unsafe { CertSerializeCRLStoreElement(pcrlcontext, dwflags, pbelement.unwrap_or(core::mem::zeroed()) as _, pcbelement as _).ok() } } #[inline] pub unsafe fn CertSerializeCTLStoreElement(pctlcontext: *const CTL_CONTEXT, dwflags: u32, pbelement: Option<*mut u8>, pcbelement: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertSerializeCTLStoreElement(pctlcontext : *const CTL_CONTEXT, dwflags : u32, pbelement : *mut u8, pcbelement : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertSerializeCTLStoreElement(pctlcontext : *const CTL_CONTEXT, dwflags : u32, pbelement : *mut u8, pcbelement : *mut u32) -> windows_core::BOOL); unsafe { CertSerializeCTLStoreElement(pctlcontext, dwflags, pbelement.unwrap_or(core::mem::zeroed()) as _, pcbelement as _).ok() } } #[inline] pub unsafe fn CertSerializeCertificateStoreElement(pcertcontext: *const CERT_CONTEXT, dwflags: u32, pbelement: Option<*mut u8>, pcbelement: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertSerializeCertificateStoreElement(pcertcontext : *const CERT_CONTEXT, dwflags : u32, pbelement : *mut u8, pcbelement : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertSerializeCertificateStoreElement(pcertcontext : *const CERT_CONTEXT, dwflags : u32, pbelement : *mut u8, pcbelement : *mut u32) -> windows_core::BOOL); unsafe { CertSerializeCertificateStoreElement(pcertcontext, dwflags, pbelement.unwrap_or(core::mem::zeroed()) as _, pcbelement as _).ok() } } #[inline] pub unsafe fn CertSetCRLContextProperty(pcrlcontext: *const CRL_CONTEXT, dwpropid: u32, dwflags: u32, pvdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertSetCRLContextProperty(pcrlcontext : *const CRL_CONTEXT, dwpropid : u32, dwflags : u32, pvdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertSetCRLContextProperty(pcrlcontext : *const CRL_CONTEXT, dwpropid : u32, dwflags : u32, pvdata : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CertSetCRLContextProperty(pcrlcontext, dwpropid, dwflags, pvdata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CertSetCTLContextProperty(pctlcontext: *const CTL_CONTEXT, dwpropid: u32, dwflags: u32, pvdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertSetCTLContextProperty(pctlcontext : *const CTL_CONTEXT, dwpropid : u32, dwflags : u32, pvdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertSetCTLContextProperty(pctlcontext : *const CTL_CONTEXT, dwpropid : u32, dwflags : u32, pvdata : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CertSetCTLContextProperty(pctlcontext, dwpropid, dwflags, pvdata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CertSetCertificateContextPropertiesFromCTLEntry(pcertcontext: *const CERT_CONTEXT, pctlentry: *const CTL_ENTRY, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertSetCertificateContextPropertiesFromCTLEntry(pcertcontext : *const CERT_CONTEXT, pctlentry : *const CTL_ENTRY, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertSetCertificateContextPropertiesFromCTLEntry(pcertcontext : *const CERT_CONTEXT, pctlentry : *const CTL_ENTRY, dwflags : u32) -> windows_core::BOOL); unsafe { CertSetCertificateContextPropertiesFromCTLEntry(pcertcontext, pctlentry, dwflags).ok() } } #[inline] pub unsafe fn CertSetCertificateContextProperty(pcertcontext: *const CERT_CONTEXT, dwpropid: u32, dwflags: u32, pvdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertSetCertificateContextProperty(pcertcontext : *const CERT_CONTEXT, dwpropid : u32, dwflags : u32, pvdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertSetCertificateContextProperty(pcertcontext : *const CERT_CONTEXT, dwpropid : u32, dwflags : u32, pvdata : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CertSetCertificateContextProperty(pcertcontext, dwpropid, dwflags, pvdata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CertSetEnhancedKeyUsage(pcertcontext: *const CERT_CONTEXT, pusage: Option<*const CTL_USAGE>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertSetEnhancedKeyUsage(pcertcontext : *const CERT_CONTEXT, pusage : *const CTL_USAGE) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertSetEnhancedKeyUsage(pcertcontext : *const CERT_CONTEXT, pusage : *const CTL_USAGE) -> windows_core::BOOL); unsafe { CertSetEnhancedKeyUsage(pcertcontext, pusage.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn CertSetStoreProperty(hcertstore: HCERTSTORE, dwpropid: u32, dwflags: u32, pvdata: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CertSetStoreProperty(hcertstore : HCERTSTORE, dwpropid : u32, dwflags : u32, pvdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn CertSetStoreProperty(hcertstore: HCERTSTORE, dwpropid: u32, dwflags: u32, pvdata: Option<*const core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CertSetStoreProperty(hcertstore : HCERTSTORE, dwpropid : u32, dwflags : u32, pvdata : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CertSetStoreProperty(hcertstore, dwpropid, dwflags, pvdata.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1020,7 +1020,7 @@ pub unsafe fn CertStrToNameA(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, p where P1: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CertStrToNameA(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pszx500 : windows_core::PCSTR, dwstrtype : CERT_STRING_TYPE, pvreserved : *const core::ffi::c_void, pbencoded : *mut u8, pcbencoded : *mut u32, ppszerror : *mut windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertStrToNameA(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pszx500 : windows_core::PCSTR, dwstrtype : CERT_STRING_TYPE, pvreserved : *const core::ffi::c_void, pbencoded : *mut u8, pcbencoded : *mut u32, ppszerror : *mut windows_core::PCSTR) -> windows_core::BOOL); unsafe { CertStrToNameA(dwcertencodingtype, pszx500.param().abi(), dwstrtype, pvreserved.unwrap_or(core::mem::zeroed()) as _, pbencoded.unwrap_or(core::mem::zeroed()) as _, pcbencoded as _, ppszerror.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1028,25 +1028,25 @@ pub unsafe fn CertStrToNameW(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, p where P1: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CertStrToNameW(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pszx500 : windows_core::PCWSTR, dwstrtype : CERT_STRING_TYPE, pvreserved : *const core::ffi::c_void, pbencoded : *mut u8, pcbencoded : *mut u32, ppszerror : *mut windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertStrToNameW(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pszx500 : windows_core::PCWSTR, dwstrtype : CERT_STRING_TYPE, pvreserved : *const core::ffi::c_void, pbencoded : *mut u8, pcbencoded : *mut u32, ppszerror : *mut windows_core::PCWSTR) -> windows_core::BOOL); unsafe { CertStrToNameW(dwcertencodingtype, pszx500.param().abi(), dwstrtype, pvreserved.unwrap_or(core::mem::zeroed()) as _, pbencoded.unwrap_or(core::mem::zeroed()) as _, pcbencoded as _, ppszerror.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn CertUnregisterPhysicalStore(pvsystemstore: *const core::ffi::c_void, dwflags: u32, pwszstorename: P2) -> super::super::Foundation::BOOL +pub unsafe fn CertUnregisterPhysicalStore(pvsystemstore: *const core::ffi::c_void, dwflags: u32, pwszstorename: P2) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CertUnregisterPhysicalStore(pvsystemstore : *const core::ffi::c_void, dwflags : u32, pwszstorename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertUnregisterPhysicalStore(pvsystemstore : *const core::ffi::c_void, dwflags : u32, pwszstorename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { CertUnregisterPhysicalStore(pvsystemstore, dwflags, pwszstorename.param().abi()) } } #[inline] -pub unsafe fn CertUnregisterSystemStore(pvsystemstore: *const core::ffi::c_void, dwflags: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CertUnregisterSystemStore(pvsystemstore : *const core::ffi::c_void, dwflags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn CertUnregisterSystemStore(pvsystemstore: *const core::ffi::c_void, dwflags: u32) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CertUnregisterSystemStore(pvsystemstore : *const core::ffi::c_void, dwflags : u32) -> windows_core::BOOL); unsafe { CertUnregisterSystemStore(pvsystemstore, dwflags) } } #[inline] -pub unsafe fn CertVerifyCRLRevocation(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pcertid: *const CERT_INFO, rgpcrlinfo: &[*const CRL_INFO]) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CertVerifyCRLRevocation(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pcertid : *const CERT_INFO, ccrlinfo : u32, rgpcrlinfo : *const *const CRL_INFO) -> super::super::Foundation:: BOOL); +pub unsafe fn CertVerifyCRLRevocation(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pcertid: *const CERT_INFO, rgpcrlinfo: &[*const CRL_INFO]) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CertVerifyCRLRevocation(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pcertid : *const CERT_INFO, ccrlinfo : u32, rgpcrlinfo : *const *const CRL_INFO) -> windows_core::BOOL); unsafe { CertVerifyCRLRevocation(dwcertencodingtype, pcertid, rgpcrlinfo.len().try_into().unwrap(), core::mem::transmute(rgpcrlinfo.as_ptr())) } } #[inline] @@ -1056,25 +1056,25 @@ pub unsafe fn CertVerifyCRLTimeValidity(ptimetoverify: Option<*const super::supe } #[inline] pub unsafe fn CertVerifyCTLUsage(dwencodingtype: u32, dwsubjecttype: u32, pvsubject: *const core::ffi::c_void, psubjectusage: *const CTL_USAGE, dwflags: u32, pverifyusagepara: Option<*const CTL_VERIFY_USAGE_PARA>, pverifyusagestatus: *mut CTL_VERIFY_USAGE_STATUS) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertVerifyCTLUsage(dwencodingtype : u32, dwsubjecttype : u32, pvsubject : *const core::ffi::c_void, psubjectusage : *const CTL_USAGE, dwflags : u32, pverifyusagepara : *const CTL_VERIFY_USAGE_PARA, pverifyusagestatus : *mut CTL_VERIFY_USAGE_STATUS) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertVerifyCTLUsage(dwencodingtype : u32, dwsubjecttype : u32, pvsubject : *const core::ffi::c_void, psubjectusage : *const CTL_USAGE, dwflags : u32, pverifyusagepara : *const CTL_VERIFY_USAGE_PARA, pverifyusagestatus : *mut CTL_VERIFY_USAGE_STATUS) -> windows_core::BOOL); unsafe { CertVerifyCTLUsage(dwencodingtype, dwsubjecttype, pvsubject, psubjectusage, dwflags, pverifyusagepara.unwrap_or(core::mem::zeroed()) as _, pverifyusagestatus as _).ok() } } #[inline] -pub unsafe fn CertVerifyCertificateChainPolicy(pszpolicyoid: P0, pchaincontext: *const CERT_CHAIN_CONTEXT, ppolicypara: *const CERT_CHAIN_POLICY_PARA, ppolicystatus: *mut CERT_CHAIN_POLICY_STATUS) -> super::super::Foundation::BOOL +pub unsafe fn CertVerifyCertificateChainPolicy(pszpolicyoid: P0, pchaincontext: *const CERT_CHAIN_CONTEXT, ppolicypara: *const CERT_CHAIN_POLICY_PARA, ppolicystatus: *mut CERT_CHAIN_POLICY_STATUS) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CertVerifyCertificateChainPolicy(pszpolicyoid : windows_core::PCSTR, pchaincontext : *const CERT_CHAIN_CONTEXT, ppolicypara : *const CERT_CHAIN_POLICY_PARA, ppolicystatus : *mut CERT_CHAIN_POLICY_STATUS) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertVerifyCertificateChainPolicy(pszpolicyoid : windows_core::PCSTR, pchaincontext : *const CERT_CHAIN_CONTEXT, ppolicypara : *const CERT_CHAIN_POLICY_PARA, ppolicystatus : *mut CERT_CHAIN_POLICY_STATUS) -> windows_core::BOOL); unsafe { CertVerifyCertificateChainPolicy(pszpolicyoid.param().abi(), pchaincontext, ppolicypara, ppolicystatus as _) } } #[inline] pub unsafe fn CertVerifyRevocation(dwencodingtype: u32, dwrevtype: u32, rgpvcontext: &[*const core::ffi::c_void], dwflags: u32, prevpara: Option<*const CERT_REVOCATION_PARA>, prevstatus: *mut CERT_REVOCATION_STATUS) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertVerifyRevocation(dwencodingtype : u32, dwrevtype : u32, ccontext : u32, rgpvcontext : *const *const core::ffi::c_void, dwflags : u32, prevpara : *const CERT_REVOCATION_PARA, prevstatus : *mut CERT_REVOCATION_STATUS) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertVerifyRevocation(dwencodingtype : u32, dwrevtype : u32, ccontext : u32, rgpvcontext : *const *const core::ffi::c_void, dwflags : u32, prevpara : *const CERT_REVOCATION_PARA, prevstatus : *mut CERT_REVOCATION_STATUS) -> windows_core::BOOL); unsafe { CertVerifyRevocation(dwencodingtype, dwrevtype, rgpvcontext.len().try_into().unwrap(), core::mem::transmute(rgpvcontext.as_ptr()), dwflags, prevpara.unwrap_or(core::mem::zeroed()) as _, prevstatus as _).ok() } } #[inline] pub unsafe fn CertVerifySubjectCertificateContext(psubject: *const CERT_CONTEXT, pissuer: Option<*const CERT_CONTEXT>, pdwflags: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CertVerifySubjectCertificateContext(psubject : *const CERT_CONTEXT, pissuer : *const CERT_CONTEXT, pdwflags : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CertVerifySubjectCertificateContext(psubject : *const CERT_CONTEXT, pissuer : *const CERT_CONTEXT, pdwflags : *mut u32) -> windows_core::BOOL); unsafe { CertVerifySubjectCertificateContext(psubject, pissuer.unwrap_or(core::mem::zeroed()) as _, pdwflags as _).ok() } } #[inline] @@ -1083,8 +1083,8 @@ pub unsafe fn CertVerifyTimeValidity(ptimetoverify: Option<*const super::super:: unsafe { CertVerifyTimeValidity(ptimetoverify.unwrap_or(core::mem::zeroed()) as _, pcertinfo) } } #[inline] -pub unsafe fn CertVerifyValidityNesting(psubjectinfo: *const CERT_INFO, pissuerinfo: *const CERT_INFO) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CertVerifyValidityNesting(psubjectinfo : *const CERT_INFO, pissuerinfo : *const CERT_INFO) -> super::super::Foundation:: BOOL); +pub unsafe fn CertVerifyValidityNesting(psubjectinfo: *const CERT_INFO, pissuerinfo: *const CERT_INFO) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CertVerifyValidityNesting(psubjectinfo : *const CERT_INFO, pissuerinfo : *const CERT_INFO) -> windows_core::BOOL); unsafe { CertVerifyValidityNesting(psubjectinfo, pissuerinfo) } } #[inline] @@ -1093,8 +1093,8 @@ pub unsafe fn CloseCryptoHandle(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE) - unsafe { CloseCryptoHandle(hcrypto).ok() } } #[inline] -pub unsafe fn CryptAcquireCertificatePrivateKey(pcert: *const CERT_CONTEXT, dwflags: CRYPT_ACQUIRE_FLAGS, pvparameters: Option<*const core::ffi::c_void>, phcryptprovorncryptkey: *mut HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, pdwkeyspec: Option<*mut CERT_KEY_SPEC>, pfcallerfreeprovorncryptkey: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptAcquireCertificatePrivateKey(pcert : *const CERT_CONTEXT, dwflags : CRYPT_ACQUIRE_FLAGS, pvparameters : *const core::ffi::c_void, phcryptprovorncryptkey : *mut HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, pdwkeyspec : *mut CERT_KEY_SPEC, pfcallerfreeprovorncryptkey : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn CryptAcquireCertificatePrivateKey(pcert: *const CERT_CONTEXT, dwflags: CRYPT_ACQUIRE_FLAGS, pvparameters: Option<*const core::ffi::c_void>, phcryptprovorncryptkey: *mut HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, pdwkeyspec: Option<*mut CERT_KEY_SPEC>, pfcallerfreeprovorncryptkey: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { + windows_targets::link!("crypt32.dll" "system" fn CryptAcquireCertificatePrivateKey(pcert : *const CERT_CONTEXT, dwflags : CRYPT_ACQUIRE_FLAGS, pvparameters : *const core::ffi::c_void, phcryptprovorncryptkey : *mut HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, pdwkeyspec : *mut CERT_KEY_SPEC, pfcallerfreeprovorncryptkey : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { CryptAcquireCertificatePrivateKey(pcert, dwflags, pvparameters.unwrap_or(core::mem::zeroed()) as _, phcryptprovorncryptkey as _, pdwkeyspec.unwrap_or(core::mem::zeroed()) as _, pfcallerfreeprovorncryptkey.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1103,7 +1103,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CryptAcquireContextA(phprov : *mut usize, szcontainer : windows_core::PCSTR, szprovider : windows_core::PCSTR, dwprovtype : u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptAcquireContextA(phprov : *mut usize, szcontainer : windows_core::PCSTR, szprovider : windows_core::PCSTR, dwprovtype : u32, dwflags : u32) -> windows_core::BOOL); unsafe { CryptAcquireContextA(phprov as _, szcontainer.param().abi(), szprovider.param().abi(), dwprovtype, dwflags).ok() } } #[inline] @@ -1112,37 +1112,37 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CryptAcquireContextW(phprov : *mut usize, szcontainer : windows_core::PCWSTR, szprovider : windows_core::PCWSTR, dwprovtype : u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptAcquireContextW(phprov : *mut usize, szcontainer : windows_core::PCWSTR, szprovider : windows_core::PCWSTR, dwprovtype : u32, dwflags : u32) -> windows_core::BOOL); unsafe { CryptAcquireContextW(phprov as _, szcontainer.param().abi(), szprovider.param().abi(), dwprovtype, dwflags).ok() } } #[inline] -pub unsafe fn CryptBinaryToStringA(pbbinary: &[u8], dwflags: CRYPT_STRING, pszstring: Option, pcchstring: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CryptBinaryToStringA(pbbinary : *const u8, cbbinary : u32, dwflags : CRYPT_STRING, pszstring : windows_core::PSTR, pcchstring : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn CryptBinaryToStringA(pbbinary: &[u8], dwflags: CRYPT_STRING, pszstring: Option, pcchstring: *mut u32) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CryptBinaryToStringA(pbbinary : *const u8, cbbinary : u32, dwflags : CRYPT_STRING, pszstring : windows_core::PSTR, pcchstring : *mut u32) -> windows_core::BOOL); unsafe { CryptBinaryToStringA(core::mem::transmute(pbbinary.as_ptr()), pbbinary.len().try_into().unwrap(), dwflags, pszstring.unwrap_or(core::mem::zeroed()) as _, pcchstring as _) } } #[inline] -pub unsafe fn CryptBinaryToStringW(pbbinary: &[u8], dwflags: CRYPT_STRING, pszstring: Option, pcchstring: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CryptBinaryToStringW(pbbinary : *const u8, cbbinary : u32, dwflags : CRYPT_STRING, pszstring : windows_core::PWSTR, pcchstring : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn CryptBinaryToStringW(pbbinary: &[u8], dwflags: CRYPT_STRING, pszstring: Option, pcchstring: *mut u32) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CryptBinaryToStringW(pbbinary : *const u8, cbbinary : u32, dwflags : CRYPT_STRING, pszstring : windows_core::PWSTR, pcchstring : *mut u32) -> windows_core::BOOL); unsafe { CryptBinaryToStringW(core::mem::transmute(pbbinary.as_ptr()), pbbinary.len().try_into().unwrap(), dwflags, pszstring.unwrap_or(core::mem::zeroed()) as _, pcchstring as _) } } #[inline] -pub unsafe fn CryptCloseAsyncHandle(hasync: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CryptCloseAsyncHandle(hasync : HCRYPTASYNC) -> super::super::Foundation:: BOOL); +pub unsafe fn CryptCloseAsyncHandle(hasync: Option) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CryptCloseAsyncHandle(hasync : HCRYPTASYNC) -> windows_core::BOOL); unsafe { CryptCloseAsyncHandle(hasync.unwrap_or(core::mem::zeroed()) as _) } } #[inline] pub unsafe fn CryptContextAddRef(hprov: usize, pdwreserved: Option<*const u32>, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptContextAddRef(hprov : usize, pdwreserved : *const u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptContextAddRef(hprov : usize, pdwreserved : *const u32, dwflags : u32) -> windows_core::BOOL); unsafe { CryptContextAddRef(hprov, pdwreserved.unwrap_or(core::mem::zeroed()) as _, dwflags).ok() } } #[inline] -pub unsafe fn CryptCreateAsyncHandle(dwflags: u32, phasync: *mut HCRYPTASYNC) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CryptCreateAsyncHandle(dwflags : u32, phasync : *mut HCRYPTASYNC) -> super::super::Foundation:: BOOL); +pub unsafe fn CryptCreateAsyncHandle(dwflags: u32, phasync: *mut HCRYPTASYNC) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CryptCreateAsyncHandle(dwflags : u32, phasync : *mut HCRYPTASYNC) -> windows_core::BOOL); unsafe { CryptCreateAsyncHandle(dwflags, phasync as _) } } #[inline] pub unsafe fn CryptCreateHash(hprov: usize, algid: ALG_ID, hkey: usize, dwflags: u32, phhash: *mut usize) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptCreateHash(hprov : usize, algid : ALG_ID, hkey : usize, dwflags : u32, phhash : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptCreateHash(hprov : usize, algid : ALG_ID, hkey : usize, dwflags : u32, phhash : *mut usize) -> windows_core::BOOL); unsafe { CryptCreateHash(hprov, algid, hkey, dwflags, phhash as _).ok() } } #[inline] @@ -1150,12 +1150,12 @@ pub unsafe fn CryptCreateKeyIdentifierFromCSP(dwcertencodingtype: CERT_QUERY where P1: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptCreateKeyIdentifierFromCSP(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pszpubkeyoid : windows_core::PCSTR, ppubkeystruc : *const PUBLICKEYSTRUC, cbpubkeystruc : u32, dwflags : u32, pvreserved : *const core::ffi::c_void, pbhash : *mut u8, pcbhash : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptCreateKeyIdentifierFromCSP(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pszpubkeyoid : windows_core::PCSTR, ppubkeystruc : *const PUBLICKEYSTRUC, cbpubkeystruc : u32, dwflags : u32, pvreserved : *const core::ffi::c_void, pbhash : *mut u8, pcbhash : *mut u32) -> windows_core::BOOL); unsafe { CryptCreateKeyIdentifierFromCSP(dwcertencodingtype, pszpubkeyoid.param().abi(), ppubkeystruc, cbpubkeystruc, dwflags, pvreserved.unwrap_or(core::mem::zeroed()) as _, pbhash.unwrap_or(core::mem::zeroed()) as _, pcbhash as _).ok() } } #[inline] pub unsafe fn CryptDecodeMessage(dwmsgtypeflags: u32, pdecryptpara: Option<*const CRYPT_DECRYPT_MESSAGE_PARA>, pverifypara: Option<*const CRYPT_VERIFY_MESSAGE_PARA>, dwsignerindex: u32, pbencodedblob: &[u8], dwprevinnercontenttype: u32, pdwmsgtype: Option<*mut u32>, pdwinnercontenttype: Option<*mut u32>, pbdecoded: Option<*mut u8>, pcbdecoded: Option<*mut u32>, ppxchgcert: Option<*mut *mut CERT_CONTEXT>, ppsignercert: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptDecodeMessage(dwmsgtypeflags : u32, pdecryptpara : *const CRYPT_DECRYPT_MESSAGE_PARA, pverifypara : *const CRYPT_VERIFY_MESSAGE_PARA, dwsignerindex : u32, pbencodedblob : *const u8, cbencodedblob : u32, dwprevinnercontenttype : u32, pdwmsgtype : *mut u32, pdwinnercontenttype : *mut u32, pbdecoded : *mut u8, pcbdecoded : *mut u32, ppxchgcert : *mut *mut CERT_CONTEXT, ppsignercert : *mut *mut CERT_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptDecodeMessage(dwmsgtypeflags : u32, pdecryptpara : *const CRYPT_DECRYPT_MESSAGE_PARA, pverifypara : *const CRYPT_VERIFY_MESSAGE_PARA, dwsignerindex : u32, pbencodedblob : *const u8, cbencodedblob : u32, dwprevinnercontenttype : u32, pdwmsgtype : *mut u32, pdwinnercontenttype : *mut u32, pbdecoded : *mut u8, pcbdecoded : *mut u32, ppxchgcert : *mut *mut CERT_CONTEXT, ppsignercert : *mut *mut CERT_CONTEXT) -> windows_core::BOOL); unsafe { CryptDecodeMessage( dwmsgtypeflags, @@ -1180,7 +1180,7 @@ pub unsafe fn CryptDecodeObject(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE where P1: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptDecodeObject(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, lpszstructtype : windows_core::PCSTR, pbencoded : *const u8, cbencoded : u32, dwflags : u32, pvstructinfo : *mut core::ffi::c_void, pcbstructinfo : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptDecodeObject(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, lpszstructtype : windows_core::PCSTR, pbencoded : *const u8, cbencoded : u32, dwflags : u32, pvstructinfo : *mut core::ffi::c_void, pcbstructinfo : *mut u32) -> windows_core::BOOL); unsafe { CryptDecodeObject(dwcertencodingtype, lpszstructtype.param().abi(), core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), dwflags, pvstructinfo.unwrap_or(core::mem::zeroed()) as _, pcbstructinfo as _).ok() } } #[inline] @@ -1188,47 +1188,47 @@ pub unsafe fn CryptDecodeObjectEx(dwcertencodingtype: CERT_QUERY_ENCODING_TY where P1: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptDecodeObjectEx(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, lpszstructtype : windows_core::PCSTR, pbencoded : *const u8, cbencoded : u32, dwflags : u32, pdecodepara : *const CRYPT_DECODE_PARA, pvstructinfo : *mut core::ffi::c_void, pcbstructinfo : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptDecodeObjectEx(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, lpszstructtype : windows_core::PCSTR, pbencoded : *const u8, cbencoded : u32, dwflags : u32, pdecodepara : *const CRYPT_DECODE_PARA, pvstructinfo : *mut core::ffi::c_void, pcbstructinfo : *mut u32) -> windows_core::BOOL); unsafe { CryptDecodeObjectEx(dwcertencodingtype, lpszstructtype.param().abi(), core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), dwflags, pdecodepara.unwrap_or(core::mem::zeroed()) as _, pvstructinfo.unwrap_or(core::mem::zeroed()) as _, pcbstructinfo as _).ok() } } #[inline] pub unsafe fn CryptDecrypt(hkey: usize, hhash: usize, r#final: bool, dwflags: u32, pbdata: *mut u8, pdwdatalen: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptDecrypt(hkey : usize, hhash : usize, r#final : super::super::Foundation:: BOOL, dwflags : u32, pbdata : *mut u8, pdwdatalen : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptDecrypt(hkey : usize, hhash : usize, r#final : windows_core::BOOL, dwflags : u32, pbdata : *mut u8, pdwdatalen : *mut u32) -> windows_core::BOOL); unsafe { CryptDecrypt(hkey, hhash, r#final.into(), dwflags, pbdata as _, pdwdatalen as _).ok() } } #[inline] pub unsafe fn CryptDecryptAndVerifyMessageSignature(pdecryptpara: *const CRYPT_DECRYPT_MESSAGE_PARA, pverifypara: *const CRYPT_VERIFY_MESSAGE_PARA, dwsignerindex: u32, pbencryptedblob: &[u8], pbdecrypted: Option<*mut u8>, pcbdecrypted: Option<*mut u32>, ppxchgcert: Option<*mut *mut CERT_CONTEXT>, ppsignercert: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptDecryptAndVerifyMessageSignature(pdecryptpara : *const CRYPT_DECRYPT_MESSAGE_PARA, pverifypara : *const CRYPT_VERIFY_MESSAGE_PARA, dwsignerindex : u32, pbencryptedblob : *const u8, cbencryptedblob : u32, pbdecrypted : *mut u8, pcbdecrypted : *mut u32, ppxchgcert : *mut *mut CERT_CONTEXT, ppsignercert : *mut *mut CERT_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptDecryptAndVerifyMessageSignature(pdecryptpara : *const CRYPT_DECRYPT_MESSAGE_PARA, pverifypara : *const CRYPT_VERIFY_MESSAGE_PARA, dwsignerindex : u32, pbencryptedblob : *const u8, cbencryptedblob : u32, pbdecrypted : *mut u8, pcbdecrypted : *mut u32, ppxchgcert : *mut *mut CERT_CONTEXT, ppsignercert : *mut *mut CERT_CONTEXT) -> windows_core::BOOL); unsafe { CryptDecryptAndVerifyMessageSignature(pdecryptpara, pverifypara, dwsignerindex, core::mem::transmute(pbencryptedblob.as_ptr()), pbencryptedblob.len().try_into().unwrap(), pbdecrypted.unwrap_or(core::mem::zeroed()) as _, pcbdecrypted.unwrap_or(core::mem::zeroed()) as _, ppxchgcert.unwrap_or(core::mem::zeroed()) as _, ppsignercert.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CryptDecryptMessage(pdecryptpara: *const CRYPT_DECRYPT_MESSAGE_PARA, pbencryptedblob: &[u8], pbdecrypted: Option<*mut u8>, pcbdecrypted: Option<*mut u32>, ppxchgcert: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptDecryptMessage(pdecryptpara : *const CRYPT_DECRYPT_MESSAGE_PARA, pbencryptedblob : *const u8, cbencryptedblob : u32, pbdecrypted : *mut u8, pcbdecrypted : *mut u32, ppxchgcert : *mut *mut CERT_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptDecryptMessage(pdecryptpara : *const CRYPT_DECRYPT_MESSAGE_PARA, pbencryptedblob : *const u8, cbencryptedblob : u32, pbdecrypted : *mut u8, pcbdecrypted : *mut u32, ppxchgcert : *mut *mut CERT_CONTEXT) -> windows_core::BOOL); unsafe { CryptDecryptMessage(pdecryptpara, core::mem::transmute(pbencryptedblob.as_ptr()), pbencryptedblob.len().try_into().unwrap(), pbdecrypted.unwrap_or(core::mem::zeroed()) as _, pcbdecrypted.unwrap_or(core::mem::zeroed()) as _, ppxchgcert.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CryptDeriveKey(hprov: usize, algid: ALG_ID, hbasedata: usize, dwflags: u32, phkey: *mut usize) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptDeriveKey(hprov : usize, algid : ALG_ID, hbasedata : usize, dwflags : u32, phkey : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptDeriveKey(hprov : usize, algid : ALG_ID, hbasedata : usize, dwflags : u32, phkey : *mut usize) -> windows_core::BOOL); unsafe { CryptDeriveKey(hprov, algid, hbasedata, dwflags, phkey as _).ok() } } #[inline] pub unsafe fn CryptDestroyHash(hhash: usize) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptDestroyHash(hhash : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptDestroyHash(hhash : usize) -> windows_core::BOOL); unsafe { CryptDestroyHash(hhash).ok() } } #[inline] pub unsafe fn CryptDestroyKey(hkey: usize) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptDestroyKey(hkey : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptDestroyKey(hkey : usize) -> windows_core::BOOL); unsafe { CryptDestroyKey(hkey).ok() } } #[inline] pub unsafe fn CryptDuplicateHash(hhash: usize, pdwreserved: Option<*const u32>, dwflags: u32, phhash: *mut usize) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptDuplicateHash(hhash : usize, pdwreserved : *const u32, dwflags : u32, phhash : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptDuplicateHash(hhash : usize, pdwreserved : *const u32, dwflags : u32, phhash : *mut usize) -> windows_core::BOOL); unsafe { CryptDuplicateHash(hhash, pdwreserved.unwrap_or(core::mem::zeroed()) as _, dwflags, phhash as _).ok() } } #[inline] pub unsafe fn CryptDuplicateKey(hkey: usize, pdwreserved: Option<*const u32>, dwflags: u32, phkey: *mut usize) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptDuplicateKey(hkey : usize, pdwreserved : *const u32, dwflags : u32, phkey : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptDuplicateKey(hkey : usize, pdwreserved : *const u32, dwflags : u32, phkey : *mut usize) -> windows_core::BOOL); unsafe { CryptDuplicateKey(hkey, pdwreserved.unwrap_or(core::mem::zeroed()) as _, dwflags, phkey as _).ok() } } #[inline] @@ -1236,7 +1236,7 @@ pub unsafe fn CryptEncodeObject(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE where P1: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptEncodeObject(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, lpszstructtype : windows_core::PCSTR, pvstructinfo : *const core::ffi::c_void, pbencoded : *mut u8, pcbencoded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptEncodeObject(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, lpszstructtype : windows_core::PCSTR, pvstructinfo : *const core::ffi::c_void, pbencoded : *mut u8, pcbencoded : *mut u32) -> windows_core::BOOL); unsafe { CryptEncodeObject(dwcertencodingtype, lpszstructtype.param().abi(), pvstructinfo, pbencoded.unwrap_or(core::mem::zeroed()) as _, pcbencoded as _).ok() } } #[inline] @@ -1244,17 +1244,17 @@ pub unsafe fn CryptEncodeObjectEx(dwcertencodingtype: CERT_QUERY_ENCODING_TY where P1: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptEncodeObjectEx(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, lpszstructtype : windows_core::PCSTR, pvstructinfo : *const core::ffi::c_void, dwflags : CRYPT_ENCODE_OBJECT_FLAGS, pencodepara : *const CRYPT_ENCODE_PARA, pvencoded : *mut core::ffi::c_void, pcbencoded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptEncodeObjectEx(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, lpszstructtype : windows_core::PCSTR, pvstructinfo : *const core::ffi::c_void, dwflags : CRYPT_ENCODE_OBJECT_FLAGS, pencodepara : *const CRYPT_ENCODE_PARA, pvencoded : *mut core::ffi::c_void, pcbencoded : *mut u32) -> windows_core::BOOL); unsafe { CryptEncodeObjectEx(dwcertencodingtype, lpszstructtype.param().abi(), pvstructinfo, dwflags, pencodepara.unwrap_or(core::mem::zeroed()) as _, pvencoded.unwrap_or(core::mem::zeroed()) as _, pcbencoded as _).ok() } } #[inline] pub unsafe fn CryptEncrypt(hkey: usize, hhash: usize, r#final: bool, dwflags: u32, pbdata: Option<&mut [u8]>, pdwdatalen: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptEncrypt(hkey : usize, hhash : usize, r#final : super::super::Foundation:: BOOL, dwflags : u32, pbdata : *mut u8, pdwdatalen : *mut u32, dwbuflen : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptEncrypt(hkey : usize, hhash : usize, r#final : windows_core::BOOL, dwflags : u32, pbdata : *mut u8, pdwdatalen : *mut u32, dwbuflen : u32) -> windows_core::BOOL); unsafe { CryptEncrypt(hkey, hhash, r#final.into(), dwflags, core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pdwdatalen as _, pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } } #[inline] pub unsafe fn CryptEncryptMessage(pencryptpara: *const CRYPT_ENCRYPT_MESSAGE_PARA, rgprecipientcert: &[*const CERT_CONTEXT], pbtobeencrypted: Option<&[u8]>, pbencryptedblob: Option<*mut u8>, pcbencryptedblob: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptEncryptMessage(pencryptpara : *const CRYPT_ENCRYPT_MESSAGE_PARA, crecipientcert : u32, rgprecipientcert : *const *const CERT_CONTEXT, pbtobeencrypted : *const u8, cbtobeencrypted : u32, pbencryptedblob : *mut u8, pcbencryptedblob : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptEncryptMessage(pencryptpara : *const CRYPT_ENCRYPT_MESSAGE_PARA, crecipientcert : u32, rgprecipientcert : *const *const CERT_CONTEXT, pbtobeencrypted : *const u8, cbtobeencrypted : u32, pbencryptedblob : *mut u8, pcbencryptedblob : *mut u32) -> windows_core::BOOL); unsafe { CryptEncryptMessage(pencryptpara, rgprecipientcert.len().try_into().unwrap(), core::mem::transmute(rgprecipientcert.as_ptr()), core::mem::transmute(pbtobeencrypted.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbtobeencrypted.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pbencryptedblob.unwrap_or(core::mem::zeroed()) as _, pcbencryptedblob as _).ok() } } #[inline] @@ -1262,7 +1262,7 @@ pub unsafe fn CryptEnumKeyIdentifierProperties(pkeyidentifier: Option<*const where P3: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptEnumKeyIdentifierProperties(pkeyidentifier : *const CRYPT_INTEGER_BLOB, dwpropid : u32, dwflags : u32, pwszcomputername : windows_core::PCWSTR, pvreserved : *const core::ffi::c_void, pvarg : *mut core::ffi::c_void, pfnenum : PFN_CRYPT_ENUM_KEYID_PROP) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptEnumKeyIdentifierProperties(pkeyidentifier : *const CRYPT_INTEGER_BLOB, dwpropid : u32, dwflags : u32, pwszcomputername : windows_core::PCWSTR, pvreserved : *const core::ffi::c_void, pvarg : *mut core::ffi::c_void, pfnenum : PFN_CRYPT_ENUM_KEYID_PROP) -> windows_core::BOOL); unsafe { CryptEnumKeyIdentifierProperties(pkeyidentifier.unwrap_or(core::mem::zeroed()) as _, dwpropid, dwflags, pwszcomputername.param().abi(), pvreserved.unwrap_or(core::mem::zeroed()) as _, pvarg.unwrap_or(core::mem::zeroed()) as _, pfnenum).ok() } } #[inline] @@ -1271,37 +1271,37 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptEnumOIDFunction(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, pszoid : windows_core::PCSTR, dwflags : u32, pvarg : *mut core::ffi::c_void, pfnenumoidfunc : PFN_CRYPT_ENUM_OID_FUNC) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptEnumOIDFunction(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, pszoid : windows_core::PCSTR, dwflags : u32, pvarg : *mut core::ffi::c_void, pfnenumoidfunc : PFN_CRYPT_ENUM_OID_FUNC) -> windows_core::BOOL); unsafe { CryptEnumOIDFunction(dwencodingtype, pszfuncname.param().abi(), pszoid.param().abi(), dwflags, pvarg.unwrap_or(core::mem::zeroed()) as _, pfnenumoidfunc).ok() } } #[inline] -pub unsafe fn CryptEnumOIDInfo(dwgroupid: u32, dwflags: u32, pvarg: Option<*mut core::ffi::c_void>, pfnenumoidinfo: PFN_CRYPT_ENUM_OID_INFO) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CryptEnumOIDInfo(dwgroupid : u32, dwflags : u32, pvarg : *mut core::ffi::c_void, pfnenumoidinfo : PFN_CRYPT_ENUM_OID_INFO) -> super::super::Foundation:: BOOL); +pub unsafe fn CryptEnumOIDInfo(dwgroupid: u32, dwflags: u32, pvarg: Option<*mut core::ffi::c_void>, pfnenumoidinfo: PFN_CRYPT_ENUM_OID_INFO) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CryptEnumOIDInfo(dwgroupid : u32, dwflags : u32, pvarg : *mut core::ffi::c_void, pfnenumoidinfo : PFN_CRYPT_ENUM_OID_INFO) -> windows_core::BOOL); unsafe { CryptEnumOIDInfo(dwgroupid, dwflags, pvarg.unwrap_or(core::mem::zeroed()) as _, pfnenumoidinfo) } } #[inline] pub unsafe fn CryptEnumProviderTypesA(dwindex: u32, pdwreserved: Option<*const u32>, dwflags: u32, pdwprovtype: *mut u32, sztypename: Option, pcbtypename: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptEnumProviderTypesA(dwindex : u32, pdwreserved : *const u32, dwflags : u32, pdwprovtype : *mut u32, sztypename : windows_core::PSTR, pcbtypename : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptEnumProviderTypesA(dwindex : u32, pdwreserved : *const u32, dwflags : u32, pdwprovtype : *mut u32, sztypename : windows_core::PSTR, pcbtypename : *mut u32) -> windows_core::BOOL); unsafe { CryptEnumProviderTypesA(dwindex, pdwreserved.unwrap_or(core::mem::zeroed()) as _, dwflags, pdwprovtype as _, sztypename.unwrap_or(core::mem::zeroed()) as _, pcbtypename as _).ok() } } #[inline] pub unsafe fn CryptEnumProviderTypesW(dwindex: u32, pdwreserved: Option<*const u32>, dwflags: u32, pdwprovtype: *mut u32, sztypename: Option, pcbtypename: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptEnumProviderTypesW(dwindex : u32, pdwreserved : *const u32, dwflags : u32, pdwprovtype : *mut u32, sztypename : windows_core::PWSTR, pcbtypename : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptEnumProviderTypesW(dwindex : u32, pdwreserved : *const u32, dwflags : u32, pdwprovtype : *mut u32, sztypename : windows_core::PWSTR, pcbtypename : *mut u32) -> windows_core::BOOL); unsafe { CryptEnumProviderTypesW(dwindex, pdwreserved.unwrap_or(core::mem::zeroed()) as _, dwflags, pdwprovtype as _, sztypename.unwrap_or(core::mem::zeroed()) as _, pcbtypename as _).ok() } } #[inline] pub unsafe fn CryptEnumProvidersA(dwindex: u32, pdwreserved: Option<*const u32>, dwflags: u32, pdwprovtype: *mut u32, szprovname: Option, pcbprovname: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptEnumProvidersA(dwindex : u32, pdwreserved : *const u32, dwflags : u32, pdwprovtype : *mut u32, szprovname : windows_core::PSTR, pcbprovname : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptEnumProvidersA(dwindex : u32, pdwreserved : *const u32, dwflags : u32, pdwprovtype : *mut u32, szprovname : windows_core::PSTR, pcbprovname : *mut u32) -> windows_core::BOOL); unsafe { CryptEnumProvidersA(dwindex, pdwreserved.unwrap_or(core::mem::zeroed()) as _, dwflags, pdwprovtype as _, szprovname.unwrap_or(core::mem::zeroed()) as _, pcbprovname as _).ok() } } #[inline] pub unsafe fn CryptEnumProvidersW(dwindex: u32, pdwreserved: Option<*const u32>, dwflags: u32, pdwprovtype: *mut u32, szprovname: Option, pcbprovname: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptEnumProvidersW(dwindex : u32, pdwreserved : *const u32, dwflags : u32, pdwprovtype : *mut u32, szprovname : windows_core::PWSTR, pcbprovname : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptEnumProvidersW(dwindex : u32, pdwreserved : *const u32, dwflags : u32, pdwprovtype : *mut u32, szprovname : windows_core::PWSTR, pcbprovname : *mut u32) -> windows_core::BOOL); unsafe { CryptEnumProvidersW(dwindex, pdwreserved.unwrap_or(core::mem::zeroed()) as _, dwflags, pdwprovtype as _, szprovname.unwrap_or(core::mem::zeroed()) as _, pcbprovname as _).ok() } } #[inline] pub unsafe fn CryptExportKey(hkey: usize, hexpkey: usize, dwblobtype: u32, dwflags: CRYPT_KEY_FLAGS, pbdata: Option<*mut u8>, pdwdatalen: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptExportKey(hkey : usize, hexpkey : usize, dwblobtype : u32, dwflags : CRYPT_KEY_FLAGS, pbdata : *mut u8, pdwdatalen : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptExportKey(hkey : usize, hexpkey : usize, dwblobtype : u32, dwflags : CRYPT_KEY_FLAGS, pbdata : *mut u8, pdwdatalen : *mut u32) -> windows_core::BOOL); unsafe { CryptExportKey(hkey, hexpkey, dwblobtype, dwflags, pbdata.unwrap_or(core::mem::zeroed()) as _, pdwdatalen as _).ok() } } #[inline] @@ -1309,12 +1309,12 @@ pub unsafe fn CryptExportPKCS8(hcryptprov: usize, dwkeyspec: u32, pszprivate where P2: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptExportPKCS8(hcryptprov : usize, dwkeyspec : u32, pszprivatekeyobjid : windows_core::PCSTR, dwflags : u32, pvauxinfo : *const core::ffi::c_void, pbprivatekeyblob : *mut u8, pcbprivatekeyblob : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptExportPKCS8(hcryptprov : usize, dwkeyspec : u32, pszprivatekeyobjid : windows_core::PCSTR, dwflags : u32, pvauxinfo : *const core::ffi::c_void, pbprivatekeyblob : *mut u8, pcbprivatekeyblob : *mut u32) -> windows_core::BOOL); unsafe { CryptExportPKCS8(hcryptprov, dwkeyspec, pszprivatekeyobjid.param().abi(), dwflags, pvauxinfo.unwrap_or(core::mem::zeroed()) as _, pbprivatekeyblob.unwrap_or(core::mem::zeroed()) as _, pcbprivatekeyblob as _).ok() } } #[inline] pub unsafe fn CryptExportPublicKeyInfo(hcryptprovorncryptkey: HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, dwkeyspec: Option, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pinfo: Option<*mut CERT_PUBLIC_KEY_INFO>, pcbinfo: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptExportPublicKeyInfo(hcryptprovorncryptkey : HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, dwkeyspec : u32, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pinfo : *mut CERT_PUBLIC_KEY_INFO, pcbinfo : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptExportPublicKeyInfo(hcryptprovorncryptkey : HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, dwkeyspec : u32, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pinfo : *mut CERT_PUBLIC_KEY_INFO, pcbinfo : *mut u32) -> windows_core::BOOL); unsafe { CryptExportPublicKeyInfo(hcryptprovorncryptkey, dwkeyspec.unwrap_or(core::mem::zeroed()) as _, dwcertencodingtype, pinfo.unwrap_or(core::mem::zeroed()) as _, pcbinfo as _).ok() } } #[inline] @@ -1322,20 +1322,20 @@ pub unsafe fn CryptExportPublicKeyInfoEx(hcryptprovorncryptkey: HCRYPTPROV_O where P3: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptExportPublicKeyInfoEx(hcryptprovorncryptkey : HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, dwkeyspec : u32, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pszpublickeyobjid : windows_core::PCSTR, dwflags : u32, pvauxinfo : *const core::ffi::c_void, pinfo : *mut CERT_PUBLIC_KEY_INFO, pcbinfo : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptExportPublicKeyInfoEx(hcryptprovorncryptkey : HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, dwkeyspec : u32, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pszpublickeyobjid : windows_core::PCSTR, dwflags : u32, pvauxinfo : *const core::ffi::c_void, pinfo : *mut CERT_PUBLIC_KEY_INFO, pcbinfo : *mut u32) -> windows_core::BOOL); unsafe { CryptExportPublicKeyInfoEx(hcryptprovorncryptkey, dwkeyspec.unwrap_or(core::mem::zeroed()) as _, dwcertencodingtype, pszpublickeyobjid.param().abi(), dwflags, pvauxinfo.unwrap_or(core::mem::zeroed()) as _, pinfo.unwrap_or(core::mem::zeroed()) as _, pcbinfo as _).ok() } } #[inline] -pub unsafe fn CryptExportPublicKeyInfoFromBCryptKeyHandle(hbcryptkey: BCRYPT_KEY_HANDLE, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pszpublickeyobjid: P2, dwflags: u32, pvauxinfo: Option<*const core::ffi::c_void>, pinfo: Option<*mut CERT_PUBLIC_KEY_INFO>, pcbinfo: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn CryptExportPublicKeyInfoFromBCryptKeyHandle(hbcryptkey: BCRYPT_KEY_HANDLE, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pszpublickeyobjid: P2, dwflags: u32, pvauxinfo: Option<*const core::ffi::c_void>, pinfo: Option<*mut CERT_PUBLIC_KEY_INFO>, pcbinfo: *mut u32) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptExportPublicKeyInfoFromBCryptKeyHandle(hbcryptkey : BCRYPT_KEY_HANDLE, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pszpublickeyobjid : windows_core::PCSTR, dwflags : u32, pvauxinfo : *const core::ffi::c_void, pinfo : *mut CERT_PUBLIC_KEY_INFO, pcbinfo : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptExportPublicKeyInfoFromBCryptKeyHandle(hbcryptkey : BCRYPT_KEY_HANDLE, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pszpublickeyobjid : windows_core::PCSTR, dwflags : u32, pvauxinfo : *const core::ffi::c_void, pinfo : *mut CERT_PUBLIC_KEY_INFO, pcbinfo : *mut u32) -> windows_core::BOOL); unsafe { CryptExportPublicKeyInfoFromBCryptKeyHandle(hbcryptkey, dwcertencodingtype, pszpublickeyobjid.param().abi(), dwflags, pvauxinfo.unwrap_or(core::mem::zeroed()) as _, pinfo.unwrap_or(core::mem::zeroed()) as _, pcbinfo as _) } } #[inline] pub unsafe fn CryptFindCertificateKeyProvInfo(pcert: *const CERT_CONTEXT, dwflags: CRYPT_FIND_FLAGS, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptFindCertificateKeyProvInfo(pcert : *const CERT_CONTEXT, dwflags : CRYPT_FIND_FLAGS, pvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptFindCertificateKeyProvInfo(pcert : *const CERT_CONTEXT, dwflags : CRYPT_FIND_FLAGS, pvreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CryptFindCertificateKeyProvInfo(pcert, dwflags, pvreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1356,58 +1356,58 @@ pub unsafe fn CryptFormatObject(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE where P4: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptFormatObject(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, dwformattype : u32, dwformatstrtype : u32, pformatstruct : *const core::ffi::c_void, lpszstructtype : windows_core::PCSTR, pbencoded : *const u8, cbencoded : u32, pbformat : *mut core::ffi::c_void, pcbformat : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptFormatObject(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, dwformattype : u32, dwformatstrtype : u32, pformatstruct : *const core::ffi::c_void, lpszstructtype : windows_core::PCSTR, pbencoded : *const u8, cbencoded : u32, pbformat : *mut core::ffi::c_void, pcbformat : *mut u32) -> windows_core::BOOL); unsafe { CryptFormatObject(dwcertencodingtype, dwformattype, dwformatstrtype, pformatstruct.unwrap_or(core::mem::zeroed()) as _, lpszstructtype.param().abi(), core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), pbformat.unwrap_or(core::mem::zeroed()) as _, pcbformat as _).ok() } } #[inline] -pub unsafe fn CryptFreeOIDFunctionAddress(hfuncaddr: *const core::ffi::c_void, dwflags: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CryptFreeOIDFunctionAddress(hfuncaddr : *const core::ffi::c_void, dwflags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn CryptFreeOIDFunctionAddress(hfuncaddr: *const core::ffi::c_void, dwflags: u32) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CryptFreeOIDFunctionAddress(hfuncaddr : *const core::ffi::c_void, dwflags : u32) -> windows_core::BOOL); unsafe { CryptFreeOIDFunctionAddress(hfuncaddr, dwflags) } } #[inline] pub unsafe fn CryptGenKey(hprov: usize, algid: ALG_ID, dwflags: CRYPT_KEY_FLAGS, phkey: *mut usize) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptGenKey(hprov : usize, algid : ALG_ID, dwflags : CRYPT_KEY_FLAGS, phkey : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptGenKey(hprov : usize, algid : ALG_ID, dwflags : CRYPT_KEY_FLAGS, phkey : *mut usize) -> windows_core::BOOL); unsafe { CryptGenKey(hprov, algid, dwflags, phkey as _).ok() } } #[inline] pub unsafe fn CryptGenRandom(hprov: usize, pbbuffer: &mut [u8]) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptGenRandom(hprov : usize, dwlen : u32, pbbuffer : *mut u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptGenRandom(hprov : usize, dwlen : u32, pbbuffer : *mut u8) -> windows_core::BOOL); unsafe { CryptGenRandom(hprov, pbbuffer.len().try_into().unwrap(), core::mem::transmute(pbbuffer.as_ptr())).ok() } } #[inline] -pub unsafe fn CryptGetAsyncParam(hasync: HCRYPTASYNC, pszparamoid: P1, ppvparam: Option<*mut *mut core::ffi::c_void>, ppfnfree: Option<*mut PFN_CRYPT_ASYNC_PARAM_FREE_FUNC>) -> super::super::Foundation::BOOL +pub unsafe fn CryptGetAsyncParam(hasync: HCRYPTASYNC, pszparamoid: P1, ppvparam: Option<*mut *mut core::ffi::c_void>, ppfnfree: Option<*mut PFN_CRYPT_ASYNC_PARAM_FREE_FUNC>) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptGetAsyncParam(hasync : HCRYPTASYNC, pszparamoid : windows_core::PCSTR, ppvparam : *mut *mut core::ffi::c_void, ppfnfree : *mut PFN_CRYPT_ASYNC_PARAM_FREE_FUNC) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptGetAsyncParam(hasync : HCRYPTASYNC, pszparamoid : windows_core::PCSTR, ppvparam : *mut *mut core::ffi::c_void, ppfnfree : *mut PFN_CRYPT_ASYNC_PARAM_FREE_FUNC) -> windows_core::BOOL); unsafe { CryptGetAsyncParam(hasync, pszparamoid.param().abi(), ppvparam.unwrap_or(core::mem::zeroed()) as _, ppfnfree.unwrap_or(core::mem::zeroed()) as _) } } #[inline] pub unsafe fn CryptGetDefaultOIDDllList(hfuncset: *const core::ffi::c_void, dwencodingtype: u32, pwszdlllist: Option, pcchdlllist: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptGetDefaultOIDDllList(hfuncset : *const core::ffi::c_void, dwencodingtype : u32, pwszdlllist : windows_core::PWSTR, pcchdlllist : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptGetDefaultOIDDllList(hfuncset : *const core::ffi::c_void, dwencodingtype : u32, pwszdlllist : windows_core::PWSTR, pcchdlllist : *mut u32) -> windows_core::BOOL); unsafe { CryptGetDefaultOIDDllList(hfuncset, dwencodingtype, pwszdlllist.unwrap_or(core::mem::zeroed()) as _, pcchdlllist as _).ok() } } #[inline] -pub unsafe fn CryptGetDefaultOIDFunctionAddress(hfuncset: *const core::ffi::c_void, dwencodingtype: u32, pwszdll: P2, dwflags: u32, ppvfuncaddr: *mut *mut core::ffi::c_void, phfuncaddr: *mut *mut core::ffi::c_void) -> super::super::Foundation::BOOL +pub unsafe fn CryptGetDefaultOIDFunctionAddress(hfuncset: *const core::ffi::c_void, dwencodingtype: u32, pwszdll: P2, dwflags: u32, ppvfuncaddr: *mut *mut core::ffi::c_void, phfuncaddr: *mut *mut core::ffi::c_void) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptGetDefaultOIDFunctionAddress(hfuncset : *const core::ffi::c_void, dwencodingtype : u32, pwszdll : windows_core::PCWSTR, dwflags : u32, ppvfuncaddr : *mut *mut core::ffi::c_void, phfuncaddr : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptGetDefaultOIDFunctionAddress(hfuncset : *const core::ffi::c_void, dwencodingtype : u32, pwszdll : windows_core::PCWSTR, dwflags : u32, ppvfuncaddr : *mut *mut core::ffi::c_void, phfuncaddr : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { CryptGetDefaultOIDFunctionAddress(hfuncset, dwencodingtype, pwszdll.param().abi(), dwflags, ppvfuncaddr as _, phfuncaddr as _) } } #[inline] pub unsafe fn CryptGetDefaultProviderA(dwprovtype: u32, pdwreserved: Option<*const u32>, dwflags: u32, pszprovname: Option, pcbprovname: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptGetDefaultProviderA(dwprovtype : u32, pdwreserved : *const u32, dwflags : u32, pszprovname : windows_core::PSTR, pcbprovname : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptGetDefaultProviderA(dwprovtype : u32, pdwreserved : *const u32, dwflags : u32, pszprovname : windows_core::PSTR, pcbprovname : *mut u32) -> windows_core::BOOL); unsafe { CryptGetDefaultProviderA(dwprovtype, pdwreserved.unwrap_or(core::mem::zeroed()) as _, dwflags, pszprovname.unwrap_or(core::mem::zeroed()) as _, pcbprovname as _).ok() } } #[inline] pub unsafe fn CryptGetDefaultProviderW(dwprovtype: u32, pdwreserved: Option<*const u32>, dwflags: u32, pszprovname: Option, pcbprovname: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptGetDefaultProviderW(dwprovtype : u32, pdwreserved : *const u32, dwflags : u32, pszprovname : windows_core::PWSTR, pcbprovname : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptGetDefaultProviderW(dwprovtype : u32, pdwreserved : *const u32, dwflags : u32, pszprovname : windows_core::PWSTR, pcbprovname : *mut u32) -> windows_core::BOOL); unsafe { CryptGetDefaultProviderW(dwprovtype, pdwreserved.unwrap_or(core::mem::zeroed()) as _, dwflags, pszprovname.unwrap_or(core::mem::zeroed()) as _, pcbprovname as _).ok() } } #[inline] pub unsafe fn CryptGetHashParam(hhash: usize, dwparam: u32, pbdata: Option<*mut u8>, pdwdatalen: *mut u32, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptGetHashParam(hhash : usize, dwparam : u32, pbdata : *mut u8, pdwdatalen : *mut u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptGetHashParam(hhash : usize, dwparam : u32, pbdata : *mut u8, pdwdatalen : *mut u32, dwflags : u32) -> windows_core::BOOL); unsafe { CryptGetHashParam(hhash, dwparam, pbdata.unwrap_or(core::mem::zeroed()) as _, pdwdatalen as _, dwflags).ok() } } #[inline] @@ -1415,12 +1415,12 @@ pub unsafe fn CryptGetKeyIdentifierProperty(pkeyidentifier: *const CRYPT_INT where P3: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptGetKeyIdentifierProperty(pkeyidentifier : *const CRYPT_INTEGER_BLOB, dwpropid : u32, dwflags : u32, pwszcomputername : windows_core::PCWSTR, pvreserved : *const core::ffi::c_void, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptGetKeyIdentifierProperty(pkeyidentifier : *const CRYPT_INTEGER_BLOB, dwpropid : u32, dwflags : u32, pwszcomputername : windows_core::PCWSTR, pvreserved : *const core::ffi::c_void, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> windows_core::BOOL); unsafe { CryptGetKeyIdentifierProperty(pkeyidentifier, dwpropid, dwflags, pwszcomputername.param().abi(), pvreserved.unwrap_or(core::mem::zeroed()) as _, pvdata.unwrap_or(core::mem::zeroed()) as _, pcbdata as _).ok() } } #[inline] pub unsafe fn CryptGetKeyParam(hkey: usize, dwparam: CRYPT_KEY_PARAM_ID, pbdata: Option<*mut u8>, pdwdatalen: *mut u32, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptGetKeyParam(hkey : usize, dwparam : CRYPT_KEY_PARAM_ID, pbdata : *mut u8, pdwdatalen : *mut u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptGetKeyParam(hkey : usize, dwparam : CRYPT_KEY_PARAM_ID, pbdata : *mut u8, pdwdatalen : *mut u32, dwflags : u32) -> windows_core::BOOL); unsafe { CryptGetKeyParam(hkey, dwparam, pbdata.unwrap_or(core::mem::zeroed()) as _, pdwdatalen as _, dwflags).ok() } } #[inline] @@ -1439,7 +1439,7 @@ pub unsafe fn CryptGetOIDFunctionAddress(hfuncset: *const core::ffi::c_void, where P2: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptGetOIDFunctionAddress(hfuncset : *const core::ffi::c_void, dwencodingtype : u32, pszoid : windows_core::PCSTR, dwflags : u32, ppvfuncaddr : *mut *mut core::ffi::c_void, phfuncaddr : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptGetOIDFunctionAddress(hfuncset : *const core::ffi::c_void, dwencodingtype : u32, pszoid : windows_core::PCSTR, dwflags : u32, ppvfuncaddr : *mut *mut core::ffi::c_void, phfuncaddr : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { CryptGetOIDFunctionAddress(hfuncset, dwencodingtype, pszoid.param().abi(), dwflags, ppvfuncaddr as _, phfuncaddr as _).ok() } } #[inline] @@ -1449,7 +1449,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptGetOIDFunctionValue(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, pszoid : windows_core::PCSTR, pwszvaluename : windows_core::PCWSTR, pdwvaluetype : *mut u32, pbvaluedata : *mut u8, pcbvaluedata : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptGetOIDFunctionValue(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, pszoid : windows_core::PCSTR, pwszvaluename : windows_core::PCWSTR, pdwvaluetype : *mut u32, pbvaluedata : *mut u8, pcbvaluedata : *mut u32) -> windows_core::BOOL); unsafe { CryptGetOIDFunctionValue(dwencodingtype, pszfuncname.param().abi(), pszoid.param().abi(), pwszvaluename.param().abi(), pdwvaluetype.unwrap_or(core::mem::zeroed()) as _, pbvaluedata.unwrap_or(core::mem::zeroed()) as _, pcbvaluedata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1457,22 +1457,22 @@ pub unsafe fn CryptGetObjectUrl(pszurloid: P0, pvpara: *const core::ffi::c_v where P0: windows_core::Param, { - windows_targets::link!("cryptnet.dll" "system" fn CryptGetObjectUrl(pszurloid : windows_core::PCSTR, pvpara : *const core::ffi::c_void, dwflags : CRYPT_GET_URL_FLAGS, purlarray : *mut CRYPT_URL_ARRAY, pcburlarray : *mut u32, purlinfo : *mut CRYPT_URL_INFO, pcburlinfo : *mut u32, pvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("cryptnet.dll" "system" fn CryptGetObjectUrl(pszurloid : windows_core::PCSTR, pvpara : *const core::ffi::c_void, dwflags : CRYPT_GET_URL_FLAGS, purlarray : *mut CRYPT_URL_ARRAY, pcburlarray : *mut u32, purlinfo : *mut CRYPT_URL_INFO, pcburlinfo : *mut u32, pvreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CryptGetObjectUrl(pszurloid.param().abi(), pvpara, dwflags, purlarray.unwrap_or(core::mem::zeroed()) as _, pcburlarray as _, purlinfo.unwrap_or(core::mem::zeroed()) as _, pcburlinfo.unwrap_or(core::mem::zeroed()) as _, pvreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CryptGetProvParam(hprov: usize, dwparam: u32, pbdata: Option<*mut u8>, pdwdatalen: *mut u32, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptGetProvParam(hprov : usize, dwparam : u32, pbdata : *mut u8, pdwdatalen : *mut u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptGetProvParam(hprov : usize, dwparam : u32, pbdata : *mut u8, pdwdatalen : *mut u32, dwflags : u32) -> windows_core::BOOL); unsafe { CryptGetProvParam(hprov, dwparam, pbdata.unwrap_or(core::mem::zeroed()) as _, pdwdatalen as _, dwflags).ok() } } #[inline] pub unsafe fn CryptGetUserKey(hprov: usize, dwkeyspec: u32, phuserkey: *mut usize) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptGetUserKey(hprov : usize, dwkeyspec : u32, phuserkey : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptGetUserKey(hprov : usize, dwkeyspec : u32, phuserkey : *mut usize) -> windows_core::BOOL); unsafe { CryptGetUserKey(hprov, dwkeyspec, phuserkey as _).ok() } } #[inline] pub unsafe fn CryptHashCertificate(hcryptprov: Option, algid: ALG_ID, dwflags: u32, pbencoded: &[u8], pbcomputedhash: Option<*mut u8>, pcbcomputedhash: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptHashCertificate(hcryptprov : HCRYPTPROV_LEGACY, algid : ALG_ID, dwflags : u32, pbencoded : *const u8, cbencoded : u32, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptHashCertificate(hcryptprov : HCRYPTPROV_LEGACY, algid : ALG_ID, dwflags : u32, pbencoded : *const u8, cbencoded : u32, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> windows_core::BOOL); unsafe { CryptHashCertificate(hcryptprov.unwrap_or(core::mem::zeroed()) as _, algid, dwflags, core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), pbcomputedhash.unwrap_or(core::mem::zeroed()) as _, pcbcomputedhash as _).ok() } } #[inline] @@ -1480,57 +1480,57 @@ pub unsafe fn CryptHashCertificate2(pwszcnghashalgid: P0, dwflags: u32, pvre where P0: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptHashCertificate2(pwszcnghashalgid : windows_core::PCWSTR, dwflags : u32, pvreserved : *const core::ffi::c_void, pbencoded : *const u8, cbencoded : u32, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptHashCertificate2(pwszcnghashalgid : windows_core::PCWSTR, dwflags : u32, pvreserved : *const core::ffi::c_void, pbencoded : *const u8, cbencoded : u32, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> windows_core::BOOL); unsafe { CryptHashCertificate2(pwszcnghashalgid.param().abi(), dwflags, pvreserved.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(pbencoded.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbencoded.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pbcomputedhash.unwrap_or(core::mem::zeroed()) as _, pcbcomputedhash as _).ok() } } #[inline] pub unsafe fn CryptHashData(hhash: usize, pbdata: &[u8], dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptHashData(hhash : usize, pbdata : *const u8, dwdatalen : u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptHashData(hhash : usize, pbdata : *const u8, dwdatalen : u32, dwflags : u32) -> windows_core::BOOL); unsafe { CryptHashData(hhash, core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), dwflags).ok() } } #[inline] pub unsafe fn CryptHashMessage(phashpara: *const CRYPT_HASH_MESSAGE_PARA, fdetachedhash: bool, ctobehashed: u32, rgpbtobehashed: *const *const u8, rgcbtobehashed: *const u32, pbhashedblob: Option<*mut u8>, pcbhashedblob: Option<*mut u32>, pbcomputedhash: Option<*mut u8>, pcbcomputedhash: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptHashMessage(phashpara : *const CRYPT_HASH_MESSAGE_PARA, fdetachedhash : super::super::Foundation:: BOOL, ctobehashed : u32, rgpbtobehashed : *const *const u8, rgcbtobehashed : *const u32, pbhashedblob : *mut u8, pcbhashedblob : *mut u32, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptHashMessage(phashpara : *const CRYPT_HASH_MESSAGE_PARA, fdetachedhash : windows_core::BOOL, ctobehashed : u32, rgpbtobehashed : *const *const u8, rgcbtobehashed : *const u32, pbhashedblob : *mut u8, pcbhashedblob : *mut u32, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> windows_core::BOOL); unsafe { CryptHashMessage(phashpara, fdetachedhash.into(), ctobehashed, rgpbtobehashed, rgcbtobehashed, pbhashedblob.unwrap_or(core::mem::zeroed()) as _, pcbhashedblob.unwrap_or(core::mem::zeroed()) as _, pbcomputedhash.unwrap_or(core::mem::zeroed()) as _, pcbcomputedhash.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CryptHashPublicKeyInfo(hcryptprov: Option, algid: ALG_ID, dwflags: u32, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pinfo: *const CERT_PUBLIC_KEY_INFO, pbcomputedhash: Option<*mut u8>, pcbcomputedhash: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptHashPublicKeyInfo(hcryptprov : HCRYPTPROV_LEGACY, algid : ALG_ID, dwflags : u32, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pinfo : *const CERT_PUBLIC_KEY_INFO, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptHashPublicKeyInfo(hcryptprov : HCRYPTPROV_LEGACY, algid : ALG_ID, dwflags : u32, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pinfo : *const CERT_PUBLIC_KEY_INFO, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> windows_core::BOOL); unsafe { CryptHashPublicKeyInfo(hcryptprov.unwrap_or(core::mem::zeroed()) as _, algid, dwflags, dwcertencodingtype, pinfo, pbcomputedhash.unwrap_or(core::mem::zeroed()) as _, pcbcomputedhash as _).ok() } } #[inline] pub unsafe fn CryptHashSessionKey(hhash: usize, hkey: usize, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptHashSessionKey(hhash : usize, hkey : usize, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptHashSessionKey(hhash : usize, hkey : usize, dwflags : u32) -> windows_core::BOOL); unsafe { CryptHashSessionKey(hhash, hkey, dwflags).ok() } } #[inline] pub unsafe fn CryptHashToBeSigned(hcryptprov: Option, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbencoded: &[u8], pbcomputedhash: Option<*mut u8>, pcbcomputedhash: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptHashToBeSigned(hcryptprov : HCRYPTPROV_LEGACY, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbencoded : *const u8, cbencoded : u32, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptHashToBeSigned(hcryptprov : HCRYPTPROV_LEGACY, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbencoded : *const u8, cbencoded : u32, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> windows_core::BOOL); unsafe { CryptHashToBeSigned(hcryptprov.unwrap_or(core::mem::zeroed()) as _, dwcertencodingtype, core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), pbcomputedhash.unwrap_or(core::mem::zeroed()) as _, pcbcomputedhash as _).ok() } } #[inline] pub unsafe fn CryptImportKey(hprov: usize, pbdata: &[u8], hpubkey: usize, dwflags: CRYPT_KEY_FLAGS, phkey: *mut usize) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptImportKey(hprov : usize, pbdata : *const u8, dwdatalen : u32, hpubkey : usize, dwflags : CRYPT_KEY_FLAGS, phkey : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptImportKey(hprov : usize, pbdata : *const u8, dwdatalen : u32, hpubkey : usize, dwflags : CRYPT_KEY_FLAGS, phkey : *mut usize) -> windows_core::BOOL); unsafe { CryptImportKey(hprov, core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), hpubkey, dwflags, phkey as _).ok() } } #[inline] pub unsafe fn CryptImportPKCS8(sprivatekeyandparams: CRYPT_PKCS8_IMPORT_PARAMS, dwflags: CRYPT_KEY_FLAGS, phcryptprov: Option<*mut usize>, pvauxinfo: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptImportPKCS8(sprivatekeyandparams : CRYPT_PKCS8_IMPORT_PARAMS, dwflags : CRYPT_KEY_FLAGS, phcryptprov : *mut usize, pvauxinfo : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptImportPKCS8(sprivatekeyandparams : CRYPT_PKCS8_IMPORT_PARAMS, dwflags : CRYPT_KEY_FLAGS, phcryptprov : *mut usize, pvauxinfo : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CryptImportPKCS8(core::mem::transmute(sprivatekeyandparams), dwflags, phcryptprov.unwrap_or(core::mem::zeroed()) as _, pvauxinfo.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CryptImportPublicKeyInfo(hcryptprov: usize, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pinfo: *const CERT_PUBLIC_KEY_INFO, phkey: *mut usize) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptImportPublicKeyInfo(hcryptprov : usize, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pinfo : *const CERT_PUBLIC_KEY_INFO, phkey : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptImportPublicKeyInfo(hcryptprov : usize, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pinfo : *const CERT_PUBLIC_KEY_INFO, phkey : *mut usize) -> windows_core::BOOL); unsafe { CryptImportPublicKeyInfo(hcryptprov, dwcertencodingtype, pinfo, phkey as _).ok() } } #[inline] pub unsafe fn CryptImportPublicKeyInfoEx(hcryptprov: usize, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pinfo: *const CERT_PUBLIC_KEY_INFO, aikeyalg: ALG_ID, dwflags: u32, pvauxinfo: Option<*const core::ffi::c_void>, phkey: *mut usize) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptImportPublicKeyInfoEx(hcryptprov : usize, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pinfo : *const CERT_PUBLIC_KEY_INFO, aikeyalg : ALG_ID, dwflags : u32, pvauxinfo : *const core::ffi::c_void, phkey : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptImportPublicKeyInfoEx(hcryptprov : usize, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pinfo : *const CERT_PUBLIC_KEY_INFO, aikeyalg : ALG_ID, dwflags : u32, pvauxinfo : *const core::ffi::c_void, phkey : *mut usize) -> windows_core::BOOL); unsafe { CryptImportPublicKeyInfoEx(hcryptprov, dwcertencodingtype, pinfo, aikeyalg, dwflags, pvauxinfo.unwrap_or(core::mem::zeroed()) as _, phkey as _).ok() } } #[inline] pub unsafe fn CryptImportPublicKeyInfoEx2(dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pinfo: *const CERT_PUBLIC_KEY_INFO, dwflags: CRYPT_IMPORT_PUBLIC_KEY_FLAGS, pvauxinfo: Option<*const core::ffi::c_void>, phkey: *mut BCRYPT_KEY_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptImportPublicKeyInfoEx2(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pinfo : *const CERT_PUBLIC_KEY_INFO, dwflags : CRYPT_IMPORT_PUBLIC_KEY_FLAGS, pvauxinfo : *const core::ffi::c_void, phkey : *mut BCRYPT_KEY_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptImportPublicKeyInfoEx2(dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pinfo : *const CERT_PUBLIC_KEY_INFO, dwflags : CRYPT_IMPORT_PUBLIC_KEY_FLAGS, pvauxinfo : *const core::ffi::c_void, phkey : *mut BCRYPT_KEY_HANDLE) -> windows_core::BOOL); unsafe { CryptImportPublicKeyInfoEx2(dwcertencodingtype, pinfo, dwflags, pvauxinfo.unwrap_or(core::mem::zeroed()) as _, phkey as _).ok() } } #[inline] @@ -1542,21 +1542,21 @@ where unsafe { CryptInitOIDFunctionSet(pszfuncname.param().abi(), dwflags) } } #[inline] -pub unsafe fn CryptInstallCancelRetrieval(pfncancel: PFN_CRYPT_CANCEL_RETRIEVAL, pvarg: Option<*const core::ffi::c_void>, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { - windows_targets::link!("cryptnet.dll" "system" fn CryptInstallCancelRetrieval(pfncancel : PFN_CRYPT_CANCEL_RETRIEVAL, pvarg : *const core::ffi::c_void, dwflags : u32, pvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn CryptInstallCancelRetrieval(pfncancel: PFN_CRYPT_CANCEL_RETRIEVAL, pvarg: Option<*const core::ffi::c_void>, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("cryptnet.dll" "system" fn CryptInstallCancelRetrieval(pfncancel : PFN_CRYPT_CANCEL_RETRIEVAL, pvarg : *const core::ffi::c_void, dwflags : u32, pvreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CryptInstallCancelRetrieval(pfncancel, pvarg.unwrap_or(core::mem::zeroed()) as _, dwflags, pvreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] pub unsafe fn CryptInstallDefaultContext(hcryptprov: usize, dwdefaulttype: CRYPT_DEFAULT_CONTEXT_TYPE, pvdefaultpara: Option<*const core::ffi::c_void>, dwflags: CRYPT_DEFAULT_CONTEXT_FLAGS, pvreserved: Option<*const core::ffi::c_void>, phdefaultcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptInstallDefaultContext(hcryptprov : usize, dwdefaulttype : CRYPT_DEFAULT_CONTEXT_TYPE, pvdefaultpara : *const core::ffi::c_void, dwflags : CRYPT_DEFAULT_CONTEXT_FLAGS, pvreserved : *const core::ffi::c_void, phdefaultcontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptInstallDefaultContext(hcryptprov : usize, dwdefaulttype : CRYPT_DEFAULT_CONTEXT_TYPE, pvdefaultpara : *const core::ffi::c_void, dwflags : CRYPT_DEFAULT_CONTEXT_FLAGS, pvreserved : *const core::ffi::c_void, phdefaultcontext : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { CryptInstallDefaultContext(hcryptprov, dwdefaulttype, pvdefaultpara.unwrap_or(core::mem::zeroed()) as _, dwflags, pvreserved.unwrap_or(core::mem::zeroed()) as _, phdefaultcontext as _).ok() } } #[inline] -pub unsafe fn CryptInstallOIDFunctionAddress(hmodule: Option, dwencodingtype: u32, pszfuncname: P2, rgfuncentry: &[CRYPT_OID_FUNC_ENTRY], dwflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn CryptInstallOIDFunctionAddress(hmodule: Option, dwencodingtype: u32, pszfuncname: P2, rgfuncentry: &[CRYPT_OID_FUNC_ENTRY], dwflags: u32) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptInstallOIDFunctionAddress(hmodule : super::super::Foundation:: HMODULE, dwencodingtype : u32, pszfuncname : windows_core::PCSTR, cfuncentry : u32, rgfuncentry : *const CRYPT_OID_FUNC_ENTRY, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptInstallOIDFunctionAddress(hmodule : super::super::Foundation:: HMODULE, dwencodingtype : u32, pszfuncname : windows_core::PCSTR, cfuncentry : u32, rgfuncentry : *const CRYPT_OID_FUNC_ENTRY, dwflags : u32) -> windows_core::BOOL); unsafe { CryptInstallOIDFunctionAddress(hmodule.unwrap_or(core::mem::zeroed()) as _, dwencodingtype, pszfuncname.param().abi(), rgfuncentry.len().try_into().unwrap(), core::mem::transmute(rgfuncentry.as_ptr()), dwflags) } } #[inline] @@ -1584,22 +1584,22 @@ where } #[inline] pub unsafe fn CryptMsgClose(hcryptmsg: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptMsgClose(hcryptmsg : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptMsgClose(hcryptmsg : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CryptMsgClose(hcryptmsg.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CryptMsgControl(hcryptmsg: *const core::ffi::c_void, dwflags: u32, dwctrltype: u32, pvctrlpara: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptMsgControl(hcryptmsg : *const core::ffi::c_void, dwflags : u32, dwctrltype : u32, pvctrlpara : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptMsgControl(hcryptmsg : *const core::ffi::c_void, dwflags : u32, dwctrltype : u32, pvctrlpara : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CryptMsgControl(hcryptmsg, dwflags, dwctrltype, pvctrlpara.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CryptMsgCountersign(hcryptmsg: *const core::ffi::c_void, dwindex: u32, rgcountersigners: &[CMSG_SIGNER_ENCODE_INFO]) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptMsgCountersign(hcryptmsg : *const core::ffi::c_void, dwindex : u32, ccountersigners : u32, rgcountersigners : *const CMSG_SIGNER_ENCODE_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptMsgCountersign(hcryptmsg : *const core::ffi::c_void, dwindex : u32, ccountersigners : u32, rgcountersigners : *const CMSG_SIGNER_ENCODE_INFO) -> windows_core::BOOL); unsafe { CryptMsgCountersign(hcryptmsg, dwindex, rgcountersigners.len().try_into().unwrap(), core::mem::transmute(rgcountersigners.as_ptr())).ok() } } #[inline] pub unsafe fn CryptMsgCountersignEncoded(dwencodingtype: u32, pbsignerinfo: &[u8], rgcountersigners: &[CMSG_SIGNER_ENCODE_INFO], pbcountersignature: Option<*mut u8>, pcbcountersignature: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptMsgCountersignEncoded(dwencodingtype : u32, pbsignerinfo : *const u8, cbsignerinfo : u32, ccountersigners : u32, rgcountersigners : *const CMSG_SIGNER_ENCODE_INFO, pbcountersignature : *mut u8, pcbcountersignature : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptMsgCountersignEncoded(dwencodingtype : u32, pbsignerinfo : *const u8, cbsignerinfo : u32, ccountersigners : u32, rgcountersigners : *const CMSG_SIGNER_ENCODE_INFO, pbcountersignature : *mut u8, pcbcountersignature : *mut u32) -> windows_core::BOOL); unsafe { CryptMsgCountersignEncoded(dwencodingtype, core::mem::transmute(pbsignerinfo.as_ptr()), pbsignerinfo.len().try_into().unwrap(), rgcountersigners.len().try_into().unwrap(), core::mem::transmute(rgcountersigners.as_ptr()), pbcountersignature.unwrap_or(core::mem::zeroed()) as _, pcbcountersignature as _).ok() } } #[inline] @@ -1609,17 +1609,17 @@ pub unsafe fn CryptMsgDuplicate(hcryptmsg: Option<*const core::ffi::c_void>) -> } #[inline] pub unsafe fn CryptMsgEncodeAndSignCTL(dwmsgencodingtype: u32, pctlinfo: *const CTL_INFO, psigninfo: *const CMSG_SIGNED_ENCODE_INFO, dwflags: u32, pbencoded: Option<*mut u8>, pcbencoded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptMsgEncodeAndSignCTL(dwmsgencodingtype : u32, pctlinfo : *const CTL_INFO, psigninfo : *const CMSG_SIGNED_ENCODE_INFO, dwflags : u32, pbencoded : *mut u8, pcbencoded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptMsgEncodeAndSignCTL(dwmsgencodingtype : u32, pctlinfo : *const CTL_INFO, psigninfo : *const CMSG_SIGNED_ENCODE_INFO, dwflags : u32, pbencoded : *mut u8, pcbencoded : *mut u32) -> windows_core::BOOL); unsafe { CryptMsgEncodeAndSignCTL(dwmsgencodingtype, pctlinfo, psigninfo, dwflags, pbencoded.unwrap_or(core::mem::zeroed()) as _, pcbencoded as _).ok() } } #[inline] pub unsafe fn CryptMsgGetAndVerifySigner(hcryptmsg: *const core::ffi::c_void, rghsignerstore: Option<&[HCERTSTORE]>, dwflags: u32, ppsigner: Option<*mut *mut CERT_CONTEXT>, pdwsignerindex: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptMsgGetAndVerifySigner(hcryptmsg : *const core::ffi::c_void, csignerstore : u32, rghsignerstore : *const HCERTSTORE, dwflags : u32, ppsigner : *mut *mut CERT_CONTEXT, pdwsignerindex : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptMsgGetAndVerifySigner(hcryptmsg : *const core::ffi::c_void, csignerstore : u32, rghsignerstore : *const HCERTSTORE, dwflags : u32, ppsigner : *mut *mut CERT_CONTEXT, pdwsignerindex : *mut u32) -> windows_core::BOOL); unsafe { CryptMsgGetAndVerifySigner(hcryptmsg, rghsignerstore.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(rghsignerstore.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), dwflags, ppsigner.unwrap_or(core::mem::zeroed()) as _, pdwsignerindex.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CryptMsgGetParam(hcryptmsg: *const core::ffi::c_void, dwparamtype: u32, dwindex: u32, pvdata: Option<*mut core::ffi::c_void>, pcbdata: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptMsgGetParam(hcryptmsg : *const core::ffi::c_void, dwparamtype : u32, dwindex : u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptMsgGetParam(hcryptmsg : *const core::ffi::c_void, dwparamtype : u32, dwindex : u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32) -> windows_core::BOOL); unsafe { CryptMsgGetParam(hcryptmsg, dwparamtype, dwindex, pvdata.unwrap_or(core::mem::zeroed()) as _, pcbdata as _).ok() } } #[inline] @@ -1637,22 +1637,22 @@ where } #[inline] pub unsafe fn CryptMsgSignCTL(dwmsgencodingtype: u32, pbctlcontent: &[u8], psigninfo: *const CMSG_SIGNED_ENCODE_INFO, dwflags: u32, pbencoded: Option<*mut u8>, pcbencoded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptMsgSignCTL(dwmsgencodingtype : u32, pbctlcontent : *const u8, cbctlcontent : u32, psigninfo : *const CMSG_SIGNED_ENCODE_INFO, dwflags : u32, pbencoded : *mut u8, pcbencoded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptMsgSignCTL(dwmsgencodingtype : u32, pbctlcontent : *const u8, cbctlcontent : u32, psigninfo : *const CMSG_SIGNED_ENCODE_INFO, dwflags : u32, pbencoded : *mut u8, pcbencoded : *mut u32) -> windows_core::BOOL); unsafe { CryptMsgSignCTL(dwmsgencodingtype, core::mem::transmute(pbctlcontent.as_ptr()), pbctlcontent.len().try_into().unwrap(), psigninfo, dwflags, pbencoded.unwrap_or(core::mem::zeroed()) as _, pcbencoded as _).ok() } } #[inline] pub unsafe fn CryptMsgUpdate(hcryptmsg: *const core::ffi::c_void, pbdata: Option<&[u8]>, ffinal: bool) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptMsgUpdate(hcryptmsg : *const core::ffi::c_void, pbdata : *const u8, cbdata : u32, ffinal : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptMsgUpdate(hcryptmsg : *const core::ffi::c_void, pbdata : *const u8, cbdata : u32, ffinal : windows_core::BOOL) -> windows_core::BOOL); unsafe { CryptMsgUpdate(hcryptmsg, core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ffinal.into()).ok() } } #[inline] pub unsafe fn CryptMsgVerifyCountersignatureEncoded(hcryptprov: Option, dwencodingtype: u32, pbsignerinfo: &[u8], pbsignerinfocountersignature: &[u8], pcicountersigner: *const CERT_INFO) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptMsgVerifyCountersignatureEncoded(hcryptprov : HCRYPTPROV_LEGACY, dwencodingtype : u32, pbsignerinfo : *const u8, cbsignerinfo : u32, pbsignerinfocountersignature : *const u8, cbsignerinfocountersignature : u32, pcicountersigner : *const CERT_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptMsgVerifyCountersignatureEncoded(hcryptprov : HCRYPTPROV_LEGACY, dwencodingtype : u32, pbsignerinfo : *const u8, cbsignerinfo : u32, pbsignerinfocountersignature : *const u8, cbsignerinfocountersignature : u32, pcicountersigner : *const CERT_INFO) -> windows_core::BOOL); unsafe { CryptMsgVerifyCountersignatureEncoded(hcryptprov.unwrap_or(core::mem::zeroed()) as _, dwencodingtype, core::mem::transmute(pbsignerinfo.as_ptr()), pbsignerinfo.len().try_into().unwrap(), core::mem::transmute(pbsignerinfocountersignature.as_ptr()), pbsignerinfocountersignature.len().try_into().unwrap(), pcicountersigner).ok() } } #[inline] pub unsafe fn CryptMsgVerifyCountersignatureEncodedEx(hcryptprov: Option, dwencodingtype: u32, pbsignerinfo: &[u8], pbsignerinfocountersignature: &[u8], dwsignertype: u32, pvsigner: *const core::ffi::c_void, dwflags: u32, pvextra: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptMsgVerifyCountersignatureEncodedEx(hcryptprov : HCRYPTPROV_LEGACY, dwencodingtype : u32, pbsignerinfo : *const u8, cbsignerinfo : u32, pbsignerinfocountersignature : *const u8, cbsignerinfocountersignature : u32, dwsignertype : u32, pvsigner : *const core::ffi::c_void, dwflags : u32, pvextra : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptMsgVerifyCountersignatureEncodedEx(hcryptprov : HCRYPTPROV_LEGACY, dwencodingtype : u32, pbsignerinfo : *const u8, cbsignerinfo : u32, pbsignerinfocountersignature : *const u8, cbsignerinfocountersignature : u32, dwsignertype : u32, pvsigner : *const core::ffi::c_void, dwflags : u32, pvextra : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { CryptMsgVerifyCountersignatureEncodedEx(hcryptprov.unwrap_or(core::mem::zeroed()) as _, dwencodingtype, core::mem::transmute(pbsignerinfo.as_ptr()), pbsignerinfo.len().try_into().unwrap(), core::mem::transmute(pbsignerinfocountersignature.as_ptr()), pbsignerinfocountersignature.len().try_into().unwrap(), dwsignertype, pvsigner, dwflags, pvextra.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1660,65 +1660,65 @@ pub unsafe fn CryptProtectData(pdatain: *const CRYPT_INTEGER_BLOB, szdatades where P1: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptProtectData(pdatain : *const CRYPT_INTEGER_BLOB, szdatadescr : windows_core::PCWSTR, poptionalentropy : *const CRYPT_INTEGER_BLOB, pvreserved : *const core::ffi::c_void, ppromptstruct : *const CRYPTPROTECT_PROMPTSTRUCT, dwflags : u32, pdataout : *mut CRYPT_INTEGER_BLOB) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptProtectData(pdatain : *const CRYPT_INTEGER_BLOB, szdatadescr : windows_core::PCWSTR, poptionalentropy : *const CRYPT_INTEGER_BLOB, pvreserved : *const core::ffi::c_void, ppromptstruct : *const CRYPTPROTECT_PROMPTSTRUCT, dwflags : u32, pdataout : *mut CRYPT_INTEGER_BLOB) -> windows_core::BOOL); unsafe { CryptProtectData(pdatain, szdatadescr.param().abi(), poptionalentropy.unwrap_or(core::mem::zeroed()) as _, pvreserved.unwrap_or(core::mem::zeroed()) as _, ppromptstruct.unwrap_or(core::mem::zeroed()) as _, dwflags, pdataout as _).ok() } } #[inline] pub unsafe fn CryptProtectMemory(pdatain: *mut core::ffi::c_void, cbdatain: u32, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptProtectMemory(pdatain : *mut core::ffi::c_void, cbdatain : u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptProtectMemory(pdatain : *mut core::ffi::c_void, cbdatain : u32, dwflags : u32) -> windows_core::BOOL); unsafe { CryptProtectMemory(pdatain as _, cbdatain, dwflags).ok() } } #[inline] pub unsafe fn CryptQueryObject(dwobjecttype: CERT_QUERY_OBJECT_TYPE, pvobject: *const core::ffi::c_void, dwexpectedcontenttypeflags: CERT_QUERY_CONTENT_TYPE_FLAGS, dwexpectedformattypeflags: CERT_QUERY_FORMAT_TYPE_FLAGS, dwflags: u32, pdwmsgandcertencodingtype: Option<*mut CERT_QUERY_ENCODING_TYPE>, pdwcontenttype: Option<*mut CERT_QUERY_CONTENT_TYPE>, pdwformattype: Option<*mut CERT_QUERY_FORMAT_TYPE>, phcertstore: Option<*mut HCERTSTORE>, phmsg: Option<*mut *mut core::ffi::c_void>, ppvcontext: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptQueryObject(dwobjecttype : CERT_QUERY_OBJECT_TYPE, pvobject : *const core::ffi::c_void, dwexpectedcontenttypeflags : CERT_QUERY_CONTENT_TYPE_FLAGS, dwexpectedformattypeflags : CERT_QUERY_FORMAT_TYPE_FLAGS, dwflags : u32, pdwmsgandcertencodingtype : *mut CERT_QUERY_ENCODING_TYPE, pdwcontenttype : *mut CERT_QUERY_CONTENT_TYPE, pdwformattype : *mut CERT_QUERY_FORMAT_TYPE, phcertstore : *mut HCERTSTORE, phmsg : *mut *mut core::ffi::c_void, ppvcontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptQueryObject(dwobjecttype : CERT_QUERY_OBJECT_TYPE, pvobject : *const core::ffi::c_void, dwexpectedcontenttypeflags : CERT_QUERY_CONTENT_TYPE_FLAGS, dwexpectedformattypeflags : CERT_QUERY_FORMAT_TYPE_FLAGS, dwflags : u32, pdwmsgandcertencodingtype : *mut CERT_QUERY_ENCODING_TYPE, pdwcontenttype : *mut CERT_QUERY_CONTENT_TYPE, pdwformattype : *mut CERT_QUERY_FORMAT_TYPE, phcertstore : *mut HCERTSTORE, phmsg : *mut *mut core::ffi::c_void, ppvcontext : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { CryptQueryObject(dwobjecttype, pvobject, dwexpectedcontenttypeflags, dwexpectedformattypeflags, dwflags, pdwmsgandcertencodingtype.unwrap_or(core::mem::zeroed()) as _, pdwcontenttype.unwrap_or(core::mem::zeroed()) as _, pdwformattype.unwrap_or(core::mem::zeroed()) as _, phcertstore.unwrap_or(core::mem::zeroed()) as _, phmsg.unwrap_or(core::mem::zeroed()) as _, ppvcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn CryptRegisterDefaultOIDFunction(dwencodingtype: u32, pszfuncname: P1, dwindex: u32, pwszdll: P3) -> super::super::Foundation::BOOL +pub unsafe fn CryptRegisterDefaultOIDFunction(dwencodingtype: u32, pszfuncname: P1, dwindex: u32, pwszdll: P3) -> windows_core::BOOL where P1: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptRegisterDefaultOIDFunction(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, dwindex : u32, pwszdll : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptRegisterDefaultOIDFunction(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, dwindex : u32, pwszdll : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { CryptRegisterDefaultOIDFunction(dwencodingtype, pszfuncname.param().abi(), dwindex, pwszdll.param().abi()) } } #[inline] -pub unsafe fn CryptRegisterOIDFunction(dwencodingtype: u32, pszfuncname: P1, pszoid: P2, pwszdll: P3, pszoverridefuncname: P4) -> super::super::Foundation::BOOL +pub unsafe fn CryptRegisterOIDFunction(dwencodingtype: u32, pszfuncname: P1, pszoid: P2, pwszdll: P3, pszoverridefuncname: P4) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptRegisterOIDFunction(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, pszoid : windows_core::PCSTR, pwszdll : windows_core::PCWSTR, pszoverridefuncname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptRegisterOIDFunction(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, pszoid : windows_core::PCSTR, pwszdll : windows_core::PCWSTR, pszoverridefuncname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { CryptRegisterOIDFunction(dwencodingtype, pszfuncname.param().abi(), pszoid.param().abi(), pwszdll.param().abi(), pszoverridefuncname.param().abi()) } } #[inline] -pub unsafe fn CryptRegisterOIDInfo(pinfo: *const CRYPT_OID_INFO, dwflags: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CryptRegisterOIDInfo(pinfo : *const CRYPT_OID_INFO, dwflags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn CryptRegisterOIDInfo(pinfo: *const CRYPT_OID_INFO, dwflags: u32) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CryptRegisterOIDInfo(pinfo : *const CRYPT_OID_INFO, dwflags : u32) -> windows_core::BOOL); unsafe { CryptRegisterOIDInfo(pinfo, dwflags) } } #[inline] pub unsafe fn CryptReleaseContext(hprov: usize, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptReleaseContext(hprov : usize, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptReleaseContext(hprov : usize, dwflags : u32) -> windows_core::BOOL); unsafe { CryptReleaseContext(hprov, dwflags).ok() } } #[inline] -pub unsafe fn CryptRetrieveObjectByUrlA(pszurl: P0, pszobjectoid: P1, dwretrievalflags: u32, dwtimeout: u32, ppvobject: *mut *mut core::ffi::c_void, hasyncretrieve: Option, pcredentials: Option<*const CRYPT_CREDENTIALS>, pvverify: Option<*const core::ffi::c_void>, pauxinfo: Option<*mut CRYPT_RETRIEVE_AUX_INFO>) -> super::super::Foundation::BOOL +pub unsafe fn CryptRetrieveObjectByUrlA(pszurl: P0, pszobjectoid: P1, dwretrievalflags: u32, dwtimeout: u32, ppvobject: *mut *mut core::ffi::c_void, hasyncretrieve: Option, pcredentials: Option<*const CRYPT_CREDENTIALS>, pvverify: Option<*const core::ffi::c_void>, pauxinfo: Option<*mut CRYPT_RETRIEVE_AUX_INFO>) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("cryptnet.dll" "system" fn CryptRetrieveObjectByUrlA(pszurl : windows_core::PCSTR, pszobjectoid : windows_core::PCSTR, dwretrievalflags : u32, dwtimeout : u32, ppvobject : *mut *mut core::ffi::c_void, hasyncretrieve : HCRYPTASYNC, pcredentials : *const CRYPT_CREDENTIALS, pvverify : *const core::ffi::c_void, pauxinfo : *mut CRYPT_RETRIEVE_AUX_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("cryptnet.dll" "system" fn CryptRetrieveObjectByUrlA(pszurl : windows_core::PCSTR, pszobjectoid : windows_core::PCSTR, dwretrievalflags : u32, dwtimeout : u32, ppvobject : *mut *mut core::ffi::c_void, hasyncretrieve : HCRYPTASYNC, pcredentials : *const CRYPT_CREDENTIALS, pvverify : *const core::ffi::c_void, pauxinfo : *mut CRYPT_RETRIEVE_AUX_INFO) -> windows_core::BOOL); unsafe { CryptRetrieveObjectByUrlA(pszurl.param().abi(), pszobjectoid.param().abi(), dwretrievalflags, dwtimeout, ppvobject as _, hasyncretrieve.unwrap_or(core::mem::zeroed()) as _, pcredentials.unwrap_or(core::mem::zeroed()) as _, pvverify.unwrap_or(core::mem::zeroed()) as _, pauxinfo.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn CryptRetrieveObjectByUrlW(pszurl: P0, pszobjectoid: P1, dwretrievalflags: u32, dwtimeout: u32, ppvobject: *mut *mut core::ffi::c_void, hasyncretrieve: Option, pcredentials: Option<*const CRYPT_CREDENTIALS>, pvverify: Option<*const core::ffi::c_void>, pauxinfo: Option<*mut CRYPT_RETRIEVE_AUX_INFO>) -> super::super::Foundation::BOOL +pub unsafe fn CryptRetrieveObjectByUrlW(pszurl: P0, pszobjectoid: P1, dwretrievalflags: u32, dwtimeout: u32, ppvobject: *mut *mut core::ffi::c_void, hasyncretrieve: Option, pcredentials: Option<*const CRYPT_CREDENTIALS>, pvverify: Option<*const core::ffi::c_void>, pauxinfo: Option<*mut CRYPT_RETRIEVE_AUX_INFO>) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("cryptnet.dll" "system" fn CryptRetrieveObjectByUrlW(pszurl : windows_core::PCWSTR, pszobjectoid : windows_core::PCSTR, dwretrievalflags : u32, dwtimeout : u32, ppvobject : *mut *mut core::ffi::c_void, hasyncretrieve : HCRYPTASYNC, pcredentials : *const CRYPT_CREDENTIALS, pvverify : *const core::ffi::c_void, pauxinfo : *mut CRYPT_RETRIEVE_AUX_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("cryptnet.dll" "system" fn CryptRetrieveObjectByUrlW(pszurl : windows_core::PCWSTR, pszobjectoid : windows_core::PCSTR, dwretrievalflags : u32, dwtimeout : u32, ppvobject : *mut *mut core::ffi::c_void, hasyncretrieve : HCRYPTASYNC, pcredentials : *const CRYPT_CREDENTIALS, pvverify : *const core::ffi::c_void, pauxinfo : *mut CRYPT_RETRIEVE_AUX_INFO) -> windows_core::BOOL); unsafe { CryptRetrieveObjectByUrlW(pszurl.param().abi(), pszobjectoid.param().abi(), dwretrievalflags, dwtimeout, ppvobject as _, hasyncretrieve.unwrap_or(core::mem::zeroed()) as _, pcredentials.unwrap_or(core::mem::zeroed()) as _, pvverify.unwrap_or(core::mem::zeroed()) as _, pauxinfo.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1727,20 +1727,20 @@ where P0: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptRetrieveTimeStamp(wszurl : windows_core::PCWSTR, dwretrievalflags : u32, dwtimeout : u32, pszhashid : windows_core::PCSTR, ppara : *const CRYPT_TIMESTAMP_PARA, pbdata : *const u8, cbdata : u32, pptscontext : *mut *mut CRYPT_TIMESTAMP_CONTEXT, pptssigner : *mut *mut CERT_CONTEXT, phstore : *mut HCERTSTORE) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptRetrieveTimeStamp(wszurl : windows_core::PCWSTR, dwretrievalflags : u32, dwtimeout : u32, pszhashid : windows_core::PCSTR, ppara : *const CRYPT_TIMESTAMP_PARA, pbdata : *const u8, cbdata : u32, pptscontext : *mut *mut CRYPT_TIMESTAMP_CONTEXT, pptssigner : *mut *mut CERT_CONTEXT, phstore : *mut HCERTSTORE) -> windows_core::BOOL); unsafe { CryptRetrieveTimeStamp(wszurl.param().abi(), dwretrievalflags, dwtimeout, pszhashid.param().abi(), ppara.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), pptscontext as _, pptssigner as _, phstore.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn CryptSetAsyncParam(hasync: HCRYPTASYNC, pszparamoid: P1, pvparam: Option<*const core::ffi::c_void>, pfnfree: PFN_CRYPT_ASYNC_PARAM_FREE_FUNC) -> super::super::Foundation::BOOL +pub unsafe fn CryptSetAsyncParam(hasync: HCRYPTASYNC, pszparamoid: P1, pvparam: Option<*const core::ffi::c_void>, pfnfree: PFN_CRYPT_ASYNC_PARAM_FREE_FUNC) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptSetAsyncParam(hasync : HCRYPTASYNC, pszparamoid : windows_core::PCSTR, pvparam : *const core::ffi::c_void, pfnfree : PFN_CRYPT_ASYNC_PARAM_FREE_FUNC) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptSetAsyncParam(hasync : HCRYPTASYNC, pszparamoid : windows_core::PCSTR, pvparam : *const core::ffi::c_void, pfnfree : PFN_CRYPT_ASYNC_PARAM_FREE_FUNC) -> windows_core::BOOL); unsafe { CryptSetAsyncParam(hasync, pszparamoid.param().abi(), pvparam.unwrap_or(core::mem::zeroed()) as _, pfnfree) } } #[inline] pub unsafe fn CryptSetHashParam(hhash: usize, dwparam: CRYPT_SET_HASH_PARAM, pbdata: *const u8, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptSetHashParam(hhash : usize, dwparam : CRYPT_SET_HASH_PARAM, pbdata : *const u8, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptSetHashParam(hhash : usize, dwparam : CRYPT_SET_HASH_PARAM, pbdata : *const u8, dwflags : u32) -> windows_core::BOOL); unsafe { CryptSetHashParam(hhash, dwparam, pbdata, dwflags).ok() } } #[inline] @@ -1748,28 +1748,28 @@ pub unsafe fn CryptSetKeyIdentifierProperty(pkeyidentifier: *const CRYPT_INT where P3: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptSetKeyIdentifierProperty(pkeyidentifier : *const CRYPT_INTEGER_BLOB, dwpropid : u32, dwflags : u32, pwszcomputername : windows_core::PCWSTR, pvreserved : *const core::ffi::c_void, pvdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptSetKeyIdentifierProperty(pkeyidentifier : *const CRYPT_INTEGER_BLOB, dwpropid : u32, dwflags : u32, pwszcomputername : windows_core::PCWSTR, pvreserved : *const core::ffi::c_void, pvdata : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CryptSetKeyIdentifierProperty(pkeyidentifier, dwpropid, dwflags, pwszcomputername.param().abi(), pvreserved.unwrap_or(core::mem::zeroed()) as _, pvdata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CryptSetKeyParam(hkey: usize, dwparam: CRYPT_KEY_PARAM_ID, pbdata: *const u8, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptSetKeyParam(hkey : usize, dwparam : CRYPT_KEY_PARAM_ID, pbdata : *const u8, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptSetKeyParam(hkey : usize, dwparam : CRYPT_KEY_PARAM_ID, pbdata : *const u8, dwflags : u32) -> windows_core::BOOL); unsafe { CryptSetKeyParam(hkey, dwparam, pbdata, dwflags).ok() } } #[cfg(feature = "Win32_System_Registry")] #[inline] -pub unsafe fn CryptSetOIDFunctionValue(dwencodingtype: u32, pszfuncname: P1, pszoid: P2, pwszvaluename: P3, dwvaluetype: super::super::System::Registry::REG_VALUE_TYPE, pbvaluedata: Option<&[u8]>) -> super::super::Foundation::BOOL +pub unsafe fn CryptSetOIDFunctionValue(dwencodingtype: u32, pszfuncname: P1, pszoid: P2, pwszvaluename: P3, dwvaluetype: super::super::System::Registry::REG_VALUE_TYPE, pbvaluedata: Option<&[u8]>) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptSetOIDFunctionValue(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, pszoid : windows_core::PCSTR, pwszvaluename : windows_core::PCWSTR, dwvaluetype : super::super::System::Registry:: REG_VALUE_TYPE, pbvaluedata : *const u8, cbvaluedata : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptSetOIDFunctionValue(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, pszoid : windows_core::PCSTR, pwszvaluename : windows_core::PCWSTR, dwvaluetype : super::super::System::Registry:: REG_VALUE_TYPE, pbvaluedata : *const u8, cbvaluedata : u32) -> windows_core::BOOL); unsafe { CryptSetOIDFunctionValue(dwencodingtype, pszfuncname.param().abi(), pszoid.param().abi(), pwszvaluename.param().abi(), dwvaluetype, core::mem::transmute(pbvaluedata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbvaluedata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } } #[inline] pub unsafe fn CryptSetProvParam(hprov: usize, dwparam: CRYPT_SET_PROV_PARAM_ID, pbdata: *const u8, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CryptSetProvParam(hprov : usize, dwparam : CRYPT_SET_PROV_PARAM_ID, pbdata : *const u8, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptSetProvParam(hprov : usize, dwparam : CRYPT_SET_PROV_PARAM_ID, pbdata : *const u8, dwflags : u32) -> windows_core::BOOL); unsafe { CryptSetProvParam(hprov, dwparam, pbdata, dwflags).ok() } } #[inline] @@ -1777,7 +1777,7 @@ pub unsafe fn CryptSetProviderA(pszprovname: P0, dwprovtype: u32) -> windows where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CryptSetProviderA(pszprovname : windows_core::PCSTR, dwprovtype : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptSetProviderA(pszprovname : windows_core::PCSTR, dwprovtype : u32) -> windows_core::BOOL); unsafe { CryptSetProviderA(pszprovname.param().abi(), dwprovtype).ok() } } #[inline] @@ -1785,7 +1785,7 @@ pub unsafe fn CryptSetProviderExA(pszprovname: P0, dwprovtype: u32, pdwreser where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CryptSetProviderExA(pszprovname : windows_core::PCSTR, dwprovtype : u32, pdwreserved : *const u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptSetProviderExA(pszprovname : windows_core::PCSTR, dwprovtype : u32, pdwreserved : *const u32, dwflags : u32) -> windows_core::BOOL); unsafe { CryptSetProviderExA(pszprovname.param().abi(), dwprovtype, pdwreserved.unwrap_or(core::mem::zeroed()) as _, dwflags).ok() } } #[inline] @@ -1793,7 +1793,7 @@ pub unsafe fn CryptSetProviderExW(pszprovname: P0, dwprovtype: u32, pdwreser where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CryptSetProviderExW(pszprovname : windows_core::PCWSTR, dwprovtype : u32, pdwreserved : *const u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptSetProviderExW(pszprovname : windows_core::PCWSTR, dwprovtype : u32, pdwreserved : *const u32, dwflags : u32) -> windows_core::BOOL); unsafe { CryptSetProviderExW(pszprovname.param().abi(), dwprovtype, pdwreserved.unwrap_or(core::mem::zeroed()) as _, dwflags).ok() } } #[inline] @@ -1801,7 +1801,7 @@ pub unsafe fn CryptSetProviderW(pszprovname: P0, dwprovtype: u32) -> windows where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CryptSetProviderW(pszprovname : windows_core::PCWSTR, dwprovtype : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptSetProviderW(pszprovname : windows_core::PCWSTR, dwprovtype : u32) -> windows_core::BOOL); unsafe { CryptSetProviderW(pszprovname.param().abi(), dwprovtype).ok() } } #[inline] @@ -1809,17 +1809,17 @@ pub unsafe fn CryptSignAndEncodeCertificate(hcryptprovorncryptkey: Option, { - windows_targets::link!("crypt32.dll" "system" fn CryptSignAndEncodeCertificate(hcryptprovorncryptkey : HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, dwkeyspec : CERT_KEY_SPEC, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, lpszstructtype : windows_core::PCSTR, pvstructinfo : *const core::ffi::c_void, psignaturealgorithm : *const CRYPT_ALGORITHM_IDENTIFIER, pvhashauxinfo : *const core::ffi::c_void, pbencoded : *mut u8, pcbencoded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptSignAndEncodeCertificate(hcryptprovorncryptkey : HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, dwkeyspec : CERT_KEY_SPEC, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, lpszstructtype : windows_core::PCSTR, pvstructinfo : *const core::ffi::c_void, psignaturealgorithm : *const CRYPT_ALGORITHM_IDENTIFIER, pvhashauxinfo : *const core::ffi::c_void, pbencoded : *mut u8, pcbencoded : *mut u32) -> windows_core::BOOL); unsafe { CryptSignAndEncodeCertificate(hcryptprovorncryptkey.unwrap_or(core::mem::zeroed()) as _, dwkeyspec.unwrap_or(core::mem::zeroed()) as _, dwcertencodingtype, lpszstructtype.param().abi(), pvstructinfo, psignaturealgorithm, pvhashauxinfo.unwrap_or(core::mem::zeroed()) as _, pbencoded.unwrap_or(core::mem::zeroed()) as _, pcbencoded as _).ok() } } #[inline] pub unsafe fn CryptSignAndEncryptMessage(psignpara: *const CRYPT_SIGN_MESSAGE_PARA, pencryptpara: *const CRYPT_ENCRYPT_MESSAGE_PARA, rgprecipientcert: &[*const CERT_CONTEXT], pbtobesignedandencrypted: &[u8], pbsignedandencryptedblob: Option<*mut u8>, pcbsignedandencryptedblob: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptSignAndEncryptMessage(psignpara : *const CRYPT_SIGN_MESSAGE_PARA, pencryptpara : *const CRYPT_ENCRYPT_MESSAGE_PARA, crecipientcert : u32, rgprecipientcert : *const *const CERT_CONTEXT, pbtobesignedandencrypted : *const u8, cbtobesignedandencrypted : u32, pbsignedandencryptedblob : *mut u8, pcbsignedandencryptedblob : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptSignAndEncryptMessage(psignpara : *const CRYPT_SIGN_MESSAGE_PARA, pencryptpara : *const CRYPT_ENCRYPT_MESSAGE_PARA, crecipientcert : u32, rgprecipientcert : *const *const CERT_CONTEXT, pbtobesignedandencrypted : *const u8, cbtobesignedandencrypted : u32, pbsignedandencryptedblob : *mut u8, pcbsignedandencryptedblob : *mut u32) -> windows_core::BOOL); unsafe { CryptSignAndEncryptMessage(psignpara, pencryptpara, rgprecipientcert.len().try_into().unwrap(), core::mem::transmute(rgprecipientcert.as_ptr()), core::mem::transmute(pbtobesignedandencrypted.as_ptr()), pbtobesignedandencrypted.len().try_into().unwrap(), pbsignedandencryptedblob.unwrap_or(core::mem::zeroed()) as _, pcbsignedandencryptedblob as _).ok() } } #[inline] pub unsafe fn CryptSignCertificate(hcryptprovorncryptkey: Option, dwkeyspec: Option, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbencodedtobesigned: &[u8], psignaturealgorithm: *const CRYPT_ALGORITHM_IDENTIFIER, pvhashauxinfo: Option<*const core::ffi::c_void>, pbsignature: Option<*mut u8>, pcbsignature: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptSignCertificate(hcryptprovorncryptkey : HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, dwkeyspec : u32, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbencodedtobesigned : *const u8, cbencodedtobesigned : u32, psignaturealgorithm : *const CRYPT_ALGORITHM_IDENTIFIER, pvhashauxinfo : *const core::ffi::c_void, pbsignature : *mut u8, pcbsignature : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptSignCertificate(hcryptprovorncryptkey : HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, dwkeyspec : u32, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbencodedtobesigned : *const u8, cbencodedtobesigned : u32, psignaturealgorithm : *const CRYPT_ALGORITHM_IDENTIFIER, pvhashauxinfo : *const core::ffi::c_void, pbsignature : *mut u8, pcbsignature : *mut u32) -> windows_core::BOOL); unsafe { CryptSignCertificate(hcryptprovorncryptkey.unwrap_or(core::mem::zeroed()) as _, dwkeyspec.unwrap_or(core::mem::zeroed()) as _, dwcertencodingtype, core::mem::transmute(pbencodedtobesigned.as_ptr()), pbencodedtobesigned.len().try_into().unwrap(), psignaturealgorithm, pvhashauxinfo.unwrap_or(core::mem::zeroed()) as _, pbsignature.unwrap_or(core::mem::zeroed()) as _, pcbsignature as _).ok() } } #[inline] @@ -1827,7 +1827,7 @@ pub unsafe fn CryptSignHashA(hhash: usize, dwkeyspec: u32, szdescription: P2 where P2: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CryptSignHashA(hhash : usize, dwkeyspec : u32, szdescription : windows_core::PCSTR, dwflags : u32, pbsignature : *mut u8, pdwsiglen : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptSignHashA(hhash : usize, dwkeyspec : u32, szdescription : windows_core::PCSTR, dwflags : u32, pbsignature : *mut u8, pdwsiglen : *mut u32) -> windows_core::BOOL); unsafe { CryptSignHashA(hhash, dwkeyspec, szdescription.param().abi(), dwflags, pbsignature.unwrap_or(core::mem::zeroed()) as _, pdwsiglen as _).ok() } } #[inline] @@ -1835,70 +1835,70 @@ pub unsafe fn CryptSignHashW(hhash: usize, dwkeyspec: u32, szdescription: P2 where P2: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CryptSignHashW(hhash : usize, dwkeyspec : u32, szdescription : windows_core::PCWSTR, dwflags : u32, pbsignature : *mut u8, pdwsiglen : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptSignHashW(hhash : usize, dwkeyspec : u32, szdescription : windows_core::PCWSTR, dwflags : u32, pbsignature : *mut u8, pdwsiglen : *mut u32) -> windows_core::BOOL); unsafe { CryptSignHashW(hhash, dwkeyspec, szdescription.param().abi(), dwflags, pbsignature.unwrap_or(core::mem::zeroed()) as _, pdwsiglen as _).ok() } } #[inline] pub unsafe fn CryptSignMessage(psignpara: *const CRYPT_SIGN_MESSAGE_PARA, fdetachedsignature: bool, ctobesigned: u32, rgpbtobesigned: Option<*const *const u8>, rgcbtobesigned: *const u32, pbsignedblob: Option<*mut u8>, pcbsignedblob: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptSignMessage(psignpara : *const CRYPT_SIGN_MESSAGE_PARA, fdetachedsignature : super::super::Foundation:: BOOL, ctobesigned : u32, rgpbtobesigned : *const *const u8, rgcbtobesigned : *const u32, pbsignedblob : *mut u8, pcbsignedblob : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptSignMessage(psignpara : *const CRYPT_SIGN_MESSAGE_PARA, fdetachedsignature : windows_core::BOOL, ctobesigned : u32, rgpbtobesigned : *const *const u8, rgcbtobesigned : *const u32, pbsignedblob : *mut u8, pcbsignedblob : *mut u32) -> windows_core::BOOL); unsafe { CryptSignMessage(psignpara, fdetachedsignature.into(), ctobesigned, rgpbtobesigned.unwrap_or(core::mem::zeroed()) as _, rgcbtobesigned, pbsignedblob.unwrap_or(core::mem::zeroed()) as _, pcbsignedblob as _).ok() } } #[inline] pub unsafe fn CryptSignMessageWithKey(psignpara: *const CRYPT_KEY_SIGN_MESSAGE_PARA, pbtobesigned: &[u8], pbsignedblob: Option<*mut u8>, pcbsignedblob: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptSignMessageWithKey(psignpara : *const CRYPT_KEY_SIGN_MESSAGE_PARA, pbtobesigned : *const u8, cbtobesigned : u32, pbsignedblob : *mut u8, pcbsignedblob : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptSignMessageWithKey(psignpara : *const CRYPT_KEY_SIGN_MESSAGE_PARA, pbtobesigned : *const u8, cbtobesigned : u32, pbsignedblob : *mut u8, pcbsignedblob : *mut u32) -> windows_core::BOOL); unsafe { CryptSignMessageWithKey(psignpara, core::mem::transmute(pbtobesigned.as_ptr()), pbtobesigned.len().try_into().unwrap(), pbsignedblob.unwrap_or(core::mem::zeroed()) as _, pcbsignedblob as _).ok() } } #[inline] pub unsafe fn CryptStringToBinaryA(pszstring: &[u8], dwflags: CRYPT_STRING, pbbinary: Option<*mut u8>, pcbbinary: *mut u32, pdwskip: Option<*mut u32>, pdwflags: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptStringToBinaryA(pszstring : windows_core::PCSTR, cchstring : u32, dwflags : CRYPT_STRING, pbbinary : *mut u8, pcbbinary : *mut u32, pdwskip : *mut u32, pdwflags : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptStringToBinaryA(pszstring : windows_core::PCSTR, cchstring : u32, dwflags : CRYPT_STRING, pbbinary : *mut u8, pcbbinary : *mut u32, pdwskip : *mut u32, pdwflags : *mut u32) -> windows_core::BOOL); unsafe { CryptStringToBinaryA(core::mem::transmute(pszstring.as_ptr()), pszstring.len().try_into().unwrap(), dwflags, pbbinary.unwrap_or(core::mem::zeroed()) as _, pcbbinary as _, pdwskip.unwrap_or(core::mem::zeroed()) as _, pdwflags.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CryptStringToBinaryW(pszstring: &[u16], dwflags: CRYPT_STRING, pbbinary: Option<*mut u8>, pcbbinary: *mut u32, pdwskip: Option<*mut u32>, pdwflags: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptStringToBinaryW(pszstring : windows_core::PCWSTR, cchstring : u32, dwflags : CRYPT_STRING, pbbinary : *mut u8, pcbbinary : *mut u32, pdwskip : *mut u32, pdwflags : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptStringToBinaryW(pszstring : windows_core::PCWSTR, cchstring : u32, dwflags : CRYPT_STRING, pbbinary : *mut u8, pcbbinary : *mut u32, pdwskip : *mut u32, pdwflags : *mut u32) -> windows_core::BOOL); unsafe { CryptStringToBinaryW(core::mem::transmute(pszstring.as_ptr()), pszstring.len().try_into().unwrap(), dwflags, pbbinary.unwrap_or(core::mem::zeroed()) as _, pcbbinary as _, pdwskip.unwrap_or(core::mem::zeroed()) as _, pdwflags.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn CryptUninstallCancelRetrieval(dwflags: u32, pvreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { - windows_targets::link!("cryptnet.dll" "system" fn CryptUninstallCancelRetrieval(dwflags : u32, pvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn CryptUninstallCancelRetrieval(dwflags: u32, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("cryptnet.dll" "system" fn CryptUninstallCancelRetrieval(dwflags : u32, pvreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CryptUninstallCancelRetrieval(dwflags, pvreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] pub unsafe fn CryptUninstallDefaultContext(hdefaultcontext: Option<*const core::ffi::c_void>, dwflags: u32, pvreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptUninstallDefaultContext(hdefaultcontext : *const core::ffi::c_void, dwflags : u32, pvreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptUninstallDefaultContext(hdefaultcontext : *const core::ffi::c_void, dwflags : u32, pvreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CryptUninstallDefaultContext(hdefaultcontext.unwrap_or(core::mem::zeroed()) as _, dwflags, pvreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CryptUnprotectData(pdatain: *const CRYPT_INTEGER_BLOB, ppszdatadescr: Option<*mut windows_core::PWSTR>, poptionalentropy: Option<*const CRYPT_INTEGER_BLOB>, pvreserved: Option<*const core::ffi::c_void>, ppromptstruct: Option<*const CRYPTPROTECT_PROMPTSTRUCT>, dwflags: u32, pdataout: *mut CRYPT_INTEGER_BLOB) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptUnprotectData(pdatain : *const CRYPT_INTEGER_BLOB, ppszdatadescr : *mut windows_core::PWSTR, poptionalentropy : *const CRYPT_INTEGER_BLOB, pvreserved : *const core::ffi::c_void, ppromptstruct : *const CRYPTPROTECT_PROMPTSTRUCT, dwflags : u32, pdataout : *mut CRYPT_INTEGER_BLOB) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptUnprotectData(pdatain : *const CRYPT_INTEGER_BLOB, ppszdatadescr : *mut windows_core::PWSTR, poptionalentropy : *const CRYPT_INTEGER_BLOB, pvreserved : *const core::ffi::c_void, ppromptstruct : *const CRYPTPROTECT_PROMPTSTRUCT, dwflags : u32, pdataout : *mut CRYPT_INTEGER_BLOB) -> windows_core::BOOL); unsafe { CryptUnprotectData(pdatain, ppszdatadescr.unwrap_or(core::mem::zeroed()) as _, poptionalentropy.unwrap_or(core::mem::zeroed()) as _, pvreserved.unwrap_or(core::mem::zeroed()) as _, ppromptstruct.unwrap_or(core::mem::zeroed()) as _, dwflags, pdataout as _).ok() } } #[inline] pub unsafe fn CryptUnprotectMemory(pdatain: *mut core::ffi::c_void, cbdatain: u32, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptUnprotectMemory(pdatain : *mut core::ffi::c_void, cbdatain : u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptUnprotectMemory(pdatain : *mut core::ffi::c_void, cbdatain : u32, dwflags : u32) -> windows_core::BOOL); unsafe { CryptUnprotectMemory(pdatain as _, cbdatain, dwflags).ok() } } #[inline] -pub unsafe fn CryptUnregisterDefaultOIDFunction(dwencodingtype: u32, pszfuncname: P1, pwszdll: P2) -> super::super::Foundation::BOOL +pub unsafe fn CryptUnregisterDefaultOIDFunction(dwencodingtype: u32, pszfuncname: P1, pwszdll: P2) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptUnregisterDefaultOIDFunction(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, pwszdll : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptUnregisterDefaultOIDFunction(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, pwszdll : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { CryptUnregisterDefaultOIDFunction(dwencodingtype, pszfuncname.param().abi(), pwszdll.param().abi()) } } #[inline] -pub unsafe fn CryptUnregisterOIDFunction(dwencodingtype: u32, pszfuncname: P1, pszoid: P2) -> super::super::Foundation::BOOL +pub unsafe fn CryptUnregisterOIDFunction(dwencodingtype: u32, pszfuncname: P1, pszoid: P2) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptUnregisterOIDFunction(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, pszoid : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptUnregisterOIDFunction(dwencodingtype : u32, pszfuncname : windows_core::PCSTR, pszoid : windows_core::PCSTR) -> windows_core::BOOL); unsafe { CryptUnregisterOIDFunction(dwencodingtype, pszfuncname.param().abi(), pszoid.param().abi()) } } #[inline] -pub unsafe fn CryptUnregisterOIDInfo(pinfo: *const CRYPT_OID_INFO) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn CryptUnregisterOIDInfo(pinfo : *const CRYPT_OID_INFO) -> super::super::Foundation:: BOOL); +pub unsafe fn CryptUnregisterOIDInfo(pinfo: *const CRYPT_OID_INFO) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn CryptUnregisterOIDInfo(pinfo : *const CRYPT_OID_INFO) -> windows_core::BOOL); unsafe { CryptUnregisterOIDInfo(pinfo) } } #[inline] @@ -1906,42 +1906,42 @@ pub unsafe fn CryptUpdateProtectedState(poldsid: Option, pwszol where P1: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn CryptUpdateProtectedState(poldsid : super:: PSID, pwszoldpassword : windows_core::PCWSTR, dwflags : u32, pdwsuccesscount : *mut u32, pdwfailurecount : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptUpdateProtectedState(poldsid : super:: PSID, pwszoldpassword : windows_core::PCWSTR, dwflags : u32, pdwsuccesscount : *mut u32, pdwfailurecount : *mut u32) -> windows_core::BOOL); unsafe { CryptUpdateProtectedState(poldsid.unwrap_or(core::mem::zeroed()) as _, pwszoldpassword.param().abi(), dwflags, pdwsuccesscount.unwrap_or(core::mem::zeroed()) as _, pdwfailurecount.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CryptVerifyCertificateSignature(hcryptprov: Option, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, pbencoded: &[u8], ppublickey: *const CERT_PUBLIC_KEY_INFO) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptVerifyCertificateSignature(hcryptprov : HCRYPTPROV_LEGACY, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbencoded : *const u8, cbencoded : u32, ppublickey : *const CERT_PUBLIC_KEY_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptVerifyCertificateSignature(hcryptprov : HCRYPTPROV_LEGACY, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, pbencoded : *const u8, cbencoded : u32, ppublickey : *const CERT_PUBLIC_KEY_INFO) -> windows_core::BOOL); unsafe { CryptVerifyCertificateSignature(hcryptprov.unwrap_or(core::mem::zeroed()) as _, dwcertencodingtype, core::mem::transmute(pbencoded.as_ptr()), pbencoded.len().try_into().unwrap(), ppublickey).ok() } } #[inline] pub unsafe fn CryptVerifyCertificateSignatureEx(hcryptprov: Option, dwcertencodingtype: CERT_QUERY_ENCODING_TYPE, dwsubjecttype: u32, pvsubject: *const core::ffi::c_void, dwissuertype: u32, pvissuer: Option<*const core::ffi::c_void>, dwflags: CRYPT_VERIFY_CERT_FLAGS, pvextra: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptVerifyCertificateSignatureEx(hcryptprov : HCRYPTPROV_LEGACY, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, dwsubjecttype : u32, pvsubject : *const core::ffi::c_void, dwissuertype : u32, pvissuer : *const core::ffi::c_void, dwflags : CRYPT_VERIFY_CERT_FLAGS, pvextra : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptVerifyCertificateSignatureEx(hcryptprov : HCRYPTPROV_LEGACY, dwcertencodingtype : CERT_QUERY_ENCODING_TYPE, dwsubjecttype : u32, pvsubject : *const core::ffi::c_void, dwissuertype : u32, pvissuer : *const core::ffi::c_void, dwflags : CRYPT_VERIFY_CERT_FLAGS, pvextra : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { CryptVerifyCertificateSignatureEx(hcryptprov.unwrap_or(core::mem::zeroed()) as _, dwcertencodingtype, dwsubjecttype, pvsubject, dwissuertype, pvissuer.unwrap_or(core::mem::zeroed()) as _, dwflags, pvextra.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CryptVerifyDetachedMessageHash(phashpara: *const CRYPT_HASH_MESSAGE_PARA, pbdetachedhashblob: &[u8], ctobehashed: u32, rgpbtobehashed: *const *const u8, rgcbtobehashed: *const u32, pbcomputedhash: Option<*mut u8>, pcbcomputedhash: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptVerifyDetachedMessageHash(phashpara : *const CRYPT_HASH_MESSAGE_PARA, pbdetachedhashblob : *const u8, cbdetachedhashblob : u32, ctobehashed : u32, rgpbtobehashed : *const *const u8, rgcbtobehashed : *const u32, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptVerifyDetachedMessageHash(phashpara : *const CRYPT_HASH_MESSAGE_PARA, pbdetachedhashblob : *const u8, cbdetachedhashblob : u32, ctobehashed : u32, rgpbtobehashed : *const *const u8, rgcbtobehashed : *const u32, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> windows_core::BOOL); unsafe { CryptVerifyDetachedMessageHash(phashpara, core::mem::transmute(pbdetachedhashblob.as_ptr()), pbdetachedhashblob.len().try_into().unwrap(), ctobehashed, rgpbtobehashed, rgcbtobehashed, pbcomputedhash.unwrap_or(core::mem::zeroed()) as _, pcbcomputedhash.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CryptVerifyDetachedMessageSignature(pverifypara: *const CRYPT_VERIFY_MESSAGE_PARA, dwsignerindex: u32, pbdetachedsignblob: &[u8], ctobesigned: u32, rgpbtobesigned: *const *const u8, rgcbtobesigned: *const u32, ppsignercert: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptVerifyDetachedMessageSignature(pverifypara : *const CRYPT_VERIFY_MESSAGE_PARA, dwsignerindex : u32, pbdetachedsignblob : *const u8, cbdetachedsignblob : u32, ctobesigned : u32, rgpbtobesigned : *const *const u8, rgcbtobesigned : *const u32, ppsignercert : *mut *mut CERT_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptVerifyDetachedMessageSignature(pverifypara : *const CRYPT_VERIFY_MESSAGE_PARA, dwsignerindex : u32, pbdetachedsignblob : *const u8, cbdetachedsignblob : u32, ctobesigned : u32, rgpbtobesigned : *const *const u8, rgcbtobesigned : *const u32, ppsignercert : *mut *mut CERT_CONTEXT) -> windows_core::BOOL); unsafe { CryptVerifyDetachedMessageSignature(pverifypara, dwsignerindex, core::mem::transmute(pbdetachedsignblob.as_ptr()), pbdetachedsignblob.len().try_into().unwrap(), ctobesigned, rgpbtobesigned, rgcbtobesigned, ppsignercert.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CryptVerifyMessageHash(phashpara: *const CRYPT_HASH_MESSAGE_PARA, pbhashedblob: &[u8], pbtobehashed: Option<*mut u8>, pcbtobehashed: Option<*mut u32>, pbcomputedhash: Option<*mut u8>, pcbcomputedhash: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptVerifyMessageHash(phashpara : *const CRYPT_HASH_MESSAGE_PARA, pbhashedblob : *const u8, cbhashedblob : u32, pbtobehashed : *mut u8, pcbtobehashed : *mut u32, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptVerifyMessageHash(phashpara : *const CRYPT_HASH_MESSAGE_PARA, pbhashedblob : *const u8, cbhashedblob : u32, pbtobehashed : *mut u8, pcbtobehashed : *mut u32, pbcomputedhash : *mut u8, pcbcomputedhash : *mut u32) -> windows_core::BOOL); unsafe { CryptVerifyMessageHash(phashpara, core::mem::transmute(pbhashedblob.as_ptr()), pbhashedblob.len().try_into().unwrap(), pbtobehashed.unwrap_or(core::mem::zeroed()) as _, pcbtobehashed.unwrap_or(core::mem::zeroed()) as _, pbcomputedhash.unwrap_or(core::mem::zeroed()) as _, pcbcomputedhash.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CryptVerifyMessageSignature(pverifypara: *const CRYPT_VERIFY_MESSAGE_PARA, dwsignerindex: u32, pbsignedblob: &[u8], pbdecoded: Option<*mut u8>, pcbdecoded: Option<*mut u32>, ppsignercert: Option<*mut *mut CERT_CONTEXT>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptVerifyMessageSignature(pverifypara : *const CRYPT_VERIFY_MESSAGE_PARA, dwsignerindex : u32, pbsignedblob : *const u8, cbsignedblob : u32, pbdecoded : *mut u8, pcbdecoded : *mut u32, ppsignercert : *mut *mut CERT_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptVerifyMessageSignature(pverifypara : *const CRYPT_VERIFY_MESSAGE_PARA, dwsignerindex : u32, pbsignedblob : *const u8, cbsignedblob : u32, pbdecoded : *mut u8, pcbdecoded : *mut u32, ppsignercert : *mut *mut CERT_CONTEXT) -> windows_core::BOOL); unsafe { CryptVerifyMessageSignature(pverifypara, dwsignerindex, core::mem::transmute(pbsignedblob.as_ptr()), pbsignedblob.len().try_into().unwrap(), pbdecoded.unwrap_or(core::mem::zeroed()) as _, pcbdecoded.unwrap_or(core::mem::zeroed()) as _, ppsignercert.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CryptVerifyMessageSignatureWithKey(pverifypara: *const CRYPT_KEY_VERIFY_MESSAGE_PARA, ppublickeyinfo: Option<*const CERT_PUBLIC_KEY_INFO>, pbsignedblob: &[u8], pbdecoded: Option<*mut u8>, pcbdecoded: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptVerifyMessageSignatureWithKey(pverifypara : *const CRYPT_KEY_VERIFY_MESSAGE_PARA, ppublickeyinfo : *const CERT_PUBLIC_KEY_INFO, pbsignedblob : *const u8, cbsignedblob : u32, pbdecoded : *mut u8, pcbdecoded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptVerifyMessageSignatureWithKey(pverifypara : *const CRYPT_KEY_VERIFY_MESSAGE_PARA, ppublickeyinfo : *const CERT_PUBLIC_KEY_INFO, pbsignedblob : *const u8, cbsignedblob : u32, pbdecoded : *mut u8, pcbdecoded : *mut u32) -> windows_core::BOOL); unsafe { CryptVerifyMessageSignatureWithKey(pverifypara, ppublickeyinfo.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(pbsignedblob.as_ptr()), pbsignedblob.len().try_into().unwrap(), pbdecoded.unwrap_or(core::mem::zeroed()) as _, pcbdecoded.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1949,7 +1949,7 @@ pub unsafe fn CryptVerifySignatureA(hhash: usize, pbsignature: &[u8], hpubke where P4: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CryptVerifySignatureA(hhash : usize, pbsignature : *const u8, dwsiglen : u32, hpubkey : usize, szdescription : windows_core::PCSTR, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptVerifySignatureA(hhash : usize, pbsignature : *const u8, dwsiglen : u32, hpubkey : usize, szdescription : windows_core::PCSTR, dwflags : u32) -> windows_core::BOOL); unsafe { CryptVerifySignatureA(hhash, core::mem::transmute(pbsignature.as_ptr()), pbsignature.len().try_into().unwrap(), hpubkey, szdescription.param().abi(), dwflags).ok() } } #[inline] @@ -1957,12 +1957,12 @@ pub unsafe fn CryptVerifySignatureW(hhash: usize, pbsignature: &[u8], hpubke where P4: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CryptVerifySignatureW(hhash : usize, pbsignature : *const u8, dwsiglen : u32, hpubkey : usize, szdescription : windows_core::PCWSTR, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CryptVerifySignatureW(hhash : usize, pbsignature : *const u8, dwsiglen : u32, hpubkey : usize, szdescription : windows_core::PCWSTR, dwflags : u32) -> windows_core::BOOL); unsafe { CryptVerifySignatureW(hhash, core::mem::transmute(pbsignature.as_ptr()), pbsignature.len().try_into().unwrap(), hpubkey, szdescription.param().abi(), dwflags).ok() } } #[inline] pub unsafe fn CryptVerifyTimeStampSignature(pbtscontentinfo: &[u8], pbdata: Option<&[u8]>, hadditionalstore: Option, pptscontext: *mut *mut CRYPT_TIMESTAMP_CONTEXT, pptssigner: *mut *mut CERT_CONTEXT, phstore: Option<*mut HCERTSTORE>) -> windows_core::Result<()> { - windows_targets::link!("crypt32.dll" "system" fn CryptVerifyTimeStampSignature(pbtscontentinfo : *const u8, cbtscontentinfo : u32, pbdata : *const u8, cbdata : u32, hadditionalstore : HCERTSTORE, pptscontext : *mut *mut CRYPT_TIMESTAMP_CONTEXT, pptssigner : *mut *mut CERT_CONTEXT, phstore : *mut HCERTSTORE) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn CryptVerifyTimeStampSignature(pbtscontentinfo : *const u8, cbtscontentinfo : u32, pbdata : *const u8, cbdata : u32, hadditionalstore : HCERTSTORE, pptscontext : *mut *mut CRYPT_TIMESTAMP_CONTEXT, pptssigner : *mut *mut CERT_CONTEXT, phstore : *mut HCERTSTORE) -> windows_core::BOOL); unsafe { CryptVerifyTimeStampSignature(core::mem::transmute(pbtscontentinfo.as_ptr()), pbtscontentinfo.len().try_into().unwrap(), core::mem::transmute(pbdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), hadditionalstore.unwrap_or(core::mem::zeroed()) as _, pptscontext as _, pptssigner as _, phstore.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2094,12 +2094,12 @@ pub unsafe fn CryptXmlVerifySignature(hsignature: *const core::ffi::c_void, hkey } #[inline] pub unsafe fn Decrypt(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, foaep: bool, pindata: &[u8], pcboutdata: *mut u32, ppoutdata: *mut *mut u8) -> windows_core::Result<()> { - windows_targets::link!("infocardapi.dll" "system" fn Decrypt(hcrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, foaep : super::super::Foundation:: BOOL, cbindata : u32, pindata : *const u8, pcboutdata : *mut u32, ppoutdata : *mut *mut u8) -> windows_core::HRESULT); + windows_targets::link!("infocardapi.dll" "system" fn Decrypt(hcrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, foaep : windows_core::BOOL, cbindata : u32, pindata : *const u8, pcboutdata : *mut u32, ppoutdata : *mut *mut u8) -> windows_core::HRESULT); unsafe { Decrypt(hcrypto, foaep.into(), pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr()), pcboutdata as _, ppoutdata as _).ok() } } #[inline] pub unsafe fn Encrypt(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, foaep: bool, pindata: &[u8], pcboutdata: *mut u32, ppoutdata: *mut *mut u8) -> windows_core::Result<()> { - windows_targets::link!("infocardapi.dll" "system" fn Encrypt(hcrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, foaep : super::super::Foundation:: BOOL, cbindata : u32, pindata : *const u8, pcboutdata : *mut u32, ppoutdata : *mut *mut u8) -> windows_core::HRESULT); + windows_targets::link!("infocardapi.dll" "system" fn Encrypt(hcrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, foaep : windows_core::BOOL, cbindata : u32, pindata : *const u8, pcboutdata : *mut u32, ppoutdata : *mut *mut u8) -> windows_core::HRESULT); unsafe { Encrypt(hcrypto, foaep.into(), pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr()), pcboutdata as _, ppoutdata as _).ok() } } #[inline] @@ -2111,8 +2111,8 @@ where unsafe { FindCertsByIssuer(pcertchains.unwrap_or(core::mem::zeroed()) as _, pcbcertchains as _, pccertchains as _, core::mem::transmute(pbencodedissuername.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbencodedissuername.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pwszpurpose.param().abi(), dwkeyspec).ok() } } #[inline] -pub unsafe fn FreeToken(pallocmemory: *const GENERIC_XML_TOKEN) -> super::super::Foundation::BOOL { - windows_targets::link!("infocardapi.dll" "system" fn FreeToken(pallocmemory : *const GENERIC_XML_TOKEN) -> super::super::Foundation:: BOOL); +pub unsafe fn FreeToken(pallocmemory: *const GENERIC_XML_TOKEN) -> windows_core::BOOL { + windows_targets::link!("infocardapi.dll" "system" fn FreeToken(pallocmemory : *const GENERIC_XML_TOKEN) -> windows_core::BOOL); unsafe { FreeToken(pallocmemory) } } #[inline] @@ -2374,8 +2374,8 @@ where unsafe { NCryptIsAlgSupported(hprovider, pszalgid.param().abi(), dwflags).ok() } } #[inline] -pub unsafe fn NCryptIsKeyHandle(hkey: NCRYPT_KEY_HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("ncrypt.dll" "system" fn NCryptIsKeyHandle(hkey : NCRYPT_KEY_HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn NCryptIsKeyHandle(hkey: NCRYPT_KEY_HANDLE) -> windows_core::BOOL { + windows_targets::link!("ncrypt.dll" "system" fn NCryptIsKeyHandle(hkey : NCRYPT_KEY_HANDLE) -> windows_core::BOOL); unsafe { NCryptIsKeyHandle(hkey) } } #[inline] @@ -2475,7 +2475,7 @@ pub unsafe fn NCryptStreamOpenToUnprotectEx(pstreaminfo: *const NCRYPT_PROTECT_S } #[inline] pub unsafe fn NCryptStreamUpdate(hstream: super::NCRYPT_STREAM_HANDLE, pbdata: &[u8], ffinal: bool) -> windows_core::Result<()> { - windows_targets::link!("ncrypt.dll" "system" fn NCryptStreamUpdate(hstream : super:: NCRYPT_STREAM_HANDLE, pbdata : *const u8, cbdata : usize, ffinal : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("ncrypt.dll" "system" fn NCryptStreamUpdate(hstream : super:: NCRYPT_STREAM_HANDLE, pbdata : *const u8, cbdata : usize, ffinal : windows_core::BOOL) -> windows_core::HRESULT); unsafe { NCryptStreamUpdate(hstream, core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), ffinal.into()).ok() } } #[inline] @@ -2503,7 +2503,7 @@ pub unsafe fn PFXExportCertStore(hstore: HCERTSTORE, ppfx: *mut CRYPT_INTEGE where P2: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn PFXExportCertStore(hstore : HCERTSTORE, ppfx : *mut CRYPT_INTEGER_BLOB, szpassword : windows_core::PCWSTR, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn PFXExportCertStore(hstore : HCERTSTORE, ppfx : *mut CRYPT_INTEGER_BLOB, szpassword : windows_core::PCWSTR, dwflags : u32) -> windows_core::BOOL); unsafe { PFXExportCertStore(hstore, ppfx as _, szpassword.param().abi(), dwflags).ok() } } #[inline] @@ -2511,7 +2511,7 @@ pub unsafe fn PFXExportCertStoreEx(hstore: HCERTSTORE, ppfx: *mut CRYPT_INTE where P2: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn PFXExportCertStoreEx(hstore : HCERTSTORE, ppfx : *mut CRYPT_INTEGER_BLOB, szpassword : windows_core::PCWSTR, pvpara : *const core::ffi::c_void, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn PFXExportCertStoreEx(hstore : HCERTSTORE, ppfx : *mut CRYPT_INTEGER_BLOB, szpassword : windows_core::PCWSTR, pvpara : *const core::ffi::c_void, dwflags : u32) -> windows_core::BOOL); unsafe { PFXExportCertStoreEx(hstore, ppfx as _, szpassword.param().abi(), pvpara, dwflags).ok() } } #[inline] @@ -2524,21 +2524,21 @@ where (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] -pub unsafe fn PFXIsPFXBlob(ppfx: *const CRYPT_INTEGER_BLOB) -> super::super::Foundation::BOOL { - windows_targets::link!("crypt32.dll" "system" fn PFXIsPFXBlob(ppfx : *const CRYPT_INTEGER_BLOB) -> super::super::Foundation:: BOOL); +pub unsafe fn PFXIsPFXBlob(ppfx: *const CRYPT_INTEGER_BLOB) -> windows_core::BOOL { + windows_targets::link!("crypt32.dll" "system" fn PFXIsPFXBlob(ppfx : *const CRYPT_INTEGER_BLOB) -> windows_core::BOOL); unsafe { PFXIsPFXBlob(ppfx) } } #[inline] -pub unsafe fn PFXVerifyPassword(ppfx: *const CRYPT_INTEGER_BLOB, szpassword: P1, dwflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn PFXVerifyPassword(ppfx: *const CRYPT_INTEGER_BLOB, szpassword: P1, dwflags: u32) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("crypt32.dll" "system" fn PFXVerifyPassword(ppfx : *const CRYPT_INTEGER_BLOB, szpassword : windows_core::PCWSTR, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("crypt32.dll" "system" fn PFXVerifyPassword(ppfx : *const CRYPT_INTEGER_BLOB, szpassword : windows_core::PCWSTR, dwflags : u32) -> windows_core::BOOL); unsafe { PFXVerifyPassword(ppfx, szpassword.param().abi(), dwflags) } } #[inline] -pub unsafe fn ProcessPrng(pbdata: &mut [u8]) -> super::super::Foundation::BOOL { - windows_targets::link!("bcryptprimitives.dll" "system" fn ProcessPrng(pbdata : *mut u8, cbdata : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn ProcessPrng(pbdata: &mut [u8]) -> windows_core::BOOL { + windows_targets::link!("bcryptprimitives.dll" "system" fn ProcessPrng(pbdata : *mut u8, cbdata : usize) -> windows_core::BOOL); unsafe { ProcessPrng(core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap()) } } #[inline] @@ -2903,8 +2903,8 @@ pub unsafe fn SslVerifySignature(hsslprovider: NCRYPT_PROV_HANDLE, hpublickey: N unsafe { SslVerifySignature(hsslprovider, hpublickey, core::mem::transmute(pbhashvalue.as_ptr()), pbhashvalue.len().try_into().unwrap(), core::mem::transmute(pbsignature.as_ptr()), pbsignature.len().try_into().unwrap(), dwflags).ok() } } #[inline] -pub unsafe fn SystemPrng(pbrandomdata: &mut [u8]) -> super::super::Foundation::BOOL { - windows_targets::link!("bcryptprimitives.dll" "system" fn SystemPrng(pbrandomdata : *mut u8, cbrandomdata : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn SystemPrng(pbrandomdata: &mut [u8]) -> windows_core::BOOL { + windows_targets::link!("bcryptprimitives.dll" "system" fn SystemPrng(pbrandomdata : *mut u8, cbrandomdata : usize) -> windows_core::BOOL); unsafe { SystemPrng(core::mem::transmute(pbrandomdata.as_ptr()), pbrandomdata.len().try_into().unwrap()) } } #[inline] @@ -2918,11 +2918,11 @@ pub unsafe fn TransformFinalBlock(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, unsafe { TransformFinalBlock(hcrypto, pindata.len().try_into().unwrap(), core::mem::transmute(pindata.as_ptr()), pcboutdata as _, ppoutdata as _).ok() } } #[inline] -pub unsafe fn VerifyHash(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, phash: &[u8], hashalgoid: P3, psig: &[u8]) -> windows_core::Result +pub unsafe fn VerifyHash(hcrypto: *const INFORMATIONCARD_CRYPTO_HANDLE, phash: &[u8], hashalgoid: P3, psig: &[u8]) -> windows_core::Result where P3: windows_core::Param, { - windows_targets::link!("infocardapi.dll" "system" fn VerifyHash(hcrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, cbhash : u32, phash : *const u8, hashalgoid : windows_core::PCWSTR, cbsig : u32, psig : *const u8, pfverified : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("infocardapi.dll" "system" fn VerifyHash(hcrypto : *const INFORMATIONCARD_CRYPTO_HANDLE, cbhash : u32, phash : *const u8, hashalgoid : windows_core::PCWSTR, cbsig : u32, psig : *const u8, pfverified : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); VerifyHash(hcrypto, phash.len().try_into().unwrap(), core::mem::transmute(phash.as_ptr()), hashalgoid.param().abi(), psig.len().try_into().unwrap(), core::mem::transmute(psig.as_ptr()), &mut result__).map(|| core::mem::transmute(result__)) @@ -3038,7 +3038,7 @@ impl Default for AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_PARA { #[derive(Clone, Copy, Debug, PartialEq)] pub struct AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS { pub cbSize: u32, - pub fCommercial: super::super::Foundation::BOOL, + pub fCommercial: windows_core::BOOL, } impl Default for AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS { fn default() -> Self { @@ -3050,7 +3050,7 @@ impl Default for AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS { pub struct AUTHENTICODE_TS_EXTRA_CERT_CHAIN_POLICY_PARA { pub cbSize: u32, pub dwRegPolicySettings: u32, - pub fCommercial: super::super::Foundation::BOOL, + pub fCommercial: windows_core::BOOL, } impl Default for AUTHENTICODE_TS_EXTRA_CERT_CHAIN_POLICY_PARA { fn default() -> Self { @@ -4303,8 +4303,8 @@ impl Default for CARD_CACHE_FILE_FORMAT { #[derive(Clone, Copy, Debug, PartialEq)] pub struct CARD_CAPABILITIES { pub dwVersion: u32, - pub fCertificateCompression: super::super::Foundation::BOOL, - pub fKeyGen: super::super::Foundation::BOOL, + pub fCertificateCompression: windows_core::BOOL, + pub fKeyGen: windows_core::BOOL, } impl Default for CARD_CAPABILITIES { fn default() -> Self { @@ -4744,8 +4744,8 @@ pub const CERT_BACKED_UP_PROP_ID: u32 = 69u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct CERT_BASIC_CONSTRAINTS2_INFO { - pub fCA: super::super::Foundation::BOOL, - pub fPathLenConstraint: super::super::Foundation::BOOL, + pub fCA: windows_core::BOOL, + pub fPathLenConstraint: windows_core::BOOL, pub dwPathLenConstraint: u32, } impl Default for CERT_BASIC_CONSTRAINTS2_INFO { @@ -4757,7 +4757,7 @@ impl Default for CERT_BASIC_CONSTRAINTS2_INFO { #[derive(Clone, Copy, Debug, PartialEq)] pub struct CERT_BASIC_CONSTRAINTS_INFO { pub SubjectType: CRYPT_BIT_BLOB, - pub fPathLenConstraint: super::super::Foundation::BOOL, + pub fPathLenConstraint: windows_core::BOOL, pub dwPathLenConstraint: u32, pub cSubtreesConstraint: u32, pub rgSubtreesConstraint: *mut CRYPT_INTEGER_BLOB, @@ -4856,7 +4856,7 @@ pub struct CERT_CHAIN_CONTEXT { pub rgpChain: *mut *mut CERT_SIMPLE_CHAIN, pub cLowerQualityChainContext: u32, pub rgpLowerQualityChainContext: *mut *mut CERT_CHAIN_CONTEXT, - pub fHasRevocationFreshnessTime: super::super::Foundation::BOOL, + pub fHasRevocationFreshnessTime: windows_core::BOOL, pub dwRevocationFreshnessTime: u32, pub dwCreateFlags: u32, pub ChainId: windows_core::GUID, @@ -5005,7 +5005,7 @@ pub struct CERT_CHAIN_PARA { pub RequestedUsage: CERT_USAGE_MATCH, pub RequestedIssuancePolicy: CERT_USAGE_MATCH, pub dwUrlRetrievalTimeout: u32, - pub fCheckRevocationFreshnessTime: super::super::Foundation::BOOL, + pub fCheckRevocationFreshnessTime: windows_core::BOOL, pub dwRevocationFreshnessTime: u32, pub pftCacheResync: *mut super::super::Foundation::FILETIME, pub pStrongSignPara: *mut CERT_STRONG_SIGN_PARA, @@ -5333,7 +5333,7 @@ pub const CERT_EXTENDED_ERROR_INFO_PROP_ID: u32 = 30u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct CERT_EXTENSION { pub pszObjId: windows_core::PSTR, - pub fCritical: super::super::Foundation::BOOL, + pub fCritical: windows_core::BOOL, pub Value: CRYPT_INTEGER_BLOB, } impl Default for CERT_EXTENSION { @@ -5492,7 +5492,7 @@ pub const CERT_FRIENDLY_NAME_PROP_ID: u32 = 11u32; pub struct CERT_GENERAL_SUBTREE { pub Base: CERT_ALT_NAME_ENTRY, pub dwMinimum: u32, - pub fMaximum: super::super::Foundation::BOOL, + pub fMaximum: windows_core::BOOL, pub dwMaximum: u32, } impl Default for CERT_GENERAL_SUBTREE { @@ -6074,9 +6074,9 @@ impl Default for CERT_POLICY95_QUALIFIER1 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct CERT_POLICY_CONSTRAINTS_INFO { - pub fRequireExplicitPolicy: super::super::Foundation::BOOL, + pub fRequireExplicitPolicy: windows_core::BOOL, pub dwRequireExplicitPolicySkipCerts: u32, - pub fInhibitPolicyMapping: super::super::Foundation::BOOL, + pub fInhibitPolicyMapping: windows_core::BOOL, pub dwInhibitPolicyMappingSkipCerts: u32, } impl Default for CERT_POLICY_CONSTRAINTS_INFO { @@ -6446,7 +6446,7 @@ pub struct CERT_REVOCATION_CRL_INFO { pub pBaseCrlContext: *mut CRL_CONTEXT, pub pDeltaCrlContext: *mut CRL_CONTEXT, pub pCrlEntry: *mut CRL_ENTRY, - pub fDeltaCrlEntry: super::super::Foundation::BOOL, + pub fDeltaCrlEntry: windows_core::BOOL, } impl Default for CERT_REVOCATION_CRL_INFO { fn default() -> Self { @@ -6460,7 +6460,7 @@ pub struct CERT_REVOCATION_INFO { pub dwRevocationResult: u32, pub pszRevocationOid: windows_core::PCSTR, pub pvOidSpecificInfo: *mut core::ffi::c_void, - pub fHasFreshnessTime: super::super::Foundation::BOOL, + pub fHasFreshnessTime: windows_core::BOOL, pub dwFreshnessTime: u32, pub pCrlInfo: *mut CERT_REVOCATION_CRL_INFO, } @@ -6491,7 +6491,7 @@ pub struct CERT_REVOCATION_STATUS { pub dwIndex: u32, pub dwError: u32, pub dwReason: CERT_REVOCATION_STATUS_REASON, - pub fHasFreshnessTime: super::super::Foundation::BOOL, + pub fHasFreshnessTime: windows_core::BOOL, pub dwFreshnessTime: u32, } impl Default for CERT_REVOCATION_STATUS { @@ -6672,7 +6672,7 @@ pub struct CERT_SIMPLE_CHAIN { pub cElement: u32, pub rgpElement: *mut *mut CERT_CHAIN_ELEMENT, pub pTrustListInfo: *mut CERT_TRUST_LIST_INFO, - pub fHasRevocationFreshnessTime: super::super::Foundation::BOOL, + pub fHasRevocationFreshnessTime: windows_core::BOOL, pub dwRevocationFreshnessTime: u32, } impl Default for CERT_SIMPLE_CHAIN { @@ -7042,7 +7042,7 @@ pub const CERT_SYSTEM_STORE_USERS_ID: u32 = 6u32; pub struct CERT_TEMPLATE_EXT { pub pszObjId: windows_core::PSTR, pub dwMajorVersion: u32, - pub fMinorVersion: super::super::Foundation::BOOL, + pub fMinorVersion: windows_core::BOOL, pub dwMinorVersion: u32, } impl Default for CERT_TEMPLATE_EXT { @@ -7557,7 +7557,7 @@ pub struct CMSG_CONTENT_ENCRYPT_INFO { pub dwEncryptFlags: u32, pub Anonymous: CMSG_CONTENT_ENCRYPT_INFO_0, pub dwFlags: u32, - pub fCNG: super::super::Foundation::BOOL, + pub fCNG: windows_core::BOOL, pub pbCNGContentEncryptKeyObject: *mut u8, pub pbContentEncryptKey: *mut u8, pub cbContentEncryptKey: u32, @@ -8507,10 +8507,10 @@ impl Default for CRL_INFO { #[derive(Clone, Copy)] pub struct CRL_ISSUING_DIST_POINT { pub DistPointName: CRL_DIST_POINT_NAME, - pub fOnlyContainsUserCerts: super::super::Foundation::BOOL, - pub fOnlyContainsCACerts: super::super::Foundation::BOOL, + pub fOnlyContainsUserCerts: windows_core::BOOL, + pub fOnlyContainsCACerts: windows_core::BOOL, pub OnlySomeReasonFlags: CRYPT_BIT_BLOB, - pub fIndirectCRL: super::super::Foundation::BOOL, + pub fIndirectCRL: windows_core::BOOL, } impl Default for CRL_ISSUING_DIST_POINT { fn default() -> Self { @@ -9975,7 +9975,7 @@ pub const CRYPT_RC2_64BIT_VERSION: u32 = 120u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct CRYPT_RC2_CBC_PARAMETERS { pub dwVersion: u32, - pub fIV: super::super::Foundation::BOOL, + pub fIV: windows_core::BOOL, pub rgbIV: [u8; 8], } impl Default for CRYPT_RC2_CBC_PARAMETERS { @@ -10012,7 +10012,7 @@ pub struct CRYPT_RETRIEVE_AUX_INFO { pub ppResponseInfo: *mut *mut CRYPTNET_URL_CACHE_RESPONSE_INFO, pub pwszCacheFileNamePrefix: windows_core::PWSTR, pub pftCacheResync: *mut super::super::Foundation::FILETIME, - pub fProxyCacheRetrieval: super::super::Foundation::BOOL, + pub fProxyCacheRetrieval: windows_core::BOOL, pub dwHttpStatusCode: u32, pub ppwszErrorResponseHeaders: *mut windows_core::PWSTR, pub ppErrorContentBlob: *mut *mut CRYPT_INTEGER_BLOB, @@ -10200,7 +10200,7 @@ pub struct CRYPT_TIMESTAMP_INFO { pub SerialNumber: CRYPT_INTEGER_BLOB, pub ftTime: super::super::Foundation::FILETIME, pub pvAccuracy: *mut CRYPT_TIMESTAMP_ACCURACY, - pub fOrdering: super::super::Foundation::BOOL, + pub fOrdering: windows_core::BOOL, pub Nonce: CRYPT_INTEGER_BLOB, pub Tsa: CRYPT_INTEGER_BLOB, pub cExtension: u32, @@ -10215,7 +10215,7 @@ impl Default for CRYPT_TIMESTAMP_INFO { #[derive(Clone, Copy, Debug, PartialEq)] pub struct CRYPT_TIMESTAMP_PARA { pub pszTSAPolicyId: windows_core::PCSTR, - pub fRequestCerts: super::super::Foundation::BOOL, + pub fRequestCerts: windows_core::BOOL, pub Nonce: CRYPT_INTEGER_BLOB, pub cExtension: u32, pub rgExtension: *mut CERT_EXTENSION, @@ -10233,7 +10233,7 @@ pub struct CRYPT_TIMESTAMP_REQUEST { pub HashedMessage: CRYPT_INTEGER_BLOB, pub pszTSAPolicyId: windows_core::PSTR, pub Nonce: CRYPT_INTEGER_BLOB, - pub fCertReq: super::super::Foundation::BOOL, + pub fCertReq: windows_core::BOOL, pub cExtension: u32, pub rgExtension: *mut CERT_EXTENSION, } @@ -10355,8 +10355,8 @@ impl Default for CRYPT_VERIFY_CERT_SIGN_WEAK_HASH_INFO { } pub const CRYPT_VERIFY_CONTEXT_SIGNATURE: u32 = 32u32; pub const CRYPT_VERIFY_DATA_HASH: u32 = 64u32; -pub type CRYPT_VERIFY_IMAGE_A = Option super::super::Foundation::BOOL>; -pub type CRYPT_VERIFY_IMAGE_W = Option super::super::Foundation::BOOL>; +pub type CRYPT_VERIFY_IMAGE_A = Option windows_core::BOOL>; +pub type CRYPT_VERIFY_IMAGE_W = Option windows_core::BOOL>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct CRYPT_VERIFY_MESSAGE_PARA { @@ -12788,8 +12788,8 @@ impl Default for INFORMATIONCARD_SYMMETRIC_CRYPTO_PARAMETERS { pub struct INFORMATIONCARD_TRANSFORM_CRYPTO_PARAMETERS { pub inputBlockSize: i32, pub outputBlockSize: i32, - pub canTransformMultipleBlocks: super::super::Foundation::BOOL, - pub canReuseTransform: super::super::Foundation::BOOL, + pub canTransformMultipleBlocks: windows_core::BOOL, + pub canReuseTransform: windows_core::BOOL, } impl Default for INFORMATIONCARD_TRANSFORM_CRYPTO_PARAMETERS { fn default() -> Self { @@ -14174,16 +14174,16 @@ impl Default for OFFLOAD_PRIVATE_KEY { } } pub const OPAQUEKEYBLOB: u32 = 9u32; -pub type PCRYPT_DECRYPT_PRIVATE_KEY_FUNC = Option super::super::Foundation::BOOL>; -pub type PCRYPT_ENCRYPT_PRIVATE_KEY_FUNC = Option super::super::Foundation::BOOL>; -pub type PCRYPT_RESOLVE_HCRYPTPROV_FUNC = Option super::super::Foundation::BOOL>; -pub type PFNCryptStreamOutputCallback = Option windows_core::HRESULT>; -pub type PFNCryptStreamOutputCallbackEx = Option windows_core::HRESULT>; +pub type PCRYPT_DECRYPT_PRIVATE_KEY_FUNC = Option windows_core::BOOL>; +pub type PCRYPT_ENCRYPT_PRIVATE_KEY_FUNC = Option windows_core::BOOL>; +pub type PCRYPT_RESOLVE_HCRYPTPROV_FUNC = Option windows_core::BOOL>; +pub type PFNCryptStreamOutputCallback = Option windows_core::HRESULT>; +pub type PFNCryptStreamOutputCallbackEx = Option windows_core::HRESULT>; pub type PFN_AUTHENTICODE_DIGEST_SIGN = Option windows_core::HRESULT>; pub type PFN_AUTHENTICODE_DIGEST_SIGN_EX = Option windows_core::HRESULT>; pub type PFN_AUTHENTICODE_DIGEST_SIGN_EX_WITHFILEHANDLE = Option windows_core::HRESULT>; pub type PFN_AUTHENTICODE_DIGEST_SIGN_WITHFILEHANDLE = Option windows_core::HRESULT>; -pub type PFN_CANCEL_ASYNC_RETRIEVAL_FUNC = Option super::super::Foundation::BOOL>; +pub type PFN_CANCEL_ASYNC_RETRIEVAL_FUNC = Option windows_core::BOOL>; pub type PFN_CARD_ACQUIRE_CONTEXT = Option u32>; pub type PFN_CARD_AUTHENTICATE_CHALLENGE = Option u32>; pub type PFN_CARD_AUTHENTICATE_EX = Option u32>; @@ -14227,78 +14227,78 @@ pub type PFN_CARD_SET_PROPERTY = Option u32>; pub type PFN_CARD_UNBLOCK_PIN = Option u32>; pub type PFN_CARD_WRITE_FILE = Option u32>; -pub type PFN_CERT_CHAIN_FIND_BY_ISSUER_CALLBACK = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_CREATE_CONTEXT_SORT_FUNC = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_DLL_OPEN_STORE_PROV_FUNC = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_ENUM_PHYSICAL_STORE = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_ENUM_SYSTEM_STORE = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_ENUM_SYSTEM_STORE_LOCATION = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_IS_WEAK_HASH = Option super::super::Foundation::BOOL>; +pub type PFN_CERT_CHAIN_FIND_BY_ISSUER_CALLBACK = Option windows_core::BOOL>; +pub type PFN_CERT_CREATE_CONTEXT_SORT_FUNC = Option windows_core::BOOL>; +pub type PFN_CERT_DLL_OPEN_STORE_PROV_FUNC = Option windows_core::BOOL>; +pub type PFN_CERT_ENUM_PHYSICAL_STORE = Option windows_core::BOOL>; +pub type PFN_CERT_ENUM_SYSTEM_STORE = Option windows_core::BOOL>; +pub type PFN_CERT_ENUM_SYSTEM_STORE_LOCATION = Option windows_core::BOOL>; +pub type PFN_CERT_IS_WEAK_HASH = Option windows_core::BOOL>; pub type PFN_CERT_SERVER_OCSP_RESPONSE_UPDATE_CALLBACK = Option; pub type PFN_CERT_STORE_PROV_CLOSE = Option; -pub type PFN_CERT_STORE_PROV_CONTROL = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_DELETE_CERT = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_DELETE_CRL = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_DELETE_CTL = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_FIND_CERT = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_FIND_CRL = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_FIND_CTL = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_FREE_FIND_CERT = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_FREE_FIND_CRL = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_FREE_FIND_CTL = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_GET_CERT_PROPERTY = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_GET_CRL_PROPERTY = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_GET_CTL_PROPERTY = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_READ_CERT = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_READ_CRL = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_READ_CTL = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_SET_CERT_PROPERTY = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_SET_CRL_PROPERTY = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_SET_CTL_PROPERTY = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_WRITE_CERT = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_WRITE_CRL = Option super::super::Foundation::BOOL>; -pub type PFN_CERT_STORE_PROV_WRITE_CTL = Option super::super::Foundation::BOOL>; +pub type PFN_CERT_STORE_PROV_CONTROL = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_DELETE_CERT = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_DELETE_CRL = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_DELETE_CTL = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_FIND_CERT = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_FIND_CRL = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_FIND_CTL = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_FREE_FIND_CERT = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_FREE_FIND_CRL = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_FREE_FIND_CTL = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_GET_CERT_PROPERTY = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_GET_CRL_PROPERTY = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_GET_CTL_PROPERTY = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_READ_CERT = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_READ_CRL = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_READ_CTL = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_SET_CERT_PROPERTY = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_SET_CRL_PROPERTY = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_SET_CTL_PROPERTY = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_WRITE_CERT = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_WRITE_CRL = Option windows_core::BOOL>; +pub type PFN_CERT_STORE_PROV_WRITE_CTL = Option windows_core::BOOL>; pub type PFN_CMSG_ALLOC = Option *mut core::ffi::c_void>; -pub type PFN_CMSG_CNG_IMPORT_CONTENT_ENCRYPT_KEY = Option super::super::Foundation::BOOL>; -pub type PFN_CMSG_CNG_IMPORT_KEY_AGREE = Option super::super::Foundation::BOOL>; -pub type PFN_CMSG_CNG_IMPORT_KEY_TRANS = Option super::super::Foundation::BOOL>; -pub type PFN_CMSG_EXPORT_ENCRYPT_KEY = Option super::super::Foundation::BOOL>; -pub type PFN_CMSG_EXPORT_KEY_AGREE = Option super::super::Foundation::BOOL>; -pub type PFN_CMSG_EXPORT_KEY_TRANS = Option super::super::Foundation::BOOL>; -pub type PFN_CMSG_EXPORT_MAIL_LIST = Option super::super::Foundation::BOOL>; +pub type PFN_CMSG_CNG_IMPORT_CONTENT_ENCRYPT_KEY = Option windows_core::BOOL>; +pub type PFN_CMSG_CNG_IMPORT_KEY_AGREE = Option windows_core::BOOL>; +pub type PFN_CMSG_CNG_IMPORT_KEY_TRANS = Option windows_core::BOOL>; +pub type PFN_CMSG_EXPORT_ENCRYPT_KEY = Option windows_core::BOOL>; +pub type PFN_CMSG_EXPORT_KEY_AGREE = Option windows_core::BOOL>; +pub type PFN_CMSG_EXPORT_KEY_TRANS = Option windows_core::BOOL>; +pub type PFN_CMSG_EXPORT_MAIL_LIST = Option windows_core::BOOL>; pub type PFN_CMSG_FREE = Option; -pub type PFN_CMSG_GEN_CONTENT_ENCRYPT_KEY = Option super::super::Foundation::BOOL>; -pub type PFN_CMSG_GEN_ENCRYPT_KEY = Option super::super::Foundation::BOOL>; -pub type PFN_CMSG_IMPORT_ENCRYPT_KEY = Option super::super::Foundation::BOOL>; -pub type PFN_CMSG_IMPORT_KEY_AGREE = Option super::super::Foundation::BOOL>; -pub type PFN_CMSG_IMPORT_KEY_TRANS = Option super::super::Foundation::BOOL>; -pub type PFN_CMSG_IMPORT_MAIL_LIST = Option super::super::Foundation::BOOL>; -pub type PFN_CMSG_STREAM_OUTPUT = Option super::super::Foundation::BOOL>; +pub type PFN_CMSG_GEN_CONTENT_ENCRYPT_KEY = Option windows_core::BOOL>; +pub type PFN_CMSG_GEN_ENCRYPT_KEY = Option windows_core::BOOL>; +pub type PFN_CMSG_IMPORT_ENCRYPT_KEY = Option windows_core::BOOL>; +pub type PFN_CMSG_IMPORT_KEY_AGREE = Option windows_core::BOOL>; +pub type PFN_CMSG_IMPORT_KEY_TRANS = Option windows_core::BOOL>; +pub type PFN_CMSG_IMPORT_MAIL_LIST = Option windows_core::BOOL>; +pub type PFN_CMSG_STREAM_OUTPUT = Option windows_core::BOOL>; pub type PFN_CRYPT_ALLOC = Option *mut core::ffi::c_void>; pub type PFN_CRYPT_ASYNC_PARAM_FREE_FUNC = Option; pub type PFN_CRYPT_ASYNC_RETRIEVAL_COMPLETION_FUNC = Option; -pub type PFN_CRYPT_CANCEL_RETRIEVAL = Option super::super::Foundation::BOOL>; -pub type PFN_CRYPT_ENUM_KEYID_PROP = Option super::super::Foundation::BOOL>; -pub type PFN_CRYPT_ENUM_OID_FUNC = Option super::super::Foundation::BOOL>; -pub type PFN_CRYPT_ENUM_OID_INFO = Option super::super::Foundation::BOOL>; -pub type PFN_CRYPT_EXPORT_PUBLIC_KEY_INFO_EX2_FUNC = Option super::super::Foundation::BOOL>; -pub type PFN_CRYPT_EXPORT_PUBLIC_KEY_INFO_FROM_BCRYPT_HANDLE_FUNC = Option super::super::Foundation::BOOL>; -pub type PFN_CRYPT_EXTRACT_ENCODED_SIGNATURE_PARAMETERS_FUNC = Option super::super::Foundation::BOOL>; +pub type PFN_CRYPT_CANCEL_RETRIEVAL = Option windows_core::BOOL>; +pub type PFN_CRYPT_ENUM_KEYID_PROP = Option windows_core::BOOL>; +pub type PFN_CRYPT_ENUM_OID_FUNC = Option windows_core::BOOL>; +pub type PFN_CRYPT_ENUM_OID_INFO = Option windows_core::BOOL>; +pub type PFN_CRYPT_EXPORT_PUBLIC_KEY_INFO_EX2_FUNC = Option windows_core::BOOL>; +pub type PFN_CRYPT_EXPORT_PUBLIC_KEY_INFO_FROM_BCRYPT_HANDLE_FUNC = Option windows_core::BOOL>; +pub type PFN_CRYPT_EXTRACT_ENCODED_SIGNATURE_PARAMETERS_FUNC = Option windows_core::BOOL>; pub type PFN_CRYPT_FREE = Option; pub type PFN_CRYPT_GET_SIGNER_CERTIFICATE = Option *mut CERT_CONTEXT>; -pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FLUSH = Option super::super::Foundation::BOOL>; +pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FLUSH = Option windows_core::BOOL>; pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE = Option; pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_IDENTIFIER = Option; pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_PASSWORD = Option; -pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_GET = Option super::super::Foundation::BOOL>; -pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_INITIALIZE = Option super::super::Foundation::BOOL>; +pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_GET = Option windows_core::BOOL>; +pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_INITIALIZE = Option windows_core::BOOL>; pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_RELEASE = Option; -pub type PFN_CRYPT_SIGN_AND_ENCODE_HASH_FUNC = Option super::super::Foundation::BOOL>; -pub type PFN_CRYPT_VERIFY_ENCODED_SIGNATURE_FUNC = Option super::super::Foundation::BOOL>; +pub type PFN_CRYPT_SIGN_AND_ENCODE_HASH_FUNC = Option windows_core::BOOL>; +pub type PFN_CRYPT_VERIFY_ENCODED_SIGNATURE_FUNC = Option windows_core::BOOL>; pub type PFN_CRYPT_XML_CREATE_TRANSFORM = Option windows_core::HRESULT>; pub type PFN_CRYPT_XML_DATA_PROVIDER_CLOSE = Option windows_core::HRESULT>; pub type PFN_CRYPT_XML_DATA_PROVIDER_READ = Option windows_core::HRESULT>; -pub type PFN_CRYPT_XML_ENUM_ALG_INFO = Option super::super::Foundation::BOOL>; +pub type PFN_CRYPT_XML_ENUM_ALG_INFO = Option windows_core::BOOL>; pub type PFN_CRYPT_XML_WRITE_CALLBACK = Option windows_core::HRESULT>; pub type PFN_CSP_ALLOC = Option *mut core::ffi::c_void>; pub type PFN_CSP_CACHE_ADD_FILE = Option u32>; @@ -14309,15 +14309,15 @@ pub type PFN_CSP_GET_DH_AGREEMENT = Option u32>; pub type PFN_CSP_REALLOC = Option *mut core::ffi::c_void>; pub type PFN_CSP_UNPAD_DATA = Option u32>; -pub type PFN_EXPORT_PRIV_KEY_FUNC = Option super::super::Foundation::BOOL>; +pub type PFN_EXPORT_PRIV_KEY_FUNC = Option windows_core::BOOL>; pub type PFN_FREE_ENCODED_OBJECT_FUNC = Option; -pub type PFN_IMPORT_PRIV_KEY_FUNC = Option super::super::Foundation::BOOL>; -pub type PFN_IMPORT_PUBLIC_KEY_INFO_EX2_FUNC = Option super::super::Foundation::BOOL>; +pub type PFN_IMPORT_PRIV_KEY_FUNC = Option windows_core::BOOL>; +pub type PFN_IMPORT_PUBLIC_KEY_INFO_EX2_FUNC = Option windows_core::BOOL>; pub type PFN_MD_ENCRYPT_DATA = Option u32>; pub type PFN_MD_IMPORT_SESSION_KEY = Option u32>; pub type PFN_NCRYPT_ALLOC = Option *mut core::ffi::c_void>; pub type PFN_NCRYPT_FREE = Option; -pub type PFN_OFFLOAD_MOD_EXPO = Option super::super::Foundation::BOOL>; +pub type PFN_OFFLOAD_MOD_EXPO = Option windows_core::BOOL>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct PIN_CACHE_POLICY { @@ -14425,7 +14425,7 @@ pub struct POLICY_ELEMENT { pub issuedTokenParameters: windows_core::PCWSTR, pub privacyNoticeLink: windows_core::PCWSTR, pub privacyNoticeVersion: u32, - pub useManagedPresentation: super::super::Foundation::BOOL, + pub useManagedPresentation: windows_core::BOOL, } impl Default for POLICY_ELEMENT { fn default() -> Self { @@ -14705,8 +14705,8 @@ pub const SIGNATURE_RESOURCE_NUMBER: u32 = 666u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct SIGNER_ATTR_AUTHCODE { pub cbSize: u32, - pub fCommercial: super::super::Foundation::BOOL, - pub fIndividual: super::super::Foundation::BOOL, + pub fCommercial: windows_core::BOOL, + pub fIndividual: windows_core::BOOL, pub pwszName: windows_core::PCWSTR, pub pwszInfo: windows_core::PCWSTR, } diff --git a/crates/libs/windows/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs index 4e0de6a584..424947e158 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/DiagnosticDataQuery/mod.rs @@ -231,12 +231,12 @@ pub unsafe fn DdqGetTranscriptConfiguration(hsession: HDIAGNOSTIC_DATA_QUERY_SES } } #[inline] -pub unsafe fn DdqIsDiagnosticRecordSampledIn(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION, providergroup: *const windows_core::GUID, providerid: Option<*const windows_core::GUID>, providername: P3, eventid: Option<*const u32>, eventname: P5, eventversion: Option<*const u32>, eventkeywords: Option<*const u64>) -> windows_core::Result +pub unsafe fn DdqIsDiagnosticRecordSampledIn(hsession: HDIAGNOSTIC_DATA_QUERY_SESSION, providergroup: *const windows_core::GUID, providerid: Option<*const windows_core::GUID>, providername: P3, eventid: Option<*const u32>, eventname: P5, eventversion: Option<*const u32>, eventkeywords: Option<*const u64>) -> windows_core::Result where P3: windows_core::Param, P5: windows_core::Param, { - windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqIsDiagnosticRecordSampledIn(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, providergroup : *const windows_core::GUID, providerid : *const windows_core::GUID, providername : windows_core::PCWSTR, eventid : *const u32, eventname : windows_core::PCWSTR, eventversion : *const u32, eventkeywords : *const u64, issampledin : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("diagnosticdataquery.dll" "system" fn DdqIsDiagnosticRecordSampledIn(hsession : HDIAGNOSTIC_DATA_QUERY_SESSION, providergroup : *const windows_core::GUID, providerid : *const windows_core::GUID, providername : windows_core::PCWSTR, eventid : *const u32, eventname : windows_core::PCWSTR, eventversion : *const u32, eventkeywords : *const u64, issampledin : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); DdqIsDiagnosticRecordSampledIn(hsession, providergroup, providerid.unwrap_or(core::mem::zeroed()) as _, providername.param().abi(), eventid.unwrap_or(core::mem::zeroed()) as _, eventname.param().abi(), eventversion.unwrap_or(core::mem::zeroed()) as _, eventkeywords.unwrap_or(core::mem::zeroed()) as _, &mut result__).map(|| core::mem::transmute(result__)) @@ -345,7 +345,7 @@ pub struct DIAGNOSTIC_DATA_RECORD { pub privacyTagCount: u32, pub categoryIds: *mut i32, pub categoryIdCount: u32, - pub isCoreData: super::super::Foundation::BOOL, + pub isCoreData: windows_core::BOOL, pub extra1: windows_core::PWSTR, pub extra2: windows_core::PWSTR, pub extra3: windows_core::PWSTR, @@ -365,7 +365,7 @@ pub struct DIAGNOSTIC_DATA_SEARCH_CRITERIA { pub categoryIdCount: u32, pub privacyTags: *const i32, pub privacyTagCount: u32, - pub coreDataOnly: super::super::Foundation::BOOL, + pub coreDataOnly: windows_core::BOOL, } impl Default for DIAGNOSTIC_DATA_SEARCH_CRITERIA { fn default() -> Self { 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 a883da3b31..aaa377886c 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs @@ -30,8 +30,8 @@ pub unsafe fn SrpDisablePermissiveModeFileEncryption() -> windows_core::Result<( } #[cfg(feature = "Win32_Storage_Packaging_Appx")] #[inline] -pub unsafe fn SrpDoesPolicyAllowAppExecution(packageid: *const super::super::Storage::Packaging::Appx::PACKAGE_ID) -> windows_core::Result { - windows_targets::link!("srpapi.dll" "system" fn SrpDoesPolicyAllowAppExecution(packageid : *const super::super::Storage::Packaging::Appx:: PACKAGE_ID, isallowed : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn SrpDoesPolicyAllowAppExecution(packageid: *const super::super::Storage::Packaging::Appx::PACKAGE_ID) -> windows_core::Result { + windows_targets::link!("srpapi.dll" "system" fn SrpDoesPolicyAllowAppExecution(packageid : *const super::super::Storage::Packaging::Appx:: PACKAGE_ID, isallowed : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); SrpDoesPolicyAllowAppExecution(packageid, &mut result__).map(|| core::mem::transmute(result__)) 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 32029bfe62..b0971627bf 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/ExtensibleAuthenticationProtocol/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/ExtensibleAuthenticationProtocol/mod.rs @@ -63,8 +63,8 @@ pub unsafe fn EapHostPeerGetAuthStatus(sessionhandle: u32, authparam: EapHostPee unsafe { EapHostPeerGetAuthStatus(sessionhandle, authparam, pcbauthdata as _, ppauthdata as _, ppeaperror as _) } } #[inline] -pub unsafe fn EapHostPeerGetDataToUnplumbCredentials(pconnectionidthatlastsavedcreds: *mut windows_core::GUID, phcredentialimpersonationtoken: *mut isize, sessionhandle: u32, ppeaperror: *mut *mut EAP_ERROR, fsavetocredman: *mut super::super::Foundation::BOOL) -> u32 { - windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerGetDataToUnplumbCredentials(pconnectionidthatlastsavedcreds : *mut windows_core::GUID, phcredentialimpersonationtoken : *mut isize, sessionhandle : u32, ppeaperror : *mut *mut EAP_ERROR, fsavetocredman : *mut super::super::Foundation:: BOOL) -> u32); +pub unsafe fn EapHostPeerGetDataToUnplumbCredentials(pconnectionidthatlastsavedcreds: *mut windows_core::GUID, phcredentialimpersonationtoken: *mut isize, sessionhandle: u32, ppeaperror: *mut *mut EAP_ERROR, fsavetocredman: *mut windows_core::BOOL) -> u32 { + windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerGetDataToUnplumbCredentials(pconnectionidthatlastsavedcreds : *mut windows_core::GUID, phcredentialimpersonationtoken : *mut isize, sessionhandle : u32, ppeaperror : *mut *mut EAP_ERROR, fsavetocredman : *mut windows_core::BOOL) -> u32); unsafe { EapHostPeerGetDataToUnplumbCredentials(pconnectionidthatlastsavedcreds as _, phcredentialimpersonationtoken as _, sessionhandle, ppeaperror as _, fsavetocredman as _) } } #[inline] @@ -76,8 +76,8 @@ where unsafe { EapHostPeerGetEncryptedPassword(dwsizeofpassword, szpassword.param().abi(), ppszencpassword as _) } } #[inline] -pub unsafe fn EapHostPeerGetIdentity(dwversion: u32, dwflags: u32, eapmethodtype: EAP_METHOD_TYPE, pconnectiondata: &[u8], puserdata: Option<&[u8]>, htokenimpersonateuser: super::super::Foundation::HANDLE, pfinvokeui: *mut super::super::Foundation::BOOL, pdwsizeofuserdataout: *mut u32, ppuserdataout: *mut *mut u8, ppwszidentity: *mut windows_core::PWSTR, ppeaperror: *mut *mut EAP_ERROR, ppvreserved: *mut *mut u8) -> u32 { - windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerGetIdentity(dwversion : u32, dwflags : u32, eapmethodtype : EAP_METHOD_TYPE, dwsizeofconnectiondata : u32, pconnectiondata : *const u8, dwsizeofuserdata : u32, puserdata : *const u8, htokenimpersonateuser : super::super::Foundation:: HANDLE, pfinvokeui : *mut super::super::Foundation:: BOOL, pdwsizeofuserdataout : *mut u32, ppuserdataout : *mut *mut u8, ppwszidentity : *mut windows_core::PWSTR, ppeaperror : *mut *mut EAP_ERROR, ppvreserved : *mut *mut u8) -> u32); +pub unsafe fn EapHostPeerGetIdentity(dwversion: u32, dwflags: u32, eapmethodtype: EAP_METHOD_TYPE, pconnectiondata: &[u8], puserdata: Option<&[u8]>, htokenimpersonateuser: super::super::Foundation::HANDLE, pfinvokeui: *mut windows_core::BOOL, pdwsizeofuserdataout: *mut u32, ppuserdataout: *mut *mut u8, ppwszidentity: *mut windows_core::PWSTR, ppeaperror: *mut *mut EAP_ERROR, ppvreserved: *mut *mut u8) -> u32 { + windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerGetIdentity(dwversion : u32, dwflags : u32, eapmethodtype : EAP_METHOD_TYPE, dwsizeofconnectiondata : u32, pconnectiondata : *const u8, dwsizeofuserdata : u32, puserdata : *const u8, htokenimpersonateuser : super::super::Foundation:: HANDLE, pfinvokeui : *mut windows_core::BOOL, pdwsizeofuserdataout : *mut u32, ppuserdataout : *mut *mut u8, ppwszidentity : *mut windows_core::PWSTR, ppeaperror : *mut *mut EAP_ERROR, ppvreserved : *mut *mut u8) -> u32); unsafe { EapHostPeerGetIdentity(dwversion, dwflags, core::mem::transmute(eapmethodtype), pconnectiondata.len().try_into().unwrap(), core::mem::transmute(pconnectiondata.as_ptr()), puserdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(puserdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), htokenimpersonateuser, pfinvokeui as _, pdwsizeofuserdataout as _, ppuserdataout as _, ppwszidentity as _, ppeaperror as _, ppvreserved as _) } } #[inline] @@ -463,7 +463,7 @@ pub const EAP_METHOD_AUTHENTICATOR_RESPONSE_SEND: EAP_METHOD_AUTHENTICATOR_RESPO #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct EAP_METHOD_AUTHENTICATOR_RESULT { - pub fIsSuccess: super::super::Foundation::BOOL, + pub fIsSuccess: windows_core::BOOL, pub dwFailureReason: u32, pub pAuthAttribs: *mut EAP_ATTRIBUTES, } @@ -565,7 +565,7 @@ impl Default for EAP_METHOD_PROPERTY_VALUE { #[derive(Clone, Copy, Debug, PartialEq)] pub struct EAP_METHOD_PROPERTY_VALUE_BOOL { pub length: u32, - pub value: super::super::Foundation::BOOL, + pub value: windows_core::BOOL, } impl Default for EAP_METHOD_PROPERTY_VALUE_BOOL { fn default() -> Self { @@ -754,12 +754,12 @@ pub const EapHostPeerIdentityExtendedInfo: EapHostPeerAuthParams = EapHostPeerAu #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct EapHostPeerMethodResult { - pub fIsSuccess: super::super::Foundation::BOOL, + pub fIsSuccess: windows_core::BOOL, pub dwFailureReasonCode: u32, - pub fSaveConnectionData: super::super::Foundation::BOOL, + pub fSaveConnectionData: windows_core::BOOL, pub dwSizeofConnectionData: u32, pub pConnectionData: *mut u8, - pub fSaveUserData: super::super::Foundation::BOOL, + pub fSaveUserData: windows_core::BOOL, pub dwSizeofUserData: u32, pub pUserData: *mut u8, pub pAttribArray: *mut EAP_ATTRIBUTES, @@ -805,7 +805,7 @@ impl Default for EapPacket { #[derive(Clone, Copy, Debug, PartialEq)] pub struct EapPeerMethodOutput { pub action: EapPeerMethodResponseAction, - pub fAllowNotifications: super::super::Foundation::BOOL, + pub fAllowNotifications: windows_core::BOOL, } impl Default for EapPeerMethodOutput { fn default() -> Self { @@ -825,18 +825,18 @@ pub const EapPeerMethodResponseActionSend: EapPeerMethodResponseAction = EapPeer #[cfg(feature = "Win32_Security_Cryptography")] #[derive(Clone, Copy, Debug, PartialEq)] pub struct EapPeerMethodResult { - pub fIsSuccess: super::super::Foundation::BOOL, + pub fIsSuccess: windows_core::BOOL, pub dwFailureReasonCode: u32, - pub fSaveConnectionData: super::super::Foundation::BOOL, + pub fSaveConnectionData: windows_core::BOOL, pub dwSizeofConnectionData: u32, pub pConnectionData: *mut u8, - pub fSaveUserData: super::super::Foundation::BOOL, + pub fSaveUserData: windows_core::BOOL, pub dwSizeofUserData: u32, pub pUserData: *mut u8, pub pAttribArray: *mut EAP_ATTRIBUTES, pub pEapError: *mut EAP_ERROR, pub pNgcKerbTicket: *mut NgcTicketContext, - pub fSaveToCredMan: super::super::Foundation::BOOL, + pub fSaveToCredMan: windows_core::BOOL, } #[cfg(feature = "Win32_Security_Cryptography")] impl Default for EapPeerMethodResult { @@ -1431,16 +1431,16 @@ impl Default for PPP_EAP_INFO { pub struct PPP_EAP_INPUT { pub dwSizeInBytes: u32, pub fFlags: u32, - pub fAuthenticator: super::super::Foundation::BOOL, + pub fAuthenticator: windows_core::BOOL, pub pwszIdentity: windows_core::PWSTR, pub pwszPassword: windows_core::PWSTR, pub bInitialId: u8, pub pUserAttributes: *mut RAS_AUTH_ATTRIBUTE, - pub fAuthenticationComplete: super::super::Foundation::BOOL, + pub fAuthenticationComplete: windows_core::BOOL, pub dwAuthResultCode: u32, pub hTokenImpersonateUser: super::super::Foundation::HANDLE, - pub fSuccessPacketReceived: super::super::Foundation::BOOL, - pub fDataReceivedFromInteractiveUI: super::super::Foundation::BOOL, + pub fSuccessPacketReceived: windows_core::BOOL, + pub fDataReceivedFromInteractiveUI: windows_core::BOOL, pub pDataFromInteractiveUI: *mut u8, pub dwSizeOfDataFromInteractiveUI: u32, pub pConnectionData: *mut u8, @@ -1449,7 +1449,7 @@ pub struct PPP_EAP_INPUT { pub dwSizeOfUserData: u32, pub hReserved: super::super::Foundation::HANDLE, pub guidConnectionId: windows_core::GUID, - pub isVpn: super::super::Foundation::BOOL, + pub isVpn: windows_core::BOOL, } impl Default for PPP_EAP_INPUT { fn default() -> Self { @@ -1464,17 +1464,17 @@ pub struct PPP_EAP_OUTPUT { pub Action: PPP_EAP_ACTION, pub dwAuthResultCode: u32, pub pUserAttributes: *mut RAS_AUTH_ATTRIBUTE, - pub fInvokeInteractiveUI: super::super::Foundation::BOOL, + pub fInvokeInteractiveUI: windows_core::BOOL, pub pUIContextData: *mut u8, pub dwSizeOfUIContextData: u32, - pub fSaveConnectionData: super::super::Foundation::BOOL, + pub fSaveConnectionData: windows_core::BOOL, pub pConnectionData: *mut u8, pub dwSizeOfConnectionData: u32, - pub fSaveUserData: super::super::Foundation::BOOL, + pub fSaveUserData: windows_core::BOOL, pub pUserData: *mut u8, pub dwSizeOfUserData: u32, pub pNgcKerbTicket: *mut NgcTicketContext, - pub fSaveToCredMan: super::super::Foundation::BOOL, + pub fSaveToCredMan: windows_core::BOOL, } #[cfg(feature = "Win32_Security_Cryptography")] impl Default for PPP_EAP_OUTPUT { 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 c1c2fb25a2..27f9014e8d 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Isolation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Isolation/mod.rs @@ -54,7 +54,7 @@ where } #[inline] pub unsafe fn GetAppContainerNamedObjectPath(token: Option, appcontainersid: Option, objectpath: Option<&mut [u16]>, returnlength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetAppContainerNamedObjectPath(token : super::super::Foundation:: HANDLE, appcontainersid : super:: PSID, objectpathlength : u32, objectpath : windows_core::PWSTR, returnlength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetAppContainerNamedObjectPath(token : super::super::Foundation:: HANDLE, appcontainersid : super:: PSID, objectpathlength : u32, objectpath : windows_core::PWSTR, returnlength : *mut u32) -> windows_core::BOOL); unsafe { GetAppContainerNamedObjectPath(token.unwrap_or(core::mem::zeroed()) as _, appcontainersid.unwrap_or(core::mem::zeroed()) as _, objectpath.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(objectpath.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), returnlength as _).ok() } } #[cfg(feature = "Win32_System_Registry")] @@ -67,32 +67,32 @@ pub unsafe fn GetAppContainerRegistryLocation(desiredaccess: u32) -> windows_cor } } #[inline] -pub unsafe fn IsCrossIsolatedEnvironmentClipboardContent() -> windows_core::Result { - windows_targets::link!("isolatedwindowsenvironmentutils.dll" "system" fn IsCrossIsolatedEnvironmentClipboardContent(iscrossisolatedenvironmentclipboardcontent : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn IsCrossIsolatedEnvironmentClipboardContent() -> windows_core::Result { + windows_targets::link!("isolatedwindowsenvironmentutils.dll" "system" fn IsCrossIsolatedEnvironmentClipboardContent(iscrossisolatedenvironmentclipboardcontent : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); IsCrossIsolatedEnvironmentClipboardContent(&mut result__).map(|| core::mem::transmute(result__)) } } #[inline] -pub unsafe fn IsProcessInIsolatedContainer() -> windows_core::Result { - windows_targets::link!("api-ms-win-security-isolatedcontainer-l1-1-0.dll" "system" fn IsProcessInIsolatedContainer(isprocessinisolatedcontainer : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn IsProcessInIsolatedContainer() -> windows_core::Result { + windows_targets::link!("api-ms-win-security-isolatedcontainer-l1-1-0.dll" "system" fn IsProcessInIsolatedContainer(isprocessinisolatedcontainer : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); IsProcessInIsolatedContainer(&mut result__).map(|| core::mem::transmute(result__)) } } #[inline] -pub unsafe fn IsProcessInIsolatedWindowsEnvironment() -> windows_core::Result { - windows_targets::link!("isolatedwindowsenvironmentutils.dll" "system" fn IsProcessInIsolatedWindowsEnvironment(isprocessinisolatedwindowsenvironment : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn IsProcessInIsolatedWindowsEnvironment() -> windows_core::Result { + windows_targets::link!("isolatedwindowsenvironmentutils.dll" "system" fn IsProcessInIsolatedWindowsEnvironment(isprocessinisolatedwindowsenvironment : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); IsProcessInIsolatedWindowsEnvironment(&mut result__).map(|| core::mem::transmute(result__)) } } #[inline] -pub unsafe fn IsProcessInWDAGContainer(reserved: *const core::ffi::c_void) -> windows_core::Result { - windows_targets::link!("api-ms-win-security-isolatedcontainer-l1-1-1.dll" "system" fn IsProcessInWDAGContainer(reserved : *const core::ffi::c_void, isprocessinwdagcontainer : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn IsProcessInWDAGContainer(reserved: *const core::ffi::c_void) -> windows_core::Result { + windows_targets::link!("api-ms-win-security-isolatedcontainer-l1-1-1.dll" "system" fn IsProcessInWDAGContainer(reserved : *const core::ffi::c_void, isprocessinwdagcontainer : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); IsProcessInWDAGContainer(reserved, &mut result__).map(|| core::mem::transmute(result__)) @@ -159,7 +159,7 @@ impl IIsolatedProcessLauncher { pub unsafe fn AllowSetForegroundAccess(&self, pid: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).AllowSetForegroundAccess)(windows_core::Interface::as_raw(self), pid).ok() } } - pub unsafe fn IsContainerRunning(&self) -> windows_core::Result { + pub unsafe fn IsContainerRunning(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsContainerRunning)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -170,17 +170,17 @@ impl IIsolatedProcessLauncher { pub struct IIsolatedProcessLauncher_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub LaunchProcess: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, - pub ShareDirectory: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ShareDirectory: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, pub GetContainerGuid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub AllowSetForegroundAccess: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub IsContainerRunning: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsContainerRunning: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IIsolatedProcessLauncher_Impl: windows_core::IUnknownImpl { fn LaunchProcess(&self, process: &windows_core::PCWSTR, arguments: &windows_core::PCWSTR, workingdirectory: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn ShareDirectory(&self, hostpath: &windows_core::PCWSTR, containerpath: &windows_core::PCWSTR, readonly: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ShareDirectory(&self, hostpath: &windows_core::PCWSTR, containerpath: &windows_core::PCWSTR, readonly: windows_core::BOOL) -> windows_core::Result<()>; fn GetContainerGuid(&self) -> windows_core::Result; fn AllowSetForegroundAccess(&self, pid: u32) -> windows_core::Result<()>; - fn IsContainerRunning(&self) -> windows_core::Result; + fn IsContainerRunning(&self) -> windows_core::Result; } impl IIsolatedProcessLauncher_Vtbl { pub const fn new() -> Self { @@ -190,7 +190,7 @@ impl IIsolatedProcessLauncher_Vtbl { IIsolatedProcessLauncher_Impl::LaunchProcess(this, core::mem::transmute(&process), core::mem::transmute(&arguments), core::mem::transmute(&workingdirectory)).into() } } - unsafe extern "system" fn ShareDirectory(this: *mut core::ffi::c_void, hostpath: windows_core::PCWSTR, containerpath: windows_core::PCWSTR, readonly: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ShareDirectory(this: *mut core::ffi::c_void, hostpath: windows_core::PCWSTR, containerpath: windows_core::PCWSTR, readonly: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IIsolatedProcessLauncher_Impl::ShareDirectory(this, core::mem::transmute(&hostpath), core::mem::transmute(&containerpath), core::mem::transmute_copy(&readonly)).into() @@ -214,7 +214,7 @@ impl IIsolatedProcessLauncher_Vtbl { IIsolatedProcessLauncher_Impl::AllowSetForegroundAccess(this, core::mem::transmute_copy(&pid)).into() } } - unsafe extern "system" fn IsContainerRunning(this: *mut core::ffi::c_void, running: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsContainerRunning(this: *mut core::ffi::c_void, running: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IIsolatedProcessLauncher_Impl::IsContainerRunning(this) { @@ -285,7 +285,7 @@ pub const IsolatedAppLauncher: windows_core::GUID = windows_core::GUID::from_u12 #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct IsolatedAppLauncherTelemetryParameters { - pub EnableForLaunch: super::super::Foundation::BOOL, + pub EnableForLaunch: windows_core::BOOL, pub CorrelationGUID: windows_core::GUID, } impl Default for IsolatedAppLauncherTelemetryParameters { diff --git a/crates/libs/windows/src/Windows/Win32/Security/NetworkAccessProtection/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/NetworkAccessProtection/mod.rs index 99a02bb6ef..90d934971b 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/NetworkAccessProtection/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/NetworkAccessProtection/mod.rs @@ -31,7 +31,7 @@ pub struct FailureCategory(pub i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct FailureCategoryMapping { - pub mappingCompliance: [super::super::Foundation::BOOL; 5], + pub mappingCompliance: [windows_core::BOOL; 5], } impl Default for FailureCategoryMapping { fn default() -> Self { 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 6af352e255..c31a62c974 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Tpm/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Tpm/mod.rs @@ -1,14 +1,14 @@ windows_core::imp::define_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: bool, pstatuscallback: P11, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn CreateVirtualSmartCard(&self, pszfriendlyname: P0, badminalgid: u8, pbadminkey: &[u8], pbadminkcv: &[u8], pbpuk: &[u8], pbpin: &[u8], fgenerate: bool, pstatuscallback: P11, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, P11: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).CreateVirtualSmartCard)(windows_core::Interface::as_raw(self), pszfriendlyname.param().abi(), badminalgid, core::mem::transmute(pbadminkey.as_ptr()), pbadminkey.len().try_into().unwrap(), core::mem::transmute(pbadminkcv.as_ptr()), pbadminkcv.len().try_into().unwrap(), core::mem::transmute(pbpuk.as_ptr()), pbpuk.len().try_into().unwrap(), core::mem::transmute(pbpin.as_ptr()), pbpin.len().try_into().unwrap(), fgenerate.into(), pstatuscallback.param().abi(), ppszinstanceid as _, pfneedreboot as _).ok() } } - pub unsafe fn DestroyVirtualSmartCard(&self, pszinstanceid: P0, pstatuscallback: P1) -> windows_core::Result + pub unsafe fn DestroyVirtualSmartCard(&self, pszinstanceid: P0, pstatuscallback: P1) -> windows_core::Result where P0: windows_core::Param, P1: windows_core::Param, @@ -22,16 +22,16 @@ impl ITpmVirtualSmartCardManager { #[repr(C)] pub struct ITpmVirtualSmartCardManager_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub CreateVirtualSmartCard: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u8, *const u8, u32, *const u8, u32, *const u8, u32, *const u8, u32, super::super::Foundation::BOOL, *mut core::ffi::c_void, *mut windows_core::PWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub DestroyVirtualSmartCard: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CreateVirtualSmartCard: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u8, *const u8, u32, *const u8, u32, *const u8, u32, *const u8, u32, windows_core::BOOL, *mut core::ffi::c_void, *mut windows_core::PWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub DestroyVirtualSmartCard: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITpmVirtualSmartCardManager_Impl: windows_core::IUnknownImpl { - fn CreateVirtualSmartCard(&self, pszfriendlyname: &windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, fgenerate: super::super::Foundation::BOOL, pstatuscallback: windows_core::Ref, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn DestroyVirtualSmartCard(&self, pszinstanceid: &windows_core::PCWSTR, pstatuscallback: windows_core::Ref) -> windows_core::Result; + fn CreateVirtualSmartCard(&self, pszfriendlyname: &windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, fgenerate: windows_core::BOOL, pstatuscallback: windows_core::Ref, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn DestroyVirtualSmartCard(&self, pszinstanceid: &windows_core::PCWSTR, pstatuscallback: windows_core::Ref) -> windows_core::Result; } impl ITpmVirtualSmartCardManager_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CreateVirtualSmartCard(this: *mut core::ffi::c_void, pszfriendlyname: windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, fgenerate: super::super::Foundation::BOOL, pstatuscallback: *mut core::ffi::c_void, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CreateVirtualSmartCard(this: *mut core::ffi::c_void, pszfriendlyname: windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, fgenerate: windows_core::BOOL, pstatuscallback: *mut core::ffi::c_void, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITpmVirtualSmartCardManager_Impl::CreateVirtualSmartCard( @@ -54,7 +54,7 @@ impl ITpmVirtualSmartCardManager_Vtbl { .into() } } - unsafe extern "system" fn DestroyVirtualSmartCard(this: *mut core::ffi::c_void, pszinstanceid: windows_core::PCWSTR, pstatuscallback: *mut core::ffi::c_void, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DestroyVirtualSmartCard(this: *mut core::ffi::c_void, pszinstanceid: windows_core::PCWSTR, pstatuscallback: *mut core::ffi::c_void, pfneedreboot: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITpmVirtualSmartCardManager_Impl::DestroyVirtualSmartCard(this, core::mem::transmute(&pszinstanceid), core::mem::transmute_copy(&pstatuscallback)) { @@ -86,7 +86,7 @@ impl core::ops::Deref for ITpmVirtualSmartCardManager2 { } windows_core::imp::interface_hierarchy!(ITpmVirtualSmartCardManager2, windows_core::IUnknown, ITpmVirtualSmartCardManager); impl ITpmVirtualSmartCardManager2 { - pub unsafe fn CreateVirtualSmartCardWithPinPolicy(&self, pszfriendlyname: P0, badminalgid: u8, pbadminkey: &[u8], pbadminkcv: &[u8], pbpuk: &[u8], pbpin: &[u8], pbpinpolicy: &[u8], fgenerate: bool, pstatuscallback: P13, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn CreateVirtualSmartCardWithPinPolicy(&self, pszfriendlyname: P0, badminalgid: u8, pbadminkey: &[u8], pbadminkcv: &[u8], pbpuk: &[u8], pbpin: &[u8], pbpinpolicy: &[u8], fgenerate: bool, pstatuscallback: P13, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, P13: windows_core::Param, @@ -118,14 +118,14 @@ impl ITpmVirtualSmartCardManager2 { #[repr(C)] pub struct ITpmVirtualSmartCardManager2_Vtbl { pub base__: ITpmVirtualSmartCardManager_Vtbl, - pub CreateVirtualSmartCardWithPinPolicy: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u8, *const u8, u32, *const u8, u32, *const u8, u32, *const u8, u32, *const u8, u32, super::super::Foundation::BOOL, *mut core::ffi::c_void, *mut windows_core::PWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CreateVirtualSmartCardWithPinPolicy: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u8, *const u8, u32, *const u8, u32, *const u8, u32, *const u8, u32, *const u8, u32, windows_core::BOOL, *mut core::ffi::c_void, *mut windows_core::PWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITpmVirtualSmartCardManager2_Impl: ITpmVirtualSmartCardManager_Impl { - fn CreateVirtualSmartCardWithPinPolicy(&self, pszfriendlyname: &windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, pbpinpolicy: *const u8, cbpinpolicy: u32, fgenerate: super::super::Foundation::BOOL, pstatuscallback: windows_core::Ref, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn CreateVirtualSmartCardWithPinPolicy(&self, pszfriendlyname: &windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, pbpinpolicy: *const u8, cbpinpolicy: u32, fgenerate: windows_core::BOOL, pstatuscallback: windows_core::Ref, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl ITpmVirtualSmartCardManager2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CreateVirtualSmartCardWithPinPolicy(this: *mut core::ffi::c_void, pszfriendlyname: windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, pbpinpolicy: *const u8, cbpinpolicy: u32, fgenerate: super::super::Foundation::BOOL, pstatuscallback: *mut core::ffi::c_void, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CreateVirtualSmartCardWithPinPolicy(this: *mut core::ffi::c_void, pszfriendlyname: windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, pbpinpolicy: *const u8, cbpinpolicy: u32, fgenerate: windows_core::BOOL, pstatuscallback: *mut core::ffi::c_void, ppszinstanceid: *mut windows_core::PWSTR, pfneedreboot: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITpmVirtualSmartCardManager2_Impl::CreateVirtualSmartCardWithPinPolicy( @@ -202,14 +202,14 @@ impl ITpmVirtualSmartCardManager3 { #[repr(C)] pub struct ITpmVirtualSmartCardManager3_Vtbl { pub base__: ITpmVirtualSmartCardManager2_Vtbl, - pub CreateVirtualSmartCardWithAttestation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u8, *const u8, u32, *const u8, u32, *const u8, u32, *const u8, u32, *const u8, u32, TPMVSC_ATTESTATION_TYPE, super::super::Foundation::BOOL, *mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, + pub CreateVirtualSmartCardWithAttestation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u8, *const u8, u32, *const u8, u32, *const u8, u32, *const u8, u32, *const u8, u32, TPMVSC_ATTESTATION_TYPE, windows_core::BOOL, *mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, } pub trait ITpmVirtualSmartCardManager3_Impl: ITpmVirtualSmartCardManager2_Impl { - fn CreateVirtualSmartCardWithAttestation(&self, pszfriendlyname: &windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, pbpinpolicy: *const u8, cbpinpolicy: u32, attestationtype: TPMVSC_ATTESTATION_TYPE, fgenerate: super::super::Foundation::BOOL, pstatuscallback: windows_core::Ref) -> windows_core::Result; + fn CreateVirtualSmartCardWithAttestation(&self, pszfriendlyname: &windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, pbpinpolicy: *const u8, cbpinpolicy: u32, attestationtype: TPMVSC_ATTESTATION_TYPE, fgenerate: windows_core::BOOL, pstatuscallback: windows_core::Ref) -> windows_core::Result; } impl ITpmVirtualSmartCardManager3_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CreateVirtualSmartCardWithAttestation(this: *mut core::ffi::c_void, pszfriendlyname: windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, pbpinpolicy: *const u8, cbpinpolicy: u32, attestationtype: TPMVSC_ATTESTATION_TYPE, fgenerate: super::super::Foundation::BOOL, pstatuscallback: *mut core::ffi::c_void, ppszinstanceid: *mut windows_core::PWSTR) -> windows_core::HRESULT { + unsafe extern "system" fn CreateVirtualSmartCardWithAttestation(this: *mut core::ffi::c_void, pszfriendlyname: windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, pbpinpolicy: *const u8, cbpinpolicy: u32, attestationtype: TPMVSC_ATTESTATION_TYPE, fgenerate: windows_core::BOOL, pstatuscallback: *mut core::ffi::c_void, ppszinstanceid: *mut windows_core::PWSTR) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITpmVirtualSmartCardManager3_Impl::CreateVirtualSmartCardWithAttestation( diff --git a/crates/libs/windows/src/Windows/Win32/Security/WinTrust/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/WinTrust/mod.rs index 08f1f5d3e1..665ee98221 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/WinTrust/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/WinTrust/mod.rs @@ -1,11 +1,11 @@ #[inline] -pub unsafe fn OpenPersonalTrustDBDialog(hwndparent: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("wintrust.dll" "system" fn OpenPersonalTrustDBDialog(hwndparent : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn OpenPersonalTrustDBDialog(hwndparent: Option) -> windows_core::BOOL { + windows_targets::link!("wintrust.dll" "system" fn OpenPersonalTrustDBDialog(hwndparent : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { OpenPersonalTrustDBDialog(hwndparent.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn OpenPersonalTrustDBDialogEx(hwndparent: Option, dwflags: u32, pvreserved: Option<*mut *mut core::ffi::c_void>) -> super::super::Foundation::BOOL { - windows_targets::link!("wintrust.dll" "system" fn OpenPersonalTrustDBDialogEx(hwndparent : super::super::Foundation:: HWND, dwflags : u32, pvreserved : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn OpenPersonalTrustDBDialogEx(hwndparent: Option, dwflags: u32, pvreserved: Option<*mut *mut core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("wintrust.dll" "system" fn OpenPersonalTrustDBDialogEx(hwndparent : super::super::Foundation:: HWND, dwflags : u32, pvreserved : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { OpenPersonalTrustDBDialogEx(hwndparent.unwrap_or(core::mem::zeroed()) as _, dwflags, pvreserved.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(all(feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))] @@ -16,8 +16,8 @@ pub unsafe fn WTHelperCertCheckValidSignature(pprovdata: *mut CRYPT_PROVIDER_DAT } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] -pub unsafe fn WTHelperCertIsSelfSigned(dwencoding: u32, pcert: *mut super::Cryptography::CERT_INFO) -> super::super::Foundation::BOOL { - windows_targets::link!("wintrust.dll" "system" fn WTHelperCertIsSelfSigned(dwencoding : u32, pcert : *mut super::Cryptography:: CERT_INFO) -> super::super::Foundation:: BOOL); +pub unsafe fn WTHelperCertIsSelfSigned(dwencoding: u32, pcert: *mut super::Cryptography::CERT_INFO) -> windows_core::BOOL { + windows_targets::link!("wintrust.dll" "system" fn WTHelperCertIsSelfSigned(dwencoding : u32, pcert : *mut super::Cryptography:: CERT_INFO) -> windows_core::BOOL); unsafe { WTHelperCertIsSelfSigned(dwencoding, pcert as _) } } #[cfg(feature = "Win32_Security_Cryptography")] @@ -35,7 +35,7 @@ pub unsafe fn WTHelperGetProvPrivateDataFromChain(pprovdata: *mut CRYPT_PROVIDER #[cfg(all(feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))] #[inline] pub unsafe fn WTHelperGetProvSignerFromChain(pprovdata: *mut CRYPT_PROVIDER_DATA, idxsigner: u32, fcountersigner: bool, idxcountersigner: u32) -> *mut CRYPT_PROVIDER_SGNR { - windows_targets::link!("wintrust.dll" "system" fn WTHelperGetProvSignerFromChain(pprovdata : *mut CRYPT_PROVIDER_DATA, idxsigner : u32, fcountersigner : super::super::Foundation:: BOOL, idxcountersigner : u32) -> *mut CRYPT_PROVIDER_SGNR); + windows_targets::link!("wintrust.dll" "system" fn WTHelperGetProvSignerFromChain(pprovdata : *mut CRYPT_PROVIDER_DATA, idxsigner : u32, fcountersigner : windows_core::BOOL, idxcountersigner : u32) -> *mut CRYPT_PROVIDER_SGNR); unsafe { WTHelperGetProvSignerFromChain(pprovdata as _, idxsigner, fcountersigner.into(), idxcountersigner) } } #[cfg(all(feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))] @@ -57,7 +57,7 @@ pub unsafe fn WinVerifyTrustEx(hwnd: super::super::Foundation::HWND, pgactionid: } #[inline] pub unsafe fn WintrustAddActionID(pgactionid: *const windows_core::GUID, fdwflags: u32, psprovinfo: *const CRYPT_REGISTER_ACTIONID) -> windows_core::Result<()> { - windows_targets::link!("wintrust.dll" "system" fn WintrustAddActionID(pgactionid : *const windows_core::GUID, fdwflags : u32, psprovinfo : *const CRYPT_REGISTER_ACTIONID) -> super::super::Foundation:: BOOL); + windows_targets::link!("wintrust.dll" "system" fn WintrustAddActionID(pgactionid : *const windows_core::GUID, fdwflags : u32, psprovinfo : *const CRYPT_REGISTER_ACTIONID) -> windows_core::BOOL); unsafe { WintrustAddActionID(pgactionid, fdwflags, psprovinfo).ok() } } #[inline] @@ -65,7 +65,7 @@ pub unsafe fn WintrustAddDefaultForUsage(pszusageoid: P0, psdefusage: *const where P0: windows_core::Param, { - windows_targets::link!("wintrust.dll" "system" fn WintrustAddDefaultForUsage(pszusageoid : windows_core::PCSTR, psdefusage : *const CRYPT_PROVIDER_REGDEFUSAGE) -> super::super::Foundation:: BOOL); + windows_targets::link!("wintrust.dll" "system" fn WintrustAddDefaultForUsage(pszusageoid : windows_core::PCSTR, psdefusage : *const CRYPT_PROVIDER_REGDEFUSAGE) -> windows_core::BOOL); unsafe { WintrustAddDefaultForUsage(pszusageoid.param().abi(), psdefusage).ok() } } #[inline] @@ -73,7 +73,7 @@ pub unsafe fn WintrustGetDefaultForUsage(dwaction: WINTRUST_GET_DEFAULT_FOR_ where P1: windows_core::Param, { - windows_targets::link!("wintrust.dll" "system" fn WintrustGetDefaultForUsage(dwaction : WINTRUST_GET_DEFAULT_FOR_USAGE_ACTION, pszusageoid : windows_core::PCSTR, psusage : *mut CRYPT_PROVIDER_DEFUSAGE) -> super::super::Foundation:: BOOL); + windows_targets::link!("wintrust.dll" "system" fn WintrustGetDefaultForUsage(dwaction : WINTRUST_GET_DEFAULT_FOR_USAGE_ACTION, pszusageoid : windows_core::PCSTR, psusage : *mut CRYPT_PROVIDER_DEFUSAGE) -> windows_core::BOOL); unsafe { WintrustGetDefaultForUsage(dwaction, pszusageoid.param().abi(), psusage as _).ok() } } #[inline] @@ -83,23 +83,23 @@ pub unsafe fn WintrustGetRegPolicyFlags(pdwpolicyflags: *mut WINTRUST_POLICY_FLA } #[cfg(all(feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))] #[inline] -pub unsafe fn WintrustLoadFunctionPointers(pgactionid: *mut windows_core::GUID, ppfns: *mut CRYPT_PROVIDER_FUNCTIONS) -> super::super::Foundation::BOOL { - windows_targets::link!("wintrust.dll" "system" fn WintrustLoadFunctionPointers(pgactionid : *mut windows_core::GUID, ppfns : *mut CRYPT_PROVIDER_FUNCTIONS) -> super::super::Foundation:: BOOL); +pub unsafe fn WintrustLoadFunctionPointers(pgactionid: *mut windows_core::GUID, ppfns: *mut CRYPT_PROVIDER_FUNCTIONS) -> windows_core::BOOL { + windows_targets::link!("wintrust.dll" "system" fn WintrustLoadFunctionPointers(pgactionid : *mut windows_core::GUID, ppfns : *mut CRYPT_PROVIDER_FUNCTIONS) -> windows_core::BOOL); unsafe { WintrustLoadFunctionPointers(pgactionid as _, ppfns as _) } } #[inline] -pub unsafe fn WintrustRemoveActionID(pgactionid: *const windows_core::GUID) -> super::super::Foundation::BOOL { - windows_targets::link!("wintrust.dll" "system" fn WintrustRemoveActionID(pgactionid : *const windows_core::GUID) -> super::super::Foundation:: BOOL); +pub unsafe fn WintrustRemoveActionID(pgactionid: *const windows_core::GUID) -> windows_core::BOOL { + windows_targets::link!("wintrust.dll" "system" fn WintrustRemoveActionID(pgactionid : *const windows_core::GUID) -> windows_core::BOOL); unsafe { WintrustRemoveActionID(pgactionid) } } #[inline] pub unsafe fn WintrustSetDefaultIncludePEPageHashes(fincludepepagehashes: bool) { - windows_targets::link!("wintrust.dll" "system" fn WintrustSetDefaultIncludePEPageHashes(fincludepepagehashes : super::super::Foundation:: BOOL)); + windows_targets::link!("wintrust.dll" "system" fn WintrustSetDefaultIncludePEPageHashes(fincludepepagehashes : windows_core::BOOL)); unsafe { WintrustSetDefaultIncludePEPageHashes(fincludepepagehashes.into()) } } #[inline] -pub unsafe fn WintrustSetRegPolicyFlags(dwpolicyflags: WINTRUST_POLICY_FLAGS) -> super::super::Foundation::BOOL { - windows_targets::link!("wintrust.dll" "system" fn WintrustSetRegPolicyFlags(dwpolicyflags : WINTRUST_POLICY_FLAGS) -> super::super::Foundation:: BOOL); +pub unsafe fn WintrustSetRegPolicyFlags(dwpolicyflags: WINTRUST_POLICY_FLAGS) -> windows_core::BOOL { + windows_targets::link!("wintrust.dll" "system" fn WintrustSetRegPolicyFlags(dwpolicyflags : WINTRUST_POLICY_FLAGS) -> windows_core::BOOL); unsafe { WintrustSetRegPolicyFlags(dwpolicyflags) } } #[repr(C)] @@ -218,18 +218,18 @@ pub const CPD_USE_NT5_CHAIN_FLAG: u32 = 2147483648u32; pub struct CRYPT_PROVIDER_CERT { pub cbStruct: u32, pub pCert: *const super::Cryptography::CERT_CONTEXT, - pub fCommercial: super::super::Foundation::BOOL, - pub fTrustedRoot: super::super::Foundation::BOOL, - pub fSelfSigned: super::super::Foundation::BOOL, - pub fTestCert: super::super::Foundation::BOOL, + pub fCommercial: windows_core::BOOL, + pub fTrustedRoot: windows_core::BOOL, + pub fSelfSigned: windows_core::BOOL, + pub fTestCert: windows_core::BOOL, pub dwRevokedReason: u32, pub dwConfidence: u32, pub dwError: u32, pub pTrustListContext: *mut super::Cryptography::CTL_CONTEXT, - pub fTrustListSignerCert: super::super::Foundation::BOOL, + pub fTrustListSignerCert: windows_core::BOOL, pub pCtlContext: *mut super::Cryptography::CTL_CONTEXT, pub dwCtlError: u32, - pub fIsCyclic: super::super::Foundation::BOOL, + pub fIsCyclic: windows_core::BOOL, pub pChainElement: *mut super::Cryptography::CERT_CHAIN_ELEMENT, } #[cfg(feature = "Win32_Security_Cryptography")] @@ -244,7 +244,7 @@ impl Default for CRYPT_PROVIDER_CERT { pub struct CRYPT_PROVIDER_DATA { pub cbStruct: u32, pub pWintrustData: *mut WINTRUST_DATA, - pub fOpenedFile: super::super::Foundation::BOOL, + pub fOpenedFile: windows_core::BOOL, pub hWndParent: super::super::Foundation::HWND, pub pgActionID: *mut windows_core::GUID, pub hProv: usize, @@ -265,7 +265,7 @@ pub struct CRYPT_PROVIDER_DATA { pub dwSubjectChoice: u32, pub Anonymous: CRYPT_PROVIDER_DATA_0, pub pszUsageOID: windows_core::PSTR, - pub fRecallWithState: super::super::Foundation::BOOL, + pub fRecallWithState: windows_core::BOOL, pub sftSystemTime: super::super::Foundation::FILETIME, pub pszCTLSignerUsageOID: windows_core::PSTR, pub dwProvFlags: u32, @@ -389,14 +389,14 @@ pub struct CRYPT_PROVIDER_SIGSTATE { pub cbStruct: u32, pub rhSecondarySigs: *mut *mut core::ffi::c_void, pub hPrimarySig: *mut core::ffi::c_void, - pub fFirstAttemptMade: super::super::Foundation::BOOL, - pub fNoMoreSigs: super::super::Foundation::BOOL, + pub fFirstAttemptMade: windows_core::BOOL, + pub fNoMoreSigs: windows_core::BOOL, pub cSecondarySigs: u32, pub dwCurrentIndex: u32, - pub fSupportMultiSig: super::super::Foundation::BOOL, + pub fSupportMultiSig: windows_core::BOOL, pub dwCryptoPolicySupport: u32, pub iAttemptCount: u32, - pub fCheckedSealing: super::super::Foundation::BOOL, + pub fCheckedSealing: windows_core::BOOL, pub pSealingSignature: *mut SEALING_SIGNATURE_ATTRIBUTE, } #[cfg(feature = "Win32_Security_Cryptography")] @@ -532,20 +532,20 @@ pub const OFFICESIGN_ACTION_VERIFY: windows_core::GUID = windows_core::GUID::fro pub const OFFICE_CLEANUPPOLICY_FUNCTION: windows_core::PCWSTR = windows_core::w!("OfficeCleanupPolicy"); pub const OFFICE_INITPROV_FUNCTION: windows_core::PCWSTR = windows_core::w!("OfficeInitializePolicy"); pub const OFFICE_POLICY_PROVIDER_DLL_NAME: windows_core::PCWSTR = windows_core::w!("WINTRUST.DLL"); -pub type PFN_ALLOCANDFILLDEFUSAGE = Option super::super::Foundation::BOOL>; +pub type PFN_ALLOCANDFILLDEFUSAGE = Option windows_core::BOOL>; #[cfg(all(feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))] -pub type PFN_CPD_ADD_CERT = Option super::super::Foundation::BOOL>; +pub type PFN_CPD_ADD_CERT = Option windows_core::BOOL>; #[cfg(all(feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))] -pub type PFN_CPD_ADD_PRIVDATA = Option super::super::Foundation::BOOL>; +pub type PFN_CPD_ADD_PRIVDATA = Option windows_core::BOOL>; #[cfg(all(feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))] -pub type PFN_CPD_ADD_SGNR = Option super::super::Foundation::BOOL>; +pub type PFN_CPD_ADD_SGNR = Option windows_core::BOOL>; #[cfg(all(feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))] -pub type PFN_CPD_ADD_STORE = Option super::super::Foundation::BOOL>; +pub type PFN_CPD_ADD_STORE = Option windows_core::BOOL>; pub type PFN_CPD_MEM_ALLOC = Option *mut core::ffi::c_void>; pub type PFN_CPD_MEM_FREE = Option; -pub type PFN_FREEDEFUSAGE = Option super::super::Foundation::BOOL>; +pub type PFN_FREEDEFUSAGE = Option windows_core::BOOL>; #[cfg(all(feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))] -pub type PFN_PROVIDER_CERTCHKPOLICY_CALL = Option super::super::Foundation::BOOL>; +pub type PFN_PROVIDER_CERTCHKPOLICY_CALL = Option windows_core::BOOL>; #[cfg(all(feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))] pub type PFN_PROVIDER_CERTTRUST_CALL = Option windows_core::HRESULT>; #[cfg(all(feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))] @@ -561,7 +561,7 @@ pub type PFN_PROVIDER_SIGTRUST_CALL = Option windows_core::HRESULT>; #[cfg(all(feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))] -pub type PFN_PROVUI_CALL = Option super::super::Foundation::BOOL>; +pub type PFN_PROVUI_CALL = Option windows_core::BOOL>; #[cfg(all(feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))] pub type PFN_WTD_GENERIC_CHAIN_POLICY_CALLBACK = Option windows_core::HRESULT>; #[repr(C)] @@ -624,8 +624,8 @@ pub const SPC_FILE_LINK_CHOICE: u32 = 3u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SPC_FINANCIAL_CRITERIA { - pub fFinancialInfoAvailable: super::super::Foundation::BOOL, - pub fMeetsCriteria: super::super::Foundation::BOOL, + pub fFinancialInfoAvailable: windows_core::BOOL, + pub fMeetsCriteria: windows_core::BOOL, } impl Default for SPC_FINANCIAL_CRITERIA { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/Security/WinWlx/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/WinWlx/mod.rs index 5b2d46de44..29ffc472f9 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/WinWlx/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/WinWlx/mod.rs @@ -1,11 +1,11 @@ -pub type PFNMSGECALLBACK = Option u32>; +pub type PFNMSGECALLBACK = Option u32>; pub type PWLX_ASSIGN_SHELL_PROTECTION = Option i32>; pub type PWLX_CHANGE_PASSWORD_NOTIFY = Option i32>; pub type PWLX_CHANGE_PASSWORD_NOTIFY_EX = Option i32>; #[cfg(feature = "Win32_System_StationsAndDesktops")] -pub type PWLX_CLOSE_USER_DESKTOP = Option super::super::Foundation::BOOL>; +pub type PWLX_CLOSE_USER_DESKTOP = Option windows_core::BOOL>; #[cfg(feature = "Win32_System_StationsAndDesktops")] -pub type PWLX_CREATE_USER_DESKTOP = Option super::super::Foundation::BOOL>; +pub type PWLX_CREATE_USER_DESKTOP = Option windows_core::BOOL>; #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub type PWLX_DIALOG_BOX = Option i32>; #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -14,22 +14,22 @@ pub type PWLX_DIALOG_BOX_INDIRECT = Option i32>; #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub type PWLX_DIALOG_BOX_PARAM = Option i32>; -pub type PWLX_DISCONNECT = Option super::super::Foundation::BOOL>; -pub type PWLX_GET_OPTION = Option super::super::Foundation::BOOL>; +pub type PWLX_DISCONNECT = Option windows_core::BOOL>; +pub type PWLX_GET_OPTION = Option windows_core::BOOL>; #[cfg(feature = "Win32_System_StationsAndDesktops")] -pub type PWLX_GET_SOURCE_DESKTOP = Option super::super::Foundation::BOOL>; +pub type PWLX_GET_SOURCE_DESKTOP = Option windows_core::BOOL>; pub type PWLX_MESSAGE_BOX = Option i32>; -pub type PWLX_QUERY_CLIENT_CREDENTIALS = Option super::super::Foundation::BOOL>; +pub type PWLX_QUERY_CLIENT_CREDENTIALS = Option windows_core::BOOL>; pub type PWLX_QUERY_CONSOLESWITCH_CREDENTIALS = Option u32>; -pub type PWLX_QUERY_IC_CREDENTIALS = Option super::super::Foundation::BOOL>; +pub type PWLX_QUERY_IC_CREDENTIALS = Option windows_core::BOOL>; pub type PWLX_QUERY_TERMINAL_SERVICES_DATA = Option u32>; -pub type PWLX_QUERY_TS_LOGON_CREDENTIALS = Option super::super::Foundation::BOOL>; +pub type PWLX_QUERY_TS_LOGON_CREDENTIALS = Option windows_core::BOOL>; pub type PWLX_SAS_NOTIFY = Option; pub type PWLX_SET_CONTEXT_POINTER = Option; -pub type PWLX_SET_OPTION = Option super::super::Foundation::BOOL>; +pub type PWLX_SET_OPTION = Option windows_core::BOOL>; #[cfg(feature = "Win32_System_StationsAndDesktops")] -pub type PWLX_SET_RETURN_DESKTOP = Option super::super::Foundation::BOOL>; -pub type PWLX_SET_TIMEOUT = Option super::super::Foundation::BOOL>; +pub type PWLX_SET_RETURN_DESKTOP = Option windows_core::BOOL>; +pub type PWLX_SET_TIMEOUT = Option windows_core::BOOL>; pub type PWLX_SWITCH_DESKTOP_TO_USER = Option i32>; pub type PWLX_SWITCH_DESKTOP_TO_WINLOGON = Option i32>; pub type PWLX_USE_CTRL_ALT_DEL = Option; @@ -43,7 +43,7 @@ pub struct WLX_CLIENT_CREDENTIALS_INFO_V1_0 { pub pszUserName: windows_core::PWSTR, pub pszDomain: windows_core::PWSTR, pub pszPassword: windows_core::PWSTR, - pub fPromptForPassword: super::super::Foundation::BOOL, + pub fPromptForPassword: windows_core::BOOL, } impl Default for WLX_CLIENT_CREDENTIALS_INFO_V1_0 { fn default() -> Self { @@ -57,8 +57,8 @@ pub struct WLX_CLIENT_CREDENTIALS_INFO_V2_0 { pub pszUserName: windows_core::PWSTR, pub pszDomain: windows_core::PWSTR, pub pszPassword: windows_core::PWSTR, - pub fPromptForPassword: super::super::Foundation::BOOL, - pub fDisconnectOnLogonFailure: super::super::Foundation::BOOL, + pub fPromptForPassword: windows_core::BOOL, + pub fDisconnectOnLogonFailure: windows_core::BOOL, } impl Default for WLX_CLIENT_CREDENTIALS_INFO_V2_0 { fn default() -> Self { @@ -76,7 +76,7 @@ pub struct WLX_CONSOLESWITCH_CREDENTIALS_INFO_V1_0 { pub UserName: windows_core::PWSTR, pub Domain: windows_core::PWSTR, pub LogonTime: i64, - pub SmartCardLogon: super::super::Foundation::BOOL, + pub SmartCardLogon: windows_core::BOOL, pub ProfileLength: u32, pub MessageType: u32, pub LogonCount: u16, diff --git a/crates/libs/windows/src/Windows/Win32/Security/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/mod.rs index 50e41f63c4..684e91938e 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/mod.rs @@ -31,148 +31,148 @@ pub mod WinTrust; #[cfg(feature = "Win32_Security_WinWlx")] pub mod WinWlx; #[inline] -pub unsafe fn AccessCheck(psecuritydescriptor: PSECURITY_DESCRIPTOR, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, privilegeset: Option<*mut PRIVILEGE_SET>, privilegesetlength: *mut u32, grantedaccess: *mut u32, accessstatus: *mut super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn AccessCheck(psecuritydescriptor : PSECURITY_DESCRIPTOR, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, genericmapping : *const GENERIC_MAPPING, privilegeset : *mut PRIVILEGE_SET, privilegesetlength : *mut u32, grantedaccess : *mut u32, accessstatus : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); +pub unsafe fn AccessCheck(psecuritydescriptor: PSECURITY_DESCRIPTOR, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, privilegeset: Option<*mut PRIVILEGE_SET>, privilegesetlength: *mut u32, grantedaccess: *mut u32, accessstatus: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("advapi32.dll" "system" fn AccessCheck(psecuritydescriptor : PSECURITY_DESCRIPTOR, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, genericmapping : *const GENERIC_MAPPING, privilegeset : *mut PRIVILEGE_SET, privilegesetlength : *mut u32, grantedaccess : *mut u32, accessstatus : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { AccessCheck(psecuritydescriptor, clienttoken, desiredaccess, genericmapping, privilegeset.unwrap_or(core::mem::zeroed()) as _, privilegesetlength as _, grantedaccess as _, accessstatus as _).ok() } } #[inline] -pub unsafe fn AccessCheckAndAuditAlarmA(subsystemname: P0, handleid: Option<*const core::ffi::c_void>, objecttypename: P2, objectname: P3, securitydescriptor: PSECURITY_DESCRIPTOR, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut super::Foundation::BOOL, pfgenerateonclose: *mut super::Foundation::BOOL) -> windows_core::Result<()> +pub unsafe fn AccessCheckAndAuditAlarmA(subsystemname: P0, handleid: Option<*const core::ffi::c_void>, objecttypename: P2, objectname: P3, securitydescriptor: PSECURITY_DESCRIPTOR, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut windows_core::BOOL, pfgenerateonclose: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn AccessCheckAndAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCSTR, objectname : windows_core::PCSTR, securitydescriptor : PSECURITY_DESCRIPTOR, desiredaccess : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : super::Foundation:: BOOL, grantedaccess : *mut u32, accessstatus : *mut super::Foundation:: BOOL, pfgenerateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AccessCheckAndAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCSTR, objectname : windows_core::PCSTR, securitydescriptor : PSECURITY_DESCRIPTOR, desiredaccess : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : windows_core::BOOL, grantedaccess : *mut u32, accessstatus : *mut windows_core::BOOL, pfgenerateonclose : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { AccessCheckAndAuditAlarmA(subsystemname.param().abi(), handleid.unwrap_or(core::mem::zeroed()) as _, objecttypename.param().abi(), objectname.param().abi(), securitydescriptor, desiredaccess, genericmapping, objectcreation.into(), grantedaccess as _, accessstatus as _, pfgenerateonclose as _).ok() } } #[inline] -pub unsafe fn AccessCheckAndAuditAlarmW(subsystemname: P0, handleid: Option<*const core::ffi::c_void>, objecttypename: P2, objectname: P3, securitydescriptor: PSECURITY_DESCRIPTOR, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut super::Foundation::BOOL, pfgenerateonclose: *mut super::Foundation::BOOL) -> super::Foundation::BOOL +pub unsafe fn AccessCheckAndAuditAlarmW(subsystemname: P0, handleid: Option<*const core::ffi::c_void>, objecttypename: P2, objectname: P3, securitydescriptor: PSECURITY_DESCRIPTOR, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut windows_core::BOOL, pfgenerateonclose: *mut windows_core::BOOL) -> windows_core::BOOL where P0: windows_core::Param, P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn AccessCheckAndAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCWSTR, objectname : windows_core::PCWSTR, securitydescriptor : PSECURITY_DESCRIPTOR, desiredaccess : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : super::Foundation:: BOOL, grantedaccess : *mut u32, accessstatus : *mut super::Foundation:: BOOL, pfgenerateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AccessCheckAndAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCWSTR, objectname : windows_core::PCWSTR, securitydescriptor : PSECURITY_DESCRIPTOR, desiredaccess : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : windows_core::BOOL, grantedaccess : *mut u32, accessstatus : *mut windows_core::BOOL, pfgenerateonclose : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { AccessCheckAndAuditAlarmW(subsystemname.param().abi(), handleid.unwrap_or(core::mem::zeroed()) as _, objecttypename.param().abi(), objectname.param().abi(), securitydescriptor, desiredaccess, genericmapping, objectcreation.into(), grantedaccess as _, accessstatus as _, pfgenerateonclose as _) } } #[inline] -pub unsafe fn AccessCheckByType(psecuritydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, objecttypelist: Option<&mut [OBJECT_TYPE_LIST]>, genericmapping: *const GENERIC_MAPPING, privilegeset: Option<*mut PRIVILEGE_SET>, privilegesetlength: *mut u32, grantedaccess: *mut u32, accessstatus: *mut super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn AccessCheckByType(psecuritydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, privilegeset : *mut PRIVILEGE_SET, privilegesetlength : *mut u32, grantedaccess : *mut u32, accessstatus : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); +pub unsafe fn AccessCheckByType(psecuritydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, objecttypelist: Option<&mut [OBJECT_TYPE_LIST]>, genericmapping: *const GENERIC_MAPPING, privilegeset: Option<*mut PRIVILEGE_SET>, privilegesetlength: *mut u32, grantedaccess: *mut u32, accessstatus: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("advapi32.dll" "system" fn AccessCheckByType(psecuritydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, privilegeset : *mut PRIVILEGE_SET, privilegesetlength : *mut u32, grantedaccess : *mut u32, accessstatus : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { AccessCheckByType(psecuritydescriptor, principalselfsid.unwrap_or(core::mem::zeroed()) as _, clienttoken, desiredaccess, core::mem::transmute(objecttypelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), objecttypelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), genericmapping, privilegeset.unwrap_or(core::mem::zeroed()) as _, privilegesetlength as _, grantedaccess as _, accessstatus as _).ok() } } #[inline] -pub unsafe fn AccessCheckByTypeAndAuditAlarmA(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P2, objectname: P3, securitydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<&mut [OBJECT_TYPE_LIST]>, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut super::Foundation::BOOL, pfgenerateonclose: *mut super::Foundation::BOOL) -> windows_core::Result<()> +pub unsafe fn AccessCheckByTypeAndAuditAlarmA(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P2, objectname: P3, securitydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<&mut [OBJECT_TYPE_LIST]>, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut windows_core::BOOL, pfgenerateonclose: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeAndAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCSTR, objectname : windows_core::PCSTR, securitydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, desiredaccess : u32, audittype : AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : super::Foundation:: BOOL, grantedaccess : *mut u32, accessstatus : *mut super::Foundation:: BOOL, pfgenerateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeAndAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCSTR, objectname : windows_core::PCSTR, securitydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, desiredaccess : u32, audittype : AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : windows_core::BOOL, grantedaccess : *mut u32, accessstatus : *mut windows_core::BOOL, pfgenerateonclose : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { AccessCheckByTypeAndAuditAlarmA(subsystemname.param().abi(), handleid, objecttypename.param().abi(), objectname.param().abi(), securitydescriptor, principalselfsid.unwrap_or(core::mem::zeroed()) as _, desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), objecttypelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), genericmapping, objectcreation.into(), grantedaccess as _, accessstatus as _, pfgenerateonclose as _).ok() } } #[inline] -pub unsafe fn AccessCheckByTypeAndAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P2, objectname: P3, securitydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<&mut [OBJECT_TYPE_LIST]>, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut super::Foundation::BOOL, pfgenerateonclose: *mut super::Foundation::BOOL) -> super::Foundation::BOOL +pub unsafe fn AccessCheckByTypeAndAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P2, objectname: P3, securitydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<&mut [OBJECT_TYPE_LIST]>, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatus: *mut windows_core::BOOL, pfgenerateonclose: *mut windows_core::BOOL) -> windows_core::BOOL where P0: windows_core::Param, P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeAndAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCWSTR, objectname : windows_core::PCWSTR, securitydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, desiredaccess : u32, audittype : AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : super::Foundation:: BOOL, grantedaccess : *mut u32, accessstatus : *mut super::Foundation:: BOOL, pfgenerateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeAndAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCWSTR, objectname : windows_core::PCWSTR, securitydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, desiredaccess : u32, audittype : AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : windows_core::BOOL, grantedaccess : *mut u32, accessstatus : *mut windows_core::BOOL, pfgenerateonclose : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { AccessCheckByTypeAndAuditAlarmW(subsystemname.param().abi(), handleid, objecttypename.param().abi(), objectname.param().abi(), securitydescriptor, principalselfsid.unwrap_or(core::mem::zeroed()) as _, desiredaccess, audittype, flags, core::mem::transmute(objecttypelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), objecttypelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), genericmapping, objectcreation.into(), grantedaccess as _, accessstatus as _, pfgenerateonclose as _) } } #[inline] pub unsafe fn AccessCheckByTypeResultList(psecuritydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, objecttypelist: Option<*mut OBJECT_TYPE_LIST>, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, privilegeset: Option<*mut PRIVILEGE_SET>, privilegesetlength: *mut u32, grantedaccesslist: *mut u32, accessstatuslist: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeResultList(psecuritydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, privilegeset : *mut PRIVILEGE_SET, privilegesetlength : *mut u32, grantedaccesslist : *mut u32, accessstatuslist : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeResultList(psecuritydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, privilegeset : *mut PRIVILEGE_SET, privilegesetlength : *mut u32, grantedaccesslist : *mut u32, accessstatuslist : *mut u32) -> windows_core::BOOL); unsafe { AccessCheckByTypeResultList(psecuritydescriptor, principalselfsid.unwrap_or(core::mem::zeroed()) as _, clienttoken, desiredaccess, objecttypelist.unwrap_or(core::mem::zeroed()) as _, objecttypelistlength, genericmapping, privilegeset.unwrap_or(core::mem::zeroed()) as _, privilegesetlength as _, grantedaccesslist as _, accessstatuslist as _).ok() } } #[inline] -pub unsafe fn AccessCheckByTypeResultListAndAuditAlarmA(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P2, objectname: P3, securitydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<*mut OBJECT_TYPE_LIST>, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut super::Foundation::BOOL) -> windows_core::Result<()> +pub unsafe fn AccessCheckByTypeResultListAndAuditAlarmA(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P2, objectname: P3, securitydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<*mut OBJECT_TYPE_LIST>, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeResultListAndAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCSTR, objectname : windows_core::PCSTR, securitydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, desiredaccess : u32, audittype : AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : super::Foundation:: BOOL, grantedaccess : *mut u32, accessstatuslist : *mut u32, pfgenerateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeResultListAndAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCSTR, objectname : windows_core::PCSTR, securitydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, desiredaccess : u32, audittype : AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : windows_core::BOOL, grantedaccess : *mut u32, accessstatuslist : *mut u32, pfgenerateonclose : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { AccessCheckByTypeResultListAndAuditAlarmA(subsystemname.param().abi(), handleid, objecttypename.param().abi(), objectname.param().abi(), securitydescriptor, principalselfsid.unwrap_or(core::mem::zeroed()) as _, desiredaccess, audittype, flags, objecttypelist.unwrap_or(core::mem::zeroed()) as _, objecttypelistlength, genericmapping, objectcreation.into(), grantedaccess as _, accessstatuslist as _, pfgenerateonclose as _).ok() } } #[inline] -pub unsafe fn AccessCheckByTypeResultListAndAuditAlarmByHandleA(subsystemname: P0, handleid: *const core::ffi::c_void, clienttoken: super::Foundation::HANDLE, objecttypename: P3, objectname: P4, securitydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<*mut OBJECT_TYPE_LIST>, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut super::Foundation::BOOL) -> windows_core::Result<()> +pub unsafe fn AccessCheckByTypeResultListAndAuditAlarmByHandleA(subsystemname: P0, handleid: *const core::ffi::c_void, clienttoken: super::Foundation::HANDLE, objecttypename: P3, objectname: P4, securitydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<*mut OBJECT_TYPE_LIST>, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccess: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeResultListAndAuditAlarmByHandleA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, clienttoken : super::Foundation:: HANDLE, objecttypename : windows_core::PCSTR, objectname : windows_core::PCSTR, securitydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, desiredaccess : u32, audittype : AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : super::Foundation:: BOOL, grantedaccess : *mut u32, accessstatuslist : *mut u32, pfgenerateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeResultListAndAuditAlarmByHandleA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, clienttoken : super::Foundation:: HANDLE, objecttypename : windows_core::PCSTR, objectname : windows_core::PCSTR, securitydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, desiredaccess : u32, audittype : AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : windows_core::BOOL, grantedaccess : *mut u32, accessstatuslist : *mut u32, pfgenerateonclose : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { AccessCheckByTypeResultListAndAuditAlarmByHandleA(subsystemname.param().abi(), handleid, clienttoken, objecttypename.param().abi(), objectname.param().abi(), securitydescriptor, principalselfsid.unwrap_or(core::mem::zeroed()) as _, desiredaccess, audittype, flags, objecttypelist.unwrap_or(core::mem::zeroed()) as _, objecttypelistlength, genericmapping, objectcreation.into(), grantedaccess as _, accessstatuslist as _, pfgenerateonclose as _).ok() } } #[inline] -pub unsafe fn AccessCheckByTypeResultListAndAuditAlarmByHandleW(subsystemname: P0, handleid: *const core::ffi::c_void, clienttoken: super::Foundation::HANDLE, objecttypename: P3, objectname: P4, securitydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<*mut OBJECT_TYPE_LIST>, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccesslist: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut super::Foundation::BOOL) -> super::Foundation::BOOL +pub unsafe fn AccessCheckByTypeResultListAndAuditAlarmByHandleW(subsystemname: P0, handleid: *const core::ffi::c_void, clienttoken: super::Foundation::HANDLE, objecttypename: P3, objectname: P4, securitydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<*mut OBJECT_TYPE_LIST>, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccesslist: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut windows_core::BOOL) -> windows_core::BOOL where P0: windows_core::Param, P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeResultListAndAuditAlarmByHandleW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, clienttoken : super::Foundation:: HANDLE, objecttypename : windows_core::PCWSTR, objectname : windows_core::PCWSTR, securitydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, desiredaccess : u32, audittype : AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : super::Foundation:: BOOL, grantedaccesslist : *mut u32, accessstatuslist : *mut u32, pfgenerateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeResultListAndAuditAlarmByHandleW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, clienttoken : super::Foundation:: HANDLE, objecttypename : windows_core::PCWSTR, objectname : windows_core::PCWSTR, securitydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, desiredaccess : u32, audittype : AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : windows_core::BOOL, grantedaccesslist : *mut u32, accessstatuslist : *mut u32, pfgenerateonclose : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { AccessCheckByTypeResultListAndAuditAlarmByHandleW(subsystemname.param().abi(), handleid, clienttoken, objecttypename.param().abi(), objectname.param().abi(), securitydescriptor, principalselfsid.unwrap_or(core::mem::zeroed()) as _, desiredaccess, audittype, flags, objecttypelist.unwrap_or(core::mem::zeroed()) as _, objecttypelistlength, genericmapping, objectcreation.into(), grantedaccesslist as _, accessstatuslist as _, pfgenerateonclose as _) } } #[inline] -pub unsafe fn AccessCheckByTypeResultListAndAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P2, objectname: P3, securitydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<*mut OBJECT_TYPE_LIST>, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccesslist: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut super::Foundation::BOOL) -> super::Foundation::BOOL +pub unsafe fn AccessCheckByTypeResultListAndAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P2, objectname: P3, securitydescriptor: PSECURITY_DESCRIPTOR, principalselfsid: Option, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: Option<*mut OBJECT_TYPE_LIST>, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: bool, grantedaccesslist: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut windows_core::BOOL) -> windows_core::BOOL where P0: windows_core::Param, P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeResultListAndAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCWSTR, objectname : windows_core::PCWSTR, securitydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, desiredaccess : u32, audittype : AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : super::Foundation:: BOOL, grantedaccesslist : *mut u32, accessstatuslist : *mut u32, pfgenerateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AccessCheckByTypeResultListAndAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCWSTR, objectname : windows_core::PCWSTR, securitydescriptor : PSECURITY_DESCRIPTOR, principalselfsid : PSID, desiredaccess : u32, audittype : AUDIT_EVENT_TYPE, flags : u32, objecttypelist : *mut OBJECT_TYPE_LIST, objecttypelistlength : u32, genericmapping : *const GENERIC_MAPPING, objectcreation : windows_core::BOOL, grantedaccesslist : *mut u32, accessstatuslist : *mut u32, pfgenerateonclose : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { AccessCheckByTypeResultListAndAuditAlarmW(subsystemname.param().abi(), handleid, objecttypename.param().abi(), objectname.param().abi(), securitydescriptor, principalselfsid.unwrap_or(core::mem::zeroed()) as _, desiredaccess, audittype, flags, objecttypelist.unwrap_or(core::mem::zeroed()) as _, objecttypelistlength, genericmapping, objectcreation.into(), grantedaccesslist as _, accessstatuslist as _, pfgenerateonclose as _) } } #[inline] pub unsafe fn AddAccessAllowedAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, accessmask: u32, psid: PSID) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn AddAccessAllowedAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, accessmask : u32, psid : PSID) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AddAccessAllowedAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, accessmask : u32, psid : PSID) -> windows_core::BOOL); unsafe { AddAccessAllowedAce(pacl as _, dwacerevision, accessmask, psid).ok() } } #[inline] pub unsafe fn AddAccessAllowedAceEx(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, accessmask: u32, psid: PSID) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn AddAccessAllowedAceEx(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, psid : PSID) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AddAccessAllowedAceEx(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, psid : PSID) -> windows_core::BOOL); unsafe { AddAccessAllowedAceEx(pacl as _, dwacerevision, aceflags, accessmask, psid).ok() } } #[inline] pub unsafe fn AddAccessAllowedObjectAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, accessmask: u32, objecttypeguid: Option<*const windows_core::GUID>, inheritedobjecttypeguid: Option<*const windows_core::GUID>, psid: PSID) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn AddAccessAllowedObjectAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, objecttypeguid : *const windows_core::GUID, inheritedobjecttypeguid : *const windows_core::GUID, psid : PSID) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AddAccessAllowedObjectAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, objecttypeguid : *const windows_core::GUID, inheritedobjecttypeguid : *const windows_core::GUID, psid : PSID) -> windows_core::BOOL); unsafe { AddAccessAllowedObjectAce(pacl as _, dwacerevision, aceflags, accessmask, objecttypeguid.unwrap_or(core::mem::zeroed()) as _, inheritedobjecttypeguid.unwrap_or(core::mem::zeroed()) as _, psid).ok() } } #[inline] pub unsafe fn AddAccessDeniedAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, accessmask: u32, psid: PSID) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn AddAccessDeniedAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, accessmask : u32, psid : PSID) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AddAccessDeniedAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, accessmask : u32, psid : PSID) -> windows_core::BOOL); unsafe { AddAccessDeniedAce(pacl as _, dwacerevision, accessmask, psid).ok() } } #[inline] pub unsafe fn AddAccessDeniedAceEx(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, accessmask: u32, psid: PSID) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn AddAccessDeniedAceEx(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, psid : PSID) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AddAccessDeniedAceEx(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, psid : PSID) -> windows_core::BOOL); unsafe { AddAccessDeniedAceEx(pacl as _, dwacerevision, aceflags, accessmask, psid).ok() } } #[inline] pub unsafe fn AddAccessDeniedObjectAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, accessmask: u32, objecttypeguid: Option<*const windows_core::GUID>, inheritedobjecttypeguid: Option<*const windows_core::GUID>, psid: PSID) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn AddAccessDeniedObjectAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, objecttypeguid : *const windows_core::GUID, inheritedobjecttypeguid : *const windows_core::GUID, psid : PSID) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AddAccessDeniedObjectAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, objecttypeguid : *const windows_core::GUID, inheritedobjecttypeguid : *const windows_core::GUID, psid : PSID) -> windows_core::BOOL); unsafe { AddAccessDeniedObjectAce(pacl as _, dwacerevision, aceflags, accessmask, objecttypeguid.unwrap_or(core::mem::zeroed()) as _, inheritedobjecttypeguid.unwrap_or(core::mem::zeroed()) as _, psid).ok() } } #[inline] pub unsafe fn AddAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, dwstartingaceindex: u32, pacelist: *const core::ffi::c_void, nacelistlength: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn AddAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, dwstartingaceindex : u32, pacelist : *const core::ffi::c_void, nacelistlength : u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AddAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, dwstartingaceindex : u32, pacelist : *const core::ffi::c_void, nacelistlength : u32) -> windows_core::BOOL); unsafe { AddAce(pacl as _, dwacerevision, dwstartingaceindex, pacelist, nacelistlength).ok() } } #[inline] pub unsafe fn AddAuditAccessAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, dwaccessmask: u32, psid: PSID, bauditsuccess: bool, bauditfailure: bool) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn AddAuditAccessAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, dwaccessmask : u32, psid : PSID, bauditsuccess : super::Foundation:: BOOL, bauditfailure : super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AddAuditAccessAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, dwaccessmask : u32, psid : PSID, bauditsuccess : windows_core::BOOL, bauditfailure : windows_core::BOOL) -> windows_core::BOOL); unsafe { AddAuditAccessAce(pacl as _, dwacerevision, dwaccessmask, psid, bauditsuccess.into(), bauditfailure.into()).ok() } } #[inline] pub unsafe fn AddAuditAccessAceEx(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, dwaccessmask: u32, psid: PSID, bauditsuccess: bool, bauditfailure: bool) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn AddAuditAccessAceEx(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, dwaccessmask : u32, psid : PSID, bauditsuccess : super::Foundation:: BOOL, bauditfailure : super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AddAuditAccessAceEx(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, dwaccessmask : u32, psid : PSID, bauditsuccess : windows_core::BOOL, bauditfailure : windows_core::BOOL) -> windows_core::BOOL); unsafe { AddAuditAccessAceEx(pacl as _, dwacerevision, aceflags, dwaccessmask, psid, bauditsuccess.into(), bauditfailure.into()).ok() } } #[inline] pub unsafe fn AddAuditAccessObjectAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, accessmask: u32, objecttypeguid: Option<*const windows_core::GUID>, inheritedobjecttypeguid: Option<*const windows_core::GUID>, psid: PSID, bauditsuccess: bool, bauditfailure: bool) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn AddAuditAccessObjectAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, objecttypeguid : *const windows_core::GUID, inheritedobjecttypeguid : *const windows_core::GUID, psid : PSID, bauditsuccess : super::Foundation:: BOOL, bauditfailure : super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AddAuditAccessObjectAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, objecttypeguid : *const windows_core::GUID, inheritedobjecttypeguid : *const windows_core::GUID, psid : PSID, bauditsuccess : windows_core::BOOL, bauditfailure : windows_core::BOOL) -> windows_core::BOOL); unsafe { AddAuditAccessObjectAce(pacl as _, dwacerevision, aceflags, accessmask, objecttypeguid.unwrap_or(core::mem::zeroed()) as _, inheritedobjecttypeguid.unwrap_or(core::mem::zeroed()) as _, psid, bauditsuccess.into(), bauditfailure.into()).ok() } } #[inline] @@ -180,97 +180,97 @@ pub unsafe fn AddConditionalAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, where P6: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn AddConditionalAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, acetype : u8, accessmask : u32, psid : PSID, conditionstr : windows_core::PCWSTR, returnlength : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AddConditionalAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, acetype : u8, accessmask : u32, psid : PSID, conditionstr : windows_core::PCWSTR, returnlength : *mut u32) -> windows_core::BOOL); unsafe { AddConditionalAce(pacl as _, dwacerevision, aceflags, acetype, accessmask, psid, conditionstr.param().abi(), returnlength as _).ok() } } #[inline] pub unsafe fn AddMandatoryAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, mandatorypolicy: u32, plabelsid: PSID) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn AddMandatoryAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, mandatorypolicy : u32, plabelsid : PSID) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AddMandatoryAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, mandatorypolicy : u32, plabelsid : PSID) -> windows_core::BOOL); unsafe { AddMandatoryAce(pacl as _, dwacerevision, aceflags, mandatorypolicy, plabelsid).ok() } } #[inline] pub unsafe fn AddResourceAttributeAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, accessmask: u32, psid: PSID, pattributeinfo: *const CLAIM_SECURITY_ATTRIBUTES_INFORMATION, preturnlength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn AddResourceAttributeAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, psid : PSID, pattributeinfo : *const CLAIM_SECURITY_ATTRIBUTES_INFORMATION, preturnlength : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn AddResourceAttributeAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, psid : PSID, pattributeinfo : *const CLAIM_SECURITY_ATTRIBUTES_INFORMATION, preturnlength : *mut u32) -> windows_core::BOOL); unsafe { AddResourceAttributeAce(pacl as _, dwacerevision, aceflags, accessmask, psid, pattributeinfo, preturnlength as _).ok() } } #[inline] pub unsafe fn AddScopedPolicyIDAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, accessmask: u32, psid: PSID) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn AddScopedPolicyIDAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, psid : PSID) -> super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn AddScopedPolicyIDAce(pacl : *mut ACL, dwacerevision : ACE_REVISION, aceflags : ACE_FLAGS, accessmask : u32, psid : PSID) -> windows_core::BOOL); unsafe { AddScopedPolicyIDAce(pacl as _, dwacerevision, aceflags, accessmask, psid).ok() } } #[inline] pub unsafe fn AdjustTokenGroups(tokenhandle: super::Foundation::HANDLE, resettodefault: bool, newstate: Option<*const TOKEN_GROUPS>, bufferlength: u32, previousstate: Option<*mut TOKEN_GROUPS>, returnlength: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn AdjustTokenGroups(tokenhandle : super::Foundation:: HANDLE, resettodefault : super::Foundation:: BOOL, newstate : *const TOKEN_GROUPS, bufferlength : u32, previousstate : *mut TOKEN_GROUPS, returnlength : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AdjustTokenGroups(tokenhandle : super::Foundation:: HANDLE, resettodefault : windows_core::BOOL, newstate : *const TOKEN_GROUPS, bufferlength : u32, previousstate : *mut TOKEN_GROUPS, returnlength : *mut u32) -> windows_core::BOOL); unsafe { AdjustTokenGroups(tokenhandle, resettodefault.into(), newstate.unwrap_or(core::mem::zeroed()) as _, bufferlength, previousstate.unwrap_or(core::mem::zeroed()) as _, returnlength.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn AdjustTokenPrivileges(tokenhandle: super::Foundation::HANDLE, disableallprivileges: bool, newstate: Option<*const TOKEN_PRIVILEGES>, bufferlength: u32, previousstate: Option<*mut TOKEN_PRIVILEGES>, returnlength: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn AdjustTokenPrivileges(tokenhandle : super::Foundation:: HANDLE, disableallprivileges : super::Foundation:: BOOL, newstate : *const TOKEN_PRIVILEGES, bufferlength : u32, previousstate : *mut TOKEN_PRIVILEGES, returnlength : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AdjustTokenPrivileges(tokenhandle : super::Foundation:: HANDLE, disableallprivileges : windows_core::BOOL, newstate : *const TOKEN_PRIVILEGES, bufferlength : u32, previousstate : *mut TOKEN_PRIVILEGES, returnlength : *mut u32) -> windows_core::BOOL); unsafe { AdjustTokenPrivileges(tokenhandle, disableallprivileges.into(), newstate.unwrap_or(core::mem::zeroed()) as _, bufferlength, previousstate.unwrap_or(core::mem::zeroed()) as _, returnlength.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn AllocateAndInitializeSid(pidentifierauthority: *const SID_IDENTIFIER_AUTHORITY, nsubauthoritycount: u8, nsubauthority0: u32, nsubauthority1: u32, nsubauthority2: u32, nsubauthority3: u32, nsubauthority4: u32, nsubauthority5: u32, nsubauthority6: u32, nsubauthority7: u32, psid: *mut PSID) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn AllocateAndInitializeSid(pidentifierauthority : *const SID_IDENTIFIER_AUTHORITY, nsubauthoritycount : u8, nsubauthority0 : u32, nsubauthority1 : u32, nsubauthority2 : u32, nsubauthority3 : u32, nsubauthority4 : u32, nsubauthority5 : u32, nsubauthority6 : u32, nsubauthority7 : u32, psid : *mut PSID) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AllocateAndInitializeSid(pidentifierauthority : *const SID_IDENTIFIER_AUTHORITY, nsubauthoritycount : u8, nsubauthority0 : u32, nsubauthority1 : u32, nsubauthority2 : u32, nsubauthority3 : u32, nsubauthority4 : u32, nsubauthority5 : u32, nsubauthority6 : u32, nsubauthority7 : u32, psid : *mut PSID) -> windows_core::BOOL); unsafe { AllocateAndInitializeSid(pidentifierauthority, nsubauthoritycount, nsubauthority0, nsubauthority1, nsubauthority2, nsubauthority3, nsubauthority4, nsubauthority5, nsubauthority6, nsubauthority7, psid as _).ok() } } #[inline] pub unsafe fn AllocateLocallyUniqueId(luid: *mut super::Foundation::LUID) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn AllocateLocallyUniqueId(luid : *mut super::Foundation:: LUID) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AllocateLocallyUniqueId(luid : *mut super::Foundation:: LUID) -> windows_core::BOOL); unsafe { AllocateLocallyUniqueId(luid as _).ok() } } #[inline] -pub unsafe fn AreAllAccessesGranted(grantedaccess: u32, desiredaccess: u32) -> super::Foundation::BOOL { - windows_targets::link!("advapi32.dll" "system" fn AreAllAccessesGranted(grantedaccess : u32, desiredaccess : u32) -> super::Foundation:: BOOL); +pub unsafe fn AreAllAccessesGranted(grantedaccess: u32, desiredaccess: u32) -> windows_core::BOOL { + windows_targets::link!("advapi32.dll" "system" fn AreAllAccessesGranted(grantedaccess : u32, desiredaccess : u32) -> windows_core::BOOL); unsafe { AreAllAccessesGranted(grantedaccess, desiredaccess) } } #[inline] -pub unsafe fn AreAnyAccessesGranted(grantedaccess: u32, desiredaccess: u32) -> super::Foundation::BOOL { - windows_targets::link!("advapi32.dll" "system" fn AreAnyAccessesGranted(grantedaccess : u32, desiredaccess : u32) -> super::Foundation:: BOOL); +pub unsafe fn AreAnyAccessesGranted(grantedaccess: u32, desiredaccess: u32) -> windows_core::BOOL { + windows_targets::link!("advapi32.dll" "system" fn AreAnyAccessesGranted(grantedaccess : u32, desiredaccess : u32) -> windows_core::BOOL); unsafe { AreAnyAccessesGranted(grantedaccess, desiredaccess) } } #[inline] -pub unsafe fn CheckTokenCapability(tokenhandle: Option, capabilitysidtocheck: PSID, hascapability: *mut super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn CheckTokenCapability(tokenhandle : super::Foundation:: HANDLE, capabilitysidtocheck : PSID, hascapability : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); +pub unsafe fn CheckTokenCapability(tokenhandle: Option, capabilitysidtocheck: PSID, hascapability: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("kernel32.dll" "system" fn CheckTokenCapability(tokenhandle : super::Foundation:: HANDLE, capabilitysidtocheck : PSID, hascapability : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { CheckTokenCapability(tokenhandle.unwrap_or(core::mem::zeroed()) as _, capabilitysidtocheck, hascapability as _).ok() } } #[inline] -pub unsafe fn CheckTokenMembership(tokenhandle: Option, sidtocheck: PSID, ismember: *mut super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CheckTokenMembership(tokenhandle : super::Foundation:: HANDLE, sidtocheck : PSID, ismember : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); +pub unsafe fn CheckTokenMembership(tokenhandle: Option, sidtocheck: PSID, ismember: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("advapi32.dll" "system" fn CheckTokenMembership(tokenhandle : super::Foundation:: HANDLE, sidtocheck : PSID, ismember : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { CheckTokenMembership(tokenhandle.unwrap_or(core::mem::zeroed()) as _, sidtocheck, ismember as _).ok() } } #[inline] -pub unsafe fn CheckTokenMembershipEx(tokenhandle: Option, sidtocheck: PSID, flags: u32, ismember: *mut super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn CheckTokenMembershipEx(tokenhandle : super::Foundation:: HANDLE, sidtocheck : PSID, flags : u32, ismember : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); +pub unsafe fn CheckTokenMembershipEx(tokenhandle: Option, sidtocheck: PSID, flags: u32, ismember: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("kernel32.dll" "system" fn CheckTokenMembershipEx(tokenhandle : super::Foundation:: HANDLE, sidtocheck : PSID, flags : u32, ismember : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { CheckTokenMembershipEx(tokenhandle.unwrap_or(core::mem::zeroed()) as _, sidtocheck, flags, ismember as _).ok() } } #[inline] pub unsafe fn ConvertToAutoInheritPrivateObjectSecurity(parentdescriptor: Option, currentsecuritydescriptor: PSECURITY_DESCRIPTOR, newsecuritydescriptor: *mut PSECURITY_DESCRIPTOR, objecttype: Option<*const windows_core::GUID>, isdirectoryobject: bool, genericmapping: *const GENERIC_MAPPING) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ConvertToAutoInheritPrivateObjectSecurity(parentdescriptor : PSECURITY_DESCRIPTOR, currentsecuritydescriptor : PSECURITY_DESCRIPTOR, newsecuritydescriptor : *mut PSECURITY_DESCRIPTOR, objecttype : *const windows_core::GUID, isdirectoryobject : bool, genericmapping : *const GENERIC_MAPPING) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ConvertToAutoInheritPrivateObjectSecurity(parentdescriptor : PSECURITY_DESCRIPTOR, currentsecuritydescriptor : PSECURITY_DESCRIPTOR, newsecuritydescriptor : *mut PSECURITY_DESCRIPTOR, objecttype : *const windows_core::GUID, isdirectoryobject : bool, genericmapping : *const GENERIC_MAPPING) -> windows_core::BOOL); unsafe { ConvertToAutoInheritPrivateObjectSecurity(parentdescriptor.unwrap_or(core::mem::zeroed()) as _, currentsecuritydescriptor, newsecuritydescriptor as _, objecttype.unwrap_or(core::mem::zeroed()) as _, isdirectoryobject, genericmapping).ok() } } #[inline] pub unsafe fn CopySid(ndestinationsidlength: u32, pdestinationsid: PSID, psourcesid: PSID) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CopySid(ndestinationsidlength : u32, pdestinationsid : PSID, psourcesid : PSID) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CopySid(ndestinationsidlength : u32, pdestinationsid : PSID, psourcesid : PSID) -> windows_core::BOOL); unsafe { CopySid(ndestinationsidlength, pdestinationsid as _, psourcesid).ok() } } #[inline] pub unsafe fn CreatePrivateObjectSecurity(parentdescriptor: Option, creatordescriptor: Option, newdescriptor: *mut PSECURITY_DESCRIPTOR, isdirectoryobject: bool, token: Option, genericmapping: *const GENERIC_MAPPING) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CreatePrivateObjectSecurity(parentdescriptor : PSECURITY_DESCRIPTOR, creatordescriptor : PSECURITY_DESCRIPTOR, newdescriptor : *mut PSECURITY_DESCRIPTOR, isdirectoryobject : super::Foundation:: BOOL, token : super::Foundation:: HANDLE, genericmapping : *const GENERIC_MAPPING) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CreatePrivateObjectSecurity(parentdescriptor : PSECURITY_DESCRIPTOR, creatordescriptor : PSECURITY_DESCRIPTOR, newdescriptor : *mut PSECURITY_DESCRIPTOR, isdirectoryobject : windows_core::BOOL, token : super::Foundation:: HANDLE, genericmapping : *const GENERIC_MAPPING) -> windows_core::BOOL); unsafe { CreatePrivateObjectSecurity(parentdescriptor.unwrap_or(core::mem::zeroed()) as _, creatordescriptor.unwrap_or(core::mem::zeroed()) as _, newdescriptor as _, isdirectoryobject.into(), token.unwrap_or(core::mem::zeroed()) as _, genericmapping).ok() } } #[inline] pub unsafe fn CreatePrivateObjectSecurityEx(parentdescriptor: Option, creatordescriptor: Option, newdescriptor: *mut PSECURITY_DESCRIPTOR, objecttype: Option<*const windows_core::GUID>, iscontainerobject: bool, autoinheritflags: SECURITY_AUTO_INHERIT_FLAGS, token: Option, genericmapping: *const GENERIC_MAPPING) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CreatePrivateObjectSecurityEx(parentdescriptor : PSECURITY_DESCRIPTOR, creatordescriptor : PSECURITY_DESCRIPTOR, newdescriptor : *mut PSECURITY_DESCRIPTOR, objecttype : *const windows_core::GUID, iscontainerobject : super::Foundation:: BOOL, autoinheritflags : SECURITY_AUTO_INHERIT_FLAGS, token : super::Foundation:: HANDLE, genericmapping : *const GENERIC_MAPPING) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CreatePrivateObjectSecurityEx(parentdescriptor : PSECURITY_DESCRIPTOR, creatordescriptor : PSECURITY_DESCRIPTOR, newdescriptor : *mut PSECURITY_DESCRIPTOR, objecttype : *const windows_core::GUID, iscontainerobject : windows_core::BOOL, autoinheritflags : SECURITY_AUTO_INHERIT_FLAGS, token : super::Foundation:: HANDLE, genericmapping : *const GENERIC_MAPPING) -> windows_core::BOOL); unsafe { CreatePrivateObjectSecurityEx(parentdescriptor.unwrap_or(core::mem::zeroed()) as _, creatordescriptor.unwrap_or(core::mem::zeroed()) as _, newdescriptor as _, objecttype.unwrap_or(core::mem::zeroed()) as _, iscontainerobject.into(), autoinheritflags, token.unwrap_or(core::mem::zeroed()) as _, genericmapping).ok() } } #[inline] pub unsafe fn CreatePrivateObjectSecurityWithMultipleInheritance(parentdescriptor: Option, creatordescriptor: Option, newdescriptor: *mut PSECURITY_DESCRIPTOR, objecttypes: Option<&[*const windows_core::GUID]>, iscontainerobject: bool, autoinheritflags: SECURITY_AUTO_INHERIT_FLAGS, token: Option, genericmapping: *const GENERIC_MAPPING) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CreatePrivateObjectSecurityWithMultipleInheritance(parentdescriptor : PSECURITY_DESCRIPTOR, creatordescriptor : PSECURITY_DESCRIPTOR, newdescriptor : *mut PSECURITY_DESCRIPTOR, objecttypes : *const *const windows_core::GUID, guidcount : u32, iscontainerobject : super::Foundation:: BOOL, autoinheritflags : SECURITY_AUTO_INHERIT_FLAGS, token : super::Foundation:: HANDLE, genericmapping : *const GENERIC_MAPPING) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CreatePrivateObjectSecurityWithMultipleInheritance(parentdescriptor : PSECURITY_DESCRIPTOR, creatordescriptor : PSECURITY_DESCRIPTOR, newdescriptor : *mut PSECURITY_DESCRIPTOR, objecttypes : *const *const windows_core::GUID, guidcount : u32, iscontainerobject : windows_core::BOOL, autoinheritflags : SECURITY_AUTO_INHERIT_FLAGS, token : super::Foundation:: HANDLE, genericmapping : *const GENERIC_MAPPING) -> windows_core::BOOL); unsafe { CreatePrivateObjectSecurityWithMultipleInheritance(parentdescriptor.unwrap_or(core::mem::zeroed()) as _, creatordescriptor.unwrap_or(core::mem::zeroed()) as _, newdescriptor as _, core::mem::transmute(objecttypes.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), objecttypes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), iscontainerobject.into(), autoinheritflags, token.unwrap_or(core::mem::zeroed()) as _, genericmapping).ok() } } #[inline] pub unsafe fn CreateRestrictedToken(existingtokenhandle: super::Foundation::HANDLE, flags: CREATE_RESTRICTED_TOKEN_FLAGS, sidstodisable: Option<&[SID_AND_ATTRIBUTES]>, privilegestodelete: Option<&[LUID_AND_ATTRIBUTES]>, sidstorestrict: Option<&[SID_AND_ATTRIBUTES]>, newtokenhandle: *mut super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CreateRestrictedToken(existingtokenhandle : super::Foundation:: HANDLE, flags : CREATE_RESTRICTED_TOKEN_FLAGS, disablesidcount : u32, sidstodisable : *const SID_AND_ATTRIBUTES, deleteprivilegecount : u32, privilegestodelete : *const LUID_AND_ATTRIBUTES, restrictedsidcount : u32, sidstorestrict : *const SID_AND_ATTRIBUTES, newtokenhandle : *mut super::Foundation:: HANDLE) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CreateRestrictedToken(existingtokenhandle : super::Foundation:: HANDLE, flags : CREATE_RESTRICTED_TOKEN_FLAGS, disablesidcount : u32, sidstodisable : *const SID_AND_ATTRIBUTES, deleteprivilegecount : u32, privilegestodelete : *const LUID_AND_ATTRIBUTES, restrictedsidcount : u32, sidstorestrict : *const SID_AND_ATTRIBUTES, newtokenhandle : *mut super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CreateRestrictedToken( existingtokenhandle, @@ -288,12 +288,12 @@ pub unsafe fn CreateRestrictedToken(existingtokenhandle: super::Foundation::HAND } #[inline] pub unsafe fn CreateWellKnownSid(wellknownsidtype: WELL_KNOWN_SID_TYPE, domainsid: Option, psid: Option, cbsid: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CreateWellKnownSid(wellknownsidtype : WELL_KNOWN_SID_TYPE, domainsid : PSID, psid : PSID, cbsid : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CreateWellKnownSid(wellknownsidtype : WELL_KNOWN_SID_TYPE, domainsid : PSID, psid : PSID, cbsid : *mut u32) -> windows_core::BOOL); unsafe { CreateWellKnownSid(wellknownsidtype, domainsid.unwrap_or(core::mem::zeroed()) as _, psid.unwrap_or(core::mem::zeroed()) as _, cbsid as _).ok() } } #[inline] pub unsafe fn DeleteAce(pacl: *mut ACL, dwaceindex: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn DeleteAce(pacl : *mut ACL, dwaceindex : u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn DeleteAce(pacl : *mut ACL, dwaceindex : u32) -> windows_core::BOOL); unsafe { DeleteAce(pacl as _, dwaceindex).ok() } } #[inline] @@ -301,42 +301,42 @@ pub unsafe fn DeriveCapabilitySidsFromName(capname: P0, capabilitygroupsids: where P0: windows_core::Param, { - windows_targets::link!("api-ms-win-security-base-l1-2-2.dll" "system" fn DeriveCapabilitySidsFromName(capname : windows_core::PCWSTR, capabilitygroupsids : *mut *mut PSID, capabilitygroupsidcount : *mut u32, capabilitysids : *mut *mut PSID, capabilitysidcount : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-security-base-l1-2-2.dll" "system" fn DeriveCapabilitySidsFromName(capname : windows_core::PCWSTR, capabilitygroupsids : *mut *mut PSID, capabilitygroupsidcount : *mut u32, capabilitysids : *mut *mut PSID, capabilitysidcount : *mut u32) -> windows_core::BOOL); unsafe { DeriveCapabilitySidsFromName(capname.param().abi(), capabilitygroupsids as _, capabilitygroupsidcount as _, capabilitysids as _, capabilitysidcount as _).ok() } } #[inline] pub unsafe fn DestroyPrivateObjectSecurity(objectdescriptor: *const PSECURITY_DESCRIPTOR) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn DestroyPrivateObjectSecurity(objectdescriptor : *const PSECURITY_DESCRIPTOR) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn DestroyPrivateObjectSecurity(objectdescriptor : *const PSECURITY_DESCRIPTOR) -> windows_core::BOOL); unsafe { DestroyPrivateObjectSecurity(objectdescriptor).ok() } } #[inline] pub unsafe fn DuplicateToken(existingtokenhandle: super::Foundation::HANDLE, impersonationlevel: SECURITY_IMPERSONATION_LEVEL, duplicatetokenhandle: *mut super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn DuplicateToken(existingtokenhandle : super::Foundation:: HANDLE, impersonationlevel : SECURITY_IMPERSONATION_LEVEL, duplicatetokenhandle : *mut super::Foundation:: HANDLE) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn DuplicateToken(existingtokenhandle : super::Foundation:: HANDLE, impersonationlevel : SECURITY_IMPERSONATION_LEVEL, duplicatetokenhandle : *mut super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { DuplicateToken(existingtokenhandle, impersonationlevel, duplicatetokenhandle as _).ok() } } #[inline] pub unsafe fn DuplicateTokenEx(hexistingtoken: super::Foundation::HANDLE, dwdesiredaccess: TOKEN_ACCESS_MASK, lptokenattributes: Option<*const SECURITY_ATTRIBUTES>, impersonationlevel: SECURITY_IMPERSONATION_LEVEL, tokentype: TOKEN_TYPE, phnewtoken: *mut super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn DuplicateTokenEx(hexistingtoken : super::Foundation:: HANDLE, dwdesiredaccess : TOKEN_ACCESS_MASK, lptokenattributes : *const SECURITY_ATTRIBUTES, impersonationlevel : SECURITY_IMPERSONATION_LEVEL, tokentype : TOKEN_TYPE, phnewtoken : *mut super::Foundation:: HANDLE) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn DuplicateTokenEx(hexistingtoken : super::Foundation:: HANDLE, dwdesiredaccess : TOKEN_ACCESS_MASK, lptokenattributes : *const SECURITY_ATTRIBUTES, impersonationlevel : SECURITY_IMPERSONATION_LEVEL, tokentype : TOKEN_TYPE, phnewtoken : *mut super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { DuplicateTokenEx(hexistingtoken, dwdesiredaccess, lptokenattributes.unwrap_or(core::mem::zeroed()) as _, impersonationlevel, tokentype, phnewtoken as _).ok() } } #[inline] -pub unsafe fn EqualDomainSid(psid1: PSID, psid2: PSID, pfequal: *mut super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn EqualDomainSid(psid1 : PSID, psid2 : PSID, pfequal : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); +pub unsafe fn EqualDomainSid(psid1: PSID, psid2: PSID, pfequal: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("advapi32.dll" "system" fn EqualDomainSid(psid1 : PSID, psid2 : PSID, pfequal : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { EqualDomainSid(psid1, psid2, pfequal as _).ok() } } #[inline] pub unsafe fn EqualPrefixSid(psid1: PSID, psid2: PSID) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn EqualPrefixSid(psid1 : PSID, psid2 : PSID) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn EqualPrefixSid(psid1 : PSID, psid2 : PSID) -> windows_core::BOOL); unsafe { EqualPrefixSid(psid1, psid2).ok() } } #[inline] pub unsafe fn EqualSid(psid1: PSID, psid2: PSID) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn EqualSid(psid1 : PSID, psid2 : PSID) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn EqualSid(psid1 : PSID, psid2 : PSID) -> windows_core::BOOL); unsafe { EqualSid(psid1, psid2).ok() } } #[inline] pub unsafe fn FindFirstFreeAce(pacl: *const ACL, pace: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn FindFirstFreeAce(pacl : *const ACL, pace : *mut *mut core::ffi::c_void) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn FindFirstFreeAce(pacl : *const ACL, pace : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { FindFirstFreeAce(pacl, pace as _).ok() } } #[inline] @@ -346,22 +346,22 @@ pub unsafe fn FreeSid(psid: PSID) -> *mut core::ffi::c_void { } #[inline] pub unsafe fn GetAce(pacl: *const ACL, dwaceindex: u32, pace: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetAce(pacl : *const ACL, dwaceindex : u32, pace : *mut *mut core::ffi::c_void) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetAce(pacl : *const ACL, dwaceindex : u32, pace : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { GetAce(pacl, dwaceindex, pace as _).ok() } } #[inline] pub unsafe fn GetAclInformation(pacl: *const ACL, paclinformation: *mut core::ffi::c_void, naclinformationlength: u32, dwaclinformationclass: ACL_INFORMATION_CLASS) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetAclInformation(pacl : *const ACL, paclinformation : *mut core::ffi::c_void, naclinformationlength : u32, dwaclinformationclass : ACL_INFORMATION_CLASS) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetAclInformation(pacl : *const ACL, paclinformation : *mut core::ffi::c_void, naclinformationlength : u32, dwaclinformationclass : ACL_INFORMATION_CLASS) -> windows_core::BOOL); unsafe { GetAclInformation(pacl, paclinformation as _, naclinformationlength, dwaclinformationclass).ok() } } #[inline] -pub unsafe fn GetAppContainerAce(acl: *const ACL, startingaceindex: u32, appcontainerace: *mut *mut core::ffi::c_void, appcontaineraceindex: Option<*mut u32>) -> super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetAppContainerAce(acl : *const ACL, startingaceindex : u32, appcontainerace : *mut *mut core::ffi::c_void, appcontaineraceindex : *mut u32) -> super::Foundation:: BOOL); +pub unsafe fn GetAppContainerAce(acl: *const ACL, startingaceindex: u32, appcontainerace: *mut *mut core::ffi::c_void, appcontaineraceindex: Option<*mut u32>) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetAppContainerAce(acl : *const ACL, startingaceindex : u32, appcontainerace : *mut *mut core::ffi::c_void, appcontaineraceindex : *mut u32) -> windows_core::BOOL); unsafe { GetAppContainerAce(acl, startingaceindex, appcontainerace as _, appcontaineraceindex.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn GetCachedSigningLevel(file: super::Foundation::HANDLE, flags: *mut u32, signinglevel: *mut u32, thumbprint: Option<*mut u8>, thumbprintsize: Option<*mut u32>, thumbprintalgorithm: Option<*mut u32>) -> super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetCachedSigningLevel(file : super::Foundation:: HANDLE, flags : *mut u32, signinglevel : *mut u32, thumbprint : *mut u8, thumbprintsize : *mut u32, thumbprintalgorithm : *mut u32) -> super::Foundation:: BOOL); +pub unsafe fn GetCachedSigningLevel(file: super::Foundation::HANDLE, flags: *mut u32, signinglevel: *mut u32, thumbprint: Option<*mut u8>, thumbprintsize: Option<*mut u32>, thumbprintalgorithm: Option<*mut u32>) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetCachedSigningLevel(file : super::Foundation:: HANDLE, flags : *mut u32, signinglevel : *mut u32, thumbprint : *mut u8, thumbprintsize : *mut u32, thumbprintalgorithm : *mut u32) -> windows_core::BOOL); unsafe { GetCachedSigningLevel(file, flags as _, signinglevel as _, thumbprint.unwrap_or(core::mem::zeroed()) as _, thumbprintsize.unwrap_or(core::mem::zeroed()) as _, thumbprintalgorithm.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -369,20 +369,20 @@ pub unsafe fn GetFileSecurityA(lpfilename: P0, requestedinformation: u32, ps where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn GetFileSecurityA(lpfilename : windows_core::PCSTR, requestedinformation : u32, psecuritydescriptor : PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetFileSecurityA(lpfilename : windows_core::PCSTR, requestedinformation : u32, psecuritydescriptor : PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> windows_core::BOOL); unsafe { GetFileSecurityA(lpfilename.param().abi(), requestedinformation, psecuritydescriptor.unwrap_or(core::mem::zeroed()) as _, nlength, lpnlengthneeded as _).ok() } } #[inline] -pub unsafe fn GetFileSecurityW(lpfilename: P0, requestedinformation: u32, psecuritydescriptor: Option, nlength: u32, lpnlengthneeded: *mut u32) -> super::Foundation::BOOL +pub unsafe fn GetFileSecurityW(lpfilename: P0, requestedinformation: u32, psecuritydescriptor: Option, nlength: u32, lpnlengthneeded: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn GetFileSecurityW(lpfilename : windows_core::PCWSTR, requestedinformation : u32, psecuritydescriptor : PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetFileSecurityW(lpfilename : windows_core::PCWSTR, requestedinformation : u32, psecuritydescriptor : PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> windows_core::BOOL); unsafe { GetFileSecurityW(lpfilename.param().abi(), requestedinformation, psecuritydescriptor.unwrap_or(core::mem::zeroed()) as _, nlength, lpnlengthneeded as _) } } #[inline] pub unsafe fn GetKernelObjectSecurity(handle: super::Foundation::HANDLE, requestedinformation: u32, psecuritydescriptor: Option, nlength: u32, lpnlengthneeded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetKernelObjectSecurity(handle : super::Foundation:: HANDLE, requestedinformation : u32, psecuritydescriptor : PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetKernelObjectSecurity(handle : super::Foundation:: HANDLE, requestedinformation : u32, psecuritydescriptor : PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> windows_core::BOOL); unsafe { GetKernelObjectSecurity(handle, requestedinformation, psecuritydescriptor.unwrap_or(core::mem::zeroed()) as _, nlength, lpnlengthneeded as _).ok() } } #[inline] @@ -392,22 +392,22 @@ pub unsafe fn GetLengthSid(psid: PSID) -> u32 { } #[inline] pub unsafe fn GetPrivateObjectSecurity(objectdescriptor: PSECURITY_DESCRIPTOR, securityinformation: OBJECT_SECURITY_INFORMATION, resultantdescriptor: Option, descriptorlength: u32, returnlength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetPrivateObjectSecurity(objectdescriptor : PSECURITY_DESCRIPTOR, securityinformation : OBJECT_SECURITY_INFORMATION, resultantdescriptor : PSECURITY_DESCRIPTOR, descriptorlength : u32, returnlength : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetPrivateObjectSecurity(objectdescriptor : PSECURITY_DESCRIPTOR, securityinformation : OBJECT_SECURITY_INFORMATION, resultantdescriptor : PSECURITY_DESCRIPTOR, descriptorlength : u32, returnlength : *mut u32) -> windows_core::BOOL); unsafe { GetPrivateObjectSecurity(objectdescriptor, securityinformation, resultantdescriptor.unwrap_or(core::mem::zeroed()) as _, descriptorlength, returnlength as _).ok() } } #[inline] pub unsafe fn GetSecurityDescriptorControl(psecuritydescriptor: PSECURITY_DESCRIPTOR, pcontrol: *mut u16, lpdwrevision: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorControl(psecuritydescriptor : PSECURITY_DESCRIPTOR, pcontrol : *mut u16, lpdwrevision : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorControl(psecuritydescriptor : PSECURITY_DESCRIPTOR, pcontrol : *mut u16, lpdwrevision : *mut u32) -> windows_core::BOOL); unsafe { GetSecurityDescriptorControl(psecuritydescriptor, pcontrol as _, lpdwrevision as _).ok() } } #[inline] -pub unsafe fn GetSecurityDescriptorDacl(psecuritydescriptor: PSECURITY_DESCRIPTOR, lpbdaclpresent: *mut super::Foundation::BOOL, pdacl: *mut *mut ACL, lpbdacldefaulted: *mut super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorDacl(psecuritydescriptor : PSECURITY_DESCRIPTOR, lpbdaclpresent : *mut super::Foundation:: BOOL, pdacl : *mut *mut ACL, lpbdacldefaulted : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); +pub unsafe fn GetSecurityDescriptorDacl(psecuritydescriptor: PSECURITY_DESCRIPTOR, lpbdaclpresent: *mut windows_core::BOOL, pdacl: *mut *mut ACL, lpbdacldefaulted: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorDacl(psecuritydescriptor : PSECURITY_DESCRIPTOR, lpbdaclpresent : *mut windows_core::BOOL, pdacl : *mut *mut ACL, lpbdacldefaulted : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { GetSecurityDescriptorDacl(psecuritydescriptor, lpbdaclpresent as _, pdacl as _, lpbdacldefaulted as _).ok() } } #[inline] -pub unsafe fn GetSecurityDescriptorGroup(psecuritydescriptor: PSECURITY_DESCRIPTOR, pgroup: *mut PSID, lpbgroupdefaulted: *mut super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorGroup(psecuritydescriptor : PSECURITY_DESCRIPTOR, pgroup : *mut PSID, lpbgroupdefaulted : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); +pub unsafe fn GetSecurityDescriptorGroup(psecuritydescriptor: PSECURITY_DESCRIPTOR, pgroup: *mut PSID, lpbgroupdefaulted: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorGroup(psecuritydescriptor : PSECURITY_DESCRIPTOR, pgroup : *mut PSID, lpbgroupdefaulted : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { GetSecurityDescriptorGroup(psecuritydescriptor, pgroup as _, lpbgroupdefaulted as _).ok() } } #[inline] @@ -416,8 +416,8 @@ pub unsafe fn GetSecurityDescriptorLength(psecuritydescriptor: PSECURITY_DESCRIP unsafe { GetSecurityDescriptorLength(psecuritydescriptor) } } #[inline] -pub unsafe fn GetSecurityDescriptorOwner(psecuritydescriptor: PSECURITY_DESCRIPTOR, powner: *mut PSID, lpbownerdefaulted: *mut super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorOwner(psecuritydescriptor : PSECURITY_DESCRIPTOR, powner : *mut PSID, lpbownerdefaulted : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); +pub unsafe fn GetSecurityDescriptorOwner(psecuritydescriptor: PSECURITY_DESCRIPTOR, powner: *mut PSID, lpbownerdefaulted: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorOwner(psecuritydescriptor : PSECURITY_DESCRIPTOR, powner : *mut PSID, lpbownerdefaulted : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { GetSecurityDescriptorOwner(psecuritydescriptor, powner as _, lpbownerdefaulted as _).ok() } } #[inline] @@ -426,8 +426,8 @@ pub unsafe fn GetSecurityDescriptorRMControl(securitydescriptor: PSECURITY_DESCR unsafe { GetSecurityDescriptorRMControl(securitydescriptor, rmcontrol as _) } } #[inline] -pub unsafe fn GetSecurityDescriptorSacl(psecuritydescriptor: PSECURITY_DESCRIPTOR, lpbsaclpresent: *mut super::Foundation::BOOL, psacl: *mut *mut ACL, lpbsacldefaulted: *mut super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorSacl(psecuritydescriptor : PSECURITY_DESCRIPTOR, lpbsaclpresent : *mut super::Foundation:: BOOL, psacl : *mut *mut ACL, lpbsacldefaulted : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); +pub unsafe fn GetSecurityDescriptorSacl(psecuritydescriptor: PSECURITY_DESCRIPTOR, lpbsaclpresent: *mut windows_core::BOOL, psacl: *mut *mut ACL, lpbsacldefaulted: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("advapi32.dll" "system" fn GetSecurityDescriptorSacl(psecuritydescriptor : PSECURITY_DESCRIPTOR, lpbsaclpresent : *mut windows_core::BOOL, psacl : *mut *mut ACL, lpbsacldefaulted : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { GetSecurityDescriptorSacl(psecuritydescriptor, lpbsaclpresent as _, psacl as _, lpbsacldefaulted as _).ok() } } #[inline] @@ -452,72 +452,72 @@ pub unsafe fn GetSidSubAuthorityCount(psid: PSID) -> *mut u8 { } #[inline] pub unsafe fn GetTokenInformation(tokenhandle: super::Foundation::HANDLE, tokeninformationclass: TOKEN_INFORMATION_CLASS, tokeninformation: Option<*mut core::ffi::c_void>, tokeninformationlength: u32, returnlength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetTokenInformation(tokenhandle : super::Foundation:: HANDLE, tokeninformationclass : TOKEN_INFORMATION_CLASS, tokeninformation : *mut core::ffi::c_void, tokeninformationlength : u32, returnlength : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetTokenInformation(tokenhandle : super::Foundation:: HANDLE, tokeninformationclass : TOKEN_INFORMATION_CLASS, tokeninformation : *mut core::ffi::c_void, tokeninformationlength : u32, returnlength : *mut u32) -> windows_core::BOOL); unsafe { GetTokenInformation(tokenhandle, tokeninformationclass, tokeninformation.unwrap_or(core::mem::zeroed()) as _, tokeninformationlength, returnlength as _).ok() } } #[inline] pub unsafe fn GetUserObjectSecurity(hobj: super::Foundation::HANDLE, psirequested: *const u32, psid: Option, nlength: u32, lpnlengthneeded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetUserObjectSecurity(hobj : super::Foundation:: HANDLE, psirequested : *const u32, psid : PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetUserObjectSecurity(hobj : super::Foundation:: HANDLE, psirequested : *const u32, psid : PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> windows_core::BOOL); unsafe { GetUserObjectSecurity(hobj, psirequested, psid.unwrap_or(core::mem::zeroed()) as _, nlength, lpnlengthneeded as _).ok() } } #[inline] pub unsafe fn GetWindowsAccountDomainSid(psid: PSID, pdomainsid: Option, cbdomainsid: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetWindowsAccountDomainSid(psid : PSID, pdomainsid : PSID, cbdomainsid : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetWindowsAccountDomainSid(psid : PSID, pdomainsid : PSID, cbdomainsid : *mut u32) -> windows_core::BOOL); unsafe { GetWindowsAccountDomainSid(psid, pdomainsid.unwrap_or(core::mem::zeroed()) as _, cbdomainsid as _).ok() } } #[inline] pub unsafe fn ImpersonateAnonymousToken(threadhandle: super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ImpersonateAnonymousToken(threadhandle : super::Foundation:: HANDLE) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ImpersonateAnonymousToken(threadhandle : super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { ImpersonateAnonymousToken(threadhandle).ok() } } #[inline] pub unsafe fn ImpersonateLoggedOnUser(htoken: super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ImpersonateLoggedOnUser(htoken : super::Foundation:: HANDLE) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ImpersonateLoggedOnUser(htoken : super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { ImpersonateLoggedOnUser(htoken).ok() } } #[inline] pub unsafe fn ImpersonateSelf(impersonationlevel: SECURITY_IMPERSONATION_LEVEL) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ImpersonateSelf(impersonationlevel : SECURITY_IMPERSONATION_LEVEL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ImpersonateSelf(impersonationlevel : SECURITY_IMPERSONATION_LEVEL) -> windows_core::BOOL); unsafe { ImpersonateSelf(impersonationlevel).ok() } } #[inline] pub unsafe fn InitializeAcl(pacl: *mut ACL, nacllength: u32, dwaclrevision: ACE_REVISION) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn InitializeAcl(pacl : *mut ACL, nacllength : u32, dwaclrevision : ACE_REVISION) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn InitializeAcl(pacl : *mut ACL, nacllength : u32, dwaclrevision : ACE_REVISION) -> windows_core::BOOL); unsafe { InitializeAcl(pacl as _, nacllength, dwaclrevision).ok() } } #[inline] pub unsafe fn InitializeSecurityDescriptor(psecuritydescriptor: PSECURITY_DESCRIPTOR, dwrevision: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn InitializeSecurityDescriptor(psecuritydescriptor : PSECURITY_DESCRIPTOR, dwrevision : u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn InitializeSecurityDescriptor(psecuritydescriptor : PSECURITY_DESCRIPTOR, dwrevision : u32) -> windows_core::BOOL); unsafe { InitializeSecurityDescriptor(psecuritydescriptor as _, dwrevision).ok() } } #[inline] pub unsafe fn InitializeSid(sid: PSID, pidentifierauthority: *const SID_IDENTIFIER_AUTHORITY, nsubauthoritycount: u8) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn InitializeSid(sid : PSID, pidentifierauthority : *const SID_IDENTIFIER_AUTHORITY, nsubauthoritycount : u8) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn InitializeSid(sid : PSID, pidentifierauthority : *const SID_IDENTIFIER_AUTHORITY, nsubauthoritycount : u8) -> windows_core::BOOL); unsafe { InitializeSid(sid as _, pidentifierauthority, nsubauthoritycount).ok() } } #[inline] pub unsafe fn IsTokenRestricted(tokenhandle: super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn IsTokenRestricted(tokenhandle : super::Foundation:: HANDLE) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn IsTokenRestricted(tokenhandle : super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { IsTokenRestricted(tokenhandle).ok() } } #[inline] -pub unsafe fn IsValidAcl(pacl: *const ACL) -> super::Foundation::BOOL { - windows_targets::link!("advapi32.dll" "system" fn IsValidAcl(pacl : *const ACL) -> super::Foundation:: BOOL); +pub unsafe fn IsValidAcl(pacl: *const ACL) -> windows_core::BOOL { + windows_targets::link!("advapi32.dll" "system" fn IsValidAcl(pacl : *const ACL) -> windows_core::BOOL); unsafe { IsValidAcl(pacl) } } #[inline] -pub unsafe fn IsValidSecurityDescriptor(psecuritydescriptor: PSECURITY_DESCRIPTOR) -> super::Foundation::BOOL { - windows_targets::link!("advapi32.dll" "system" fn IsValidSecurityDescriptor(psecuritydescriptor : PSECURITY_DESCRIPTOR) -> super::Foundation:: BOOL); +pub unsafe fn IsValidSecurityDescriptor(psecuritydescriptor: PSECURITY_DESCRIPTOR) -> windows_core::BOOL { + windows_targets::link!("advapi32.dll" "system" fn IsValidSecurityDescriptor(psecuritydescriptor : PSECURITY_DESCRIPTOR) -> windows_core::BOOL); unsafe { IsValidSecurityDescriptor(psecuritydescriptor) } } #[inline] -pub unsafe fn IsValidSid(psid: PSID) -> super::Foundation::BOOL { - windows_targets::link!("advapi32.dll" "system" fn IsValidSid(psid : PSID) -> super::Foundation:: BOOL); +pub unsafe fn IsValidSid(psid: PSID) -> windows_core::BOOL { + windows_targets::link!("advapi32.dll" "system" fn IsValidSid(psid : PSID) -> windows_core::BOOL); unsafe { IsValidSid(psid) } } #[inline] -pub unsafe fn IsWellKnownSid(psid: PSID, wellknownsidtype: WELL_KNOWN_SID_TYPE) -> super::Foundation::BOOL { - windows_targets::link!("advapi32.dll" "system" fn IsWellKnownSid(psid : PSID, wellknownsidtype : WELL_KNOWN_SID_TYPE) -> super::Foundation:: BOOL); +pub unsafe fn IsWellKnownSid(psid: PSID, wellknownsidtype: WELL_KNOWN_SID_TYPE) -> windows_core::BOOL { + windows_targets::link!("advapi32.dll" "system" fn IsWellKnownSid(psid : PSID, wellknownsidtype : WELL_KNOWN_SID_TYPE) -> windows_core::BOOL); unsafe { IsWellKnownSid(psid, wellknownsidtype) } } #[inline] @@ -527,7 +527,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn LogonUserA(lpszusername : windows_core::PCSTR, lpszdomain : windows_core::PCSTR, lpszpassword : windows_core::PCSTR, dwlogontype : LOGON32_LOGON, dwlogonprovider : LOGON32_PROVIDER, phtoken : *mut super::Foundation:: HANDLE) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn LogonUserA(lpszusername : windows_core::PCSTR, lpszdomain : windows_core::PCSTR, lpszpassword : windows_core::PCSTR, dwlogontype : LOGON32_LOGON, dwlogonprovider : LOGON32_PROVIDER, phtoken : *mut super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { LogonUserA(lpszusername.param().abi(), lpszdomain.param().abi(), lpszpassword.param().abi(), dwlogontype, dwlogonprovider, phtoken as _).ok() } } #[inline] @@ -537,7 +537,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn LogonUserExA(lpszusername : windows_core::PCSTR, lpszdomain : windows_core::PCSTR, lpszpassword : windows_core::PCSTR, dwlogontype : LOGON32_LOGON, dwlogonprovider : LOGON32_PROVIDER, phtoken : *mut super::Foundation:: HANDLE, pplogonsid : *mut PSID, ppprofilebuffer : *mut *mut core::ffi::c_void, pdwprofilelength : *mut u32, pquotalimits : *mut QUOTA_LIMITS) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn LogonUserExA(lpszusername : windows_core::PCSTR, lpszdomain : windows_core::PCSTR, lpszpassword : windows_core::PCSTR, dwlogontype : LOGON32_LOGON, dwlogonprovider : LOGON32_PROVIDER, phtoken : *mut super::Foundation:: HANDLE, pplogonsid : *mut PSID, ppprofilebuffer : *mut *mut core::ffi::c_void, pdwprofilelength : *mut u32, pquotalimits : *mut QUOTA_LIMITS) -> windows_core::BOOL); unsafe { LogonUserExA(lpszusername.param().abi(), lpszdomain.param().abi(), lpszpassword.param().abi(), dwlogontype, dwlogonprovider, phtoken.unwrap_or(core::mem::zeroed()) as _, pplogonsid.unwrap_or(core::mem::zeroed()) as _, ppprofilebuffer.unwrap_or(core::mem::zeroed()) as _, pdwprofilelength.unwrap_or(core::mem::zeroed()) as _, pquotalimits.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -547,7 +547,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn LogonUserExW(lpszusername : windows_core::PCWSTR, lpszdomain : windows_core::PCWSTR, lpszpassword : windows_core::PCWSTR, dwlogontype : LOGON32_LOGON, dwlogonprovider : LOGON32_PROVIDER, phtoken : *mut super::Foundation:: HANDLE, pplogonsid : *mut PSID, ppprofilebuffer : *mut *mut core::ffi::c_void, pdwprofilelength : *mut u32, pquotalimits : *mut QUOTA_LIMITS) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn LogonUserExW(lpszusername : windows_core::PCWSTR, lpszdomain : windows_core::PCWSTR, lpszpassword : windows_core::PCWSTR, dwlogontype : LOGON32_LOGON, dwlogonprovider : LOGON32_PROVIDER, phtoken : *mut super::Foundation:: HANDLE, pplogonsid : *mut PSID, ppprofilebuffer : *mut *mut core::ffi::c_void, pdwprofilelength : *mut u32, pquotalimits : *mut QUOTA_LIMITS) -> windows_core::BOOL); unsafe { LogonUserExW(lpszusername.param().abi(), lpszdomain.param().abi(), lpszpassword.param().abi(), dwlogontype, dwlogonprovider, phtoken.unwrap_or(core::mem::zeroed()) as _, pplogonsid.unwrap_or(core::mem::zeroed()) as _, ppprofilebuffer.unwrap_or(core::mem::zeroed()) as _, pdwprofilelength.unwrap_or(core::mem::zeroed()) as _, pquotalimits.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -557,7 +557,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn LogonUserW(lpszusername : windows_core::PCWSTR, lpszdomain : windows_core::PCWSTR, lpszpassword : windows_core::PCWSTR, dwlogontype : LOGON32_LOGON, dwlogonprovider : LOGON32_PROVIDER, phtoken : *mut super::Foundation:: HANDLE) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn LogonUserW(lpszusername : windows_core::PCWSTR, lpszdomain : windows_core::PCWSTR, lpszpassword : windows_core::PCWSTR, dwlogontype : LOGON32_LOGON, dwlogonprovider : LOGON32_PROVIDER, phtoken : *mut super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { LogonUserW(lpszusername.param().abi(), lpszdomain.param().abi(), lpszpassword.param().abi(), dwlogontype, dwlogonprovider, phtoken as _).ok() } } #[inline] @@ -566,7 +566,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn LookupAccountNameA(lpsystemname : windows_core::PCSTR, lpaccountname : windows_core::PCSTR, sid : PSID, cbsid : *mut u32, referenceddomainname : windows_core::PSTR, cchreferenceddomainname : *mut u32, peuse : *mut SID_NAME_USE) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn LookupAccountNameA(lpsystemname : windows_core::PCSTR, lpaccountname : windows_core::PCSTR, sid : PSID, cbsid : *mut u32, referenceddomainname : windows_core::PSTR, cchreferenceddomainname : *mut u32, peuse : *mut SID_NAME_USE) -> windows_core::BOOL); unsafe { LookupAccountNameA(lpsystemname.param().abi(), lpaccountname.param().abi(), sid.unwrap_or(core::mem::zeroed()) as _, cbsid as _, referenceddomainname.unwrap_or(core::mem::zeroed()) as _, cchreferenceddomainname as _, peuse as _).ok() } } #[inline] @@ -575,7 +575,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn LookupAccountNameW(lpsystemname : windows_core::PCWSTR, lpaccountname : windows_core::PCWSTR, sid : PSID, cbsid : *mut u32, referenceddomainname : windows_core::PWSTR, cchreferenceddomainname : *mut u32, peuse : *mut SID_NAME_USE) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn LookupAccountNameW(lpsystemname : windows_core::PCWSTR, lpaccountname : windows_core::PCWSTR, sid : PSID, cbsid : *mut u32, referenceddomainname : windows_core::PWSTR, cchreferenceddomainname : *mut u32, peuse : *mut SID_NAME_USE) -> windows_core::BOOL); unsafe { LookupAccountNameW(lpsystemname.param().abi(), lpaccountname.param().abi(), sid.unwrap_or(core::mem::zeroed()) as _, cbsid as _, referenceddomainname.unwrap_or(core::mem::zeroed()) as _, cchreferenceddomainname as _, peuse as _).ok() } } #[inline] @@ -583,7 +583,7 @@ pub unsafe fn LookupAccountSidA(lpsystemname: P0, sid: PSID, name: Option, { - windows_targets::link!("advapi32.dll" "system" fn LookupAccountSidA(lpsystemname : windows_core::PCSTR, sid : PSID, name : windows_core::PSTR, cchname : *mut u32, referenceddomainname : windows_core::PSTR, cchreferenceddomainname : *mut u32, peuse : *mut SID_NAME_USE) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn LookupAccountSidA(lpsystemname : windows_core::PCSTR, sid : PSID, name : windows_core::PSTR, cchname : *mut u32, referenceddomainname : windows_core::PSTR, cchreferenceddomainname : *mut u32, peuse : *mut SID_NAME_USE) -> windows_core::BOOL); unsafe { LookupAccountSidA(lpsystemname.param().abi(), sid, name.unwrap_or(core::mem::zeroed()) as _, cchname as _, referenceddomainname.unwrap_or(core::mem::zeroed()) as _, cchreferenceddomainname as _, peuse as _).ok() } } #[inline] @@ -591,7 +591,7 @@ pub unsafe fn LookupAccountSidW(lpsystemname: P0, sid: PSID, name: Option, { - windows_targets::link!("advapi32.dll" "system" fn LookupAccountSidW(lpsystemname : windows_core::PCWSTR, sid : PSID, name : windows_core::PWSTR, cchname : *mut u32, referenceddomainname : windows_core::PWSTR, cchreferenceddomainname : *mut u32, peuse : *mut SID_NAME_USE) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn LookupAccountSidW(lpsystemname : windows_core::PCWSTR, sid : PSID, name : windows_core::PWSTR, cchname : *mut u32, referenceddomainname : windows_core::PWSTR, cchreferenceddomainname : *mut u32, peuse : *mut SID_NAME_USE) -> windows_core::BOOL); unsafe { LookupAccountSidW(lpsystemname.param().abi(), sid, name.unwrap_or(core::mem::zeroed()) as _, cchname as _, referenceddomainname.unwrap_or(core::mem::zeroed()) as _, cchreferenceddomainname as _, peuse as _).ok() } } #[inline] @@ -600,7 +600,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn LookupPrivilegeDisplayNameA(lpsystemname : windows_core::PCSTR, lpname : windows_core::PCSTR, lpdisplayname : windows_core::PSTR, cchdisplayname : *mut u32, lplanguageid : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn LookupPrivilegeDisplayNameA(lpsystemname : windows_core::PCSTR, lpname : windows_core::PCSTR, lpdisplayname : windows_core::PSTR, cchdisplayname : *mut u32, lplanguageid : *mut u32) -> windows_core::BOOL); unsafe { LookupPrivilegeDisplayNameA(lpsystemname.param().abi(), lpname.param().abi(), lpdisplayname.unwrap_or(core::mem::zeroed()) as _, cchdisplayname as _, lplanguageid as _).ok() } } #[inline] @@ -609,7 +609,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn LookupPrivilegeDisplayNameW(lpsystemname : windows_core::PCWSTR, lpname : windows_core::PCWSTR, lpdisplayname : windows_core::PWSTR, cchdisplayname : *mut u32, lplanguageid : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn LookupPrivilegeDisplayNameW(lpsystemname : windows_core::PCWSTR, lpname : windows_core::PCWSTR, lpdisplayname : windows_core::PWSTR, cchdisplayname : *mut u32, lplanguageid : *mut u32) -> windows_core::BOOL); unsafe { LookupPrivilegeDisplayNameW(lpsystemname.param().abi(), lpname.param().abi(), lpdisplayname.unwrap_or(core::mem::zeroed()) as _, cchdisplayname as _, lplanguageid as _).ok() } } #[inline] @@ -617,7 +617,7 @@ pub unsafe fn LookupPrivilegeNameA(lpsystemname: P0, lpluid: *const super::F where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn LookupPrivilegeNameA(lpsystemname : windows_core::PCSTR, lpluid : *const super::Foundation:: LUID, lpname : windows_core::PSTR, cchname : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn LookupPrivilegeNameA(lpsystemname : windows_core::PCSTR, lpluid : *const super::Foundation:: LUID, lpname : windows_core::PSTR, cchname : *mut u32) -> windows_core::BOOL); unsafe { LookupPrivilegeNameA(lpsystemname.param().abi(), lpluid, lpname.unwrap_or(core::mem::zeroed()) as _, cchname as _).ok() } } #[inline] @@ -625,7 +625,7 @@ pub unsafe fn LookupPrivilegeNameW(lpsystemname: P0, lpluid: *const super::F where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn LookupPrivilegeNameW(lpsystemname : windows_core::PCWSTR, lpluid : *const super::Foundation:: LUID, lpname : windows_core::PWSTR, cchname : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn LookupPrivilegeNameW(lpsystemname : windows_core::PCWSTR, lpluid : *const super::Foundation:: LUID, lpname : windows_core::PWSTR, cchname : *mut u32) -> windows_core::BOOL); unsafe { LookupPrivilegeNameW(lpsystemname.param().abi(), lpluid, lpname.unwrap_or(core::mem::zeroed()) as _, cchname as _).ok() } } #[inline] @@ -634,7 +634,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn LookupPrivilegeValueA(lpsystemname : windows_core::PCSTR, lpname : windows_core::PCSTR, lpluid : *mut super::Foundation:: LUID) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn LookupPrivilegeValueA(lpsystemname : windows_core::PCSTR, lpname : windows_core::PCSTR, lpluid : *mut super::Foundation:: LUID) -> windows_core::BOOL); unsafe { LookupPrivilegeValueA(lpsystemname.param().abi(), lpname.param().abi(), lpluid as _).ok() } } #[inline] @@ -643,17 +643,17 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn LookupPrivilegeValueW(lpsystemname : windows_core::PCWSTR, lpname : windows_core::PCWSTR, lpluid : *mut super::Foundation:: LUID) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn LookupPrivilegeValueW(lpsystemname : windows_core::PCWSTR, lpname : windows_core::PCWSTR, lpluid : *mut super::Foundation:: LUID) -> windows_core::BOOL); unsafe { LookupPrivilegeValueW(lpsystemname.param().abi(), lpname.param().abi(), lpluid as _).ok() } } #[inline] pub unsafe fn MakeAbsoluteSD(pselfrelativesecuritydescriptor: PSECURITY_DESCRIPTOR, pabsolutesecuritydescriptor: Option, lpdwabsolutesecuritydescriptorsize: *mut u32, pdacl: Option<*mut ACL>, lpdwdaclsize: *mut u32, psacl: Option<*mut ACL>, lpdwsaclsize: *mut u32, powner: Option, lpdwownersize: *mut u32, pprimarygroup: Option, lpdwprimarygroupsize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn MakeAbsoluteSD(pselfrelativesecuritydescriptor : PSECURITY_DESCRIPTOR, pabsolutesecuritydescriptor : PSECURITY_DESCRIPTOR, lpdwabsolutesecuritydescriptorsize : *mut u32, pdacl : *mut ACL, lpdwdaclsize : *mut u32, psacl : *mut ACL, lpdwsaclsize : *mut u32, powner : PSID, lpdwownersize : *mut u32, pprimarygroup : PSID, lpdwprimarygroupsize : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn MakeAbsoluteSD(pselfrelativesecuritydescriptor : PSECURITY_DESCRIPTOR, pabsolutesecuritydescriptor : PSECURITY_DESCRIPTOR, lpdwabsolutesecuritydescriptorsize : *mut u32, pdacl : *mut ACL, lpdwdaclsize : *mut u32, psacl : *mut ACL, lpdwsaclsize : *mut u32, powner : PSID, lpdwownersize : *mut u32, pprimarygroup : PSID, lpdwprimarygroupsize : *mut u32) -> windows_core::BOOL); unsafe { MakeAbsoluteSD(pselfrelativesecuritydescriptor, pabsolutesecuritydescriptor.unwrap_or(core::mem::zeroed()) as _, lpdwabsolutesecuritydescriptorsize as _, pdacl.unwrap_or(core::mem::zeroed()) as _, lpdwdaclsize as _, psacl.unwrap_or(core::mem::zeroed()) as _, lpdwsaclsize as _, powner.unwrap_or(core::mem::zeroed()) as _, lpdwownersize as _, pprimarygroup.unwrap_or(core::mem::zeroed()) as _, lpdwprimarygroupsize as _).ok() } } #[inline] pub unsafe fn MakeSelfRelativeSD(pabsolutesecuritydescriptor: PSECURITY_DESCRIPTOR, pselfrelativesecuritydescriptor: Option, lpdwbufferlength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn MakeSelfRelativeSD(pabsolutesecuritydescriptor : PSECURITY_DESCRIPTOR, pselfrelativesecuritydescriptor : PSECURITY_DESCRIPTOR, lpdwbufferlength : *mut u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn MakeSelfRelativeSD(pabsolutesecuritydescriptor : PSECURITY_DESCRIPTOR, pselfrelativesecuritydescriptor : PSECURITY_DESCRIPTOR, lpdwbufferlength : *mut u32) -> windows_core::BOOL); unsafe { MakeSelfRelativeSD(pabsolutesecuritydescriptor, pselfrelativesecuritydescriptor.unwrap_or(core::mem::zeroed()) as _, lpdwbufferlength as _).ok() } } #[inline] @@ -666,15 +666,15 @@ pub unsafe fn ObjectCloseAuditAlarmA(subsystemname: P0, handleid: *const cor where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn ObjectCloseAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, generateonclose : super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ObjectCloseAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, generateonclose : windows_core::BOOL) -> windows_core::BOOL); unsafe { ObjectCloseAuditAlarmA(subsystemname.param().abi(), handleid, generateonclose.into()).ok() } } #[inline] -pub unsafe fn ObjectCloseAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, generateonclose: bool) -> super::Foundation::BOOL +pub unsafe fn ObjectCloseAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, generateonclose: bool) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn ObjectCloseAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, generateonclose : super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ObjectCloseAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, generateonclose : windows_core::BOOL) -> windows_core::BOOL); unsafe { ObjectCloseAuditAlarmW(subsystemname.param().abi(), handleid, generateonclose.into()) } } #[inline] @@ -682,35 +682,35 @@ pub unsafe fn ObjectDeleteAuditAlarmA(subsystemname: P0, handleid: *const co where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn ObjectDeleteAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, generateonclose : super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ObjectDeleteAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, generateonclose : windows_core::BOOL) -> windows_core::BOOL); unsafe { ObjectDeleteAuditAlarmA(subsystemname.param().abi(), handleid, generateonclose.into()).ok() } } #[inline] -pub unsafe fn ObjectDeleteAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, generateonclose: bool) -> super::Foundation::BOOL +pub unsafe fn ObjectDeleteAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, generateonclose: bool) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn ObjectDeleteAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, generateonclose : super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ObjectDeleteAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, generateonclose : windows_core::BOOL) -> windows_core::BOOL); unsafe { ObjectDeleteAuditAlarmW(subsystemname.param().abi(), handleid, generateonclose.into()) } } #[inline] -pub unsafe fn ObjectOpenAuditAlarmA(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P2, objectname: P3, psecuritydescriptor: PSECURITY_DESCRIPTOR, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, grantedaccess: u32, privileges: Option<*const PRIVILEGE_SET>, objectcreation: bool, accessgranted: bool, generateonclose: *mut super::Foundation::BOOL) -> windows_core::Result<()> +pub unsafe fn ObjectOpenAuditAlarmA(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P2, objectname: P3, psecuritydescriptor: PSECURITY_DESCRIPTOR, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, grantedaccess: u32, privileges: Option<*const PRIVILEGE_SET>, objectcreation: bool, accessgranted: bool, generateonclose: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn ObjectOpenAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCSTR, objectname : windows_core::PCSTR, psecuritydescriptor : PSECURITY_DESCRIPTOR, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, grantedaccess : u32, privileges : *const PRIVILEGE_SET, objectcreation : super::Foundation:: BOOL, accessgranted : super::Foundation:: BOOL, generateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ObjectOpenAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCSTR, objectname : windows_core::PCSTR, psecuritydescriptor : PSECURITY_DESCRIPTOR, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, grantedaccess : u32, privileges : *const PRIVILEGE_SET, objectcreation : windows_core::BOOL, accessgranted : windows_core::BOOL, generateonclose : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { ObjectOpenAuditAlarmA(subsystemname.param().abi(), handleid, objecttypename.param().abi(), objectname.param().abi(), psecuritydescriptor, clienttoken, desiredaccess, grantedaccess, privileges.unwrap_or(core::mem::zeroed()) as _, objectcreation.into(), accessgranted.into(), generateonclose as _).ok() } } #[inline] -pub unsafe fn ObjectOpenAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P2, objectname: P3, psecuritydescriptor: PSECURITY_DESCRIPTOR, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, grantedaccess: u32, privileges: Option<*const PRIVILEGE_SET>, objectcreation: bool, accessgranted: bool, generateonclose: *mut super::Foundation::BOOL) -> super::Foundation::BOOL +pub unsafe fn ObjectOpenAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, objecttypename: P2, objectname: P3, psecuritydescriptor: PSECURITY_DESCRIPTOR, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, grantedaccess: u32, privileges: Option<*const PRIVILEGE_SET>, objectcreation: bool, accessgranted: bool, generateonclose: *mut windows_core::BOOL) -> windows_core::BOOL where P0: windows_core::Param, P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn ObjectOpenAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCWSTR, objectname : windows_core::PCWSTR, psecuritydescriptor : PSECURITY_DESCRIPTOR, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, grantedaccess : u32, privileges : *const PRIVILEGE_SET, objectcreation : super::Foundation:: BOOL, accessgranted : super::Foundation:: BOOL, generateonclose : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ObjectOpenAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, objecttypename : windows_core::PCWSTR, objectname : windows_core::PCWSTR, psecuritydescriptor : PSECURITY_DESCRIPTOR, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, grantedaccess : u32, privileges : *const PRIVILEGE_SET, objectcreation : windows_core::BOOL, accessgranted : windows_core::BOOL, generateonclose : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { ObjectOpenAuditAlarmW(subsystemname.param().abi(), handleid, objecttypename.param().abi(), objectname.param().abi(), psecuritydescriptor, clienttoken, desiredaccess, grantedaccess, privileges.unwrap_or(core::mem::zeroed()) as _, objectcreation.into(), accessgranted.into(), generateonclose as _) } } #[inline] @@ -718,20 +718,20 @@ pub unsafe fn ObjectPrivilegeAuditAlarmA(subsystemname: P0, handleid: *const where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn ObjectPrivilegeAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, privileges : *const PRIVILEGE_SET, accessgranted : super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ObjectPrivilegeAuditAlarmA(subsystemname : windows_core::PCSTR, handleid : *const core::ffi::c_void, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, privileges : *const PRIVILEGE_SET, accessgranted : windows_core::BOOL) -> windows_core::BOOL); unsafe { ObjectPrivilegeAuditAlarmA(subsystemname.param().abi(), handleid, clienttoken, desiredaccess, privileges, accessgranted.into()).ok() } } #[inline] -pub unsafe fn ObjectPrivilegeAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, privileges: *const PRIVILEGE_SET, accessgranted: bool) -> super::Foundation::BOOL +pub unsafe fn ObjectPrivilegeAuditAlarmW(subsystemname: P0, handleid: *const core::ffi::c_void, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, privileges: *const PRIVILEGE_SET, accessgranted: bool) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn ObjectPrivilegeAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, privileges : *const PRIVILEGE_SET, accessgranted : super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ObjectPrivilegeAuditAlarmW(subsystemname : windows_core::PCWSTR, handleid : *const core::ffi::c_void, clienttoken : super::Foundation:: HANDLE, desiredaccess : u32, privileges : *const PRIVILEGE_SET, accessgranted : windows_core::BOOL) -> windows_core::BOOL); unsafe { ObjectPrivilegeAuditAlarmW(subsystemname.param().abi(), handleid, clienttoken, desiredaccess, privileges, accessgranted.into()) } } #[inline] -pub unsafe fn PrivilegeCheck(clienttoken: super::Foundation::HANDLE, requiredprivileges: *mut PRIVILEGE_SET, pfresult: *mut super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn PrivilegeCheck(clienttoken : super::Foundation:: HANDLE, requiredprivileges : *mut PRIVILEGE_SET, pfresult : *mut super::Foundation:: BOOL) -> super::Foundation:: BOOL); +pub unsafe fn PrivilegeCheck(clienttoken: super::Foundation::HANDLE, requiredprivileges: *mut PRIVILEGE_SET, pfresult: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("advapi32.dll" "system" fn PrivilegeCheck(clienttoken : super::Foundation:: HANDLE, requiredprivileges : *mut PRIVILEGE_SET, pfresult : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { PrivilegeCheck(clienttoken, requiredprivileges as _, pfresult as _).ok() } } #[inline] @@ -740,16 +740,16 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn PrivilegedServiceAuditAlarmA(subsystemname : windows_core::PCSTR, servicename : windows_core::PCSTR, clienttoken : super::Foundation:: HANDLE, privileges : *const PRIVILEGE_SET, accessgranted : super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn PrivilegedServiceAuditAlarmA(subsystemname : windows_core::PCSTR, servicename : windows_core::PCSTR, clienttoken : super::Foundation:: HANDLE, privileges : *const PRIVILEGE_SET, accessgranted : windows_core::BOOL) -> windows_core::BOOL); unsafe { PrivilegedServiceAuditAlarmA(subsystemname.param().abi(), servicename.param().abi(), clienttoken, privileges, accessgranted.into()).ok() } } #[inline] -pub unsafe fn PrivilegedServiceAuditAlarmW(subsystemname: P0, servicename: P1, clienttoken: super::Foundation::HANDLE, privileges: *const PRIVILEGE_SET, accessgranted: bool) -> super::Foundation::BOOL +pub unsafe fn PrivilegedServiceAuditAlarmW(subsystemname: P0, servicename: P1, clienttoken: super::Foundation::HANDLE, privileges: *const PRIVILEGE_SET, accessgranted: bool) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn PrivilegedServiceAuditAlarmW(subsystemname : windows_core::PCWSTR, servicename : windows_core::PCWSTR, clienttoken : super::Foundation:: HANDLE, privileges : *const PRIVILEGE_SET, accessgranted : super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn PrivilegedServiceAuditAlarmW(subsystemname : windows_core::PCWSTR, servicename : windows_core::PCWSTR, clienttoken : super::Foundation:: HANDLE, privileges : *const PRIVILEGE_SET, accessgranted : windows_core::BOOL) -> windows_core::BOOL); unsafe { PrivilegedServiceAuditAlarmW(subsystemname.param().abi(), servicename.param().abi(), clienttoken, privileges, accessgranted.into()) } } #[inline] @@ -763,7 +763,7 @@ pub unsafe fn QuerySecurityAccessMask(securityinformation: OBJECT_SECURITY_INFOR } #[inline] pub unsafe fn RevertToSelf() -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn RevertToSelf() -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn RevertToSelf() -> windows_core::BOOL); unsafe { RevertToSelf().ok() } } #[inline] @@ -778,12 +778,12 @@ pub unsafe fn RtlNormalizeSecurityDescriptor(securitydescriptor: *mut PSECURITY_ } #[inline] pub unsafe fn SetAclInformation(pacl: *mut ACL, paclinformation: *const core::ffi::c_void, naclinformationlength: u32, dwaclinformationclass: ACL_INFORMATION_CLASS) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SetAclInformation(pacl : *mut ACL, paclinformation : *const core::ffi::c_void, naclinformationlength : u32, dwaclinformationclass : ACL_INFORMATION_CLASS) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SetAclInformation(pacl : *mut ACL, paclinformation : *const core::ffi::c_void, naclinformationlength : u32, dwaclinformationclass : ACL_INFORMATION_CLASS) -> windows_core::BOOL); unsafe { SetAclInformation(pacl as _, paclinformation, naclinformationlength, dwaclinformationclass).ok() } } #[inline] -pub unsafe fn SetCachedSigningLevel(sourcefiles: &[super::Foundation::HANDLE], flags: u32, targetfile: Option) -> super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn SetCachedSigningLevel(sourcefiles : *const super::Foundation:: HANDLE, sourcefilecount : u32, flags : u32, targetfile : super::Foundation:: HANDLE) -> super::Foundation:: BOOL); +pub unsafe fn SetCachedSigningLevel(sourcefiles: &[super::Foundation::HANDLE], flags: u32, targetfile: Option) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn SetCachedSigningLevel(sourcefiles : *const super::Foundation:: HANDLE, sourcefilecount : u32, flags : u32, targetfile : super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SetCachedSigningLevel(core::mem::transmute(sourcefiles.as_ptr()), sourcefiles.len().try_into().unwrap(), flags, targetfile.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -791,30 +791,30 @@ pub unsafe fn SetFileSecurityA(lpfilename: P0, securityinformation: OBJECT_S where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn SetFileSecurityA(lpfilename : windows_core::PCSTR, securityinformation : OBJECT_SECURITY_INFORMATION, psecuritydescriptor : PSECURITY_DESCRIPTOR) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SetFileSecurityA(lpfilename : windows_core::PCSTR, securityinformation : OBJECT_SECURITY_INFORMATION, psecuritydescriptor : PSECURITY_DESCRIPTOR) -> windows_core::BOOL); unsafe { SetFileSecurityA(lpfilename.param().abi(), securityinformation, psecuritydescriptor).ok() } } #[inline] -pub unsafe fn SetFileSecurityW(lpfilename: P0, securityinformation: OBJECT_SECURITY_INFORMATION, psecuritydescriptor: PSECURITY_DESCRIPTOR) -> super::Foundation::BOOL +pub unsafe fn SetFileSecurityW(lpfilename: P0, securityinformation: OBJECT_SECURITY_INFORMATION, psecuritydescriptor: PSECURITY_DESCRIPTOR) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn SetFileSecurityW(lpfilename : windows_core::PCWSTR, securityinformation : OBJECT_SECURITY_INFORMATION, psecuritydescriptor : PSECURITY_DESCRIPTOR) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SetFileSecurityW(lpfilename : windows_core::PCWSTR, securityinformation : OBJECT_SECURITY_INFORMATION, psecuritydescriptor : PSECURITY_DESCRIPTOR) -> windows_core::BOOL); unsafe { SetFileSecurityW(lpfilename.param().abi(), securityinformation, psecuritydescriptor) } } #[inline] pub unsafe fn SetKernelObjectSecurity(handle: super::Foundation::HANDLE, securityinformation: OBJECT_SECURITY_INFORMATION, securitydescriptor: PSECURITY_DESCRIPTOR) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SetKernelObjectSecurity(handle : super::Foundation:: HANDLE, securityinformation : OBJECT_SECURITY_INFORMATION, securitydescriptor : PSECURITY_DESCRIPTOR) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SetKernelObjectSecurity(handle : super::Foundation:: HANDLE, securityinformation : OBJECT_SECURITY_INFORMATION, securitydescriptor : PSECURITY_DESCRIPTOR) -> windows_core::BOOL); unsafe { SetKernelObjectSecurity(handle, securityinformation, securitydescriptor).ok() } } #[inline] pub unsafe fn SetPrivateObjectSecurity(securityinformation: OBJECT_SECURITY_INFORMATION, modificationdescriptor: PSECURITY_DESCRIPTOR, objectssecuritydescriptor: *mut PSECURITY_DESCRIPTOR, genericmapping: *const GENERIC_MAPPING, token: Option) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SetPrivateObjectSecurity(securityinformation : OBJECT_SECURITY_INFORMATION, modificationdescriptor : PSECURITY_DESCRIPTOR, objectssecuritydescriptor : *mut PSECURITY_DESCRIPTOR, genericmapping : *const GENERIC_MAPPING, token : super::Foundation:: HANDLE) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SetPrivateObjectSecurity(securityinformation : OBJECT_SECURITY_INFORMATION, modificationdescriptor : PSECURITY_DESCRIPTOR, objectssecuritydescriptor : *mut PSECURITY_DESCRIPTOR, genericmapping : *const GENERIC_MAPPING, token : super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SetPrivateObjectSecurity(securityinformation, modificationdescriptor, objectssecuritydescriptor as _, genericmapping, token.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetPrivateObjectSecurityEx(securityinformation: OBJECT_SECURITY_INFORMATION, modificationdescriptor: PSECURITY_DESCRIPTOR, objectssecuritydescriptor: *mut PSECURITY_DESCRIPTOR, autoinheritflags: SECURITY_AUTO_INHERIT_FLAGS, genericmapping: *const GENERIC_MAPPING, token: Option) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SetPrivateObjectSecurityEx(securityinformation : OBJECT_SECURITY_INFORMATION, modificationdescriptor : PSECURITY_DESCRIPTOR, objectssecuritydescriptor : *mut PSECURITY_DESCRIPTOR, autoinheritflags : SECURITY_AUTO_INHERIT_FLAGS, genericmapping : *const GENERIC_MAPPING, token : super::Foundation:: HANDLE) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SetPrivateObjectSecurityEx(securityinformation : OBJECT_SECURITY_INFORMATION, modificationdescriptor : PSECURITY_DESCRIPTOR, objectssecuritydescriptor : *mut PSECURITY_DESCRIPTOR, autoinheritflags : SECURITY_AUTO_INHERIT_FLAGS, genericmapping : *const GENERIC_MAPPING, token : super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SetPrivateObjectSecurityEx(securityinformation, modificationdescriptor, objectssecuritydescriptor as _, autoinheritflags, genericmapping, token.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -828,22 +828,22 @@ pub unsafe fn SetSecurityAccessMask(securityinformation: OBJECT_SECURITY_INFORMA } #[inline] pub unsafe fn SetSecurityDescriptorControl(psecuritydescriptor: PSECURITY_DESCRIPTOR, controlbitsofinterest: SECURITY_DESCRIPTOR_CONTROL, controlbitstoset: SECURITY_DESCRIPTOR_CONTROL) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SetSecurityDescriptorControl(psecuritydescriptor : PSECURITY_DESCRIPTOR, controlbitsofinterest : SECURITY_DESCRIPTOR_CONTROL, controlbitstoset : SECURITY_DESCRIPTOR_CONTROL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SetSecurityDescriptorControl(psecuritydescriptor : PSECURITY_DESCRIPTOR, controlbitsofinterest : SECURITY_DESCRIPTOR_CONTROL, controlbitstoset : SECURITY_DESCRIPTOR_CONTROL) -> windows_core::BOOL); unsafe { SetSecurityDescriptorControl(psecuritydescriptor, controlbitsofinterest, controlbitstoset).ok() } } #[inline] pub unsafe fn SetSecurityDescriptorDacl(psecuritydescriptor: PSECURITY_DESCRIPTOR, bdaclpresent: bool, pdacl: Option<*const ACL>, bdacldefaulted: bool) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SetSecurityDescriptorDacl(psecuritydescriptor : PSECURITY_DESCRIPTOR, bdaclpresent : super::Foundation:: BOOL, pdacl : *const ACL, bdacldefaulted : super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SetSecurityDescriptorDacl(psecuritydescriptor : PSECURITY_DESCRIPTOR, bdaclpresent : windows_core::BOOL, pdacl : *const ACL, bdacldefaulted : windows_core::BOOL) -> windows_core::BOOL); unsafe { SetSecurityDescriptorDacl(psecuritydescriptor as _, bdaclpresent.into(), pdacl.unwrap_or(core::mem::zeroed()) as _, bdacldefaulted.into()).ok() } } #[inline] pub unsafe fn SetSecurityDescriptorGroup(psecuritydescriptor: PSECURITY_DESCRIPTOR, pgroup: Option, bgroupdefaulted: bool) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SetSecurityDescriptorGroup(psecuritydescriptor : PSECURITY_DESCRIPTOR, pgroup : PSID, bgroupdefaulted : super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SetSecurityDescriptorGroup(psecuritydescriptor : PSECURITY_DESCRIPTOR, pgroup : PSID, bgroupdefaulted : windows_core::BOOL) -> windows_core::BOOL); unsafe { SetSecurityDescriptorGroup(psecuritydescriptor as _, pgroup.unwrap_or(core::mem::zeroed()) as _, bgroupdefaulted.into()).ok() } } #[inline] pub unsafe fn SetSecurityDescriptorOwner(psecuritydescriptor: PSECURITY_DESCRIPTOR, powner: Option, bownerdefaulted: bool) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SetSecurityDescriptorOwner(psecuritydescriptor : PSECURITY_DESCRIPTOR, powner : PSID, bownerdefaulted : super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SetSecurityDescriptorOwner(psecuritydescriptor : PSECURITY_DESCRIPTOR, powner : PSID, bownerdefaulted : windows_core::BOOL) -> windows_core::BOOL); unsafe { SetSecurityDescriptorOwner(psecuritydescriptor as _, powner.unwrap_or(core::mem::zeroed()) as _, bownerdefaulted.into()).ok() } } #[inline] @@ -853,17 +853,17 @@ pub unsafe fn SetSecurityDescriptorRMControl(securitydescriptor: PSECURITY_DESCR } #[inline] pub unsafe fn SetSecurityDescriptorSacl(psecuritydescriptor: PSECURITY_DESCRIPTOR, bsaclpresent: bool, psacl: Option<*const ACL>, bsacldefaulted: bool) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SetSecurityDescriptorSacl(psecuritydescriptor : PSECURITY_DESCRIPTOR, bsaclpresent : super::Foundation:: BOOL, psacl : *const ACL, bsacldefaulted : super::Foundation:: BOOL) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SetSecurityDescriptorSacl(psecuritydescriptor : PSECURITY_DESCRIPTOR, bsaclpresent : windows_core::BOOL, psacl : *const ACL, bsacldefaulted : windows_core::BOOL) -> windows_core::BOOL); unsafe { SetSecurityDescriptorSacl(psecuritydescriptor as _, bsaclpresent.into(), psacl.unwrap_or(core::mem::zeroed()) as _, bsacldefaulted.into()).ok() } } #[inline] pub unsafe fn SetTokenInformation(tokenhandle: super::Foundation::HANDLE, tokeninformationclass: TOKEN_INFORMATION_CLASS, tokeninformation: *const core::ffi::c_void, tokeninformationlength: u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SetTokenInformation(tokenhandle : super::Foundation:: HANDLE, tokeninformationclass : TOKEN_INFORMATION_CLASS, tokeninformation : *const core::ffi::c_void, tokeninformationlength : u32) -> super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SetTokenInformation(tokenhandle : super::Foundation:: HANDLE, tokeninformationclass : TOKEN_INFORMATION_CLASS, tokeninformation : *const core::ffi::c_void, tokeninformationlength : u32) -> windows_core::BOOL); unsafe { SetTokenInformation(tokenhandle, tokeninformationclass, tokeninformation, tokeninformationlength).ok() } } #[inline] pub unsafe fn SetUserObjectSecurity(hobj: super::Foundation::HANDLE, psirequested: *const OBJECT_SECURITY_INFORMATION, psid: PSECURITY_DESCRIPTOR) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetUserObjectSecurity(hobj : super::Foundation:: HANDLE, psirequested : *const OBJECT_SECURITY_INFORMATION, psid : PSECURITY_DESCRIPTOR) -> super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetUserObjectSecurity(hobj : super::Foundation:: HANDLE, psirequested : *const OBJECT_SECURITY_INFORMATION, psid : PSECURITY_DESCRIPTOR) -> windows_core::BOOL); unsafe { SetUserObjectSecurity(hobj, psirequested, psid).ok() } } #[repr(C)] @@ -1529,7 +1529,7 @@ pub const SECURITY_APP_PACKAGE_AUTHORITY: SID_IDENTIFIER_AUTHORITY = SID_IDENTIF pub struct SECURITY_ATTRIBUTES { pub nLength: u32, pub lpSecurityDescriptor: *mut core::ffi::c_void, - pub bInheritHandle: super::Foundation::BOOL, + pub bInheritHandle: windows_core::BOOL, } impl Default for SECURITY_ATTRIBUTES { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Cabinets/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Cabinets/mod.rs index f61a403f41..a66efb2653 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Cabinets/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Cabinets/mod.rs @@ -1,10 +1,10 @@ #[inline] -pub unsafe fn FCIAddFile(hfci: *const core::ffi::c_void, pszsourcefile: P1, pszfilename: P2, fexecute: bool, pfnfcignc: PFNFCIGETNEXTCABINET, pfnfcis: PFNFCISTATUS, pfnfcigoi: PFNFCIGETOPENINFO, typecompress: u16) -> super::super::Foundation::BOOL +pub unsafe fn FCIAddFile(hfci: *const core::ffi::c_void, pszsourcefile: P1, pszfilename: P2, fexecute: bool, pfnfcignc: PFNFCIGETNEXTCABINET, pfnfcis: PFNFCISTATUS, pfnfcigoi: PFNFCIGETOPENINFO, typecompress: u16) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("cabinet.dll" "cdecl" fn FCIAddFile(hfci : *const core::ffi::c_void, pszsourcefile : windows_core::PCSTR, pszfilename : windows_core::PCSTR, fexecute : super::super::Foundation:: BOOL, pfnfcignc : PFNFCIGETNEXTCABINET, pfnfcis : PFNFCISTATUS, pfnfcigoi : PFNFCIGETOPENINFO, typecompress : u16) -> super::super::Foundation:: BOOL); + windows_targets::link!("cabinet.dll" "cdecl" fn FCIAddFile(hfci : *const core::ffi::c_void, pszsourcefile : windows_core::PCSTR, pszfilename : windows_core::PCSTR, fexecute : windows_core::BOOL, pfnfcignc : PFNFCIGETNEXTCABINET, pfnfcis : PFNFCISTATUS, pfnfcigoi : PFNFCIGETOPENINFO, typecompress : u16) -> windows_core::BOOL); unsafe { FCIAddFile(hfci, pszsourcefile.param().abi(), pszfilename.param().abi(), fexecute.into(), pfnfcignc, pfnfcis, pfnfcigoi, typecompress) } } #[inline] @@ -13,27 +13,27 @@ pub unsafe fn FCICreate(perf: *const ERF, pfnfcifp: PFNFCIFILEPLACED, pfna: PFNF unsafe { FCICreate(perf, pfnfcifp, pfna, pfnf, pfnopen, pfnread, pfnwrite, pfnclose, pfnseek, pfndelete, pfnfcigtf, pccab, pv.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn FCIDestroy(hfci: *const core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("cabinet.dll" "cdecl" fn FCIDestroy(hfci : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn FCIDestroy(hfci: *const core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("cabinet.dll" "cdecl" fn FCIDestroy(hfci : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { FCIDestroy(hfci) } } #[inline] -pub unsafe fn FCIFlushCabinet(hfci: *const core::ffi::c_void, fgetnextcab: bool, pfnfcignc: PFNFCIGETNEXTCABINET, pfnfcis: PFNFCISTATUS) -> super::super::Foundation::BOOL { - windows_targets::link!("cabinet.dll" "cdecl" fn FCIFlushCabinet(hfci : *const core::ffi::c_void, fgetnextcab : super::super::Foundation:: BOOL, pfnfcignc : PFNFCIGETNEXTCABINET, pfnfcis : PFNFCISTATUS) -> super::super::Foundation:: BOOL); +pub unsafe fn FCIFlushCabinet(hfci: *const core::ffi::c_void, fgetnextcab: bool, pfnfcignc: PFNFCIGETNEXTCABINET, pfnfcis: PFNFCISTATUS) -> windows_core::BOOL { + windows_targets::link!("cabinet.dll" "cdecl" fn FCIFlushCabinet(hfci : *const core::ffi::c_void, fgetnextcab : windows_core::BOOL, pfnfcignc : PFNFCIGETNEXTCABINET, pfnfcis : PFNFCISTATUS) -> windows_core::BOOL); unsafe { FCIFlushCabinet(hfci, fgetnextcab.into(), pfnfcignc, pfnfcis) } } #[inline] -pub unsafe fn FCIFlushFolder(hfci: *const core::ffi::c_void, pfnfcignc: PFNFCIGETNEXTCABINET, pfnfcis: PFNFCISTATUS) -> super::super::Foundation::BOOL { - windows_targets::link!("cabinet.dll" "cdecl" fn FCIFlushFolder(hfci : *const core::ffi::c_void, pfnfcignc : PFNFCIGETNEXTCABINET, pfnfcis : PFNFCISTATUS) -> super::super::Foundation:: BOOL); +pub unsafe fn FCIFlushFolder(hfci: *const core::ffi::c_void, pfnfcignc: PFNFCIGETNEXTCABINET, pfnfcis: PFNFCISTATUS) -> windows_core::BOOL { + windows_targets::link!("cabinet.dll" "cdecl" fn FCIFlushFolder(hfci : *const core::ffi::c_void, pfnfcignc : PFNFCIGETNEXTCABINET, pfnfcis : PFNFCISTATUS) -> windows_core::BOOL); unsafe { FCIFlushFolder(hfci, pfnfcignc, pfnfcis) } } #[inline] -pub unsafe fn FDICopy(hfdi: *const core::ffi::c_void, pszcabinet: P1, pszcabpath: P2, flags: i32, pfnfdin: PFNFDINOTIFY, pfnfdid: PFNFDIDECRYPT, pvuser: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL +pub unsafe fn FDICopy(hfdi: *const core::ffi::c_void, pszcabinet: P1, pszcabpath: P2, flags: i32, pfnfdin: PFNFDINOTIFY, pfnfdid: PFNFDIDECRYPT, pvuser: Option<*const core::ffi::c_void>) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("cabinet.dll" "cdecl" fn FDICopy(hfdi : *const core::ffi::c_void, pszcabinet : windows_core::PCSTR, pszcabpath : windows_core::PCSTR, flags : i32, pfnfdin : PFNFDINOTIFY, pfnfdid : PFNFDIDECRYPT, pvuser : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("cabinet.dll" "cdecl" fn FDICopy(hfdi : *const core::ffi::c_void, pszcabinet : windows_core::PCSTR, pszcabpath : windows_core::PCSTR, flags : i32, pfnfdin : PFNFDINOTIFY, pfnfdid : PFNFDIDECRYPT, pvuser : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { FDICopy(hfdi, pszcabinet.param().abi(), pszcabpath.param().abi(), flags, pfnfdin, pfnfdid, pvuser.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -42,21 +42,21 @@ pub unsafe fn FDICreate(pfnalloc: PFNALLOC, pfnfree: PFNFREE, pfnopen: PFNOPEN, unsafe { FDICreate(pfnalloc, pfnfree, pfnopen, pfnread, pfnwrite, pfnclose, pfnseek, cputype, perf as _) } } #[inline] -pub unsafe fn FDIDestroy(hfdi: *const core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("cabinet.dll" "cdecl" fn FDIDestroy(hfdi : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn FDIDestroy(hfdi: *const core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("cabinet.dll" "cdecl" fn FDIDestroy(hfdi : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { FDIDestroy(hfdi) } } #[inline] -pub unsafe fn FDIIsCabinet(hfdi: *const core::ffi::c_void, hf: isize, pfdici: Option<*mut FDICABINETINFO>) -> super::super::Foundation::BOOL { - windows_targets::link!("cabinet.dll" "cdecl" fn FDIIsCabinet(hfdi : *const core::ffi::c_void, hf : isize, pfdici : *mut FDICABINETINFO) -> super::super::Foundation:: BOOL); +pub unsafe fn FDIIsCabinet(hfdi: *const core::ffi::c_void, hf: isize, pfdici: Option<*mut FDICABINETINFO>) -> windows_core::BOOL { + windows_targets::link!("cabinet.dll" "cdecl" fn FDIIsCabinet(hfdi : *const core::ffi::c_void, hf : isize, pfdici : *mut FDICABINETINFO) -> windows_core::BOOL); unsafe { FDIIsCabinet(hfdi, hf, pfdici.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn FDITruncateCabinet(hfdi: *const core::ffi::c_void, pszcabinetname: P1, ifoldertodelete: u16) -> super::super::Foundation::BOOL +pub unsafe fn FDITruncateCabinet(hfdi: *const core::ffi::c_void, pszcabinetname: P1, ifoldertodelete: u16) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("cabinet.dll" "cdecl" fn FDITruncateCabinet(hfdi : *const core::ffi::c_void, pszcabinetname : windows_core::PCSTR, ifoldertodelete : u16) -> super::super::Foundation:: BOOL); + windows_targets::link!("cabinet.dll" "cdecl" fn FDITruncateCabinet(hfdi : *const core::ffi::c_void, pszcabinetname : windows_core::PCSTR, ifoldertodelete : u16) -> windows_core::BOOL); unsafe { FDITruncateCabinet(hfdi, pszcabinetname.param().abi(), ifoldertodelete) } } pub const CB_MAX_CABINET_NAME: u32 = 256u32; @@ -90,7 +90,7 @@ impl Default for CCAB { pub struct ERF { pub erfOper: i32, pub erfType: i32, - pub fError: super::super::Foundation::BOOL, + pub fError: windows_core::BOOL, } impl Default for ERF { fn default() -> Self { @@ -118,9 +118,9 @@ pub struct FDICABINETINFO { pub cFiles: u16, pub setID: u16, pub iCabinet: u16, - pub fReserve: super::super::Foundation::BOOL, - pub hasprev: super::super::Foundation::BOOL, - pub hasnext: super::super::Foundation::BOOL, + pub fReserve: windows_core::BOOL, + pub hasprev: windows_core::BOOL, + pub hasnext: windows_core::BOOL, } impl Default for FDICABINETINFO { fn default() -> Self { @@ -174,7 +174,7 @@ pub struct FDIDECRYPT_0_2 { pub cbDataReserve: u16, pub pbData: *mut core::ffi::c_void, pub cbData: u16, - pub fSplit: super::super::Foundation::BOOL, + pub fSplit: windows_core::BOOL, pub cbPartial: u16, } impl Default for FDIDECRYPT_0_2 { @@ -272,11 +272,11 @@ pub type PFNCLOSE = Option i32>; pub type PFNFCIALLOC = Option *mut core::ffi::c_void>; pub type PFNFCICLOSE = Option i32>; pub type PFNFCIDELETE = Option i32>; -pub type PFNFCIFILEPLACED = Option i32>; +pub type PFNFCIFILEPLACED = Option i32>; pub type PFNFCIFREE = Option; -pub type PFNFCIGETNEXTCABINET = Option super::super::Foundation::BOOL>; +pub type PFNFCIGETNEXTCABINET = Option windows_core::BOOL>; pub type PFNFCIGETOPENINFO = Option isize>; -pub type PFNFCIGETTEMPFILE = Option super::super::Foundation::BOOL>; +pub type PFNFCIGETTEMPFILE = Option windows_core::BOOL>; pub type PFNFCIOPEN = Option isize>; pub type PFNFCIREAD = Option u32>; pub type PFNFCISEEK = Option i32>; diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Compression/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Compression/mod.rs index b2d199c3e9..a884d0df78 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Compression/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Compression/mod.rs @@ -1,61 +1,61 @@ #[inline] pub unsafe fn CloseCompressor(compressorhandle: COMPRESSOR_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("cabinet.dll" "system" fn CloseCompressor(compressorhandle : COMPRESSOR_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("cabinet.dll" "system" fn CloseCompressor(compressorhandle : COMPRESSOR_HANDLE) -> windows_core::BOOL); unsafe { CloseCompressor(compressorhandle).ok() } } #[inline] pub unsafe fn CloseDecompressor(decompressorhandle: DECOMPRESSOR_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("cabinet.dll" "system" fn CloseDecompressor(decompressorhandle : DECOMPRESSOR_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("cabinet.dll" "system" fn CloseDecompressor(decompressorhandle : DECOMPRESSOR_HANDLE) -> windows_core::BOOL); unsafe { CloseDecompressor(decompressorhandle).ok() } } #[inline] pub unsafe fn Compress(compressorhandle: COMPRESSOR_HANDLE, uncompresseddata: Option<*const core::ffi::c_void>, uncompresseddatasize: usize, compressedbuffer: Option<*mut core::ffi::c_void>, compressedbuffersize: usize, compresseddatasize: *mut usize) -> windows_core::Result<()> { - windows_targets::link!("cabinet.dll" "system" fn Compress(compressorhandle : COMPRESSOR_HANDLE, uncompresseddata : *const core::ffi::c_void, uncompresseddatasize : usize, compressedbuffer : *mut core::ffi::c_void, compressedbuffersize : usize, compresseddatasize : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("cabinet.dll" "system" fn Compress(compressorhandle : COMPRESSOR_HANDLE, uncompresseddata : *const core::ffi::c_void, uncompresseddatasize : usize, compressedbuffer : *mut core::ffi::c_void, compressedbuffersize : usize, compresseddatasize : *mut usize) -> windows_core::BOOL); unsafe { Compress(compressorhandle, uncompresseddata.unwrap_or(core::mem::zeroed()) as _, uncompresseddatasize, compressedbuffer.unwrap_or(core::mem::zeroed()) as _, compressedbuffersize, compresseddatasize as _).ok() } } #[inline] pub unsafe fn CreateCompressor(algorithm: COMPRESS_ALGORITHM, allocationroutines: Option<*const COMPRESS_ALLOCATION_ROUTINES>, compressorhandle: *mut COMPRESSOR_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("cabinet.dll" "system" fn CreateCompressor(algorithm : COMPRESS_ALGORITHM, allocationroutines : *const COMPRESS_ALLOCATION_ROUTINES, compressorhandle : *mut COMPRESSOR_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("cabinet.dll" "system" fn CreateCompressor(algorithm : COMPRESS_ALGORITHM, allocationroutines : *const COMPRESS_ALLOCATION_ROUTINES, compressorhandle : *mut COMPRESSOR_HANDLE) -> windows_core::BOOL); unsafe { CreateCompressor(algorithm, allocationroutines.unwrap_or(core::mem::zeroed()) as _, compressorhandle as _).ok() } } #[inline] pub unsafe fn CreateDecompressor(algorithm: COMPRESS_ALGORITHM, allocationroutines: Option<*const COMPRESS_ALLOCATION_ROUTINES>, decompressorhandle: *mut DECOMPRESSOR_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("cabinet.dll" "system" fn CreateDecompressor(algorithm : COMPRESS_ALGORITHM, allocationroutines : *const COMPRESS_ALLOCATION_ROUTINES, decompressorhandle : *mut DECOMPRESSOR_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("cabinet.dll" "system" fn CreateDecompressor(algorithm : COMPRESS_ALGORITHM, allocationroutines : *const COMPRESS_ALLOCATION_ROUTINES, decompressorhandle : *mut DECOMPRESSOR_HANDLE) -> windows_core::BOOL); unsafe { CreateDecompressor(algorithm, allocationroutines.unwrap_or(core::mem::zeroed()) as _, decompressorhandle as _).ok() } } #[inline] pub unsafe fn Decompress(decompressorhandle: DECOMPRESSOR_HANDLE, compresseddata: Option<*const core::ffi::c_void>, compresseddatasize: usize, uncompressedbuffer: Option<*mut core::ffi::c_void>, uncompressedbuffersize: usize, uncompresseddatasize: Option<*mut usize>) -> windows_core::Result<()> { - windows_targets::link!("cabinet.dll" "system" fn Decompress(decompressorhandle : DECOMPRESSOR_HANDLE, compresseddata : *const core::ffi::c_void, compresseddatasize : usize, uncompressedbuffer : *mut core::ffi::c_void, uncompressedbuffersize : usize, uncompresseddatasize : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("cabinet.dll" "system" fn Decompress(decompressorhandle : DECOMPRESSOR_HANDLE, compresseddata : *const core::ffi::c_void, compresseddatasize : usize, uncompressedbuffer : *mut core::ffi::c_void, uncompressedbuffersize : usize, uncompresseddatasize : *mut usize) -> windows_core::BOOL); unsafe { Decompress(decompressorhandle, compresseddata.unwrap_or(core::mem::zeroed()) as _, compresseddatasize, uncompressedbuffer.unwrap_or(core::mem::zeroed()) as _, uncompressedbuffersize, uncompresseddatasize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn QueryCompressorInformation(compressorhandle: COMPRESSOR_HANDLE, compressinformationclass: COMPRESS_INFORMATION_CLASS, compressinformation: *mut core::ffi::c_void, compressinformationsize: usize) -> windows_core::Result<()> { - windows_targets::link!("cabinet.dll" "system" fn QueryCompressorInformation(compressorhandle : COMPRESSOR_HANDLE, compressinformationclass : COMPRESS_INFORMATION_CLASS, compressinformation : *mut core::ffi::c_void, compressinformationsize : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("cabinet.dll" "system" fn QueryCompressorInformation(compressorhandle : COMPRESSOR_HANDLE, compressinformationclass : COMPRESS_INFORMATION_CLASS, compressinformation : *mut core::ffi::c_void, compressinformationsize : usize) -> windows_core::BOOL); unsafe { QueryCompressorInformation(compressorhandle, compressinformationclass, compressinformation as _, compressinformationsize).ok() } } #[inline] pub unsafe fn QueryDecompressorInformation(decompressorhandle: DECOMPRESSOR_HANDLE, compressinformationclass: COMPRESS_INFORMATION_CLASS, compressinformation: *mut core::ffi::c_void, compressinformationsize: usize) -> windows_core::Result<()> { - windows_targets::link!("cabinet.dll" "system" fn QueryDecompressorInformation(decompressorhandle : DECOMPRESSOR_HANDLE, compressinformationclass : COMPRESS_INFORMATION_CLASS, compressinformation : *mut core::ffi::c_void, compressinformationsize : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("cabinet.dll" "system" fn QueryDecompressorInformation(decompressorhandle : DECOMPRESSOR_HANDLE, compressinformationclass : COMPRESS_INFORMATION_CLASS, compressinformation : *mut core::ffi::c_void, compressinformationsize : usize) -> windows_core::BOOL); unsafe { QueryDecompressorInformation(decompressorhandle, compressinformationclass, compressinformation as _, compressinformationsize).ok() } } #[inline] pub unsafe fn ResetCompressor(compressorhandle: COMPRESSOR_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("cabinet.dll" "system" fn ResetCompressor(compressorhandle : COMPRESSOR_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("cabinet.dll" "system" fn ResetCompressor(compressorhandle : COMPRESSOR_HANDLE) -> windows_core::BOOL); unsafe { ResetCompressor(compressorhandle).ok() } } #[inline] pub unsafe fn ResetDecompressor(decompressorhandle: DECOMPRESSOR_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("cabinet.dll" "system" fn ResetDecompressor(decompressorhandle : DECOMPRESSOR_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("cabinet.dll" "system" fn ResetDecompressor(decompressorhandle : DECOMPRESSOR_HANDLE) -> windows_core::BOOL); unsafe { ResetDecompressor(decompressorhandle).ok() } } #[inline] pub unsafe fn SetCompressorInformation(compressorhandle: COMPRESSOR_HANDLE, compressinformationclass: COMPRESS_INFORMATION_CLASS, compressinformation: *const core::ffi::c_void, compressinformationsize: usize) -> windows_core::Result<()> { - windows_targets::link!("cabinet.dll" "system" fn SetCompressorInformation(compressorhandle : COMPRESSOR_HANDLE, compressinformationclass : COMPRESS_INFORMATION_CLASS, compressinformation : *const core::ffi::c_void, compressinformationsize : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("cabinet.dll" "system" fn SetCompressorInformation(compressorhandle : COMPRESSOR_HANDLE, compressinformationclass : COMPRESS_INFORMATION_CLASS, compressinformation : *const core::ffi::c_void, compressinformationsize : usize) -> windows_core::BOOL); unsafe { SetCompressorInformation(compressorhandle, compressinformationclass, compressinformation, compressinformationsize).ok() } } #[inline] pub unsafe fn SetDecompressorInformation(decompressorhandle: DECOMPRESSOR_HANDLE, compressinformationclass: COMPRESS_INFORMATION_CLASS, compressinformation: *const core::ffi::c_void, compressinformationsize: usize) -> windows_core::Result<()> { - windows_targets::link!("cabinet.dll" "system" fn SetDecompressorInformation(decompressorhandle : DECOMPRESSOR_HANDLE, compressinformationclass : COMPRESS_INFORMATION_CLASS, compressinformation : *const core::ffi::c_void, compressinformationsize : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("cabinet.dll" "system" fn SetDecompressorInformation(decompressorhandle : DECOMPRESSOR_HANDLE, compressinformationclass : COMPRESS_INFORMATION_CLASS, compressinformation : *const core::ffi::c_void, compressinformationsize : usize) -> windows_core::BOOL); unsafe { SetDecompressorInformation(decompressorhandle, compressinformationclass, compressinformation, compressinformationsize).ok() } } #[repr(transparent)] 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 9285682193..bb24fc55c3 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/EnhancedStorage/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/EnhancedStorage/mod.rs @@ -94,14 +94,14 @@ pub struct ENHANCED_STORAGE_PASSWORD_SILO_INFORMATION { pub CurrentUserFailures: u8, pub TotalUserAuthenticationCount: u32, pub TotalAdminAuthenticationCount: u32, - pub FipsCompliant: super::super::Foundation::BOOL, - pub SecurityIDAvailable: super::super::Foundation::BOOL, - pub InitializeInProgress: super::super::Foundation::BOOL, - pub ITMSArmed: super::super::Foundation::BOOL, - pub ITMSArmable: super::super::Foundation::BOOL, - pub UserCreated: super::super::Foundation::BOOL, - pub ResetOnPORDefault: super::super::Foundation::BOOL, - pub ResetOnPORCurrent: super::super::Foundation::BOOL, + pub FipsCompliant: windows_core::BOOL, + pub SecurityIDAvailable: windows_core::BOOL, + pub InitializeInProgress: windows_core::BOOL, + pub ITMSArmed: windows_core::BOOL, + pub ITMSArmable: windows_core::BOOL, + pub UserCreated: windows_core::BOOL, + pub ResetOnPORDefault: windows_core::BOOL, + pub ResetOnPORCurrent: windows_core::BOOL, pub MaxAdminFailures: u8, pub MaxUserFailures: u8, pub TimeToCompleteInitialization: u32, @@ -352,7 +352,7 @@ impl IEnhancedStorageACT2 { (windows_core::Interface::vtable(self).GetDeviceName)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsDeviceRemovable(&self) -> windows_core::Result { + pub unsafe fn IsDeviceRemovable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsDeviceRemovable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -363,11 +363,11 @@ impl IEnhancedStorageACT2 { pub struct IEnhancedStorageACT2_Vtbl { pub base__: IEnhancedStorageACT_Vtbl, pub GetDeviceName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub IsDeviceRemovable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsDeviceRemovable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IEnhancedStorageACT2_Impl: IEnhancedStorageACT_Impl { fn GetDeviceName(&self) -> windows_core::Result; - fn IsDeviceRemovable(&self) -> windows_core::Result; + fn IsDeviceRemovable(&self) -> windows_core::Result; } impl IEnhancedStorageACT2_Vtbl { pub const fn new() -> Self { @@ -383,7 +383,7 @@ impl IEnhancedStorageACT2_Vtbl { } } } - unsafe extern "system" fn IsDeviceRemovable(this: *mut core::ffi::c_void, pisdeviceremovable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsDeviceRemovable(this: *mut core::ffi::c_void, pisdeviceremovable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnhancedStorageACT2_Impl::IsDeviceRemovable(this) { @@ -418,13 +418,13 @@ impl IEnhancedStorageACT3 { pub unsafe fn UnauthorizeEx(&self, dwflags: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).UnauthorizeEx)(windows_core::Interface::as_raw(self), dwflags).ok() } } - pub unsafe fn IsQueueFrozen(&self) -> windows_core::Result { + pub unsafe fn IsQueueFrozen(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsQueueFrozen)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetShellExtSupport(&self) -> windows_core::Result { + pub unsafe fn GetShellExtSupport(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetShellExtSupport)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -435,13 +435,13 @@ impl IEnhancedStorageACT3 { pub struct IEnhancedStorageACT3_Vtbl { pub base__: IEnhancedStorageACT2_Vtbl, pub UnauthorizeEx: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub IsQueueFrozen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetShellExtSupport: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsQueueFrozen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub GetShellExtSupport: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IEnhancedStorageACT3_Impl: IEnhancedStorageACT2_Impl { fn UnauthorizeEx(&self, dwflags: u32) -> windows_core::Result<()>; - fn IsQueueFrozen(&self) -> windows_core::Result; - fn GetShellExtSupport(&self) -> windows_core::Result; + fn IsQueueFrozen(&self) -> windows_core::Result; + fn GetShellExtSupport(&self) -> windows_core::Result; } impl IEnhancedStorageACT3_Vtbl { pub const fn new() -> Self { @@ -451,7 +451,7 @@ impl IEnhancedStorageACT3_Vtbl { IEnhancedStorageACT3_Impl::UnauthorizeEx(this, core::mem::transmute_copy(&dwflags)).into() } } - unsafe extern "system" fn IsQueueFrozen(this: *mut core::ffi::c_void, pisqueuefrozen: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsQueueFrozen(this: *mut core::ffi::c_void, pisqueuefrozen: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnhancedStorageACT3_Impl::IsQueueFrozen(this) { @@ -463,7 +463,7 @@ impl IEnhancedStorageACT3_Vtbl { } } } - unsafe extern "system" fn GetShellExtSupport(this: *mut core::ffi::c_void, pshellextsupport: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetShellExtSupport(this: *mut core::ffi::c_void, pshellextsupport: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnhancedStorageACT3_Impl::GetShellExtSupport(this) { 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 024ba157eb..864656caf1 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs @@ -10,7 +10,7 @@ pub unsafe fn FhServiceClosePipe(pipe: FH_SERVICE_PIPE_HANDLE) -> windows_core:: } #[inline] pub unsafe fn FhServiceOpenPipe(startserviceifstopped: bool) -> windows_core::Result { - windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceOpenPipe(startserviceifstopped : super::super::Foundation:: BOOL, pipe : *mut FH_SERVICE_PIPE_HANDLE) -> windows_core::HRESULT); + windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceOpenPipe(startserviceifstopped : windows_core::BOOL, pipe : *mut FH_SERVICE_PIPE_HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); FhServiceOpenPipe(startserviceifstopped.into(), &mut result__).map(|| core::mem::transmute(result__)) @@ -23,12 +23,12 @@ pub unsafe fn FhServiceReloadConfiguration(pipe: FH_SERVICE_PIPE_HANDLE) -> wind } #[inline] pub unsafe fn FhServiceStartBackup(pipe: FH_SERVICE_PIPE_HANDLE, lowpriorityio: bool) -> windows_core::Result<()> { - windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceStartBackup(pipe : FH_SERVICE_PIPE_HANDLE, lowpriorityio : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceStartBackup(pipe : FH_SERVICE_PIPE_HANDLE, lowpriorityio : windows_core::BOOL) -> windows_core::HRESULT); unsafe { FhServiceStartBackup(pipe, lowpriorityio.into()).ok() } } #[inline] pub unsafe fn FhServiceStopBackup(pipe: FH_SERVICE_PIPE_HANDLE, stoptracking: bool) -> windows_core::Result<()> { - windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceStopBackup(pipe : FH_SERVICE_PIPE_HANDLE, stoptracking : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("fhsvcctl.dll" "system" fn FhServiceStopBackup(pipe : FH_SERVICE_PIPE_HANDLE, stoptracking : windows_core::BOOL) -> windows_core::HRESULT); unsafe { FhServiceStopBackup(pipe, stoptracking.into()).ok() } } #[inline] @@ -224,10 +224,10 @@ impl IFhConfigMgr { pub struct IFhConfigMgr_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub LoadConfiguration: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub CreateDefaultConfiguration: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CreateDefaultConfiguration: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SaveConfiguration: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub AddRemoveExcludeRule: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, FH_PROTECTED_ITEM_CATEGORY, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetIncludeExcludeRules: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, FH_PROTECTED_ITEM_CATEGORY, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub AddRemoveExcludeRule: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, FH_PROTECTED_ITEM_CATEGORY, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetIncludeExcludeRules: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, FH_PROTECTED_ITEM_CATEGORY, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetLocalPolicy: unsafe extern "system" fn(*mut core::ffi::c_void, FH_LOCAL_POLICY_TYPE, *mut u64) -> windows_core::HRESULT, pub SetLocalPolicy: unsafe extern "system" fn(*mut core::ffi::c_void, FH_LOCAL_POLICY_TYPE, u64) -> windows_core::HRESULT, pub GetBackupStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut FH_BACKUP_STATUS) -> windows_core::HRESULT, @@ -235,15 +235,15 @@ pub struct IFhConfigMgr_Vtbl { pub GetDefaultTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ValidateTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut FH_DEVICE_VALIDATION_RESULT) -> windows_core::HRESULT, pub ProvisionAndSetNewTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub ChangeDefaultTargetRecommendation: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ChangeDefaultTargetRecommendation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub QueryProtectionStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IFhConfigMgr_Impl: windows_core::IUnknownImpl { fn LoadConfiguration(&self) -> windows_core::Result<()>; - fn CreateDefaultConfiguration(&self, overwriteifexists: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn CreateDefaultConfiguration(&self, overwriteifexists: windows_core::BOOL) -> windows_core::Result<()>; fn SaveConfiguration(&self) -> windows_core::Result<()>; - fn AddRemoveExcludeRule(&self, add: super::super::Foundation::BOOL, category: FH_PROTECTED_ITEM_CATEGORY, item: &windows_core::BSTR) -> windows_core::Result<()>; - fn GetIncludeExcludeRules(&self, include: super::super::Foundation::BOOL, category: FH_PROTECTED_ITEM_CATEGORY) -> windows_core::Result; + fn AddRemoveExcludeRule(&self, add: windows_core::BOOL, category: FH_PROTECTED_ITEM_CATEGORY, item: &windows_core::BSTR) -> windows_core::Result<()>; + fn GetIncludeExcludeRules(&self, include: windows_core::BOOL, category: FH_PROTECTED_ITEM_CATEGORY) -> windows_core::Result; fn GetLocalPolicy(&self, localpolicytype: FH_LOCAL_POLICY_TYPE) -> windows_core::Result; fn SetLocalPolicy(&self, localpolicytype: FH_LOCAL_POLICY_TYPE, policyvalue: u64) -> windows_core::Result<()>; fn GetBackupStatus(&self) -> windows_core::Result; @@ -251,7 +251,7 @@ pub trait IFhConfigMgr_Impl: windows_core::IUnknownImpl { fn GetDefaultTarget(&self) -> windows_core::Result; fn ValidateTarget(&self, targeturl: &windows_core::BSTR) -> windows_core::Result; fn ProvisionAndSetNewTarget(&self, targeturl: &windows_core::BSTR, targetname: &windows_core::BSTR) -> windows_core::Result<()>; - fn ChangeDefaultTargetRecommendation(&self, recommend: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ChangeDefaultTargetRecommendation(&self, recommend: windows_core::BOOL) -> windows_core::Result<()>; fn QueryProtectionStatus(&self, protectionstate: *mut u32, protecteduntiltime: *mut windows_core::BSTR) -> windows_core::Result<()>; } impl IFhConfigMgr_Vtbl { @@ -262,7 +262,7 @@ impl IFhConfigMgr_Vtbl { IFhConfigMgr_Impl::LoadConfiguration(this).into() } } - unsafe extern "system" fn CreateDefaultConfiguration(this: *mut core::ffi::c_void, overwriteifexists: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CreateDefaultConfiguration(this: *mut core::ffi::c_void, overwriteifexists: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFhConfigMgr_Impl::CreateDefaultConfiguration(this, core::mem::transmute_copy(&overwriteifexists)).into() @@ -274,13 +274,13 @@ impl IFhConfigMgr_Vtbl { IFhConfigMgr_Impl::SaveConfiguration(this).into() } } - unsafe extern "system" fn AddRemoveExcludeRule(this: *mut core::ffi::c_void, add: super::super::Foundation::BOOL, category: FH_PROTECTED_ITEM_CATEGORY, item: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn AddRemoveExcludeRule(this: *mut core::ffi::c_void, add: windows_core::BOOL, category: FH_PROTECTED_ITEM_CATEGORY, item: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFhConfigMgr_Impl::AddRemoveExcludeRule(this, core::mem::transmute_copy(&add), core::mem::transmute_copy(&category), core::mem::transmute(&item)).into() } } - unsafe extern "system" fn GetIncludeExcludeRules(this: *mut core::ffi::c_void, include: super::super::Foundation::BOOL, category: FH_PROTECTED_ITEM_CATEGORY, iterator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetIncludeExcludeRules(this: *mut core::ffi::c_void, include: windows_core::BOOL, category: FH_PROTECTED_ITEM_CATEGORY, iterator: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFhConfigMgr_Impl::GetIncludeExcludeRules(this, core::mem::transmute_copy(&include), core::mem::transmute_copy(&category)) { @@ -358,7 +358,7 @@ impl IFhConfigMgr_Vtbl { IFhConfigMgr_Impl::ProvisionAndSetNewTarget(this, core::mem::transmute(&targeturl), core::mem::transmute(&targetname)).into() } } - unsafe extern "system" fn ChangeDefaultTargetRecommendation(this: *mut core::ffi::c_void, recommend: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ChangeDefaultTargetRecommendation(this: *mut core::ffi::c_void, recommend: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFhConfigMgr_Impl::ChangeDefaultTargetRecommendation(this, core::mem::transmute_copy(&recommend)).into() @@ -422,14 +422,14 @@ pub struct IFhReassociation_Vtbl { pub ScanTargetForConfigurations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetConfigurationDetails: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT, pub SelectConfiguration: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub PerformReassociation: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub PerformReassociation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IFhReassociation_Impl: windows_core::IUnknownImpl { fn ValidateTarget(&self, targeturl: &windows_core::BSTR) -> windows_core::Result; fn ScanTargetForConfigurations(&self, targeturl: &windows_core::BSTR) -> windows_core::Result<()>; fn GetConfigurationDetails(&self, index: u32, username: *mut windows_core::BSTR, pcname: *mut windows_core::BSTR, backuptime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()>; fn SelectConfiguration(&self, index: u32) -> windows_core::Result<()>; - fn PerformReassociation(&self, overwriteifexists: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn PerformReassociation(&self, overwriteifexists: windows_core::BOOL) -> windows_core::Result<()>; } impl IFhReassociation_Vtbl { pub const fn new() -> Self { @@ -463,7 +463,7 @@ impl IFhReassociation_Vtbl { IFhReassociation_Impl::SelectConfiguration(this, core::mem::transmute_copy(&index)).into() } } - unsafe extern "system" fn PerformReassociation(this: *mut core::ffi::c_void, overwriteifexists: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn PerformReassociation(this: *mut core::ffi::c_void, overwriteifexists: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFhReassociation_Impl::PerformReassociation(this, core::mem::transmute_copy(&overwriteifexists)).into() 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 383dd9cfd2..18557e0655 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs @@ -3,12 +3,12 @@ pub unsafe fn AddLogContainer(hlog: super::super::Foundation::HANDLE, pcbcon where P2: windows_core::Param, { - windows_targets::link!("clfsw32.dll" "system" fn AddLogContainer(hlog : super::super::Foundation:: HANDLE, pcbcontainer : *const u64, pwszcontainerpath : windows_core::PCWSTR, preserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn AddLogContainer(hlog : super::super::Foundation:: HANDLE, pcbcontainer : *const u64, pwszcontainerpath : windows_core::PCWSTR, preserved : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { AddLogContainer(hlog, pcbcontainer.unwrap_or(core::mem::zeroed()) as _, pwszcontainerpath.param().abi(), preserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn AddLogContainerSet(hlog: super::super::Foundation::HANDLE, pcbcontainer: Option<*const u64>, rgwszcontainerpath: &[windows_core::PCWSTR], preserved: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn AddLogContainerSet(hlog : super::super::Foundation:: HANDLE, ccontainer : u16, pcbcontainer : *const u64, rgwszcontainerpath : *const windows_core::PCWSTR, preserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn AddLogContainerSet(hlog : super::super::Foundation:: HANDLE, ccontainer : u16, pcbcontainer : *const u64, rgwszcontainerpath : *const windows_core::PCWSTR, preserved : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { AddLogContainerSet(hlog, rgwszcontainerpath.len().try_into().unwrap(), pcbcontainer.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(rgwszcontainerpath.as_ptr()), preserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_Security")] @@ -23,42 +23,42 @@ where #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn AdvanceLogBase(pvmarshal: *mut core::ffi::c_void, plsnbase: *mut CLS_LSN, fflags: u32, poverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn AdvanceLogBase(pvmarshal : *mut core::ffi::c_void, plsnbase : *mut CLS_LSN, fflags : u32, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn AdvanceLogBase(pvmarshal : *mut core::ffi::c_void, plsnbase : *mut CLS_LSN, fflags : u32, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { AdvanceLogBase(pvmarshal as _, plsnbase as _, fflags, poverlapped as _).ok() } } #[inline] pub unsafe fn AlignReservedLog(pvmarshal: *mut core::ffi::c_void, creservedrecords: u32, rgcbreservation: *mut i64, pcbalignreservation: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn AlignReservedLog(pvmarshal : *mut core::ffi::c_void, creservedrecords : u32, rgcbreservation : *mut i64, pcbalignreservation : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn AlignReservedLog(pvmarshal : *mut core::ffi::c_void, creservedrecords : u32, rgcbreservation : *mut i64, pcbalignreservation : *mut i64) -> windows_core::BOOL); unsafe { AlignReservedLog(pvmarshal as _, creservedrecords, rgcbreservation as _, pcbalignreservation as _).ok() } } #[inline] pub unsafe fn AllocReservedLog(pvmarshal: *mut core::ffi::c_void, creservedrecords: u32, pcbadjustment: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn AllocReservedLog(pvmarshal : *mut core::ffi::c_void, creservedrecords : u32, pcbadjustment : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn AllocReservedLog(pvmarshal : *mut core::ffi::c_void, creservedrecords : u32, pcbadjustment : *mut i64) -> windows_core::BOOL); unsafe { AllocReservedLog(pvmarshal as _, creservedrecords, pcbadjustment as _).ok() } } #[inline] -pub unsafe fn AreFileApisANSI() -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn AreFileApisANSI() -> super::super::Foundation:: BOOL); +pub unsafe fn AreFileApisANSI() -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn AreFileApisANSI() -> windows_core::BOOL); unsafe { AreFileApisANSI() } } #[inline] -pub unsafe fn AreShortNamesEnabled(handle: super::super::Foundation::HANDLE, enabled: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn AreShortNamesEnabled(handle : super::super::Foundation:: HANDLE, enabled : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn AreShortNamesEnabled(handle: super::super::Foundation::HANDLE, enabled: *mut windows_core::BOOL) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn AreShortNamesEnabled(handle : super::super::Foundation:: HANDLE, enabled : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { AreShortNamesEnabled(handle, enabled as _) } } #[inline] pub unsafe fn BackupRead(hfile: super::super::Foundation::HANDLE, lpbuffer: &mut [u8], lpnumberofbytesread: *mut u32, babort: bool, bprocesssecurity: bool, lpcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn BackupRead(hfile : super::super::Foundation:: HANDLE, lpbuffer : *mut u8, nnumberofbytestoread : u32, lpnumberofbytesread : *mut u32, babort : super::super::Foundation:: BOOL, bprocesssecurity : super::super::Foundation:: BOOL, lpcontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn BackupRead(hfile : super::super::Foundation:: HANDLE, lpbuffer : *mut u8, nnumberofbytestoread : u32, lpnumberofbytesread : *mut u32, babort : windows_core::BOOL, bprocesssecurity : windows_core::BOOL, lpcontext : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { BackupRead(hfile, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofbytesread as _, babort.into(), bprocesssecurity.into(), lpcontext as _).ok() } } #[inline] pub unsafe fn BackupSeek(hfile: super::super::Foundation::HANDLE, dwlowbytestoseek: u32, dwhighbytestoseek: u32, lpdwlowbyteseeked: *mut u32, lpdwhighbyteseeked: *mut u32, lpcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn BackupSeek(hfile : super::super::Foundation:: HANDLE, dwlowbytestoseek : u32, dwhighbytestoseek : u32, lpdwlowbyteseeked : *mut u32, lpdwhighbyteseeked : *mut u32, lpcontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn BackupSeek(hfile : super::super::Foundation:: HANDLE, dwlowbytestoseek : u32, dwhighbytestoseek : u32, lpdwlowbyteseeked : *mut u32, lpdwhighbyteseeked : *mut u32, lpcontext : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { BackupSeek(hfile, dwlowbytestoseek, dwhighbytestoseek, lpdwlowbyteseeked as _, lpdwhighbyteseeked as _, lpcontext as _).ok() } } #[inline] pub unsafe fn BackupWrite(hfile: super::super::Foundation::HANDLE, lpbuffer: &[u8], lpnumberofbyteswritten: *mut u32, babort: bool, bprocesssecurity: bool, lpcontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn BackupWrite(hfile : super::super::Foundation:: HANDLE, lpbuffer : *const u8, nnumberofbytestowrite : u32, lpnumberofbyteswritten : *mut u32, babort : super::super::Foundation:: BOOL, bprocesssecurity : super::super::Foundation:: BOOL, lpcontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn BackupWrite(hfile : super::super::Foundation:: HANDLE, lpbuffer : *const u8, nnumberofbytestowrite : u32, lpnumberofbyteswritten : *mut u32, babort : windows_core::BOOL, bprocesssecurity : windows_core::BOOL, lpcontext : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { BackupWrite(hfile, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofbyteswritten as _, babort.into(), bprocesssecurity.into(), lpcontext as _).ok() } } #[inline] @@ -92,24 +92,24 @@ pub unsafe fn BuildIoRingWriteFile(ioring: HIORING, fileref: IORING_HANDLE_REF, unsafe { BuildIoRingWriteFile(ioring, core::mem::transmute(fileref), core::mem::transmute(bufferref), numberofbytestowrite, fileoffset, writeflags, userdata, sqeflags).ok() } } #[inline] -pub unsafe fn CheckNameLegalDOS8Dot3A(lpname: P0, lpoemname: Option<&mut [u8]>, pbnamecontainsspaces: Option<*mut super::super::Foundation::BOOL>, pbnamelegal: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> +pub unsafe fn CheckNameLegalDOS8Dot3A(lpname: P0, lpoemname: Option<&mut [u8]>, pbnamecontainsspaces: Option<*mut windows_core::BOOL>, pbnamelegal: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CheckNameLegalDOS8Dot3A(lpname : windows_core::PCSTR, lpoemname : windows_core::PSTR, oemnamesize : u32, pbnamecontainsspaces : *mut super::super::Foundation:: BOOL, pbnamelegal : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CheckNameLegalDOS8Dot3A(lpname : windows_core::PCSTR, lpoemname : windows_core::PSTR, oemnamesize : u32, pbnamecontainsspaces : *mut windows_core::BOOL, pbnamelegal : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { CheckNameLegalDOS8Dot3A(lpname.param().abi(), core::mem::transmute(lpoemname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpoemname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pbnamecontainsspaces.unwrap_or(core::mem::zeroed()) as _, pbnamelegal as _).ok() } } #[inline] -pub unsafe fn CheckNameLegalDOS8Dot3W(lpname: P0, lpoemname: Option<&mut [u8]>, pbnamecontainsspaces: Option<*mut super::super::Foundation::BOOL>, pbnamelegal: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> +pub unsafe fn CheckNameLegalDOS8Dot3W(lpname: P0, lpoemname: Option<&mut [u8]>, pbnamecontainsspaces: Option<*mut windows_core::BOOL>, pbnamelegal: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CheckNameLegalDOS8Dot3W(lpname : windows_core::PCWSTR, lpoemname : windows_core::PSTR, oemnamesize : u32, pbnamecontainsspaces : *mut super::super::Foundation:: BOOL, pbnamelegal : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CheckNameLegalDOS8Dot3W(lpname : windows_core::PCWSTR, lpoemname : windows_core::PSTR, oemnamesize : u32, pbnamecontainsspaces : *mut windows_core::BOOL, pbnamelegal : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { CheckNameLegalDOS8Dot3W(lpname.param().abi(), core::mem::transmute(lpoemname.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpoemname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pbnamecontainsspaces.unwrap_or(core::mem::zeroed()) as _, pbnamelegal as _).ok() } } #[inline] pub unsafe fn CloseAndResetLogFile(hlog: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn CloseAndResetLogFile(hlog : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn CloseAndResetLogFile(hlog : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CloseAndResetLogFile(hlog).ok() } } #[inline] @@ -124,22 +124,22 @@ pub unsafe fn CloseIoRing(ioring: HIORING) -> windows_core::Result<()> { } #[inline] pub unsafe fn CommitComplete(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn CommitComplete(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn CommitComplete(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> windows_core::BOOL); unsafe { CommitComplete(enlistmenthandle, tmvirtualclock as _).ok() } } #[inline] pub unsafe fn CommitEnlistment(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn CommitEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn CommitEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> windows_core::BOOL); unsafe { CommitEnlistment(enlistmenthandle, tmvirtualclock as _).ok() } } #[inline] pub unsafe fn CommitTransaction(transactionhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn CommitTransaction(transactionhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn CommitTransaction(transactionhandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CommitTransaction(transactionhandle).ok() } } #[inline] pub unsafe fn CommitTransactionAsync(transactionhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn CommitTransactionAsync(transactionhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn CommitTransactionAsync(transactionhandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CommitTransactionAsync(transactionhandle).ok() } } #[inline] @@ -162,52 +162,52 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CopyFileA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR, bfailifexists : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CopyFileA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR, bfailifexists : windows_core::BOOL) -> windows_core::BOOL); unsafe { CopyFileA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), bfailifexists.into()).ok() } } #[inline] -pub unsafe fn CopyFileExA(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: Option, lpdata: Option<*const core::ffi::c_void>, pbcancel: Option<*mut super::super::Foundation::BOOL>, dwcopyflags: COPYFILE_FLAGS) -> windows_core::Result<()> +pub unsafe fn CopyFileExA(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: Option, lpdata: Option<*const core::ffi::c_void>, pbcancel: Option<*mut windows_core::BOOL>, dwcopyflags: COPYFILE_FLAGS) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CopyFileExA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, pbcancel : *mut super::super::Foundation:: BOOL, dwcopyflags : COPYFILE_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CopyFileExA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, pbcancel : *mut windows_core::BOOL, dwcopyflags : COPYFILE_FLAGS) -> windows_core::BOOL); unsafe { CopyFileExA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), lpprogressroutine.unwrap_or(core::mem::zeroed()) as _, lpdata.unwrap_or(core::mem::zeroed()) as _, pbcancel.unwrap_or(core::mem::zeroed()) as _, dwcopyflags).ok() } } #[inline] -pub unsafe fn CopyFileExW(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: Option, lpdata: Option<*const core::ffi::c_void>, pbcancel: Option<*mut super::super::Foundation::BOOL>, dwcopyflags: COPYFILE_FLAGS) -> windows_core::Result<()> +pub unsafe fn CopyFileExW(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: Option, lpdata: Option<*const core::ffi::c_void>, pbcancel: Option<*mut windows_core::BOOL>, dwcopyflags: COPYFILE_FLAGS) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CopyFileExW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, pbcancel : *mut super::super::Foundation:: BOOL, dwcopyflags : COPYFILE_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CopyFileExW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, pbcancel : *mut windows_core::BOOL, dwcopyflags : COPYFILE_FLAGS) -> windows_core::BOOL); unsafe { CopyFileExW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), lpprogressroutine.unwrap_or(core::mem::zeroed()) as _, lpdata.unwrap_or(core::mem::zeroed()) as _, pbcancel.unwrap_or(core::mem::zeroed()) as _, dwcopyflags).ok() } } #[inline] -pub unsafe fn CopyFileFromAppW(lpexistingfilename: P0, lpnewfilename: P1, bfailifexists: bool) -> super::super::Foundation::BOOL +pub unsafe fn CopyFileFromAppW(lpexistingfilename: P0, lpnewfilename: P1, bfailifexists: bool) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn CopyFileFromAppW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, bfailifexists : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn CopyFileFromAppW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, bfailifexists : windows_core::BOOL) -> windows_core::BOOL); unsafe { CopyFileFromAppW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), bfailifexists.into()) } } #[inline] -pub unsafe fn CopyFileTransactedA(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: Option, lpdata: Option<*const core::ffi::c_void>, pbcancel: Option<*const super::super::Foundation::BOOL>, dwcopyflags: u32, htransaction: super::super::Foundation::HANDLE) -> windows_core::Result<()> +pub unsafe fn CopyFileTransactedA(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: Option, lpdata: Option<*const core::ffi::c_void>, pbcancel: Option<*const windows_core::BOOL>, dwcopyflags: u32, htransaction: super::super::Foundation::HANDLE) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CopyFileTransactedA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, pbcancel : *const super::super::Foundation:: BOOL, dwcopyflags : u32, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CopyFileTransactedA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, pbcancel : *const windows_core::BOOL, dwcopyflags : u32, htransaction : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CopyFileTransactedA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), lpprogressroutine.unwrap_or(core::mem::zeroed()) as _, lpdata.unwrap_or(core::mem::zeroed()) as _, pbcancel.unwrap_or(core::mem::zeroed()) as _, dwcopyflags, htransaction).ok() } } #[inline] -pub unsafe fn CopyFileTransactedW(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: Option, lpdata: Option<*const core::ffi::c_void>, pbcancel: Option<*const super::super::Foundation::BOOL>, dwcopyflags: u32, htransaction: super::super::Foundation::HANDLE) -> windows_core::Result<()> +pub unsafe fn CopyFileTransactedW(lpexistingfilename: P0, lpnewfilename: P1, lpprogressroutine: Option, lpdata: Option<*const core::ffi::c_void>, pbcancel: Option<*const windows_core::BOOL>, dwcopyflags: u32, htransaction: super::super::Foundation::HANDLE) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CopyFileTransactedW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, pbcancel : *const super::super::Foundation:: BOOL, dwcopyflags : u32, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CopyFileTransactedW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, pbcancel : *const windows_core::BOOL, dwcopyflags : u32, htransaction : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CopyFileTransactedW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), lpprogressroutine.unwrap_or(core::mem::zeroed()) as _, lpdata.unwrap_or(core::mem::zeroed()) as _, pbcancel.unwrap_or(core::mem::zeroed()) as _, dwcopyflags, htransaction).ok() } } #[inline] @@ -216,7 +216,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CopyFileW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, bfailifexists : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CopyFileW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, bfailifexists : windows_core::BOOL) -> windows_core::BOOL); unsafe { CopyFileW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), bfailifexists.into()).ok() } } #[inline] @@ -230,7 +230,7 @@ pub unsafe fn CreateDirectoryA(lppathname: P0, lpsecurityattributes: Option< where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryA(lppathname : windows_core::PCSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryA(lppathname : windows_core::PCSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> windows_core::BOOL); unsafe { CreateDirectoryA(lppathname.param().abi(), lpsecurityattributes.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_Security")] @@ -240,7 +240,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryExA(lptemplatedirectory : windows_core::PCSTR, lpnewdirectory : windows_core::PCSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryExA(lptemplatedirectory : windows_core::PCSTR, lpnewdirectory : windows_core::PCSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> windows_core::BOOL); unsafe { CreateDirectoryExA(lptemplatedirectory.param().abi(), lpnewdirectory.param().abi(), lpsecurityattributes.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_Security")] @@ -250,16 +250,16 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryExW(lptemplatedirectory : windows_core::PCWSTR, lpnewdirectory : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryExW(lptemplatedirectory : windows_core::PCWSTR, lpnewdirectory : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> windows_core::BOOL); unsafe { CreateDirectoryExW(lptemplatedirectory.param().abi(), lpnewdirectory.param().abi(), lpsecurityattributes.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn CreateDirectoryFromAppW(lppathname: P0, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> super::super::Foundation::BOOL +pub unsafe fn CreateDirectoryFromAppW(lppathname: P0, lpsecurityattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn CreateDirectoryFromAppW(lppathname : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn CreateDirectoryFromAppW(lppathname : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> windows_core::BOOL); unsafe { CreateDirectoryFromAppW(lppathname.param().abi(), lpsecurityattributes.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_Security")] @@ -269,7 +269,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryTransactedA(lptemplatedirectory : windows_core::PCSTR, lpnewdirectory : windows_core::PCSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryTransactedA(lptemplatedirectory : windows_core::PCSTR, lpnewdirectory : windows_core::PCSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, htransaction : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CreateDirectoryTransactedA(lptemplatedirectory.param().abi(), lpnewdirectory.param().abi(), lpsecurityattributes.unwrap_or(core::mem::zeroed()) as _, htransaction).ok() } } #[cfg(feature = "Win32_Security")] @@ -279,7 +279,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryTransactedW(lptemplatedirectory : windows_core::PCWSTR, lpnewdirectory : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryTransactedW(lptemplatedirectory : windows_core::PCWSTR, lpnewdirectory : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, htransaction : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CreateDirectoryTransactedW(lptemplatedirectory.param().abi(), lpnewdirectory.param().abi(), lpsecurityattributes.unwrap_or(core::mem::zeroed()) as _, htransaction).ok() } } #[cfg(feature = "Win32_Security")] @@ -288,7 +288,7 @@ pub unsafe fn CreateDirectoryW(lppathname: P0, lpsecurityattributes: Option< where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryW(lppathname : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CreateDirectoryW(lppathname : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> windows_core::BOOL); unsafe { CreateDirectoryW(lppathname.param().abi(), lpsecurityattributes.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_Security")] @@ -373,7 +373,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateHardLinkA(lpfilename : windows_core::PCSTR, lpexistingfilename : windows_core::PCSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CreateHardLinkA(lpfilename : windows_core::PCSTR, lpexistingfilename : windows_core::PCSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> windows_core::BOOL); unsafe { CreateHardLinkA(lpfilename.param().abi(), lpexistingfilename.param().abi(), lpsecurityattributes.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_Security")] @@ -383,7 +383,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateHardLinkTransactedA(lpfilename : windows_core::PCSTR, lpexistingfilename : windows_core::PCSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CreateHardLinkTransactedA(lpfilename : windows_core::PCSTR, lpexistingfilename : windows_core::PCSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, htransaction : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CreateHardLinkTransactedA(lpfilename.param().abi(), lpexistingfilename.param().abi(), lpsecurityattributes.unwrap_or(core::mem::zeroed()) as _, htransaction).ok() } } #[cfg(feature = "Win32_Security")] @@ -393,7 +393,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateHardLinkTransactedW(lpfilename : windows_core::PCWSTR, lpexistingfilename : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CreateHardLinkTransactedW(lpfilename : windows_core::PCWSTR, lpexistingfilename : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, htransaction : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CreateHardLinkTransactedW(lpfilename.param().abi(), lpexistingfilename.param().abi(), lpsecurityattributes.unwrap_or(core::mem::zeroed()) as _, htransaction).ok() } } #[cfg(feature = "Win32_Security")] @@ -403,7 +403,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateHardLinkW(lpfilename : windows_core::PCWSTR, lpexistingfilename : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CreateHardLinkW(lpfilename : windows_core::PCWSTR, lpexistingfilename : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> windows_core::BOOL); unsafe { CreateHardLinkW(lpfilename.param().abi(), lpexistingfilename.param().abi(), lpsecurityattributes.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -417,7 +417,7 @@ pub unsafe fn CreateIoRing(ioringversion: IORING_VERSION, flags: IORING_CREATE_F #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn CreateLogContainerScanContext(hlog: super::super::Foundation::HANDLE, cfromcontainer: u32, ccontainers: u32, escanmode: u8, pcxscan: *mut CLS_SCAN_CONTEXT, poverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn CreateLogContainerScanContext(hlog : super::super::Foundation:: HANDLE, cfromcontainer : u32, ccontainers : u32, escanmode : u8, pcxscan : *mut CLS_SCAN_CONTEXT, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn CreateLogContainerScanContext(hlog : super::super::Foundation:: HANDLE, cfromcontainer : u32, ccontainers : u32, escanmode : u8, pcxscan : *mut CLS_SCAN_CONTEXT, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { CreateLogContainerScanContext(hlog, cfromcontainer, ccontainers, escanmode, pcxscan as _, poverlapped as _).ok() } } #[cfg(feature = "Win32_Security")] @@ -432,7 +432,7 @@ where } #[inline] pub unsafe fn CreateLogMarshallingArea(hlog: super::super::Foundation::HANDLE, pfnallocbuffer: CLFS_BLOCK_ALLOCATION, pfnfreebuffer: CLFS_BLOCK_DEALLOCATION, pvblockalloccontext: *mut core::ffi::c_void, cbmarshallingbuffer: u32, cmaxwritebuffers: u32, cmaxreadbuffers: u32, ppvmarshal: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn CreateLogMarshallingArea(hlog : super::super::Foundation:: HANDLE, pfnallocbuffer : CLFS_BLOCK_ALLOCATION, pfnfreebuffer : CLFS_BLOCK_DEALLOCATION, pvblockalloccontext : *mut core::ffi::c_void, cbmarshallingbuffer : u32, cmaxwritebuffers : u32, cmaxreadbuffers : u32, ppvmarshal : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn CreateLogMarshallingArea(hlog : super::super::Foundation:: HANDLE, pfnallocbuffer : CLFS_BLOCK_ALLOCATION, pfnfreebuffer : CLFS_BLOCK_DEALLOCATION, pvblockalloccontext : *mut core::ffi::c_void, cbmarshallingbuffer : u32, cmaxwritebuffers : u32, cmaxreadbuffers : u32, ppvmarshal : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { CreateLogMarshallingArea(hlog, pfnallocbuffer, pfnfreebuffer, pvblockalloccontext as _, cbmarshallingbuffer, cmaxwritebuffers, cmaxreadbuffers, ppvmarshal as _).ok() } } #[cfg(feature = "Win32_Security")] @@ -511,7 +511,7 @@ pub unsafe fn DecryptFileA(lpfilename: P0, dwreserved: Option) -> windo where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn DecryptFileA(lpfilename : windows_core::PCSTR, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn DecryptFileA(lpfilename : windows_core::PCSTR, dwreserved : u32) -> windows_core::BOOL); unsafe { DecryptFileA(lpfilename.param().abi(), dwreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -519,7 +519,7 @@ pub unsafe fn DecryptFileW(lpfilename: P0, dwreserved: Option) -> windo where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn DecryptFileW(lpfilename : windows_core::PCWSTR, dwreserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn DecryptFileW(lpfilename : windows_core::PCWSTR, dwreserved : u32) -> windows_core::BOOL); unsafe { DecryptFileW(lpfilename.param().abi(), dwreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -528,7 +528,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn DefineDosDeviceA(dwflags : DEFINE_DOS_DEVICE_FLAGS, lpdevicename : windows_core::PCSTR, lptargetpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DefineDosDeviceA(dwflags : DEFINE_DOS_DEVICE_FLAGS, lpdevicename : windows_core::PCSTR, lptargetpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { DefineDosDeviceA(dwflags, lpdevicename.param().abi(), lptargetpath.param().abi()).ok() } } #[inline] @@ -537,7 +537,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn DefineDosDeviceW(dwflags : DEFINE_DOS_DEVICE_FLAGS, lpdevicename : windows_core::PCWSTR, lptargetpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DefineDosDeviceW(dwflags : DEFINE_DOS_DEVICE_FLAGS, lpdevicename : windows_core::PCWSTR, lptargetpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { DefineDosDeviceW(dwflags, lpdevicename.param().abi(), lptargetpath.param().abi()).ok() } } #[inline] @@ -545,15 +545,15 @@ pub unsafe fn DeleteFileA(lpfilename: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn DeleteFileA(lpfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DeleteFileA(lpfilename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { DeleteFileA(lpfilename.param().abi()).ok() } } #[inline] -pub unsafe fn DeleteFileFromAppW(lpfilename: P0) -> super::super::Foundation::BOOL +pub unsafe fn DeleteFileFromAppW(lpfilename: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn DeleteFileFromAppW(lpfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn DeleteFileFromAppW(lpfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { DeleteFileFromAppW(lpfilename.param().abi()) } } #[inline] @@ -561,7 +561,7 @@ pub unsafe fn DeleteFileTransactedA(lpfilename: P0, htransaction: super::sup where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn DeleteFileTransactedA(lpfilename : windows_core::PCSTR, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DeleteFileTransactedA(lpfilename : windows_core::PCSTR, htransaction : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { DeleteFileTransactedA(lpfilename.param().abi(), htransaction).ok() } } #[inline] @@ -569,7 +569,7 @@ pub unsafe fn DeleteFileTransactedW(lpfilename: P0, htransaction: super::sup where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn DeleteFileTransactedW(lpfilename : windows_core::PCWSTR, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DeleteFileTransactedW(lpfilename : windows_core::PCWSTR, htransaction : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { DeleteFileTransactedW(lpfilename.param().abi(), htransaction).ok() } } #[inline] @@ -577,12 +577,12 @@ pub unsafe fn DeleteFileW(lpfilename: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn DeleteFileW(lpfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DeleteFileW(lpfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { DeleteFileW(lpfilename.param().abi()).ok() } } #[inline] pub unsafe fn DeleteLogByHandle(hlog: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn DeleteLogByHandle(hlog : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn DeleteLogByHandle(hlog : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { DeleteLogByHandle(hlog).ok() } } #[inline] @@ -590,12 +590,12 @@ pub unsafe fn DeleteLogFile(pszlogfilename: P0, pvreserved: *mut core::ffi:: where P0: windows_core::Param, { - windows_targets::link!("clfsw32.dll" "system" fn DeleteLogFile(pszlogfilename : windows_core::PCWSTR, pvreserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn DeleteLogFile(pszlogfilename : windows_core::PCWSTR, pvreserved : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { DeleteLogFile(pszlogfilename.param().abi(), pvreserved as _).ok() } } #[inline] pub unsafe fn DeleteLogMarshallingArea(pvmarshal: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn DeleteLogMarshallingArea(pvmarshal : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn DeleteLogMarshallingArea(pvmarshal : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { DeleteLogMarshallingArea(pvmarshal as _).ok() } } #[inline] @@ -603,7 +603,7 @@ pub unsafe fn DeleteVolumeMountPointA(lpszvolumemountpoint: P0) -> windows_c where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn DeleteVolumeMountPointA(lpszvolumemountpoint : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DeleteVolumeMountPointA(lpszvolumemountpoint : windows_core::PCSTR) -> windows_core::BOOL); unsafe { DeleteVolumeMountPointA(lpszvolumemountpoint.param().abi()).ok() } } #[inline] @@ -611,12 +611,12 @@ pub unsafe fn DeleteVolumeMountPointW(lpszvolumemountpoint: P0) -> windows_c where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn DeleteVolumeMountPointW(lpszvolumemountpoint : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DeleteVolumeMountPointW(lpszvolumemountpoint : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { DeleteVolumeMountPointW(lpszvolumemountpoint.param().abi()).ok() } } #[inline] pub unsafe fn DeregisterManageableLogClient(hlog: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn DeregisterManageableLogClient(hlog : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn DeregisterManageableLogClient(hlog : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { DeregisterManageableLogClient(hlog).ok() } } #[cfg(feature = "Win32_Security")] @@ -634,7 +634,7 @@ pub unsafe fn EncryptFileA(lpfilename: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn EncryptFileA(lpfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn EncryptFileA(lpfilename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { EncryptFileA(lpfilename.param().abi()).ok() } } #[inline] @@ -642,7 +642,7 @@ pub unsafe fn EncryptFileW(lpfilename: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn EncryptFileW(lpfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn EncryptFileW(lpfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { EncryptFileW(lpfilename.param().abi()).ok() } } #[inline] @@ -650,12 +650,12 @@ pub unsafe fn EncryptionDisable(dirpath: P0, disable: bool) -> windows_core: where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn EncryptionDisable(dirpath : windows_core::PCWSTR, disable : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn EncryptionDisable(dirpath : windows_core::PCWSTR, disable : windows_core::BOOL) -> windows_core::BOOL); unsafe { EncryptionDisable(dirpath.param().abi(), disable.into()).ok() } } #[inline] pub unsafe fn EraseTape(hdevice: super::super::Foundation::HANDLE, dwerasetype: ERASE_TAPE_TYPE, bimmediate: bool) -> u32 { - windows_targets::link!("kernel32.dll" "system" fn EraseTape(hdevice : super::super::Foundation:: HANDLE, dwerasetype : ERASE_TAPE_TYPE, bimmediate : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("kernel32.dll" "system" fn EraseTape(hdevice : super::super::Foundation:: HANDLE, dwerasetype : ERASE_TAPE_TYPE, bimmediate : windows_core::BOOL) -> u32); unsafe { EraseTape(hdevice, dwerasetype, bimmediate.into()) } } #[inline] @@ -663,7 +663,7 @@ pub unsafe fn FileEncryptionStatusA(lpfilename: P0, lpstatus: *mut u32) -> w where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn FileEncryptionStatusA(lpfilename : windows_core::PCSTR, lpstatus : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn FileEncryptionStatusA(lpfilename : windows_core::PCSTR, lpstatus : *mut u32) -> windows_core::BOOL); unsafe { FileEncryptionStatusA(lpfilename.param().abi(), lpstatus as _).ok() } } #[inline] @@ -671,22 +671,22 @@ pub unsafe fn FileEncryptionStatusW(lpfilename: P0, lpstatus: *mut u32) -> w where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn FileEncryptionStatusW(lpfilename : windows_core::PCWSTR, lpstatus : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn FileEncryptionStatusW(lpfilename : windows_core::PCWSTR, lpstatus : *mut u32) -> windows_core::BOOL); unsafe { FileEncryptionStatusW(lpfilename.param().abi(), lpstatus as _).ok() } } #[inline] pub unsafe fn FileTimeToLocalFileTime(lpfiletime: *const super::super::Foundation::FILETIME, lplocalfiletime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FileTimeToLocalFileTime(lpfiletime : *const super::super::Foundation:: FILETIME, lplocalfiletime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FileTimeToLocalFileTime(lpfiletime : *const super::super::Foundation:: FILETIME, lplocalfiletime : *mut super::super::Foundation:: FILETIME) -> windows_core::BOOL); unsafe { FileTimeToLocalFileTime(lpfiletime, lplocalfiletime as _).ok() } } #[inline] pub unsafe fn FindClose(hfindfile: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FindClose(hfindfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FindClose(hfindfile : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { FindClose(hfindfile as _).ok() } } #[inline] pub unsafe fn FindCloseChangeNotification(hchangehandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FindCloseChangeNotification(hchangehandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FindCloseChangeNotification(hchangehandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { FindCloseChangeNotification(hchangehandle).ok() } } #[inline] @@ -694,7 +694,7 @@ pub unsafe fn FindFirstChangeNotificationA(lppathname: P0, bwatchsubtree: bo where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn FindFirstChangeNotificationA(lppathname : windows_core::PCSTR, bwatchsubtree : super::super::Foundation:: BOOL, dwnotifyfilter : FILE_NOTIFY_CHANGE) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn FindFirstChangeNotificationA(lppathname : windows_core::PCSTR, bwatchsubtree : windows_core::BOOL, dwnotifyfilter : FILE_NOTIFY_CHANGE) -> super::super::Foundation:: HANDLE); let result__ = unsafe { FindFirstChangeNotificationA(lppathname.param().abi(), bwatchsubtree.into(), dwnotifyfilter) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -703,7 +703,7 @@ pub unsafe fn FindFirstChangeNotificationW(lppathname: P0, bwatchsubtree: bo where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn FindFirstChangeNotificationW(lppathname : windows_core::PCWSTR, bwatchsubtree : super::super::Foundation:: BOOL, dwnotifyfilter : FILE_NOTIFY_CHANGE) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn FindFirstChangeNotificationW(lppathname : windows_core::PCWSTR, bwatchsubtree : windows_core::BOOL, dwnotifyfilter : FILE_NOTIFY_CHANGE) -> super::super::Foundation:: HANDLE); let result__ = unsafe { FindFirstChangeNotificationW(lppathname.param().abi(), bwatchsubtree.into(), dwnotifyfilter) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -837,74 +837,74 @@ pub unsafe fn FindFirstVolumeW(lpszvolumename: &mut [u16]) -> windows_core::Resu } #[inline] pub unsafe fn FindNextChangeNotification(hchangehandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FindNextChangeNotification(hchangehandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FindNextChangeNotification(hchangehandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { FindNextChangeNotification(hchangehandle).ok() } } #[inline] pub unsafe fn FindNextFileA(hfindfile: super::super::Foundation::HANDLE, lpfindfiledata: *mut WIN32_FIND_DATAA) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FindNextFileA(hfindfile : super::super::Foundation:: HANDLE, lpfindfiledata : *mut WIN32_FIND_DATAA) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FindNextFileA(hfindfile : super::super::Foundation:: HANDLE, lpfindfiledata : *mut WIN32_FIND_DATAA) -> windows_core::BOOL); unsafe { FindNextFileA(hfindfile, lpfindfiledata as _).ok() } } #[inline] pub unsafe fn FindNextFileNameW(hfindstream: super::super::Foundation::HANDLE, stringlength: *mut u32, linkname: windows_core::PWSTR) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FindNextFileNameW(hfindstream : super::super::Foundation:: HANDLE, stringlength : *mut u32, linkname : windows_core::PWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FindNextFileNameW(hfindstream : super::super::Foundation:: HANDLE, stringlength : *mut u32, linkname : windows_core::PWSTR) -> windows_core::BOOL); unsafe { FindNextFileNameW(hfindstream, stringlength as _, core::mem::transmute(linkname)).ok() } } #[inline] pub unsafe fn FindNextFileW(hfindfile: super::super::Foundation::HANDLE, lpfindfiledata: *mut WIN32_FIND_DATAW) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FindNextFileW(hfindfile : super::super::Foundation:: HANDLE, lpfindfiledata : *mut WIN32_FIND_DATAW) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FindNextFileW(hfindfile : super::super::Foundation:: HANDLE, lpfindfiledata : *mut WIN32_FIND_DATAW) -> windows_core::BOOL); unsafe { FindNextFileW(hfindfile, lpfindfiledata as _).ok() } } #[inline] pub unsafe fn FindNextStreamW(hfindstream: super::super::Foundation::HANDLE, lpfindstreamdata: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FindNextStreamW(hfindstream : super::super::Foundation:: HANDLE, lpfindstreamdata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FindNextStreamW(hfindstream : super::super::Foundation:: HANDLE, lpfindstreamdata : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { FindNextStreamW(hfindstream, lpfindstreamdata as _).ok() } } #[inline] pub unsafe fn FindNextVolumeA(hfindvolume: super::super::Foundation::HANDLE, lpszvolumename: &mut [u8]) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FindNextVolumeA(hfindvolume : super::super::Foundation:: HANDLE, lpszvolumename : windows_core::PSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FindNextVolumeA(hfindvolume : super::super::Foundation:: HANDLE, lpszvolumename : windows_core::PSTR, cchbufferlength : u32) -> windows_core::BOOL); unsafe { FindNextVolumeA(hfindvolume as _, core::mem::transmute(lpszvolumename.as_ptr()), lpszvolumename.len().try_into().unwrap()).ok() } } #[inline] pub unsafe fn FindNextVolumeMountPointA(hfindvolumemountpoint: super::super::Foundation::HANDLE, lpszvolumemountpoint: &mut [u8]) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FindNextVolumeMountPointA(hfindvolumemountpoint : super::super::Foundation:: HANDLE, lpszvolumemountpoint : windows_core::PSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FindNextVolumeMountPointA(hfindvolumemountpoint : super::super::Foundation:: HANDLE, lpszvolumemountpoint : windows_core::PSTR, cchbufferlength : u32) -> windows_core::BOOL); unsafe { FindNextVolumeMountPointA(hfindvolumemountpoint, core::mem::transmute(lpszvolumemountpoint.as_ptr()), lpszvolumemountpoint.len().try_into().unwrap()).ok() } } #[inline] pub unsafe fn FindNextVolumeMountPointW(hfindvolumemountpoint: super::super::Foundation::HANDLE, lpszvolumemountpoint: &mut [u16]) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FindNextVolumeMountPointW(hfindvolumemountpoint : super::super::Foundation:: HANDLE, lpszvolumemountpoint : windows_core::PWSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FindNextVolumeMountPointW(hfindvolumemountpoint : super::super::Foundation:: HANDLE, lpszvolumemountpoint : windows_core::PWSTR, cchbufferlength : u32) -> windows_core::BOOL); unsafe { FindNextVolumeMountPointW(hfindvolumemountpoint, core::mem::transmute(lpszvolumemountpoint.as_ptr()), lpszvolumemountpoint.len().try_into().unwrap()).ok() } } #[inline] pub unsafe fn FindNextVolumeW(hfindvolume: super::super::Foundation::HANDLE, lpszvolumename: &mut [u16]) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FindNextVolumeW(hfindvolume : super::super::Foundation:: HANDLE, lpszvolumename : windows_core::PWSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FindNextVolumeW(hfindvolume : super::super::Foundation:: HANDLE, lpszvolumename : windows_core::PWSTR, cchbufferlength : u32) -> windows_core::BOOL); unsafe { FindNextVolumeW(hfindvolume as _, core::mem::transmute(lpszvolumename.as_ptr()), lpszvolumename.len().try_into().unwrap()).ok() } } #[inline] pub unsafe fn FindVolumeClose(hfindvolume: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FindVolumeClose(hfindvolume : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FindVolumeClose(hfindvolume : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { FindVolumeClose(hfindvolume).ok() } } #[inline] pub unsafe fn FindVolumeMountPointClose(hfindvolumemountpoint: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FindVolumeMountPointClose(hfindvolumemountpoint : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FindVolumeMountPointClose(hfindvolumemountpoint : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { FindVolumeMountPointClose(hfindvolumemountpoint).ok() } } #[inline] pub unsafe fn FlushFileBuffers(hfile: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FlushFileBuffers(hfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FlushFileBuffers(hfile : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { FlushFileBuffers(hfile).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn FlushLogBuffers(pvmarshal: *const core::ffi::c_void, poverlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn FlushLogBuffers(pvmarshal : *const core::ffi::c_void, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn FlushLogBuffers(pvmarshal : *const core::ffi::c_void, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { FlushLogBuffers(pvmarshal, poverlapped.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn FlushLogToLsn(pvmarshalcontext: *mut core::ffi::c_void, plsnflush: *mut CLS_LSN, plsnlastflushed: *mut CLS_LSN, poverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn FlushLogToLsn(pvmarshalcontext : *mut core::ffi::c_void, plsnflush : *mut CLS_LSN, plsnlastflushed : *mut CLS_LSN, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn FlushLogToLsn(pvmarshalcontext : *mut core::ffi::c_void, plsnflush : *mut CLS_LSN, plsnlastflushed : *mut CLS_LSN, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { FlushLogToLsn(pvmarshalcontext as _, plsnflush as _, plsnlastflushed as _, poverlapped as _).ok() } } #[inline] @@ -920,7 +920,7 @@ pub unsafe fn FreeEncryptionCertificateHashList(pusers: *const ENCRYPTION_CERTIF } #[inline] pub unsafe fn FreeReservedLog(pvmarshal: *mut core::ffi::c_void, creservedrecords: u32, pcbadjustment: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn FreeReservedLog(pvmarshal : *mut core::ffi::c_void, creservedrecords : u32, pcbadjustment : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn FreeReservedLog(pvmarshal : *mut core::ffi::c_void, creservedrecords : u32, pcbadjustment : *mut i64) -> windows_core::BOOL); unsafe { FreeReservedLog(pvmarshal as _, creservedrecords, pcbadjustment as _).ok() } } #[inline] @@ -928,7 +928,7 @@ pub unsafe fn GetBinaryTypeA(lpapplicationname: P0, lpbinarytype: *mut u32) where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetBinaryTypeA(lpapplicationname : windows_core::PCSTR, lpbinarytype : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetBinaryTypeA(lpapplicationname : windows_core::PCSTR, lpbinarytype : *mut u32) -> windows_core::BOOL); unsafe { GetBinaryTypeA(lpapplicationname.param().abi(), lpbinarytype as _).ok() } } #[inline] @@ -936,7 +936,7 @@ pub unsafe fn GetBinaryTypeW(lpapplicationname: P0, lpbinarytype: *mut u32) where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetBinaryTypeW(lpapplicationname : windows_core::PCWSTR, lpbinarytype : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetBinaryTypeW(lpapplicationname : windows_core::PCWSTR, lpbinarytype : *mut u32) -> windows_core::BOOL); unsafe { GetBinaryTypeW(lpapplicationname.param().abi(), lpbinarytype as _).ok() } } #[inline] @@ -973,7 +973,7 @@ where } #[inline] pub unsafe fn GetCurrentClockTransactionManager(transactionmanagerhandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn GetCurrentClockTransactionManager(transactionmanagerhandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn GetCurrentClockTransactionManager(transactionmanagerhandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> windows_core::BOOL); unsafe { GetCurrentClockTransactionManager(transactionmanagerhandle, tmvirtualclock as _).ok() } } #[inline] @@ -981,7 +981,7 @@ pub unsafe fn GetDiskFreeSpaceA(lprootpathname: P0, lpsectorspercluster: Opt where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetDiskFreeSpaceA(lprootpathname : windows_core::PCSTR, lpsectorspercluster : *mut u32, lpbytespersector : *mut u32, lpnumberoffreeclusters : *mut u32, lptotalnumberofclusters : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetDiskFreeSpaceA(lprootpathname : windows_core::PCSTR, lpsectorspercluster : *mut u32, lpbytespersector : *mut u32, lpnumberoffreeclusters : *mut u32, lptotalnumberofclusters : *mut u32) -> windows_core::BOOL); unsafe { GetDiskFreeSpaceA(lprootpathname.param().abi(), lpsectorspercluster.unwrap_or(core::mem::zeroed()) as _, lpbytespersector.unwrap_or(core::mem::zeroed()) as _, lpnumberoffreeclusters.unwrap_or(core::mem::zeroed()) as _, lptotalnumberofclusters.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -989,7 +989,7 @@ pub unsafe fn GetDiskFreeSpaceExA(lpdirectoryname: P0, lpfreebytesavailablet where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetDiskFreeSpaceExA(lpdirectoryname : windows_core::PCSTR, lpfreebytesavailabletocaller : *mut u64, lptotalnumberofbytes : *mut u64, lptotalnumberoffreebytes : *mut u64) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetDiskFreeSpaceExA(lpdirectoryname : windows_core::PCSTR, lpfreebytesavailabletocaller : *mut u64, lptotalnumberofbytes : *mut u64, lptotalnumberoffreebytes : *mut u64) -> windows_core::BOOL); unsafe { GetDiskFreeSpaceExA(lpdirectoryname.param().abi(), lpfreebytesavailabletocaller.unwrap_or(core::mem::zeroed()) as _, lptotalnumberofbytes.unwrap_or(core::mem::zeroed()) as _, lptotalnumberoffreebytes.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -997,7 +997,7 @@ pub unsafe fn GetDiskFreeSpaceExW(lpdirectoryname: P0, lpfreebytesavailablet where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetDiskFreeSpaceExW(lpdirectoryname : windows_core::PCWSTR, lpfreebytesavailabletocaller : *mut u64, lptotalnumberofbytes : *mut u64, lptotalnumberoffreebytes : *mut u64) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetDiskFreeSpaceExW(lpdirectoryname : windows_core::PCWSTR, lpfreebytesavailabletocaller : *mut u64, lptotalnumberofbytes : *mut u64, lptotalnumberoffreebytes : *mut u64) -> windows_core::BOOL); unsafe { GetDiskFreeSpaceExW(lpdirectoryname.param().abi(), lpfreebytesavailabletocaller.unwrap_or(core::mem::zeroed()) as _, lptotalnumberofbytes.unwrap_or(core::mem::zeroed()) as _, lptotalnumberoffreebytes.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1005,7 +1005,7 @@ pub unsafe fn GetDiskFreeSpaceW(lprootpathname: P0, lpsectorspercluster: Opt where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetDiskFreeSpaceW(lprootpathname : windows_core::PCWSTR, lpsectorspercluster : *mut u32, lpbytespersector : *mut u32, lpnumberoffreeclusters : *mut u32, lptotalnumberofclusters : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetDiskFreeSpaceW(lprootpathname : windows_core::PCWSTR, lpsectorspercluster : *mut u32, lpbytespersector : *mut u32, lpnumberoffreeclusters : *mut u32, lptotalnumberofclusters : *mut u32) -> windows_core::BOOL); unsafe { GetDiskFreeSpaceW(lprootpathname.param().abi(), lpsectorspercluster.unwrap_or(core::mem::zeroed()) as _, lpbytespersector.unwrap_or(core::mem::zeroed()) as _, lpnumberoffreeclusters.unwrap_or(core::mem::zeroed()) as _, lptotalnumberofclusters.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1050,12 +1050,12 @@ where } #[inline] pub unsafe fn GetEnlistmentId(enlistmenthandle: super::super::Foundation::HANDLE, enlistmentid: *mut windows_core::GUID) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn GetEnlistmentId(enlistmenthandle : super::super::Foundation:: HANDLE, enlistmentid : *mut windows_core::GUID) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn GetEnlistmentId(enlistmenthandle : super::super::Foundation:: HANDLE, enlistmentid : *mut windows_core::GUID) -> windows_core::BOOL); unsafe { GetEnlistmentId(enlistmenthandle, enlistmentid as _).ok() } } #[inline] pub unsafe fn GetEnlistmentRecoveryInformation(enlistmenthandle: super::super::Foundation::HANDLE, buffersize: u32, buffer: *mut core::ffi::c_void, bufferused: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn GetEnlistmentRecoveryInformation(enlistmenthandle : super::super::Foundation:: HANDLE, buffersize : u32, buffer : *mut core::ffi::c_void, bufferused : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn GetEnlistmentRecoveryInformation(enlistmenthandle : super::super::Foundation:: HANDLE, buffersize : u32, buffer : *mut core::ffi::c_void, bufferused : *mut u32) -> windows_core::BOOL); unsafe { GetEnlistmentRecoveryInformation(enlistmenthandle, buffersize, buffer as _, bufferused as _).ok() } } #[inline] @@ -1087,15 +1087,15 @@ pub unsafe fn GetFileAttributesExA(lpfilename: P0, finfolevelid: GET_FILEEX_ where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetFileAttributesExA(lpfilename : windows_core::PCSTR, finfolevelid : GET_FILEEX_INFO_LEVELS, lpfileinformation : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetFileAttributesExA(lpfilename : windows_core::PCSTR, finfolevelid : GET_FILEEX_INFO_LEVELS, lpfileinformation : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { GetFileAttributesExA(lpfilename.param().abi(), finfolevelid, lpfileinformation as _).ok() } } #[inline] -pub unsafe fn GetFileAttributesExFromAppW(lpfilename: P0, finfolevelid: GET_FILEEX_INFO_LEVELS, lpfileinformation: *mut core::ffi::c_void) -> super::super::Foundation::BOOL +pub unsafe fn GetFileAttributesExFromAppW(lpfilename: P0, finfolevelid: GET_FILEEX_INFO_LEVELS, lpfileinformation: *mut core::ffi::c_void) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn GetFileAttributesExFromAppW(lpfilename : windows_core::PCWSTR, finfolevelid : GET_FILEEX_INFO_LEVELS, lpfileinformation : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn GetFileAttributesExFromAppW(lpfilename : windows_core::PCWSTR, finfolevelid : GET_FILEEX_INFO_LEVELS, lpfileinformation : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { GetFileAttributesExFromAppW(lpfilename.param().abi(), finfolevelid, lpfileinformation as _) } } #[inline] @@ -1103,7 +1103,7 @@ pub unsafe fn GetFileAttributesExW(lpfilename: P0, finfolevelid: GET_FILEEX_ where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetFileAttributesExW(lpfilename : windows_core::PCWSTR, finfolevelid : GET_FILEEX_INFO_LEVELS, lpfileinformation : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetFileAttributesExW(lpfilename : windows_core::PCWSTR, finfolevelid : GET_FILEEX_INFO_LEVELS, lpfileinformation : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { GetFileAttributesExW(lpfilename.param().abi(), finfolevelid, lpfileinformation as _).ok() } } #[inline] @@ -1111,7 +1111,7 @@ pub unsafe fn GetFileAttributesTransactedA(lpfilename: P0, finfolevelid: GET where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetFileAttributesTransactedA(lpfilename : windows_core::PCSTR, finfolevelid : GET_FILEEX_INFO_LEVELS, lpfileinformation : *mut core::ffi::c_void, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetFileAttributesTransactedA(lpfilename : windows_core::PCSTR, finfolevelid : GET_FILEEX_INFO_LEVELS, lpfileinformation : *mut core::ffi::c_void, htransaction : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { GetFileAttributesTransactedA(lpfilename.param().abi(), finfolevelid, lpfileinformation as _, htransaction).ok() } } #[inline] @@ -1119,7 +1119,7 @@ pub unsafe fn GetFileAttributesTransactedW(lpfilename: P0, finfolevelid: GET where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetFileAttributesTransactedW(lpfilename : windows_core::PCWSTR, finfolevelid : GET_FILEEX_INFO_LEVELS, lpfileinformation : *mut core::ffi::c_void, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetFileAttributesTransactedW(lpfilename : windows_core::PCWSTR, finfolevelid : GET_FILEEX_INFO_LEVELS, lpfileinformation : *mut core::ffi::c_void, htransaction : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { GetFileAttributesTransactedW(lpfilename.param().abi(), finfolevelid, lpfileinformation as _, htransaction).ok() } } #[inline] @@ -1131,18 +1131,18 @@ where unsafe { GetFileAttributesW(lpfilename.param().abi()) } } #[inline] -pub unsafe fn GetFileBandwidthReservation(hfile: super::super::Foundation::HANDLE, lpperiodmilliseconds: *mut u32, lpbytesperperiod: *mut u32, pdiscardable: *mut super::super::Foundation::BOOL, lptransfersize: *mut u32, lpnumoutstandingrequests: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetFileBandwidthReservation(hfile : super::super::Foundation:: HANDLE, lpperiodmilliseconds : *mut u32, lpbytesperperiod : *mut u32, pdiscardable : *mut super::super::Foundation:: BOOL, lptransfersize : *mut u32, lpnumoutstandingrequests : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetFileBandwidthReservation(hfile: super::super::Foundation::HANDLE, lpperiodmilliseconds: *mut u32, lpbytesperperiod: *mut u32, pdiscardable: *mut windows_core::BOOL, lptransfersize: *mut u32, lpnumoutstandingrequests: *mut u32) -> windows_core::Result<()> { + windows_targets::link!("kernel32.dll" "system" fn GetFileBandwidthReservation(hfile : super::super::Foundation:: HANDLE, lpperiodmilliseconds : *mut u32, lpbytesperperiod : *mut u32, pdiscardable : *mut windows_core::BOOL, lptransfersize : *mut u32, lpnumoutstandingrequests : *mut u32) -> windows_core::BOOL); unsafe { GetFileBandwidthReservation(hfile, lpperiodmilliseconds as _, lpbytesperperiod as _, pdiscardable as _, lptransfersize as _, lpnumoutstandingrequests as _).ok() } } #[inline] pub unsafe fn GetFileInformationByHandle(hfile: super::super::Foundation::HANDLE, lpfileinformation: *mut BY_HANDLE_FILE_INFORMATION) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetFileInformationByHandle(hfile : super::super::Foundation:: HANDLE, lpfileinformation : *mut BY_HANDLE_FILE_INFORMATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetFileInformationByHandle(hfile : super::super::Foundation:: HANDLE, lpfileinformation : *mut BY_HANDLE_FILE_INFORMATION) -> windows_core::BOOL); unsafe { GetFileInformationByHandle(hfile, lpfileinformation as _).ok() } } #[inline] pub unsafe fn GetFileInformationByHandleEx(hfile: super::super::Foundation::HANDLE, fileinformationclass: FILE_INFO_BY_HANDLE_CLASS, lpfileinformation: *mut core::ffi::c_void, dwbuffersize: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetFileInformationByHandleEx(hfile : super::super::Foundation:: HANDLE, fileinformationclass : FILE_INFO_BY_HANDLE_CLASS, lpfileinformation : *mut core::ffi::c_void, dwbuffersize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetFileInformationByHandleEx(hfile : super::super::Foundation:: HANDLE, fileinformationclass : FILE_INFO_BY_HANDLE_CLASS, lpfileinformation : *mut core::ffi::c_void, dwbuffersize : u32) -> windows_core::BOOL); unsafe { GetFileInformationByHandleEx(hfile, fileinformationclass, lpfileinformation as _, dwbuffersize).ok() } } #[inline] @@ -1152,12 +1152,12 @@ pub unsafe fn GetFileSize(hfile: super::super::Foundation::HANDLE, lpfilesizehig } #[inline] pub unsafe fn GetFileSizeEx(hfile: super::super::Foundation::HANDLE, lpfilesize: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetFileSizeEx(hfile : super::super::Foundation:: HANDLE, lpfilesize : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetFileSizeEx(hfile : super::super::Foundation:: HANDLE, lpfilesize : *mut i64) -> windows_core::BOOL); unsafe { GetFileSizeEx(hfile, lpfilesize as _).ok() } } #[inline] pub unsafe fn GetFileTime(hfile: super::super::Foundation::HANDLE, lpcreationtime: Option<*mut super::super::Foundation::FILETIME>, lplastaccesstime: Option<*mut super::super::Foundation::FILETIME>, lplastwritetime: Option<*mut super::super::Foundation::FILETIME>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetFileTime(hfile : super::super::Foundation:: HANDLE, lpcreationtime : *mut super::super::Foundation:: FILETIME, lplastaccesstime : *mut super::super::Foundation:: FILETIME, lplastwritetime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetFileTime(hfile : super::super::Foundation:: HANDLE, lpcreationtime : *mut super::super::Foundation:: FILETIME, lplastaccesstime : *mut super::super::Foundation:: FILETIME, lplastwritetime : *mut super::super::Foundation:: FILETIME) -> windows_core::BOOL); unsafe { GetFileTime(hfile, lpcreationtime.unwrap_or(core::mem::zeroed()) as _, lplastaccesstime.unwrap_or(core::mem::zeroed()) as _, lplastwritetime.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1170,7 +1170,7 @@ pub unsafe fn GetFileVersionInfoA(lptstrfilename: P0, dwhandle: Option, where P0: windows_core::Param, { - windows_targets::link!("version.dll" "system" fn GetFileVersionInfoA(lptstrfilename : windows_core::PCSTR, dwhandle : u32, dwlen : u32, lpdata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("version.dll" "system" fn GetFileVersionInfoA(lptstrfilename : windows_core::PCSTR, dwhandle : u32, dwlen : u32, lpdata : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { GetFileVersionInfoA(lptstrfilename.param().abi(), dwhandle.unwrap_or(core::mem::zeroed()) as _, dwlen, lpdata as _).ok() } } #[inline] @@ -1178,7 +1178,7 @@ pub unsafe fn GetFileVersionInfoExA(dwflags: GET_FILE_VERSION_INFO_FLAGS, lp where P1: windows_core::Param, { - windows_targets::link!("version.dll" "system" fn GetFileVersionInfoExA(dwflags : GET_FILE_VERSION_INFO_FLAGS, lpwstrfilename : windows_core::PCSTR, dwhandle : u32, dwlen : u32, lpdata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("version.dll" "system" fn GetFileVersionInfoExA(dwflags : GET_FILE_VERSION_INFO_FLAGS, lpwstrfilename : windows_core::PCSTR, dwhandle : u32, dwlen : u32, lpdata : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { GetFileVersionInfoExA(dwflags, lpwstrfilename.param().abi(), dwhandle.unwrap_or(core::mem::zeroed()) as _, dwlen, lpdata as _).ok() } } #[inline] @@ -1186,7 +1186,7 @@ pub unsafe fn GetFileVersionInfoExW(dwflags: GET_FILE_VERSION_INFO_FLAGS, lp where P1: windows_core::Param, { - windows_targets::link!("version.dll" "system" fn GetFileVersionInfoExW(dwflags : GET_FILE_VERSION_INFO_FLAGS, lpwstrfilename : windows_core::PCWSTR, dwhandle : u32, dwlen : u32, lpdata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("version.dll" "system" fn GetFileVersionInfoExW(dwflags : GET_FILE_VERSION_INFO_FLAGS, lpwstrfilename : windows_core::PCWSTR, dwhandle : u32, dwlen : u32, lpdata : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { GetFileVersionInfoExW(dwflags, lpwstrfilename.param().abi(), dwhandle.unwrap_or(core::mem::zeroed()) as _, dwlen, lpdata as _).ok() } } #[inline] @@ -1226,7 +1226,7 @@ pub unsafe fn GetFileVersionInfoW(lptstrfilename: P0, dwhandle: Option, where P0: windows_core::Param, { - windows_targets::link!("version.dll" "system" fn GetFileVersionInfoW(lptstrfilename : windows_core::PCWSTR, dwhandle : u32, dwlen : u32, lpdata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("version.dll" "system" fn GetFileVersionInfoW(lptstrfilename : windows_core::PCWSTR, dwhandle : u32, dwlen : u32, lpdata : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { GetFileVersionInfoW(lptstrfilename.param().abi(), dwhandle.unwrap_or(core::mem::zeroed()) as _, dwlen, lpdata as _).ok() } } #[inline] @@ -1281,22 +1281,22 @@ pub unsafe fn GetLogContainerName(hlog: super::super::Foundation::HANDLE, ci where P2: windows_core::Param, { - windows_targets::link!("clfsw32.dll" "system" fn GetLogContainerName(hlog : super::super::Foundation:: HANDLE, cidlogicalcontainer : u32, pwstrcontainername : windows_core::PCWSTR, clencontainername : u32, pcactuallencontainername : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn GetLogContainerName(hlog : super::super::Foundation:: HANDLE, cidlogicalcontainer : u32, pwstrcontainername : windows_core::PCWSTR, clencontainername : u32, pcactuallencontainername : *mut u32) -> windows_core::BOOL); unsafe { GetLogContainerName(hlog, cidlogicalcontainer, pwstrcontainername.param().abi(), clencontainername, pcactuallencontainername as _).ok() } } #[inline] pub unsafe fn GetLogFileInformation(hlog: super::super::Foundation::HANDLE, pinfobuffer: *mut CLS_INFORMATION, cbbuffer: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn GetLogFileInformation(hlog : super::super::Foundation:: HANDLE, pinfobuffer : *mut CLS_INFORMATION, cbbuffer : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn GetLogFileInformation(hlog : super::super::Foundation:: HANDLE, pinfobuffer : *mut CLS_INFORMATION, cbbuffer : *mut u32) -> windows_core::BOOL); unsafe { GetLogFileInformation(hlog, pinfobuffer as _, cbbuffer as _).ok() } } #[inline] pub unsafe fn GetLogIoStatistics(hlog: super::super::Foundation::HANDLE, pvstatsbuffer: *mut core::ffi::c_void, cbstatsbuffer: u32, estatsclass: CLFS_IOSTATS_CLASS, pcbstatswritten: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn GetLogIoStatistics(hlog : super::super::Foundation:: HANDLE, pvstatsbuffer : *mut core::ffi::c_void, cbstatsbuffer : u32, estatsclass : CLFS_IOSTATS_CLASS, pcbstatswritten : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn GetLogIoStatistics(hlog : super::super::Foundation:: HANDLE, pvstatsbuffer : *mut core::ffi::c_void, cbstatsbuffer : u32, estatsclass : CLFS_IOSTATS_CLASS, pcbstatswritten : *mut u32) -> windows_core::BOOL); unsafe { GetLogIoStatistics(hlog, pvstatsbuffer as _, cbstatsbuffer, estatsclass, pcbstatswritten as _).ok() } } #[inline] -pub unsafe fn GetLogReservationInfo(pvmarshal: *const core::ffi::c_void, pcbrecordnumber: *mut u32, pcbuserreservation: *mut i64, pcbcommitreservation: *mut i64) -> super::super::Foundation::BOOL { - windows_targets::link!("clfsw32.dll" "system" fn GetLogReservationInfo(pvmarshal : *const core::ffi::c_void, pcbrecordnumber : *mut u32, pcbuserreservation : *mut i64, pcbcommitreservation : *mut i64) -> super::super::Foundation:: BOOL); +pub unsafe fn GetLogReservationInfo(pvmarshal: *const core::ffi::c_void, pcbrecordnumber: *mut u32, pcbuserreservation: *mut i64, pcbcommitreservation: *mut i64) -> windows_core::BOOL { + windows_targets::link!("clfsw32.dll" "system" fn GetLogReservationInfo(pvmarshal : *const core::ffi::c_void, pcbrecordnumber : *mut u32, pcbuserreservation : *mut i64, pcbcommitreservation : *mut i64) -> windows_core::BOOL); unsafe { GetLogReservationInfo(pvmarshal, pcbrecordnumber as _, pcbuserreservation as _, pcbcommitreservation as _) } } #[inline] @@ -1348,18 +1348,18 @@ where } #[inline] pub unsafe fn GetNextLogArchiveExtent(pvarchivecontext: *mut core::ffi::c_void, rgadextent: *mut CLS_ARCHIVE_DESCRIPTOR, cdescriptors: u32, pcdescriptorsreturned: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn GetNextLogArchiveExtent(pvarchivecontext : *mut core::ffi::c_void, rgadextent : *mut CLS_ARCHIVE_DESCRIPTOR, cdescriptors : u32, pcdescriptorsreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn GetNextLogArchiveExtent(pvarchivecontext : *mut core::ffi::c_void, rgadextent : *mut CLS_ARCHIVE_DESCRIPTOR, cdescriptors : u32, pcdescriptorsreturned : *mut u32) -> windows_core::BOOL); unsafe { GetNextLogArchiveExtent(pvarchivecontext as _, rgadextent as _, cdescriptors, pcdescriptorsreturned as _).ok() } } #[inline] pub unsafe fn GetNotificationResourceManager(resourcemanagerhandle: super::super::Foundation::HANDLE, transactionnotification: *mut TRANSACTION_NOTIFICATION, notificationlength: u32, dwmilliseconds: u32, returnlength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn GetNotificationResourceManager(resourcemanagerhandle : super::super::Foundation:: HANDLE, transactionnotification : *mut TRANSACTION_NOTIFICATION, notificationlength : u32, dwmilliseconds : u32, returnlength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn GetNotificationResourceManager(resourcemanagerhandle : super::super::Foundation:: HANDLE, transactionnotification : *mut TRANSACTION_NOTIFICATION, notificationlength : u32, dwmilliseconds : u32, returnlength : *mut u32) -> windows_core::BOOL); unsafe { GetNotificationResourceManager(resourcemanagerhandle, transactionnotification as _, notificationlength, dwmilliseconds, returnlength as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn GetNotificationResourceManagerAsync(resourcemanagerhandle: super::super::Foundation::HANDLE, transactionnotification: *mut TRANSACTION_NOTIFICATION, transactionnotificationlength: u32, returnlength: *mut u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn GetNotificationResourceManagerAsync(resourcemanagerhandle : super::super::Foundation:: HANDLE, transactionnotification : *mut TRANSACTION_NOTIFICATION, transactionnotificationlength : u32, returnlength : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn GetNotificationResourceManagerAsync(resourcemanagerhandle : super::super::Foundation:: HANDLE, transactionnotification : *mut TRANSACTION_NOTIFICATION, transactionnotificationlength : u32, returnlength : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { GetNotificationResourceManagerAsync(resourcemanagerhandle, transactionnotification as _, transactionnotificationlength, returnlength as _, lpoverlapped as _).ok() } } #[inline] @@ -1433,17 +1433,17 @@ pub unsafe fn GetTempPathW(lpbuffer: Option<&mut [u16]>) -> u32 { } #[inline] pub unsafe fn GetTransactionId(transactionhandle: super::super::Foundation::HANDLE, transactionid: *mut windows_core::GUID) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn GetTransactionId(transactionhandle : super::super::Foundation:: HANDLE, transactionid : *mut windows_core::GUID) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn GetTransactionId(transactionhandle : super::super::Foundation:: HANDLE, transactionid : *mut windows_core::GUID) -> windows_core::BOOL); unsafe { GetTransactionId(transactionhandle, transactionid as _).ok() } } #[inline] pub unsafe fn GetTransactionInformation(transactionhandle: super::super::Foundation::HANDLE, outcome: *mut u32, isolationlevel: *mut u32, isolationflags: *mut u32, timeout: *mut u32, description: Option<&mut [u16]>) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn GetTransactionInformation(transactionhandle : super::super::Foundation:: HANDLE, outcome : *mut u32, isolationlevel : *mut u32, isolationflags : *mut u32, timeout : *mut u32, bufferlength : u32, description : windows_core::PWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn GetTransactionInformation(transactionhandle : super::super::Foundation:: HANDLE, outcome : *mut u32, isolationlevel : *mut u32, isolationflags : *mut u32, timeout : *mut u32, bufferlength : u32, description : windows_core::PWSTR) -> windows_core::BOOL); unsafe { GetTransactionInformation(transactionhandle, outcome as _, isolationlevel as _, isolationflags as _, timeout as _, description.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(description.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } } #[inline] pub unsafe fn GetTransactionManagerId(transactionmanagerhandle: super::super::Foundation::HANDLE, transactionmanagerid: *mut windows_core::GUID) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn GetTransactionManagerId(transactionmanagerhandle : super::super::Foundation:: HANDLE, transactionmanagerid : *mut windows_core::GUID) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn GetTransactionManagerId(transactionmanagerhandle : super::super::Foundation:: HANDLE, transactionmanagerid : *mut windows_core::GUID) -> windows_core::BOOL); unsafe { GetTransactionManagerId(transactionmanagerhandle, transactionmanagerid as _).ok() } } #[inline] @@ -1451,7 +1451,7 @@ pub unsafe fn GetVolumeInformationA(lprootpathname: P0, lpvolumenamebuffer: where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetVolumeInformationA(lprootpathname : windows_core::PCSTR, lpvolumenamebuffer : windows_core::PSTR, nvolumenamesize : u32, lpvolumeserialnumber : *mut u32, lpmaximumcomponentlength : *mut u32, lpfilesystemflags : *mut u32, lpfilesystemnamebuffer : windows_core::PSTR, nfilesystemnamesize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetVolumeInformationA(lprootpathname : windows_core::PCSTR, lpvolumenamebuffer : windows_core::PSTR, nvolumenamesize : u32, lpvolumeserialnumber : *mut u32, lpmaximumcomponentlength : *mut u32, lpfilesystemflags : *mut u32, lpfilesystemnamebuffer : windows_core::PSTR, nfilesystemnamesize : u32) -> windows_core::BOOL); unsafe { GetVolumeInformationA( lprootpathname.param().abi(), @@ -1468,7 +1468,7 @@ where } #[inline] pub unsafe fn GetVolumeInformationByHandleW(hfile: super::super::Foundation::HANDLE, lpvolumenamebuffer: Option<&mut [u16]>, lpvolumeserialnumber: Option<*mut u32>, lpmaximumcomponentlength: Option<*mut u32>, lpfilesystemflags: Option<*mut u32>, lpfilesystemnamebuffer: Option<&mut [u16]>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetVolumeInformationByHandleW(hfile : super::super::Foundation:: HANDLE, lpvolumenamebuffer : windows_core::PWSTR, nvolumenamesize : u32, lpvolumeserialnumber : *mut u32, lpmaximumcomponentlength : *mut u32, lpfilesystemflags : *mut u32, lpfilesystemnamebuffer : windows_core::PWSTR, nfilesystemnamesize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetVolumeInformationByHandleW(hfile : super::super::Foundation:: HANDLE, lpvolumenamebuffer : windows_core::PWSTR, nvolumenamesize : u32, lpvolumeserialnumber : *mut u32, lpmaximumcomponentlength : *mut u32, lpfilesystemflags : *mut u32, lpfilesystemnamebuffer : windows_core::PWSTR, nfilesystemnamesize : u32) -> windows_core::BOOL); unsafe { GetVolumeInformationByHandleW( hfile, @@ -1488,7 +1488,7 @@ pub unsafe fn GetVolumeInformationW(lprootpathname: P0, lpvolumenamebuffer: where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetVolumeInformationW(lprootpathname : windows_core::PCWSTR, lpvolumenamebuffer : windows_core::PWSTR, nvolumenamesize : u32, lpvolumeserialnumber : *mut u32, lpmaximumcomponentlength : *mut u32, lpfilesystemflags : *mut u32, lpfilesystemnamebuffer : windows_core::PWSTR, nfilesystemnamesize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetVolumeInformationW(lprootpathname : windows_core::PCWSTR, lpvolumenamebuffer : windows_core::PWSTR, nvolumenamesize : u32, lpvolumeserialnumber : *mut u32, lpmaximumcomponentlength : *mut u32, lpfilesystemflags : *mut u32, lpfilesystemnamebuffer : windows_core::PWSTR, nfilesystemnamesize : u32) -> windows_core::BOOL); unsafe { GetVolumeInformationW( lprootpathname.param().abi(), @@ -1508,7 +1508,7 @@ pub unsafe fn GetVolumeNameForVolumeMountPointA(lpszvolumemountpoint: P0, lp where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetVolumeNameForVolumeMountPointA(lpszvolumemountpoint : windows_core::PCSTR, lpszvolumename : windows_core::PSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetVolumeNameForVolumeMountPointA(lpszvolumemountpoint : windows_core::PCSTR, lpszvolumename : windows_core::PSTR, cchbufferlength : u32) -> windows_core::BOOL); unsafe { GetVolumeNameForVolumeMountPointA(lpszvolumemountpoint.param().abi(), core::mem::transmute(lpszvolumename.as_ptr()), lpszvolumename.len().try_into().unwrap()).ok() } } #[inline] @@ -1516,7 +1516,7 @@ pub unsafe fn GetVolumeNameForVolumeMountPointW(lpszvolumemountpoint: P0, lp where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetVolumeNameForVolumeMountPointW(lpszvolumemountpoint : windows_core::PCWSTR, lpszvolumename : windows_core::PWSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetVolumeNameForVolumeMountPointW(lpszvolumemountpoint : windows_core::PCWSTR, lpszvolumename : windows_core::PWSTR, cchbufferlength : u32) -> windows_core::BOOL); unsafe { GetVolumeNameForVolumeMountPointW(lpszvolumemountpoint.param().abi(), core::mem::transmute(lpszvolumename.as_ptr()), lpszvolumename.len().try_into().unwrap()).ok() } } #[inline] @@ -1524,7 +1524,7 @@ pub unsafe fn GetVolumePathNameA(lpszfilename: P0, lpszvolumepathname: &mut where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetVolumePathNameA(lpszfilename : windows_core::PCSTR, lpszvolumepathname : windows_core::PSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetVolumePathNameA(lpszfilename : windows_core::PCSTR, lpszvolumepathname : windows_core::PSTR, cchbufferlength : u32) -> windows_core::BOOL); unsafe { GetVolumePathNameA(lpszfilename.param().abi(), core::mem::transmute(lpszvolumepathname.as_ptr()), lpszvolumepathname.len().try_into().unwrap()).ok() } } #[inline] @@ -1532,7 +1532,7 @@ pub unsafe fn GetVolumePathNameW(lpszfilename: P0, lpszvolumepathname: &mut where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetVolumePathNameW(lpszfilename : windows_core::PCWSTR, lpszvolumepathname : windows_core::PWSTR, cchbufferlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetVolumePathNameW(lpszfilename : windows_core::PCWSTR, lpszvolumepathname : windows_core::PWSTR, cchbufferlength : u32) -> windows_core::BOOL); unsafe { GetVolumePathNameW(lpszfilename.param().abi(), core::mem::transmute(lpszvolumepathname.as_ptr()), lpszvolumepathname.len().try_into().unwrap()).ok() } } #[inline] @@ -1540,7 +1540,7 @@ pub unsafe fn GetVolumePathNamesForVolumeNameA(lpszvolumename: P0, lpszvolum where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetVolumePathNamesForVolumeNameA(lpszvolumename : windows_core::PCSTR, lpszvolumepathnames : windows_core::PSTR, cchbufferlength : u32, lpcchreturnlength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetVolumePathNamesForVolumeNameA(lpszvolumename : windows_core::PCSTR, lpszvolumepathnames : windows_core::PSTR, cchbufferlength : u32, lpcchreturnlength : *mut u32) -> windows_core::BOOL); unsafe { GetVolumePathNamesForVolumeNameA(lpszvolumename.param().abi(), core::mem::transmute(lpszvolumepathnames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszvolumepathnames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpcchreturnlength as _).ok() } } #[inline] @@ -1548,22 +1548,22 @@ pub unsafe fn GetVolumePathNamesForVolumeNameW(lpszvolumename: P0, lpszvolum where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetVolumePathNamesForVolumeNameW(lpszvolumename : windows_core::PCWSTR, lpszvolumepathnames : windows_core::PWSTR, cchbufferlength : u32, lpcchreturnlength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetVolumePathNamesForVolumeNameW(lpszvolumename : windows_core::PCWSTR, lpszvolumepathnames : windows_core::PWSTR, cchbufferlength : u32, lpcchreturnlength : *mut u32) -> windows_core::BOOL); unsafe { GetVolumePathNamesForVolumeNameW(lpszvolumename.param().abi(), core::mem::transmute(lpszvolumepathnames.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszvolumepathnames.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpcchreturnlength as _).ok() } } #[inline] pub unsafe fn HandleLogFull(hlog: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn HandleLogFull(hlog : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn HandleLogFull(hlog : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { HandleLogFull(hlog).ok() } } #[inline] pub unsafe fn InstallLogPolicy(hlog: super::super::Foundation::HANDLE, ppolicy: *mut CLFS_MGMT_POLICY) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn InstallLogPolicy(hlog : super::super::Foundation:: HANDLE, ppolicy : *mut CLFS_MGMT_POLICY) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn InstallLogPolicy(hlog : super::super::Foundation:: HANDLE, ppolicy : *mut CLFS_MGMT_POLICY) -> windows_core::BOOL); unsafe { InstallLogPolicy(hlog, ppolicy as _).ok() } } #[inline] -pub unsafe fn IsIoRingOpSupported(ioring: HIORING, op: IORING_OP_CODE) -> super::super::Foundation::BOOL { - windows_targets::link!("api-ms-win-core-ioring-l1-1-0.dll" "system" fn IsIoRingOpSupported(ioring : HIORING, op : IORING_OP_CODE) -> super::super::Foundation:: BOOL); +pub unsafe fn IsIoRingOpSupported(ioring: HIORING, op: IORING_OP_CODE) -> windows_core::BOOL { + windows_targets::link!("api-ms-win-core-ioring-l1-1-0.dll" "system" fn IsIoRingOpSupported(ioring : HIORING, op : IORING_OP_CODE) -> windows_core::BOOL); unsafe { IsIoRingOpSupported(ioring, op) } } #[inline] @@ -1619,23 +1619,23 @@ pub unsafe fn LZStart() -> i32 { } #[inline] pub unsafe fn LocalFileTimeToFileTime(lplocalfiletime: *const super::super::Foundation::FILETIME, lpfiletime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn LocalFileTimeToFileTime(lplocalfiletime : *const super::super::Foundation:: FILETIME, lpfiletime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn LocalFileTimeToFileTime(lplocalfiletime : *const super::super::Foundation:: FILETIME, lpfiletime : *mut super::super::Foundation:: FILETIME) -> windows_core::BOOL); unsafe { LocalFileTimeToFileTime(lplocalfiletime, lpfiletime as _).ok() } } #[inline] pub unsafe fn LockFile(hfile: super::super::Foundation::HANDLE, dwfileoffsetlow: u32, dwfileoffsethigh: u32, nnumberofbytestolocklow: u32, nnumberofbytestolockhigh: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn LockFile(hfile : super::super::Foundation:: HANDLE, dwfileoffsetlow : u32, dwfileoffsethigh : u32, nnumberofbytestolocklow : u32, nnumberofbytestolockhigh : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn LockFile(hfile : super::super::Foundation:: HANDLE, dwfileoffsetlow : u32, dwfileoffsethigh : u32, nnumberofbytestolocklow : u32, nnumberofbytestolockhigh : u32) -> windows_core::BOOL); unsafe { LockFile(hfile, dwfileoffsetlow, dwfileoffsethigh, nnumberofbytestolocklow, nnumberofbytestolockhigh).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn LockFileEx(hfile: super::super::Foundation::HANDLE, dwflags: LOCK_FILE_FLAGS, dwreserved: Option, nnumberofbytestolocklow: u32, nnumberofbytestolockhigh: u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn LockFileEx(hfile : super::super::Foundation:: HANDLE, dwflags : LOCK_FILE_FLAGS, dwreserved : u32, nnumberofbytestolocklow : u32, nnumberofbytestolockhigh : u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn LockFileEx(hfile : super::super::Foundation:: HANDLE, dwflags : LOCK_FILE_FLAGS, dwreserved : u32, nnumberofbytestolocklow : u32, nnumberofbytestolockhigh : u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { LockFileEx(hfile, dwflags, dwreserved.unwrap_or(core::mem::zeroed()) as _, nnumberofbytestolocklow, nnumberofbytestolockhigh, lpoverlapped as _).ok() } } #[inline] pub unsafe fn LogTailAdvanceFailure(hlog: super::super::Foundation::HANDLE, dwreason: u32) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn LogTailAdvanceFailure(hlog : super::super::Foundation:: HANDLE, dwreason : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn LogTailAdvanceFailure(hlog : super::super::Foundation:: HANDLE, dwreason : u32) -> windows_core::BOOL); unsafe { LogTailAdvanceFailure(hlog, dwreason).ok() } } #[inline] @@ -1694,7 +1694,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn MoveFileA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn MoveFileA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { MoveFileA(lpexistingfilename.param().abi(), lpnewfilename.param().abi()).ok() } } #[inline] @@ -1703,7 +1703,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn MoveFileExA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR, dwflags : MOVE_FILE_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn MoveFileExA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR, dwflags : MOVE_FILE_FLAGS) -> windows_core::BOOL); unsafe { MoveFileExA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), dwflags).ok() } } #[inline] @@ -1712,16 +1712,16 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn MoveFileExW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, dwflags : MOVE_FILE_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn MoveFileExW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, dwflags : MOVE_FILE_FLAGS) -> windows_core::BOOL); unsafe { MoveFileExW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), dwflags).ok() } } #[inline] -pub unsafe fn MoveFileFromAppW(lpexistingfilename: P0, lpnewfilename: P1) -> super::super::Foundation::BOOL +pub unsafe fn MoveFileFromAppW(lpexistingfilename: P0, lpnewfilename: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn MoveFileFromAppW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn MoveFileFromAppW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { MoveFileFromAppW(lpexistingfilename.param().abi(), lpnewfilename.param().abi()) } } #[inline] @@ -1730,7 +1730,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn MoveFileTransactedA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, dwflags : MOVE_FILE_FLAGS, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn MoveFileTransactedA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, dwflags : MOVE_FILE_FLAGS, htransaction : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { MoveFileTransactedA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), lpprogressroutine.unwrap_or(core::mem::zeroed()) as _, lpdata.unwrap_or(core::mem::zeroed()) as _, dwflags, htransaction).ok() } } #[inline] @@ -1739,7 +1739,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn MoveFileTransactedW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, dwflags : MOVE_FILE_FLAGS, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn MoveFileTransactedW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, dwflags : MOVE_FILE_FLAGS, htransaction : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { MoveFileTransactedW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), lpprogressroutine.unwrap_or(core::mem::zeroed()) as _, lpdata.unwrap_or(core::mem::zeroed()) as _, dwflags, htransaction).ok() } } #[inline] @@ -1748,7 +1748,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn MoveFileW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn MoveFileW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { MoveFileW(lpexistingfilename.param().abi(), lpnewfilename.param().abi()).ok() } } #[inline] @@ -1757,7 +1757,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn MoveFileWithProgressA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, dwflags : MOVE_FILE_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn MoveFileWithProgressA(lpexistingfilename : windows_core::PCSTR, lpnewfilename : windows_core::PCSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, dwflags : MOVE_FILE_FLAGS) -> windows_core::BOOL); unsafe { MoveFileWithProgressA(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), lpprogressroutine.unwrap_or(core::mem::zeroed()) as _, lpdata.unwrap_or(core::mem::zeroed()) as _, dwflags).ok() } } #[inline] @@ -1766,7 +1766,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn MoveFileWithProgressW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, dwflags : MOVE_FILE_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn MoveFileWithProgressW(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, lpprogressroutine : LPPROGRESS_ROUTINE, lpdata : *const core::ffi::c_void, dwflags : MOVE_FILE_FLAGS) -> windows_core::BOOL); unsafe { MoveFileWithProgressW(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), lpprogressroutine.unwrap_or(core::mem::zeroed()) as _, lpdata.unwrap_or(core::mem::zeroed()) as _, dwflags).ok() } } #[inline] @@ -2011,32 +2011,32 @@ pub unsafe fn PopIoRingCompletion(ioring: HIORING, cqe: *mut IORING_CQE) -> wind } #[inline] pub unsafe fn PrePrepareComplete(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn PrePrepareComplete(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn PrePrepareComplete(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> windows_core::BOOL); unsafe { PrePrepareComplete(enlistmenthandle, tmvirtualclock as _).ok() } } #[inline] pub unsafe fn PrePrepareEnlistment(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn PrePrepareEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn PrePrepareEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> windows_core::BOOL); unsafe { PrePrepareEnlistment(enlistmenthandle, tmvirtualclock as _).ok() } } #[inline] pub unsafe fn PrepareComplete(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn PrepareComplete(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn PrepareComplete(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> windows_core::BOOL); unsafe { PrepareComplete(enlistmenthandle, tmvirtualclock as _).ok() } } #[inline] pub unsafe fn PrepareEnlistment(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn PrepareEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn PrepareEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> windows_core::BOOL); unsafe { PrepareEnlistment(enlistmenthandle, tmvirtualclock as _).ok() } } #[inline] pub unsafe fn PrepareLogArchive(hlog: super::super::Foundation::HANDLE, pszbaselogfilename: &mut [u16], plsnlow: Option<*const CLS_LSN>, plsnhigh: Option<*const CLS_LSN>, pcactuallength: Option<*mut u32>, poffbaselogfiledata: *mut u64, pcbbaselogfilelength: *mut u64, plsnbase: *mut CLS_LSN, plsnlast: *mut CLS_LSN, plsncurrentarchivetail: *mut CLS_LSN, ppvarchivecontext: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn PrepareLogArchive(hlog : super::super::Foundation:: HANDLE, pszbaselogfilename : windows_core::PWSTR, clen : u32, plsnlow : *const CLS_LSN, plsnhigh : *const CLS_LSN, pcactuallength : *mut u32, poffbaselogfiledata : *mut u64, pcbbaselogfilelength : *mut u64, plsnbase : *mut CLS_LSN, plsnlast : *mut CLS_LSN, plsncurrentarchivetail : *mut CLS_LSN, ppvarchivecontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn PrepareLogArchive(hlog : super::super::Foundation:: HANDLE, pszbaselogfilename : windows_core::PWSTR, clen : u32, plsnlow : *const CLS_LSN, plsnhigh : *const CLS_LSN, pcactuallength : *mut u32, poffbaselogfiledata : *mut u64, pcbbaselogfilelength : *mut u64, plsnbase : *mut CLS_LSN, plsnlast : *mut CLS_LSN, plsncurrentarchivetail : *mut CLS_LSN, ppvarchivecontext : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { PrepareLogArchive(hlog, core::mem::transmute(pszbaselogfilename.as_ptr()), pszbaselogfilename.len().try_into().unwrap(), plsnlow.unwrap_or(core::mem::zeroed()) as _, plsnhigh.unwrap_or(core::mem::zeroed()) as _, pcactuallength.unwrap_or(core::mem::zeroed()) as _, poffbaselogfiledata as _, pcbbaselogfilelength as _, plsnbase as _, plsnlast as _, plsncurrentarchivetail as _, ppvarchivecontext as _).ok() } } #[inline] pub unsafe fn PrepareTape(hdevice: super::super::Foundation::HANDLE, dwoperation: PREPARE_TAPE_OPERATION, bimmediate: bool) -> u32 { - windows_targets::link!("kernel32.dll" "system" fn PrepareTape(hdevice : super::super::Foundation:: HANDLE, dwoperation : PREPARE_TAPE_OPERATION, bimmediate : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("kernel32.dll" "system" fn PrepareTape(hdevice : super::super::Foundation:: HANDLE, dwoperation : PREPARE_TAPE_OPERATION, bimmediate : windows_core::BOOL) -> u32); unsafe { PrepareTape(hdevice, dwoperation, bimmediate.into()) } } #[inline] @@ -2065,7 +2065,7 @@ pub unsafe fn QueryIoRingCapabilities() -> windows_core::Result windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn QueryLogPolicy(hlog : super::super::Foundation:: HANDLE, epolicytype : CLFS_MGMT_POLICY_TYPE, ppolicybuffer : *mut CLFS_MGMT_POLICY, pcbpolicybuffer : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn QueryLogPolicy(hlog : super::super::Foundation:: HANDLE, epolicytype : CLFS_MGMT_POLICY_TYPE, ppolicybuffer : *mut CLFS_MGMT_POLICY, pcbpolicybuffer : *mut u32) -> windows_core::BOOL); unsafe { QueryLogPolicy(hlog, epolicytype, ppolicybuffer as _, pcbpolicybuffer as _).ok() } } #[cfg(feature = "Win32_Security")] @@ -2095,13 +2095,13 @@ pub unsafe fn ReOpenFile(horiginalfile: super::super::Foundation::HANDLE, dwdesi #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadDirectoryChangesExW(hdirectory: super::super::Foundation::HANDLE, lpbuffer: *mut core::ffi::c_void, nbufferlength: u32, bwatchsubtree: bool, dwnotifyfilter: FILE_NOTIFY_CHANGE, lpbytesreturned: Option<*mut u32>, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lpcompletionroutine: Option, readdirectorynotifyinformationclass: READ_DIRECTORY_NOTIFY_INFORMATION_CLASS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ReadDirectoryChangesExW(hdirectory : super::super::Foundation:: HANDLE, lpbuffer : *mut core::ffi::c_void, nbufferlength : u32, bwatchsubtree : super::super::Foundation:: BOOL, dwnotifyfilter : FILE_NOTIFY_CHANGE, lpbytesreturned : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lpcompletionroutine : super::super::System::IO:: LPOVERLAPPED_COMPLETION_ROUTINE, readdirectorynotifyinformationclass : READ_DIRECTORY_NOTIFY_INFORMATION_CLASS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReadDirectoryChangesExW(hdirectory : super::super::Foundation:: HANDLE, lpbuffer : *mut core::ffi::c_void, nbufferlength : u32, bwatchsubtree : windows_core::BOOL, dwnotifyfilter : FILE_NOTIFY_CHANGE, lpbytesreturned : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lpcompletionroutine : super::super::System::IO:: LPOVERLAPPED_COMPLETION_ROUTINE, readdirectorynotifyinformationclass : READ_DIRECTORY_NOTIFY_INFORMATION_CLASS) -> windows_core::BOOL); unsafe { ReadDirectoryChangesExW(hdirectory, lpbuffer as _, nbufferlength, bwatchsubtree.into(), dwnotifyfilter, lpbytesreturned.unwrap_or(core::mem::zeroed()) as _, lpoverlapped.unwrap_or(core::mem::zeroed()) as _, lpcompletionroutine.unwrap_or(core::mem::zeroed()) as _, readdirectorynotifyinformationclass).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadDirectoryChangesW(hdirectory: super::super::Foundation::HANDLE, lpbuffer: *mut core::ffi::c_void, nbufferlength: u32, bwatchsubtree: bool, dwnotifyfilter: FILE_NOTIFY_CHANGE, lpbytesreturned: Option<*mut u32>, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>, lpcompletionroutine: Option) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ReadDirectoryChangesW(hdirectory : super::super::Foundation:: HANDLE, lpbuffer : *mut core::ffi::c_void, nbufferlength : u32, bwatchsubtree : super::super::Foundation:: BOOL, dwnotifyfilter : FILE_NOTIFY_CHANGE, lpbytesreturned : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lpcompletionroutine : super::super::System::IO:: LPOVERLAPPED_COMPLETION_ROUTINE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReadDirectoryChangesW(hdirectory : super::super::Foundation:: HANDLE, lpbuffer : *mut core::ffi::c_void, nbufferlength : u32, bwatchsubtree : windows_core::BOOL, dwnotifyfilter : FILE_NOTIFY_CHANGE, lpbytesreturned : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lpcompletionroutine : super::super::System::IO:: LPOVERLAPPED_COMPLETION_ROUTINE) -> windows_core::BOOL); unsafe { ReadDirectoryChangesW(hdirectory, lpbuffer as _, nbufferlength, bwatchsubtree.into(), dwnotifyfilter, lpbytesreturned.unwrap_or(core::mem::zeroed()) as _, lpoverlapped.unwrap_or(core::mem::zeroed()) as _, lpcompletionroutine.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2112,84 +2112,84 @@ pub unsafe fn ReadEncryptedFileRaw(pfexportcallback: PFE_EXPORT_FUNC, pvcallback #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadFile(hfile: super::super::Foundation::HANDLE, lpbuffer: Option<&mut [u8]>, lpnumberofbytesread: Option<*mut u32>, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ReadFile(hfile : super::super::Foundation:: HANDLE, lpbuffer : *mut u8, nnumberofbytestoread : u32, lpnumberofbytesread : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReadFile(hfile : super::super::Foundation:: HANDLE, lpbuffer : *mut u8, nnumberofbytestoread : u32, lpnumberofbytesread : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { ReadFile(hfile, core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpnumberofbytesread.unwrap_or(core::mem::zeroed()) as _, lpoverlapped.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadFileEx(hfile: super::super::Foundation::HANDLE, lpbuffer: Option<&mut [u8]>, lpoverlapped: *mut super::super::System::IO::OVERLAPPED, lpcompletionroutine: super::super::System::IO::LPOVERLAPPED_COMPLETION_ROUTINE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ReadFileEx(hfile : super::super::Foundation:: HANDLE, lpbuffer : *mut u8, nnumberofbytestoread : u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lpcompletionroutine : super::super::System::IO:: LPOVERLAPPED_COMPLETION_ROUTINE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReadFileEx(hfile : super::super::Foundation:: HANDLE, lpbuffer : *mut u8, nnumberofbytestoread : u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lpcompletionroutine : super::super::System::IO:: LPOVERLAPPED_COMPLETION_ROUTINE) -> windows_core::BOOL); unsafe { ReadFileEx(hfile, core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpoverlapped as _, lpcompletionroutine).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadFileScatter(hfile: super::super::Foundation::HANDLE, asegmentarray: *const FILE_SEGMENT_ELEMENT, nnumberofbytestoread: u32, lpreserved: Option<*const u32>, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ReadFileScatter(hfile : super::super::Foundation:: HANDLE, asegmentarray : *const FILE_SEGMENT_ELEMENT, nnumberofbytestoread : u32, lpreserved : *const u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReadFileScatter(hfile : super::super::Foundation:: HANDLE, asegmentarray : *const FILE_SEGMENT_ELEMENT, nnumberofbytestoread : u32, lpreserved : *const u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { ReadFileScatter(hfile, asegmentarray, nnumberofbytestoread, lpreserved.unwrap_or(core::mem::zeroed()) as _, lpoverlapped as _).ok() } } #[inline] pub unsafe fn ReadLogArchiveMetadata(pvarchivecontext: *mut core::ffi::c_void, cboffset: u32, cbbytestoread: u32, pbreadbuffer: *mut u8, pcbbytesread: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn ReadLogArchiveMetadata(pvarchivecontext : *mut core::ffi::c_void, cboffset : u32, cbbytestoread : u32, pbreadbuffer : *mut u8, pcbbytesread : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn ReadLogArchiveMetadata(pvarchivecontext : *mut core::ffi::c_void, cboffset : u32, cbbytestoread : u32, pbreadbuffer : *mut u8, pcbbytesread : *mut u32) -> windows_core::BOOL); unsafe { ReadLogArchiveMetadata(pvarchivecontext as _, cboffset, cbbytestoread, pbreadbuffer as _, pcbbytesread as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadLogNotification(hlog: super::super::Foundation::HANDLE, pnotification: *mut CLFS_MGMT_NOTIFICATION, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn ReadLogNotification(hlog : super::super::Foundation:: HANDLE, pnotification : *mut CLFS_MGMT_NOTIFICATION, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn ReadLogNotification(hlog : super::super::Foundation:: HANDLE, pnotification : *mut CLFS_MGMT_NOTIFICATION, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { ReadLogNotification(hlog, pnotification as _, lpoverlapped as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadLogRecord(pvmarshal: *mut core::ffi::c_void, plsnfirst: *mut CLS_LSN, econtextmode: CLFS_CONTEXT_MODE, ppvreadbuffer: *mut *mut core::ffi::c_void, pcbreadbuffer: *mut u32, perecordtype: *mut u8, plsnundonext: *mut CLS_LSN, plsnprevious: *mut CLS_LSN, ppvreadcontext: *mut *mut core::ffi::c_void, poverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn ReadLogRecord(pvmarshal : *mut core::ffi::c_void, plsnfirst : *mut CLS_LSN, econtextmode : CLFS_CONTEXT_MODE, ppvreadbuffer : *mut *mut core::ffi::c_void, pcbreadbuffer : *mut u32, perecordtype : *mut u8, plsnundonext : *mut CLS_LSN, plsnprevious : *mut CLS_LSN, ppvreadcontext : *mut *mut core::ffi::c_void, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn ReadLogRecord(pvmarshal : *mut core::ffi::c_void, plsnfirst : *mut CLS_LSN, econtextmode : CLFS_CONTEXT_MODE, ppvreadbuffer : *mut *mut core::ffi::c_void, pcbreadbuffer : *mut u32, perecordtype : *mut u8, plsnundonext : *mut CLS_LSN, plsnprevious : *mut CLS_LSN, ppvreadcontext : *mut *mut core::ffi::c_void, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { ReadLogRecord(pvmarshal as _, plsnfirst as _, econtextmode, ppvreadbuffer as _, pcbreadbuffer as _, perecordtype as _, plsnundonext as _, plsnprevious as _, ppvreadcontext as _, poverlapped as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadLogRestartArea(pvmarshal: *mut core::ffi::c_void, ppvrestartbuffer: *mut *mut core::ffi::c_void, pcbrestartbuffer: *mut u32, plsn: *mut CLS_LSN, ppvcontext: *mut *mut core::ffi::c_void, poverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn ReadLogRestartArea(pvmarshal : *mut core::ffi::c_void, ppvrestartbuffer : *mut *mut core::ffi::c_void, pcbrestartbuffer : *mut u32, plsn : *mut CLS_LSN, ppvcontext : *mut *mut core::ffi::c_void, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn ReadLogRestartArea(pvmarshal : *mut core::ffi::c_void, ppvrestartbuffer : *mut *mut core::ffi::c_void, pcbrestartbuffer : *mut u32, plsn : *mut CLS_LSN, ppvcontext : *mut *mut core::ffi::c_void, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { ReadLogRestartArea(pvmarshal as _, ppvrestartbuffer as _, pcbrestartbuffer as _, plsn as _, ppvcontext as _, poverlapped as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadNextLogRecord(pvreadcontext: *mut core::ffi::c_void, ppvbuffer: *mut *mut core::ffi::c_void, pcbbuffer: *mut u32, perecordtype: *mut u8, plsnuser: *mut CLS_LSN, plsnundonext: *mut CLS_LSN, plsnprevious: *mut CLS_LSN, plsnrecord: *mut CLS_LSN, poverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn ReadNextLogRecord(pvreadcontext : *mut core::ffi::c_void, ppvbuffer : *mut *mut core::ffi::c_void, pcbbuffer : *mut u32, perecordtype : *mut u8, plsnuser : *mut CLS_LSN, plsnundonext : *mut CLS_LSN, plsnprevious : *mut CLS_LSN, plsnrecord : *mut CLS_LSN, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn ReadNextLogRecord(pvreadcontext : *mut core::ffi::c_void, ppvbuffer : *mut *mut core::ffi::c_void, pcbbuffer : *mut u32, perecordtype : *mut u8, plsnuser : *mut CLS_LSN, plsnundonext : *mut CLS_LSN, plsnprevious : *mut CLS_LSN, plsnrecord : *mut CLS_LSN, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { ReadNextLogRecord(pvreadcontext as _, ppvbuffer as _, pcbbuffer as _, perecordtype as _, plsnuser as _, plsnundonext as _, plsnprevious as _, plsnrecord as _, poverlapped as _).ok() } } #[inline] pub unsafe fn ReadOnlyEnlistment(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn ReadOnlyEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn ReadOnlyEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> windows_core::BOOL); unsafe { ReadOnlyEnlistment(enlistmenthandle, tmvirtualclock as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReadPreviousLogRestartArea(pvreadcontext: *mut core::ffi::c_void, ppvrestartbuffer: *mut *mut core::ffi::c_void, pcbrestartbuffer: *mut u32, plsnrestart: *mut CLS_LSN, poverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn ReadPreviousLogRestartArea(pvreadcontext : *mut core::ffi::c_void, ppvrestartbuffer : *mut *mut core::ffi::c_void, pcbrestartbuffer : *mut u32, plsnrestart : *mut CLS_LSN, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn ReadPreviousLogRestartArea(pvreadcontext : *mut core::ffi::c_void, ppvrestartbuffer : *mut *mut core::ffi::c_void, pcbrestartbuffer : *mut u32, plsnrestart : *mut CLS_LSN, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { ReadPreviousLogRestartArea(pvreadcontext as _, ppvrestartbuffer as _, pcbrestartbuffer as _, plsnrestart as _, poverlapped as _).ok() } } #[inline] pub unsafe fn RecoverEnlistment(enlistmenthandle: super::super::Foundation::HANDLE, enlistmentkey: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn RecoverEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, enlistmentkey : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn RecoverEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, enlistmentkey : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { RecoverEnlistment(enlistmenthandle, enlistmentkey as _).ok() } } #[inline] pub unsafe fn RecoverResourceManager(resourcemanagerhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn RecoverResourceManager(resourcemanagerhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn RecoverResourceManager(resourcemanagerhandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { RecoverResourceManager(resourcemanagerhandle).ok() } } #[inline] pub unsafe fn RecoverTransactionManager(transactionmanagerhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn RecoverTransactionManager(transactionmanagerhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn RecoverTransactionManager(transactionmanagerhandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { RecoverTransactionManager(transactionmanagerhandle).ok() } } #[inline] pub unsafe fn RegisterForLogWriteNotification(hlog: super::super::Foundation::HANDLE, cbthreshold: u32, fenable: bool) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn RegisterForLogWriteNotification(hlog : super::super::Foundation:: HANDLE, cbthreshold : u32, fenable : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn RegisterForLogWriteNotification(hlog : super::super::Foundation:: HANDLE, cbthreshold : u32, fenable : windows_core::BOOL) -> windows_core::BOOL); unsafe { RegisterForLogWriteNotification(hlog, cbthreshold, fenable.into()).ok() } } #[inline] pub unsafe fn RegisterManageableLogClient(hlog: super::super::Foundation::HANDLE, pcallbacks: *mut LOG_MANAGEMENT_CALLBACKS) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn RegisterManageableLogClient(hlog : super::super::Foundation:: HANDLE, pcallbacks : *mut LOG_MANAGEMENT_CALLBACKS) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn RegisterManageableLogClient(hlog : super::super::Foundation:: HANDLE, pcallbacks : *mut LOG_MANAGEMENT_CALLBACKS) -> windows_core::BOOL); unsafe { RegisterManageableLogClient(hlog, pcallbacks as _).ok() } } #[inline] @@ -2197,15 +2197,15 @@ pub unsafe fn RemoveDirectoryA(lppathname: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn RemoveDirectoryA(lppathname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn RemoveDirectoryA(lppathname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { RemoveDirectoryA(lppathname.param().abi()).ok() } } #[inline] -pub unsafe fn RemoveDirectoryFromAppW(lppathname: P0) -> super::super::Foundation::BOOL +pub unsafe fn RemoveDirectoryFromAppW(lppathname: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn RemoveDirectoryFromAppW(lppathname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn RemoveDirectoryFromAppW(lppathname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { RemoveDirectoryFromAppW(lppathname.param().abi()) } } #[inline] @@ -2213,7 +2213,7 @@ pub unsafe fn RemoveDirectoryTransactedA(lppathname: P0, htransaction: super where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn RemoveDirectoryTransactedA(lppathname : windows_core::PCSTR, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn RemoveDirectoryTransactedA(lppathname : windows_core::PCSTR, htransaction : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { RemoveDirectoryTransactedA(lppathname.param().abi(), htransaction).ok() } } #[inline] @@ -2221,7 +2221,7 @@ pub unsafe fn RemoveDirectoryTransactedW(lppathname: P0, htransaction: super where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn RemoveDirectoryTransactedW(lppathname : windows_core::PCWSTR, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn RemoveDirectoryTransactedW(lppathname : windows_core::PCWSTR, htransaction : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { RemoveDirectoryTransactedW(lppathname.param().abi(), htransaction).ok() } } #[inline] @@ -2229,7 +2229,7 @@ pub unsafe fn RemoveDirectoryW(lppathname: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn RemoveDirectoryW(lppathname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn RemoveDirectoryW(lppathname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { RemoveDirectoryW(lppathname.param().abi()).ok() } } #[inline] @@ -2237,17 +2237,17 @@ pub unsafe fn RemoveLogContainer(hlog: super::super::Foundation::HANDLE, pws where P1: windows_core::Param, { - windows_targets::link!("clfsw32.dll" "system" fn RemoveLogContainer(hlog : super::super::Foundation:: HANDLE, pwszcontainerpath : windows_core::PCWSTR, fforce : super::super::Foundation:: BOOL, preserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn RemoveLogContainer(hlog : super::super::Foundation:: HANDLE, pwszcontainerpath : windows_core::PCWSTR, fforce : windows_core::BOOL, preserved : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { RemoveLogContainer(hlog, pwszcontainerpath.param().abi(), fforce.into(), preserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn RemoveLogContainerSet(hlog: super::super::Foundation::HANDLE, rgwszcontainerpath: &[windows_core::PCWSTR], fforce: bool, preserved: Option<*mut core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn RemoveLogContainerSet(hlog : super::super::Foundation:: HANDLE, ccontainer : u16, rgwszcontainerpath : *const windows_core::PCWSTR, fforce : super::super::Foundation:: BOOL, preserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn RemoveLogContainerSet(hlog : super::super::Foundation:: HANDLE, ccontainer : u16, rgwszcontainerpath : *const windows_core::PCWSTR, fforce : windows_core::BOOL, preserved : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { RemoveLogContainerSet(hlog, rgwszcontainerpath.len().try_into().unwrap(), core::mem::transmute(rgwszcontainerpath.as_ptr()), fforce.into(), preserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn RemoveLogPolicy(hlog: super::super::Foundation::HANDLE, epolicytype: CLFS_MGMT_POLICY_TYPE) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn RemoveLogPolicy(hlog : super::super::Foundation:: HANDLE, epolicytype : CLFS_MGMT_POLICY_TYPE) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn RemoveLogPolicy(hlog : super::super::Foundation:: HANDLE, epolicytype : CLFS_MGMT_POLICY_TYPE) -> windows_core::BOOL); unsafe { RemoveLogPolicy(hlog, epolicytype).ok() } } #[cfg(feature = "Win32_Security")] @@ -2264,7 +2264,7 @@ pub unsafe fn RenameTransactionManager(logfilename: P0, existingtransactionm where P0: windows_core::Param, { - windows_targets::link!("ktmw32.dll" "system" fn RenameTransactionManager(logfilename : windows_core::PCWSTR, existingtransactionmanagerguid : *mut windows_core::GUID) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn RenameTransactionManager(logfilename : windows_core::PCWSTR, existingtransactionmanagerguid : *mut windows_core::GUID) -> windows_core::BOOL); unsafe { RenameTransactionManager(logfilename.param().abi(), existingtransactionmanagerguid as _).ok() } } #[inline] @@ -2274,17 +2274,17 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn ReplaceFileA(lpreplacedfilename : windows_core::PCSTR, lpreplacementfilename : windows_core::PCSTR, lpbackupfilename : windows_core::PCSTR, dwreplaceflags : REPLACE_FILE_FLAGS, lpexclude : *const core::ffi::c_void, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReplaceFileA(lpreplacedfilename : windows_core::PCSTR, lpreplacementfilename : windows_core::PCSTR, lpbackupfilename : windows_core::PCSTR, dwreplaceflags : REPLACE_FILE_FLAGS, lpexclude : *const core::ffi::c_void, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { ReplaceFileA(lpreplacedfilename.param().abi(), lpreplacementfilename.param().abi(), lpbackupfilename.param().abi(), dwreplaceflags, lpexclude.unwrap_or(core::mem::zeroed()) as _, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn ReplaceFileFromAppW(lpreplacedfilename: P0, lpreplacementfilename: P1, lpbackupfilename: P2, dwreplaceflags: u32, lpexclude: Option<*const core::ffi::c_void>, lpreserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL +pub unsafe fn ReplaceFileFromAppW(lpreplacedfilename: P0, lpreplacementfilename: P1, lpbackupfilename: P2, dwreplaceflags: u32, lpexclude: Option<*const core::ffi::c_void>, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn ReplaceFileFromAppW(lpreplacedfilename : windows_core::PCWSTR, lpreplacementfilename : windows_core::PCWSTR, lpbackupfilename : windows_core::PCWSTR, dwreplaceflags : u32, lpexclude : *const core::ffi::c_void, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn ReplaceFileFromAppW(lpreplacedfilename : windows_core::PCWSTR, lpreplacementfilename : windows_core::PCWSTR, lpbackupfilename : windows_core::PCWSTR, dwreplaceflags : u32, lpexclude : *const core::ffi::c_void, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { ReplaceFileFromAppW(lpreplacedfilename.param().abi(), lpreplacementfilename.param().abi(), lpbackupfilename.param().abi(), dwreplaceflags, lpexclude.unwrap_or(core::mem::zeroed()) as _, lpreserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -2294,49 +2294,49 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn ReplaceFileW(lpreplacedfilename : windows_core::PCWSTR, lpreplacementfilename : windows_core::PCWSTR, lpbackupfilename : windows_core::PCWSTR, dwreplaceflags : REPLACE_FILE_FLAGS, lpexclude : *const core::ffi::c_void, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReplaceFileW(lpreplacedfilename : windows_core::PCWSTR, lpreplacementfilename : windows_core::PCWSTR, lpbackupfilename : windows_core::PCWSTR, dwreplaceflags : REPLACE_FILE_FLAGS, lpexclude : *const core::ffi::c_void, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { ReplaceFileW(lpreplacedfilename.param().abi(), lpreplacementfilename.param().abi(), lpbackupfilename.param().abi(), dwreplaceflags, lpexclude.unwrap_or(core::mem::zeroed()) as _, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReserveAndAppendLog(pvmarshal: *mut core::ffi::c_void, rgwriteentries: *mut CLS_WRITE_ENTRY, cwriteentries: u32, plsnundonext: *mut CLS_LSN, plsnprevious: *mut CLS_LSN, creserverecords: u32, rgcbreservation: *mut i64, fflags: CLFS_FLAG, plsn: *mut CLS_LSN, poverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn ReserveAndAppendLog(pvmarshal : *mut core::ffi::c_void, rgwriteentries : *mut CLS_WRITE_ENTRY, cwriteentries : u32, plsnundonext : *mut CLS_LSN, plsnprevious : *mut CLS_LSN, creserverecords : u32, rgcbreservation : *mut i64, fflags : CLFS_FLAG, plsn : *mut CLS_LSN, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn ReserveAndAppendLog(pvmarshal : *mut core::ffi::c_void, rgwriteentries : *mut CLS_WRITE_ENTRY, cwriteentries : u32, plsnundonext : *mut CLS_LSN, plsnprevious : *mut CLS_LSN, creserverecords : u32, rgcbreservation : *mut i64, fflags : CLFS_FLAG, plsn : *mut CLS_LSN, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { ReserveAndAppendLog(pvmarshal as _, rgwriteentries as _, cwriteentries, plsnundonext as _, plsnprevious as _, creserverecords, rgcbreservation as _, fflags, plsn as _, poverlapped as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ReserveAndAppendLogAligned(pvmarshal: *mut core::ffi::c_void, rgwriteentries: *mut CLS_WRITE_ENTRY, cwriteentries: u32, cbentryalignment: u32, plsnundonext: *mut CLS_LSN, plsnprevious: *mut CLS_LSN, creserverecords: u32, rgcbreservation: *mut i64, fflags: CLFS_FLAG, plsn: *mut CLS_LSN, poverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn ReserveAndAppendLogAligned(pvmarshal : *mut core::ffi::c_void, rgwriteentries : *mut CLS_WRITE_ENTRY, cwriteentries : u32, cbentryalignment : u32, plsnundonext : *mut CLS_LSN, plsnprevious : *mut CLS_LSN, creserverecords : u32, rgcbreservation : *mut i64, fflags : CLFS_FLAG, plsn : *mut CLS_LSN, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn ReserveAndAppendLogAligned(pvmarshal : *mut core::ffi::c_void, rgwriteentries : *mut CLS_WRITE_ENTRY, cwriteentries : u32, cbentryalignment : u32, plsnundonext : *mut CLS_LSN, plsnprevious : *mut CLS_LSN, creserverecords : u32, rgcbreservation : *mut i64, fflags : CLFS_FLAG, plsn : *mut CLS_LSN, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { ReserveAndAppendLogAligned(pvmarshal as _, rgwriteentries as _, cwriteentries, cbentryalignment, plsnundonext as _, plsnprevious as _, creserverecords, rgcbreservation as _, fflags, plsn as _, poverlapped as _).ok() } } #[inline] pub unsafe fn RollbackComplete(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn RollbackComplete(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn RollbackComplete(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> windows_core::BOOL); unsafe { RollbackComplete(enlistmenthandle, tmvirtualclock as _).ok() } } #[inline] pub unsafe fn RollbackEnlistment(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn RollbackEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn RollbackEnlistment(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> windows_core::BOOL); unsafe { RollbackEnlistment(enlistmenthandle, tmvirtualclock as _).ok() } } #[inline] pub unsafe fn RollbackTransaction(transactionhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn RollbackTransaction(transactionhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn RollbackTransaction(transactionhandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { RollbackTransaction(transactionhandle).ok() } } #[inline] pub unsafe fn RollbackTransactionAsync(transactionhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn RollbackTransactionAsync(transactionhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn RollbackTransactionAsync(transactionhandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { RollbackTransactionAsync(transactionhandle).ok() } } #[inline] pub unsafe fn RollforwardTransactionManager(transactionmanagerhandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn RollforwardTransactionManager(transactionmanagerhandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn RollforwardTransactionManager(transactionmanagerhandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> windows_core::BOOL); unsafe { RollforwardTransactionManager(transactionmanagerhandle, tmvirtualclock as _).ok() } } #[inline] pub unsafe fn ScanLogContainers(pcxscan: *mut CLS_SCAN_CONTEXT, escanmode: u8, preserved: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn ScanLogContainers(pcxscan : *mut CLS_SCAN_CONTEXT, escanmode : u8, preserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn ScanLogContainers(pcxscan : *mut CLS_SCAN_CONTEXT, escanmode : u8, preserved : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { ScanLogContainers(pcxscan as _, escanmode, preserved as _).ok() } } #[inline] @@ -2370,18 +2370,18 @@ where } #[inline] pub unsafe fn SetEndOfFile(hfile: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetEndOfFile(hfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetEndOfFile(hfile : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SetEndOfFile(hfile).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn SetEndOfLog(hlog: super::super::Foundation::HANDLE, plsnend: *mut CLS_LSN, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn SetEndOfLog(hlog : super::super::Foundation:: HANDLE, plsnend : *mut CLS_LSN, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn SetEndOfLog(hlog : super::super::Foundation:: HANDLE, plsnend : *mut CLS_LSN, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { SetEndOfLog(hlog, plsnend as _, lpoverlapped as _).ok() } } #[inline] pub unsafe fn SetEnlistmentRecoveryInformation(enlistmenthandle: super::super::Foundation::HANDLE, buffersize: u32, buffer: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn SetEnlistmentRecoveryInformation(enlistmenthandle : super::super::Foundation:: HANDLE, buffersize : u32, buffer : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn SetEnlistmentRecoveryInformation(enlistmenthandle : super::super::Foundation:: HANDLE, buffersize : u32, buffer : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { SetEnlistmentRecoveryInformation(enlistmenthandle, buffersize, buffer as _).ok() } } #[inline] @@ -2399,15 +2399,15 @@ pub unsafe fn SetFileAttributesA(lpfilename: P0, dwfileattributes: FILE_FLAG where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetFileAttributesA(lpfilename : windows_core::PCSTR, dwfileattributes : FILE_FLAGS_AND_ATTRIBUTES) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetFileAttributesA(lpfilename : windows_core::PCSTR, dwfileattributes : FILE_FLAGS_AND_ATTRIBUTES) -> windows_core::BOOL); unsafe { SetFileAttributesA(lpfilename.param().abi(), dwfileattributes).ok() } } #[inline] -pub unsafe fn SetFileAttributesFromAppW(lpfilename: P0, dwfileattributes: u32) -> super::super::Foundation::BOOL +pub unsafe fn SetFileAttributesFromAppW(lpfilename: P0, dwfileattributes: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn SetFileAttributesFromAppW(lpfilename : windows_core::PCWSTR, dwfileattributes : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-file-fromapp-l1-1-0.dll" "system" fn SetFileAttributesFromAppW(lpfilename : windows_core::PCWSTR, dwfileattributes : u32) -> windows_core::BOOL); unsafe { SetFileAttributesFromAppW(lpfilename.param().abi(), dwfileattributes) } } #[inline] @@ -2415,7 +2415,7 @@ pub unsafe fn SetFileAttributesTransactedA(lpfilename: P0, dwfileattributes: where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetFileAttributesTransactedA(lpfilename : windows_core::PCSTR, dwfileattributes : u32, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetFileAttributesTransactedA(lpfilename : windows_core::PCSTR, dwfileattributes : u32, htransaction : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SetFileAttributesTransactedA(lpfilename.param().abi(), dwfileattributes, htransaction).ok() } } #[inline] @@ -2423,7 +2423,7 @@ pub unsafe fn SetFileAttributesTransactedW(lpfilename: P0, dwfileattributes: where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetFileAttributesTransactedW(lpfilename : windows_core::PCWSTR, dwfileattributes : u32, htransaction : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetFileAttributesTransactedW(lpfilename : windows_core::PCWSTR, dwfileattributes : u32, htransaction : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SetFileAttributesTransactedW(lpfilename.param().abi(), dwfileattributes, htransaction).ok() } } #[inline] @@ -2431,27 +2431,27 @@ pub unsafe fn SetFileAttributesW(lpfilename: P0, dwfileattributes: FILE_FLAG where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetFileAttributesW(lpfilename : windows_core::PCWSTR, dwfileattributes : FILE_FLAGS_AND_ATTRIBUTES) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetFileAttributesW(lpfilename : windows_core::PCWSTR, dwfileattributes : FILE_FLAGS_AND_ATTRIBUTES) -> windows_core::BOOL); unsafe { SetFileAttributesW(lpfilename.param().abi(), dwfileattributes).ok() } } #[inline] pub unsafe fn SetFileBandwidthReservation(hfile: super::super::Foundation::HANDLE, nperiodmilliseconds: u32, nbytesperperiod: u32, bdiscardable: bool, lptransfersize: *mut u32, lpnumoutstandingrequests: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetFileBandwidthReservation(hfile : super::super::Foundation:: HANDLE, nperiodmilliseconds : u32, nbytesperperiod : u32, bdiscardable : super::super::Foundation:: BOOL, lptransfersize : *mut u32, lpnumoutstandingrequests : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetFileBandwidthReservation(hfile : super::super::Foundation:: HANDLE, nperiodmilliseconds : u32, nbytesperperiod : u32, bdiscardable : windows_core::BOOL, lptransfersize : *mut u32, lpnumoutstandingrequests : *mut u32) -> windows_core::BOOL); unsafe { SetFileBandwidthReservation(hfile, nperiodmilliseconds, nbytesperperiod, bdiscardable.into(), lptransfersize as _, lpnumoutstandingrequests as _).ok() } } #[inline] pub unsafe fn SetFileCompletionNotificationModes(filehandle: super::super::Foundation::HANDLE, flags: u8) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetFileCompletionNotificationModes(filehandle : super::super::Foundation:: HANDLE, flags : u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetFileCompletionNotificationModes(filehandle : super::super::Foundation:: HANDLE, flags : u8) -> windows_core::BOOL); unsafe { SetFileCompletionNotificationModes(filehandle, flags).ok() } } #[inline] pub unsafe fn SetFileInformationByHandle(hfile: super::super::Foundation::HANDLE, fileinformationclass: FILE_INFO_BY_HANDLE_CLASS, lpfileinformation: *const core::ffi::c_void, dwbuffersize: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetFileInformationByHandle(hfile : super::super::Foundation:: HANDLE, fileinformationclass : FILE_INFO_BY_HANDLE_CLASS, lpfileinformation : *const core::ffi::c_void, dwbuffersize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetFileInformationByHandle(hfile : super::super::Foundation:: HANDLE, fileinformationclass : FILE_INFO_BY_HANDLE_CLASS, lpfileinformation : *const core::ffi::c_void, dwbuffersize : u32) -> windows_core::BOOL); unsafe { SetFileInformationByHandle(hfile, fileinformationclass, lpfileinformation, dwbuffersize).ok() } } #[inline] pub unsafe fn SetFileIoOverlappedRange(filehandle: super::super::Foundation::HANDLE, overlappedrangestart: *const u8, length: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetFileIoOverlappedRange(filehandle : super::super::Foundation:: HANDLE, overlappedrangestart : *const u8, length : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetFileIoOverlappedRange(filehandle : super::super::Foundation:: HANDLE, overlappedrangestart : *const u8, length : u32) -> windows_core::BOOL); unsafe { SetFileIoOverlappedRange(filehandle, overlappedrangestart, length).ok() } } #[inline] @@ -2461,7 +2461,7 @@ pub unsafe fn SetFilePointer(hfile: super::super::Foundation::HANDLE, ldistancet } #[inline] pub unsafe fn SetFilePointerEx(hfile: super::super::Foundation::HANDLE, lidistancetomove: i64, lpnewfilepointer: Option<*mut i64>, dwmovemethod: SET_FILE_POINTER_MOVE_METHOD) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetFilePointerEx(hfile : super::super::Foundation:: HANDLE, lidistancetomove : i64, lpnewfilepointer : *mut i64, dwmovemethod : SET_FILE_POINTER_MOVE_METHOD) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetFilePointerEx(hfile : super::super::Foundation:: HANDLE, lidistancetomove : i64, lpnewfilepointer : *mut i64, dwmovemethod : SET_FILE_POINTER_MOVE_METHOD) -> windows_core::BOOL); unsafe { SetFilePointerEx(hfile, lidistancetomove, lpnewfilepointer.unwrap_or(core::mem::zeroed()) as _, dwmovemethod).ok() } } #[inline] @@ -2469,7 +2469,7 @@ pub unsafe fn SetFileShortNameA(hfile: super::super::Foundation::HANDLE, lps where P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetFileShortNameA(hfile : super::super::Foundation:: HANDLE, lpshortname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetFileShortNameA(hfile : super::super::Foundation:: HANDLE, lpshortname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetFileShortNameA(hfile, lpshortname.param().abi()).ok() } } #[inline] @@ -2477,17 +2477,17 @@ pub unsafe fn SetFileShortNameW(hfile: super::super::Foundation::HANDLE, lps where P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetFileShortNameW(hfile : super::super::Foundation:: HANDLE, lpshortname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetFileShortNameW(hfile : super::super::Foundation:: HANDLE, lpshortname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetFileShortNameW(hfile, lpshortname.param().abi()).ok() } } #[inline] pub unsafe fn SetFileTime(hfile: super::super::Foundation::HANDLE, lpcreationtime: Option<*const super::super::Foundation::FILETIME>, lplastaccesstime: Option<*const super::super::Foundation::FILETIME>, lplastwritetime: Option<*const super::super::Foundation::FILETIME>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetFileTime(hfile : super::super::Foundation:: HANDLE, lpcreationtime : *const super::super::Foundation:: FILETIME, lplastaccesstime : *const super::super::Foundation:: FILETIME, lplastwritetime : *const super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetFileTime(hfile : super::super::Foundation:: HANDLE, lpcreationtime : *const super::super::Foundation:: FILETIME, lplastaccesstime : *const super::super::Foundation:: FILETIME, lplastwritetime : *const super::super::Foundation:: FILETIME) -> windows_core::BOOL); unsafe { SetFileTime(hfile, lpcreationtime.unwrap_or(core::mem::zeroed()) as _, lplastaccesstime.unwrap_or(core::mem::zeroed()) as _, lplastwritetime.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetFileValidData(hfile: super::super::Foundation::HANDLE, validdatalength: i64) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetFileValidData(hfile : super::super::Foundation:: HANDLE, validdatalength : i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetFileValidData(hfile : super::super::Foundation:: HANDLE, validdatalength : i64) -> windows_core::BOOL); unsafe { SetFileValidData(hfile, validdatalength).ok() } } #[inline] @@ -2497,27 +2497,27 @@ pub unsafe fn SetIoRingCompletionEvent(ioring: HIORING, hevent: super::super::Fo } #[inline] pub unsafe fn SetLogArchiveMode(hlog: super::super::Foundation::HANDLE, emode: CLFS_LOG_ARCHIVE_MODE) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn SetLogArchiveMode(hlog : super::super::Foundation:: HANDLE, emode : CLFS_LOG_ARCHIVE_MODE) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn SetLogArchiveMode(hlog : super::super::Foundation:: HANDLE, emode : CLFS_LOG_ARCHIVE_MODE) -> windows_core::BOOL); unsafe { SetLogArchiveMode(hlog, emode).ok() } } #[inline] pub unsafe fn SetLogArchiveTail(hlog: super::super::Foundation::HANDLE, plsnarchivetail: *mut CLS_LSN, preserved: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn SetLogArchiveTail(hlog : super::super::Foundation:: HANDLE, plsnarchivetail : *mut CLS_LSN, preserved : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn SetLogArchiveTail(hlog : super::super::Foundation:: HANDLE, plsnarchivetail : *mut CLS_LSN, preserved : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { SetLogArchiveTail(hlog, plsnarchivetail as _, preserved as _).ok() } } #[inline] pub unsafe fn SetLogFileSizeWithPolicy(hlog: super::super::Foundation::HANDLE, pdesiredsize: *const u64, presultingsize: *mut u64) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn SetLogFileSizeWithPolicy(hlog : super::super::Foundation:: HANDLE, pdesiredsize : *const u64, presultingsize : *mut u64) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn SetLogFileSizeWithPolicy(hlog : super::super::Foundation:: HANDLE, pdesiredsize : *const u64, presultingsize : *mut u64) -> windows_core::BOOL); unsafe { SetLogFileSizeWithPolicy(hlog, pdesiredsize, presultingsize as _).ok() } } #[inline] pub unsafe fn SetResourceManagerCompletionPort(resourcemanagerhandle: super::super::Foundation::HANDLE, iocompletionporthandle: super::super::Foundation::HANDLE, completionkey: usize) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn SetResourceManagerCompletionPort(resourcemanagerhandle : super::super::Foundation:: HANDLE, iocompletionporthandle : super::super::Foundation:: HANDLE, completionkey : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn SetResourceManagerCompletionPort(resourcemanagerhandle : super::super::Foundation:: HANDLE, iocompletionporthandle : super::super::Foundation:: HANDLE, completionkey : usize) -> windows_core::BOOL); unsafe { SetResourceManagerCompletionPort(resourcemanagerhandle, iocompletionporthandle, completionkey).ok() } } #[inline] pub unsafe fn SetSearchPathMode(flags: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetSearchPathMode(flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetSearchPathMode(flags : u32) -> windows_core::BOOL); unsafe { SetSearchPathMode(flags).ok() } } #[inline] @@ -2527,7 +2527,7 @@ pub unsafe fn SetTapeParameters(hdevice: super::super::Foundation::HANDLE, dwope } #[inline] pub unsafe fn SetTapePosition(hdevice: super::super::Foundation::HANDLE, dwpositionmethod: TAPE_POSITION_METHOD, dwpartition: u32, dwoffsetlow: u32, dwoffsethigh: u32, bimmediate: bool) -> u32 { - windows_targets::link!("kernel32.dll" "system" fn SetTapePosition(hdevice : super::super::Foundation:: HANDLE, dwpositionmethod : TAPE_POSITION_METHOD, dwpartition : u32, dwoffsetlow : u32, dwoffsethigh : u32, bimmediate : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("kernel32.dll" "system" fn SetTapePosition(hdevice : super::super::Foundation:: HANDLE, dwpositionmethod : TAPE_POSITION_METHOD, dwpartition : u32, dwoffsetlow : u32, dwoffsethigh : u32, bimmediate : windows_core::BOOL) -> u32); unsafe { SetTapePosition(hdevice, dwpositionmethod, dwpartition, dwoffsetlow, dwoffsethigh, bimmediate.into()) } } #[inline] @@ -2535,7 +2535,7 @@ pub unsafe fn SetTransactionInformation(transactionhandle: super::super::Fou where P4: windows_core::Param, { - windows_targets::link!("ktmw32.dll" "system" fn SetTransactionInformation(transactionhandle : super::super::Foundation:: HANDLE, isolationlevel : u32, isolationflags : u32, timeout : u32, description : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn SetTransactionInformation(transactionhandle : super::super::Foundation:: HANDLE, isolationlevel : u32, isolationflags : u32, timeout : u32, description : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetTransactionInformation(transactionhandle, isolationlevel, isolationflags, timeout, description.param().abi()).ok() } } #[cfg(feature = "Win32_Security")] @@ -2556,7 +2556,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetVolumeLabelA(lprootpathname : windows_core::PCSTR, lpvolumename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetVolumeLabelA(lprootpathname : windows_core::PCSTR, lpvolumename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetVolumeLabelA(lprootpathname.param().abi(), lpvolumename.param().abi()).ok() } } #[inline] @@ -2565,7 +2565,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetVolumeLabelW(lprootpathname : windows_core::PCWSTR, lpvolumename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetVolumeLabelW(lprootpathname : windows_core::PCWSTR, lpvolumename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetVolumeLabelW(lprootpathname.param().abi(), lpvolumename.param().abi()).ok() } } #[inline] @@ -2574,7 +2574,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetVolumeMountPointA(lpszvolumemountpoint : windows_core::PCSTR, lpszvolumename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetVolumeMountPointA(lpszvolumemountpoint : windows_core::PCSTR, lpszvolumename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetVolumeMountPointA(lpszvolumemountpoint.param().abi(), lpszvolumename.param().abi()).ok() } } #[inline] @@ -2583,12 +2583,12 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetVolumeMountPointW(lpszvolumemountpoint : windows_core::PCWSTR, lpszvolumename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetVolumeMountPointW(lpszvolumemountpoint : windows_core::PCWSTR, lpszvolumename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetVolumeMountPointW(lpszvolumemountpoint.param().abi(), lpszvolumename.param().abi()).ok() } } #[inline] pub unsafe fn SinglePhaseReject(enlistmenthandle: super::super::Foundation::HANDLE, tmvirtualclock: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("ktmw32.dll" "system" fn SinglePhaseReject(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("ktmw32.dll" "system" fn SinglePhaseReject(enlistmenthandle : super::super::Foundation:: HANDLE, tmvirtualclock : *mut i64) -> windows_core::BOOL); unsafe { SinglePhaseReject(enlistmenthandle, tmvirtualclock as _).ok() } } #[inline] @@ -2598,18 +2598,18 @@ pub unsafe fn SubmitIoRing(ioring: HIORING, waitoperations: u32, milliseconds: u } #[inline] pub unsafe fn TerminateLogArchive(pvarchivecontext: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn TerminateLogArchive(pvarchivecontext : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn TerminateLogArchive(pvarchivecontext : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { TerminateLogArchive(pvarchivecontext as _).ok() } } #[inline] pub unsafe fn TerminateReadLog(pvcursorcontext: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn TerminateReadLog(pvcursorcontext : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn TerminateReadLog(pvcursorcontext : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { TerminateReadLog(pvcursorcontext as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn TruncateLog(pvmarshal: *const core::ffi::c_void, plsnend: *const CLS_LSN, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn TruncateLog(pvmarshal : *const core::ffi::c_void, plsnend : *const CLS_LSN, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn TruncateLog(pvmarshal : *const core::ffi::c_void, plsnend : *const CLS_LSN, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { TruncateLog(pvmarshal, plsnend, lpoverlapped.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2626,40 +2626,40 @@ pub unsafe fn TxfLogCreateFileReadContext(logpath: P0, beginninglsn: CLS_LSN where P0: windows_core::Param, { - windows_targets::link!("txfw32.dll" "system" fn TxfLogCreateFileReadContext(logpath : windows_core::PCWSTR, beginninglsn : CLS_LSN, endinglsn : CLS_LSN, txffileid : *const TXF_ID, txflogcontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("txfw32.dll" "system" fn TxfLogCreateFileReadContext(logpath : windows_core::PCWSTR, beginninglsn : CLS_LSN, endinglsn : CLS_LSN, txffileid : *const TXF_ID, txflogcontext : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { TxfLogCreateFileReadContext(logpath.param().abi(), core::mem::transmute(beginninglsn), core::mem::transmute(endinglsn), txffileid, txflogcontext as _).ok() } } #[inline] -pub unsafe fn TxfLogCreateRangeReadContext(logpath: P0, beginninglsn: CLS_LSN, endinglsn: CLS_LSN, beginningvirtualclock: *const i64, endingvirtualclock: *const i64, recordtypemask: u32, txflogcontext: *mut *mut core::ffi::c_void) -> super::super::Foundation::BOOL +pub unsafe fn TxfLogCreateRangeReadContext(logpath: P0, beginninglsn: CLS_LSN, endinglsn: CLS_LSN, beginningvirtualclock: *const i64, endingvirtualclock: *const i64, recordtypemask: u32, txflogcontext: *mut *mut core::ffi::c_void) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("txfw32.dll" "system" fn TxfLogCreateRangeReadContext(logpath : windows_core::PCWSTR, beginninglsn : CLS_LSN, endinglsn : CLS_LSN, beginningvirtualclock : *const i64, endingvirtualclock : *const i64, recordtypemask : u32, txflogcontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("txfw32.dll" "system" fn TxfLogCreateRangeReadContext(logpath : windows_core::PCWSTR, beginninglsn : CLS_LSN, endinglsn : CLS_LSN, beginningvirtualclock : *const i64, endingvirtualclock : *const i64, recordtypemask : u32, txflogcontext : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { TxfLogCreateRangeReadContext(logpath.param().abi(), core::mem::transmute(beginninglsn), core::mem::transmute(endinglsn), beginningvirtualclock, endingvirtualclock, recordtypemask, txflogcontext as _) } } #[inline] pub unsafe fn TxfLogDestroyReadContext(txflogcontext: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("txfw32.dll" "system" fn TxfLogDestroyReadContext(txflogcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("txfw32.dll" "system" fn TxfLogDestroyReadContext(txflogcontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { TxfLogDestroyReadContext(txflogcontext).ok() } } #[inline] pub unsafe fn TxfLogReadRecords(txflogcontext: *const core::ffi::c_void, bufferlength: u32, buffer: *mut core::ffi::c_void, bytesused: *mut u32, recordcount: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("txfw32.dll" "system" fn TxfLogReadRecords(txflogcontext : *const core::ffi::c_void, bufferlength : u32, buffer : *mut core::ffi::c_void, bytesused : *mut u32, recordcount : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("txfw32.dll" "system" fn TxfLogReadRecords(txflogcontext : *const core::ffi::c_void, bufferlength : u32, buffer : *mut core::ffi::c_void, bytesused : *mut u32, recordcount : *mut u32) -> windows_core::BOOL); unsafe { TxfLogReadRecords(txflogcontext, bufferlength, buffer as _, bytesused as _, recordcount as _).ok() } } #[inline] -pub unsafe fn TxfLogRecordGetFileName(recordbuffer: *const core::ffi::c_void, recordbufferlengthinbytes: u32, namebuffer: windows_core::PWSTR, namebufferlengthinbytes: *mut u32, txfid: Option<*mut TXF_ID>) -> super::super::Foundation::BOOL { - windows_targets::link!("txfw32.dll" "system" fn TxfLogRecordGetFileName(recordbuffer : *const core::ffi::c_void, recordbufferlengthinbytes : u32, namebuffer : windows_core::PWSTR, namebufferlengthinbytes : *mut u32, txfid : *mut TXF_ID) -> super::super::Foundation:: BOOL); +pub unsafe fn TxfLogRecordGetFileName(recordbuffer: *const core::ffi::c_void, recordbufferlengthinbytes: u32, namebuffer: windows_core::PWSTR, namebufferlengthinbytes: *mut u32, txfid: Option<*mut TXF_ID>) -> windows_core::BOOL { + windows_targets::link!("txfw32.dll" "system" fn TxfLogRecordGetFileName(recordbuffer : *const core::ffi::c_void, recordbufferlengthinbytes : u32, namebuffer : windows_core::PWSTR, namebufferlengthinbytes : *mut u32, txfid : *mut TXF_ID) -> windows_core::BOOL); unsafe { TxfLogRecordGetFileName(recordbuffer, recordbufferlengthinbytes, core::mem::transmute(namebuffer), namebufferlengthinbytes as _, txfid.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn TxfLogRecordGetGenericType(recordbuffer: *const core::ffi::c_void, recordbufferlengthinbytes: u32, generictype: *mut u32, virtualclock: Option<*mut i64>) -> super::super::Foundation::BOOL { - windows_targets::link!("txfw32.dll" "system" fn TxfLogRecordGetGenericType(recordbuffer : *const core::ffi::c_void, recordbufferlengthinbytes : u32, generictype : *mut u32, virtualclock : *mut i64) -> super::super::Foundation:: BOOL); +pub unsafe fn TxfLogRecordGetGenericType(recordbuffer: *const core::ffi::c_void, recordbufferlengthinbytes: u32, generictype: *mut u32, virtualclock: Option<*mut i64>) -> windows_core::BOOL { + windows_targets::link!("txfw32.dll" "system" fn TxfLogRecordGetGenericType(recordbuffer : *const core::ffi::c_void, recordbufferlengthinbytes : u32, generictype : *mut u32, virtualclock : *mut i64) -> windows_core::BOOL); unsafe { TxfLogRecordGetGenericType(recordbuffer, recordbufferlengthinbytes, generictype as _, virtualclock.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn TxfReadMetadataInfo(filehandle: super::super::Foundation::HANDLE, txffileid: *mut TXF_ID, lastlsn: *mut CLS_LSN, transactionstate: *mut u32, lockingtransaction: *mut windows_core::GUID) -> super::super::Foundation::BOOL { - windows_targets::link!("txfw32.dll" "system" fn TxfReadMetadataInfo(filehandle : super::super::Foundation:: HANDLE, txffileid : *mut TXF_ID, lastlsn : *mut CLS_LSN, transactionstate : *mut u32, lockingtransaction : *mut windows_core::GUID) -> super::super::Foundation:: BOOL); +pub unsafe fn TxfReadMetadataInfo(filehandle: super::super::Foundation::HANDLE, txffileid: *mut TXF_ID, lastlsn: *mut CLS_LSN, transactionstate: *mut u32, lockingtransaction: *mut windows_core::GUID) -> windows_core::BOOL { + windows_targets::link!("txfw32.dll" "system" fn TxfReadMetadataInfo(filehandle : super::super::Foundation:: HANDLE, txffileid : *mut TXF_ID, lastlsn : *mut CLS_LSN, transactionstate : *mut u32, lockingtransaction : *mut windows_core::GUID) -> windows_core::BOOL); unsafe { TxfReadMetadataInfo(filehandle, txffileid as _, lastlsn as _, transactionstate as _, lockingtransaction as _) } } #[inline] @@ -2669,13 +2669,13 @@ pub unsafe fn TxfSetThreadMiniVersionForCreate(miniversion: u16) { } #[inline] pub unsafe fn UnlockFile(hfile: super::super::Foundation::HANDLE, dwfileoffsetlow: u32, dwfileoffsethigh: u32, nnumberofbytestounlocklow: u32, nnumberofbytestounlockhigh: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn UnlockFile(hfile : super::super::Foundation:: HANDLE, dwfileoffsetlow : u32, dwfileoffsethigh : u32, nnumberofbytestounlocklow : u32, nnumberofbytestounlockhigh : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn UnlockFile(hfile : super::super::Foundation:: HANDLE, dwfileoffsetlow : u32, dwfileoffsethigh : u32, nnumberofbytestounlocklow : u32, nnumberofbytestounlockhigh : u32) -> windows_core::BOOL); unsafe { UnlockFile(hfile, dwfileoffsetlow, dwfileoffsethigh, nnumberofbytestounlocklow, nnumberofbytestounlockhigh).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn UnlockFileEx(hfile: super::super::Foundation::HANDLE, dwreserved: Option, nnumberofbytestounlocklow: u32, nnumberofbytestounlockhigh: u32, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn UnlockFileEx(hfile : super::super::Foundation:: HANDLE, dwreserved : u32, nnumberofbytestounlocklow : u32, nnumberofbytestounlockhigh : u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn UnlockFileEx(hfile : super::super::Foundation:: HANDLE, dwreserved : u32, nnumberofbytestounlocklow : u32, nnumberofbytestounlockhigh : u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { UnlockFileEx(hfile, dwreserved.unwrap_or(core::mem::zeroed()) as _, nnumberofbytestounlocklow, nnumberofbytestounlockhigh, lpoverlapped as _).ok() } } #[cfg(feature = "Win32_Security")] @@ -2684,7 +2684,7 @@ pub unsafe fn ValidateLog(pszlogfilename: P0, psalogfile: *mut super::super: where P0: windows_core::Param, { - windows_targets::link!("clfsw32.dll" "system" fn ValidateLog(pszlogfilename : windows_core::PCWSTR, psalogfile : *mut super::super::Security:: SECURITY_ATTRIBUTES, pinfobuffer : *mut CLS_INFORMATION, pcbbuffer : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn ValidateLog(pszlogfilename : windows_core::PCWSTR, psalogfile : *mut super::super::Security:: SECURITY_ATTRIBUTES, pinfobuffer : *mut CLS_INFORMATION, pcbbuffer : *mut u32) -> windows_core::BOOL); unsafe { ValidateLog(pszlogfilename.param().abi(), psalogfile as _, pinfobuffer as _, pcbbuffer as _).ok() } } #[inline] @@ -2742,19 +2742,19 @@ pub unsafe fn VerLanguageNameW(wlang: u32, szlang: &mut [u16]) -> u32 { unsafe { VerLanguageNameW(wlang, core::mem::transmute(szlang.as_ptr()), szlang.len().try_into().unwrap()) } } #[inline] -pub unsafe fn VerQueryValueA(pblock: *const core::ffi::c_void, lpsubblock: P1, lplpbuffer: *mut *mut core::ffi::c_void, pulen: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn VerQueryValueA(pblock: *const core::ffi::c_void, lpsubblock: P1, lplpbuffer: *mut *mut core::ffi::c_void, pulen: *mut u32) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("version.dll" "system" fn VerQueryValueA(pblock : *const core::ffi::c_void, lpsubblock : windows_core::PCSTR, lplpbuffer : *mut *mut core::ffi::c_void, pulen : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("version.dll" "system" fn VerQueryValueA(pblock : *const core::ffi::c_void, lpsubblock : windows_core::PCSTR, lplpbuffer : *mut *mut core::ffi::c_void, pulen : *mut u32) -> windows_core::BOOL); unsafe { VerQueryValueA(pblock, lpsubblock.param().abi(), lplpbuffer as _, pulen as _) } } #[inline] -pub unsafe fn VerQueryValueW(pblock: *const core::ffi::c_void, lpsubblock: P1, lplpbuffer: *mut *mut core::ffi::c_void, pulen: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn VerQueryValueW(pblock: *const core::ffi::c_void, lpsubblock: P1, lplpbuffer: *mut *mut core::ffi::c_void, pulen: *mut u32) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("version.dll" "system" fn VerQueryValueW(pblock : *const core::ffi::c_void, lpsubblock : windows_core::PCWSTR, lplpbuffer : *mut *mut core::ffi::c_void, pulen : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("version.dll" "system" fn VerQueryValueW(pblock : *const core::ffi::c_void, lpsubblock : windows_core::PCWSTR, lplpbuffer : *mut *mut core::ffi::c_void, pulen : *mut u32) -> windows_core::BOOL); unsafe { VerQueryValueW(pblock, lpsubblock.param().abi(), lplpbuffer as _, pulen as _) } } #[inline] @@ -2782,11 +2782,11 @@ pub unsafe fn WofGetDriverVersion(fileorvolumehandle: super::super::Foundation:: } } #[inline] -pub unsafe fn WofIsExternalFile(filepath: P0, isexternalfile: Option<*mut super::super::Foundation::BOOL>, provider: Option<*mut u32>, externalfileinfo: Option<*mut core::ffi::c_void>, bufferlength: Option<*mut u32>) -> windows_core::Result<()> +pub unsafe fn WofIsExternalFile(filepath: P0, isexternalfile: Option<*mut windows_core::BOOL>, provider: Option<*mut u32>, externalfileinfo: Option<*mut core::ffi::c_void>, bufferlength: Option<*mut u32>) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("wofutil.dll" "system" fn WofIsExternalFile(filepath : windows_core::PCWSTR, isexternalfile : *mut super::super::Foundation:: BOOL, provider : *mut u32, externalfileinfo : *mut core::ffi::c_void, bufferlength : *mut u32) -> windows_core::HRESULT); + windows_targets::link!("wofutil.dll" "system" fn WofIsExternalFile(filepath : windows_core::PCWSTR, isexternalfile : *mut windows_core::BOOL, provider : *mut u32, externalfileinfo : *mut core::ffi::c_void, bufferlength : *mut u32) -> windows_core::HRESULT); unsafe { WofIsExternalFile(filepath.param().abi(), isexternalfile.unwrap_or(core::mem::zeroed()) as _, provider.unwrap_or(core::mem::zeroed()) as _, externalfileinfo.unwrap_or(core::mem::zeroed()) as _, bufferlength.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2795,11 +2795,11 @@ pub unsafe fn WofSetFileDataLocation(filehandle: super::super::Foundation::HANDL unsafe { WofSetFileDataLocation(filehandle, provider, externalfileinfo, length).ok() } } #[inline] -pub unsafe fn WofShouldCompressBinaries(volume: P0, algorithm: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn WofShouldCompressBinaries(volume: P0, algorithm: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wofutil.dll" "system" fn WofShouldCompressBinaries(volume : windows_core::PCWSTR, algorithm : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wofutil.dll" "system" fn WofShouldCompressBinaries(volume : windows_core::PCWSTR, algorithm : *mut u32) -> windows_core::BOOL); unsafe { WofShouldCompressBinaries(volume.param().abi(), algorithm as _) } } #[inline] @@ -2849,7 +2849,7 @@ where } #[inline] pub unsafe fn Wow64DisableWow64FsRedirection(oldvalue: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Wow64DisableWow64FsRedirection(oldvalue : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Wow64DisableWow64FsRedirection(oldvalue : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { Wow64DisableWow64FsRedirection(oldvalue as _).ok() } } #[inline] @@ -2859,7 +2859,7 @@ pub unsafe fn Wow64EnableWow64FsRedirection(wow64fsenableredirection: bool) -> b } #[inline] pub unsafe fn Wow64RevertWow64FsRedirection(olvalue: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Wow64RevertWow64FsRedirection(olvalue : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Wow64RevertWow64FsRedirection(olvalue : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { Wow64RevertWow64FsRedirection(olvalue).ok() } } #[inline] @@ -2870,30 +2870,30 @@ pub unsafe fn WriteEncryptedFileRaw(pfimportcallback: PFE_IMPORT_FUNC, pvcallbac #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WriteFile(hfile: super::super::Foundation::HANDLE, lpbuffer: Option<&[u8]>, lpnumberofbyteswritten: Option<*mut u32>, lpoverlapped: Option<*mut super::super::System::IO::OVERLAPPED>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn WriteFile(hfile : super::super::Foundation:: HANDLE, lpbuffer : *const u8, nnumberofbytestowrite : u32, lpnumberofbyteswritten : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WriteFile(hfile : super::super::Foundation:: HANDLE, lpbuffer : *const u8, nnumberofbytestowrite : u32, lpnumberofbyteswritten : *mut u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { WriteFile(hfile, core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpnumberofbyteswritten.unwrap_or(core::mem::zeroed()) as _, lpoverlapped.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WriteFileEx(hfile: super::super::Foundation::HANDLE, lpbuffer: Option<&[u8]>, lpoverlapped: *mut super::super::System::IO::OVERLAPPED, lpcompletionroutine: super::super::System::IO::LPOVERLAPPED_COMPLETION_ROUTINE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn WriteFileEx(hfile : super::super::Foundation:: HANDLE, lpbuffer : *const u8, nnumberofbytestowrite : u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lpcompletionroutine : super::super::System::IO:: LPOVERLAPPED_COMPLETION_ROUTINE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WriteFileEx(hfile : super::super::Foundation:: HANDLE, lpbuffer : *const u8, nnumberofbytestowrite : u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED, lpcompletionroutine : super::super::System::IO:: LPOVERLAPPED_COMPLETION_ROUTINE) -> windows_core::BOOL); unsafe { WriteFileEx(hfile, core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpoverlapped as _, lpcompletionroutine).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WriteFileGather(hfile: super::super::Foundation::HANDLE, asegmentarray: *const FILE_SEGMENT_ELEMENT, nnumberofbytestowrite: u32, lpreserved: Option<*const u32>, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn WriteFileGather(hfile : super::super::Foundation:: HANDLE, asegmentarray : *const FILE_SEGMENT_ELEMENT, nnumberofbytestowrite : u32, lpreserved : *const u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WriteFileGather(hfile : super::super::Foundation:: HANDLE, asegmentarray : *const FILE_SEGMENT_ELEMENT, nnumberofbytestowrite : u32, lpreserved : *const u32, lpoverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { WriteFileGather(hfile, asegmentarray, nnumberofbytestowrite, lpreserved.unwrap_or(core::mem::zeroed()) as _, lpoverlapped as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn WriteLogRestartArea(pvmarshal: *mut core::ffi::c_void, pvrestartbuffer: *mut core::ffi::c_void, cbrestartbuffer: u32, plsnbase: *mut CLS_LSN, fflags: CLFS_FLAG, pcbwritten: *mut u32, plsnnext: *mut CLS_LSN, poverlapped: *mut super::super::System::IO::OVERLAPPED) -> windows_core::Result<()> { - windows_targets::link!("clfsw32.dll" "system" fn WriteLogRestartArea(pvmarshal : *mut core::ffi::c_void, pvrestartbuffer : *mut core::ffi::c_void, cbrestartbuffer : u32, plsnbase : *mut CLS_LSN, fflags : CLFS_FLAG, pcbwritten : *mut u32, plsnnext : *mut CLS_LSN, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("clfsw32.dll" "system" fn WriteLogRestartArea(pvmarshal : *mut core::ffi::c_void, pvrestartbuffer : *mut core::ffi::c_void, cbrestartbuffer : u32, plsnbase : *mut CLS_LSN, fflags : CLFS_FLAG, pcbwritten : *mut u32, plsnnext : *mut CLS_LSN, poverlapped : *mut super::super::System::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { WriteLogRestartArea(pvmarshal as _, pvrestartbuffer as _, cbrestartbuffer, plsnbase as _, fflags, pcbwritten as _, plsnnext as _, poverlapped as _).ok() } } #[inline] pub unsafe fn WriteTapemark(hdevice: super::super::Foundation::HANDLE, dwtapemarktype: TAPEMARK_TYPE, dwtapemarkcount: u32, bimmediate: bool) -> u32 { - windows_targets::link!("kernel32.dll" "system" fn WriteTapemark(hdevice : super::super::Foundation:: HANDLE, dwtapemarktype : TAPEMARK_TYPE, dwtapemarkcount : u32, bimmediate : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("kernel32.dll" "system" fn WriteTapemark(hdevice : super::super::Foundation:: HANDLE, dwtapemarktype : TAPEMARK_TYPE, dwtapemarkcount : u32, bimmediate : windows_core::BOOL) -> u32); unsafe { WriteTapemark(hdevice, dwtapemarktype, dwtapemarkcount, bimmediate.into()) } } pub const ACCESS_ALL: SHARE_INFO_PERMISSIONS = SHARE_INFO_PERMISSIONS(32768u32); @@ -2956,11 +2956,11 @@ pub const BusTypeUsb: STORAGE_BUS_TYPE = STORAGE_BUS_TYPE(7i32); pub const BusTypeVirtual: STORAGE_BUS_TYPE = STORAGE_BUS_TYPE(14i32); pub const BusTypeiScsi: STORAGE_BUS_TYPE = STORAGE_BUS_TYPE(9i32); #[cfg(feature = "Win32_Security")] -pub type CACHE_ACCESS_CHECK = Option super::super::Foundation::BOOL>; +pub type CACHE_ACCESS_CHECK = Option windows_core::BOOL>; pub type CACHE_DESTROY_CALLBACK = Option; pub type CACHE_KEY_COMPARE = Option i32>; pub type CACHE_KEY_HASH = Option u32>; -pub type CACHE_READ_CALLBACK = Option super::super::Foundation::BOOL>; +pub type CACHE_READ_CALLBACK = Option windows_core::BOOL>; pub const CALLBACK_CHUNK_FINISHED: LPPROGRESS_ROUTINE_CALLBACK_REASON = LPPROGRESS_ROUTINE_CALLBACK_REASON(0u32); pub const CALLBACK_STREAM_SWITCH: LPPROGRESS_ROUTINE_CALLBACK_REASON = LPPROGRESS_ROUTINE_CALLBACK_REASON(1u32); pub type CLAIMMEDIALABEL = Option u32>; @@ -3422,7 +3422,7 @@ pub struct COPYFILE2_COPY_PHASE(pub i32); pub struct COPYFILE2_EXTENDED_PARAMETERS { pub dwSize: u32, pub dwCopyFlags: COPYFILE_FLAGS, - pub pfCancel: *mut super::super::Foundation::BOOL, + pub pfCancel: *mut windows_core::BOOL, pub pProgressRoutine: PCOPYFILE2_PROGRESS_ROUTINE, pub pvCallbackContext: *mut core::ffi::c_void, } @@ -3436,7 +3436,7 @@ impl Default for COPYFILE2_EXTENDED_PARAMETERS { pub struct COPYFILE2_EXTENDED_PARAMETERS_V2 { pub dwSize: u32, pub dwCopyFlags: COPYFILE_FLAGS, - pub pfCancel: *mut super::super::Foundation::BOOL, + pub pfCancel: *mut windows_core::BOOL, pub pProgressRoutine: PCOPYFILE2_PROGRESS_ROUTINE, pub pvCallbackContext: *mut core::ffi::c_void, pub dwCopyFlagsV2: COPYFILE2_V2_FLAGS, @@ -3947,7 +3947,7 @@ pub const EFS_EFS_SUBVER_EFS_CERT: u32 = 1u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct EFS_ENCRYPTION_STATUS_INFO { - pub bHasCurrentKey: super::super::Foundation::BOOL, + pub bHasCurrentKey: windows_core::BOOL, pub dwEncryptionError: u32, } impl Default for EFS_ENCRYPTION_STATUS_INFO { @@ -4127,7 +4127,7 @@ pub const ENLISTMENT_SUPERIOR: u32 = 1u32; pub struct ERASE_TAPE_TYPE(pub u32); pub const ExtendedFileIdType: FILE_ID_TYPE = FILE_ID_TYPE(2i32); pub type FCACHE_CREATE_CALLBACK = Option super::super::Foundation::HANDLE>; -pub type FCACHE_RICHCREATE_CALLBACK = Option super::super::Foundation::HANDLE>; +pub type FCACHE_RICHCREATE_CALLBACK = Option super::super::Foundation::HANDLE>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct FH_OVERLAPPED { @@ -5243,7 +5243,7 @@ impl IDiskQuotaControl { #[repr(C)] pub struct IDiskQuotaControl_Vtbl { pub base__: super::super::System::Com::IConnectionPointContainer_Vtbl, - pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, pub SetQuotaState: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetQuotaState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetQuotaLogFlags: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -5276,7 +5276,7 @@ pub struct IDiskQuotaControl_Vtbl { } #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Com"))] pub trait IDiskQuotaControl_Impl: super::super::System::Com::IConnectionPointContainer_Impl { - fn Initialize(&self, pszpath: &windows_core::PCWSTR, breadwrite: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Initialize(&self, pszpath: &windows_core::PCWSTR, breadwrite: windows_core::BOOL) -> windows_core::Result<()>; fn SetQuotaState(&self, dwstate: u32) -> windows_core::Result<()>; fn GetQuotaState(&self, pdwstate: *mut u32) -> windows_core::Result<()>; fn SetQuotaLogFlags(&self, dwflags: u32) -> windows_core::Result<()>; @@ -5301,7 +5301,7 @@ pub trait IDiskQuotaControl_Impl: super::super::System::Com::IConnectionPointCon #[cfg(all(feature = "Win32_Security", feature = "Win32_System_Com"))] impl IDiskQuotaControl_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, breadwrite: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, breadwrite: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaControl_Impl::Initialize(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&breadwrite)).into() @@ -5598,8 +5598,8 @@ pub struct IDiskQuotaUser_Vtbl { pub GetQuotaUsed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub GetQuotaUsedText: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32) -> windows_core::HRESULT, pub GetQuotaInformation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub SetQuotaThreshold: unsafe extern "system" fn(*mut core::ffi::c_void, i64, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetQuotaLimit: unsafe extern "system" fn(*mut core::ffi::c_void, i64, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetQuotaThreshold: unsafe extern "system" fn(*mut core::ffi::c_void, i64, windows_core::BOOL) -> windows_core::HRESULT, + pub SetQuotaLimit: unsafe extern "system" fn(*mut core::ffi::c_void, i64, windows_core::BOOL) -> windows_core::HRESULT, pub Invalidate: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetAccountStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } @@ -5615,8 +5615,8 @@ pub trait IDiskQuotaUser_Impl: windows_core::IUnknownImpl { fn GetQuotaUsed(&self, pllused: *mut i64) -> windows_core::Result<()>; fn GetQuotaUsedText(&self, psztext: &windows_core::PCWSTR, cchtext: u32) -> windows_core::Result<()>; fn GetQuotaInformation(&self, pbquotainfo: *mut core::ffi::c_void, cbquotainfo: u32) -> windows_core::Result<()>; - fn SetQuotaThreshold(&self, llthreshold: i64, fwritethrough: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetQuotaLimit(&self, lllimit: i64, fwritethrough: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetQuotaThreshold(&self, llthreshold: i64, fwritethrough: windows_core::BOOL) -> windows_core::Result<()>; + fn SetQuotaLimit(&self, lllimit: i64, fwritethrough: windows_core::BOOL) -> windows_core::Result<()>; fn Invalidate(&self) -> windows_core::Result<()>; fn GetAccountStatus(&self, pdwstatus: *mut u32) -> windows_core::Result<()>; } @@ -5688,13 +5688,13 @@ impl IDiskQuotaUser_Vtbl { IDiskQuotaUser_Impl::GetQuotaInformation(this, core::mem::transmute_copy(&pbquotainfo), core::mem::transmute_copy(&cbquotainfo)).into() } } - unsafe extern "system" fn SetQuotaThreshold(this: *mut core::ffi::c_void, llthreshold: i64, fwritethrough: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetQuotaThreshold(this: *mut core::ffi::c_void, llthreshold: i64, fwritethrough: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUser_Impl::SetQuotaThreshold(this, core::mem::transmute_copy(&llthreshold), core::mem::transmute_copy(&fwritethrough)).into() } } - unsafe extern "system" fn SetQuotaLimit(this: *mut core::ffi::c_void, lllimit: i64, fwritethrough: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetQuotaLimit(this: *mut core::ffi::c_void, lllimit: i64, fwritethrough: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDiskQuotaUser_Impl::SetQuotaLimit(this, core::mem::transmute_copy(&lllimit), core::mem::transmute_copy(&fwritethrough)).into() @@ -6465,7 +6465,7 @@ pub struct NTMS_ASYNC_IO { pub dwResult: u32, pub dwAsyncState: u32, pub hEvent: super::super::Foundation::HANDLE, - pub bOnStateChange: super::super::Foundation::BOOL, + pub bOnStateChange: windows_core::BOOL, } impl Default for NTMS_ASYNC_IO { fn default() -> Self { @@ -6678,8 +6678,8 @@ pub struct NTMS_I1_LIBRARYINFORMATION { pub LibraryType: u32, pub CleanerSlot: windows_core::GUID, pub CleanerSlotDefault: windows_core::GUID, - pub LibrarySupportsDriveCleaning: super::super::Foundation::BOOL, - pub BarCodeReaderInstalled: super::super::Foundation::BOOL, + pub LibrarySupportsDriveCleaning: windows_core::BOOL, + pub BarCodeReaderInstalled: windows_core::BOOL, pub InventoryMethod: u32, pub dwCleanerUsesRemaining: u32, pub FirstDriveNumber: u32, @@ -6755,7 +6755,7 @@ pub struct NTMS_I1_OBJECTINFORMATIONA { pub Created: super::super::Foundation::SYSTEMTIME, pub Modified: super::super::Foundation::SYSTEMTIME, pub ObjectGuid: windows_core::GUID, - pub Enabled: super::super::Foundation::BOOL, + pub Enabled: windows_core::BOOL, pub dwOperationalState: u32, pub szName: [i8; 64], pub szDescription: [i8; 127], @@ -6798,7 +6798,7 @@ pub struct NTMS_I1_OBJECTINFORMATIONW { pub Created: super::super::Foundation::SYSTEMTIME, pub Modified: super::super::Foundation::SYSTEMTIME, pub ObjectGuid: windows_core::GUID, - pub Enabled: super::super::Foundation::BOOL, + pub Enabled: windows_core::BOOL, pub dwOperationalState: u32, pub szName: [u16; 64], pub szDescription: [u16; 127], @@ -7004,8 +7004,8 @@ pub struct NTMS_LIBRARYINFORMATION { pub LibraryType: u32, pub CleanerSlot: windows_core::GUID, pub CleanerSlotDefault: windows_core::GUID, - pub LibrarySupportsDriveCleaning: super::super::Foundation::BOOL, - pub BarCodeReaderInstalled: super::super::Foundation::BOOL, + pub LibrarySupportsDriveCleaning: windows_core::BOOL, + pub BarCodeReaderInstalled: windows_core::BOOL, pub InventoryMethod: u32, pub dwCleanerUsesRemaining: u32, pub FirstDriveNumber: u32, @@ -7022,7 +7022,7 @@ pub struct NTMS_LIBRARYINFORMATION { pub dwNumberOfMediaTypes: u32, pub dwNumberOfLibRequests: u32, pub Reserved: windows_core::GUID, - pub AutoRecovery: super::super::Foundation::BOOL, + pub AutoRecovery: windows_core::BOOL, pub dwFlags: u32, } impl Default for NTMS_LIBRARYINFORMATION { @@ -7224,7 +7224,7 @@ pub struct NTMS_OBJECTINFORMATIONA { pub Created: super::super::Foundation::SYSTEMTIME, pub Modified: super::super::Foundation::SYSTEMTIME, pub ObjectGuid: windows_core::GUID, - pub Enabled: super::super::Foundation::BOOL, + pub Enabled: windows_core::BOOL, pub dwOperationalState: u32, pub szName: [i8; 64], pub szDescription: [i8; 127], @@ -7268,7 +7268,7 @@ pub struct NTMS_OBJECTINFORMATIONW { pub Created: super::super::Foundation::SYSTEMTIME, pub Modified: super::super::Foundation::SYSTEMTIME, pub ObjectGuid: windows_core::GUID, - pub Enabled: super::super::Foundation::BOOL, + pub Enabled: windows_core::BOOL, pub dwOperationalState: u32, pub szName: [u16; 64], pub szDescription: [u16; 127], @@ -7727,7 +7727,7 @@ pub type PFN_IO_COMPLETION = Option; +pub type PLOG_FULL_HANDLER_CALLBACK = Option; pub type PLOG_TAIL_ADVANCE_CALLBACK = Option; pub type PLOG_UNPINNED_CALLBACK = Option; #[repr(transparent)] @@ -9171,6 +9171,6 @@ pub const WOF_PROVIDER_FILE: u32 = 2u32; pub const WOF_PROVIDER_WIM: u32 = 1u32; pub const WRITE_DAC: FILE_ACCESS_RIGHTS = FILE_ACCESS_RIGHTS(262144u32); pub const WRITE_OWNER: FILE_ACCESS_RIGHTS = FILE_ACCESS_RIGHTS(524288u32); -pub type WofEnumEntryProc = Option super::super::Foundation::BOOL>; -pub type WofEnumFilesProc = Option super::super::Foundation::BOOL>; +pub type WofEnumEntryProc = Option windows_core::BOOL>; +pub type WofEnumFilesProc = Option windows_core::BOOL>; pub const _FT_TYPES_DEFINITION_: u32 = 1u32; 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 d89a2946b3..496a45e113 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/OfflineFiles/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/OfflineFiles/mod.rs @@ -1,16 +1,16 @@ #[inline] -pub unsafe fn OfflineFilesEnable(benable: bool, pbrebootrequired: *mut super::super::Foundation::BOOL) -> u32 { - windows_targets::link!("cscapi.dll" "system" fn OfflineFilesEnable(benable : super::super::Foundation:: BOOL, pbrebootrequired : *mut super::super::Foundation:: BOOL) -> u32); +pub unsafe fn OfflineFilesEnable(benable: bool, pbrebootrequired: *mut windows_core::BOOL) -> u32 { + windows_targets::link!("cscapi.dll" "system" fn OfflineFilesEnable(benable : windows_core::BOOL, pbrebootrequired : *mut windows_core::BOOL) -> u32); unsafe { OfflineFilesEnable(benable.into(), pbrebootrequired as _) } } #[inline] -pub unsafe fn OfflineFilesQueryStatus(pbactive: Option<*mut super::super::Foundation::BOOL>, pbenabled: Option<*mut super::super::Foundation::BOOL>) -> u32 { - windows_targets::link!("cscapi.dll" "system" fn OfflineFilesQueryStatus(pbactive : *mut super::super::Foundation:: BOOL, pbenabled : *mut super::super::Foundation:: BOOL) -> u32); +pub unsafe fn OfflineFilesQueryStatus(pbactive: Option<*mut windows_core::BOOL>, pbenabled: Option<*mut windows_core::BOOL>) -> u32 { + windows_targets::link!("cscapi.dll" "system" fn OfflineFilesQueryStatus(pbactive : *mut windows_core::BOOL, pbenabled : *mut windows_core::BOOL) -> u32); unsafe { OfflineFilesQueryStatus(pbactive.unwrap_or(core::mem::zeroed()) as _, pbenabled.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn OfflineFilesQueryStatusEx(pbactive: Option<*mut super::super::Foundation::BOOL>, pbenabled: Option<*mut super::super::Foundation::BOOL>, pbavailable: Option<*mut super::super::Foundation::BOOL>) -> u32 { - windows_targets::link!("cscapi.dll" "system" fn OfflineFilesQueryStatusEx(pbactive : *mut super::super::Foundation:: BOOL, pbenabled : *mut super::super::Foundation:: BOOL, pbavailable : *mut super::super::Foundation:: BOOL) -> u32); +pub unsafe fn OfflineFilesQueryStatusEx(pbactive: Option<*mut windows_core::BOOL>, pbenabled: Option<*mut windows_core::BOOL>, pbavailable: Option<*mut windows_core::BOOL>) -> u32 { + windows_targets::link!("cscapi.dll" "system" fn OfflineFilesQueryStatusEx(pbactive : *mut windows_core::BOOL, pbenabled : *mut windows_core::BOOL, pbavailable : *mut windows_core::BOOL) -> u32); unsafe { OfflineFilesQueryStatusEx(pbactive.unwrap_or(core::mem::zeroed()) as _, pbenabled.unwrap_or(core::mem::zeroed()) as _, pbavailable.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -209,7 +209,7 @@ impl IOfflineFilesCache { { unsafe { (windows_core::Interface::vtable(self).Unpin)(windows_core::Interface::as_raw(self), hwndparent.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(rgpszpaths.as_ptr()), rgpszpaths.len().try_into().unwrap(), bdeep.into(), basync.into(), dwpincontrolflags, piprogress.param().abi()).ok() } } - pub unsafe fn GetEncryptionStatus(&self, pbencrypted: *mut super::super::Foundation::BOOL, pbpartial: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetEncryptionStatus(&self, pbencrypted: *mut windows_core::BOOL, pbpartial: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetEncryptionStatus)(windows_core::Interface::as_raw(self), pbencrypted as _, pbpartial as _).ok() } } pub unsafe fn Encrypt(&self, hwndparent: Option, bencrypt: bool, dwencryptioncontrolflags: u32, basync: bool, piprogress: P4) -> windows_core::Result<()> @@ -281,7 +281,7 @@ impl IOfflineFilesCache { (windows_core::Interface::vtable(self).EnumSettingObjects)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn IsPathCacheable(&self, pszpath: P0, pbcacheable: *mut super::super::Foundation::BOOL, psharecachingmode: *mut OFFLINEFILES_CACHING_MODE) -> windows_core::Result<()> + pub unsafe fn IsPathCacheable(&self, pszpath: P0, pbcacheable: *mut windows_core::BOOL, psharecachingmode: *mut OFFLINEFILES_CACHING_MODE) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -291,82 +291,82 @@ impl IOfflineFilesCache { #[repr(C)] pub struct IOfflineFilesCache_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Synchronize: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *const windows_core::PCWSTR, u32, super::super::Foundation::BOOL, u32, *mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID) -> windows_core::HRESULT, - pub DeleteItems: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::PCWSTR, u32, u32, super::super::Foundation::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub DeleteItemsForUser: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const windows_core::PCWSTR, u32, u32, super::super::Foundation::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Pin: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *const windows_core::PCWSTR, u32, super::super::Foundation::BOOL, super::super::Foundation::BOOL, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Unpin: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *const windows_core::PCWSTR, u32, super::super::Foundation::BOOL, super::super::Foundation::BOOL, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetEncryptionStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub Encrypt: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, super::super::Foundation::BOOL, u32, super::super::Foundation::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub Synchronize: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *const windows_core::PCWSTR, u32, windows_core::BOOL, u32, *mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID) -> windows_core::HRESULT, + pub DeleteItems: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::PCWSTR, u32, u32, windows_core::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub DeleteItemsForUser: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const windows_core::PCWSTR, u32, u32, windows_core::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub Pin: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *const windows_core::PCWSTR, u32, windows_core::BOOL, windows_core::BOOL, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub Unpin: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *const windows_core::PCWSTR, u32, windows_core::BOOL, windows_core::BOOL, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetEncryptionStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub Encrypt: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, windows_core::BOOL, u32, windows_core::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, pub FindItem: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub FindItemEx: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub RenameItem: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub RenameItem: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, pub GetLocation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetDiskSpaceInformation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64, *mut u64, *mut u64, *mut u64, *mut u64) -> windows_core::HRESULT, pub SetDiskSpaceLimits: unsafe extern "system" fn(*mut core::ffi::c_void, u64, u64) -> windows_core::HRESULT, pub ProcessAdminPinPolicy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSettingObject: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub EnumSettingObjects: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsPathCacheable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL, *mut OFFLINEFILES_CACHING_MODE) -> windows_core::HRESULT, + pub IsPathCacheable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL, *mut OFFLINEFILES_CACHING_MODE) -> windows_core::HRESULT, } pub trait IOfflineFilesCache_Impl: windows_core::IUnknownImpl { - fn Synchronize(&self, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, basync: super::super::Foundation::BOOL, dwsynccontrol: u32, pisyncconflicthandler: windows_core::Ref, piprogress: windows_core::Ref, psyncid: *const windows_core::GUID) -> windows_core::Result<()>; - fn DeleteItems(&self, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, dwflags: u32, basync: super::super::Foundation::BOOL, piprogress: windows_core::Ref) -> windows_core::Result<()>; - fn DeleteItemsForUser(&self, pszuser: &windows_core::PCWSTR, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, dwflags: u32, basync: super::super::Foundation::BOOL, piprogress: windows_core::Ref) -> windows_core::Result<()>; - fn Pin(&self, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, bdeep: super::super::Foundation::BOOL, basync: super::super::Foundation::BOOL, dwpincontrolflags: u32, piprogress: windows_core::Ref) -> windows_core::Result<()>; - fn Unpin(&self, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, bdeep: super::super::Foundation::BOOL, basync: super::super::Foundation::BOOL, dwpincontrolflags: u32, piprogress: windows_core::Ref) -> windows_core::Result<()>; - fn GetEncryptionStatus(&self, pbencrypted: *mut super::super::Foundation::BOOL, pbpartial: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn Encrypt(&self, hwndparent: super::super::Foundation::HWND, bencrypt: super::super::Foundation::BOOL, dwencryptioncontrolflags: u32, basync: super::super::Foundation::BOOL, piprogress: windows_core::Ref) -> windows_core::Result<()>; + fn Synchronize(&self, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, basync: windows_core::BOOL, dwsynccontrol: u32, pisyncconflicthandler: windows_core::Ref, piprogress: windows_core::Ref, psyncid: *const windows_core::GUID) -> windows_core::Result<()>; + fn DeleteItems(&self, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, dwflags: u32, basync: windows_core::BOOL, piprogress: windows_core::Ref) -> windows_core::Result<()>; + fn DeleteItemsForUser(&self, pszuser: &windows_core::PCWSTR, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, dwflags: u32, basync: windows_core::BOOL, piprogress: windows_core::Ref) -> windows_core::Result<()>; + fn Pin(&self, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, bdeep: windows_core::BOOL, basync: windows_core::BOOL, dwpincontrolflags: u32, piprogress: windows_core::Ref) -> windows_core::Result<()>; + fn Unpin(&self, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, bdeep: windows_core::BOOL, basync: windows_core::BOOL, dwpincontrolflags: u32, piprogress: windows_core::Ref) -> windows_core::Result<()>; + fn GetEncryptionStatus(&self, pbencrypted: *mut windows_core::BOOL, pbpartial: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn Encrypt(&self, hwndparent: super::super::Foundation::HWND, bencrypt: windows_core::BOOL, dwencryptioncontrolflags: u32, basync: windows_core::BOOL, piprogress: windows_core::Ref) -> windows_core::Result<()>; fn FindItem(&self, pszpath: &windows_core::PCWSTR, dwqueryflags: u32) -> windows_core::Result; fn FindItemEx(&self, pszpath: &windows_core::PCWSTR, pincludefilefilter: windows_core::Ref, pincludedirfilter: windows_core::Ref, pexcludefilefilter: windows_core::Ref, pexcludedirfilter: windows_core::Ref, dwqueryflags: u32) -> windows_core::Result; - fn RenameItem(&self, pszpathoriginal: &windows_core::PCWSTR, pszpathnew: &windows_core::PCWSTR, breplaceifexists: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn RenameItem(&self, pszpathoriginal: &windows_core::PCWSTR, pszpathnew: &windows_core::PCWSTR, breplaceifexists: windows_core::BOOL) -> windows_core::Result<()>; fn GetLocation(&self) -> windows_core::Result; fn GetDiskSpaceInformation(&self, pcbvolumetotal: *mut u64, pcblimit: *mut u64, pcbused: *mut u64, pcbunpinnedlimit: *mut u64, pcbunpinnedused: *mut u64) -> windows_core::Result<()>; fn SetDiskSpaceLimits(&self, cblimit: u64, cbunpinnedlimit: u64) -> windows_core::Result<()>; fn ProcessAdminPinPolicy(&self, ppinprogress: windows_core::Ref, punpinprogress: windows_core::Ref) -> windows_core::Result<()>; fn GetSettingObject(&self, pszsettingname: &windows_core::PCWSTR) -> windows_core::Result; fn EnumSettingObjects(&self) -> windows_core::Result; - fn IsPathCacheable(&self, pszpath: &windows_core::PCWSTR, pbcacheable: *mut super::super::Foundation::BOOL, psharecachingmode: *mut OFFLINEFILES_CACHING_MODE) -> windows_core::Result<()>; + fn IsPathCacheable(&self, pszpath: &windows_core::PCWSTR, pbcacheable: *mut windows_core::BOOL, psharecachingmode: *mut OFFLINEFILES_CACHING_MODE) -> windows_core::Result<()>; } impl IOfflineFilesCache_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Synchronize(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, basync: super::super::Foundation::BOOL, dwsynccontrol: u32, pisyncconflicthandler: *mut core::ffi::c_void, piprogress: *mut core::ffi::c_void, psyncid: *const windows_core::GUID) -> windows_core::HRESULT { + unsafe extern "system" fn Synchronize(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, basync: windows_core::BOOL, dwsynccontrol: u32, pisyncconflicthandler: *mut core::ffi::c_void, piprogress: *mut core::ffi::c_void, psyncid: *const windows_core::GUID) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::Synchronize(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&rgpszpaths), core::mem::transmute_copy(&cpaths), core::mem::transmute_copy(&basync), core::mem::transmute_copy(&dwsynccontrol), core::mem::transmute_copy(&pisyncconflicthandler), core::mem::transmute_copy(&piprogress), core::mem::transmute_copy(&psyncid)).into() } } - unsafe extern "system" fn DeleteItems(this: *mut core::ffi::c_void, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, dwflags: u32, basync: super::super::Foundation::BOOL, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn DeleteItems(this: *mut core::ffi::c_void, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, dwflags: u32, basync: windows_core::BOOL, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::DeleteItems(this, core::mem::transmute_copy(&rgpszpaths), core::mem::transmute_copy(&cpaths), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&basync), core::mem::transmute_copy(&piprogress)).into() } } - unsafe extern "system" fn DeleteItemsForUser(this: *mut core::ffi::c_void, pszuser: windows_core::PCWSTR, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, dwflags: u32, basync: super::super::Foundation::BOOL, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn DeleteItemsForUser(this: *mut core::ffi::c_void, pszuser: windows_core::PCWSTR, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, dwflags: u32, basync: windows_core::BOOL, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::DeleteItemsForUser(this, core::mem::transmute(&pszuser), core::mem::transmute_copy(&rgpszpaths), core::mem::transmute_copy(&cpaths), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&basync), core::mem::transmute_copy(&piprogress)).into() } } - unsafe extern "system" fn Pin(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, bdeep: super::super::Foundation::BOOL, basync: super::super::Foundation::BOOL, dwpincontrolflags: u32, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn Pin(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, bdeep: windows_core::BOOL, basync: windows_core::BOOL, dwpincontrolflags: u32, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::Pin(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&rgpszpaths), core::mem::transmute_copy(&cpaths), core::mem::transmute_copy(&bdeep), core::mem::transmute_copy(&basync), core::mem::transmute_copy(&dwpincontrolflags), core::mem::transmute_copy(&piprogress)).into() } } - unsafe extern "system" fn Unpin(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, bdeep: super::super::Foundation::BOOL, basync: super::super::Foundation::BOOL, dwpincontrolflags: u32, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn Unpin(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, rgpszpaths: *const windows_core::PCWSTR, cpaths: u32, bdeep: windows_core::BOOL, basync: windows_core::BOOL, dwpincontrolflags: u32, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::Unpin(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&rgpszpaths), core::mem::transmute_copy(&cpaths), core::mem::transmute_copy(&bdeep), core::mem::transmute_copy(&basync), core::mem::transmute_copy(&dwpincontrolflags), core::mem::transmute_copy(&piprogress)).into() } } - unsafe extern "system" fn GetEncryptionStatus(this: *mut core::ffi::c_void, pbencrypted: *mut super::super::Foundation::BOOL, pbpartial: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetEncryptionStatus(this: *mut core::ffi::c_void, pbencrypted: *mut windows_core::BOOL, pbpartial: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::GetEncryptionStatus(this, core::mem::transmute_copy(&pbencrypted), core::mem::transmute_copy(&pbpartial)).into() } } - unsafe extern "system" fn Encrypt(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, bencrypt: super::super::Foundation::BOOL, dwencryptioncontrolflags: u32, basync: super::super::Foundation::BOOL, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn Encrypt(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, bencrypt: windows_core::BOOL, dwencryptioncontrolflags: u32, basync: windows_core::BOOL, piprogress: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::Encrypt(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&bencrypt), core::mem::transmute_copy(&dwencryptioncontrolflags), core::mem::transmute_copy(&basync), core::mem::transmute_copy(&piprogress)).into() @@ -396,7 +396,7 @@ impl IOfflineFilesCache_Vtbl { } } } - unsafe extern "system" fn RenameItem(this: *mut core::ffi::c_void, pszpathoriginal: windows_core::PCWSTR, pszpathnew: windows_core::PCWSTR, breplaceifexists: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RenameItem(this: *mut core::ffi::c_void, pszpathoriginal: windows_core::PCWSTR, pszpathnew: windows_core::PCWSTR, breplaceifexists: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::RenameItem(this, core::mem::transmute(&pszpathoriginal), core::mem::transmute(&pszpathnew), core::mem::transmute_copy(&breplaceifexists)).into() @@ -456,7 +456,7 @@ impl IOfflineFilesCache_Vtbl { } } } - unsafe extern "system" fn IsPathCacheable(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pbcacheable: *mut super::super::Foundation::BOOL, psharecachingmode: *mut OFFLINEFILES_CACHING_MODE) -> windows_core::HRESULT { + unsafe extern "system" fn IsPathCacheable(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, pbcacheable: *mut windows_core::BOOL, psharecachingmode: *mut OFFLINEFILES_CACHING_MODE) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache_Impl::IsPathCacheable(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&pbcacheable), core::mem::transmute_copy(&psharecachingmode)).into() @@ -508,14 +508,14 @@ impl IOfflineFilesCache2 { #[repr(C)] pub struct IOfflineFilesCache2_Vtbl { pub base__: IOfflineFilesCache_Vtbl, - pub RenameItemEx: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub RenameItemEx: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IOfflineFilesCache2_Impl: IOfflineFilesCache_Impl { - fn RenameItemEx(&self, pszpathoriginal: &windows_core::PCWSTR, pszpathnew: &windows_core::PCWSTR, breplaceifexists: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn RenameItemEx(&self, pszpathoriginal: &windows_core::PCWSTR, pszpathnew: &windows_core::PCWSTR, breplaceifexists: windows_core::BOOL) -> windows_core::Result<()>; } impl IOfflineFilesCache2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn RenameItemEx(this: *mut core::ffi::c_void, pszpathoriginal: windows_core::PCWSTR, pszpathnew: windows_core::PCWSTR, breplaceifexists: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RenameItemEx(this: *mut core::ffi::c_void, pszpathoriginal: windows_core::PCWSTR, pszpathnew: windows_core::PCWSTR, breplaceifexists: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesCache2_Impl::RenameItemEx(this, core::mem::transmute(&pszpathoriginal), core::mem::transmute(&pszpathnew), core::mem::transmute_copy(&breplaceifexists)).into() @@ -531,34 +531,34 @@ impl windows_core::RuntimeName for IOfflineFilesCache2 {} windows_core::imp::define_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 { + pub unsafe fn IsDirty(&self, pbdirty: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { (windows_core::Interface::vtable(self).IsDirty)(windows_core::Interface::as_raw(self), pbdirty as _) } } - pub unsafe fn IsDeletedOffline(&self) -> windows_core::Result { + pub unsafe fn IsDeletedOffline(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsDeletedOffline)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsCreatedOffline(&self) -> windows_core::Result { + pub unsafe fn IsCreatedOffline(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsCreatedOffline)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsLocallyModifiedData(&self) -> windows_core::Result { + pub unsafe fn IsLocallyModifiedData(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsLocallyModifiedData)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsLocallyModifiedAttributes(&self) -> windows_core::Result { + pub unsafe fn IsLocallyModifiedAttributes(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsLocallyModifiedAttributes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsLocallyModifiedTime(&self) -> windows_core::Result { + pub unsafe fn IsLocallyModifiedTime(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsLocallyModifiedTime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -568,30 +568,30 @@ impl IOfflineFilesChangeInfo { #[repr(C)] pub struct IOfflineFilesChangeInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsDirty: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsDeletedOffline: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsCreatedOffline: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsLocallyModifiedData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsLocallyModifiedAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsLocallyModifiedTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsDirty: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsDeletedOffline: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsCreatedOffline: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsLocallyModifiedData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsLocallyModifiedAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsLocallyModifiedTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IOfflineFilesChangeInfo_Impl: windows_core::IUnknownImpl { - fn IsDirty(&self, pbdirty: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT; - fn IsDeletedOffline(&self) -> windows_core::Result; - fn IsCreatedOffline(&self) -> windows_core::Result; - fn IsLocallyModifiedData(&self) -> windows_core::Result; - fn IsLocallyModifiedAttributes(&self) -> windows_core::Result; - fn IsLocallyModifiedTime(&self) -> windows_core::Result; + fn IsDirty(&self, pbdirty: *mut windows_core::BOOL) -> windows_core::HRESULT; + fn IsDeletedOffline(&self) -> windows_core::Result; + fn IsCreatedOffline(&self) -> windows_core::Result; + fn IsLocallyModifiedData(&self) -> windows_core::Result; + fn IsLocallyModifiedAttributes(&self) -> windows_core::Result; + fn IsLocallyModifiedTime(&self) -> windows_core::Result; } impl IOfflineFilesChangeInfo_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void, pbdirty: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsDirty(this: *mut core::ffi::c_void, pbdirty: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesChangeInfo_Impl::IsDirty(this, core::mem::transmute_copy(&pbdirty)) } } - unsafe extern "system" fn IsDeletedOffline(this: *mut core::ffi::c_void, pbdeletedoffline: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsDeletedOffline(this: *mut core::ffi::c_void, pbdeletedoffline: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesChangeInfo_Impl::IsDeletedOffline(this) { @@ -603,7 +603,7 @@ impl IOfflineFilesChangeInfo_Vtbl { } } } - unsafe extern "system" fn IsCreatedOffline(this: *mut core::ffi::c_void, pbcreatedoffline: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsCreatedOffline(this: *mut core::ffi::c_void, pbcreatedoffline: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesChangeInfo_Impl::IsCreatedOffline(this) { @@ -615,7 +615,7 @@ impl IOfflineFilesChangeInfo_Vtbl { } } } - unsafe extern "system" fn IsLocallyModifiedData(this: *mut core::ffi::c_void, pblocallymodifieddata: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsLocallyModifiedData(this: *mut core::ffi::c_void, pblocallymodifieddata: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesChangeInfo_Impl::IsLocallyModifiedData(this) { @@ -627,7 +627,7 @@ impl IOfflineFilesChangeInfo_Vtbl { } } } - unsafe extern "system" fn IsLocallyModifiedAttributes(this: *mut core::ffi::c_void, pblocallymodifiedattributes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsLocallyModifiedAttributes(this: *mut core::ffi::c_void, pblocallymodifiedattributes: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesChangeInfo_Impl::IsLocallyModifiedAttributes(this) { @@ -639,7 +639,7 @@ impl IOfflineFilesChangeInfo_Vtbl { } } } - unsafe extern "system" fn IsLocallyModifiedTime(this: *mut core::ffi::c_void, pblocallymodifiedtime: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsLocallyModifiedTime(this: *mut core::ffi::c_void, pblocallymodifiedtime: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesChangeInfo_Impl::IsLocallyModifiedTime(this) { @@ -678,7 +678,7 @@ impl IOfflineFilesConnectionInfo { pub unsafe fn TransitionOnline(&self, hwndparent: Option, dwflags: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).TransitionOnline)(windows_core::Interface::as_raw(self), hwndparent.unwrap_or(core::mem::zeroed()) as _, dwflags).ok() } } - pub unsafe fn TransitionOffline(&self, hwndparent: Option, dwflags: u32, bforceopenfilesclosed: bool) -> windows_core::Result { + pub unsafe fn TransitionOffline(&self, hwndparent: Option, dwflags: u32, bforceopenfilesclosed: bool) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).TransitionOffline)(windows_core::Interface::as_raw(self), hwndparent.unwrap_or(core::mem::zeroed()) as _, dwflags, bforceopenfilesclosed.into(), &mut result__).map(|| result__) @@ -691,13 +691,13 @@ pub struct IOfflineFilesConnectionInfo_Vtbl { pub GetConnectState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut OFFLINEFILES_CONNECT_STATE, *mut OFFLINEFILES_OFFLINE_REASON) -> windows_core::HRESULT, pub SetConnectState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, u32, OFFLINEFILES_CONNECT_STATE) -> windows_core::HRESULT, pub TransitionOnline: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, u32) -> windows_core::HRESULT, - pub TransitionOffline: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, u32, super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub TransitionOffline: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, u32, windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IOfflineFilesConnectionInfo_Impl: windows_core::IUnknownImpl { fn GetConnectState(&self, pconnectstate: *mut OFFLINEFILES_CONNECT_STATE, pofflinereason: *mut OFFLINEFILES_OFFLINE_REASON) -> windows_core::Result<()>; fn SetConnectState(&self, hwndparent: super::super::Foundation::HWND, dwflags: u32, connectstate: OFFLINEFILES_CONNECT_STATE) -> windows_core::Result<()>; fn TransitionOnline(&self, hwndparent: super::super::Foundation::HWND, dwflags: u32) -> windows_core::Result<()>; - fn TransitionOffline(&self, hwndparent: super::super::Foundation::HWND, dwflags: u32, bforceopenfilesclosed: super::super::Foundation::BOOL) -> windows_core::Result; + fn TransitionOffline(&self, hwndparent: super::super::Foundation::HWND, dwflags: u32, bforceopenfilesclosed: windows_core::BOOL) -> windows_core::Result; } impl IOfflineFilesConnectionInfo_Vtbl { pub const fn new() -> Self { @@ -719,7 +719,7 @@ impl IOfflineFilesConnectionInfo_Vtbl { IOfflineFilesConnectionInfo_Impl::TransitionOnline(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&dwflags)).into() } } - unsafe extern "system" fn TransitionOffline(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32, bforceopenfilesclosed: super::super::Foundation::BOOL, pbopenfilespreventedtransition: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn TransitionOffline(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32, bforceopenfilesclosed: windows_core::BOOL, pbopenfilespreventedtransition: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesConnectionInfo_Impl::TransitionOffline(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&bforceopenfilesclosed)) { @@ -1031,8 +1031,8 @@ pub struct IOfflineFilesEvents_Vtbl { pub CacheMoved: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, pub CacheIsFull: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub CacheIsCorrupted: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub Enabled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub EncryptionChanged: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Enabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub EncryptionChanged: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, pub SyncBegin: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID) -> windows_core::HRESULT, pub SyncFileResult: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, windows_core::PCWSTR, windows_core::HRESULT) -> windows_core::HRESULT, pub SyncConflictRecAdded: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const super::super::Foundation::FILETIME, OFFLINEFILES_SYNC_STATE) -> windows_core::HRESULT, @@ -1047,7 +1047,7 @@ pub struct IOfflineFilesEvents_Vtbl { pub ItemNotAvailableOffline: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT, pub ItemPinned: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT, pub ItemNotPinned: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT, - pub ItemModified: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, OFFLINEFILES_ITEM_TYPE, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ItemModified: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, OFFLINEFILES_ITEM_TYPE, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, pub ItemAddedToCache: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT, pub ItemDeletedFromCache: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT, pub ItemRenamed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, OFFLINEFILES_ITEM_TYPE) -> windows_core::HRESULT, @@ -1058,8 +1058,8 @@ pub trait IOfflineFilesEvents_Impl: windows_core::IUnknownImpl { fn CacheMoved(&self, pszoldpath: &windows_core::PCWSTR, psznewpath: &windows_core::PCWSTR) -> windows_core::Result<()>; fn CacheIsFull(&self) -> windows_core::Result<()>; fn CacheIsCorrupted(&self) -> windows_core::Result<()>; - fn Enabled(&self, benabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn EncryptionChanged(&self, bwasencrypted: super::super::Foundation::BOOL, bwaspartial: super::super::Foundation::BOOL, bisencrypted: super::super::Foundation::BOOL, bispartial: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Enabled(&self, benabled: windows_core::BOOL) -> windows_core::Result<()>; + fn EncryptionChanged(&self, bwasencrypted: windows_core::BOOL, bwaspartial: windows_core::BOOL, bisencrypted: windows_core::BOOL, bispartial: windows_core::BOOL) -> windows_core::Result<()>; fn SyncBegin(&self, rsyncid: *const windows_core::GUID) -> windows_core::Result<()>; fn SyncFileResult(&self, rsyncid: *const windows_core::GUID, pszfile: &windows_core::PCWSTR, hrresult: windows_core::HRESULT) -> windows_core::Result<()>; fn SyncConflictRecAdded(&self, pszconflictpath: &windows_core::PCWSTR, pftconflictdatetime: *const super::super::Foundation::FILETIME, conflictsyncstate: OFFLINEFILES_SYNC_STATE) -> windows_core::Result<()>; @@ -1074,7 +1074,7 @@ pub trait IOfflineFilesEvents_Impl: windows_core::IUnknownImpl { fn ItemNotAvailableOffline(&self, pszpath: &windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()>; fn ItemPinned(&self, pszpath: &windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()>; fn ItemNotPinned(&self, pszpath: &windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()>; - fn ItemModified(&self, pszpath: &windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE, bmodifieddata: super::super::Foundation::BOOL, bmodifiedattributes: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ItemModified(&self, pszpath: &windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE, bmodifieddata: windows_core::BOOL, bmodifiedattributes: windows_core::BOOL) -> windows_core::Result<()>; fn ItemAddedToCache(&self, pszpath: &windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()>; fn ItemDeletedFromCache(&self, pszpath: &windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()>; fn ItemRenamed(&self, pszoldpath: &windows_core::PCWSTR, psznewpath: &windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE) -> windows_core::Result<()>; @@ -1101,13 +1101,13 @@ impl IOfflineFilesEvents_Vtbl { IOfflineFilesEvents_Impl::CacheIsCorrupted(this).into() } } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, benabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, benabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::Enabled(this, core::mem::transmute_copy(&benabled)).into() } } - unsafe extern "system" fn EncryptionChanged(this: *mut core::ffi::c_void, bwasencrypted: super::super::Foundation::BOOL, bwaspartial: super::super::Foundation::BOOL, bisencrypted: super::super::Foundation::BOOL, bispartial: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EncryptionChanged(this: *mut core::ffi::c_void, bwasencrypted: windows_core::BOOL, bwaspartial: windows_core::BOOL, bisencrypted: windows_core::BOOL, bispartial: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::EncryptionChanged(this, core::mem::transmute_copy(&bwasencrypted), core::mem::transmute_copy(&bwaspartial), core::mem::transmute_copy(&bisencrypted), core::mem::transmute_copy(&bispartial)).into() @@ -1197,7 +1197,7 @@ impl IOfflineFilesEvents_Vtbl { IOfflineFilesEvents_Impl::ItemNotPinned(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&itemtype)).into() } } - unsafe extern "system" fn ItemModified(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE, bmodifieddata: super::super::Foundation::BOOL, bmodifiedattributes: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ItemModified(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, itemtype: OFFLINEFILES_ITEM_TYPE, bmodifieddata: windows_core::BOOL, bmodifiedattributes: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents_Impl::ItemModified(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&itemtype), core::mem::transmute_copy(&bmodifieddata), core::mem::transmute_copy(&bmodifiedattributes)).into() @@ -1434,18 +1434,18 @@ impl IOfflineFilesEvents3 { #[repr(C)] pub struct IOfflineFilesEvents3_Vtbl { pub base__: IOfflineFilesEvents2_Vtbl, - pub TransparentCacheItemNotify: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, OFFLINEFILES_EVENTS, OFFLINEFILES_ITEM_TYPE, super::super::Foundation::BOOL, super::super::Foundation::BOOL, windows_core::PCWSTR) -> windows_core::HRESULT, + pub TransparentCacheItemNotify: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, OFFLINEFILES_EVENTS, OFFLINEFILES_ITEM_TYPE, windows_core::BOOL, windows_core::BOOL, windows_core::PCWSTR) -> windows_core::HRESULT, pub PrefetchFileBegin: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub PrefetchFileEnd: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::HRESULT) -> windows_core::HRESULT, } pub trait IOfflineFilesEvents3_Impl: IOfflineFilesEvents2_Impl { - fn TransparentCacheItemNotify(&self, pszpath: &windows_core::PCWSTR, eventtype: OFFLINEFILES_EVENTS, itemtype: OFFLINEFILES_ITEM_TYPE, bmodifieddata: super::super::Foundation::BOOL, bmodifiedattributes: super::super::Foundation::BOOL, pzsoldpath: &windows_core::PCWSTR) -> windows_core::Result<()>; + fn TransparentCacheItemNotify(&self, pszpath: &windows_core::PCWSTR, eventtype: OFFLINEFILES_EVENTS, itemtype: OFFLINEFILES_ITEM_TYPE, bmodifieddata: windows_core::BOOL, bmodifiedattributes: windows_core::BOOL, pzsoldpath: &windows_core::PCWSTR) -> windows_core::Result<()>; fn PrefetchFileBegin(&self, pszpath: &windows_core::PCWSTR) -> windows_core::Result<()>; fn PrefetchFileEnd(&self, pszpath: &windows_core::PCWSTR, hrresult: windows_core::HRESULT) -> windows_core::Result<()>; } impl IOfflineFilesEvents3_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn TransparentCacheItemNotify(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, eventtype: OFFLINEFILES_EVENTS, itemtype: OFFLINEFILES_ITEM_TYPE, bmodifieddata: super::super::Foundation::BOOL, bmodifiedattributes: super::super::Foundation::BOOL, pzsoldpath: windows_core::PCWSTR) -> windows_core::HRESULT { + unsafe extern "system" fn TransparentCacheItemNotify(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, eventtype: OFFLINEFILES_EVENTS, itemtype: OFFLINEFILES_ITEM_TYPE, bmodifieddata: windows_core::BOOL, bmodifiedattributes: windows_core::BOOL, pzsoldpath: windows_core::PCWSTR) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesEvents3_Impl::TransparentCacheItemNotify(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&eventtype), core::mem::transmute_copy(&itemtype), core::mem::transmute_copy(&bmodifieddata), core::mem::transmute_copy(&bmodifiedattributes), core::mem::transmute(&pzsoldpath)).into() @@ -1592,13 +1592,13 @@ impl core::ops::Deref for IOfflineFilesFileItem { } windows_core::imp::interface_hierarchy!(IOfflineFilesFileItem, windows_core::IUnknown, IOfflineFilesItem); impl IOfflineFilesFileItem { - pub unsafe fn IsSparse(&self) -> windows_core::Result { + pub unsafe fn IsSparse(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsSparse)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsEncrypted(&self) -> windows_core::Result { + pub unsafe fn IsEncrypted(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsEncrypted)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1608,16 +1608,16 @@ impl IOfflineFilesFileItem { #[repr(C)] pub struct IOfflineFilesFileItem_Vtbl { pub base__: IOfflineFilesItem_Vtbl, - pub IsSparse: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsEncrypted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsSparse: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsEncrypted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IOfflineFilesFileItem_Impl: IOfflineFilesItem_Impl { - fn IsSparse(&self) -> windows_core::Result; - fn IsEncrypted(&self) -> windows_core::Result; + fn IsSparse(&self) -> windows_core::Result; + fn IsEncrypted(&self) -> windows_core::Result; } impl IOfflineFilesFileItem_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsSparse(this: *mut core::ffi::c_void, pbissparse: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsSparse(this: *mut core::ffi::c_void, pbissparse: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesFileItem_Impl::IsSparse(this) { @@ -1629,7 +1629,7 @@ impl IOfflineFilesFileItem_Vtbl { } } } - unsafe extern "system" fn IsEncrypted(this: *mut core::ffi::c_void, pbisencrypted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsEncrypted(this: *mut core::ffi::c_void, pbisencrypted: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesFileItem_Impl::IsEncrypted(this) { @@ -1726,7 +1726,7 @@ impl windows_core::RuntimeName for IOfflineFilesFileSysInfo {} windows_core::imp::define_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 { + pub unsafe fn IsGhosted(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsGhosted)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1736,14 +1736,14 @@ impl IOfflineFilesGhostInfo { #[repr(C)] pub struct IOfflineFilesGhostInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsGhosted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsGhosted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IOfflineFilesGhostInfo_Impl: windows_core::IUnknownImpl { - fn IsGhosted(&self) -> windows_core::Result; + fn IsGhosted(&self) -> windows_core::Result; } impl IOfflineFilesGhostInfo_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsGhosted(this: *mut core::ffi::c_void, pbghosted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsGhosted(this: *mut core::ffi::c_void, pbghosted: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesGhostInfo_Impl::IsGhosted(this) { @@ -1786,7 +1786,7 @@ impl IOfflineFilesItem { pub unsafe fn Refresh(&self, dwqueryflags: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self), dwqueryflags).ok() } } - pub unsafe fn IsMarkedForDeletion(&self) -> windows_core::Result { + pub unsafe fn IsMarkedForDeletion(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsMarkedForDeletion)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1800,14 +1800,14 @@ pub struct IOfflineFilesItem_Vtbl { pub GetPath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetParentItem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Refresh: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub IsMarkedForDeletion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsMarkedForDeletion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IOfflineFilesItem_Impl: windows_core::IUnknownImpl { fn GetItemType(&self) -> windows_core::Result; fn GetPath(&self) -> windows_core::Result; fn GetParentItem(&self) -> windows_core::Result; fn Refresh(&self, dwqueryflags: u32) -> windows_core::Result<()>; - fn IsMarkedForDeletion(&self) -> windows_core::Result; + fn IsMarkedForDeletion(&self) -> windows_core::Result; } impl IOfflineFilesItem_Vtbl { pub const fn new() -> Self { @@ -1853,7 +1853,7 @@ impl IOfflineFilesItem_Vtbl { IOfflineFilesItem_Impl::Refresh(this, core::mem::transmute_copy(&dwqueryflags)).into() } } - unsafe extern "system" fn IsMarkedForDeletion(this: *mut core::ffi::c_void, pbmarkedfordeletion: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsMarkedForDeletion(this: *mut core::ffi::c_void, pbmarkedfordeletion: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesItem_Impl::IsMarkedForDeletion(this) { @@ -1954,7 +1954,7 @@ impl IOfflineFilesItemFilter { pub unsafe fn GetFilterFlags(&self, pullflags: *mut u64, pullmask: *mut u64) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetFilterFlags)(windows_core::Interface::as_raw(self), pullflags as _, pullmask as _).ok() } } - pub unsafe fn GetTimeFilter(&self, pfttime: *mut super::super::Foundation::FILETIME, pbevaltimeofday: *mut super::super::Foundation::BOOL, ptimetype: *mut OFFLINEFILES_ITEM_TIME, pcompare: *mut OFFLINEFILES_COMPARE) -> windows_core::Result<()> { + pub unsafe fn GetTimeFilter(&self, pfttime: *mut super::super::Foundation::FILETIME, pbevaltimeofday: *mut windows_core::BOOL, ptimetype: *mut OFFLINEFILES_ITEM_TIME, pcompare: *mut OFFLINEFILES_COMPARE) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetTimeFilter)(windows_core::Interface::as_raw(self), pfttime as _, pbevaltimeofday as _, ptimetype as _, pcompare as _).ok() } } pub unsafe fn GetPatternFilter(&self, pszpattern: &mut [u16]) -> windows_core::Result<()> { @@ -1965,12 +1965,12 @@ impl IOfflineFilesItemFilter { pub struct IOfflineFilesItemFilter_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetFilterFlags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64, *mut u64) -> windows_core::HRESULT, - pub GetTimeFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::FILETIME, *mut super::super::Foundation::BOOL, *mut OFFLINEFILES_ITEM_TIME, *mut OFFLINEFILES_COMPARE) -> windows_core::HRESULT, + pub GetTimeFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::FILETIME, *mut windows_core::BOOL, *mut OFFLINEFILES_ITEM_TIME, *mut OFFLINEFILES_COMPARE) -> windows_core::HRESULT, pub GetPatternFilter: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32) -> windows_core::HRESULT, } pub trait IOfflineFilesItemFilter_Impl: windows_core::IUnknownImpl { fn GetFilterFlags(&self, pullflags: *mut u64, pullmask: *mut u64) -> windows_core::Result<()>; - fn GetTimeFilter(&self, pfttime: *mut super::super::Foundation::FILETIME, pbevaltimeofday: *mut super::super::Foundation::BOOL, ptimetype: *mut OFFLINEFILES_ITEM_TIME, pcompare: *mut OFFLINEFILES_COMPARE) -> windows_core::Result<()>; + fn GetTimeFilter(&self, pfttime: *mut super::super::Foundation::FILETIME, pbevaltimeofday: *mut windows_core::BOOL, ptimetype: *mut OFFLINEFILES_ITEM_TIME, pcompare: *mut OFFLINEFILES_COMPARE) -> windows_core::Result<()>; fn GetPatternFilter(&self, pszpattern: windows_core::PWSTR, cchpattern: u32) -> windows_core::Result<()>; } impl IOfflineFilesItemFilter_Vtbl { @@ -1981,7 +1981,7 @@ impl IOfflineFilesItemFilter_Vtbl { IOfflineFilesItemFilter_Impl::GetFilterFlags(this, core::mem::transmute_copy(&pullflags), core::mem::transmute_copy(&pullmask)).into() } } - unsafe extern "system" fn GetTimeFilter(this: *mut core::ffi::c_void, pfttime: *mut super::super::Foundation::FILETIME, pbevaltimeofday: *mut super::super::Foundation::BOOL, ptimetype: *mut OFFLINEFILES_ITEM_TIME, pcompare: *mut OFFLINEFILES_COMPARE) -> windows_core::HRESULT { + unsafe extern "system" fn GetTimeFilter(this: *mut core::ffi::c_void, pfttime: *mut super::super::Foundation::FILETIME, pbevaltimeofday: *mut windows_core::BOOL, ptimetype: *mut OFFLINEFILES_ITEM_TIME, pcompare: *mut OFFLINEFILES_COMPARE) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesItemFilter_Impl::GetTimeFilter(this, core::mem::transmute_copy(&pfttime), core::mem::transmute_copy(&pbevaltimeofday), core::mem::transmute_copy(&ptimetype), core::mem::transmute_copy(&pcompare)).into() @@ -2008,44 +2008,44 @@ impl windows_core::RuntimeName for IOfflineFilesItemFilter {} windows_core::imp::define_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 { + pub unsafe fn IsPinned(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsPinned)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsPinnedForUser(&self, pbpinnedforuser: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn IsPinnedForUser(&self, pbpinnedforuser: *mut windows_core::BOOL, pbinherit: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsPinnedForUser)(windows_core::Interface::as_raw(self), pbpinnedforuser as _, pbinherit as _).ok() } } - pub unsafe fn IsPinnedForUserByPolicy(&self, pbpinnedforuser: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn IsPinnedForUserByPolicy(&self, pbpinnedforuser: *mut windows_core::BOOL, pbinherit: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsPinnedForUserByPolicy)(windows_core::Interface::as_raw(self), pbpinnedforuser as _, pbinherit as _).ok() } } - pub unsafe fn IsPinnedForComputer(&self, pbpinnedforcomputer: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn IsPinnedForComputer(&self, pbpinnedforcomputer: *mut windows_core::BOOL, pbinherit: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsPinnedForComputer)(windows_core::Interface::as_raw(self), pbpinnedforcomputer as _, pbinherit as _).ok() } } - pub unsafe fn IsPinnedForFolderRedirection(&self, pbpinnedforfolderredirection: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn IsPinnedForFolderRedirection(&self, pbpinnedforfolderredirection: *mut windows_core::BOOL, pbinherit: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsPinnedForFolderRedirection)(windows_core::Interface::as_raw(self), pbpinnedforfolderredirection as _, pbinherit as _).ok() } } } #[repr(C)] pub struct IOfflineFilesPinInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsPinned: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsPinnedForUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsPinnedForUserByPolicy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsPinnedForComputer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsPinnedForFolderRedirection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsPinned: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsPinnedForUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsPinnedForUserByPolicy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsPinnedForComputer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsPinnedForFolderRedirection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IOfflineFilesPinInfo_Impl: windows_core::IUnknownImpl { - fn IsPinned(&self) -> windows_core::Result; - fn IsPinnedForUser(&self, pbpinnedforuser: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn IsPinnedForUserByPolicy(&self, pbpinnedforuser: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn IsPinnedForComputer(&self, pbpinnedforcomputer: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn IsPinnedForFolderRedirection(&self, pbpinnedforfolderredirection: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsPinned(&self) -> windows_core::Result; + fn IsPinnedForUser(&self, pbpinnedforuser: *mut windows_core::BOOL, pbinherit: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn IsPinnedForUserByPolicy(&self, pbpinnedforuser: *mut windows_core::BOOL, pbinherit: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn IsPinnedForComputer(&self, pbpinnedforcomputer: *mut windows_core::BOOL, pbinherit: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn IsPinnedForFolderRedirection(&self, pbpinnedforfolderredirection: *mut windows_core::BOOL, pbinherit: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IOfflineFilesPinInfo_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsPinned(this: *mut core::ffi::c_void, pbpinned: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsPinned(this: *mut core::ffi::c_void, pbpinned: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesPinInfo_Impl::IsPinned(this) { @@ -2057,25 +2057,25 @@ impl IOfflineFilesPinInfo_Vtbl { } } } - unsafe extern "system" fn IsPinnedForUser(this: *mut core::ffi::c_void, pbpinnedforuser: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsPinnedForUser(this: *mut core::ffi::c_void, pbpinnedforuser: *mut windows_core::BOOL, pbinherit: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesPinInfo_Impl::IsPinnedForUser(this, core::mem::transmute_copy(&pbpinnedforuser), core::mem::transmute_copy(&pbinherit)).into() } } - unsafe extern "system" fn IsPinnedForUserByPolicy(this: *mut core::ffi::c_void, pbpinnedforuser: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsPinnedForUserByPolicy(this: *mut core::ffi::c_void, pbpinnedforuser: *mut windows_core::BOOL, pbinherit: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesPinInfo_Impl::IsPinnedForUserByPolicy(this, core::mem::transmute_copy(&pbpinnedforuser), core::mem::transmute_copy(&pbinherit)).into() } } - unsafe extern "system" fn IsPinnedForComputer(this: *mut core::ffi::c_void, pbpinnedforcomputer: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsPinnedForComputer(this: *mut core::ffi::c_void, pbpinnedforcomputer: *mut windows_core::BOOL, pbinherit: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesPinInfo_Impl::IsPinnedForComputer(this, core::mem::transmute_copy(&pbpinnedforcomputer), core::mem::transmute_copy(&pbinherit)).into() } } - unsafe extern "system" fn IsPinnedForFolderRedirection(this: *mut core::ffi::c_void, pbpinnedforfolderredirection: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsPinnedForFolderRedirection(this: *mut core::ffi::c_void, pbpinnedforfolderredirection: *mut windows_core::BOOL, pbinherit: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesPinInfo_Impl::IsPinnedForFolderRedirection(this, core::mem::transmute_copy(&pbpinnedforfolderredirection), core::mem::transmute_copy(&pbinherit)).into() @@ -2104,7 +2104,7 @@ impl core::ops::Deref for IOfflineFilesPinInfo2 { } windows_core::imp::interface_hierarchy!(IOfflineFilesPinInfo2, windows_core::IUnknown, IOfflineFilesPinInfo); impl IOfflineFilesPinInfo2 { - pub unsafe fn IsPartlyPinned(&self) -> windows_core::Result { + pub unsafe fn IsPartlyPinned(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsPartlyPinned)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2114,14 +2114,14 @@ impl IOfflineFilesPinInfo2 { #[repr(C)] pub struct IOfflineFilesPinInfo2_Vtbl { pub base__: IOfflineFilesPinInfo_Vtbl, - pub IsPartlyPinned: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsPartlyPinned: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IOfflineFilesPinInfo2_Impl: IOfflineFilesPinInfo_Impl { - fn IsPartlyPinned(&self) -> windows_core::Result; + fn IsPartlyPinned(&self) -> windows_core::Result; } impl IOfflineFilesPinInfo2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsPartlyPinned(this: *mut core::ffi::c_void, pbpartlypinned: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsPartlyPinned(this: *mut core::ffi::c_void, pbpartlypinned: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesPinInfo2_Impl::IsPartlyPinned(this) { @@ -2143,13 +2143,13 @@ impl windows_core::RuntimeName for IOfflineFilesPinInfo2 {} windows_core::imp::define_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 { + pub unsafe fn Begin(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Begin)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn QueryAbort(&self) -> windows_core::Result { + pub unsafe fn QueryAbort(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).QueryAbort)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2162,18 +2162,18 @@ impl IOfflineFilesProgress { #[repr(C)] pub struct IOfflineFilesProgress_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Begin: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub QueryAbort: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Begin: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub QueryAbort: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub End: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::HRESULT) -> windows_core::HRESULT, } pub trait IOfflineFilesProgress_Impl: windows_core::IUnknownImpl { - fn Begin(&self) -> windows_core::Result; - fn QueryAbort(&self) -> windows_core::Result; + fn Begin(&self) -> windows_core::Result; + fn QueryAbort(&self) -> windows_core::Result; fn End(&self, hrresult: windows_core::HRESULT) -> windows_core::Result<()>; } impl IOfflineFilesProgress_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Begin(this: *mut core::ffi::c_void, pbabort: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Begin(this: *mut core::ffi::c_void, pbabort: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesProgress_Impl::Begin(this) { @@ -2185,7 +2185,7 @@ impl IOfflineFilesProgress_Vtbl { } } } - unsafe extern "system" fn QueryAbort(this: *mut core::ffi::c_void, pbabort: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn QueryAbort(this: *mut core::ffi::c_void, pbabort: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesProgress_Impl::QueryAbort(this) { @@ -2280,7 +2280,7 @@ impl IOfflineFilesSetting { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] - pub unsafe fn GetValue(&self, pvarvalue: *mut super::super::System::Variant::VARIANT, pbsetbypolicy: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetValue(&self, pvarvalue: *mut super::super::System::Variant::VARIANT, pbsetbypolicy: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetValue)(windows_core::Interface::as_raw(self), core::mem::transmute(pvarvalue), pbsetbypolicy as _).ok() } } } @@ -2305,7 +2305,7 @@ pub struct IOfflineFilesSetting_Vtbl { GetPolicy: usize, pub GetPolicyScope: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] - pub GetValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::System::Variant::VARIANT, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::System::Variant::VARIANT, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetValue: usize, } @@ -2319,7 +2319,7 @@ pub trait IOfflineFilesSetting_Impl: windows_core::IUnknownImpl { fn DeletePreference(&self, dwscope: u32) -> windows_core::Result<()>; fn GetPolicy(&self, pvarvalue: *mut super::super::System::Variant::VARIANT, dwscope: u32) -> windows_core::Result<()>; fn GetPolicyScope(&self) -> windows_core::Result; - fn GetValue(&self, pvarvalue: *mut super::super::System::Variant::VARIANT, pbsetbypolicy: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetValue(&self, pvarvalue: *mut super::super::System::Variant::VARIANT, pbsetbypolicy: *mut windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IOfflineFilesSetting_Vtbl { @@ -2396,7 +2396,7 @@ impl IOfflineFilesSetting_Vtbl { } } } - unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pvarvalue: *mut super::super::System::Variant::VARIANT, pbsetbypolicy: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetValue(this: *mut core::ffi::c_void, pvarvalue: *mut super::super::System::Variant::VARIANT, pbsetbypolicy: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesSetting_Impl::GetValue(this, core::mem::transmute_copy(&pvarvalue), core::mem::transmute_copy(&pbsetbypolicy)).into() @@ -2436,7 +2436,7 @@ impl IOfflineFilesShareInfo { (windows_core::Interface::vtable(self).GetShareCachingMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsShareDfsJunction(&self) -> windows_core::Result { + pub unsafe fn IsShareDfsJunction(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsShareDfsJunction)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2448,12 +2448,12 @@ pub struct IOfflineFilesShareInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetShareItem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetShareCachingMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut OFFLINEFILES_CACHING_MODE) -> windows_core::HRESULT, - pub IsShareDfsJunction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsShareDfsJunction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IOfflineFilesShareInfo_Impl: windows_core::IUnknownImpl { fn GetShareItem(&self) -> windows_core::Result; fn GetShareCachingMode(&self) -> windows_core::Result; - fn IsShareDfsJunction(&self) -> windows_core::Result; + fn IsShareDfsJunction(&self) -> windows_core::Result; } impl IOfflineFilesShareInfo_Vtbl { pub const fn new() -> Self { @@ -2481,7 +2481,7 @@ impl IOfflineFilesShareInfo_Vtbl { } } } - unsafe extern "system" fn IsShareDfsJunction(this: *mut core::ffi::c_void, pbisdfsjunction: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsShareDfsJunction(this: *mut core::ffi::c_void, pbisdfsjunction: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesShareInfo_Impl::IsShareDfsJunction(this) { @@ -2612,14 +2612,14 @@ impl IOfflineFilesSuspend { #[repr(C)] pub struct IOfflineFilesSuspend_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SuspendRoot: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SuspendRoot: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IOfflineFilesSuspend_Impl: windows_core::IUnknownImpl { - fn SuspendRoot(&self, bsuspend: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SuspendRoot(&self, bsuspend: windows_core::BOOL) -> windows_core::Result<()>; } impl IOfflineFilesSuspend_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SuspendRoot(this: *mut core::ffi::c_void, bsuspend: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SuspendRoot(this: *mut core::ffi::c_void, bsuspend: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesSuspend_Impl::SuspendRoot(this, core::mem::transmute_copy(&bsuspend)).into() @@ -2635,21 +2635,21 @@ impl windows_core::RuntimeName for IOfflineFilesSuspend {} windows_core::imp::define_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<()> { + pub unsafe fn IsSuspended(&self, pbsuspended: *mut windows_core::BOOL, pbsuspendedroot: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsSuspended)(windows_core::Interface::as_raw(self), pbsuspended as _, pbsuspendedroot as _).ok() } } } #[repr(C)] pub struct IOfflineFilesSuspendInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsSuspended: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsSuspended: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IOfflineFilesSuspendInfo_Impl: windows_core::IUnknownImpl { - fn IsSuspended(&self, pbsuspended: *mut super::super::Foundation::BOOL, pbsuspendedroot: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsSuspended(&self, pbsuspended: *mut windows_core::BOOL, pbsuspendedroot: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IOfflineFilesSuspendInfo_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsSuspended(this: *mut core::ffi::c_void, pbsuspended: *mut super::super::Foundation::BOOL, pbsuspendedroot: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsSuspended(this: *mut core::ffi::c_void, pbsuspended: *mut windows_core::BOOL, pbsuspendedroot: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesSuspendInfo_Impl::IsSuspended(this, core::mem::transmute_copy(&pbsuspended), core::mem::transmute_copy(&pbsuspendedroot)).into() @@ -2716,10 +2716,10 @@ impl IOfflineFilesSyncErrorInfo { (windows_core::Interface::vtable(self).GetItemChangeFlags)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn InfoEnumerated(&self, pblocalenumerated: *mut super::super::Foundation::BOOL, pbremoteenumerated: *mut super::super::Foundation::BOOL, pboriginalenumerated: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn InfoEnumerated(&self, pblocalenumerated: *mut windows_core::BOOL, pbremoteenumerated: *mut windows_core::BOOL, pboriginalenumerated: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).InfoEnumerated)(windows_core::Interface::as_raw(self), pblocalenumerated as _, pbremoteenumerated as _, pboriginalenumerated as _).ok() } } - pub unsafe fn InfoAvailable(&self, pblocalinfo: *mut super::super::Foundation::BOOL, pbremoteinfo: *mut super::super::Foundation::BOOL, pboriginalinfo: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn InfoAvailable(&self, pblocalinfo: *mut windows_core::BOOL, pbremoteinfo: *mut windows_core::BOOL, pboriginalinfo: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).InfoAvailable)(windows_core::Interface::as_raw(self), pblocalinfo as _, pbremoteinfo as _, pboriginalinfo as _).ok() } } pub unsafe fn GetLocalInfo(&self) -> windows_core::Result { @@ -2746,8 +2746,8 @@ pub struct IOfflineFilesSyncErrorInfo_Vtbl { pub base__: IOfflineFilesErrorInfo_Vtbl, pub GetSyncOperation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut OFFLINEFILES_SYNC_OPERATION) -> windows_core::HRESULT, pub GetItemChangeFlags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub InfoEnumerated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub InfoAvailable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub InfoEnumerated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub InfoAvailable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetLocalInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetRemoteInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetOriginalInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2756,8 +2756,8 @@ pub struct IOfflineFilesSyncErrorInfo_Vtbl { pub trait IOfflineFilesSyncErrorInfo_Impl: IOfflineFilesErrorInfo_Impl { fn GetSyncOperation(&self) -> windows_core::Result; fn GetItemChangeFlags(&self) -> windows_core::Result; - fn InfoEnumerated(&self, pblocalenumerated: *mut super::super::Foundation::BOOL, pbremoteenumerated: *mut super::super::Foundation::BOOL, pboriginalenumerated: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn InfoAvailable(&self, pblocalinfo: *mut super::super::Foundation::BOOL, pbremoteinfo: *mut super::super::Foundation::BOOL, pboriginalinfo: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn InfoEnumerated(&self, pblocalenumerated: *mut windows_core::BOOL, pbremoteenumerated: *mut windows_core::BOOL, pboriginalenumerated: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn InfoAvailable(&self, pblocalinfo: *mut windows_core::BOOL, pbremoteinfo: *mut windows_core::BOOL, pboriginalinfo: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetLocalInfo(&self) -> windows_core::Result; fn GetRemoteInfo(&self) -> windows_core::Result; fn GetOriginalInfo(&self) -> windows_core::Result; @@ -2789,13 +2789,13 @@ impl IOfflineFilesSyncErrorInfo_Vtbl { } } } - unsafe extern "system" fn InfoEnumerated(this: *mut core::ffi::c_void, pblocalenumerated: *mut super::super::Foundation::BOOL, pbremoteenumerated: *mut super::super::Foundation::BOOL, pboriginalenumerated: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn InfoEnumerated(this: *mut core::ffi::c_void, pblocalenumerated: *mut windows_core::BOOL, pbremoteenumerated: *mut windows_core::BOOL, pboriginalenumerated: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesSyncErrorInfo_Impl::InfoEnumerated(this, core::mem::transmute_copy(&pblocalenumerated), core::mem::transmute_copy(&pbremoteenumerated), core::mem::transmute_copy(&pboriginalenumerated)).into() } } - unsafe extern "system" fn InfoAvailable(this: *mut core::ffi::c_void, pblocalinfo: *mut super::super::Foundation::BOOL, pbremoteinfo: *mut super::super::Foundation::BOOL, pboriginalinfo: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn InfoAvailable(this: *mut core::ffi::c_void, pblocalinfo: *mut windows_core::BOOL, pbremoteinfo: *mut windows_core::BOOL, pboriginalinfo: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOfflineFilesSyncErrorInfo_Impl::InfoAvailable(this, core::mem::transmute_copy(&pblocalinfo), core::mem::transmute_copy(&pbremoteinfo), core::mem::transmute_copy(&pboriginalinfo)).into() @@ -3008,7 +3008,7 @@ impl windows_core::RuntimeName for IOfflineFilesSyncProgress {} windows_core::imp::define_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 { + pub unsafe fn IsTransparentlyCached(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsTransparentlyCached)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3018,14 +3018,14 @@ impl IOfflineFilesTransparentCacheInfo { #[repr(C)] pub struct IOfflineFilesTransparentCacheInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsTransparentlyCached: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsTransparentlyCached: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IOfflineFilesTransparentCacheInfo_Impl: windows_core::IUnknownImpl { - fn IsTransparentlyCached(&self) -> windows_core::Result; + fn IsTransparentlyCached(&self) -> windows_core::Result; } impl IOfflineFilesTransparentCacheInfo_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsTransparentlyCached(this: *mut core::ffi::c_void, pbtransparentlycached: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsTransparentlyCached(this: *mut core::ffi::c_void, pbtransparentlycached: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOfflineFilesTransparentCacheInfo_Impl::IsTransparentlyCached(this) { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/OperationRecorder/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/OperationRecorder/mod.rs index 51e9548fc9..25c4a3c109 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/OperationRecorder/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/OperationRecorder/mod.rs @@ -1,11 +1,11 @@ #[inline] -pub unsafe fn OperationEnd(operationendparams: *const OPERATION_END_PARAMETERS) -> super::super::Foundation::BOOL { - windows_targets::link!("advapi32.dll" "system" fn OperationEnd(operationendparams : *const OPERATION_END_PARAMETERS) -> super::super::Foundation:: BOOL); +pub unsafe fn OperationEnd(operationendparams: *const OPERATION_END_PARAMETERS) -> windows_core::BOOL { + windows_targets::link!("advapi32.dll" "system" fn OperationEnd(operationendparams : *const OPERATION_END_PARAMETERS) -> windows_core::BOOL); unsafe { OperationEnd(operationendparams) } } #[inline] -pub unsafe fn OperationStart(operationstartparams: *const OPERATION_START_PARAMETERS) -> super::super::Foundation::BOOL { - windows_targets::link!("advapi32.dll" "system" fn OperationStart(operationstartparams : *const OPERATION_START_PARAMETERS) -> super::super::Foundation:: BOOL); +pub unsafe fn OperationStart(operationstartparams: *const OPERATION_START_PARAMETERS) -> windows_core::BOOL { + windows_targets::link!("advapi32.dll" "system" fn OperationStart(operationstartparams : *const OPERATION_START_PARAMETERS) -> windows_core::BOOL); unsafe { OperationStart(operationstartparams) } } pub const OPERATION_END_DISCARD: OPERATION_END_PARAMETERS_FLAGS = OPERATION_END_PARAMETERS_FLAGS(1u32); 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 dc965b07f8..75bef3fd2f 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 @@ -55,11 +55,11 @@ pub unsafe fn AppPolicyGetWindowingModel(processtoken: super::super::super::Foun unsafe { AppPolicyGetWindowingModel(processtoken, policy as _) } } #[inline] -pub unsafe fn CheckIsMSIXPackage(packagefullname: P0) -> windows_core::Result +pub unsafe fn CheckIsMSIXPackage(packagefullname: P0) -> windows_core::Result where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CheckIsMSIXPackage(packagefullname : windows_core::PCWSTR, ismsixpackage : *mut super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("kernel32.dll" "system" fn CheckIsMSIXPackage(packagefullname : windows_core::PCWSTR, ismsixpackage : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); CheckIsMSIXPackage(packagefullname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) @@ -559,7 +559,7 @@ pub const APPX_ENCRYPTED_PACKAGE_OPTION_PAGE_HASHING: APPX_ENCRYPTED_PACKAGE_OPT pub struct APPX_ENCRYPTED_PACKAGE_SETTINGS { pub keyLength: u32, pub encryptionAlgorithm: windows_core::PCWSTR, - pub useDiffusion: super::super::super::Foundation::BOOL, + pub useDiffusion: windows_core::BOOL, pub blockMapHashAlgorithm: core::mem::ManuallyDrop>, } #[cfg(feature = "Win32_System_Com")] @@ -669,7 +669,7 @@ pub const APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION_APPEND_DELTA: APPX_PACKAGE_E #[cfg(feature = "Win32_System_Com")] #[derive(Clone, Debug, PartialEq)] pub struct APPX_PACKAGE_SETTINGS { - pub forceZip32: super::super::super::Foundation::BOOL, + pub forceZip32: windows_core::BOOL, pub hashMethod: core::mem::ManuallyDrop>, } #[cfg(feature = "Win32_System_Com")] @@ -951,13 +951,13 @@ impl IAppxBlockMapBlocksEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -968,13 +968,13 @@ impl IAppxBlockMapBlocksEnumerator { pub struct IAppxBlockMapBlocksEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxBlockMapBlocksEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxBlockMapBlocksEnumerator_Vtbl { pub const fn new() -> Self { @@ -990,7 +990,7 @@ impl IAppxBlockMapBlocksEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapBlocksEnumerator_Impl::GetHasCurrent(this) { @@ -1002,7 +1002,7 @@ impl IAppxBlockMapBlocksEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapBlocksEnumerator_Impl::MoveNext(this) { @@ -1054,7 +1054,7 @@ impl IAppxBlockMapFile { } } #[cfg(feature = "Win32_System_Com")] - pub unsafe fn ValidateFileHash(&self, filestream: P0) -> windows_core::Result + pub unsafe fn ValidateFileHash(&self, filestream: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -1072,7 +1072,7 @@ pub struct IAppxBlockMapFile_Vtbl { pub GetName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetUncompressedSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub ValidateFileHash: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ValidateFileHash: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] ValidateFileHash: usize, } @@ -1082,7 +1082,7 @@ pub trait IAppxBlockMapFile_Impl: windows_core::IUnknownImpl { fn GetLocalFileHeaderSize(&self) -> windows_core::Result; fn GetName(&self) -> windows_core::Result; fn GetUncompressedSize(&self) -> windows_core::Result; - fn ValidateFileHash(&self, filestream: windows_core::Ref) -> windows_core::Result; + fn ValidateFileHash(&self, filestream: windows_core::Ref) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl IAppxBlockMapFile_Vtbl { @@ -1135,7 +1135,7 @@ impl IAppxBlockMapFile_Vtbl { } } } - unsafe extern "system" fn ValidateFileHash(this: *mut core::ffi::c_void, filestream: *mut core::ffi::c_void, isvalid: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ValidateFileHash(this: *mut core::ffi::c_void, filestream: *mut core::ffi::c_void, isvalid: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapFile_Impl::ValidateFileHash(this, core::mem::transmute_copy(&filestream)) { @@ -1171,13 +1171,13 @@ impl IAppxBlockMapFilesEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1188,13 +1188,13 @@ impl IAppxBlockMapFilesEnumerator { pub struct IAppxBlockMapFilesEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxBlockMapFilesEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxBlockMapFilesEnumerator_Vtbl { pub const fn new() -> Self { @@ -1210,7 +1210,7 @@ impl IAppxBlockMapFilesEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapFilesEnumerator_Impl::GetHasCurrent(this) { @@ -1222,7 +1222,7 @@ impl IAppxBlockMapFilesEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBlockMapFilesEnumerator_Impl::MoveNext(this) { @@ -1616,13 +1616,13 @@ impl IAppxBundleManifestOptionalBundleInfoEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1633,13 +1633,13 @@ impl IAppxBundleManifestOptionalBundleInfoEnumerator { pub struct IAppxBundleManifestOptionalBundleInfoEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxBundleManifestOptionalBundleInfoEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxBundleManifestOptionalBundleInfoEnumerator_Vtbl { pub const fn new() -> Self { @@ -1655,7 +1655,7 @@ impl IAppxBundleManifestOptionalBundleInfoEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestOptionalBundleInfoEnumerator_Impl::GetHasCurrent(this) { @@ -1667,7 +1667,7 @@ impl IAppxBundleManifestOptionalBundleInfoEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestOptionalBundleInfoEnumerator_Impl::MoveNext(this) { @@ -1841,19 +1841,19 @@ impl windows_core::RuntimeName for IAppxBundleManifestPackageInfo {} windows_core::imp::define_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 { + pub unsafe fn GetIsPackageReference(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIsPackageReference)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetIsNonQualifiedResourcePackage(&self) -> windows_core::Result { + pub unsafe fn GetIsNonQualifiedResourcePackage(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIsNonQualifiedResourcePackage)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetIsDefaultApplicablePackage(&self) -> windows_core::Result { + pub unsafe fn GetIsDefaultApplicablePackage(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIsDefaultApplicablePackage)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1863,18 +1863,18 @@ impl IAppxBundleManifestPackageInfo2 { #[repr(C)] pub struct IAppxBundleManifestPackageInfo2_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetIsPackageReference: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetIsNonQualifiedResourcePackage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetIsDefaultApplicablePackage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetIsPackageReference: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub GetIsNonQualifiedResourcePackage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub GetIsDefaultApplicablePackage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxBundleManifestPackageInfo2_Impl: windows_core::IUnknownImpl { - fn GetIsPackageReference(&self) -> windows_core::Result; - fn GetIsNonQualifiedResourcePackage(&self) -> windows_core::Result; - fn GetIsDefaultApplicablePackage(&self) -> windows_core::Result; + fn GetIsPackageReference(&self) -> windows_core::Result; + fn GetIsNonQualifiedResourcePackage(&self) -> windows_core::Result; + fn GetIsDefaultApplicablePackage(&self) -> windows_core::Result; } impl IAppxBundleManifestPackageInfo2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetIsPackageReference(this: *mut core::ffi::c_void, ispackagereference: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetIsPackageReference(this: *mut core::ffi::c_void, ispackagereference: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfo2_Impl::GetIsPackageReference(this) { @@ -1886,7 +1886,7 @@ impl IAppxBundleManifestPackageInfo2_Vtbl { } } } - unsafe extern "system" fn GetIsNonQualifiedResourcePackage(this: *mut core::ffi::c_void, isnonqualifiedresourcepackage: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetIsNonQualifiedResourcePackage(this: *mut core::ffi::c_void, isnonqualifiedresourcepackage: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfo2_Impl::GetIsNonQualifiedResourcePackage(this) { @@ -1898,7 +1898,7 @@ impl IAppxBundleManifestPackageInfo2_Vtbl { } } } - unsafe extern "system" fn GetIsDefaultApplicablePackage(this: *mut core::ffi::c_void, isdefaultapplicablepackage: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetIsDefaultApplicablePackage(this: *mut core::ffi::c_void, isdefaultapplicablepackage: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfo2_Impl::GetIsDefaultApplicablePackage(this) { @@ -1964,7 +1964,7 @@ impl windows_core::RuntimeName for IAppxBundleManifestPackageInfo3 {} windows_core::imp::define_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 { + pub unsafe fn GetIsStub(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIsStub)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1974,14 +1974,14 @@ impl IAppxBundleManifestPackageInfo4 { #[repr(C)] pub struct IAppxBundleManifestPackageInfo4_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetIsStub: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetIsStub: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxBundleManifestPackageInfo4_Impl: windows_core::IUnknownImpl { - fn GetIsStub(&self) -> windows_core::Result; + fn GetIsStub(&self) -> windows_core::Result; } impl IAppxBundleManifestPackageInfo4_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetIsStub(this: *mut core::ffi::c_void, isstub: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetIsStub(this: *mut core::ffi::c_void, isstub: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfo4_Impl::GetIsStub(this) { @@ -2009,13 +2009,13 @@ impl IAppxBundleManifestPackageInfoEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2026,13 +2026,13 @@ impl IAppxBundleManifestPackageInfoEnumerator { pub struct IAppxBundleManifestPackageInfoEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxBundleManifestPackageInfoEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxBundleManifestPackageInfoEnumerator_Vtbl { pub const fn new() -> Self { @@ -2048,7 +2048,7 @@ impl IAppxBundleManifestPackageInfoEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfoEnumerator_Impl::GetHasCurrent(this) { @@ -2060,7 +2060,7 @@ impl IAppxBundleManifestPackageInfoEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxBundleManifestPackageInfoEnumerator_Impl::MoveNext(this) { @@ -2531,40 +2531,40 @@ impl IAppxBundleWriter4 { pub struct IAppxBundleWriter4_Vtbl { pub base__: windows_core::IUnknown_Vtbl, #[cfg(feature = "Win32_System_Com")] - pub AddPayloadPackage: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AddPayloadPackage: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] AddPayloadPackage: usize, #[cfg(feature = "Win32_System_Com")] - pub AddPackageReference: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AddPackageReference: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] AddPackageReference: usize, #[cfg(feature = "Win32_System_Com")] - pub AddExternalPackageReference: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AddExternalPackageReference: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] AddExternalPackageReference: usize, } #[cfg(feature = "Win32_System_Com")] pub trait IAppxBundleWriter4_Impl: windows_core::IUnknownImpl { - fn AddPayloadPackage(&self, filename: &windows_core::PCWSTR, packagestream: windows_core::Ref, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn AddPackageReference(&self, filename: &windows_core::PCWSTR, inputstream: windows_core::Ref, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn AddExternalPackageReference(&self, filename: &windows_core::PCWSTR, inputstream: windows_core::Ref, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn AddPayloadPackage(&self, filename: &windows_core::PCWSTR, packagestream: windows_core::Ref, isdefaultapplicablepackage: windows_core::BOOL) -> windows_core::Result<()>; + fn AddPackageReference(&self, filename: &windows_core::PCWSTR, inputstream: windows_core::Ref, isdefaultapplicablepackage: windows_core::BOOL) -> windows_core::Result<()>; + fn AddExternalPackageReference(&self, filename: &windows_core::PCWSTR, inputstream: windows_core::Ref, isdefaultapplicablepackage: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl IAppxBundleWriter4_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn AddPayloadPackage(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, packagestream: *mut core::ffi::c_void, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AddPayloadPackage(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, packagestream: *mut core::ffi::c_void, isdefaultapplicablepackage: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxBundleWriter4_Impl::AddPayloadPackage(this, core::mem::transmute(&filename), core::mem::transmute_copy(&packagestream), core::mem::transmute_copy(&isdefaultapplicablepackage)).into() } } - unsafe extern "system" fn AddPackageReference(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, inputstream: *mut core::ffi::c_void, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AddPackageReference(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, inputstream: *mut core::ffi::c_void, isdefaultapplicablepackage: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxBundleWriter4_Impl::AddPackageReference(this, core::mem::transmute(&filename), core::mem::transmute_copy(&inputstream), core::mem::transmute_copy(&isdefaultapplicablepackage)).into() } } - unsafe extern "system" fn AddExternalPackageReference(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, inputstream: *mut core::ffi::c_void, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AddExternalPackageReference(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, inputstream: *mut core::ffi::c_void, isdefaultapplicablepackage: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxBundleWriter4_Impl::AddExternalPackageReference(this, core::mem::transmute(&filename), core::mem::transmute_copy(&inputstream), core::mem::transmute_copy(&isdefaultapplicablepackage)).into() @@ -2651,13 +2651,13 @@ impl IAppxContentGroupFilesEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2668,13 +2668,13 @@ impl IAppxContentGroupFilesEnumerator { pub struct IAppxContentGroupFilesEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxContentGroupFilesEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxContentGroupFilesEnumerator_Vtbl { pub const fn new() -> Self { @@ -2690,7 +2690,7 @@ impl IAppxContentGroupFilesEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxContentGroupFilesEnumerator_Impl::GetHasCurrent(this) { @@ -2702,7 +2702,7 @@ impl IAppxContentGroupFilesEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxContentGroupFilesEnumerator_Impl::MoveNext(this) { @@ -2861,13 +2861,13 @@ impl IAppxContentGroupsEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2878,13 +2878,13 @@ impl IAppxContentGroupsEnumerator { pub struct IAppxContentGroupsEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxContentGroupsEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxContentGroupsEnumerator_Vtbl { pub const fn new() -> Self { @@ -2900,7 +2900,7 @@ impl IAppxContentGroupsEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxContentGroupsEnumerator_Impl::GetHasCurrent(this) { @@ -2912,7 +2912,7 @@ impl IAppxContentGroupsEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxContentGroupsEnumerator_Impl::MoveNext(this) { @@ -3096,29 +3096,29 @@ impl IAppxEncryptedBundleWriter3 { pub struct IAppxEncryptedBundleWriter3_Vtbl { pub base__: windows_core::IUnknown_Vtbl, #[cfg(feature = "Win32_System_Com")] - pub AddPayloadPackageEncrypted: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AddPayloadPackageEncrypted: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] AddPayloadPackageEncrypted: usize, #[cfg(feature = "Win32_System_Com")] - pub AddExternalPackageReference: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AddExternalPackageReference: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] AddExternalPackageReference: usize, } #[cfg(feature = "Win32_System_Com")] pub trait IAppxEncryptedBundleWriter3_Impl: windows_core::IUnknownImpl { - fn AddPayloadPackageEncrypted(&self, filename: &windows_core::PCWSTR, packagestream: windows_core::Ref, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn AddExternalPackageReference(&self, filename: &windows_core::PCWSTR, inputstream: windows_core::Ref, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn AddPayloadPackageEncrypted(&self, filename: &windows_core::PCWSTR, packagestream: windows_core::Ref, isdefaultapplicablepackage: windows_core::BOOL) -> windows_core::Result<()>; + fn AddExternalPackageReference(&self, filename: &windows_core::PCWSTR, inputstream: windows_core::Ref, isdefaultapplicablepackage: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl IAppxEncryptedBundleWriter3_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn AddPayloadPackageEncrypted(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, packagestream: *mut core::ffi::c_void, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AddPayloadPackageEncrypted(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, packagestream: *mut core::ffi::c_void, isdefaultapplicablepackage: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxEncryptedBundleWriter3_Impl::AddPayloadPackageEncrypted(this, core::mem::transmute(&filename), core::mem::transmute_copy(&packagestream), core::mem::transmute_copy(&isdefaultapplicablepackage)).into() } } - unsafe extern "system" fn AddExternalPackageReference(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, inputstream: *mut core::ffi::c_void, isdefaultapplicablepackage: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AddExternalPackageReference(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, inputstream: *mut core::ffi::c_void, isdefaultapplicablepackage: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxEncryptedBundleWriter3_Impl::AddExternalPackageReference(this, core::mem::transmute(&filename), core::mem::transmute_copy(&inputstream), core::mem::transmute_copy(&isdefaultapplicablepackage)).into() @@ -4268,13 +4268,13 @@ impl IAppxFilesEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4285,13 +4285,13 @@ impl IAppxFilesEnumerator { pub struct IAppxFilesEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxFilesEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxFilesEnumerator_Vtbl { pub const fn new() -> Self { @@ -4307,7 +4307,7 @@ impl IAppxFilesEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFilesEnumerator_Impl::GetHasCurrent(this) { @@ -4319,7 +4319,7 @@ impl IAppxFilesEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxFilesEnumerator_Impl::MoveNext(this) { @@ -4418,13 +4418,13 @@ impl IAppxManifestApplicationsEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4435,13 +4435,13 @@ impl IAppxManifestApplicationsEnumerator { pub struct IAppxManifestApplicationsEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxManifestApplicationsEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxManifestApplicationsEnumerator_Vtbl { pub const fn new() -> Self { @@ -4457,7 +4457,7 @@ impl IAppxManifestApplicationsEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestApplicationsEnumerator_Impl::GetHasCurrent(this) { @@ -4469,7 +4469,7 @@ impl IAppxManifestApplicationsEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestApplicationsEnumerator_Impl::MoveNext(this) { @@ -4502,13 +4502,13 @@ impl IAppxManifestCapabilitiesEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4519,13 +4519,13 @@ impl IAppxManifestCapabilitiesEnumerator { pub struct IAppxManifestCapabilitiesEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxManifestCapabilitiesEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxManifestCapabilitiesEnumerator_Vtbl { pub const fn new() -> Self { @@ -4541,7 +4541,7 @@ impl IAppxManifestCapabilitiesEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestCapabilitiesEnumerator_Impl::GetHasCurrent(this) { @@ -4553,7 +4553,7 @@ impl IAppxManifestCapabilitiesEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestCapabilitiesEnumerator_Impl::MoveNext(this) { @@ -4586,13 +4586,13 @@ impl IAppxManifestDeviceCapabilitiesEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4603,13 +4603,13 @@ impl IAppxManifestDeviceCapabilitiesEnumerator { pub struct IAppxManifestDeviceCapabilitiesEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxManifestDeviceCapabilitiesEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxManifestDeviceCapabilitiesEnumerator_Vtbl { pub const fn new() -> Self { @@ -4625,7 +4625,7 @@ impl IAppxManifestDeviceCapabilitiesEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDeviceCapabilitiesEnumerator_Impl::GetHasCurrent(this) { @@ -4637,7 +4637,7 @@ impl IAppxManifestDeviceCapabilitiesEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDeviceCapabilitiesEnumerator_Impl::MoveNext(this) { @@ -4754,13 +4754,13 @@ impl IAppxManifestDriverConstraintsEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4771,13 +4771,13 @@ impl IAppxManifestDriverConstraintsEnumerator { pub struct IAppxManifestDriverConstraintsEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxManifestDriverConstraintsEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxManifestDriverConstraintsEnumerator_Vtbl { pub const fn new() -> Self { @@ -4793,7 +4793,7 @@ impl IAppxManifestDriverConstraintsEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDriverConstraintsEnumerator_Impl::GetHasCurrent(this) { @@ -4805,7 +4805,7 @@ impl IAppxManifestDriverConstraintsEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDriverConstraintsEnumerator_Impl::MoveNext(this) { @@ -4838,13 +4838,13 @@ impl IAppxManifestDriverDependenciesEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4855,13 +4855,13 @@ impl IAppxManifestDriverDependenciesEnumerator { pub struct IAppxManifestDriverDependenciesEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxManifestDriverDependenciesEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxManifestDriverDependenciesEnumerator_Vtbl { pub const fn new() -> Self { @@ -4877,7 +4877,7 @@ impl IAppxManifestDriverDependenciesEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDriverDependenciesEnumerator_Impl::GetHasCurrent(this) { @@ -4889,7 +4889,7 @@ impl IAppxManifestDriverDependenciesEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestDriverDependenciesEnumerator_Impl::MoveNext(this) { @@ -4961,13 +4961,13 @@ impl IAppxManifestHostRuntimeDependenciesEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4978,13 +4978,13 @@ impl IAppxManifestHostRuntimeDependenciesEnumerator { pub struct IAppxManifestHostRuntimeDependenciesEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxManifestHostRuntimeDependenciesEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxManifestHostRuntimeDependenciesEnumerator_Vtbl { pub const fn new() -> Self { @@ -5000,7 +5000,7 @@ impl IAppxManifestHostRuntimeDependenciesEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestHostRuntimeDependenciesEnumerator_Impl::GetHasCurrent(this) { @@ -5012,7 +5012,7 @@ impl IAppxManifestHostRuntimeDependenciesEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestHostRuntimeDependenciesEnumerator_Impl::MoveNext(this) { @@ -5168,13 +5168,13 @@ impl IAppxManifestMainPackageDependenciesEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -5185,13 +5185,13 @@ impl IAppxManifestMainPackageDependenciesEnumerator { pub struct IAppxManifestMainPackageDependenciesEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxManifestMainPackageDependenciesEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxManifestMainPackageDependenciesEnumerator_Vtbl { pub const fn new() -> Self { @@ -5207,7 +5207,7 @@ impl IAppxManifestMainPackageDependenciesEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestMainPackageDependenciesEnumerator_Impl::GetHasCurrent(this) { @@ -5219,7 +5219,7 @@ impl IAppxManifestMainPackageDependenciesEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestMainPackageDependenciesEnumerator_Impl::MoveNext(this) { @@ -5336,13 +5336,13 @@ impl IAppxManifestOSPackageDependenciesEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -5353,13 +5353,13 @@ impl IAppxManifestOSPackageDependenciesEnumerator { pub struct IAppxManifestOSPackageDependenciesEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxManifestOSPackageDependenciesEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxManifestOSPackageDependenciesEnumerator_Vtbl { pub const fn new() -> Self { @@ -5375,7 +5375,7 @@ impl IAppxManifestOSPackageDependenciesEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestOSPackageDependenciesEnumerator_Impl::GetHasCurrent(this) { @@ -5387,7 +5387,7 @@ impl IAppxManifestOSPackageDependenciesEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestOSPackageDependenciesEnumerator_Impl::MoveNext(this) { @@ -5473,7 +5473,7 @@ impl windows_core::RuntimeName for IAppxManifestOSPackageDependency {} windows_core::imp::define_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 { + pub unsafe fn GetIsOptionalPackage(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIsOptionalPackage)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -5489,16 +5489,16 @@ impl IAppxManifestOptionalPackageInfo { #[repr(C)] pub struct IAppxManifestOptionalPackageInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetIsOptionalPackage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetIsOptionalPackage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetMainPackageName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, } pub trait IAppxManifestOptionalPackageInfo_Impl: windows_core::IUnknownImpl { - fn GetIsOptionalPackage(&self) -> windows_core::Result; + fn GetIsOptionalPackage(&self) -> windows_core::Result; fn GetMainPackageName(&self) -> windows_core::Result; } impl IAppxManifestOptionalPackageInfo_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetIsOptionalPackage(this: *mut core::ffi::c_void, isoptionalpackage: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetIsOptionalPackage(this: *mut core::ffi::c_void, isoptionalpackage: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestOptionalPackageInfo_Impl::GetIsOptionalPackage(this) { @@ -5542,13 +5542,13 @@ impl IAppxManifestPackageDependenciesEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -5559,13 +5559,13 @@ impl IAppxManifestPackageDependenciesEnumerator { pub struct IAppxManifestPackageDependenciesEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxManifestPackageDependenciesEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxManifestPackageDependenciesEnumerator_Vtbl { pub const fn new() -> Self { @@ -5581,7 +5581,7 @@ impl IAppxManifestPackageDependenciesEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageDependenciesEnumerator_Impl::GetHasCurrent(this) { @@ -5593,7 +5593,7 @@ impl IAppxManifestPackageDependenciesEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageDependenciesEnumerator_Impl::MoveNext(this) { @@ -5749,7 +5749,7 @@ impl windows_core::RuntimeName for IAppxManifestPackageDependency2 {} windows_core::imp::define_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 { + pub unsafe fn GetIsOptional(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIsOptional)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -5759,14 +5759,14 @@ impl IAppxManifestPackageDependency3 { #[repr(C)] pub struct IAppxManifestPackageDependency3_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetIsOptional: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetIsOptional: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxManifestPackageDependency3_Impl: windows_core::IUnknownImpl { - fn GetIsOptional(&self) -> windows_core::Result; + fn GetIsOptional(&self) -> windows_core::Result; } impl IAppxManifestPackageDependency3_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetIsOptional(this: *mut core::ffi::c_void, isoptional: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetIsOptional(this: *mut core::ffi::c_void, isoptional: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageDependency3_Impl::GetIsOptional(this) { @@ -5818,7 +5818,7 @@ impl IAppxManifestPackageId { (windows_core::Interface::vtable(self).GetResourceId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn ComparePublisher(&self, other: P0) -> windows_core::Result + pub unsafe fn ComparePublisher(&self, other: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -5848,7 +5848,7 @@ pub struct IAppxManifestPackageId_Vtbl { pub GetPublisher: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetVersion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub GetResourceId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub ComparePublisher: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ComparePublisher: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetPackageFullName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetPackageFamilyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, } @@ -5858,7 +5858,7 @@ pub trait IAppxManifestPackageId_Impl: windows_core::IUnknownImpl { fn GetPublisher(&self) -> windows_core::Result; fn GetVersion(&self) -> windows_core::Result; fn GetResourceId(&self) -> windows_core::Result; - fn ComparePublisher(&self, other: &windows_core::PCWSTR) -> windows_core::Result; + fn ComparePublisher(&self, other: &windows_core::PCWSTR) -> windows_core::Result; fn GetPackageFullName(&self) -> windows_core::Result; fn GetPackageFamilyName(&self) -> windows_core::Result; } @@ -5924,7 +5924,7 @@ impl IAppxManifestPackageId_Vtbl { } } } - unsafe extern "system" fn ComparePublisher(this: *mut core::ffi::c_void, other: windows_core::PCWSTR, issame: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ComparePublisher(this: *mut core::ffi::c_void, other: windows_core::PCWSTR, issame: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestPackageId_Impl::ComparePublisher(this, core::mem::transmute(&other)) { @@ -6025,7 +6025,7 @@ impl windows_core::RuntimeName for IAppxManifestPackageId2 {} windows_core::imp::define_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 + pub unsafe fn GetBoolValue(&self, name: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -6047,16 +6047,16 @@ impl IAppxManifestProperties { #[repr(C)] pub struct IAppxManifestProperties_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetBoolValue: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetBoolValue: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetStringValue: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::PWSTR) -> windows_core::HRESULT, } pub trait IAppxManifestProperties_Impl: windows_core::IUnknownImpl { - fn GetBoolValue(&self, name: &windows_core::PCWSTR) -> windows_core::Result; + fn GetBoolValue(&self, name: &windows_core::PCWSTR) -> windows_core::Result; fn GetStringValue(&self, name: &windows_core::PCWSTR) -> windows_core::Result; } impl IAppxManifestProperties_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetBoolValue(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetBoolValue(this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestProperties_Impl::GetBoolValue(this, core::mem::transmute(&name)) { @@ -6184,13 +6184,13 @@ impl IAppxManifestQualifiedResourcesEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6201,13 +6201,13 @@ impl IAppxManifestQualifiedResourcesEnumerator { pub struct IAppxManifestQualifiedResourcesEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxManifestQualifiedResourcesEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxManifestQualifiedResourcesEnumerator_Vtbl { pub const fn new() -> Self { @@ -6223,7 +6223,7 @@ impl IAppxManifestQualifiedResourcesEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestQualifiedResourcesEnumerator_Impl::GetHasCurrent(this) { @@ -6235,7 +6235,7 @@ impl IAppxManifestQualifiedResourcesEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestQualifiedResourcesEnumerator_Impl::MoveNext(this) { @@ -6689,7 +6689,7 @@ impl windows_core::RuntimeName for IAppxManifestReader5 {} windows_core::imp::define_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 { + pub unsafe fn GetIsNonQualifiedResourcePackage(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIsNonQualifiedResourcePackage)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6699,14 +6699,14 @@ impl IAppxManifestReader6 { #[repr(C)] pub struct IAppxManifestReader6_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetIsNonQualifiedResourcePackage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetIsNonQualifiedResourcePackage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxManifestReader6_Impl: windows_core::IUnknownImpl { - fn GetIsNonQualifiedResourcePackage(&self) -> windows_core::Result; + fn GetIsNonQualifiedResourcePackage(&self) -> windows_core::Result; } impl IAppxManifestReader6_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetIsNonQualifiedResourcePackage(this: *mut core::ffi::c_void, isnonqualifiedresourcepackage: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetIsNonQualifiedResourcePackage(this: *mut core::ffi::c_void, isnonqualifiedresourcepackage: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestReader6_Impl::GetIsNonQualifiedResourcePackage(this) { @@ -6821,13 +6821,13 @@ impl IAppxManifestResourcesEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6838,13 +6838,13 @@ impl IAppxManifestResourcesEnumerator { pub struct IAppxManifestResourcesEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxManifestResourcesEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxManifestResourcesEnumerator_Vtbl { pub const fn new() -> Self { @@ -6860,7 +6860,7 @@ impl IAppxManifestResourcesEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestResourcesEnumerator_Impl::GetHasCurrent(this) { @@ -6872,7 +6872,7 @@ impl IAppxManifestResourcesEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestResourcesEnumerator_Impl::MoveNext(this) { @@ -6905,13 +6905,13 @@ impl IAppxManifestTargetDeviceFamiliesEnumerator { (windows_core::Interface::vtable(self).GetCurrent)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { + pub unsafe fn GetHasCurrent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetHasCurrent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6922,13 +6922,13 @@ impl IAppxManifestTargetDeviceFamiliesEnumerator { pub struct IAppxManifestTargetDeviceFamiliesEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetHasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAppxManifestTargetDeviceFamiliesEnumerator_Impl: windows_core::IUnknownImpl { fn GetCurrent(&self) -> windows_core::Result; - fn GetHasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn GetHasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; } impl IAppxManifestTargetDeviceFamiliesEnumerator_Vtbl { pub const fn new() -> Self { @@ -6944,7 +6944,7 @@ impl IAppxManifestTargetDeviceFamiliesEnumerator_Vtbl { } } } - unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetHasCurrent(this: *mut core::ffi::c_void, hascurrent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestTargetDeviceFamiliesEnumerator_Impl::GetHasCurrent(this) { @@ -6956,7 +6956,7 @@ impl IAppxManifestTargetDeviceFamiliesEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppxManifestTargetDeviceFamiliesEnumerator_Impl::MoveNext(this) { @@ -7138,7 +7138,7 @@ pub struct IAppxPackageEditor_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] UpdateEncryptedPackage: usize, #[cfg(feature = "Win32_System_Com")] - pub UpdatePackageManifest: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::BOOL, APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS) -> windows_core::HRESULT, + pub UpdatePackageManifest: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] UpdatePackageManifest: usize, } @@ -7149,7 +7149,7 @@ pub trait IAppxPackageEditor_Impl: windows_core::IUnknownImpl { fn CreateDeltaPackageUsingBaselineBlockMap(&self, updatedpackagestream: windows_core::Ref, baselineblockmapstream: windows_core::Ref, baselinepackagefullname: &windows_core::PCWSTR, deltapackagestream: windows_core::Ref) -> windows_core::Result<()>; fn UpdatePackage(&self, baselinepackagestream: windows_core::Ref, deltapackagestream: windows_core::Ref, updateoption: APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION) -> windows_core::Result<()>; fn UpdateEncryptedPackage(&self, baselineencryptedpackagestream: windows_core::Ref, deltapackagestream: windows_core::Ref, updateoption: APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION, settings: *const APPX_ENCRYPTED_PACKAGE_SETTINGS2, keyinfo: *const APPX_KEY_INFO) -> windows_core::Result<()>; - fn UpdatePackageManifest(&self, packagestream: windows_core::Ref, updatedmanifeststream: windows_core::Ref, ispackageencrypted: super::super::super::Foundation::BOOL, options: APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS) -> windows_core::Result<()>; + fn UpdatePackageManifest(&self, packagestream: windows_core::Ref, updatedmanifeststream: windows_core::Ref, ispackageencrypted: windows_core::BOOL, options: APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl IAppxPackageEditor_Vtbl { @@ -7184,7 +7184,7 @@ impl IAppxPackageEditor_Vtbl { IAppxPackageEditor_Impl::UpdateEncryptedPackage(this, core::mem::transmute_copy(&baselineencryptedpackagestream), core::mem::transmute_copy(&deltapackagestream), core::mem::transmute_copy(&updateoption), core::mem::transmute_copy(&settings), core::mem::transmute_copy(&keyinfo)).into() } } - unsafe extern "system" fn UpdatePackageManifest(this: *mut core::ffi::c_void, packagestream: *mut core::ffi::c_void, updatedmanifeststream: *mut core::ffi::c_void, ispackageencrypted: super::super::super::Foundation::BOOL, options: APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS) -> windows_core::HRESULT { + unsafe extern "system" fn UpdatePackageManifest(this: *mut core::ffi::c_void, packagestream: *mut core::ffi::c_void, updatedmanifeststream: *mut core::ffi::c_void, ispackageencrypted: windows_core::BOOL, options: APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppxPackageEditor_Impl::UpdatePackageManifest(this, core::mem::transmute_copy(&packagestream), core::mem::transmute_copy(&updatedmanifeststream), core::mem::transmute_copy(&ispackageencrypted), core::mem::transmute_copy(&options)).into() 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 c69e4e42b8..9690c8c372 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,13 +1,13 @@ windows_core::imp::define_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 { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MovePrevious(&self) -> windows_core::Result { + pub unsafe fn MovePrevious(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MovePrevious)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -30,8 +30,8 @@ impl IOpcCertificateEnumerator { #[repr(C)] pub struct IOpcCertificateEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MovePrevious: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MovePrevious: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_Security_Cryptography")] pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut super::super::super::Security::Cryptography::CERT_CONTEXT) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Security_Cryptography"))] @@ -40,15 +40,15 @@ pub struct IOpcCertificateEnumerator_Vtbl { } #[cfg(feature = "Win32_Security_Cryptography")] pub trait IOpcCertificateEnumerator_Impl: windows_core::IUnknownImpl { - fn MoveNext(&self) -> windows_core::Result; - fn MovePrevious(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; + fn MovePrevious(&self) -> windows_core::Result; fn GetCurrent(&self) -> windows_core::Result<*mut super::super::super::Security::Cryptography::CERT_CONTEXT>; fn Clone(&self) -> windows_core::Result; } #[cfg(feature = "Win32_Security_Cryptography")] impl IOpcCertificateEnumerator_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcCertificateEnumerator_Impl::MoveNext(this) { @@ -60,7 +60,7 @@ impl IOpcCertificateEnumerator_Vtbl { } } } - unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcCertificateEnumerator_Impl::MovePrevious(this) { @@ -506,13 +506,13 @@ impl windows_core::RuntimeName for IOpcDigitalSignature {} windows_core::imp::define_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 { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MovePrevious(&self) -> windows_core::Result { + pub unsafe fn MovePrevious(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MovePrevious)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -534,20 +534,20 @@ impl IOpcDigitalSignatureEnumerator { #[repr(C)] pub struct IOpcDigitalSignatureEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MovePrevious: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MovePrevious: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IOpcDigitalSignatureEnumerator_Impl: windows_core::IUnknownImpl { - fn MoveNext(&self) -> windows_core::Result; - fn MovePrevious(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; + fn MovePrevious(&self) -> windows_core::Result; fn GetCurrent(&self) -> windows_core::Result; fn Clone(&self) -> windows_core::Result; } impl IOpcDigitalSignatureEnumerator_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignatureEnumerator_Impl::MoveNext(this) { @@ -559,7 +559,7 @@ impl IOpcDigitalSignatureEnumerator_Vtbl { } } } - unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcDigitalSignatureEnumerator_Impl::MovePrevious(this) { @@ -1222,13 +1222,13 @@ impl windows_core::RuntimeName for IOpcPart {} windows_core::imp::define_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 { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MovePrevious(&self) -> windows_core::Result { + pub unsafe fn MovePrevious(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MovePrevious)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1250,20 +1250,20 @@ impl IOpcPartEnumerator { #[repr(C)] pub struct IOpcPartEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MovePrevious: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MovePrevious: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IOpcPartEnumerator_Impl: windows_core::IUnknownImpl { - fn MoveNext(&self) -> windows_core::Result; - fn MovePrevious(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; + fn MovePrevious(&self) -> windows_core::Result; fn GetCurrent(&self) -> windows_core::Result; fn Clone(&self) -> windows_core::Result; } impl IOpcPartEnumerator_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPartEnumerator_Impl::MoveNext(this) { @@ -1275,7 +1275,7 @@ impl IOpcPartEnumerator_Vtbl { } } } - unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPartEnumerator_Impl::MovePrevious(this) { @@ -1356,7 +1356,7 @@ impl IOpcPartSet { unsafe { (windows_core::Interface::vtable(self).DeletePart)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] - pub unsafe fn PartExists(&self, name: P0) -> windows_core::Result + pub unsafe fn PartExists(&self, name: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -1388,7 +1388,7 @@ pub struct IOpcPartSet_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] DeletePart: usize, #[cfg(feature = "Win32_System_Com")] - pub PartExists: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub PartExists: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] PartExists: usize, pub GetEnumerator: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1398,7 +1398,7 @@ pub trait IOpcPartSet_Impl: windows_core::IUnknownImpl { fn GetPart(&self, name: windows_core::Ref) -> windows_core::Result; fn CreatePart(&self, name: windows_core::Ref, contenttype: &windows_core::PCWSTR, compressionoptions: OPC_COMPRESSION_OPTIONS) -> windows_core::Result; fn DeletePart(&self, name: windows_core::Ref) -> windows_core::Result<()>; - fn PartExists(&self, name: windows_core::Ref) -> windows_core::Result; + fn PartExists(&self, name: windows_core::Ref) -> windows_core::Result; fn GetEnumerator(&self) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] @@ -1434,7 +1434,7 @@ impl IOpcPartSet_Vtbl { IOpcPartSet_Impl::DeletePart(this, core::mem::transmute_copy(&name)).into() } } - unsafe extern "system" fn PartExists(this: *mut core::ffi::c_void, name: *mut core::ffi::c_void, partexists: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn PartExists(this: *mut core::ffi::c_void, name: *mut core::ffi::c_void, partexists: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPartSet_Impl::PartExists(this, core::mem::transmute_copy(&name)) { @@ -1501,7 +1501,7 @@ impl IOpcPartUri { (windows_core::Interface::vtable(self).GetSourceUri)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn IsRelationshipsPartUri(&self) -> windows_core::Result { + pub unsafe fn IsRelationshipsPartUri(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsRelationshipsPartUri)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1514,13 +1514,13 @@ pub struct IOpcPartUri_Vtbl { pub base__: IOpcUri_Vtbl, pub ComparePartUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub GetSourceUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsRelationshipsPartUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsRelationshipsPartUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait IOpcPartUri_Impl: IOpcUri_Impl { fn ComparePartUri(&self, parturi: windows_core::Ref) -> windows_core::Result; fn GetSourceUri(&self) -> windows_core::Result; - fn IsRelationshipsPartUri(&self) -> windows_core::Result; + fn IsRelationshipsPartUri(&self) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl IOpcPartUri_Vtbl { @@ -1549,7 +1549,7 @@ impl IOpcPartUri_Vtbl { } } } - unsafe extern "system" fn IsRelationshipsPartUri(this: *mut core::ffi::c_void, isrelationshipuri: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsRelationshipsPartUri(this: *mut core::ffi::c_void, isrelationshipuri: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcPartUri_Impl::IsRelationshipsPartUri(this) { @@ -1714,13 +1714,13 @@ impl windows_core::RuntimeName for IOpcRelationship {} windows_core::imp::define_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 { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MovePrevious(&self) -> windows_core::Result { + pub unsafe fn MovePrevious(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MovePrevious)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1742,20 +1742,20 @@ impl IOpcRelationshipEnumerator { #[repr(C)] pub struct IOpcRelationshipEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MovePrevious: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MovePrevious: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IOpcRelationshipEnumerator_Impl: windows_core::IUnknownImpl { - fn MoveNext(&self) -> windows_core::Result; - fn MovePrevious(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; + fn MovePrevious(&self) -> windows_core::Result; fn GetCurrent(&self) -> windows_core::Result; fn Clone(&self) -> windows_core::Result; } impl IOpcRelationshipEnumerator_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipEnumerator_Impl::MoveNext(this) { @@ -1767,7 +1767,7 @@ impl IOpcRelationshipEnumerator_Vtbl { } } } - unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipEnumerator_Impl::MovePrevious(this) { @@ -1882,13 +1882,13 @@ impl windows_core::RuntimeName for IOpcRelationshipSelector {} windows_core::imp::define_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 { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MovePrevious(&self) -> windows_core::Result { + pub unsafe fn MovePrevious(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MovePrevious)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1910,20 +1910,20 @@ impl IOpcRelationshipSelectorEnumerator { #[repr(C)] pub struct IOpcRelationshipSelectorEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MovePrevious: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MovePrevious: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IOpcRelationshipSelectorEnumerator_Impl: windows_core::IUnknownImpl { - fn MoveNext(&self) -> windows_core::Result; - fn MovePrevious(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; + fn MovePrevious(&self) -> windows_core::Result; fn GetCurrent(&self) -> windows_core::Result; fn Clone(&self) -> windows_core::Result; } impl IOpcRelationshipSelectorEnumerator_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipSelectorEnumerator_Impl::MoveNext(this) { @@ -1935,7 +1935,7 @@ impl IOpcRelationshipSelectorEnumerator_Vtbl { } } } - unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipSelectorEnumerator_Impl::MovePrevious(this) { @@ -2095,7 +2095,7 @@ impl IOpcRelationshipSet { { unsafe { (windows_core::Interface::vtable(self).DeleteRelationship)(windows_core::Interface::as_raw(self), relationshipidentifier.param().abi()).ok() } } - pub unsafe fn RelationshipExists(&self, relationshipidentifier: P0) -> windows_core::Result + pub unsafe fn RelationshipExists(&self, relationshipidentifier: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -2136,7 +2136,7 @@ pub struct IOpcRelationshipSet_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateRelationship: usize, pub DeleteRelationship: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, - pub RelationshipExists: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub RelationshipExists: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetEnumerator: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetEnumeratorForType: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -2149,7 +2149,7 @@ pub trait IOpcRelationshipSet_Impl: windows_core::IUnknownImpl { fn GetRelationship(&self, relationshipidentifier: &windows_core::PCWSTR) -> windows_core::Result; fn CreateRelationship(&self, relationshipidentifier: &windows_core::PCWSTR, relationshiptype: &windows_core::PCWSTR, targeturi: windows_core::Ref, targetmode: OPC_URI_TARGET_MODE) -> windows_core::Result; fn DeleteRelationship(&self, relationshipidentifier: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn RelationshipExists(&self, relationshipidentifier: &windows_core::PCWSTR) -> windows_core::Result; + fn RelationshipExists(&self, relationshipidentifier: &windows_core::PCWSTR) -> windows_core::Result; fn GetEnumerator(&self) -> windows_core::Result; fn GetEnumeratorForType(&self, relationshiptype: &windows_core::PCWSTR) -> windows_core::Result; fn GetRelationshipsContentStream(&self) -> windows_core::Result; @@ -2187,7 +2187,7 @@ impl IOpcRelationshipSet_Vtbl { IOpcRelationshipSet_Impl::DeleteRelationship(this, core::mem::transmute(&relationshipidentifier)).into() } } - unsafe extern "system" fn RelationshipExists(this: *mut core::ffi::c_void, relationshipidentifier: windows_core::PCWSTR, relationshipexists: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RelationshipExists(this: *mut core::ffi::c_void, relationshipidentifier: windows_core::PCWSTR, relationshipexists: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcRelationshipSet_Impl::RelationshipExists(this, core::mem::transmute(&relationshipidentifier)) { @@ -2285,13 +2285,13 @@ impl windows_core::RuntimeName for IOpcSignatureCustomObject {} windows_core::imp::define_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 { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MovePrevious(&self) -> windows_core::Result { + pub unsafe fn MovePrevious(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MovePrevious)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2313,20 +2313,20 @@ impl IOpcSignatureCustomObjectEnumerator { #[repr(C)] pub struct IOpcSignatureCustomObjectEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MovePrevious: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MovePrevious: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IOpcSignatureCustomObjectEnumerator_Impl: windows_core::IUnknownImpl { - fn MoveNext(&self) -> windows_core::Result; - fn MovePrevious(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; + fn MovePrevious(&self) -> windows_core::Result; fn GetCurrent(&self) -> windows_core::Result; fn Clone(&self) -> windows_core::Result; } impl IOpcSignatureCustomObjectEnumerator_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureCustomObjectEnumerator_Impl::MoveNext(this) { @@ -2338,7 +2338,7 @@ impl IOpcSignatureCustomObjectEnumerator_Vtbl { } } } - unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureCustomObjectEnumerator_Impl::MovePrevious(this) { @@ -2592,13 +2592,13 @@ impl windows_core::RuntimeName for IOpcSignaturePartReference {} windows_core::imp::define_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 { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MovePrevious(&self) -> windows_core::Result { + pub unsafe fn MovePrevious(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MovePrevious)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2620,20 +2620,20 @@ impl IOpcSignaturePartReferenceEnumerator { #[repr(C)] pub struct IOpcSignaturePartReferenceEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MovePrevious: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MovePrevious: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IOpcSignaturePartReferenceEnumerator_Impl: windows_core::IUnknownImpl { - fn MoveNext(&self) -> windows_core::Result; - fn MovePrevious(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; + fn MovePrevious(&self) -> windows_core::Result; fn GetCurrent(&self) -> windows_core::Result; fn Clone(&self) -> windows_core::Result; } impl IOpcSignaturePartReferenceEnumerator_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignaturePartReferenceEnumerator_Impl::MoveNext(this) { @@ -2645,7 +2645,7 @@ impl IOpcSignaturePartReferenceEnumerator_Vtbl { } } } - unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignaturePartReferenceEnumerator_Impl::MovePrevious(this) { @@ -2931,13 +2931,13 @@ impl windows_core::RuntimeName for IOpcSignatureReference {} windows_core::imp::define_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 { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MovePrevious(&self) -> windows_core::Result { + pub unsafe fn MovePrevious(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MovePrevious)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2959,20 +2959,20 @@ impl IOpcSignatureReferenceEnumerator { #[repr(C)] pub struct IOpcSignatureReferenceEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MovePrevious: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MovePrevious: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IOpcSignatureReferenceEnumerator_Impl: windows_core::IUnknownImpl { - fn MoveNext(&self) -> windows_core::Result; - fn MovePrevious(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; + fn MovePrevious(&self) -> windows_core::Result; fn GetCurrent(&self) -> windows_core::Result; fn Clone(&self) -> windows_core::Result; } impl IOpcSignatureReferenceEnumerator_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureReferenceEnumerator_Impl::MoveNext(this) { @@ -2984,7 +2984,7 @@ impl IOpcSignatureReferenceEnumerator_Vtbl { } } } - unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureReferenceEnumerator_Impl::MovePrevious(this) { @@ -3272,13 +3272,13 @@ impl windows_core::RuntimeName for IOpcSignatureRelationshipReference {} windows_core::imp::define_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 { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn MovePrevious(&self) -> windows_core::Result { + pub unsafe fn MovePrevious(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MovePrevious)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3300,20 +3300,20 @@ impl IOpcSignatureRelationshipReferenceEnumerator { #[repr(C)] pub struct IOpcSignatureRelationshipReferenceEnumerator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MovePrevious: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub MovePrevious: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IOpcSignatureRelationshipReferenceEnumerator_Impl: windows_core::IUnknownImpl { - fn MoveNext(&self) -> windows_core::Result; - fn MovePrevious(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; + fn MovePrevious(&self) -> windows_core::Result; fn GetCurrent(&self) -> windows_core::Result; fn Clone(&self) -> windows_core::Result; } impl IOpcSignatureRelationshipReferenceEnumerator_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, hasnext: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureRelationshipReferenceEnumerator_Impl::MoveNext(this) { @@ -3325,7 +3325,7 @@ impl IOpcSignatureRelationshipReferenceEnumerator_Vtbl { } } } - unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MovePrevious(this: *mut core::ffi::c_void, hasprevious: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpcSignatureRelationshipReferenceEnumerator_Impl::MovePrevious(this) { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Vhd/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Vhd/mod.rs index eb6a18f611..37a73560c6 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Vhd/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Vhd/mod.rs @@ -944,8 +944,8 @@ pub union GET_VIRTUAL_DISK_INFO_0 { pub ParentTimestamp: u32, pub VirtualStorageType: VIRTUAL_STORAGE_TYPE, pub ProviderSubtype: u32, - pub Is4kAligned: super::super::Foundation::BOOL, - pub IsLoaded: super::super::Foundation::BOOL, + pub Is4kAligned: windows_core::BOOL, + pub IsLoaded: windows_core::BOOL, pub PhysicalDisk: GET_VIRTUAL_DISK_INFO_0_2, pub VhdPhysicalSectorSize: u32, pub SmallestSafeVirtualSize: u64, @@ -961,8 +961,8 @@ impl Default for GET_VIRTUAL_DISK_INFO_0 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct GET_VIRTUAL_DISK_INFO_0_3 { - pub Enabled: super::super::Foundation::BOOL, - pub NewerChanges: super::super::Foundation::BOOL, + pub Enabled: windows_core::BOOL, + pub NewerChanges: windows_core::BOOL, pub MostRecentId: [u16; 1], } impl Default for GET_VIRTUAL_DISK_INFO_0_3 { @@ -973,7 +973,7 @@ impl Default for GET_VIRTUAL_DISK_INFO_0_3 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct GET_VIRTUAL_DISK_INFO_0_1 { - pub ParentResolved: super::super::Foundation::BOOL, + pub ParentResolved: windows_core::BOOL, pub ParentLocationBuffer: [u16; 1], } impl Default for GET_VIRTUAL_DISK_INFO_0_1 { @@ -986,7 +986,7 @@ impl Default for GET_VIRTUAL_DISK_INFO_0_1 { pub struct GET_VIRTUAL_DISK_INFO_0_2 { pub LogicalSectorSize: u32, pub PhysicalSectorSize: u32, - pub IsRemote: super::super::Foundation::BOOL, + pub IsRemote: windows_core::BOOL, } impl Default for GET_VIRTUAL_DISK_INFO_0_2 { fn default() -> Self { @@ -1353,8 +1353,8 @@ impl Default for OPEN_VIRTUAL_DISK_PARAMETERS_0_0 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct OPEN_VIRTUAL_DISK_PARAMETERS_0_1 { - pub GetInfoOnly: super::super::Foundation::BOOL, - pub ReadOnly: super::super::Foundation::BOOL, + pub GetInfoOnly: windows_core::BOOL, + pub ReadOnly: windows_core::BOOL, pub ResiliencyGuid: windows_core::GUID, } impl Default for OPEN_VIRTUAL_DISK_PARAMETERS_0_1 { @@ -1365,8 +1365,8 @@ impl Default for OPEN_VIRTUAL_DISK_PARAMETERS_0_1 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct OPEN_VIRTUAL_DISK_PARAMETERS_0_2 { - pub GetInfoOnly: super::super::Foundation::BOOL, - pub ReadOnly: super::super::Foundation::BOOL, + pub GetInfoOnly: windows_core::BOOL, + pub ReadOnly: windows_core::BOOL, pub ResiliencyGuid: windows_core::GUID, pub SnapshotId: windows_core::GUID, } @@ -1493,7 +1493,7 @@ impl Default for RAW_SCSI_VIRTUAL_DISK_PARAMETERS_0 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct RAW_SCSI_VIRTUAL_DISK_PARAMETERS_0_0 { - pub RSVDHandle: super::super::Foundation::BOOL, + pub RSVDHandle: windows_core::BOOL, pub DataIn: u8, pub CdbLength: u8, pub SenseInfoLength: u8, @@ -1640,7 +1640,7 @@ pub union SET_VIRTUAL_DISK_INFO_0 { pub ParentPathWithDepthInfo: SET_VIRTUAL_DISK_INFO_0_0, pub VhdPhysicalSectorSize: u32, pub VirtualDiskId: windows_core::GUID, - pub ChangeTrackingEnabled: super::super::Foundation::BOOL, + pub ChangeTrackingEnabled: windows_core::BOOL, pub ParentLocator: SET_VIRTUAL_DISK_INFO_0_1, } impl Default for SET_VIRTUAL_DISK_INFO_0 { 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 3b48cd3172..99bb98b63d 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/mod.rs @@ -313,25 +313,25 @@ pub struct IVdsAdvancedDisk_Vtbl { pub GetPartitionProperties: unsafe extern "system" fn(*mut core::ffi::c_void, u64, *mut VDS_PARTITION_PROP) -> windows_core::HRESULT, pub QueryPartitions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut VDS_PARTITION_PROP, *mut i32) -> windows_core::HRESULT, pub CreatePartition: unsafe extern "system" fn(*mut core::ffi::c_void, u64, u64, *const CREATE_PARTITION_PARAMETERS, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub DeletePartition: unsafe extern "system" fn(*mut core::ffi::c_void, u64, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub DeletePartition: unsafe extern "system" fn(*mut core::ffi::c_void, u64, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, pub ChangeAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, u64, *const CHANGE_ATTRIBUTES_PARAMETERS) -> windows_core::HRESULT, pub AssignDriveLetter: unsafe extern "system" fn(*mut core::ffi::c_void, u64, u16) -> windows_core::HRESULT, pub DeleteDriveLetter: unsafe extern "system" fn(*mut core::ffi::c_void, u64, u16) -> windows_core::HRESULT, pub GetDriveLetter: unsafe extern "system" fn(*mut core::ffi::c_void, u64, windows_core::PWSTR) -> windows_core::HRESULT, - pub FormatPartition: unsafe extern "system" fn(*mut core::ffi::c_void, u64, VDS_FILE_SYSTEM_TYPE, windows_core::PCWSTR, u32, super::super::Foundation::BOOL, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Clean: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub FormatPartition: unsafe extern "system" fn(*mut core::ffi::c_void, u64, VDS_FILE_SYSTEM_TYPE, windows_core::PCWSTR, u32, windows_core::BOOL, windows_core::BOOL, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub Clean: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IVdsAdvancedDisk_Impl: windows_core::IUnknownImpl { fn GetPartitionProperties(&self, ulloffset: u64, ppartitionprop: *mut VDS_PARTITION_PROP) -> windows_core::Result<()>; fn QueryPartitions(&self, pppartitionproparray: *mut *mut VDS_PARTITION_PROP, plnumberofpartitions: *mut i32) -> windows_core::Result<()>; fn CreatePartition(&self, ulloffset: u64, ullsize: u64, para: *const CREATE_PARTITION_PARAMETERS) -> windows_core::Result; - fn DeletePartition(&self, ulloffset: u64, bforce: super::super::Foundation::BOOL, bforceprotected: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn DeletePartition(&self, ulloffset: u64, bforce: windows_core::BOOL, bforceprotected: windows_core::BOOL) -> windows_core::Result<()>; fn ChangeAttributes(&self, ulloffset: u64, para: *const CHANGE_ATTRIBUTES_PARAMETERS) -> windows_core::Result<()>; fn AssignDriveLetter(&self, ulloffset: u64, wcletter: u16) -> windows_core::Result<()>; fn DeleteDriveLetter(&self, ulloffset: u64, wcletter: u16) -> windows_core::Result<()>; fn GetDriveLetter(&self, ulloffset: u64, pwcletter: windows_core::PWSTR) -> windows_core::Result<()>; - fn FormatPartition(&self, 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) -> windows_core::Result; - fn Clean(&self, bforce: super::super::Foundation::BOOL, bforceoem: super::super::Foundation::BOOL, bfullclean: super::super::Foundation::BOOL) -> windows_core::Result; + fn FormatPartition(&self, ulloffset: u64, r#type: VDS_FILE_SYSTEM_TYPE, pwszlabel: &windows_core::PCWSTR, dwunitallocationsize: u32, bforce: windows_core::BOOL, bquickformat: windows_core::BOOL, benablecompression: windows_core::BOOL) -> windows_core::Result; + fn Clean(&self, bforce: windows_core::BOOL, bforceoem: windows_core::BOOL, bfullclean: windows_core::BOOL) -> windows_core::Result; } impl IVdsAdvancedDisk_Vtbl { pub const fn new() -> Self { @@ -359,7 +359,7 @@ impl IVdsAdvancedDisk_Vtbl { } } } - unsafe extern "system" fn DeletePartition(this: *mut core::ffi::c_void, ulloffset: u64, bforce: super::super::Foundation::BOOL, bforceprotected: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DeletePartition(this: *mut core::ffi::c_void, ulloffset: u64, bforce: windows_core::BOOL, bforceprotected: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsAdvancedDisk_Impl::DeletePartition(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute_copy(&bforce), core::mem::transmute_copy(&bforceprotected)).into() @@ -389,7 +389,7 @@ impl IVdsAdvancedDisk_Vtbl { IVdsAdvancedDisk_Impl::GetDriveLetter(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute_copy(&pwcletter)).into() } } - unsafe extern "system" fn FormatPartition(this: *mut core::ffi::c_void, ulloffset: u64, r#type: VDS_FILE_SYSTEM_TYPE, pwszlabel: windows_core::PCWSTR, dwunitallocationsize: u32, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn FormatPartition(this: *mut core::ffi::c_void, ulloffset: u64, r#type: VDS_FILE_SYSTEM_TYPE, pwszlabel: windows_core::PCWSTR, dwunitallocationsize: u32, bforce: windows_core::BOOL, bquickformat: windows_core::BOOL, benablecompression: windows_core::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsAdvancedDisk_Impl::FormatPartition(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute_copy(&r#type), core::mem::transmute(&pwszlabel), core::mem::transmute_copy(&dwunitallocationsize), core::mem::transmute_copy(&bforce), core::mem::transmute_copy(&bquickformat), core::mem::transmute_copy(&benablecompression)) { @@ -401,7 +401,7 @@ impl IVdsAdvancedDisk_Vtbl { } } } - unsafe extern "system" fn Clean(this: *mut core::ffi::c_void, bforce: super::super::Foundation::BOOL, bforceoem: super::super::Foundation::BOOL, bfullclean: super::super::Foundation::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn Clean(this: *mut core::ffi::c_void, bforce: windows_core::BOOL, bforceoem: windows_core::BOOL, bfullclean: windows_core::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsAdvancedDisk_Impl::Clean(this, core::mem::transmute_copy(&bforce), core::mem::transmute_copy(&bforceoem), core::mem::transmute_copy(&bfullclean)) { @@ -442,14 +442,14 @@ impl IVdsAdvancedDisk2 { #[repr(C)] pub struct IVdsAdvancedDisk2_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub ChangePartitionType: unsafe extern "system" fn(*mut core::ffi::c_void, u64, super::super::Foundation::BOOL, *const CHANGE_PARTITION_TYPE_PARAMETERS) -> windows_core::HRESULT, + pub ChangePartitionType: unsafe extern "system" fn(*mut core::ffi::c_void, u64, windows_core::BOOL, *const CHANGE_PARTITION_TYPE_PARAMETERS) -> windows_core::HRESULT, } pub trait IVdsAdvancedDisk2_Impl: windows_core::IUnknownImpl { - fn ChangePartitionType(&self, ulloffset: u64, bforce: super::super::Foundation::BOOL, para: *const CHANGE_PARTITION_TYPE_PARAMETERS) -> windows_core::Result<()>; + fn ChangePartitionType(&self, ulloffset: u64, bforce: windows_core::BOOL, para: *const CHANGE_PARTITION_TYPE_PARAMETERS) -> windows_core::Result<()>; } impl IVdsAdvancedDisk2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn ChangePartitionType(this: *mut core::ffi::c_void, ulloffset: u64, bforce: super::super::Foundation::BOOL, para: *const CHANGE_PARTITION_TYPE_PARAMETERS) -> windows_core::HRESULT { + unsafe extern "system" fn ChangePartitionType(this: *mut core::ffi::c_void, ulloffset: u64, bforce: windows_core::BOOL, para: *const CHANGE_PARTITION_TYPE_PARAMETERS) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsAdvancedDisk2_Impl::ChangePartitionType(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute_copy(&bforce), core::mem::transmute_copy(¶)).into() @@ -1039,14 +1039,14 @@ impl IVdsDisk2 { #[repr(C)] pub struct IVdsDisk2_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetSANMode: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetSANMode: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IVdsDisk2_Impl: windows_core::IUnknownImpl { - fn SetSANMode(&self, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetSANMode(&self, benable: windows_core::BOOL) -> windows_core::Result<()>; } impl IVdsDisk2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetSANMode(this: *mut core::ffi::c_void, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetSANMode(this: *mut core::ffi::c_void, benable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsDisk2_Impl::SetSANMode(this, core::mem::transmute_copy(&benable)).into() @@ -1177,13 +1177,13 @@ pub struct IVdsDiskPartitionMF_Vtbl { pub GetPartitionFileSystemProperties: unsafe extern "system" fn(*mut core::ffi::c_void, u64, *mut VDS_FILE_SYSTEM_PROP) -> windows_core::HRESULT, pub GetPartitionFileSystemTypeName: unsafe extern "system" fn(*mut core::ffi::c_void, u64, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub QueryPartitionFileSystemFormatSupport: unsafe extern "system" fn(*mut core::ffi::c_void, u64, *mut *mut VDS_FILE_SYSTEM_FORMAT_SUPPORT_PROP, *mut i32) -> windows_core::HRESULT, - pub FormatPartitionEx: unsafe extern "system" fn(*mut core::ffi::c_void, u64, windows_core::PCWSTR, u16, u32, windows_core::PCWSTR, super::super::Foundation::BOOL, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub FormatPartitionEx: unsafe extern "system" fn(*mut core::ffi::c_void, u64, windows_core::PCWSTR, u16, u32, windows_core::PCWSTR, windows_core::BOOL, windows_core::BOOL, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IVdsDiskPartitionMF_Impl: windows_core::IUnknownImpl { fn GetPartitionFileSystemProperties(&self, ulloffset: u64, pfilesystemprop: *mut VDS_FILE_SYSTEM_PROP) -> windows_core::Result<()>; fn GetPartitionFileSystemTypeName(&self, ulloffset: u64) -> windows_core::Result; fn QueryPartitionFileSystemFormatSupport(&self, ulloffset: u64, ppfilesystemsupportprops: *mut *mut VDS_FILE_SYSTEM_FORMAT_SUPPORT_PROP, plnumberoffilesystems: *mut i32) -> windows_core::Result<()>; - fn FormatPartitionEx(&self, 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) -> windows_core::Result; + fn FormatPartitionEx(&self, ulloffset: u64, pwszfilesystemtypename: &windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: &windows_core::PCWSTR, bforce: windows_core::BOOL, bquickformat: windows_core::BOOL, benablecompression: windows_core::BOOL) -> windows_core::Result; } impl IVdsDiskPartitionMF_Vtbl { pub const fn new() -> Self { @@ -1211,7 +1211,7 @@ impl IVdsDiskPartitionMF_Vtbl { IVdsDiskPartitionMF_Impl::QueryPartitionFileSystemFormatSupport(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute_copy(&ppfilesystemsupportprops), core::mem::transmute_copy(&plnumberoffilesystems)).into() } } - unsafe extern "system" fn FormatPartitionEx(this: *mut core::ffi::c_void, ulloffset: u64, pwszfilesystemtypename: windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: windows_core::PCWSTR, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn FormatPartitionEx(this: *mut core::ffi::c_void, ulloffset: u64, pwszfilesystemtypename: windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: windows_core::PCWSTR, bforce: windows_core::BOOL, bquickformat: windows_core::BOOL, benablecompression: windows_core::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsDiskPartitionMF_Impl::FormatPartitionEx(this, core::mem::transmute_copy(&ulloffset), core::mem::transmute(&pwszfilesystemtypename), core::mem::transmute_copy(&usfilesystemrevision), core::mem::transmute_copy(&uldesiredunitallocationsize), core::mem::transmute(&pwszlabel), core::mem::transmute_copy(&bforce), core::mem::transmute_copy(&bquickformat), core::mem::transmute_copy(&benablecompression)) { @@ -1789,13 +1789,13 @@ pub struct IVdsIscsiInitiatorAdapter_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut VDS_ISCSI_INITIATOR_ADAPTER_PROP) -> windows_core::HRESULT, pub QueryInitiatorPortals: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub LoginToTarget: unsafe extern "system" fn(*mut core::ffi::c_void, VDS_ISCSI_LOGIN_TYPE, windows_core::GUID, windows_core::GUID, windows_core::GUID, u32, super::super::Foundation::BOOL, super::super::Foundation::BOOL, VDS_ISCSI_AUTH_TYPE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub LoginToTarget: unsafe extern "system" fn(*mut core::ffi::c_void, VDS_ISCSI_LOGIN_TYPE, windows_core::GUID, windows_core::GUID, windows_core::GUID, u32, windows_core::BOOL, windows_core::BOOL, VDS_ISCSI_AUTH_TYPE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub LogoutFromTarget: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IVdsIscsiInitiatorAdapter_Impl: windows_core::IUnknownImpl { fn GetProperties(&self, pinitiatoradapterprop: *mut VDS_ISCSI_INITIATOR_ADAPTER_PROP) -> windows_core::Result<()>; fn QueryInitiatorPortals(&self) -> windows_core::Result; - fn LoginToTarget(&self, logintype: VDS_ISCSI_LOGIN_TYPE, targetid: &windows_core::GUID, targetportalid: &windows_core::GUID, initiatorportalid: &windows_core::GUID, ulloginflags: u32, bheaderdigest: super::super::Foundation::BOOL, bdatadigest: super::super::Foundation::BOOL, authtype: VDS_ISCSI_AUTH_TYPE) -> windows_core::Result; + fn LoginToTarget(&self, logintype: VDS_ISCSI_LOGIN_TYPE, targetid: &windows_core::GUID, targetportalid: &windows_core::GUID, initiatorportalid: &windows_core::GUID, ulloginflags: u32, bheaderdigest: windows_core::BOOL, bdatadigest: windows_core::BOOL, authtype: VDS_ISCSI_AUTH_TYPE) -> windows_core::Result; fn LogoutFromTarget(&self, targetid: &windows_core::GUID) -> windows_core::Result; } impl IVdsIscsiInitiatorAdapter_Vtbl { @@ -1818,7 +1818,7 @@ impl IVdsIscsiInitiatorAdapter_Vtbl { } } } - unsafe extern "system" fn LoginToTarget(this: *mut core::ffi::c_void, logintype: VDS_ISCSI_LOGIN_TYPE, targetid: windows_core::GUID, targetportalid: windows_core::GUID, initiatorportalid: windows_core::GUID, ulloginflags: u32, bheaderdigest: super::super::Foundation::BOOL, bdatadigest: super::super::Foundation::BOOL, authtype: VDS_ISCSI_AUTH_TYPE, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn LoginToTarget(this: *mut core::ffi::c_void, logintype: VDS_ISCSI_LOGIN_TYPE, targetid: windows_core::GUID, targetportalid: windows_core::GUID, initiatorportalid: windows_core::GUID, ulloginflags: u32, bheaderdigest: windows_core::BOOL, bdatadigest: windows_core::BOOL, authtype: VDS_ISCSI_AUTH_TYPE, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsIscsiInitiatorAdapter_Impl::LoginToTarget(this, core::mem::transmute_copy(&logintype), core::mem::transmute(&targetid), core::mem::transmute(&targetportalid), core::mem::transmute(&initiatorportalid), core::mem::transmute_copy(&ulloginflags), core::mem::transmute_copy(&bheaderdigest), core::mem::transmute_copy(&bdatadigest), core::mem::transmute_copy(&authtype)) { @@ -3400,7 +3400,7 @@ impl IVdsPack { pub unsafe fn AddDisk(&self, diskid: windows_core::GUID, partitionstyle: VDS_PARTITION_STYLE, bashotspare: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).AddDisk)(windows_core::Interface::as_raw(self), core::mem::transmute(diskid), partitionstyle, bashotspare.into()).ok() } } - pub unsafe fn MigrateDisks(&self, pdiskarray: *const windows_core::GUID, lnumberofdisks: i32, targetpack: windows_core::GUID, bforce: bool, bqueryonly: bool, presults: *mut windows_core::HRESULT, pbrebootneeded: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn MigrateDisks(&self, pdiskarray: *const windows_core::GUID, lnumberofdisks: i32, targetpack: windows_core::GUID, bforce: bool, bqueryonly: bool, presults: *mut windows_core::HRESULT, pbrebootneeded: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).MigrateDisks)(windows_core::Interface::as_raw(self), pdiskarray, lnumberofdisks, core::mem::transmute(targetpack), bforce.into(), bqueryonly.into(), presults as _, pbrebootneeded as _).ok() } } pub unsafe fn ReplaceDisk(&self, olddiskid: windows_core::GUID, newdiskid: windows_core::GUID) -> windows_core::Result { @@ -3427,8 +3427,8 @@ pub struct IVdsPack_Vtbl { pub QueryVolumes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub QueryDisks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateVolume: unsafe extern "system" fn(*mut core::ffi::c_void, VDS_VOLUME_TYPE, *const VDS_INPUT_DISK, i32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub AddDisk: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, VDS_PARTITION_STYLE, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MigrateDisks: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, i32, windows_core::GUID, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *mut windows_core::HRESULT, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AddDisk: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, VDS_PARTITION_STYLE, windows_core::BOOL) -> windows_core::HRESULT, + pub MigrateDisks: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, i32, windows_core::GUID, windows_core::BOOL, windows_core::BOOL, *mut windows_core::HRESULT, *mut windows_core::BOOL) -> windows_core::HRESULT, pub ReplaceDisk: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveMissingDisk: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> windows_core::HRESULT, pub Recover: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -3439,8 +3439,8 @@ pub trait IVdsPack_Impl: windows_core::IUnknownImpl { fn QueryVolumes(&self) -> windows_core::Result; fn QueryDisks(&self) -> windows_core::Result; fn CreateVolume(&self, r#type: VDS_VOLUME_TYPE, pinputdiskarray: *const VDS_INPUT_DISK, lnumberofdisks: i32, ulstripesize: u32) -> windows_core::Result; - fn AddDisk(&self, diskid: &windows_core::GUID, partitionstyle: VDS_PARTITION_STYLE, bashotspare: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn MigrateDisks(&self, pdiskarray: *const windows_core::GUID, lnumberofdisks: i32, targetpack: &windows_core::GUID, bforce: super::super::Foundation::BOOL, bqueryonly: super::super::Foundation::BOOL, presults: *mut windows_core::HRESULT, pbrebootneeded: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn AddDisk(&self, diskid: &windows_core::GUID, partitionstyle: VDS_PARTITION_STYLE, bashotspare: windows_core::BOOL) -> windows_core::Result<()>; + fn MigrateDisks(&self, pdiskarray: *const windows_core::GUID, lnumberofdisks: i32, targetpack: &windows_core::GUID, bforce: windows_core::BOOL, bqueryonly: windows_core::BOOL, presults: *mut windows_core::HRESULT, pbrebootneeded: *mut windows_core::BOOL) -> windows_core::Result<()>; fn ReplaceDisk(&self, olddiskid: &windows_core::GUID, newdiskid: &windows_core::GUID) -> windows_core::Result; fn RemoveMissingDisk(&self, diskid: &windows_core::GUID) -> windows_core::Result<()>; fn Recover(&self) -> windows_core::Result; @@ -3501,13 +3501,13 @@ impl IVdsPack_Vtbl { } } } - unsafe extern "system" fn AddDisk(this: *mut core::ffi::c_void, diskid: windows_core::GUID, partitionstyle: VDS_PARTITION_STYLE, bashotspare: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AddDisk(this: *mut core::ffi::c_void, diskid: windows_core::GUID, partitionstyle: VDS_PARTITION_STYLE, bashotspare: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsPack_Impl::AddDisk(this, core::mem::transmute(&diskid), core::mem::transmute_copy(&partitionstyle), core::mem::transmute_copy(&bashotspare)).into() } } - unsafe extern "system" fn MigrateDisks(this: *mut core::ffi::c_void, pdiskarray: *const windows_core::GUID, lnumberofdisks: i32, targetpack: windows_core::GUID, bforce: super::super::Foundation::BOOL, bqueryonly: super::super::Foundation::BOOL, presults: *mut windows_core::HRESULT, pbrebootneeded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MigrateDisks(this: *mut core::ffi::c_void, pdiskarray: *const windows_core::GUID, lnumberofdisks: i32, targetpack: windows_core::GUID, bforce: windows_core::BOOL, bqueryonly: windows_core::BOOL, presults: *mut windows_core::HRESULT, pbrebootneeded: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsPack_Impl::MigrateDisks(this, core::mem::transmute_copy(&pdiskarray), core::mem::transmute_copy(&lnumberofdisks), core::mem::transmute(&targetpack), core::mem::transmute_copy(&bforce), core::mem::transmute_copy(&bqueryonly), core::mem::transmute_copy(&presults), core::mem::transmute_copy(&pbrebootneeded)).into() @@ -3656,12 +3656,12 @@ pub struct IVdsProviderPrivate_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetObject: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, VDS_OBJECT_TYPE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub OnLoad: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub OnUnload: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnUnload: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IVdsProviderPrivate_Impl: windows_core::IUnknownImpl { fn GetObject(&self, objectid: &windows_core::GUID, r#type: VDS_OBJECT_TYPE) -> windows_core::Result; fn OnLoad(&self, pwszmachinename: &windows_core::PCWSTR, pcallbackobject: windows_core::Ref) -> windows_core::Result<()>; - fn OnUnload(&self, bforceunload: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnUnload(&self, bforceunload: windows_core::BOOL) -> windows_core::Result<()>; } impl IVdsProviderPrivate_Vtbl { pub const fn new() -> Self { @@ -3683,7 +3683,7 @@ impl IVdsProviderPrivate_Vtbl { IVdsProviderPrivate_Impl::OnLoad(this, core::mem::transmute(&pwszmachinename), core::mem::transmute_copy(&pcallbackobject)).into() } } - unsafe extern "system" fn OnUnload(this: *mut core::ffi::c_void, bforceunload: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnUnload(this: *mut core::ffi::c_void, bforceunload: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsProviderPrivate_Impl::OnUnload(this, core::mem::transmute_copy(&bforceunload)).into() @@ -5500,8 +5500,8 @@ pub struct IVdsVolume_Vtbl { pub AddPlex: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub BreakPlex: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemovePlex: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Delete: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetFlags: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Delete: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub SetFlags: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, pub ClearFlags: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, } pub trait IVdsVolume_Impl: windows_core::IUnknownImpl { @@ -5513,8 +5513,8 @@ pub trait IVdsVolume_Impl: windows_core::IUnknownImpl { fn AddPlex(&self, volumeid: &windows_core::GUID) -> windows_core::Result; fn BreakPlex(&self, plexid: &windows_core::GUID) -> windows_core::Result; fn RemovePlex(&self, plexid: &windows_core::GUID) -> windows_core::Result; - fn Delete(&self, bforce: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetFlags(&self, ulflags: u32, brevertonclose: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Delete(&self, bforce: windows_core::BOOL) -> windows_core::Result<()>; + fn SetFlags(&self, ulflags: u32, brevertonclose: windows_core::BOOL) -> windows_core::Result<()>; fn ClearFlags(&self, ulflags: u32) -> windows_core::Result<()>; } impl IVdsVolume_Vtbl { @@ -5609,13 +5609,13 @@ impl IVdsVolume_Vtbl { } } } - unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, bforce: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Delete(this: *mut core::ffi::c_void, bforce: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolume_Impl::Delete(this, core::mem::transmute_copy(&bforce)).into() } } - unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, ulflags: u32, brevertonclose: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetFlags(this: *mut core::ffi::c_void, ulflags: u32, brevertonclose: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolume_Impl::SetFlags(this, core::mem::transmute_copy(&ulflags), core::mem::transmute_copy(&brevertonclose)).into() @@ -5727,25 +5727,25 @@ impl IVdsVolumeMF { pub struct IVdsVolumeMF_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetFileSystemProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut VDS_FILE_SYSTEM_PROP) -> windows_core::HRESULT, - pub Format: unsafe extern "system" fn(*mut core::ffi::c_void, VDS_FILE_SYSTEM_TYPE, windows_core::PCWSTR, u32, super::super::Foundation::BOOL, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub Format: unsafe extern "system" fn(*mut core::ffi::c_void, VDS_FILE_SYSTEM_TYPE, windows_core::PCWSTR, u32, windows_core::BOOL, windows_core::BOOL, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub AddAccessPath: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub QueryAccessPaths: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut windows_core::PWSTR, *mut i32) -> windows_core::HRESULT, pub QueryReparsePoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut VDS_REPARSE_POINT_PROP, *mut i32) -> windows_core::HRESULT, - pub DeleteAccessPath: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub DeleteAccessPath: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, pub Mount: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub Dismount: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Dismount: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, pub SetFileSystemFlags: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub ClearFileSystemFlags: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, } pub trait IVdsVolumeMF_Impl: windows_core::IUnknownImpl { fn GetFileSystemProperties(&self, pfilesystemprop: *mut VDS_FILE_SYSTEM_PROP) -> windows_core::Result<()>; - fn Format(&self, r#type: VDS_FILE_SYSTEM_TYPE, pwszlabel: &windows_core::PCWSTR, dwunitallocationsize: u32, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL) -> windows_core::Result; + fn Format(&self, r#type: VDS_FILE_SYSTEM_TYPE, pwszlabel: &windows_core::PCWSTR, dwunitallocationsize: u32, bforce: windows_core::BOOL, bquickformat: windows_core::BOOL, benablecompression: windows_core::BOOL) -> windows_core::Result; fn AddAccessPath(&self, pwszpath: &windows_core::PCWSTR) -> windows_core::Result<()>; fn QueryAccessPaths(&self, pwszpatharray: *mut *mut windows_core::PWSTR, plnumberofaccesspaths: *mut i32) -> windows_core::Result<()>; fn QueryReparsePoints(&self, ppreparsepointprops: *mut *mut VDS_REPARSE_POINT_PROP, plnumberofreparsepointprops: *mut i32) -> windows_core::Result<()>; - fn DeleteAccessPath(&self, pwszpath: &windows_core::PCWSTR, bforce: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn DeleteAccessPath(&self, pwszpath: &windows_core::PCWSTR, bforce: windows_core::BOOL) -> windows_core::Result<()>; fn Mount(&self) -> windows_core::Result<()>; - fn Dismount(&self, bforce: super::super::Foundation::BOOL, bpermanent: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Dismount(&self, bforce: windows_core::BOOL, bpermanent: windows_core::BOOL) -> windows_core::Result<()>; fn SetFileSystemFlags(&self, ulflags: u32) -> windows_core::Result<()>; fn ClearFileSystemFlags(&self, ulflags: u32) -> windows_core::Result<()>; } @@ -5757,7 +5757,7 @@ impl IVdsVolumeMF_Vtbl { IVdsVolumeMF_Impl::GetFileSystemProperties(this, core::mem::transmute_copy(&pfilesystemprop)).into() } } - unsafe extern "system" fn Format(this: *mut core::ffi::c_void, r#type: VDS_FILE_SYSTEM_TYPE, pwszlabel: windows_core::PCWSTR, dwunitallocationsize: u32, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn Format(this: *mut core::ffi::c_void, r#type: VDS_FILE_SYSTEM_TYPE, pwszlabel: windows_core::PCWSTR, dwunitallocationsize: u32, bforce: windows_core::BOOL, bquickformat: windows_core::BOOL, benablecompression: windows_core::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVolumeMF_Impl::Format(this, core::mem::transmute_copy(&r#type), core::mem::transmute(&pwszlabel), core::mem::transmute_copy(&dwunitallocationsize), core::mem::transmute_copy(&bforce), core::mem::transmute_copy(&bquickformat), core::mem::transmute_copy(&benablecompression)) { @@ -5787,7 +5787,7 @@ impl IVdsVolumeMF_Vtbl { IVdsVolumeMF_Impl::QueryReparsePoints(this, core::mem::transmute_copy(&ppreparsepointprops), core::mem::transmute_copy(&plnumberofreparsepointprops)).into() } } - unsafe extern "system" fn DeleteAccessPath(this: *mut core::ffi::c_void, pwszpath: windows_core::PCWSTR, bforce: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DeleteAccessPath(this: *mut core::ffi::c_void, pwszpath: windows_core::PCWSTR, bforce: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolumeMF_Impl::DeleteAccessPath(this, core::mem::transmute(&pwszpath), core::mem::transmute_copy(&bforce)).into() @@ -5799,7 +5799,7 @@ impl IVdsVolumeMF_Vtbl { IVdsVolumeMF_Impl::Mount(this).into() } } - unsafe extern "system" fn Dismount(this: *mut core::ffi::c_void, bforce: super::super::Foundation::BOOL, bpermanent: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Dismount(this: *mut core::ffi::c_void, bforce: windows_core::BOOL, bpermanent: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVdsVolumeMF_Impl::Dismount(this, core::mem::transmute_copy(&bforce), core::mem::transmute_copy(&bpermanent)).into() @@ -5864,12 +5864,12 @@ pub struct IVdsVolumeMF2_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetFileSystemTypeName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub QueryFileSystemFormatSupport: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut VDS_FILE_SYSTEM_FORMAT_SUPPORT_PROP, *mut i32) -> windows_core::HRESULT, - pub FormatEx: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u16, u32, windows_core::PCWSTR, super::super::Foundation::BOOL, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub FormatEx: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u16, u32, windows_core::PCWSTR, windows_core::BOOL, windows_core::BOOL, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IVdsVolumeMF2_Impl: windows_core::IUnknownImpl { fn GetFileSystemTypeName(&self) -> windows_core::Result; fn QueryFileSystemFormatSupport(&self, ppfilesystemsupportprops: *mut *mut VDS_FILE_SYSTEM_FORMAT_SUPPORT_PROP, plnumberoffilesystems: *mut i32) -> windows_core::Result<()>; - fn FormatEx(&self, pwszfilesystemtypename: &windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: &windows_core::PCWSTR, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL) -> windows_core::Result; + fn FormatEx(&self, pwszfilesystemtypename: &windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: &windows_core::PCWSTR, bforce: windows_core::BOOL, bquickformat: windows_core::BOOL, benablecompression: windows_core::BOOL) -> windows_core::Result; } impl IVdsVolumeMF2_Vtbl { pub const fn new() -> Self { @@ -5891,7 +5891,7 @@ impl IVdsVolumeMF2_Vtbl { IVdsVolumeMF2_Impl::QueryFileSystemFormatSupport(this, core::mem::transmute_copy(&ppfilesystemsupportprops), core::mem::transmute_copy(&plnumberoffilesystems)).into() } } - unsafe extern "system" fn FormatEx(this: *mut core::ffi::c_void, pwszfilesystemtypename: windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: windows_core::PCWSTR, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn FormatEx(this: *mut core::ffi::c_void, pwszfilesystemtypename: windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: windows_core::PCWSTR, bforce: windows_core::BOOL, bquickformat: windows_core::BOOL, benablecompression: windows_core::BOOL, ppasync: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVdsVolumeMF2_Impl::FormatEx(this, core::mem::transmute(&pwszfilesystemtypename), core::mem::transmute_copy(&usfilesystemrevision), core::mem::transmute_copy(&uldesiredunitallocationsize), core::mem::transmute(&pwszlabel), core::mem::transmute_copy(&bforce), core::mem::transmute_copy(&bquickformat), core::mem::transmute_copy(&benablecompression)) { @@ -6630,7 +6630,7 @@ pub struct VDS_DRIVE_EXTENT { pub id: windows_core::GUID, pub LunId: windows_core::GUID, pub ullSize: u64, - pub bUsed: super::super::Foundation::BOOL, + pub bUsed: windows_core::BOOL, } impl Default for VDS_DRIVE_EXTENT { fn default() -> Self { @@ -6661,7 +6661,7 @@ pub struct VDS_DRIVE_LETTER_PROP { pub wcLetter: u16, pub volumeId: windows_core::GUID, pub ulFlags: u32, - pub bUsed: super::super::Foundation::BOOL, + pub bUsed: windows_core::BOOL, } impl Default for VDS_DRIVE_LETTER_PROP { fn default() -> Self { @@ -7230,15 +7230,15 @@ pub struct VDS_HINTS { pub ulOptimalWriteAlignment: u32, pub ulMaximumDriveCount: u32, pub ulStripeSize: u32, - pub bFastCrashRecoveryRequired: super::super::Foundation::BOOL, - pub bMostlyReads: super::super::Foundation::BOOL, - pub bOptimizeForSequentialReads: super::super::Foundation::BOOL, - pub bOptimizeForSequentialWrites: super::super::Foundation::BOOL, - pub bRemapEnabled: super::super::Foundation::BOOL, - pub bReadBackVerifyEnabled: super::super::Foundation::BOOL, - pub bWriteThroughCachingEnabled: super::super::Foundation::BOOL, - pub bHardwareChecksumEnabled: super::super::Foundation::BOOL, - pub bIsYankable: super::super::Foundation::BOOL, + pub bFastCrashRecoveryRequired: windows_core::BOOL, + pub bMostlyReads: windows_core::BOOL, + pub bOptimizeForSequentialReads: windows_core::BOOL, + pub bOptimizeForSequentialWrites: windows_core::BOOL, + pub bRemapEnabled: windows_core::BOOL, + pub bReadBackVerifyEnabled: windows_core::BOOL, + pub bWriteThroughCachingEnabled: windows_core::BOOL, + pub bHardwareChecksumEnabled: windows_core::BOOL, + pub bIsYankable: windows_core::BOOL, pub sRebuildPriority: i16, } impl Default for VDS_HINTS { @@ -7260,25 +7260,25 @@ pub struct VDS_HINTS2 { pub ulReserved1: u32, pub ulReserved2: u32, pub ulReserved3: u32, - pub bFastCrashRecoveryRequired: super::super::Foundation::BOOL, - pub bMostlyReads: super::super::Foundation::BOOL, - pub bOptimizeForSequentialReads: super::super::Foundation::BOOL, - pub bOptimizeForSequentialWrites: super::super::Foundation::BOOL, - pub bRemapEnabled: super::super::Foundation::BOOL, - pub bReadBackVerifyEnabled: super::super::Foundation::BOOL, - pub bWriteThroughCachingEnabled: super::super::Foundation::BOOL, - pub bHardwareChecksumEnabled: super::super::Foundation::BOOL, - pub bIsYankable: super::super::Foundation::BOOL, - pub bAllocateHotSpare: super::super::Foundation::BOOL, - pub bUseMirroredCache: super::super::Foundation::BOOL, - pub bReadCachingEnabled: super::super::Foundation::BOOL, - pub bWriteCachingEnabled: super::super::Foundation::BOOL, - pub bMediaScanEnabled: super::super::Foundation::BOOL, - pub bConsistencyCheckEnabled: super::super::Foundation::BOOL, + pub bFastCrashRecoveryRequired: windows_core::BOOL, + pub bMostlyReads: windows_core::BOOL, + pub bOptimizeForSequentialReads: windows_core::BOOL, + pub bOptimizeForSequentialWrites: windows_core::BOOL, + pub bRemapEnabled: windows_core::BOOL, + pub bReadBackVerifyEnabled: windows_core::BOOL, + pub bWriteThroughCachingEnabled: windows_core::BOOL, + pub bHardwareChecksumEnabled: windows_core::BOOL, + pub bIsYankable: windows_core::BOOL, + pub bAllocateHotSpare: windows_core::BOOL, + pub bUseMirroredCache: windows_core::BOOL, + pub bReadCachingEnabled: windows_core::BOOL, + pub bWriteCachingEnabled: windows_core::BOOL, + pub bMediaScanEnabled: windows_core::BOOL, + pub bConsistencyCheckEnabled: windows_core::BOOL, pub BusType: VDS_STORAGE_BUS_TYPE, - pub bReserved1: super::super::Foundation::BOOL, - pub bReserved2: super::super::Foundation::BOOL, - pub bReserved3: super::super::Foundation::BOOL, + pub bReserved1: windows_core::BOOL, + pub bReserved2: windows_core::BOOL, + pub bReserved3: windows_core::BOOL, pub sRebuildPriority: i16, } impl Default for VDS_HINTS2 { @@ -7519,7 +7519,7 @@ pub struct VDS_ISCSI_TARGET_PROP { pub id: windows_core::GUID, pub pwszIscsiName: windows_core::PWSTR, pub pwszFriendlyName: windows_core::PWSTR, - pub bChapEnabled: super::super::Foundation::BOOL, + pub bChapEnabled: windows_core::BOOL, } impl Default for VDS_ISCSI_TARGET_PROP { fn default() -> Self { @@ -7625,7 +7625,7 @@ pub struct VDS_LUN_INFORMATION { pub m_version: u32, pub m_DeviceType: u8, pub m_DeviceTypeModifier: u8, - pub m_bCommandQueueing: super::super::Foundation::BOOL, + pub m_bCommandQueueing: windows_core::BOOL, pub m_BusType: VDS_STORAGE_BUS_TYPE, pub m_szVendorId: *mut u8, pub m_szProductId: *mut u8, @@ -8068,7 +8068,7 @@ impl Default for VDS_PATH_INFO_2 { #[derive(Clone, Copy, Debug, PartialEq)] pub struct VDS_PATH_POLICY { pub pathId: VDS_PATH_ID, - pub bPrimaryPath: super::super::Foundation::BOOL, + pub bPrimaryPath: windows_core::BOOL, pub ulWeight: u32, } impl Default for VDS_PATH_POLICY { @@ -8101,10 +8101,10 @@ pub struct VDS_POOL_ATTRIBUTES { pub raidType: VDS_RAID_TYPE, pub busType: VDS_STORAGE_BUS_TYPE, pub pwszIntendedUsage: windows_core::PWSTR, - pub bSpinDown: super::super::Foundation::BOOL, - pub bIsThinProvisioned: super::super::Foundation::BOOL, + pub bSpinDown: windows_core::BOOL, + pub bIsThinProvisioned: windows_core::BOOL, pub ullProvisionedSpace: u64, - pub bNoSinglePointOfFailure: super::super::Foundation::BOOL, + pub bNoSinglePointOfFailure: windows_core::BOOL, pub ulDataRedundancyMax: u32, pub ulDataRedundancyMin: u32, pub ulDataRedundancyDefault: u32, @@ -8129,8 +8129,8 @@ pub struct VDS_POOL_ATTRIBUTES { pub ulStorageEfficiencyHint: u32, pub ulNumOfCustomAttributes: u32, pub pPoolCustomAttributes: *mut VDS_POOL_CUSTOM_ATTRIBUTES, - pub bReserved1: super::super::Foundation::BOOL, - pub bReserved2: super::super::Foundation::BOOL, + pub bReserved1: windows_core::BOOL, + pub bReserved2: windows_core::BOOL, pub ulReserved1: u32, pub ulReserved2: u32, pub ullReserved1: u64, @@ -8446,7 +8446,7 @@ pub struct VDS_STORAGE_IDENTIFIER_TYPE(pub i32); pub struct VDS_STORAGE_POOL_DRIVE_EXTENT { pub id: windows_core::GUID, pub ullSize: u64, - pub bUsed: super::super::Foundation::BOOL, + pub bUsed: windows_core::BOOL, } impl Default for VDS_STORAGE_POOL_DRIVE_EXTENT { fn default() -> Self { @@ -8616,7 +8616,7 @@ pub struct VDS_VDISK_PROPERTIES { pub pPath: windows_core::PWSTR, pub pDeviceName: windows_core::PWSTR, pub DiskFlag: super::Vhd::DEPENDENT_DISK_FLAG, - pub bIsChild: super::super::Foundation::BOOL, + pub bIsChild: windows_core::BOOL, pub pParentPath: windows_core::PWSTR, } #[cfg(feature = "Win32_Storage_Vhd")] 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 22fc3fefbe..9e72f9a821 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs @@ -379,7 +379,7 @@ impl IVssComponent { pub unsafe fn GetDifferencedFilesCount(&self, pcdifferencedfiles: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetDifferencedFilesCount)(windows_core::Interface::as_raw(self), pcdifferencedfiles as _).ok() } } - pub unsafe fn GetDifferencedFile(&self, idifferencedfile: u32, pbstrpath: *mut windows_core::BSTR, pbstrfilespec: *mut windows_core::BSTR, pbrecursive: *mut super::super::Foundation::BOOL, pbstrlsnstring: *mut windows_core::BSTR, pftlastmodifytime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> { + pub unsafe fn GetDifferencedFile(&self, idifferencedfile: u32, pbstrpath: *mut windows_core::BSTR, pbstrfilespec: *mut windows_core::BSTR, pbrecursive: *mut windows_core::BOOL, pbstrlsnstring: *mut windows_core::BSTR, pftlastmodifytime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetDifferencedFile)(windows_core::Interface::as_raw(self), idifferencedfile, core::mem::transmute(pbstrpath), core::mem::transmute(pbstrfilespec), pbrecursive as _, core::mem::transmute(pbstrlsnstring), pftlastmodifytime as _).ok() } } } @@ -420,10 +420,10 @@ pub struct IVssComponent_Vtbl { pub GetRestoreSubcomponentCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetRestoreSubcomponent: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub GetFileRestoreStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut VSS_FILE_RESTORE_STATUS) -> windows_core::HRESULT, - pub AddDifferencedFilesByLastModifyTime: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, super::super::Foundation::BOOL, super::super::Foundation::FILETIME) -> windows_core::HRESULT, - pub AddDifferencedFilesByLastModifyLSN: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, super::super::Foundation::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub AddDifferencedFilesByLastModifyTime: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::BOOL, super::super::Foundation::FILETIME) -> windows_core::HRESULT, + pub AddDifferencedFilesByLastModifyLSN: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDifferencedFilesCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub GetDifferencedFile: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut *mut core::ffi::c_void, *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT, + pub GetDifferencedFile: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut windows_core::BOOL, *mut *mut core::ffi::c_void, *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT, } pub trait IVssComponent_Impl: windows_core::IUnknownImpl { fn GetLogicalPath(&self, pbstrpath: *mut windows_core::BSTR) -> windows_core::Result<()>; @@ -460,10 +460,10 @@ pub trait IVssComponent_Impl: windows_core::IUnknownImpl { fn GetRestoreSubcomponentCount(&self, pcrestoresubcomponent: *mut u32) -> windows_core::Result<()>; fn GetRestoreSubcomponent(&self, icomponent: u32, pbstrlogicalpath: *mut windows_core::BSTR, pbstrcomponentname: *mut windows_core::BSTR, pbrepair: *mut bool) -> windows_core::Result<()>; fn GetFileRestoreStatus(&self, pstatus: *mut VSS_FILE_RESTORE_STATUS) -> windows_core::Result<()>; - fn AddDifferencedFilesByLastModifyTime(&self, wszpath: &windows_core::PCWSTR, wszfilespec: &windows_core::PCWSTR, brecursive: super::super::Foundation::BOOL, ftlastmodifytime: &super::super::Foundation::FILETIME) -> windows_core::Result<()>; - fn AddDifferencedFilesByLastModifyLSN(&self, wszpath: &windows_core::PCWSTR, wszfilespec: &windows_core::PCWSTR, brecursive: super::super::Foundation::BOOL, bstrlsnstring: &windows_core::BSTR) -> windows_core::Result<()>; + fn AddDifferencedFilesByLastModifyTime(&self, wszpath: &windows_core::PCWSTR, wszfilespec: &windows_core::PCWSTR, brecursive: windows_core::BOOL, ftlastmodifytime: &super::super::Foundation::FILETIME) -> windows_core::Result<()>; + fn AddDifferencedFilesByLastModifyLSN(&self, wszpath: &windows_core::PCWSTR, wszfilespec: &windows_core::PCWSTR, brecursive: windows_core::BOOL, bstrlsnstring: &windows_core::BSTR) -> windows_core::Result<()>; fn GetDifferencedFilesCount(&self, pcdifferencedfiles: *mut u32) -> windows_core::Result<()>; - fn GetDifferencedFile(&self, idifferencedfile: u32, pbstrpath: *mut windows_core::BSTR, pbstrfilespec: *mut windows_core::BSTR, pbrecursive: *mut super::super::Foundation::BOOL, pbstrlsnstring: *mut windows_core::BSTR, pftlastmodifytime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()>; + fn GetDifferencedFile(&self, idifferencedfile: u32, pbstrpath: *mut windows_core::BSTR, pbstrfilespec: *mut windows_core::BSTR, pbrecursive: *mut windows_core::BOOL, pbstrlsnstring: *mut windows_core::BSTR, pftlastmodifytime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()>; } impl IVssComponent_Vtbl { pub const fn new() -> Self { @@ -683,13 +683,13 @@ impl IVssComponent_Vtbl { IVssComponent_Impl::GetFileRestoreStatus(this, core::mem::transmute_copy(&pstatus)).into() } } - unsafe extern "system" fn AddDifferencedFilesByLastModifyTime(this: *mut core::ffi::c_void, wszpath: windows_core::PCWSTR, wszfilespec: windows_core::PCWSTR, brecursive: super::super::Foundation::BOOL, ftlastmodifytime: super::super::Foundation::FILETIME) -> windows_core::HRESULT { + unsafe extern "system" fn AddDifferencedFilesByLastModifyTime(this: *mut core::ffi::c_void, wszpath: windows_core::PCWSTR, wszfilespec: windows_core::PCWSTR, brecursive: windows_core::BOOL, ftlastmodifytime: super::super::Foundation::FILETIME) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::AddDifferencedFilesByLastModifyTime(this, core::mem::transmute(&wszpath), core::mem::transmute(&wszfilespec), core::mem::transmute_copy(&brecursive), core::mem::transmute(&ftlastmodifytime)).into() } } - unsafe extern "system" fn AddDifferencedFilesByLastModifyLSN(this: *mut core::ffi::c_void, wszpath: windows_core::PCWSTR, wszfilespec: windows_core::PCWSTR, brecursive: super::super::Foundation::BOOL, bstrlsnstring: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn AddDifferencedFilesByLastModifyLSN(this: *mut core::ffi::c_void, wszpath: windows_core::PCWSTR, wszfilespec: windows_core::PCWSTR, brecursive: windows_core::BOOL, bstrlsnstring: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::AddDifferencedFilesByLastModifyLSN(this, core::mem::transmute(&wszpath), core::mem::transmute(&wszfilespec), core::mem::transmute_copy(&brecursive), core::mem::transmute(&bstrlsnstring)).into() @@ -701,7 +701,7 @@ impl IVssComponent_Vtbl { IVssComponent_Impl::GetDifferencedFilesCount(this, core::mem::transmute_copy(&pcdifferencedfiles)).into() } } - unsafe extern "system" fn GetDifferencedFile(this: *mut core::ffi::c_void, idifferencedfile: u32, pbstrpath: *mut *mut core::ffi::c_void, pbstrfilespec: *mut *mut core::ffi::c_void, pbrecursive: *mut super::super::Foundation::BOOL, pbstrlsnstring: *mut *mut core::ffi::c_void, pftlastmodifytime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { + unsafe extern "system" fn GetDifferencedFile(this: *mut core::ffi::c_void, idifferencedfile: u32, pbstrpath: *mut *mut core::ffi::c_void, pbstrfilespec: *mut *mut core::ffi::c_void, pbrecursive: *mut windows_core::BOOL, pbstrlsnstring: *mut *mut core::ffi::c_void, pftlastmodifytime: *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssComponent_Impl::GetDifferencedFile(this, core::mem::transmute_copy(&idifferencedfile), core::mem::transmute_copy(&pbstrpath), core::mem::transmute_copy(&pbstrfilespec), core::mem::transmute_copy(&pbrecursive), core::mem::transmute_copy(&pbstrlsnstring), core::mem::transmute_copy(&pftlastmodifytime)).into() @@ -1501,20 +1501,20 @@ impl IVssDifferentialSoftwareSnapshotMgmt2 { #[repr(C)] pub struct IVssDifferentialSoftwareSnapshotMgmt2_Vtbl { pub base__: IVssDifferentialSoftwareSnapshotMgmt_Vtbl, - pub ChangeDiffAreaMaximumSizeEx: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, *const u16, i64, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ChangeDiffAreaMaximumSizeEx: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, *const u16, i64, windows_core::BOOL) -> windows_core::HRESULT, pub MigrateDiffAreas: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, *const u16, *const u16) -> windows_core::HRESULT, pub QueryMigrationStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, *const u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetSnapshotPriority: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, u8) -> windows_core::HRESULT, } pub trait IVssDifferentialSoftwareSnapshotMgmt2_Impl: IVssDifferentialSoftwareSnapshotMgmt_Impl { - fn ChangeDiffAreaMaximumSizeEx(&self, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64, bvolatile: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ChangeDiffAreaMaximumSizeEx(&self, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64, bvolatile: windows_core::BOOL) -> windows_core::Result<()>; fn MigrateDiffAreas(&self, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, pwsznewdiffareavolumename: *const u16) -> windows_core::Result<()>; fn QueryMigrationStatus(&self, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16) -> windows_core::Result; fn SetSnapshotPriority(&self, idsnapshot: &windows_core::GUID, priority: u8) -> windows_core::Result<()>; } impl IVssDifferentialSoftwareSnapshotMgmt2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn ChangeDiffAreaMaximumSizeEx(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64, bvolatile: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ChangeDiffAreaMaximumSizeEx(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64, bvolatile: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssDifferentialSoftwareSnapshotMgmt2_Impl::ChangeDiffAreaMaximumSizeEx(this, core::mem::transmute_copy(&pwszvolumename), core::mem::transmute_copy(&pwszdiffareavolumename), core::mem::transmute_copy(&llmaximumdiffspace), core::mem::transmute_copy(&bvolatile)).into() @@ -1887,13 +1887,13 @@ impl IVssFileShareSnapshotProvider { pub unsafe fn BeginPrepareSnapshot(&self, snapshotsetid: windows_core::GUID, snapshotid: windows_core::GUID, pwszsharepath: *const u16, lnewcontext: i32, providerid: windows_core::GUID) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).BeginPrepareSnapshot)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotsetid), core::mem::transmute(snapshotid), pwszsharepath, lnewcontext, core::mem::transmute(providerid)).ok() } } - pub unsafe fn IsPathSupported(&self, pwszsharepath: *const u16) -> windows_core::Result { + pub unsafe fn IsPathSupported(&self, pwszsharepath: *const u16) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsPathSupported)(windows_core::Interface::as_raw(self), pwszsharepath, &mut result__).map(|| result__) } } - pub unsafe fn IsPathSnapshotted(&self, pwszsharepath: *const u16, pbsnapshotspresent: *mut super::super::Foundation::BOOL, plsnapshotcompatibility: *mut i32) -> windows_core::Result<()> { + pub unsafe fn IsPathSnapshotted(&self, pwszsharepath: *const u16, pbsnapshotspresent: *mut windows_core::BOOL, plsnapshotcompatibility: *mut i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsPathSnapshotted)(windows_core::Interface::as_raw(self), pwszsharepath, pbsnapshotspresent as _, plsnapshotcompatibility as _).ok() } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1907,10 +1907,10 @@ pub struct IVssFileShareSnapshotProvider_Vtbl { pub SetContext: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub GetSnapshotProperties: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut VSS_SNAPSHOT_PROP) -> windows_core::HRESULT, pub Query: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, VSS_OBJECT_TYPE, VSS_OBJECT_TYPE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub DeleteSnapshots: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, VSS_OBJECT_TYPE, super::super::Foundation::BOOL, *mut i32, *mut windows_core::GUID) -> windows_core::HRESULT, + pub DeleteSnapshots: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, VSS_OBJECT_TYPE, windows_core::BOOL, *mut i32, *mut windows_core::GUID) -> windows_core::HRESULT, pub BeginPrepareSnapshot: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, windows_core::GUID, *const u16, i32, windows_core::GUID) -> windows_core::HRESULT, - pub IsPathSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsPathSnapshotted: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, *mut super::super::Foundation::BOOL, *mut i32) -> windows_core::HRESULT, + pub IsPathSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsPathSnapshotted: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, *mut windows_core::BOOL, *mut i32) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub SetSnapshotProperty: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, VSS_SNAPSHOT_PROPERTY_ID, super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -1921,10 +1921,10 @@ pub trait IVssFileShareSnapshotProvider_Impl: windows_core::IUnknownImpl { fn SetContext(&self, lcontext: i32) -> windows_core::Result<()>; fn GetSnapshotProperties(&self, snapshotid: &windows_core::GUID, pprop: *mut VSS_SNAPSHOT_PROP) -> windows_core::Result<()>; fn Query(&self, queriedobjectid: &windows_core::GUID, equeriedobjecttype: VSS_OBJECT_TYPE, ereturnedobjectstype: VSS_OBJECT_TYPE) -> windows_core::Result; - fn DeleteSnapshots(&self, sourceobjectid: &windows_core::GUID, esourceobjecttype: VSS_OBJECT_TYPE, bforcedelete: super::super::Foundation::BOOL, pldeletedsnapshots: *mut i32, pnondeletedsnapshotid: *mut windows_core::GUID) -> windows_core::Result<()>; + fn DeleteSnapshots(&self, sourceobjectid: &windows_core::GUID, esourceobjecttype: VSS_OBJECT_TYPE, bforcedelete: windows_core::BOOL, pldeletedsnapshots: *mut i32, pnondeletedsnapshotid: *mut windows_core::GUID) -> windows_core::Result<()>; fn BeginPrepareSnapshot(&self, snapshotsetid: &windows_core::GUID, snapshotid: &windows_core::GUID, pwszsharepath: *const u16, lnewcontext: i32, providerid: &windows_core::GUID) -> windows_core::Result<()>; - fn IsPathSupported(&self, pwszsharepath: *const u16) -> windows_core::Result; - fn IsPathSnapshotted(&self, pwszsharepath: *const u16, pbsnapshotspresent: *mut super::super::Foundation::BOOL, plsnapshotcompatibility: *mut i32) -> windows_core::Result<()>; + fn IsPathSupported(&self, pwszsharepath: *const u16) -> windows_core::Result; + fn IsPathSnapshotted(&self, pwszsharepath: *const u16, pbsnapshotspresent: *mut windows_core::BOOL, plsnapshotcompatibility: *mut i32) -> windows_core::Result<()>; fn SetSnapshotProperty(&self, snapshotid: &windows_core::GUID, esnapshotpropertyid: VSS_SNAPSHOT_PROPERTY_ID, vproperty: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1954,7 +1954,7 @@ impl IVssFileShareSnapshotProvider_Vtbl { } } } - unsafe extern "system" fn DeleteSnapshots(this: *mut core::ffi::c_void, sourceobjectid: windows_core::GUID, esourceobjecttype: VSS_OBJECT_TYPE, bforcedelete: super::super::Foundation::BOOL, pldeletedsnapshots: *mut i32, pnondeletedsnapshotid: *mut windows_core::GUID) -> windows_core::HRESULT { + unsafe extern "system" fn DeleteSnapshots(this: *mut core::ffi::c_void, sourceobjectid: windows_core::GUID, esourceobjecttype: VSS_OBJECT_TYPE, bforcedelete: windows_core::BOOL, pldeletedsnapshots: *mut i32, pnondeletedsnapshotid: *mut windows_core::GUID) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssFileShareSnapshotProvider_Impl::DeleteSnapshots(this, core::mem::transmute(&sourceobjectid), core::mem::transmute_copy(&esourceobjecttype), core::mem::transmute_copy(&bforcedelete), core::mem::transmute_copy(&pldeletedsnapshots), core::mem::transmute_copy(&pnondeletedsnapshotid)).into() @@ -1966,7 +1966,7 @@ impl IVssFileShareSnapshotProvider_Vtbl { IVssFileShareSnapshotProvider_Impl::BeginPrepareSnapshot(this, core::mem::transmute(&snapshotsetid), core::mem::transmute(&snapshotid), core::mem::transmute_copy(&pwszsharepath), core::mem::transmute_copy(&lnewcontext), core::mem::transmute(&providerid)).into() } } - unsafe extern "system" fn IsPathSupported(this: *mut core::ffi::c_void, pwszsharepath: *const u16, pbsupportedbythisprovider: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsPathSupported(this: *mut core::ffi::c_void, pwszsharepath: *const u16, pbsupportedbythisprovider: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssFileShareSnapshotProvider_Impl::IsPathSupported(this, core::mem::transmute_copy(&pwszsharepath)) { @@ -1978,7 +1978,7 @@ impl IVssFileShareSnapshotProvider_Vtbl { } } } - unsafe extern "system" fn IsPathSnapshotted(this: *mut core::ffi::c_void, pwszsharepath: *const u16, pbsnapshotspresent: *mut super::super::Foundation::BOOL, plsnapshotcompatibility: *mut i32) -> windows_core::HRESULT { + unsafe extern "system" fn IsPathSnapshotted(this: *mut core::ffi::c_void, pwszsharepath: *const u16, pbsnapshotspresent: *mut windows_core::BOOL, plsnapshotcompatibility: *mut i32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssFileShareSnapshotProvider_Impl::IsPathSnapshotted(this, core::mem::transmute_copy(&pwszsharepath), core::mem::transmute_copy(&pbsnapshotspresent), core::mem::transmute_copy(&plsnapshotcompatibility)).into() @@ -2012,11 +2012,11 @@ windows_core::imp::define_interface!(IVssHardwareSnapshotProvider, IVssHardwareS windows_core::imp::interface_hierarchy!(IVssHardwareSnapshotProvider, windows_core::IUnknown); impl IVssHardwareSnapshotProvider { #[cfg(feature = "Win32_Storage_VirtualDiskService")] - pub unsafe fn AreLunsSupported(&self, lluncount: i32, lcontext: i32, rgwszdevices: *const *const u16, pluninformation: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn AreLunsSupported(&self, lluncount: i32, lcontext: i32, rgwszdevices: *const *const u16, pluninformation: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).AreLunsSupported)(windows_core::Interface::as_raw(self), lluncount, lcontext, rgwszdevices, pluninformation as _, pbissupported as _).ok() } } #[cfg(feature = "Win32_Storage_VirtualDiskService")] - pub unsafe fn FillInLunInfo(&self, wszdevicename: *const u16, pluninfo: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn FillInLunInfo(&self, wszdevicename: *const u16, pluninfo: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).FillInLunInfo)(windows_core::Interface::as_raw(self), wszdevicename, pluninfo as _, pbissupported as _).ok() } } #[cfg(feature = "Win32_Storage_VirtualDiskService")] @@ -2040,11 +2040,11 @@ impl IVssHardwareSnapshotProvider { pub struct IVssHardwareSnapshotProvider_Vtbl { pub base__: windows_core::IUnknown_Vtbl, #[cfg(feature = "Win32_Storage_VirtualDiskService")] - pub AreLunsSupported: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, *const *const u16, *mut super::VirtualDiskService::VDS_LUN_INFORMATION, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AreLunsSupported: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, *const *const u16, *mut super::VirtualDiskService::VDS_LUN_INFORMATION, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Storage_VirtualDiskService"))] AreLunsSupported: usize, #[cfg(feature = "Win32_Storage_VirtualDiskService")] - pub FillInLunInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, *mut super::VirtualDiskService::VDS_LUN_INFORMATION, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub FillInLunInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, *mut super::VirtualDiskService::VDS_LUN_INFORMATION, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Storage_VirtualDiskService"))] FillInLunInfo: usize, #[cfg(feature = "Win32_Storage_VirtualDiskService")] @@ -2066,8 +2066,8 @@ pub struct IVssHardwareSnapshotProvider_Vtbl { } #[cfg(feature = "Win32_Storage_VirtualDiskService")] pub trait IVssHardwareSnapshotProvider_Impl: windows_core::IUnknownImpl { - fn AreLunsSupported(&self, lluncount: i32, lcontext: i32, rgwszdevices: *const *const u16, pluninformation: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn FillInLunInfo(&self, wszdevicename: *const u16, pluninfo: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn AreLunsSupported(&self, lluncount: i32, lcontext: i32, rgwszdevices: *const *const u16, pluninformation: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn FillInLunInfo(&self, wszdevicename: *const u16, pluninfo: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut windows_core::BOOL) -> windows_core::Result<()>; fn BeginPrepareSnapshot(&self, snapshotsetid: &windows_core::GUID, snapshotid: &windows_core::GUID, lcontext: i32, lluncount: i32, rgdevicenames: *const *const u16, rgluninformation: *mut super::VirtualDiskService::VDS_LUN_INFORMATION) -> windows_core::Result<()>; fn GetTargetLuns(&self, lluncount: i32, rgdevicenames: *const *const u16, rgsourceluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION, rgdestinationluns: *mut super::VirtualDiskService::VDS_LUN_INFORMATION) -> windows_core::Result<()>; fn LocateLuns(&self, lluncount: i32, rgsourceluns: *const super::VirtualDiskService::VDS_LUN_INFORMATION) -> windows_core::Result<()>; @@ -2076,13 +2076,13 @@ pub trait IVssHardwareSnapshotProvider_Impl: windows_core::IUnknownImpl { #[cfg(feature = "Win32_Storage_VirtualDiskService")] impl IVssHardwareSnapshotProvider_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn AreLunsSupported(this: *mut core::ffi::c_void, lluncount: i32, lcontext: i32, rgwszdevices: *const *const u16, pluninformation: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AreLunsSupported(this: *mut core::ffi::c_void, lluncount: i32, lcontext: i32, rgwszdevices: *const *const u16, pluninformation: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssHardwareSnapshotProvider_Impl::AreLunsSupported(this, core::mem::transmute_copy(&lluncount), core::mem::transmute_copy(&lcontext), core::mem::transmute_copy(&rgwszdevices), core::mem::transmute_copy(&pluninformation), core::mem::transmute_copy(&pbissupported)).into() } } - unsafe extern "system" fn FillInLunInfo(this: *mut core::ffi::c_void, wszdevicename: *const u16, pluninfo: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn FillInLunInfo(this: *mut core::ffi::c_void, wszdevicename: *const u16, pluninfo: *mut super::VirtualDiskService::VDS_LUN_INFORMATION, pbissupported: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssHardwareSnapshotProvider_Impl::FillInLunInfo(this, core::mem::transmute_copy(&wszdevicename), core::mem::transmute_copy(&pluninfo), core::mem::transmute_copy(&pbissupported)).into() @@ -2358,11 +2358,11 @@ impl IVssProviderNotifications { pub struct IVssProviderNotifications_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub OnLoad: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub OnUnload: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnUnload: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IVssProviderNotifications_Impl: windows_core::IUnknownImpl { fn OnLoad(&self, pcallback: windows_core::Ref) -> windows_core::Result<()>; - fn OnUnload(&self, bforceunload: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnUnload(&self, bforceunload: windows_core::BOOL) -> windows_core::Result<()>; } impl IVssProviderNotifications_Vtbl { pub const fn new() -> Self { @@ -2372,7 +2372,7 @@ impl IVssProviderNotifications_Vtbl { IVssProviderNotifications_Impl::OnLoad(this, core::mem::transmute_copy(&pcallback)).into() } } - unsafe extern "system" fn OnUnload(this: *mut core::ffi::c_void, bforceunload: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnUnload(this: *mut core::ffi::c_void, bforceunload: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssProviderNotifications_Impl::OnUnload(this, core::mem::transmute_copy(&bforceunload)).into() @@ -2529,13 +2529,13 @@ impl IVssSoftwareSnapshotProvider { pub unsafe fn BeginPrepareSnapshot(&self, snapshotsetid: windows_core::GUID, snapshotid: windows_core::GUID, pwszvolumename: *const u16, lnewcontext: i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).BeginPrepareSnapshot)(windows_core::Interface::as_raw(self), core::mem::transmute(snapshotsetid), core::mem::transmute(snapshotid), pwszvolumename, lnewcontext).ok() } } - pub unsafe fn IsVolumeSupported(&self, pwszvolumename: *const u16) -> windows_core::Result { + pub unsafe fn IsVolumeSupported(&self, pwszvolumename: *const u16) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsVolumeSupported)(windows_core::Interface::as_raw(self), pwszvolumename, &mut result__).map(|| result__) } } - pub unsafe fn IsVolumeSnapshotted(&self, pwszvolumename: *const u16, pbsnapshotspresent: *mut super::super::Foundation::BOOL, plsnapshotcompatibility: *mut i32) -> windows_core::Result<()> { + pub unsafe fn IsVolumeSnapshotted(&self, pwszvolumename: *const u16, pbsnapshotspresent: *mut windows_core::BOOL, plsnapshotcompatibility: *mut i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsVolumeSnapshotted)(windows_core::Interface::as_raw(self), pwszvolumename, pbsnapshotspresent as _, plsnapshotcompatibility as _).ok() } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -2558,10 +2558,10 @@ pub struct IVssSoftwareSnapshotProvider_Vtbl { pub SetContext: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub GetSnapshotProperties: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut VSS_SNAPSHOT_PROP) -> windows_core::HRESULT, pub Query: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, VSS_OBJECT_TYPE, VSS_OBJECT_TYPE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub DeleteSnapshots: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, VSS_OBJECT_TYPE, super::super::Foundation::BOOL, *mut i32, *mut windows_core::GUID) -> windows_core::HRESULT, + pub DeleteSnapshots: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, VSS_OBJECT_TYPE, windows_core::BOOL, *mut i32, *mut windows_core::GUID) -> windows_core::HRESULT, pub BeginPrepareSnapshot: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, windows_core::GUID, *const u16, i32) -> windows_core::HRESULT, - pub IsVolumeSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsVolumeSnapshotted: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, *mut super::super::Foundation::BOOL, *mut i32) -> windows_core::HRESULT, + pub IsVolumeSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsVolumeSnapshotted: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, *mut windows_core::BOOL, *mut i32) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub SetSnapshotProperty: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, VSS_SNAPSHOT_PROPERTY_ID, super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -2574,10 +2574,10 @@ pub trait IVssSoftwareSnapshotProvider_Impl: windows_core::IUnknownImpl { fn SetContext(&self, lcontext: i32) -> windows_core::Result<()>; fn GetSnapshotProperties(&self, snapshotid: &windows_core::GUID, pprop: *mut VSS_SNAPSHOT_PROP) -> windows_core::Result<()>; fn Query(&self, queriedobjectid: &windows_core::GUID, equeriedobjecttype: VSS_OBJECT_TYPE, ereturnedobjectstype: VSS_OBJECT_TYPE) -> windows_core::Result; - fn DeleteSnapshots(&self, sourceobjectid: &windows_core::GUID, esourceobjecttype: VSS_OBJECT_TYPE, bforcedelete: super::super::Foundation::BOOL, pldeletedsnapshots: *mut i32, pnondeletedsnapshotid: *mut windows_core::GUID) -> windows_core::Result<()>; + fn DeleteSnapshots(&self, sourceobjectid: &windows_core::GUID, esourceobjecttype: VSS_OBJECT_TYPE, bforcedelete: windows_core::BOOL, pldeletedsnapshots: *mut i32, pnondeletedsnapshotid: *mut windows_core::GUID) -> windows_core::Result<()>; fn BeginPrepareSnapshot(&self, snapshotsetid: &windows_core::GUID, snapshotid: &windows_core::GUID, pwszvolumename: *const u16, lnewcontext: i32) -> windows_core::Result<()>; - fn IsVolumeSupported(&self, pwszvolumename: *const u16) -> windows_core::Result; - fn IsVolumeSnapshotted(&self, pwszvolumename: *const u16, pbsnapshotspresent: *mut super::super::Foundation::BOOL, plsnapshotcompatibility: *mut i32) -> windows_core::Result<()>; + fn IsVolumeSupported(&self, pwszvolumename: *const u16) -> windows_core::Result; + fn IsVolumeSnapshotted(&self, pwszvolumename: *const u16, pbsnapshotspresent: *mut windows_core::BOOL, plsnapshotcompatibility: *mut i32) -> windows_core::Result<()>; fn SetSnapshotProperty(&self, snapshotid: &windows_core::GUID, esnapshotpropertyid: VSS_SNAPSHOT_PROPERTY_ID, vproperty: &super::super::System::Variant::VARIANT) -> windows_core::Result<()>; fn RevertToSnapshot(&self, snapshotid: &windows_core::GUID) -> windows_core::Result<()>; fn QueryRevertStatus(&self, pwszvolume: *const u16) -> windows_core::Result; @@ -2609,7 +2609,7 @@ impl IVssSoftwareSnapshotProvider_Vtbl { } } } - unsafe extern "system" fn DeleteSnapshots(this: *mut core::ffi::c_void, sourceobjectid: windows_core::GUID, esourceobjecttype: VSS_OBJECT_TYPE, bforcedelete: super::super::Foundation::BOOL, pldeletedsnapshots: *mut i32, pnondeletedsnapshotid: *mut windows_core::GUID) -> windows_core::HRESULT { + unsafe extern "system" fn DeleteSnapshots(this: *mut core::ffi::c_void, sourceobjectid: windows_core::GUID, esourceobjecttype: VSS_OBJECT_TYPE, bforcedelete: windows_core::BOOL, pldeletedsnapshots: *mut i32, pnondeletedsnapshotid: *mut windows_core::GUID) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssSoftwareSnapshotProvider_Impl::DeleteSnapshots(this, core::mem::transmute(&sourceobjectid), core::mem::transmute_copy(&esourceobjecttype), core::mem::transmute_copy(&bforcedelete), core::mem::transmute_copy(&pldeletedsnapshots), core::mem::transmute_copy(&pnondeletedsnapshotid)).into() @@ -2621,7 +2621,7 @@ impl IVssSoftwareSnapshotProvider_Vtbl { IVssSoftwareSnapshotProvider_Impl::BeginPrepareSnapshot(this, core::mem::transmute(&snapshotsetid), core::mem::transmute(&snapshotid), core::mem::transmute_copy(&pwszvolumename), core::mem::transmute_copy(&lnewcontext)).into() } } - unsafe extern "system" fn IsVolumeSupported(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pbsupportedbythisprovider: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsVolumeSupported(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pbsupportedbythisprovider: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVssSoftwareSnapshotProvider_Impl::IsVolumeSupported(this, core::mem::transmute_copy(&pwszvolumename)) { @@ -2633,7 +2633,7 @@ impl IVssSoftwareSnapshotProvider_Vtbl { } } } - unsafe extern "system" fn IsVolumeSnapshotted(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pbsnapshotspresent: *mut super::super::Foundation::BOOL, plsnapshotcompatibility: *mut i32) -> windows_core::HRESULT { + unsafe extern "system" fn IsVolumeSnapshotted(this: *mut core::ffi::c_void, pwszvolumename: *const u16, pbsnapshotspresent: *mut windows_core::BOOL, plsnapshotcompatibility: *mut i32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVssSoftwareSnapshotProvider_Impl::IsVolumeSnapshotted(this, core::mem::transmute_copy(&pwszvolumename), core::mem::transmute_copy(&pbsnapshotspresent), core::mem::transmute_copy(&plsnapshotcompatibility)).into() @@ -3427,10 +3427,10 @@ impl Default for VSS_VOLUME_PROP { #[derive(Clone, Copy, Debug, PartialEq)] pub struct VSS_VOLUME_PROTECTION_INFO { pub m_protectionLevel: VSS_PROTECTION_LEVEL, - pub m_volumeIsOfflineForProtection: super::super::Foundation::BOOL, + pub m_volumeIsOfflineForProtection: windows_core::BOOL, pub m_protectionFault: VSS_PROTECTION_FAULT, pub m_failureStatus: i32, - pub m_volumeHasUnusedDiffArea: super::super::Foundation::BOOL, + pub m_volumeHasUnusedDiffArea: windows_core::BOOL, pub m_reserved: u32, } impl Default for VSS_VOLUME_PROTECTION_INFO { 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 6edd3bb08b..ae1abf47c1 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 @@ -133,7 +133,7 @@ impl windows_core::RuntimeName for IPrintDocumentPackageTarget {} windows_core::imp::define_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 { + pub unsafe fn GetIsTargetIppPrinter(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIsTargetIppPrinter)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -150,16 +150,16 @@ impl IPrintDocumentPackageTarget2 { #[repr(C)] pub struct IPrintDocumentPackageTarget2_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetIsTargetIppPrinter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetIsTargetIppPrinter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetTargetIppPrintDevice: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IPrintDocumentPackageTarget2_Impl: windows_core::IUnknownImpl { - fn GetIsTargetIppPrinter(&self) -> windows_core::Result; + fn GetIsTargetIppPrinter(&self) -> windows_core::Result; fn GetTargetIppPrintDevice(&self, riid: *const windows_core::GUID, ppvtarget: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } impl IPrintDocumentPackageTarget2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetIsTargetIppPrinter(this: *mut core::ffi::c_void, isippprinter: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetIsTargetIppPrinter(this: *mut core::ffi::c_void, isippprinter: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPrintDocumentPackageTarget2_Impl::GetIsTargetIppPrinter(this) { 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 51fb43354a..f148cb7fc9 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Xps/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Xps/mod.rs @@ -52,8 +52,8 @@ pub unsafe fn ExtEscape(hdc: super::super::Graphics::Gdi::HDC, iescape: i32, lpi } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn PrintWindow(hwnd: super::super::Foundation::HWND, hdcblt: super::super::Graphics::Gdi::HDC, nflags: PRINT_WINDOW_FLAGS) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn PrintWindow(hwnd : super::super::Foundation:: HWND, hdcblt : super::super::Graphics::Gdi:: HDC, nflags : PRINT_WINDOW_FLAGS) -> super::super::Foundation:: BOOL); +pub unsafe fn PrintWindow(hwnd: super::super::Foundation::HWND, hdcblt: super::super::Graphics::Gdi::HDC, nflags: PRINT_WINDOW_FLAGS) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn PrintWindow(hwnd : super::super::Foundation:: HWND, hdcblt : super::super::Graphics::Gdi:: HDC, nflags : PRINT_WINDOW_FLAGS) -> windows_core::BOOL); unsafe { PrintWindow(hwnd, hdcblt, nflags) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -81,7 +81,7 @@ pub unsafe fn StartPage(hdc: super::super::Graphics::Gdi::HDC) -> i32 { unsafe { StartPage(hdc) } } #[cfg(feature = "Win32_Graphics_Gdi")] -pub type ABORTPROC = Option super::super::Foundation::BOOL>; +pub type ABORTPROC = Option windows_core::BOOL>; pub const DC_BINNAMES: PRINTER_DEVICE_CAPABILITIES = PRINTER_DEVICE_CAPABILITIES(12u16); pub const DC_BINS: PRINTER_DEVICE_CAPABILITIES = PRINTER_DEVICE_CAPABILITIES(6u16); pub const DC_COLLATE: PRINTER_DEVICE_CAPABILITIES = PRINTER_DEVICE_CAPABILITIES(22u16); @@ -395,7 +395,7 @@ impl IXpsOMCanvas { (windows_core::Interface::vtable(self).GetVisuals)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetUseAliasedEdgeMode(&self) -> windows_core::Result { + pub unsafe fn GetUseAliasedEdgeMode(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetUseAliasedEdgeMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -469,8 +469,8 @@ impl IXpsOMCanvas { pub struct IXpsOMCanvas_Vtbl { pub base__: IXpsOMVisual_Vtbl, pub GetVisuals: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetUseAliasedEdgeMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetUseAliasedEdgeMode: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetUseAliasedEdgeMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetUseAliasedEdgeMode: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetAccessibilityShortDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub SetAccessibilityShortDescription: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub GetAccessibilityLongDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, @@ -485,8 +485,8 @@ pub struct IXpsOMCanvas_Vtbl { #[cfg(feature = "Win32_System_Com")] pub trait IXpsOMCanvas_Impl: IXpsOMVisual_Impl { fn GetVisuals(&self) -> windows_core::Result; - fn GetUseAliasedEdgeMode(&self) -> windows_core::Result; - fn SetUseAliasedEdgeMode(&self, usealiasededgemode: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetUseAliasedEdgeMode(&self) -> windows_core::Result; + fn SetUseAliasedEdgeMode(&self, usealiasededgemode: windows_core::BOOL) -> windows_core::Result<()>; fn GetAccessibilityShortDescription(&self) -> windows_core::Result; fn SetAccessibilityShortDescription(&self, shortdescription: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetAccessibilityLongDescription(&self) -> windows_core::Result; @@ -513,7 +513,7 @@ impl IXpsOMCanvas_Vtbl { } } } - unsafe extern "system" fn GetUseAliasedEdgeMode(this: *mut core::ffi::c_void, usealiasededgemode: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetUseAliasedEdgeMode(this: *mut core::ffi::c_void, usealiasededgemode: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMCanvas_Impl::GetUseAliasedEdgeMode(this) { @@ -525,7 +525,7 @@ impl IXpsOMCanvas_Vtbl { } } } - unsafe extern "system" fn SetUseAliasedEdgeMode(this: *mut core::ffi::c_void, usealiasededgemode: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetUseAliasedEdgeMode(this: *mut core::ffi::c_void, usealiasededgemode: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMCanvas_Impl::SetUseAliasedEdgeMode(this, core::mem::transmute_copy(&usealiasededgemode)).into() @@ -2803,10 +2803,10 @@ impl IXpsOMGeometryFigure { pub unsafe fn GetSegmentTypes(&self, segmentcount: *mut u32, segmenttypes: *mut XPS_SEGMENT_TYPE) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetSegmentTypes)(windows_core::Interface::as_raw(self), segmentcount as _, segmenttypes as _).ok() } } - pub unsafe fn GetSegmentStrokes(&self, segmentcount: *mut u32, segmentstrokes: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetSegmentStrokes(&self, segmentcount: *mut u32, segmentstrokes: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetSegmentStrokes)(windows_core::Interface::as_raw(self), segmentcount as _, segmentstrokes as _).ok() } } - pub unsafe fn SetSegments(&self, segmentcount: u32, segmentdatacount: u32, segmenttypes: *const XPS_SEGMENT_TYPE, segmentdata: *const f32, segmentstrokes: *const super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn SetSegments(&self, segmentcount: u32, segmentdatacount: u32, segmenttypes: *const XPS_SEGMENT_TYPE, segmentdata: *const f32, segmentstrokes: *const windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetSegments)(windows_core::Interface::as_raw(self), segmentcount, segmentdatacount, segmenttypes, segmentdata, segmentstrokes).ok() } } pub unsafe fn GetStartPoint(&self) -> windows_core::Result { @@ -2818,7 +2818,7 @@ impl IXpsOMGeometryFigure { pub unsafe fn SetStartPoint(&self, startpoint: *const XPS_POINT) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetStartPoint)(windows_core::Interface::as_raw(self), startpoint).ok() } } - pub unsafe fn GetIsClosed(&self) -> windows_core::Result { + pub unsafe fn GetIsClosed(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIsClosed)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2827,7 +2827,7 @@ impl IXpsOMGeometryFigure { pub unsafe fn SetIsClosed(&self, isclosed: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetIsClosed)(windows_core::Interface::as_raw(self), isclosed.into()).ok() } } - pub unsafe fn GetIsFilled(&self) -> windows_core::Result { + pub unsafe fn GetIsFilled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIsFilled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2867,14 +2867,14 @@ pub struct IXpsOMGeometryFigure_Vtbl { pub GetOwner: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSegmentData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut f32) -> windows_core::HRESULT, pub GetSegmentTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut XPS_SEGMENT_TYPE) -> windows_core::HRESULT, - pub GetSegmentStrokes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetSegments: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const XPS_SEGMENT_TYPE, *const f32, *const super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetSegmentStrokes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetSegments: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const XPS_SEGMENT_TYPE, *const f32, *const windows_core::BOOL) -> windows_core::HRESULT, pub GetStartPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut XPS_POINT) -> windows_core::HRESULT, pub SetStartPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *const XPS_POINT) -> windows_core::HRESULT, - pub GetIsClosed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetIsClosed: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetIsFilled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetIsFilled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetIsClosed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetIsClosed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetIsFilled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetIsFilled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetSegmentCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetSegmentDataCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetSegmentStrokePattern: unsafe extern "system" fn(*mut core::ffi::c_void, *mut XPS_SEGMENT_STROKE_PATTERN) -> windows_core::HRESULT, @@ -2884,14 +2884,14 @@ pub trait IXpsOMGeometryFigure_Impl: windows_core::IUnknownImpl { fn GetOwner(&self) -> windows_core::Result; fn GetSegmentData(&self, datacount: *mut u32, segmentdata: *mut f32) -> windows_core::Result<()>; fn GetSegmentTypes(&self, segmentcount: *mut u32, segmenttypes: *mut XPS_SEGMENT_TYPE) -> windows_core::Result<()>; - fn GetSegmentStrokes(&self, segmentcount: *mut u32, segmentstrokes: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetSegments(&self, segmentcount: u32, segmentdatacount: u32, segmenttypes: *const XPS_SEGMENT_TYPE, segmentdata: *const f32, segmentstrokes: *const super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetSegmentStrokes(&self, segmentcount: *mut u32, segmentstrokes: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn SetSegments(&self, segmentcount: u32, segmentdatacount: u32, segmenttypes: *const XPS_SEGMENT_TYPE, segmentdata: *const f32, segmentstrokes: *const windows_core::BOOL) -> windows_core::Result<()>; fn GetStartPoint(&self) -> windows_core::Result; fn SetStartPoint(&self, startpoint: *const XPS_POINT) -> windows_core::Result<()>; - fn GetIsClosed(&self) -> windows_core::Result; - fn SetIsClosed(&self, isclosed: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetIsFilled(&self) -> windows_core::Result; - fn SetIsFilled(&self, isfilled: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetIsClosed(&self) -> windows_core::Result; + fn SetIsClosed(&self, isclosed: windows_core::BOOL) -> windows_core::Result<()>; + fn GetIsFilled(&self) -> windows_core::Result; + fn SetIsFilled(&self, isfilled: windows_core::BOOL) -> windows_core::Result<()>; fn GetSegmentCount(&self) -> windows_core::Result; fn GetSegmentDataCount(&self) -> windows_core::Result; fn GetSegmentStrokePattern(&self) -> windows_core::Result; @@ -2923,13 +2923,13 @@ impl IXpsOMGeometryFigure_Vtbl { IXpsOMGeometryFigure_Impl::GetSegmentTypes(this, core::mem::transmute_copy(&segmentcount), core::mem::transmute_copy(&segmenttypes)).into() } } - unsafe extern "system" fn GetSegmentStrokes(this: *mut core::ffi::c_void, segmentcount: *mut u32, segmentstrokes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetSegmentStrokes(this: *mut core::ffi::c_void, segmentcount: *mut u32, segmentstrokes: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGeometryFigure_Impl::GetSegmentStrokes(this, core::mem::transmute_copy(&segmentcount), core::mem::transmute_copy(&segmentstrokes)).into() } } - unsafe extern "system" fn SetSegments(this: *mut core::ffi::c_void, segmentcount: u32, segmentdatacount: u32, segmenttypes: *const XPS_SEGMENT_TYPE, segmentdata: *const f32, segmentstrokes: *const super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetSegments(this: *mut core::ffi::c_void, segmentcount: u32, segmentdatacount: u32, segmenttypes: *const XPS_SEGMENT_TYPE, segmentdata: *const f32, segmentstrokes: *const windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGeometryFigure_Impl::SetSegments(this, core::mem::transmute_copy(&segmentcount), core::mem::transmute_copy(&segmentdatacount), core::mem::transmute_copy(&segmenttypes), core::mem::transmute_copy(&segmentdata), core::mem::transmute_copy(&segmentstrokes)).into() @@ -2953,7 +2953,7 @@ impl IXpsOMGeometryFigure_Vtbl { IXpsOMGeometryFigure_Impl::SetStartPoint(this, core::mem::transmute_copy(&startpoint)).into() } } - unsafe extern "system" fn GetIsClosed(this: *mut core::ffi::c_void, isclosed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetIsClosed(this: *mut core::ffi::c_void, isclosed: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGeometryFigure_Impl::GetIsClosed(this) { @@ -2965,13 +2965,13 @@ impl IXpsOMGeometryFigure_Vtbl { } } } - unsafe extern "system" fn SetIsClosed(this: *mut core::ffi::c_void, isclosed: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetIsClosed(this: *mut core::ffi::c_void, isclosed: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGeometryFigure_Impl::SetIsClosed(this, core::mem::transmute_copy(&isclosed)).into() } } - unsafe extern "system" fn GetIsFilled(this: *mut core::ffi::c_void, isfilled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetIsFilled(this: *mut core::ffi::c_void, isfilled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGeometryFigure_Impl::GetIsFilled(this) { @@ -2983,7 +2983,7 @@ impl IXpsOMGeometryFigure_Vtbl { } } } - unsafe extern "system" fn SetIsFilled(this: *mut core::ffi::c_void, isfilled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetIsFilled(this: *mut core::ffi::c_void, isfilled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGeometryFigure_Impl::SetIsFilled(this, core::mem::transmute_copy(&isfilled)).into() @@ -3229,7 +3229,7 @@ impl IXpsOMGlyphs { (windows_core::Interface::vtable(self).GetBidiLevel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetIsSideways(&self) -> windows_core::Result { + pub unsafe fn GetIsSideways(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIsSideways)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3343,7 +3343,7 @@ pub struct IXpsOMGlyphs_Vtbl { pub GetProhibitedCaretStopCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetProhibitedCaretStops: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32) -> windows_core::HRESULT, pub GetBidiLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub GetIsSideways: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetIsSideways: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetDeviceFontName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetStyleSimulations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut XPS_STYLE_SIMULATION) -> windows_core::HRESULT, pub SetStyleSimulations: unsafe extern "system" fn(*mut core::ffi::c_void, XPS_STYLE_SIMULATION) -> windows_core::HRESULT, @@ -3373,7 +3373,7 @@ pub trait IXpsOMGlyphs_Impl: IXpsOMVisual_Impl { fn GetProhibitedCaretStopCount(&self) -> windows_core::Result; fn GetProhibitedCaretStops(&self, prohibitedcaretstopcount: *mut u32, prohibitedcaretstops: *mut u32) -> windows_core::Result<()>; fn GetBidiLevel(&self) -> windows_core::Result; - fn GetIsSideways(&self) -> windows_core::Result; + fn GetIsSideways(&self) -> windows_core::Result; fn GetDeviceFontName(&self) -> windows_core::Result; fn GetStyleSimulations(&self) -> windows_core::Result; fn SetStyleSimulations(&self, stylesimulations: XPS_STYLE_SIMULATION) -> windows_core::Result<()>; @@ -3474,7 +3474,7 @@ impl IXpsOMGlyphs_Vtbl { } } } - unsafe extern "system" fn GetIsSideways(this: *mut core::ffi::c_void, issideways: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetIsSideways(this: *mut core::ffi::c_void, issideways: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphs_Impl::GetIsSideways(this) { @@ -3760,7 +3760,7 @@ impl IXpsOMGlyphsEditor { pub unsafe fn SetBidiLevel(&self, bidilevel: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBidiLevel)(windows_core::Interface::as_raw(self), bidilevel).ok() } } - pub unsafe fn GetIsSideways(&self) -> windows_core::Result { + pub unsafe fn GetIsSideways(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIsSideways)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3799,8 +3799,8 @@ pub struct IXpsOMGlyphsEditor_Vtbl { pub SetProhibitedCaretStops: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const u32) -> windows_core::HRESULT, pub GetBidiLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetBidiLevel: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub GetIsSideways: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetIsSideways: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetIsSideways: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetIsSideways: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetDeviceFontName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub SetDeviceFontName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, } @@ -3819,8 +3819,8 @@ pub trait IXpsOMGlyphsEditor_Impl: windows_core::IUnknownImpl { fn SetProhibitedCaretStops(&self, count: u32, prohibitedcaretstops: *const u32) -> windows_core::Result<()>; fn GetBidiLevel(&self) -> windows_core::Result; fn SetBidiLevel(&self, bidilevel: u32) -> windows_core::Result<()>; - fn GetIsSideways(&self) -> windows_core::Result; - fn SetIsSideways(&self, issideways: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetIsSideways(&self) -> windows_core::Result; + fn SetIsSideways(&self, issideways: windows_core::BOOL) -> windows_core::Result<()>; fn GetDeviceFontName(&self) -> windows_core::Result; fn SetDeviceFontName(&self, devicefontname: &windows_core::PCWSTR) -> windows_core::Result<()>; } @@ -3940,7 +3940,7 @@ impl IXpsOMGlyphsEditor_Vtbl { IXpsOMGlyphsEditor_Impl::SetBidiLevel(this, core::mem::transmute_copy(&bidilevel)).into() } } - unsafe extern "system" fn GetIsSideways(this: *mut core::ffi::c_void, issideways: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetIsSideways(this: *mut core::ffi::c_void, issideways: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMGlyphsEditor_Impl::GetIsSideways(this) { @@ -3952,7 +3952,7 @@ impl IXpsOMGlyphsEditor_Vtbl { } } } - unsafe extern "system" fn SetIsSideways(this: *mut core::ffi::c_void, issideways: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetIsSideways(this: *mut core::ffi::c_void, issideways: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMGlyphsEditor_Impl::SetIsSideways(this, core::mem::transmute_copy(&issideways)).into() @@ -5435,9 +5435,9 @@ impl IXpsOMObjectFactory { pub struct IXpsOMObjectFactory_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub CreatePackage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CreatePackageFromFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreatePackageFromFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub CreatePackageFromStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreatePackageFromStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreatePackageFromStream: usize, #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -5475,7 +5475,7 @@ pub struct IXpsOMObjectFactory_Vtbl { #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] CreatePage: usize, #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] - pub CreatePageFromStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreatePageFromStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] CreatePageFromStream: usize, pub CreateCanvas: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -5500,7 +5500,7 @@ pub struct IXpsOMObjectFactory_Vtbl { #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] CreatePrintTicketResource: usize, #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] - pub CreateFontResource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, XPS_FONT_EMBEDDING, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateFontResource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, XPS_FONT_EMBEDDING, *mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] CreateFontResource: usize, pub CreateGradientStop: unsafe extern "system" fn(*mut core::ffi::c_void, *const XPS_COLOR, *mut core::ffi::c_void, f32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -5513,11 +5513,11 @@ pub struct IXpsOMObjectFactory_Vtbl { pub CreateDictionary: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreatePartUriCollection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] - pub CreatePackageWriterOnFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const super::super::Security::SECURITY_ATTRIBUTES, u32, super::super::Foundation::BOOL, XPS_INTERLEAVING, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreatePackageWriterOnFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const super::super::Security::SECURITY_ATTRIBUTES, u32, windows_core::BOOL, XPS_INTERLEAVING, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_Security", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] CreatePackageWriterOnFile: usize, #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] - pub CreatePackageWriterOnStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, XPS_INTERLEAVING, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreatePackageWriterOnStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, XPS_INTERLEAVING, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] CreatePackageWriterOnStream: usize, #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -5532,8 +5532,8 @@ pub struct IXpsOMObjectFactory_Vtbl { #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub trait IXpsOMObjectFactory_Impl: windows_core::IUnknownImpl { fn CreatePackage(&self) -> windows_core::Result; - fn CreatePackageFromFile(&self, filename: &windows_core::PCWSTR, reuseobjects: super::super::Foundation::BOOL) -> windows_core::Result; - fn CreatePackageFromStream(&self, stream: windows_core::Ref, reuseobjects: super::super::Foundation::BOOL) -> windows_core::Result; + fn CreatePackageFromFile(&self, filename: &windows_core::PCWSTR, reuseobjects: windows_core::BOOL) -> windows_core::Result; + fn CreatePackageFromStream(&self, stream: windows_core::Ref, reuseobjects: windows_core::BOOL) -> windows_core::Result; fn CreateStoryFragmentsResource(&self, acquiredstream: windows_core::Ref, parturi: windows_core::Ref) -> windows_core::Result; fn CreateDocumentStructureResource(&self, acquiredstream: windows_core::Ref, parturi: windows_core::Ref) -> windows_core::Result; fn CreateSignatureBlockResource(&self, acquiredstream: windows_core::Ref, parturi: windows_core::Ref) -> windows_core::Result; @@ -5544,7 +5544,7 @@ pub trait IXpsOMObjectFactory_Impl: windows_core::IUnknownImpl { fn CreateDocument(&self, parturi: windows_core::Ref) -> windows_core::Result; fn CreatePageReference(&self, advisorypagedimensions: *const XPS_SIZE) -> windows_core::Result; fn CreatePage(&self, pagedimensions: *const XPS_SIZE, language: &windows_core::PCWSTR, parturi: windows_core::Ref) -> windows_core::Result; - fn CreatePageFromStream(&self, pagemarkupstream: windows_core::Ref, parturi: windows_core::Ref, resources: windows_core::Ref, reuseobjects: super::super::Foundation::BOOL) -> windows_core::Result; + fn CreatePageFromStream(&self, pagemarkupstream: windows_core::Ref, parturi: windows_core::Ref, resources: windows_core::Ref, reuseobjects: windows_core::BOOL) -> windows_core::Result; fn CreateCanvas(&self) -> windows_core::Result; fn CreateGlyphs(&self, fontresource: windows_core::Ref) -> windows_core::Result; fn CreatePath(&self) -> windows_core::Result; @@ -5557,15 +5557,15 @@ pub trait IXpsOMObjectFactory_Impl: windows_core::IUnknownImpl { fn CreateVisualBrush(&self, viewbox: *const XPS_RECT, viewport: *const XPS_RECT) -> windows_core::Result; fn CreateImageResource(&self, acquiredstream: windows_core::Ref, contenttype: XPS_IMAGE_TYPE, parturi: windows_core::Ref) -> windows_core::Result; fn CreatePrintTicketResource(&self, acquiredstream: windows_core::Ref, parturi: windows_core::Ref) -> windows_core::Result; - fn CreateFontResource(&self, acquiredstream: windows_core::Ref, fontembedding: XPS_FONT_EMBEDDING, parturi: windows_core::Ref, isobfsourcestream: super::super::Foundation::BOOL) -> windows_core::Result; + fn CreateFontResource(&self, acquiredstream: windows_core::Ref, fontembedding: XPS_FONT_EMBEDDING, parturi: windows_core::Ref, isobfsourcestream: windows_core::BOOL) -> windows_core::Result; fn CreateGradientStop(&self, color: *const XPS_COLOR, colorprofile: windows_core::Ref, offset: f32) -> windows_core::Result; fn CreateLinearGradientBrush(&self, gradstop1: windows_core::Ref, gradstop2: windows_core::Ref, startpoint: *const XPS_POINT, endpoint: *const XPS_POINT) -> windows_core::Result; fn CreateRadialGradientBrush(&self, gradstop1: windows_core::Ref, gradstop2: windows_core::Ref, centerpoint: *const XPS_POINT, gradientorigin: *const XPS_POINT, radiisizes: *const XPS_SIZE) -> windows_core::Result; fn CreateCoreProperties(&self, parturi: windows_core::Ref) -> windows_core::Result; fn CreateDictionary(&self) -> windows_core::Result; fn CreatePartUriCollection(&self) -> windows_core::Result; - fn CreatePackageWriterOnFile(&self, filename: &windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: super::super::Foundation::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: windows_core::Ref, coreproperties: windows_core::Ref, packagethumbnail: windows_core::Ref, documentsequenceprintticket: windows_core::Ref, discardcontrolpartname: windows_core::Ref) -> windows_core::Result; - fn CreatePackageWriterOnStream(&self, outputstream: windows_core::Ref, optimizemarkupsize: super::super::Foundation::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: windows_core::Ref, coreproperties: windows_core::Ref, packagethumbnail: windows_core::Ref, documentsequenceprintticket: windows_core::Ref, discardcontrolpartname: windows_core::Ref) -> windows_core::Result; + fn CreatePackageWriterOnFile(&self, filename: &windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: windows_core::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: windows_core::Ref, coreproperties: windows_core::Ref, packagethumbnail: windows_core::Ref, documentsequenceprintticket: windows_core::Ref, discardcontrolpartname: windows_core::Ref) -> windows_core::Result; + fn CreatePackageWriterOnStream(&self, outputstream: windows_core::Ref, optimizemarkupsize: windows_core::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: windows_core::Ref, coreproperties: windows_core::Ref, packagethumbnail: windows_core::Ref, documentsequenceprintticket: windows_core::Ref, discardcontrolpartname: windows_core::Ref) -> windows_core::Result; fn CreatePartUri(&self, uri: &windows_core::PCWSTR) -> windows_core::Result; fn CreateReadOnlyStreamOnFile(&self, filename: &windows_core::PCWSTR) -> windows_core::Result; } @@ -5584,7 +5584,7 @@ impl IXpsOMObjectFactory_Vtbl { } } } - unsafe extern "system" fn CreatePackageFromFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, reuseobjects: super::super::Foundation::BOOL, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreatePackageFromFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, reuseobjects: windows_core::BOOL, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreatePackageFromFile(this, core::mem::transmute(&filename), core::mem::transmute_copy(&reuseobjects)) { @@ -5596,7 +5596,7 @@ impl IXpsOMObjectFactory_Vtbl { } } } - unsafe extern "system" fn CreatePackageFromStream(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, reuseobjects: super::super::Foundation::BOOL, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreatePackageFromStream(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, reuseobjects: windows_core::BOOL, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreatePackageFromStream(this, core::mem::transmute_copy(&stream), core::mem::transmute_copy(&reuseobjects)) { @@ -5728,7 +5728,7 @@ impl IXpsOMObjectFactory_Vtbl { } } } - unsafe extern "system" fn CreatePageFromStream(this: *mut core::ffi::c_void, pagemarkupstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, resources: *mut core::ffi::c_void, reuseobjects: super::super::Foundation::BOOL, page: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreatePageFromStream(this: *mut core::ffi::c_void, pagemarkupstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, resources: *mut core::ffi::c_void, reuseobjects: windows_core::BOOL, page: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreatePageFromStream(this, core::mem::transmute_copy(&pagemarkupstream), core::mem::transmute_copy(&parturi), core::mem::transmute_copy(&resources), core::mem::transmute_copy(&reuseobjects)) { @@ -5884,7 +5884,7 @@ impl IXpsOMObjectFactory_Vtbl { } } } - unsafe extern "system" fn CreateFontResource(this: *mut core::ffi::c_void, acquiredstream: *mut core::ffi::c_void, fontembedding: XPS_FONT_EMBEDDING, parturi: *mut core::ffi::c_void, isobfsourcestream: super::super::Foundation::BOOL, fontresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateFontResource(this: *mut core::ffi::c_void, acquiredstream: *mut core::ffi::c_void, fontembedding: XPS_FONT_EMBEDDING, parturi: *mut core::ffi::c_void, isobfsourcestream: windows_core::BOOL, fontresource: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreateFontResource(this, core::mem::transmute_copy(&acquiredstream), core::mem::transmute_copy(&fontembedding), core::mem::transmute_copy(&parturi), core::mem::transmute_copy(&isobfsourcestream)) { @@ -5968,7 +5968,7 @@ impl IXpsOMObjectFactory_Vtbl { } } } - unsafe extern "system" fn CreatePackageWriterOnFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: super::super::Foundation::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: *mut core::ffi::c_void, coreproperties: *mut core::ffi::c_void, packagethumbnail: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreatePackageWriterOnFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: windows_core::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: *mut core::ffi::c_void, coreproperties: *mut core::ffi::c_void, packagethumbnail: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreatePackageWriterOnFile(this, core::mem::transmute(&filename), core::mem::transmute_copy(&securityattributes), core::mem::transmute_copy(&flagsandattributes), core::mem::transmute_copy(&optimizemarkupsize), core::mem::transmute_copy(&interleaving), core::mem::transmute_copy(&documentsequencepartname), core::mem::transmute_copy(&coreproperties), core::mem::transmute_copy(&packagethumbnail), core::mem::transmute_copy(&documentsequenceprintticket), core::mem::transmute_copy(&discardcontrolpartname)) { @@ -5980,7 +5980,7 @@ impl IXpsOMObjectFactory_Vtbl { } } } - unsafe extern "system" fn CreatePackageWriterOnStream(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, optimizemarkupsize: super::super::Foundation::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: *mut core::ffi::c_void, coreproperties: *mut core::ffi::c_void, packagethumbnail: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreatePackageWriterOnStream(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, optimizemarkupsize: windows_core::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: *mut core::ffi::c_void, coreproperties: *mut core::ffi::c_void, packagethumbnail: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory_Impl::CreatePackageWriterOnStream(this, core::mem::transmute_copy(&outputstream), core::mem::transmute_copy(&optimizemarkupsize), core::mem::transmute_copy(&interleaving), core::mem::transmute_copy(&documentsequencepartname), core::mem::transmute_copy(&coreproperties), core::mem::transmute_copy(&packagethumbnail), core::mem::transmute_copy(&documentsequenceprintticket), core::mem::transmute_copy(&discardcontrolpartname)) { @@ -6205,25 +6205,25 @@ pub struct IXpsOMObjectFactory1_Vtbl { pub ConvertHDPhotoToJpegXR: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub ConvertJpegXRToHDPhoto: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] - pub CreatePackageWriterOnFile1: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const super::super::Security::SECURITY_ATTRIBUTES, u32, super::super::Foundation::BOOL, XPS_INTERLEAVING, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, XPS_DOCUMENT_TYPE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreatePackageWriterOnFile1: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const super::super::Security::SECURITY_ATTRIBUTES, u32, windows_core::BOOL, XPS_INTERLEAVING, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, XPS_DOCUMENT_TYPE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_Security", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] CreatePackageWriterOnFile1: usize, #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] - pub CreatePackageWriterOnStream1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, XPS_INTERLEAVING, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, XPS_DOCUMENT_TYPE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreatePackageWriterOnStream1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, XPS_INTERLEAVING, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, XPS_DOCUMENT_TYPE, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] CreatePackageWriterOnStream1: usize, pub CreatePackage1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub CreatePackageFromStream1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreatePackageFromStream1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreatePackageFromStream1: usize, - pub CreatePackageFromFile1: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreatePackageFromFile1: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub CreatePage1: unsafe extern "system" fn(*mut core::ffi::c_void, *const XPS_SIZE, windows_core::PCWSTR, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] CreatePage1: usize, #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] - pub CreatePageFromStream1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreatePageFromStream1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] CreatePageFromStream1: usize, #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -6237,13 +6237,13 @@ pub trait IXpsOMObjectFactory1_Impl: IXpsOMObjectFactory_Impl { fn GetDocumentTypeFromStream(&self, xpsdocumentstream: windows_core::Ref) -> windows_core::Result; fn ConvertHDPhotoToJpegXR(&self, imageresource: windows_core::Ref) -> windows_core::Result<()>; fn ConvertJpegXRToHDPhoto(&self, imageresource: windows_core::Ref) -> windows_core::Result<()>; - fn CreatePackageWriterOnFile1(&self, filename: &windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: super::super::Foundation::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: windows_core::Ref, coreproperties: windows_core::Ref, packagethumbnail: windows_core::Ref, documentsequenceprintticket: windows_core::Ref, discardcontrolpartname: windows_core::Ref, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::Result; - fn CreatePackageWriterOnStream1(&self, outputstream: windows_core::Ref, optimizemarkupsize: super::super::Foundation::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: windows_core::Ref, coreproperties: windows_core::Ref, packagethumbnail: windows_core::Ref, documentsequenceprintticket: windows_core::Ref, discardcontrolpartname: windows_core::Ref, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::Result; + fn CreatePackageWriterOnFile1(&self, filename: &windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: windows_core::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: windows_core::Ref, coreproperties: windows_core::Ref, packagethumbnail: windows_core::Ref, documentsequenceprintticket: windows_core::Ref, discardcontrolpartname: windows_core::Ref, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::Result; + fn CreatePackageWriterOnStream1(&self, outputstream: windows_core::Ref, optimizemarkupsize: windows_core::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: windows_core::Ref, coreproperties: windows_core::Ref, packagethumbnail: windows_core::Ref, documentsequenceprintticket: windows_core::Ref, discardcontrolpartname: windows_core::Ref, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::Result; fn CreatePackage1(&self) -> windows_core::Result; - fn CreatePackageFromStream1(&self, stream: windows_core::Ref, reuseobjects: super::super::Foundation::BOOL) -> windows_core::Result; - fn CreatePackageFromFile1(&self, filename: &windows_core::PCWSTR, reuseobjects: super::super::Foundation::BOOL) -> windows_core::Result; + fn CreatePackageFromStream1(&self, stream: windows_core::Ref, reuseobjects: windows_core::BOOL) -> windows_core::Result; + fn CreatePackageFromFile1(&self, filename: &windows_core::PCWSTR, reuseobjects: windows_core::BOOL) -> windows_core::Result; fn CreatePage1(&self, pagedimensions: *const XPS_SIZE, language: &windows_core::PCWSTR, parturi: windows_core::Ref) -> windows_core::Result; - fn CreatePageFromStream1(&self, pagemarkupstream: windows_core::Ref, parturi: windows_core::Ref, resources: windows_core::Ref, reuseobjects: super::super::Foundation::BOOL) -> windows_core::Result; + fn CreatePageFromStream1(&self, pagemarkupstream: windows_core::Ref, parturi: windows_core::Ref, resources: windows_core::Ref, reuseobjects: windows_core::BOOL) -> windows_core::Result; fn CreateRemoteDictionaryResourceFromStream1(&self, dictionarymarkupstream: windows_core::Ref, parturi: windows_core::Ref, resources: windows_core::Ref) -> windows_core::Result; } #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -6285,7 +6285,7 @@ impl IXpsOMObjectFactory1_Vtbl { IXpsOMObjectFactory1_Impl::ConvertJpegXRToHDPhoto(this, core::mem::transmute_copy(&imageresource)).into() } } - unsafe extern "system" fn CreatePackageWriterOnFile1(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: super::super::Foundation::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: *mut core::ffi::c_void, coreproperties: *mut core::ffi::c_void, packagethumbnail: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, documenttype: XPS_DOCUMENT_TYPE, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreatePackageWriterOnFile1(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: windows_core::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: *mut core::ffi::c_void, coreproperties: *mut core::ffi::c_void, packagethumbnail: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, documenttype: XPS_DOCUMENT_TYPE, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory1_Impl::CreatePackageWriterOnFile1( @@ -6310,7 +6310,7 @@ impl IXpsOMObjectFactory1_Vtbl { } } } - unsafe extern "system" fn CreatePackageWriterOnStream1(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, optimizemarkupsize: super::super::Foundation::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: *mut core::ffi::c_void, coreproperties: *mut core::ffi::c_void, packagethumbnail: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, documenttype: XPS_DOCUMENT_TYPE, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreatePackageWriterOnStream1(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, optimizemarkupsize: windows_core::BOOL, interleaving: XPS_INTERLEAVING, documentsequencepartname: *mut core::ffi::c_void, coreproperties: *mut core::ffi::c_void, packagethumbnail: *mut core::ffi::c_void, documentsequenceprintticket: *mut core::ffi::c_void, discardcontrolpartname: *mut core::ffi::c_void, documenttype: XPS_DOCUMENT_TYPE, packagewriter: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory1_Impl::CreatePackageWriterOnStream1(this, core::mem::transmute_copy(&outputstream), core::mem::transmute_copy(&optimizemarkupsize), core::mem::transmute_copy(&interleaving), core::mem::transmute_copy(&documentsequencepartname), core::mem::transmute_copy(&coreproperties), core::mem::transmute_copy(&packagethumbnail), core::mem::transmute_copy(&documentsequenceprintticket), core::mem::transmute_copy(&discardcontrolpartname), core::mem::transmute_copy(&documenttype)) { @@ -6334,7 +6334,7 @@ impl IXpsOMObjectFactory1_Vtbl { } } } - unsafe extern "system" fn CreatePackageFromStream1(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, reuseobjects: super::super::Foundation::BOOL, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreatePackageFromStream1(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, reuseobjects: windows_core::BOOL, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory1_Impl::CreatePackageFromStream1(this, core::mem::transmute_copy(&stream), core::mem::transmute_copy(&reuseobjects)) { @@ -6346,7 +6346,7 @@ impl IXpsOMObjectFactory1_Vtbl { } } } - unsafe extern "system" fn CreatePackageFromFile1(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, reuseobjects: super::super::Foundation::BOOL, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreatePackageFromFile1(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, reuseobjects: windows_core::BOOL, package: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory1_Impl::CreatePackageFromFile1(this, core::mem::transmute(&filename), core::mem::transmute_copy(&reuseobjects)) { @@ -6370,7 +6370,7 @@ impl IXpsOMObjectFactory1_Vtbl { } } } - unsafe extern "system" fn CreatePageFromStream1(this: *mut core::ffi::c_void, pagemarkupstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, resources: *mut core::ffi::c_void, reuseobjects: super::super::Foundation::BOOL, page: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreatePageFromStream1(this: *mut core::ffi::c_void, pagemarkupstream: *mut core::ffi::c_void, parturi: *mut core::ffi::c_void, resources: *mut core::ffi::c_void, reuseobjects: windows_core::BOOL, page: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMObjectFactory1_Impl::CreatePageFromStream1(this, core::mem::transmute_copy(&pagemarkupstream), core::mem::transmute_copy(&parturi), core::mem::transmute_copy(&resources), core::mem::transmute_copy(&reuseobjects)) { @@ -6502,11 +6502,11 @@ pub struct IXpsOMPackage_Vtbl { pub GetThumbnailResource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetThumbnailResource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_Security")] - pub WriteToFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const super::super::Security::SECURITY_ATTRIBUTES, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub WriteToFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const super::super::Security::SECURITY_ATTRIBUTES, u32, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Security"))] WriteToFile: usize, #[cfg(feature = "Win32_System_Com")] - pub WriteToStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub WriteToStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] WriteToStream: usize, } @@ -6520,8 +6520,8 @@ pub trait IXpsOMPackage_Impl: windows_core::IUnknownImpl { fn SetDiscardControlPartName(&self, discardcontrolparturi: windows_core::Ref) -> windows_core::Result<()>; fn GetThumbnailResource(&self) -> windows_core::Result; fn SetThumbnailResource(&self, imageresource: windows_core::Ref) -> windows_core::Result<()>; - fn WriteToFile(&self, filename: &windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn WriteToStream(&self, stream: windows_core::Ref, optimizemarkupsize: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn WriteToFile(&self, filename: &windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: windows_core::BOOL) -> windows_core::Result<()>; + fn WriteToStream(&self, stream: windows_core::Ref, optimizemarkupsize: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMPackage_Vtbl { @@ -6598,13 +6598,13 @@ impl IXpsOMPackage_Vtbl { IXpsOMPackage_Impl::SetThumbnailResource(this, core::mem::transmute_copy(&imageresource)).into() } } - unsafe extern "system" fn WriteToFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn WriteToFile(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPackage_Impl::WriteToFile(this, core::mem::transmute(&filename), core::mem::transmute_copy(&securityattributes), core::mem::transmute_copy(&flagsandattributes), core::mem::transmute_copy(&optimizemarkupsize)).into() } } - unsafe extern "system" fn WriteToStream(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, optimizemarkupsize: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn WriteToStream(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, optimizemarkupsize: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPackage_Impl::WriteToStream(this, core::mem::transmute_copy(&stream), core::mem::transmute_copy(&optimizemarkupsize)).into() @@ -6665,19 +6665,19 @@ pub struct IXpsOMPackage1_Vtbl { pub base__: IXpsOMPackage_Vtbl, pub GetDocumentType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut XPS_DOCUMENT_TYPE) -> windows_core::HRESULT, #[cfg(feature = "Win32_Security")] - pub WriteToFile1: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const super::super::Security::SECURITY_ATTRIBUTES, u32, super::super::Foundation::BOOL, XPS_DOCUMENT_TYPE) -> windows_core::HRESULT, + pub WriteToFile1: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const super::super::Security::SECURITY_ATTRIBUTES, u32, windows_core::BOOL, XPS_DOCUMENT_TYPE) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Security"))] WriteToFile1: usize, #[cfg(feature = "Win32_System_Com")] - pub WriteToStream1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, XPS_DOCUMENT_TYPE) -> windows_core::HRESULT, + pub WriteToStream1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, XPS_DOCUMENT_TYPE) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] WriteToStream1: usize, } #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub trait IXpsOMPackage1_Impl: IXpsOMPackage_Impl { fn GetDocumentType(&self) -> windows_core::Result; - fn WriteToFile1(&self, filename: &windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: super::super::Foundation::BOOL, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::Result<()>; - fn WriteToStream1(&self, outputstream: windows_core::Ref, optimizemarkupsize: super::super::Foundation::BOOL, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::Result<()>; + fn WriteToFile1(&self, filename: &windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: windows_core::BOOL, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::Result<()>; + fn WriteToStream1(&self, outputstream: windows_core::Ref, optimizemarkupsize: windows_core::BOOL, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMPackage1_Vtbl { @@ -6694,13 +6694,13 @@ impl IXpsOMPackage1_Vtbl { } } } - unsafe extern "system" fn WriteToFile1(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: super::super::Foundation::BOOL, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::HRESULT { + unsafe extern "system" fn WriteToFile1(this: *mut core::ffi::c_void, filename: windows_core::PCWSTR, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flagsandattributes: u32, optimizemarkupsize: windows_core::BOOL, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPackage1_Impl::WriteToFile1(this, core::mem::transmute(&filename), core::mem::transmute_copy(&securityattributes), core::mem::transmute_copy(&flagsandattributes), core::mem::transmute_copy(&optimizemarkupsize), core::mem::transmute_copy(&documenttype)).into() } } - unsafe extern "system" fn WriteToStream1(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, optimizemarkupsize: super::super::Foundation::BOOL, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::HRESULT { + unsafe extern "system" fn WriteToStream1(this: *mut core::ffi::c_void, outputstream: *mut core::ffi::c_void, optimizemarkupsize: windows_core::BOOL, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPackage1_Impl::WriteToStream1(this, core::mem::transmute_copy(&outputstream), core::mem::transmute_copy(&optimizemarkupsize), core::mem::transmute_copy(&documenttype)).into() @@ -6803,7 +6803,7 @@ impl IXpsOMPackageWriter { pub unsafe fn Close(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn IsClosed(&self) -> windows_core::Result { + pub unsafe fn IsClosed(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsClosed)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6820,7 +6820,7 @@ pub struct IXpsOMPackageWriter_Vtbl { pub AddPage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const XPS_SIZE, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub AddResource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Close: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsClosed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsClosed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub trait IXpsOMPackageWriter_Impl: windows_core::IUnknownImpl { @@ -6828,7 +6828,7 @@ pub trait IXpsOMPackageWriter_Impl: windows_core::IUnknownImpl { fn AddPage(&self, page: windows_core::Ref, advisorypagedimensions: *const XPS_SIZE, discardableresourceparts: windows_core::Ref, storyfragments: windows_core::Ref, pageprintticket: windows_core::Ref, pagethumbnail: windows_core::Ref) -> windows_core::Result<()>; fn AddResource(&self, resource: windows_core::Ref) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; - fn IsClosed(&self) -> windows_core::Result; + fn IsClosed(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMPackageWriter_Vtbl { @@ -6857,7 +6857,7 @@ impl IXpsOMPackageWriter_Vtbl { IXpsOMPackageWriter_Impl::Close(this).into() } } - unsafe extern "system" fn IsClosed(this: *mut core::ffi::c_void, isclosed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsClosed(this: *mut core::ffi::c_void, isclosed: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPackageWriter_Impl::IsClosed(this) { @@ -7026,7 +7026,7 @@ impl IXpsOMPage { { unsafe { (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } } - pub unsafe fn GetIsHyperlinkTarget(&self) -> windows_core::Result { + pub unsafe fn GetIsHyperlinkTarget(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIsHyperlinkTarget)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7100,15 +7100,15 @@ pub struct IXpsOMPage_Vtbl { pub SetLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub GetName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub SetName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, - pub GetIsHyperlinkTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetIsHyperlinkTarget: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetIsHyperlinkTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetIsHyperlinkTarget: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetDictionary: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDictionaryLocal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDictionaryLocal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDictionaryResource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDictionaryResource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub Write: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Write: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Write: usize, pub GenerateUnusedLookupKey: unsafe extern "system" fn(*mut core::ffi::c_void, XPS_OBJECT_TYPE, *mut windows_core::PWSTR) -> windows_core::HRESULT, @@ -7128,14 +7128,14 @@ pub trait IXpsOMPage_Impl: IXpsOMPart_Impl { fn SetLanguage(&self, language: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetName(&self) -> windows_core::Result; fn SetName(&self, name: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn GetIsHyperlinkTarget(&self) -> windows_core::Result; - fn SetIsHyperlinkTarget(&self, ishyperlinktarget: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetIsHyperlinkTarget(&self) -> windows_core::Result; + fn SetIsHyperlinkTarget(&self, ishyperlinktarget: windows_core::BOOL) -> windows_core::Result<()>; fn GetDictionary(&self) -> windows_core::Result; fn GetDictionaryLocal(&self) -> windows_core::Result; fn SetDictionaryLocal(&self, resourcedictionary: windows_core::Ref) -> windows_core::Result<()>; fn GetDictionaryResource(&self) -> windows_core::Result; fn SetDictionaryResource(&self, remotedictionaryresource: windows_core::Ref) -> windows_core::Result<()>; - fn Write(&self, stream: windows_core::Ref, optimizemarkupsize: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Write(&self, stream: windows_core::Ref, optimizemarkupsize: windows_core::BOOL) -> windows_core::Result<()>; fn GenerateUnusedLookupKey(&self, r#type: XPS_OBJECT_TYPE) -> windows_core::Result; fn Clone(&self) -> windows_core::Result; } @@ -7256,7 +7256,7 @@ impl IXpsOMPage_Vtbl { IXpsOMPage_Impl::SetName(this, core::mem::transmute(&name)).into() } } - unsafe extern "system" fn GetIsHyperlinkTarget(this: *mut core::ffi::c_void, ishyperlinktarget: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetIsHyperlinkTarget(this: *mut core::ffi::c_void, ishyperlinktarget: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPage_Impl::GetIsHyperlinkTarget(this) { @@ -7268,7 +7268,7 @@ impl IXpsOMPage_Vtbl { } } } - unsafe extern "system" fn SetIsHyperlinkTarget(this: *mut core::ffi::c_void, ishyperlinktarget: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetIsHyperlinkTarget(this: *mut core::ffi::c_void, ishyperlinktarget: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPage_Impl::SetIsHyperlinkTarget(this, core::mem::transmute_copy(&ishyperlinktarget)).into() @@ -7322,7 +7322,7 @@ impl IXpsOMPage_Vtbl { IXpsOMPage_Impl::SetDictionaryResource(this, core::mem::transmute_copy(&remotedictionaryresource)).into() } } - unsafe extern "system" fn Write(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, optimizemarkupsize: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Write(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, optimizemarkupsize: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPage_Impl::Write(this, core::mem::transmute_copy(&stream), core::mem::transmute_copy(&optimizemarkupsize)).into() @@ -7412,14 +7412,14 @@ pub struct IXpsOMPage1_Vtbl { pub base__: IXpsOMPage_Vtbl, pub GetDocumentType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut XPS_DOCUMENT_TYPE) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub Write1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, XPS_DOCUMENT_TYPE) -> windows_core::HRESULT, + pub Write1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, XPS_DOCUMENT_TYPE) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Write1: usize, } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] pub trait IXpsOMPage1_Impl: IXpsOMPage_Impl { fn GetDocumentType(&self) -> windows_core::Result; - fn Write1(&self, stream: windows_core::Ref, optimizemarkupsize: super::super::Foundation::BOOL, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::Result<()>; + fn Write1(&self, stream: windows_core::Ref, optimizemarkupsize: windows_core::BOOL, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] impl IXpsOMPage1_Vtbl { @@ -7436,7 +7436,7 @@ impl IXpsOMPage1_Vtbl { } } } - unsafe extern "system" fn Write1(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, optimizemarkupsize: super::super::Foundation::BOOL, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::HRESULT { + unsafe extern "system" fn Write1(this: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, optimizemarkupsize: windows_core::BOOL, documenttype: XPS_DOCUMENT_TYPE) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPage1_Impl::Write1(this, core::mem::transmute_copy(&stream), core::mem::transmute_copy(&optimizemarkupsize), core::mem::transmute_copy(&documenttype)).into() @@ -7474,7 +7474,7 @@ impl IXpsOMPageReference { pub unsafe fn DiscardPage(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).DiscardPage)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn IsPageLoaded(&self) -> windows_core::Result { + pub unsafe fn IsPageLoaded(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsPageLoaded)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7537,7 +7537,7 @@ impl IXpsOMPageReference { (windows_core::Interface::vtable(self).CollectPartResources)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn HasRestrictedFonts(&self) -> windows_core::Result { + pub unsafe fn HasRestrictedFonts(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HasRestrictedFonts)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7557,7 +7557,7 @@ pub struct IXpsOMPageReference_Vtbl { pub GetPage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetPage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub DiscardPage: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsPageLoaded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsPageLoaded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetAdvisoryPageDimensions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut XPS_SIZE) -> windows_core::HRESULT, pub SetAdvisoryPageDimensions: unsafe extern "system" fn(*mut core::ffi::c_void, *const XPS_SIZE) -> windows_core::HRESULT, pub GetStoryFragmentsResource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -7568,7 +7568,7 @@ pub struct IXpsOMPageReference_Vtbl { pub SetThumbnailResource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub CollectLinkTargets: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CollectPartResources: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub HasRestrictedFonts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub HasRestrictedFonts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IXpsOMPageReference_Impl: windows_core::IUnknownImpl { @@ -7576,7 +7576,7 @@ pub trait IXpsOMPageReference_Impl: windows_core::IUnknownImpl { fn GetPage(&self) -> windows_core::Result; fn SetPage(&self, page: windows_core::Ref) -> windows_core::Result<()>; fn DiscardPage(&self) -> windows_core::Result<()>; - fn IsPageLoaded(&self) -> windows_core::Result; + fn IsPageLoaded(&self) -> windows_core::Result; fn GetAdvisoryPageDimensions(&self) -> windows_core::Result; fn SetAdvisoryPageDimensions(&self, pagedimensions: *const XPS_SIZE) -> windows_core::Result<()>; fn GetStoryFragmentsResource(&self) -> windows_core::Result; @@ -7587,7 +7587,7 @@ pub trait IXpsOMPageReference_Impl: windows_core::IUnknownImpl { fn SetThumbnailResource(&self, imageresource: windows_core::Ref) -> windows_core::Result<()>; fn CollectLinkTargets(&self) -> windows_core::Result; fn CollectPartResources(&self) -> windows_core::Result; - fn HasRestrictedFonts(&self) -> windows_core::Result; + fn HasRestrictedFonts(&self) -> windows_core::Result; fn Clone(&self) -> windows_core::Result; } impl IXpsOMPageReference_Vtbl { @@ -7628,7 +7628,7 @@ impl IXpsOMPageReference_Vtbl { IXpsOMPageReference_Impl::DiscardPage(this).into() } } - unsafe extern "system" fn IsPageLoaded(this: *mut core::ffi::c_void, ispageloaded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsPageLoaded(this: *mut core::ffi::c_void, ispageloaded: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPageReference_Impl::IsPageLoaded(this) { @@ -7736,7 +7736,7 @@ impl IXpsOMPageReference_Vtbl { } } } - unsafe extern "system" fn HasRestrictedFonts(this: *mut core::ffi::c_void, restrictedfonts: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn HasRestrictedFonts(this: *mut core::ffi::c_void, restrictedfonts: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPageReference_Impl::HasRestrictedFonts(this) { @@ -8281,7 +8281,7 @@ impl IXpsOMPath { { unsafe { (windows_core::Interface::vtable(self).SetAccessibilityLongDescription)(windows_core::Interface::as_raw(self), longdescription.param().abi()).ok() } } - pub unsafe fn GetSnapsToPixels(&self) -> windows_core::Result { + pub unsafe fn GetSnapsToPixels(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetSnapsToPixels)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -8438,8 +8438,8 @@ pub struct IXpsOMPath_Vtbl { pub SetAccessibilityShortDescription: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub GetAccessibilityLongDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub SetAccessibilityLongDescription: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, - pub GetSnapsToPixels: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetSnapsToPixels: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetSnapsToPixels: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetSnapsToPixels: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetStrokeBrush: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetStrokeBrushLocal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetStrokeBrushLocal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -8478,8 +8478,8 @@ pub trait IXpsOMPath_Impl: IXpsOMVisual_Impl { fn SetAccessibilityShortDescription(&self, shortdescription: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetAccessibilityLongDescription(&self) -> windows_core::Result; fn SetAccessibilityLongDescription(&self, longdescription: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn GetSnapsToPixels(&self) -> windows_core::Result; - fn SetSnapsToPixels(&self, snapstopixels: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetSnapsToPixels(&self) -> windows_core::Result; + fn SetSnapsToPixels(&self, snapstopixels: windows_core::BOOL) -> windows_core::Result<()>; fn GetStrokeBrush(&self) -> windows_core::Result; fn GetStrokeBrushLocal(&self) -> windows_core::Result; fn SetStrokeBrushLocal(&self, brush: windows_core::Ref) -> windows_core::Result<()>; @@ -8594,7 +8594,7 @@ impl IXpsOMPath_Vtbl { IXpsOMPath_Impl::SetAccessibilityLongDescription(this, core::mem::transmute(&longdescription)).into() } } - unsafe extern "system" fn GetSnapsToPixels(this: *mut core::ffi::c_void, snapstopixels: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetSnapsToPixels(this: *mut core::ffi::c_void, snapstopixels: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMPath_Impl::GetSnapsToPixels(this) { @@ -8606,7 +8606,7 @@ impl IXpsOMPath_Vtbl { } } } - unsafe extern "system" fn SetSnapsToPixels(this: *mut core::ffi::c_void, snapstopixels: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetSnapsToPixels(this: *mut core::ffi::c_void, snapstopixels: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMPath_Impl::SetSnapsToPixels(this, core::mem::transmute_copy(&snapstopixels)).into() @@ -10310,7 +10310,7 @@ impl IXpsOMVisual { { unsafe { (windows_core::Interface::vtable(self).SetName)(windows_core::Interface::as_raw(self), name.param().abi()).ok() } } - pub unsafe fn GetIsHyperlinkTarget(&self) -> windows_core::Result { + pub unsafe fn GetIsHyperlinkTarget(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetIsHyperlinkTarget)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -10368,8 +10368,8 @@ pub struct IXpsOMVisual_Vtbl { pub SetOpacityMaskBrushLookup: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub GetName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub SetName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, - pub GetIsHyperlinkTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetIsHyperlinkTarget: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetIsHyperlinkTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetIsHyperlinkTarget: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetHyperlinkNavigateUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -10402,8 +10402,8 @@ pub trait IXpsOMVisual_Impl: IXpsOMShareable_Impl { fn SetOpacityMaskBrushLookup(&self, key: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetName(&self) -> windows_core::Result; fn SetName(&self, name: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn GetIsHyperlinkTarget(&self) -> windows_core::Result; - fn SetIsHyperlinkTarget(&self, ishyperlink: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetIsHyperlinkTarget(&self) -> windows_core::Result; + fn SetIsHyperlinkTarget(&self, ishyperlink: windows_core::BOOL) -> windows_core::Result<()>; fn GetHyperlinkNavigateUri(&self) -> windows_core::Result; fn SetHyperlinkNavigateUri(&self, hyperlinkuri: windows_core::Ref) -> windows_core::Result<()>; fn GetLanguage(&self) -> windows_core::Result; @@ -10592,7 +10592,7 @@ impl IXpsOMVisual_Vtbl { IXpsOMVisual_Impl::SetName(this, core::mem::transmute(&name)).into() } } - unsafe extern "system" fn GetIsHyperlinkTarget(this: *mut core::ffi::c_void, ishyperlink: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetIsHyperlinkTarget(this: *mut core::ffi::c_void, ishyperlink: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IXpsOMVisual_Impl::GetIsHyperlinkTarget(this) { @@ -10604,7 +10604,7 @@ impl IXpsOMVisual_Vtbl { } } } - unsafe extern "system" fn SetIsHyperlinkTarget(this: *mut core::ffi::c_void, ishyperlink: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetIsHyperlinkTarget(this: *mut core::ffi::c_void, ishyperlink: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IXpsOMVisual_Impl::SetIsHyperlinkTarget(this, core::mem::transmute_copy(&ishyperlink)).into() @@ -12458,8 +12458,8 @@ impl Default for PSFEATURE_CUSTPAPER { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct PSFEATURE_OUTPUT { - pub bPageIndependent: super::super::Foundation::BOOL, - pub bSetPageDevice: super::super::Foundation::BOOL, + pub bPageIndependent: windows_core::BOOL, + pub bSetPageDevice: windows_core::BOOL, } impl Default for PSFEATURE_OUTPUT { fn default() -> Self { 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 28fc6e9e7f..aeae0e00de 100644 --- a/crates/libs/windows/src/Windows/Win32/System/AddressBook/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/AddressBook/mod.rs @@ -34,32 +34,32 @@ pub unsafe fn DeregisterIdleRoutine(ftg: *mut core::ffi::c_void) { } #[inline] pub unsafe fn EnableIdleRoutine(ftg: *mut core::ffi::c_void, fenable: bool) { - windows_targets::link!("mapi32.dll" "system" fn EnableIdleRoutine(ftg : *mut core::ffi::c_void, fenable : super::super::Foundation:: BOOL)); + windows_targets::link!("mapi32.dll" "system" fn EnableIdleRoutine(ftg : *mut core::ffi::c_void, fenable : windows_core::BOOL)); unsafe { EnableIdleRoutine(ftg as _, fenable.into()) } } #[inline] -pub unsafe fn FEqualNames(lpname1: *mut MAPINAMEID, lpname2: *mut MAPINAMEID) -> super::super::Foundation::BOOL { - windows_targets::link!("mapi32.dll" "system" fn FEqualNames(lpname1 : *mut MAPINAMEID, lpname2 : *mut MAPINAMEID) -> super::super::Foundation:: BOOL); +pub unsafe fn FEqualNames(lpname1: *mut MAPINAMEID, lpname2: *mut MAPINAMEID) -> windows_core::BOOL { + windows_targets::link!("mapi32.dll" "system" fn FEqualNames(lpname1 : *mut MAPINAMEID, lpname2 : *mut MAPINAMEID) -> windows_core::BOOL); unsafe { FEqualNames(lpname1 as _, lpname2 as _) } } #[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn FPropCompareProp(lpspropvalue1: *mut SPropValue, ulrelop: u32, lpspropvalue2: *mut SPropValue) -> super::super::Foundation::BOOL { - windows_targets::link!("mapi32.dll" "system" fn FPropCompareProp(lpspropvalue1 : *mut SPropValue, ulrelop : u32, lpspropvalue2 : *mut SPropValue) -> super::super::Foundation:: BOOL); +pub unsafe fn FPropCompareProp(lpspropvalue1: *mut SPropValue, ulrelop: u32, lpspropvalue2: *mut SPropValue) -> windows_core::BOOL { + windows_targets::link!("mapi32.dll" "system" fn FPropCompareProp(lpspropvalue1 : *mut SPropValue, ulrelop : u32, lpspropvalue2 : *mut SPropValue) -> windows_core::BOOL); unsafe { FPropCompareProp(lpspropvalue1 as _, ulrelop, lpspropvalue2 as _) } } #[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn FPropContainsProp(lpspropvaluedst: *mut SPropValue, lpspropvaluesrc: *mut SPropValue, ulfuzzylevel: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("mapi32.dll" "system" fn FPropContainsProp(lpspropvaluedst : *mut SPropValue, lpspropvaluesrc : *mut SPropValue, ulfuzzylevel : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn FPropContainsProp(lpspropvaluedst: *mut SPropValue, lpspropvaluesrc: *mut SPropValue, ulfuzzylevel: u32) -> windows_core::BOOL { + windows_targets::link!("mapi32.dll" "system" fn FPropContainsProp(lpspropvaluedst : *mut SPropValue, lpspropvaluesrc : *mut SPropValue, ulfuzzylevel : u32) -> windows_core::BOOL); unsafe { FPropContainsProp(lpspropvaluedst as _, lpspropvaluesrc as _, ulfuzzylevel) } } #[inline] -pub unsafe fn FPropExists(lpmapiprop: P0, ulproptag: u32) -> super::super::Foundation::BOOL +pub unsafe fn FPropExists(lpmapiprop: P0, ulproptag: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("mapi32.dll" "system" fn FPropExists(lpmapiprop : * mut core::ffi::c_void, ulproptag : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("mapi32.dll" "system" fn FPropExists(lpmapiprop : * mut core::ffi::c_void, ulproptag : u32) -> windows_core::BOOL); unsafe { FPropExists(lpmapiprop.param().abi(), ulproptag) } } #[cfg(feature = "Win32_System_Com")] @@ -228,11 +228,11 @@ pub unsafe fn PropCopyMore(lpspropvaluedest: *mut SPropValue, lpspropvaluesrc: * unsafe { PropCopyMore(lpspropvaluedest as _, lpspropvaluesrc as _, lpfallocmore, lpvobject as _) } } #[inline] -pub unsafe fn RTFSync(lpmessage: P0, ulflags: u32, lpfmessageupdated: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> +pub unsafe fn RTFSync(lpmessage: P0, ulflags: u32, lpfmessageupdated: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("mapi32.dll" "system" fn RTFSync(lpmessage : * mut core::ffi::c_void, ulflags : u32, lpfmessageupdated : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("mapi32.dll" "system" fn RTFSync(lpmessage : * mut core::ffi::c_void, ulflags : u32, lpfmessageupdated : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { RTFSync(lpmessage.param().abi(), ulflags, lpfmessageupdated as _).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3506,7 +3506,7 @@ pub type LPALLOCATEBUFFER = Option i32>; pub type LPCREATECONVERSATIONINDEX = Option i32>; pub type LPDISPATCHNOTIFICATIONS = Option windows_core::HRESULT>; -pub type LPFNABSDI = Option super::super::Foundation::BOOL>; +pub type LPFNABSDI = Option windows_core::BOOL>; pub type LPFNBUTTON = Option i32>; pub type LPFNDISMISS = Option; pub type LPFREEBUFFER = Option u32>; @@ -3679,7 +3679,7 @@ impl Default for OBJECT_NOTIFICATION { } } pub const OPENSTREAMONFILE: windows_core::PCSTR = windows_core::s!("OpenStreamOnFile"); -pub type PFNIDLE = Option super::super::Foundation::BOOL>; +pub type PFNIDLE = Option windows_core::BOOL>; pub const PRIHIGHEST: u32 = 32767u32; pub const PRILOWEST: i32 = -32768i32; pub const PRIUSER: u32 = 0u32; @@ -4167,8 +4167,8 @@ pub struct WABEXTDISPLAY { pub lpWABObject: core::mem::ManuallyDrop>, pub lpAdrBook: core::mem::ManuallyDrop>, pub lpPropObj: core::mem::ManuallyDrop>, - pub fReadOnly: super::super::Foundation::BOOL, - pub fDataChanged: super::super::Foundation::BOOL, + pub fReadOnly: windows_core::BOOL, + pub fDataChanged: windows_core::BOOL, pub ulFlags: u32, pub lpv: *mut core::ffi::c_void, pub lpsz: *mut i8, 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 d0aa95d99b..61a8aa8b46 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Antimalware/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Antimalware/mod.rs @@ -63,7 +63,7 @@ pub unsafe fn AmsiUninitialize(amsicontext: HAMSICONTEXT) { } #[inline] pub unsafe fn InstallELAMCertificateInfo(elamfile: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn InstallELAMCertificateInfo(elamfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn InstallELAMCertificateInfo(elamfile : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { InstallELAMCertificateInfo(elamfile).ok() } } #[repr(transparent)] @@ -128,7 +128,7 @@ pub struct AMSI_UAC_REQUEST_CONTEXT { pub UACTrustState: AMSI_UAC_TRUST_STATE, pub Type: AMSI_UAC_REQUEST_TYPE, pub RequestType: AMSI_UAC_REQUEST_CONTEXT_0, - pub bAutoElevateRequest: super::super::Foundation::BOOL, + pub bAutoElevateRequest: windows_core::BOOL, } impl Default for AMSI_UAC_REQUEST_CONTEXT { fn default() -> Self { 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 e236f3cc15..f555eead3a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs @@ -1,6 +1,6 @@ #[inline] pub unsafe fn ActivateActCtx(hactctx: Option, lpcookie: *mut usize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ActivateActCtx(hactctx : super::super::Foundation:: HANDLE, lpcookie : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ActivateActCtx(hactctx : super::super::Foundation:: HANDLE, lpcookie : *mut usize) -> windows_core::BOOL); unsafe { ActivateActCtx(hactctx.unwrap_or(core::mem::zeroed()) as _, lpcookie as _).ok() } } #[inline] @@ -9,53 +9,53 @@ pub unsafe fn AddRefActCtx(hactctx: super::super::Foundation::HANDLE) { unsafe { AddRefActCtx(hactctx as _) } } #[inline] -pub unsafe fn ApplyDeltaA(applyflags: i64, lpsourcename: P1, lpdeltaname: P2, lptargetname: P3) -> super::super::Foundation::BOOL +pub unsafe fn ApplyDeltaA(applyflags: i64, lpsourcename: P1, lpdeltaname: P2, lptargetname: P3) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("msdelta.dll" "system" fn ApplyDeltaA(applyflags : i64, lpsourcename : windows_core::PCSTR, lpdeltaname : windows_core::PCSTR, lptargetname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("msdelta.dll" "system" fn ApplyDeltaA(applyflags : i64, lpsourcename : windows_core::PCSTR, lpdeltaname : windows_core::PCSTR, lptargetname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { ApplyDeltaA(applyflags, lpsourcename.param().abi(), lpdeltaname.param().abi(), lptargetname.param().abi()) } } #[inline] -pub unsafe fn ApplyDeltaB(applyflags: i64, source: DELTA_INPUT, delta: DELTA_INPUT, lptarget: *mut DELTA_OUTPUT) -> super::super::Foundation::BOOL { - windows_targets::link!("msdelta.dll" "system" fn ApplyDeltaB(applyflags : i64, source : DELTA_INPUT, delta : DELTA_INPUT, lptarget : *mut DELTA_OUTPUT) -> super::super::Foundation:: BOOL); +pub unsafe fn ApplyDeltaB(applyflags: i64, source: DELTA_INPUT, delta: DELTA_INPUT, lptarget: *mut DELTA_OUTPUT) -> windows_core::BOOL { + windows_targets::link!("msdelta.dll" "system" fn ApplyDeltaB(applyflags : i64, source : DELTA_INPUT, delta : DELTA_INPUT, lptarget : *mut DELTA_OUTPUT) -> windows_core::BOOL); unsafe { ApplyDeltaB(applyflags, core::mem::transmute(source), core::mem::transmute(delta), lptarget as _) } } #[inline] -pub unsafe fn ApplyDeltaGetReverseB(applyflags: i64, source: DELTA_INPUT, delta: DELTA_INPUT, lpreversefiletime: Option<*const super::super::Foundation::FILETIME>, lptarget: *mut DELTA_OUTPUT, lptargetreverse: *mut DELTA_OUTPUT) -> super::super::Foundation::BOOL { - windows_targets::link!("msdelta.dll" "system" fn ApplyDeltaGetReverseB(applyflags : i64, source : DELTA_INPUT, delta : DELTA_INPUT, lpreversefiletime : *const super::super::Foundation:: FILETIME, lptarget : *mut DELTA_OUTPUT, lptargetreverse : *mut DELTA_OUTPUT) -> super::super::Foundation:: BOOL); +pub unsafe fn ApplyDeltaGetReverseB(applyflags: i64, source: DELTA_INPUT, delta: DELTA_INPUT, lpreversefiletime: Option<*const super::super::Foundation::FILETIME>, lptarget: *mut DELTA_OUTPUT, lptargetreverse: *mut DELTA_OUTPUT) -> windows_core::BOOL { + windows_targets::link!("msdelta.dll" "system" fn ApplyDeltaGetReverseB(applyflags : i64, source : DELTA_INPUT, delta : DELTA_INPUT, lpreversefiletime : *const super::super::Foundation:: FILETIME, lptarget : *mut DELTA_OUTPUT, lptargetreverse : *mut DELTA_OUTPUT) -> windows_core::BOOL); unsafe { ApplyDeltaGetReverseB(applyflags, core::mem::transmute(source), core::mem::transmute(delta), lpreversefiletime.unwrap_or(core::mem::zeroed()) as _, lptarget as _, lptargetreverse as _) } } #[inline] -pub unsafe fn ApplyDeltaProvidedB(applyflags: i64, source: DELTA_INPUT, delta: DELTA_INPUT, lptarget: *mut core::ffi::c_void, utargetsize: usize) -> super::super::Foundation::BOOL { - windows_targets::link!("msdelta.dll" "system" fn ApplyDeltaProvidedB(applyflags : i64, source : DELTA_INPUT, delta : DELTA_INPUT, lptarget : *mut core::ffi::c_void, utargetsize : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn ApplyDeltaProvidedB(applyflags: i64, source: DELTA_INPUT, delta: DELTA_INPUT, lptarget: *mut core::ffi::c_void, utargetsize: usize) -> windows_core::BOOL { + windows_targets::link!("msdelta.dll" "system" fn ApplyDeltaProvidedB(applyflags : i64, source : DELTA_INPUT, delta : DELTA_INPUT, lptarget : *mut core::ffi::c_void, utargetsize : usize) -> windows_core::BOOL); unsafe { ApplyDeltaProvidedB(applyflags, core::mem::transmute(source), core::mem::transmute(delta), lptarget as _, utargetsize) } } #[inline] -pub unsafe fn ApplyDeltaW(applyflags: i64, lpsourcename: P1, lpdeltaname: P2, lptargetname: P3) -> super::super::Foundation::BOOL +pub unsafe fn ApplyDeltaW(applyflags: i64, lpsourcename: P1, lpdeltaname: P2, lptargetname: P3) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("msdelta.dll" "system" fn ApplyDeltaW(applyflags : i64, lpsourcename : windows_core::PCWSTR, lpdeltaname : windows_core::PCWSTR, lptargetname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("msdelta.dll" "system" fn ApplyDeltaW(applyflags : i64, lpsourcename : windows_core::PCWSTR, lpdeltaname : windows_core::PCWSTR, lptargetname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { ApplyDeltaW(applyflags, lpsourcename.param().abi(), lpdeltaname.param().abi(), lptargetname.param().abi()) } } #[inline] -pub unsafe fn ApplyPatchToFileA(patchfilename: P0, oldfilename: P1, newfilename: P2, applyoptionflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn ApplyPatchToFileA(patchfilename: P0, oldfilename: P1, newfilename: P2, applyoptionflags: u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileA(patchfilename : windows_core::PCSTR, oldfilename : windows_core::PCSTR, newfilename : windows_core::PCSTR, applyoptionflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileA(patchfilename : windows_core::PCSTR, oldfilename : windows_core::PCSTR, newfilename : windows_core::PCSTR, applyoptionflags : u32) -> windows_core::BOOL); unsafe { ApplyPatchToFileA(patchfilename.param().abi(), oldfilename.param().abi(), newfilename.param().abi(), applyoptionflags) } } #[inline] -pub unsafe fn ApplyPatchToFileByBuffers(patchfilemapped: &[u8], oldfilemapped: Option<&[u8]>, newfilebuffer: &mut [u8], newfileactualsize: Option<*mut u32>, newfiletime: Option<*mut super::super::Foundation::FILETIME>, applyoptionflags: u32, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { - windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileByBuffers(patchfilemapped : *const u8, patchfilesize : u32, oldfilemapped : *const u8, oldfilesize : u32, newfilebuffer : *mut *mut u8, newfilebuffersize : u32, newfileactualsize : *mut u32, newfiletime : *mut super::super::Foundation:: FILETIME, applyoptionflags : u32, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn ApplyPatchToFileByBuffers(patchfilemapped: &[u8], oldfilemapped: Option<&[u8]>, newfilebuffer: &mut [u8], newfileactualsize: Option<*mut u32>, newfiletime: Option<*mut super::super::Foundation::FILETIME>, applyoptionflags: u32, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileByBuffers(patchfilemapped : *const u8, patchfilesize : u32, oldfilemapped : *const u8, oldfilesize : u32, newfilebuffer : *mut *mut u8, newfilebuffersize : u32, newfileactualsize : *mut u32, newfiletime : *mut super::super::Foundation:: FILETIME, applyoptionflags : u32, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { ApplyPatchToFileByBuffers( core::mem::transmute(patchfilemapped.as_ptr()), @@ -73,43 +73,43 @@ pub unsafe fn ApplyPatchToFileByBuffers(patchfilemapped: &[u8], oldfilemapped: O } } #[inline] -pub unsafe fn ApplyPatchToFileByHandles(patchfilehandle: super::super::Foundation::HANDLE, oldfilehandle: Option, newfilehandle: super::super::Foundation::HANDLE, applyoptionflags: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileByHandles(patchfilehandle : super::super::Foundation:: HANDLE, oldfilehandle : super::super::Foundation:: HANDLE, newfilehandle : super::super::Foundation:: HANDLE, applyoptionflags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn ApplyPatchToFileByHandles(patchfilehandle: super::super::Foundation::HANDLE, oldfilehandle: Option, newfilehandle: super::super::Foundation::HANDLE, applyoptionflags: u32) -> windows_core::BOOL { + windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileByHandles(patchfilehandle : super::super::Foundation:: HANDLE, oldfilehandle : super::super::Foundation:: HANDLE, newfilehandle : super::super::Foundation:: HANDLE, applyoptionflags : u32) -> windows_core::BOOL); unsafe { ApplyPatchToFileByHandles(patchfilehandle, oldfilehandle.unwrap_or(core::mem::zeroed()) as _, newfilehandle, applyoptionflags) } } #[inline] -pub unsafe fn ApplyPatchToFileByHandlesEx(patchfilehandle: super::super::Foundation::HANDLE, oldfilehandle: Option, newfilehandle: super::super::Foundation::HANDLE, applyoptionflags: u32, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { - windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileByHandlesEx(patchfilehandle : super::super::Foundation:: HANDLE, oldfilehandle : super::super::Foundation:: HANDLE, newfilehandle : super::super::Foundation:: HANDLE, applyoptionflags : u32, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn ApplyPatchToFileByHandlesEx(patchfilehandle: super::super::Foundation::HANDLE, oldfilehandle: Option, newfilehandle: super::super::Foundation::HANDLE, applyoptionflags: u32, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileByHandlesEx(patchfilehandle : super::super::Foundation:: HANDLE, oldfilehandle : super::super::Foundation:: HANDLE, newfilehandle : super::super::Foundation:: HANDLE, applyoptionflags : u32, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { ApplyPatchToFileByHandlesEx(patchfilehandle, oldfilehandle.unwrap_or(core::mem::zeroed()) as _, newfilehandle, applyoptionflags, progresscallback.unwrap_or(core::mem::zeroed()) as _, callbackcontext.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn ApplyPatchToFileExA(patchfilename: P0, oldfilename: P1, newfilename: P2, applyoptionflags: u32, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL +pub unsafe fn ApplyPatchToFileExA(patchfilename: P0, oldfilename: P1, newfilename: P2, applyoptionflags: u32, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileExA(patchfilename : windows_core::PCSTR, oldfilename : windows_core::PCSTR, newfilename : windows_core::PCSTR, applyoptionflags : u32, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileExA(patchfilename : windows_core::PCSTR, oldfilename : windows_core::PCSTR, newfilename : windows_core::PCSTR, applyoptionflags : u32, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { ApplyPatchToFileExA(patchfilename.param().abi(), oldfilename.param().abi(), newfilename.param().abi(), applyoptionflags, progresscallback.unwrap_or(core::mem::zeroed()) as _, callbackcontext.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn ApplyPatchToFileExW(patchfilename: P0, oldfilename: P1, newfilename: P2, applyoptionflags: u32, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL +pub unsafe fn ApplyPatchToFileExW(patchfilename: P0, oldfilename: P1, newfilename: P2, applyoptionflags: u32, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileExW(patchfilename : windows_core::PCWSTR, oldfilename : windows_core::PCWSTR, newfilename : windows_core::PCWSTR, applyoptionflags : u32, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileExW(patchfilename : windows_core::PCWSTR, oldfilename : windows_core::PCWSTR, newfilename : windows_core::PCWSTR, applyoptionflags : u32, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { ApplyPatchToFileExW(patchfilename.param().abi(), oldfilename.param().abi(), newfilename.param().abi(), applyoptionflags, progresscallback.unwrap_or(core::mem::zeroed()) as _, callbackcontext.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn ApplyPatchToFileW(patchfilename: P0, oldfilename: P1, newfilename: P2, applyoptionflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn ApplyPatchToFileW(patchfilename: P0, oldfilename: P1, newfilename: P2, applyoptionflags: u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileW(patchfilename : windows_core::PCWSTR, oldfilename : windows_core::PCWSTR, newfilename : windows_core::PCWSTR, applyoptionflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("mspatcha.dll" "system" fn ApplyPatchToFileW(patchfilename : windows_core::PCWSTR, oldfilename : windows_core::PCWSTR, newfilename : windows_core::PCWSTR, applyoptionflags : u32) -> windows_core::BOOL); unsafe { ApplyPatchToFileW(patchfilename.param().abi(), oldfilename.param().abi(), newfilename.param().abi(), applyoptionflags) } } #[inline] @@ -126,7 +126,7 @@ pub unsafe fn CreateActCtxW(pactctx: *const ACTCTXW) -> windows_core::Result(filetypeset: i64, setflags: i64, resetflags: i64, lpsourcename: P3, lptargetname: P4, lpsourceoptionsname: P5, lptargetoptionsname: P6, globaloptions: DELTA_INPUT, lptargetfiletime: Option<*const super::super::Foundation::FILETIME>, hashalgid: super::super::Security::Cryptography::ALG_ID, lpdeltaname: P10) -> super::super::Foundation::BOOL +pub unsafe fn CreateDeltaA(filetypeset: i64, setflags: i64, resetflags: i64, lpsourcename: P3, lptargetname: P4, lpsourceoptionsname: P5, lptargetoptionsname: P6, globaloptions: DELTA_INPUT, lptargetfiletime: Option<*const super::super::Foundation::FILETIME>, hashalgid: super::super::Security::Cryptography::ALG_ID, lpdeltaname: P10) -> windows_core::BOOL where P3: windows_core::Param, P4: windows_core::Param, @@ -134,18 +134,18 @@ where P6: windows_core::Param, P10: windows_core::Param, { - windows_targets::link!("msdelta.dll" "system" fn CreateDeltaA(filetypeset : i64, setflags : i64, resetflags : i64, lpsourcename : windows_core::PCSTR, lptargetname : windows_core::PCSTR, lpsourceoptionsname : windows_core::PCSTR, lptargetoptionsname : windows_core::PCSTR, globaloptions : DELTA_INPUT, lptargetfiletime : *const super::super::Foundation:: FILETIME, hashalgid : super::super::Security::Cryptography:: ALG_ID, lpdeltaname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("msdelta.dll" "system" fn CreateDeltaA(filetypeset : i64, setflags : i64, resetflags : i64, lpsourcename : windows_core::PCSTR, lptargetname : windows_core::PCSTR, lpsourceoptionsname : windows_core::PCSTR, lptargetoptionsname : windows_core::PCSTR, globaloptions : DELTA_INPUT, lptargetfiletime : *const super::super::Foundation:: FILETIME, hashalgid : super::super::Security::Cryptography:: ALG_ID, lpdeltaname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { CreateDeltaA(filetypeset, setflags, resetflags, lpsourcename.param().abi(), lptargetname.param().abi(), lpsourceoptionsname.param().abi(), lptargetoptionsname.param().abi(), core::mem::transmute(globaloptions), lptargetfiletime.unwrap_or(core::mem::zeroed()) as _, hashalgid, lpdeltaname.param().abi()) } } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] -pub unsafe fn CreateDeltaB(filetypeset: i64, setflags: i64, resetflags: i64, source: DELTA_INPUT, target: DELTA_INPUT, sourceoptions: DELTA_INPUT, targetoptions: DELTA_INPUT, globaloptions: DELTA_INPUT, lptargetfiletime: Option<*const super::super::Foundation::FILETIME>, hashalgid: super::super::Security::Cryptography::ALG_ID, lpdelta: *mut DELTA_OUTPUT) -> super::super::Foundation::BOOL { - windows_targets::link!("msdelta.dll" "system" fn CreateDeltaB(filetypeset : i64, setflags : i64, resetflags : i64, source : DELTA_INPUT, target : DELTA_INPUT, sourceoptions : DELTA_INPUT, targetoptions : DELTA_INPUT, globaloptions : DELTA_INPUT, lptargetfiletime : *const super::super::Foundation:: FILETIME, hashalgid : super::super::Security::Cryptography:: ALG_ID, lpdelta : *mut DELTA_OUTPUT) -> super::super::Foundation:: BOOL); +pub unsafe fn CreateDeltaB(filetypeset: i64, setflags: i64, resetflags: i64, source: DELTA_INPUT, target: DELTA_INPUT, sourceoptions: DELTA_INPUT, targetoptions: DELTA_INPUT, globaloptions: DELTA_INPUT, lptargetfiletime: Option<*const super::super::Foundation::FILETIME>, hashalgid: super::super::Security::Cryptography::ALG_ID, lpdelta: *mut DELTA_OUTPUT) -> windows_core::BOOL { + windows_targets::link!("msdelta.dll" "system" fn CreateDeltaB(filetypeset : i64, setflags : i64, resetflags : i64, source : DELTA_INPUT, target : DELTA_INPUT, sourceoptions : DELTA_INPUT, targetoptions : DELTA_INPUT, globaloptions : DELTA_INPUT, lptargetfiletime : *const super::super::Foundation:: FILETIME, hashalgid : super::super::Security::Cryptography:: ALG_ID, lpdelta : *mut DELTA_OUTPUT) -> windows_core::BOOL); unsafe { CreateDeltaB(filetypeset, setflags, resetflags, core::mem::transmute(source), core::mem::transmute(target), core::mem::transmute(sourceoptions), core::mem::transmute(targetoptions), core::mem::transmute(globaloptions), lptargetfiletime.unwrap_or(core::mem::zeroed()) as _, hashalgid, lpdelta as _) } } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] -pub unsafe fn CreateDeltaW(filetypeset: i64, setflags: i64, resetflags: i64, lpsourcename: P3, lptargetname: P4, lpsourceoptionsname: P5, lptargetoptionsname: P6, globaloptions: DELTA_INPUT, lptargetfiletime: Option<*const super::super::Foundation::FILETIME>, hashalgid: super::super::Security::Cryptography::ALG_ID, lpdeltaname: P10) -> super::super::Foundation::BOOL +pub unsafe fn CreateDeltaW(filetypeset: i64, setflags: i64, resetflags: i64, lpsourcename: P3, lptargetname: P4, lpsourceoptionsname: P5, lptargetoptionsname: P6, globaloptions: DELTA_INPUT, lptargetfiletime: Option<*const super::super::Foundation::FILETIME>, hashalgid: super::super::Security::Cryptography::ALG_ID, lpdeltaname: P10) -> windows_core::BOOL where P3: windows_core::Param, P4: windows_core::Param, @@ -153,99 +153,99 @@ where P6: windows_core::Param, P10: windows_core::Param, { - windows_targets::link!("msdelta.dll" "system" fn CreateDeltaW(filetypeset : i64, setflags : i64, resetflags : i64, lpsourcename : windows_core::PCWSTR, lptargetname : windows_core::PCWSTR, lpsourceoptionsname : windows_core::PCWSTR, lptargetoptionsname : windows_core::PCWSTR, globaloptions : DELTA_INPUT, lptargetfiletime : *const super::super::Foundation:: FILETIME, hashalgid : super::super::Security::Cryptography:: ALG_ID, lpdeltaname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("msdelta.dll" "system" fn CreateDeltaW(filetypeset : i64, setflags : i64, resetflags : i64, lpsourcename : windows_core::PCWSTR, lptargetname : windows_core::PCWSTR, lpsourceoptionsname : windows_core::PCWSTR, lptargetoptionsname : windows_core::PCWSTR, globaloptions : DELTA_INPUT, lptargetfiletime : *const super::super::Foundation:: FILETIME, hashalgid : super::super::Security::Cryptography:: ALG_ID, lpdeltaname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { CreateDeltaW(filetypeset, setflags, resetflags, lpsourcename.param().abi(), lptargetname.param().abi(), lpsourceoptionsname.param().abi(), lptargetoptionsname.param().abi(), core::mem::transmute(globaloptions), lptargetfiletime.unwrap_or(core::mem::zeroed()) as _, hashalgid, lpdeltaname.param().abi()) } } #[inline] -pub unsafe fn CreatePatchFileA(oldfilename: P0, newfilename: P1, patchfilename: P2, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>) -> super::super::Foundation::BOOL +pub unsafe fn CreatePatchFileA(oldfilename: P0, newfilename: P1, patchfilename: P2, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("mspatchc.dll" "system" fn CreatePatchFileA(oldfilename : windows_core::PCSTR, newfilename : windows_core::PCSTR, patchfilename : windows_core::PCSTR, optionflags : u32, optiondata : *const PATCH_OPTION_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("mspatchc.dll" "system" fn CreatePatchFileA(oldfilename : windows_core::PCSTR, newfilename : windows_core::PCSTR, patchfilename : windows_core::PCSTR, optionflags : u32, optiondata : *const PATCH_OPTION_DATA) -> windows_core::BOOL); unsafe { CreatePatchFileA(oldfilename.param().abi(), newfilename.param().abi(), patchfilename.param().abi(), optionflags, optiondata.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn CreatePatchFileByHandles(oldfilehandle: Option, newfilehandle: super::super::Foundation::HANDLE, patchfilehandle: super::super::Foundation::HANDLE, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>) -> super::super::Foundation::BOOL { - windows_targets::link!("mspatchc.dll" "system" fn CreatePatchFileByHandles(oldfilehandle : super::super::Foundation:: HANDLE, newfilehandle : super::super::Foundation:: HANDLE, patchfilehandle : super::super::Foundation:: HANDLE, optionflags : u32, optiondata : *const PATCH_OPTION_DATA) -> super::super::Foundation:: BOOL); +pub unsafe fn CreatePatchFileByHandles(oldfilehandle: Option, newfilehandle: super::super::Foundation::HANDLE, patchfilehandle: super::super::Foundation::HANDLE, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>) -> windows_core::BOOL { + windows_targets::link!("mspatchc.dll" "system" fn CreatePatchFileByHandles(oldfilehandle : super::super::Foundation:: HANDLE, newfilehandle : super::super::Foundation:: HANDLE, patchfilehandle : super::super::Foundation:: HANDLE, optionflags : u32, optiondata : *const PATCH_OPTION_DATA) -> windows_core::BOOL); unsafe { CreatePatchFileByHandles(oldfilehandle.unwrap_or(core::mem::zeroed()) as _, newfilehandle, patchfilehandle, optionflags, optiondata.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn CreatePatchFileByHandlesEx(oldfileinfoarray: &[PATCH_OLD_FILE_INFO_H], newfilehandle: super::super::Foundation::HANDLE, patchfilehandle: super::super::Foundation::HANDLE, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { - windows_targets::link!("mspatchc.dll" "system" fn CreatePatchFileByHandlesEx(oldfilecount : u32, oldfileinfoarray : *const PATCH_OLD_FILE_INFO_H, newfilehandle : super::super::Foundation:: HANDLE, patchfilehandle : super::super::Foundation:: HANDLE, optionflags : u32, optiondata : *const PATCH_OPTION_DATA, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn CreatePatchFileByHandlesEx(oldfileinfoarray: &[PATCH_OLD_FILE_INFO_H], newfilehandle: super::super::Foundation::HANDLE, patchfilehandle: super::super::Foundation::HANDLE, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("mspatchc.dll" "system" fn CreatePatchFileByHandlesEx(oldfilecount : u32, oldfileinfoarray : *const PATCH_OLD_FILE_INFO_H, newfilehandle : super::super::Foundation:: HANDLE, patchfilehandle : super::super::Foundation:: HANDLE, optionflags : u32, optiondata : *const PATCH_OPTION_DATA, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CreatePatchFileByHandlesEx(oldfileinfoarray.len().try_into().unwrap(), core::mem::transmute(oldfileinfoarray.as_ptr()), newfilehandle, patchfilehandle, optionflags, optiondata.unwrap_or(core::mem::zeroed()) as _, progresscallback.unwrap_or(core::mem::zeroed()) as _, callbackcontext.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn CreatePatchFileExA(oldfileinfoarray: &[PATCH_OLD_FILE_INFO_A], newfilename: P2, patchfilename: P3, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL +pub unsafe fn CreatePatchFileExA(oldfileinfoarray: &[PATCH_OLD_FILE_INFO_A], newfilename: P2, patchfilename: P3, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> windows_core::BOOL where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("mspatchc.dll" "system" fn CreatePatchFileExA(oldfilecount : u32, oldfileinfoarray : *const PATCH_OLD_FILE_INFO_A, newfilename : windows_core::PCSTR, patchfilename : windows_core::PCSTR, optionflags : u32, optiondata : *const PATCH_OPTION_DATA, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("mspatchc.dll" "system" fn CreatePatchFileExA(oldfilecount : u32, oldfileinfoarray : *const PATCH_OLD_FILE_INFO_A, newfilename : windows_core::PCSTR, patchfilename : windows_core::PCSTR, optionflags : u32, optiondata : *const PATCH_OPTION_DATA, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CreatePatchFileExA(oldfileinfoarray.len().try_into().unwrap(), core::mem::transmute(oldfileinfoarray.as_ptr()), newfilename.param().abi(), patchfilename.param().abi(), optionflags, optiondata.unwrap_or(core::mem::zeroed()) as _, progresscallback.unwrap_or(core::mem::zeroed()) as _, callbackcontext.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn CreatePatchFileExW(oldfileinfoarray: &[PATCH_OLD_FILE_INFO_W], newfilename: P2, patchfilename: P3, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL +pub unsafe fn CreatePatchFileExW(oldfileinfoarray: &[PATCH_OLD_FILE_INFO_W], newfilename: P2, patchfilename: P3, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>, progresscallback: Option, callbackcontext: Option<*const core::ffi::c_void>) -> windows_core::BOOL where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("mspatchc.dll" "system" fn CreatePatchFileExW(oldfilecount : u32, oldfileinfoarray : *const PATCH_OLD_FILE_INFO_W, newfilename : windows_core::PCWSTR, patchfilename : windows_core::PCWSTR, optionflags : u32, optiondata : *const PATCH_OPTION_DATA, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("mspatchc.dll" "system" fn CreatePatchFileExW(oldfilecount : u32, oldfileinfoarray : *const PATCH_OLD_FILE_INFO_W, newfilename : windows_core::PCWSTR, patchfilename : windows_core::PCWSTR, optionflags : u32, optiondata : *const PATCH_OPTION_DATA, progresscallback : PPATCH_PROGRESS_CALLBACK, callbackcontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { CreatePatchFileExW(oldfileinfoarray.len().try_into().unwrap(), core::mem::transmute(oldfileinfoarray.as_ptr()), newfilename.param().abi(), patchfilename.param().abi(), optionflags, optiondata.unwrap_or(core::mem::zeroed()) as _, progresscallback.unwrap_or(core::mem::zeroed()) as _, callbackcontext.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn CreatePatchFileW(oldfilename: P0, newfilename: P1, patchfilename: P2, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>) -> super::super::Foundation::BOOL +pub unsafe fn CreatePatchFileW(oldfilename: P0, newfilename: P1, patchfilename: P2, optionflags: u32, optiondata: Option<*const PATCH_OPTION_DATA>) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("mspatchc.dll" "system" fn CreatePatchFileW(oldfilename : windows_core::PCWSTR, newfilename : windows_core::PCWSTR, patchfilename : windows_core::PCWSTR, optionflags : u32, optiondata : *const PATCH_OPTION_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("mspatchc.dll" "system" fn CreatePatchFileW(oldfilename : windows_core::PCWSTR, newfilename : windows_core::PCWSTR, patchfilename : windows_core::PCWSTR, optionflags : u32, optiondata : *const PATCH_OPTION_DATA) -> windows_core::BOOL); unsafe { CreatePatchFileW(oldfilename.param().abi(), newfilename.param().abi(), patchfilename.param().abi(), optionflags, optiondata.unwrap_or(core::mem::zeroed()) as _) } } #[inline] pub unsafe fn DeactivateActCtx(dwflags: u32, ulcookie: usize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn DeactivateActCtx(dwflags : u32, ulcookie : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DeactivateActCtx(dwflags : u32, ulcookie : usize) -> windows_core::BOOL); unsafe { DeactivateActCtx(dwflags, ulcookie).ok() } } #[inline] -pub unsafe fn DeltaFree(lpmemory: *const core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("msdelta.dll" "system" fn DeltaFree(lpmemory : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn DeltaFree(lpmemory: *const core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("msdelta.dll" "system" fn DeltaFree(lpmemory : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { DeltaFree(lpmemory) } } #[inline] -pub unsafe fn DeltaNormalizeProvidedB(filetypeset: i64, normalizeflags: i64, normalizeoptions: DELTA_INPUT, lpsource: *mut core::ffi::c_void, usourcesize: usize) -> super::super::Foundation::BOOL { - windows_targets::link!("msdelta.dll" "system" fn DeltaNormalizeProvidedB(filetypeset : i64, normalizeflags : i64, normalizeoptions : DELTA_INPUT, lpsource : *mut core::ffi::c_void, usourcesize : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn DeltaNormalizeProvidedB(filetypeset: i64, normalizeflags: i64, normalizeoptions: DELTA_INPUT, lpsource: *mut core::ffi::c_void, usourcesize: usize) -> windows_core::BOOL { + windows_targets::link!("msdelta.dll" "system" fn DeltaNormalizeProvidedB(filetypeset : i64, normalizeflags : i64, normalizeoptions : DELTA_INPUT, lpsource : *mut core::ffi::c_void, usourcesize : usize) -> windows_core::BOOL); unsafe { DeltaNormalizeProvidedB(filetypeset, normalizeflags, core::mem::transmute(normalizeoptions), lpsource as _, usourcesize) } } #[inline] -pub unsafe fn ExtractPatchHeaderToFileA(patchfilename: P0, patchheaderfilename: P1) -> super::super::Foundation::BOOL +pub unsafe fn ExtractPatchHeaderToFileA(patchfilename: P0, patchheaderfilename: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("mspatchc.dll" "system" fn ExtractPatchHeaderToFileA(patchfilename : windows_core::PCSTR, patchheaderfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mspatchc.dll" "system" fn ExtractPatchHeaderToFileA(patchfilename : windows_core::PCSTR, patchheaderfilename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { ExtractPatchHeaderToFileA(patchfilename.param().abi(), patchheaderfilename.param().abi()) } } #[inline] -pub unsafe fn ExtractPatchHeaderToFileByHandles(patchfilehandle: super::super::Foundation::HANDLE, patchheaderfilehandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("mspatchc.dll" "system" fn ExtractPatchHeaderToFileByHandles(patchfilehandle : super::super::Foundation:: HANDLE, patchheaderfilehandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn ExtractPatchHeaderToFileByHandles(patchfilehandle: super::super::Foundation::HANDLE, patchheaderfilehandle: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("mspatchc.dll" "system" fn ExtractPatchHeaderToFileByHandles(patchfilehandle : super::super::Foundation:: HANDLE, patchheaderfilehandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { ExtractPatchHeaderToFileByHandles(patchfilehandle, patchheaderfilehandle) } } #[inline] -pub unsafe fn ExtractPatchHeaderToFileW(patchfilename: P0, patchheaderfilename: P1) -> super::super::Foundation::BOOL +pub unsafe fn ExtractPatchHeaderToFileW(patchfilename: P0, patchheaderfilename: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("mspatchc.dll" "system" fn ExtractPatchHeaderToFileW(patchfilename : windows_core::PCWSTR, patchheaderfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mspatchc.dll" "system" fn ExtractPatchHeaderToFileW(patchfilename : windows_core::PCWSTR, patchheaderfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { ExtractPatchHeaderToFileW(patchfilename.param().abi(), patchheaderfilename.param().abi()) } } #[cfg(feature = "Win32_System_WindowsProgramming")] #[inline] pub unsafe fn FindActCtxSectionGuid(dwflags: u32, lpextensionguid: Option<*const windows_core::GUID>, ulsectionid: u32, lpguidtofind: Option<*const windows_core::GUID>, returneddata: *mut ACTCTX_SECTION_KEYED_DATA) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FindActCtxSectionGuid(dwflags : u32, lpextensionguid : *const windows_core::GUID, ulsectionid : u32, lpguidtofind : *const windows_core::GUID, returneddata : *mut ACTCTX_SECTION_KEYED_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FindActCtxSectionGuid(dwflags : u32, lpextensionguid : *const windows_core::GUID, ulsectionid : u32, lpguidtofind : *const windows_core::GUID, returneddata : *mut ACTCTX_SECTION_KEYED_DATA) -> windows_core::BOOL); unsafe { FindActCtxSectionGuid(dwflags, lpextensionguid.unwrap_or(core::mem::zeroed()) as _, ulsectionid, lpguidtofind.unwrap_or(core::mem::zeroed()) as _, returneddata as _).ok() } } #[cfg(feature = "Win32_System_WindowsProgramming")] @@ -254,7 +254,7 @@ pub unsafe fn FindActCtxSectionStringA(dwflags: u32, lpextensionguid: Option where P3: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn FindActCtxSectionStringA(dwflags : u32, lpextensionguid : *const windows_core::GUID, ulsectionid : u32, lpstringtofind : windows_core::PCSTR, returneddata : *mut ACTCTX_SECTION_KEYED_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FindActCtxSectionStringA(dwflags : u32, lpextensionguid : *const windows_core::GUID, ulsectionid : u32, lpstringtofind : windows_core::PCSTR, returneddata : *mut ACTCTX_SECTION_KEYED_DATA) -> windows_core::BOOL); unsafe { FindActCtxSectionStringA(dwflags, lpextensionguid.unwrap_or(core::mem::zeroed()) as _, ulsectionid, lpstringtofind.param().abi(), returneddata as _).ok() } } #[cfg(feature = "Win32_System_WindowsProgramming")] @@ -263,68 +263,68 @@ pub unsafe fn FindActCtxSectionStringW(dwflags: u32, lpextensionguid: Option where P3: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn FindActCtxSectionStringW(dwflags : u32, lpextensionguid : *const windows_core::GUID, ulsectionid : u32, lpstringtofind : windows_core::PCWSTR, returneddata : *mut ACTCTX_SECTION_KEYED_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FindActCtxSectionStringW(dwflags : u32, lpextensionguid : *const windows_core::GUID, ulsectionid : u32, lpstringtofind : windows_core::PCWSTR, returneddata : *mut ACTCTX_SECTION_KEYED_DATA) -> windows_core::BOOL); unsafe { FindActCtxSectionStringW(dwflags, lpextensionguid.unwrap_or(core::mem::zeroed()) as _, ulsectionid, lpstringtofind.param().abi(), returneddata as _).ok() } } #[inline] pub unsafe fn GetCurrentActCtx(lphactctx: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetCurrentActCtx(lphactctx : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetCurrentActCtx(lphactctx : *mut super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { GetCurrentActCtx(lphactctx as _).ok() } } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] -pub unsafe fn GetDeltaInfoA(lpdeltaname: P0, lpheaderinfo: *mut DELTA_HEADER_INFO) -> super::super::Foundation::BOOL +pub unsafe fn GetDeltaInfoA(lpdeltaname: P0, lpheaderinfo: *mut DELTA_HEADER_INFO) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("msdelta.dll" "system" fn GetDeltaInfoA(lpdeltaname : windows_core::PCSTR, lpheaderinfo : *mut DELTA_HEADER_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("msdelta.dll" "system" fn GetDeltaInfoA(lpdeltaname : windows_core::PCSTR, lpheaderinfo : *mut DELTA_HEADER_INFO) -> windows_core::BOOL); unsafe { GetDeltaInfoA(lpdeltaname.param().abi(), lpheaderinfo as _) } } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] -pub unsafe fn GetDeltaInfoB(delta: DELTA_INPUT, lpheaderinfo: *mut DELTA_HEADER_INFO) -> super::super::Foundation::BOOL { - windows_targets::link!("msdelta.dll" "system" fn GetDeltaInfoB(delta : DELTA_INPUT, lpheaderinfo : *mut DELTA_HEADER_INFO) -> super::super::Foundation:: BOOL); +pub unsafe fn GetDeltaInfoB(delta: DELTA_INPUT, lpheaderinfo: *mut DELTA_HEADER_INFO) -> windows_core::BOOL { + windows_targets::link!("msdelta.dll" "system" fn GetDeltaInfoB(delta : DELTA_INPUT, lpheaderinfo : *mut DELTA_HEADER_INFO) -> windows_core::BOOL); unsafe { GetDeltaInfoB(core::mem::transmute(delta), lpheaderinfo as _) } } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] -pub unsafe fn GetDeltaInfoW(lpdeltaname: P0, lpheaderinfo: *mut DELTA_HEADER_INFO) -> super::super::Foundation::BOOL +pub unsafe fn GetDeltaInfoW(lpdeltaname: P0, lpheaderinfo: *mut DELTA_HEADER_INFO) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("msdelta.dll" "system" fn GetDeltaInfoW(lpdeltaname : windows_core::PCWSTR, lpheaderinfo : *mut DELTA_HEADER_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("msdelta.dll" "system" fn GetDeltaInfoW(lpdeltaname : windows_core::PCWSTR, lpheaderinfo : *mut DELTA_HEADER_INFO) -> windows_core::BOOL); unsafe { GetDeltaInfoW(lpdeltaname.param().abi(), lpheaderinfo as _) } } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] -pub unsafe fn GetDeltaSignatureA(filetypeset: i64, hashalgid: super::super::Security::Cryptography::ALG_ID, lpsourcename: P2, lphash: *mut DELTA_HASH) -> super::super::Foundation::BOOL +pub unsafe fn GetDeltaSignatureA(filetypeset: i64, hashalgid: super::super::Security::Cryptography::ALG_ID, lpsourcename: P2, lphash: *mut DELTA_HASH) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("msdelta.dll" "system" fn GetDeltaSignatureA(filetypeset : i64, hashalgid : super::super::Security::Cryptography:: ALG_ID, lpsourcename : windows_core::PCSTR, lphash : *mut DELTA_HASH) -> super::super::Foundation:: BOOL); + windows_targets::link!("msdelta.dll" "system" fn GetDeltaSignatureA(filetypeset : i64, hashalgid : super::super::Security::Cryptography:: ALG_ID, lpsourcename : windows_core::PCSTR, lphash : *mut DELTA_HASH) -> windows_core::BOOL); unsafe { GetDeltaSignatureA(filetypeset, hashalgid, lpsourcename.param().abi(), lphash as _) } } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] -pub unsafe fn GetDeltaSignatureB(filetypeset: i64, hashalgid: super::super::Security::Cryptography::ALG_ID, source: DELTA_INPUT, lphash: *mut DELTA_HASH) -> super::super::Foundation::BOOL { - windows_targets::link!("msdelta.dll" "system" fn GetDeltaSignatureB(filetypeset : i64, hashalgid : super::super::Security::Cryptography:: ALG_ID, source : DELTA_INPUT, lphash : *mut DELTA_HASH) -> super::super::Foundation:: BOOL); +pub unsafe fn GetDeltaSignatureB(filetypeset: i64, hashalgid: super::super::Security::Cryptography::ALG_ID, source: DELTA_INPUT, lphash: *mut DELTA_HASH) -> windows_core::BOOL { + windows_targets::link!("msdelta.dll" "system" fn GetDeltaSignatureB(filetypeset : i64, hashalgid : super::super::Security::Cryptography:: ALG_ID, source : DELTA_INPUT, lphash : *mut DELTA_HASH) -> windows_core::BOOL); unsafe { GetDeltaSignatureB(filetypeset, hashalgid, core::mem::transmute(source), lphash as _) } } #[cfg(feature = "Win32_Security_Cryptography")] #[inline] -pub unsafe fn GetDeltaSignatureW(filetypeset: i64, hashalgid: super::super::Security::Cryptography::ALG_ID, lpsourcename: P2, lphash: *mut DELTA_HASH) -> super::super::Foundation::BOOL +pub unsafe fn GetDeltaSignatureW(filetypeset: i64, hashalgid: super::super::Security::Cryptography::ALG_ID, lpsourcename: P2, lphash: *mut DELTA_HASH) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("msdelta.dll" "system" fn GetDeltaSignatureW(filetypeset : i64, hashalgid : super::super::Security::Cryptography:: ALG_ID, lpsourcename : windows_core::PCWSTR, lphash : *mut DELTA_HASH) -> super::super::Foundation:: BOOL); + windows_targets::link!("msdelta.dll" "system" fn GetDeltaSignatureW(filetypeset : i64, hashalgid : super::super::Security::Cryptography:: ALG_ID, lpsourcename : windows_core::PCWSTR, lphash : *mut DELTA_HASH) -> windows_core::BOOL); unsafe { GetDeltaSignatureW(filetypeset, hashalgid, lpsourcename.param().abi(), lphash as _) } } #[inline] -pub unsafe fn GetFilePatchSignatureA(filename: P0, optionflags: u32, optiondata: Option<*const core::ffi::c_void>, ignorerangearray: Option<&[PATCH_IGNORE_RANGE]>, retainrangearray: Option<&[PATCH_RETAIN_RANGE]>, signaturebuffer: &mut [u8]) -> super::super::Foundation::BOOL +pub unsafe fn GetFilePatchSignatureA(filename: P0, optionflags: u32, optiondata: Option<*const core::ffi::c_void>, ignorerangearray: Option<&[PATCH_IGNORE_RANGE]>, retainrangearray: Option<&[PATCH_RETAIN_RANGE]>, signaturebuffer: &mut [u8]) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("mspatcha.dll" "system" fn GetFilePatchSignatureA(filename : windows_core::PCSTR, optionflags : u32, optiondata : *const core::ffi::c_void, ignorerangecount : u32, ignorerangearray : *const PATCH_IGNORE_RANGE, retainrangecount : u32, retainrangearray : *const PATCH_RETAIN_RANGE, signaturebuffersize : u32, signaturebuffer : windows_core::PSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mspatcha.dll" "system" fn GetFilePatchSignatureA(filename : windows_core::PCSTR, optionflags : u32, optiondata : *const core::ffi::c_void, ignorerangecount : u32, ignorerangearray : *const PATCH_IGNORE_RANGE, retainrangecount : u32, retainrangearray : *const PATCH_RETAIN_RANGE, signaturebuffersize : u32, signaturebuffer : windows_core::PSTR) -> windows_core::BOOL); unsafe { GetFilePatchSignatureA( filename.param().abi(), @@ -340,8 +340,8 @@ where } } #[inline] -pub unsafe fn GetFilePatchSignatureByBuffer(filebufferwritable: &mut [u8], optionflags: u32, optiondata: Option<*const core::ffi::c_void>, ignorerangearray: Option<&[PATCH_IGNORE_RANGE]>, retainrangearray: Option<&[PATCH_RETAIN_RANGE]>, signaturebuffer: &mut [u8]) -> super::super::Foundation::BOOL { - windows_targets::link!("mspatcha.dll" "system" fn GetFilePatchSignatureByBuffer(filebufferwritable : *mut u8, filesize : u32, optionflags : u32, optiondata : *const core::ffi::c_void, ignorerangecount : u32, ignorerangearray : *const PATCH_IGNORE_RANGE, retainrangecount : u32, retainrangearray : *const PATCH_RETAIN_RANGE, signaturebuffersize : u32, signaturebuffer : windows_core::PSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn GetFilePatchSignatureByBuffer(filebufferwritable: &mut [u8], optionflags: u32, optiondata: Option<*const core::ffi::c_void>, ignorerangearray: Option<&[PATCH_IGNORE_RANGE]>, retainrangearray: Option<&[PATCH_RETAIN_RANGE]>, signaturebuffer: &mut [u8]) -> windows_core::BOOL { + windows_targets::link!("mspatcha.dll" "system" fn GetFilePatchSignatureByBuffer(filebufferwritable : *mut u8, filesize : u32, optionflags : u32, optiondata : *const core::ffi::c_void, ignorerangecount : u32, ignorerangearray : *const PATCH_IGNORE_RANGE, retainrangecount : u32, retainrangearray : *const PATCH_RETAIN_RANGE, signaturebuffersize : u32, signaturebuffer : windows_core::PSTR) -> windows_core::BOOL); unsafe { GetFilePatchSignatureByBuffer( core::mem::transmute(filebufferwritable.as_ptr()), @@ -358,8 +358,8 @@ pub unsafe fn GetFilePatchSignatureByBuffer(filebufferwritable: &mut [u8], optio } } #[inline] -pub unsafe fn GetFilePatchSignatureByHandle(filehandle: super::super::Foundation::HANDLE, optionflags: u32, optiondata: Option<*const core::ffi::c_void>, ignorerangearray: Option<&[PATCH_IGNORE_RANGE]>, retainrangearray: Option<&[PATCH_RETAIN_RANGE]>, signaturebuffer: &mut [u8]) -> super::super::Foundation::BOOL { - windows_targets::link!("mspatcha.dll" "system" fn GetFilePatchSignatureByHandle(filehandle : super::super::Foundation:: HANDLE, optionflags : u32, optiondata : *const core::ffi::c_void, ignorerangecount : u32, ignorerangearray : *const PATCH_IGNORE_RANGE, retainrangecount : u32, retainrangearray : *const PATCH_RETAIN_RANGE, signaturebuffersize : u32, signaturebuffer : windows_core::PSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn GetFilePatchSignatureByHandle(filehandle: super::super::Foundation::HANDLE, optionflags: u32, optiondata: Option<*const core::ffi::c_void>, ignorerangearray: Option<&[PATCH_IGNORE_RANGE]>, retainrangearray: Option<&[PATCH_RETAIN_RANGE]>, signaturebuffer: &mut [u8]) -> windows_core::BOOL { + windows_targets::link!("mspatcha.dll" "system" fn GetFilePatchSignatureByHandle(filehandle : super::super::Foundation:: HANDLE, optionflags : u32, optiondata : *const core::ffi::c_void, ignorerangecount : u32, ignorerangearray : *const PATCH_IGNORE_RANGE, retainrangecount : u32, retainrangearray : *const PATCH_RETAIN_RANGE, signaturebuffersize : u32, signaturebuffer : windows_core::PSTR) -> windows_core::BOOL); unsafe { GetFilePatchSignatureByHandle( filehandle, @@ -375,11 +375,11 @@ pub unsafe fn GetFilePatchSignatureByHandle(filehandle: super::super::Foundation } } #[inline] -pub unsafe fn GetFilePatchSignatureW(filename: P0, optionflags: u32, optiondata: Option<*const core::ffi::c_void>, ignorerangearray: Option<&[PATCH_IGNORE_RANGE]>, retainrangearray: Option<&[PATCH_RETAIN_RANGE]>, signaturebuffersize: u32, signaturebuffer: windows_core::PWSTR) -> super::super::Foundation::BOOL +pub unsafe fn GetFilePatchSignatureW(filename: P0, optionflags: u32, optiondata: Option<*const core::ffi::c_void>, ignorerangearray: Option<&[PATCH_IGNORE_RANGE]>, retainrangearray: Option<&[PATCH_RETAIN_RANGE]>, signaturebuffersize: u32, signaturebuffer: windows_core::PWSTR) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("mspatcha.dll" "system" fn GetFilePatchSignatureW(filename : windows_core::PCWSTR, optionflags : u32, optiondata : *const core::ffi::c_void, ignorerangecount : u32, ignorerangearray : *const PATCH_IGNORE_RANGE, retainrangecount : u32, retainrangearray : *const PATCH_RETAIN_RANGE, signaturebuffersize : u32, signaturebuffer : windows_core::PWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mspatcha.dll" "system" fn GetFilePatchSignatureW(filename : windows_core::PCWSTR, optionflags : u32, optiondata : *const core::ffi::c_void, ignorerangecount : u32, ignorerangearray : *const PATCH_IGNORE_RANGE, retainrangecount : u32, retainrangearray : *const PATCH_RETAIN_RANGE, signaturebuffersize : u32, signaturebuffer : windows_core::PWSTR) -> windows_core::BOOL); unsafe { GetFilePatchSignatureW( filename.param().abi(), @@ -440,7 +440,7 @@ pub unsafe fn MsiAdvertiseScriptA(szscriptfile: P0, dwflags: u32, phregdata: where P0: windows_core::Param, { - windows_targets::link!("msi.dll" "system" fn MsiAdvertiseScriptA(szscriptfile : windows_core::PCSTR, dwflags : u32, phregdata : *const super::Registry:: HKEY, fremoveitems : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("msi.dll" "system" fn MsiAdvertiseScriptA(szscriptfile : windows_core::PCSTR, dwflags : u32, phregdata : *const super::Registry:: HKEY, fremoveitems : windows_core::BOOL) -> u32); unsafe { MsiAdvertiseScriptA(szscriptfile.param().abi(), dwflags, phregdata.unwrap_or(core::mem::zeroed()) as _, fremoveitems.into()) } } #[cfg(feature = "Win32_System_Registry")] @@ -449,7 +449,7 @@ pub unsafe fn MsiAdvertiseScriptW(szscriptfile: P0, dwflags: u32, phregdata: where P0: windows_core::Param, { - windows_targets::link!("msi.dll" "system" fn MsiAdvertiseScriptW(szscriptfile : windows_core::PCWSTR, dwflags : u32, phregdata : *const super::Registry:: HKEY, fremoveitems : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("msi.dll" "system" fn MsiAdvertiseScriptW(szscriptfile : windows_core::PCWSTR, dwflags : u32, phregdata : *const super::Registry:: HKEY, fremoveitems : windows_core::BOOL) -> u32); unsafe { MsiAdvertiseScriptW(szscriptfile.param().abi(), dwflags, phregdata.unwrap_or(core::mem::zeroed()) as _, fremoveitems.into()) } } #[inline] @@ -1257,8 +1257,8 @@ pub unsafe fn MsiGetLastErrorRecord() -> MSIHANDLE { unsafe { MsiGetLastErrorRecord() } } #[inline] -pub unsafe fn MsiGetMode(hinstall: MSIHANDLE, erunmode: MSIRUNMODE) -> super::super::Foundation::BOOL { - windows_targets::link!("msi.dll" "system" fn MsiGetMode(hinstall : MSIHANDLE, erunmode : MSIRUNMODE) -> super::super::Foundation:: BOOL); +pub unsafe fn MsiGetMode(hinstall: MSIHANDLE, erunmode: MSIRUNMODE) -> windows_core::BOOL { + windows_targets::link!("msi.dll" "system" fn MsiGetMode(hinstall : MSIHANDLE, erunmode : MSIRUNMODE) -> windows_core::BOOL); unsafe { MsiGetMode(hinstall, erunmode) } } #[inline] @@ -1556,19 +1556,19 @@ where unsafe { MsiInstallProductW(szpackagepath.param().abi(), szcommandline.param().abi()) } } #[inline] -pub unsafe fn MsiIsProductElevatedA(szproduct: P0, pfelevated: *mut super::super::Foundation::BOOL) -> u32 +pub unsafe fn MsiIsProductElevatedA(szproduct: P0, pfelevated: *mut windows_core::BOOL) -> u32 where P0: windows_core::Param, { - windows_targets::link!("msi.dll" "system" fn MsiIsProductElevatedA(szproduct : windows_core::PCSTR, pfelevated : *mut super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("msi.dll" "system" fn MsiIsProductElevatedA(szproduct : windows_core::PCSTR, pfelevated : *mut windows_core::BOOL) -> u32); unsafe { MsiIsProductElevatedA(szproduct.param().abi(), pfelevated as _) } } #[inline] -pub unsafe fn MsiIsProductElevatedW(szproduct: P0, pfelevated: *mut super::super::Foundation::BOOL) -> u32 +pub unsafe fn MsiIsProductElevatedW(szproduct: P0, pfelevated: *mut windows_core::BOOL) -> u32 where P0: windows_core::Param, { - windows_targets::link!("msi.dll" "system" fn MsiIsProductElevatedW(szproduct : windows_core::PCWSTR, pfelevated : *mut super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("msi.dll" "system" fn MsiIsProductElevatedW(szproduct : windows_core::PCWSTR, pfelevated : *mut windows_core::BOOL) -> u32); unsafe { MsiIsProductElevatedW(szproduct.param().abi(), pfelevated as _) } } #[inline] @@ -1717,7 +1717,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("msi.dll" "system" fn MsiProcessAdvertiseScriptA(szscriptfile : windows_core::PCSTR, sziconfolder : windows_core::PCSTR, hregdata : super::Registry:: HKEY, fshortcuts : super::super::Foundation:: BOOL, fremoveitems : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("msi.dll" "system" fn MsiProcessAdvertiseScriptA(szscriptfile : windows_core::PCSTR, sziconfolder : windows_core::PCSTR, hregdata : super::Registry:: HKEY, fshortcuts : windows_core::BOOL, fremoveitems : windows_core::BOOL) -> u32); unsafe { MsiProcessAdvertiseScriptA(szscriptfile.param().abi(), sziconfolder.param().abi(), hregdata.unwrap_or(core::mem::zeroed()) as _, fshortcuts.into(), fremoveitems.into()) } } #[cfg(feature = "Win32_System_Registry")] @@ -1727,7 +1727,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("msi.dll" "system" fn MsiProcessAdvertiseScriptW(szscriptfile : windows_core::PCWSTR, sziconfolder : windows_core::PCWSTR, hregdata : super::Registry:: HKEY, fshortcuts : super::super::Foundation:: BOOL, fremoveitems : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("msi.dll" "system" fn MsiProcessAdvertiseScriptW(szscriptfile : windows_core::PCWSTR, sziconfolder : windows_core::PCWSTR, hregdata : super::Registry:: HKEY, fshortcuts : windows_core::BOOL, fremoveitems : windows_core::BOOL) -> u32); unsafe { MsiProcessAdvertiseScriptW(szscriptfile.param().abi(), sziconfolder.param().abi(), hregdata.unwrap_or(core::mem::zeroed()) as _, fshortcuts.into(), fremoveitems.into()) } } #[inline] @@ -1916,8 +1916,8 @@ pub unsafe fn MsiRecordGetStringW(hrecord: MSIHANDLE, ifield: u32, szvaluebuf: O unsafe { MsiRecordGetStringW(hrecord, ifield, szvaluebuf.unwrap_or(core::mem::zeroed()) as _, pcchvaluebuf.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn MsiRecordIsNull(hrecord: MSIHANDLE, ifield: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("msi.dll" "system" fn MsiRecordIsNull(hrecord : MSIHANDLE, ifield : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn MsiRecordIsNull(hrecord: MSIHANDLE, ifield: u32) -> windows_core::BOOL { + windows_targets::link!("msi.dll" "system" fn MsiRecordIsNull(hrecord : MSIHANDLE, ifield : u32) -> windows_core::BOOL); unsafe { MsiRecordIsNull(hrecord, ifield) } } #[inline] @@ -2107,7 +2107,7 @@ pub unsafe fn MsiSetInternalUI(dwuilevel: INSTALLUILEVEL, phwnd: Option<*mut sup } #[inline] pub unsafe fn MsiSetMode(hinstall: MSIHANDLE, erunmode: MSIRUNMODE, fstate: bool) -> u32 { - windows_targets::link!("msi.dll" "system" fn MsiSetMode(hinstall : MSIHANDLE, erunmode : MSIRUNMODE, fstate : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("msi.dll" "system" fn MsiSetMode(hinstall : MSIHANDLE, erunmode : MSIRUNMODE, fstate : windows_core::BOOL) -> u32); unsafe { MsiSetMode(hinstall, erunmode, fstate.into()) } } #[inline] @@ -2548,12 +2548,12 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn QueryActCtxSettingsW(dwflags : u32, hactctx : super::super::Foundation:: HANDLE, settingsnamespace : windows_core::PCWSTR, settingname : windows_core::PCWSTR, pvbuffer : windows_core::PWSTR, dwbuffer : usize, pdwwrittenorrequired : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn QueryActCtxSettingsW(dwflags : u32, hactctx : super::super::Foundation:: HANDLE, settingsnamespace : windows_core::PCWSTR, settingname : windows_core::PCWSTR, pvbuffer : windows_core::PWSTR, dwbuffer : usize, pdwwrittenorrequired : *mut usize) -> windows_core::BOOL); unsafe { QueryActCtxSettingsW(dwflags.unwrap_or(core::mem::zeroed()) as _, hactctx.unwrap_or(core::mem::zeroed()) as _, settingsnamespace.param().abi(), settingname.param().abi(), pvbuffer.unwrap_or(core::mem::zeroed()) as _, dwbuffer, pdwwrittenorrequired.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn QueryActCtxW(dwflags: u32, hactctx: super::super::Foundation::HANDLE, pvsubinstance: Option<*const core::ffi::c_void>, ulinfoclass: u32, pvbuffer: Option<*mut core::ffi::c_void>, cbbuffer: usize, pcbwrittenorrequired: Option<*mut usize>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn QueryActCtxW(dwflags : u32, hactctx : super::super::Foundation:: HANDLE, pvsubinstance : *const core::ffi::c_void, ulinfoclass : u32, pvbuffer : *mut core::ffi::c_void, cbbuffer : usize, pcbwrittenorrequired : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn QueryActCtxW(dwflags : u32, hactctx : super::super::Foundation:: HANDLE, pvsubinstance : *const core::ffi::c_void, ulinfoclass : u32, pvbuffer : *mut core::ffi::c_void, cbbuffer : usize, pcbwrittenorrequired : *mut usize) -> windows_core::BOOL); unsafe { QueryActCtxW(dwflags, hactctx, pvsubinstance.unwrap_or(core::mem::zeroed()) as _, ulinfoclass, pvbuffer.unwrap_or(core::mem::zeroed()) as _, cbbuffer, pcbwrittenorrequired.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2563,65 +2563,65 @@ pub unsafe fn ReleaseActCtx(hactctx: super::super::Foundation::HANDLE) { } #[inline] pub unsafe fn SfcGetNextProtectedFile(rpchandle: super::super::Foundation::HANDLE, protfiledata: *mut PROTECTED_FILE_DATA) -> windows_core::Result<()> { - windows_targets::link!("sfc.dll" "system" fn SfcGetNextProtectedFile(rpchandle : super::super::Foundation:: HANDLE, protfiledata : *mut PROTECTED_FILE_DATA) -> super::super::Foundation:: BOOL); + windows_targets::link!("sfc.dll" "system" fn SfcGetNextProtectedFile(rpchandle : super::super::Foundation:: HANDLE, protfiledata : *mut PROTECTED_FILE_DATA) -> windows_core::BOOL); unsafe { SfcGetNextProtectedFile(rpchandle, protfiledata as _).ok() } } #[inline] -pub unsafe fn SfcIsFileProtected(rpchandle: super::super::Foundation::HANDLE, protfilename: P1) -> super::super::Foundation::BOOL +pub unsafe fn SfcIsFileProtected(rpchandle: super::super::Foundation::HANDLE, protfilename: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("sfc.dll" "system" fn SfcIsFileProtected(rpchandle : super::super::Foundation:: HANDLE, protfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("sfc.dll" "system" fn SfcIsFileProtected(rpchandle : super::super::Foundation:: HANDLE, protfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SfcIsFileProtected(rpchandle, protfilename.param().abi()) } } #[cfg(feature = "Win32_System_Registry")] #[inline] -pub unsafe fn SfcIsKeyProtected(keyhandle: super::Registry::HKEY, subkeyname: P1, keysam: u32) -> super::super::Foundation::BOOL +pub unsafe fn SfcIsKeyProtected(keyhandle: super::Registry::HKEY, subkeyname: P1, keysam: u32) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("sfc.dll" "system" fn SfcIsKeyProtected(keyhandle : super::Registry:: HKEY, subkeyname : windows_core::PCWSTR, keysam : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("sfc.dll" "system" fn SfcIsKeyProtected(keyhandle : super::Registry:: HKEY, subkeyname : windows_core::PCWSTR, keysam : u32) -> windows_core::BOOL); unsafe { SfcIsKeyProtected(keyhandle, subkeyname.param().abi(), keysam) } } #[inline] -pub unsafe fn SfpVerifyFile(pszfilename: P0, pszerror: &[u8]) -> super::super::Foundation::BOOL +pub unsafe fn SfpVerifyFile(pszfilename: P0, pszerror: &[u8]) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("sfc.dll" "system" fn SfpVerifyFile(pszfilename : windows_core::PCSTR, pszerror : windows_core::PCSTR, dwerrsize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("sfc.dll" "system" fn SfpVerifyFile(pszfilename : windows_core::PCSTR, pszerror : windows_core::PCSTR, dwerrsize : u32) -> windows_core::BOOL); unsafe { SfpVerifyFile(pszfilename.param().abi(), core::mem::transmute(pszerror.as_ptr()), pszerror.len().try_into().unwrap()) } } #[inline] -pub unsafe fn TestApplyPatchToFileA(patchfilename: P0, oldfilename: P1, applyoptionflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn TestApplyPatchToFileA(patchfilename: P0, oldfilename: P1, applyoptionflags: u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("mspatcha.dll" "system" fn TestApplyPatchToFileA(patchfilename : windows_core::PCSTR, oldfilename : windows_core::PCSTR, applyoptionflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("mspatcha.dll" "system" fn TestApplyPatchToFileA(patchfilename : windows_core::PCSTR, oldfilename : windows_core::PCSTR, applyoptionflags : u32) -> windows_core::BOOL); unsafe { TestApplyPatchToFileA(patchfilename.param().abi(), oldfilename.param().abi(), applyoptionflags) } } #[inline] -pub unsafe fn TestApplyPatchToFileByBuffers(patchfilebuffer: &[u8], oldfilebuffer: Option<&[u8]>, newfilesize: Option<*mut u32>, applyoptionflags: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("mspatcha.dll" "system" fn TestApplyPatchToFileByBuffers(patchfilebuffer : *const u8, patchfilesize : u32, oldfilebuffer : *const u8, oldfilesize : u32, newfilesize : *mut u32, applyoptionflags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn TestApplyPatchToFileByBuffers(patchfilebuffer: &[u8], oldfilebuffer: Option<&[u8]>, newfilesize: Option<*mut u32>, applyoptionflags: u32) -> windows_core::BOOL { + windows_targets::link!("mspatcha.dll" "system" fn TestApplyPatchToFileByBuffers(patchfilebuffer : *const u8, patchfilesize : u32, oldfilebuffer : *const u8, oldfilesize : u32, newfilesize : *mut u32, applyoptionflags : u32) -> windows_core::BOOL); unsafe { TestApplyPatchToFileByBuffers(core::mem::transmute(patchfilebuffer.as_ptr()), patchfilebuffer.len().try_into().unwrap(), core::mem::transmute(oldfilebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), oldfilebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), newfilesize.unwrap_or(core::mem::zeroed()) as _, applyoptionflags) } } #[inline] -pub unsafe fn TestApplyPatchToFileByHandles(patchfilehandle: super::super::Foundation::HANDLE, oldfilehandle: super::super::Foundation::HANDLE, applyoptionflags: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("mspatcha.dll" "system" fn TestApplyPatchToFileByHandles(patchfilehandle : super::super::Foundation:: HANDLE, oldfilehandle : super::super::Foundation:: HANDLE, applyoptionflags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn TestApplyPatchToFileByHandles(patchfilehandle: super::super::Foundation::HANDLE, oldfilehandle: super::super::Foundation::HANDLE, applyoptionflags: u32) -> windows_core::BOOL { + windows_targets::link!("mspatcha.dll" "system" fn TestApplyPatchToFileByHandles(patchfilehandle : super::super::Foundation:: HANDLE, oldfilehandle : super::super::Foundation:: HANDLE, applyoptionflags : u32) -> windows_core::BOOL); unsafe { TestApplyPatchToFileByHandles(patchfilehandle, oldfilehandle, applyoptionflags) } } #[inline] -pub unsafe fn TestApplyPatchToFileW(patchfilename: P0, oldfilename: P1, applyoptionflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn TestApplyPatchToFileW(patchfilename: P0, oldfilename: P1, applyoptionflags: u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("mspatcha.dll" "system" fn TestApplyPatchToFileW(patchfilename : windows_core::PCWSTR, oldfilename : windows_core::PCWSTR, applyoptionflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("mspatcha.dll" "system" fn TestApplyPatchToFileW(patchfilename : windows_core::PCWSTR, oldfilename : windows_core::PCWSTR, applyoptionflags : u32) -> windows_core::BOOL); unsafe { TestApplyPatchToFileW(patchfilename.param().abi(), oldfilename.param().abi(), applyoptionflags) } } #[inline] pub unsafe fn ZombifyActCtx(hactctx: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ZombifyActCtx(hactctx : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ZombifyActCtx(hactctx : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { ZombifyActCtx(hactctx as _).ok() } } #[repr(C)] @@ -2965,7 +2965,7 @@ impl Default for DELTA_HEADER_INFO { pub struct DELTA_INPUT { pub Anonymous: DELTA_INPUT_0, pub uSize: usize, - pub Editable: super::super::Foundation::BOOL, + pub Editable: windows_core::BOOL, } impl Default for DELTA_INPUT { fn default() -> Self { @@ -4704,7 +4704,7 @@ impl IPMApplicationInfo { pub unsafe fn IconPath(&self, pappiconpath: *mut windows_core::BSTR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IconPath)(windows_core::Interface::as_raw(self), core::mem::transmute(pappiconpath)).ok() } } - pub unsafe fn NotificationState(&self) -> windows_core::Result { + pub unsafe fn NotificationState(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).NotificationState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4722,13 +4722,13 @@ impl IPMApplicationInfo { (windows_core::Interface::vtable(self).State)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsRevoked(&self) -> windows_core::Result { + pub unsafe fn IsRevoked(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsRevoked)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn UpdateAvailable(&self) -> windows_core::Result { + pub unsafe fn UpdateAvailable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).UpdateAvailable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4740,19 +4740,19 @@ impl IPMApplicationInfo { (windows_core::Interface::vtable(self).InstallDate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsUninstallable(&self) -> windows_core::Result { + pub unsafe fn IsUninstallable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsUninstallable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsThemable(&self) -> windows_core::Result { + pub unsafe fn IsThemable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsThemable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsTrial(&self) -> windows_core::Result { + pub unsafe fn IsTrial(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsTrial)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4803,7 +4803,7 @@ impl IPMApplicationInfo { (windows_core::Interface::vtable(self).PublisherID)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsMultiCore(&self) -> windows_core::Result { + pub unsafe fn IsMultiCore(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsMultiCore)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4836,31 +4836,31 @@ impl IPMApplicationInfo { pub unsafe fn set_UninstallableState(&self, isuninstallable: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).set_UninstallableState)(windows_core::Interface::as_raw(self), isuninstallable.into()).ok() } } - pub unsafe fn IsPinableOnKidZone(&self) -> windows_core::Result { + pub unsafe fn IsPinableOnKidZone(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsPinableOnKidZone)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsOriginallyPreInstalled(&self) -> windows_core::Result { + pub unsafe fn IsOriginallyPreInstalled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsOriginallyPreInstalled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsInstallOnSD(&self) -> windows_core::Result { + pub unsafe fn IsInstallOnSD(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsInstallOnSD)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsOptoutOnSD(&self) -> windows_core::Result { + pub unsafe fn IsOptoutOnSD(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsOptoutOnSD)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsOptoutBackupRestore(&self) -> windows_core::Result { + pub unsafe fn IsOptoutBackupRestore(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsOptoutBackupRestore)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4872,25 +4872,25 @@ impl IPMApplicationInfo { pub unsafe fn set_EnterpriseUninstallable(&self, isuninstallable: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).set_EnterpriseUninstallable)(windows_core::Interface::as_raw(self), isuninstallable.into()).ok() } } - pub unsafe fn EnterpriseDisabled(&self) -> windows_core::Result { + pub unsafe fn EnterpriseDisabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EnterpriseDisabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn EnterpriseUninstallable(&self) -> windows_core::Result { + pub unsafe fn EnterpriseUninstallable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EnterpriseUninstallable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsVisibleOnAppList(&self) -> windows_core::Result { + pub unsafe fn IsVisibleOnAppList(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsVisibleOnAppList)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsInboxApp(&self) -> windows_core::Result { + pub unsafe fn IsInboxApp(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsInboxApp)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4905,7 +4905,7 @@ impl IPMApplicationInfo { pub unsafe fn StartAppBlob(&self, pblob: *mut PM_STARTAPPBLOB) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).StartAppBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(pblob)).ok() } } - pub unsafe fn IsMovable(&self) -> windows_core::Result { + pub unsafe fn IsMovable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsMovable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4923,19 +4923,19 @@ impl IPMApplicationInfo { (windows_core::Interface::vtable(self).ModifiedDate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsOriginallyRestored(&self) -> windows_core::Result { + pub unsafe fn IsOriginallyRestored(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsOriginallyRestored)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn ShouldDeferMdilBind(&self) -> windows_core::Result { + pub unsafe fn ShouldDeferMdilBind(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShouldDeferMdilBind)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsFullyPreInstall(&self) -> windows_core::Result { + pub unsafe fn IsFullyPreInstall(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsFullyPreInstall)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4957,15 +4957,15 @@ pub struct IPMApplicationInfo_Vtbl { pub DefaultTask: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub AppTitle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IconPath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub NotificationState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub NotificationState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub AppInstallType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PM_APPLICATION_INSTALL_TYPE) -> windows_core::HRESULT, pub State: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PM_APPLICATION_STATE) -> windows_core::HRESULT, - pub IsRevoked: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub UpdateAvailable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsRevoked: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub UpdateAvailable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub InstallDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT, - pub IsUninstallable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsThemable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsTrial: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsUninstallable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsThemable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsTrial: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub InstallPath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DataRoot: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Genre: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PM_APP_GENRE) -> windows_core::HRESULT, @@ -4977,34 +4977,34 @@ pub struct IPMApplicationInfo_Vtbl { pub AppPlatMajorVersion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, pub AppPlatMinorVersion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, pub PublisherID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - pub IsMultiCore: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsMultiCore: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub AppPlatMajorVersionLightUp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, pub AppPlatMinorVersionLightUp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, - pub set_UpdateAvailable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub set_NotificationState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub set_UpdateAvailable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub set_NotificationState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub set_IconPath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub set_UninstallableState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsPinableOnKidZone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsOriginallyPreInstalled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsInstallOnSD: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsOptoutOnSD: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsOptoutBackupRestore: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub set_EnterpriseDisabled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub set_EnterpriseUninstallable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub EnterpriseDisabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub EnterpriseUninstallable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsVisibleOnAppList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsInboxApp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub set_UninstallableState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub IsPinableOnKidZone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsOriginallyPreInstalled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsInstallOnSD: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsOptoutOnSD: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsOptoutBackupRestore: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub set_EnterpriseDisabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub set_EnterpriseUninstallable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub EnterpriseDisabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub EnterpriseUninstallable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsVisibleOnAppList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsInboxApp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub StorageID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub StartAppBlob: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PM_STARTAPPBLOB) -> windows_core::HRESULT, - pub IsMovable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsMovable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub DeploymentAppEnumerationHubFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PM_TILE_HUBTYPE) -> windows_core::HRESULT, pub ModifiedDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::FILETIME) -> windows_core::HRESULT, - pub IsOriginallyRestored: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub ShouldDeferMdilBind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsFullyPreInstall: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub set_IsMdilMaintenanceNeeded: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsOriginallyRestored: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub ShouldDeferMdilBind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsFullyPreInstall: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub set_IsMdilMaintenanceNeeded: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub set_Title: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IPMApplicationInfo_Impl: windows_core::IUnknownImpl { @@ -5014,15 +5014,15 @@ pub trait IPMApplicationInfo_Impl: windows_core::IUnknownImpl { fn DefaultTask(&self, pdefaulttask: *mut windows_core::BSTR) -> windows_core::Result<()>; fn AppTitle(&self, papptitle: *mut windows_core::BSTR) -> windows_core::Result<()>; fn IconPath(&self, pappiconpath: *mut windows_core::BSTR) -> windows_core::Result<()>; - fn NotificationState(&self) -> windows_core::Result; + fn NotificationState(&self) -> windows_core::Result; fn AppInstallType(&self) -> windows_core::Result; fn State(&self) -> windows_core::Result; - fn IsRevoked(&self) -> windows_core::Result; - fn UpdateAvailable(&self) -> windows_core::Result; + fn IsRevoked(&self) -> windows_core::Result; + fn UpdateAvailable(&self) -> windows_core::Result; fn InstallDate(&self) -> windows_core::Result; - fn IsUninstallable(&self) -> windows_core::Result; - fn IsThemable(&self) -> windows_core::Result; - fn IsTrial(&self) -> windows_core::Result; + fn IsUninstallable(&self) -> windows_core::Result; + fn IsThemable(&self) -> windows_core::Result; + fn IsTrial(&self) -> windows_core::Result; fn InstallPath(&self, pinstallpath: *mut windows_core::BSTR) -> windows_core::Result<()>; fn DataRoot(&self, pdataroot: *mut windows_core::BSTR) -> windows_core::Result<()>; fn Genre(&self) -> windows_core::Result; @@ -5034,34 +5034,34 @@ pub trait IPMApplicationInfo_Impl: windows_core::IUnknownImpl { fn AppPlatMajorVersion(&self) -> windows_core::Result; fn AppPlatMinorVersion(&self) -> windows_core::Result; fn PublisherID(&self) -> windows_core::Result; - fn IsMultiCore(&self) -> windows_core::Result; + fn IsMultiCore(&self) -> windows_core::Result; fn SID(&self, psid: *mut windows_core::BSTR) -> windows_core::Result<()>; fn AppPlatMajorVersionLightUp(&self) -> windows_core::Result; fn AppPlatMinorVersionLightUp(&self) -> windows_core::Result; - fn set_UpdateAvailable(&self, isupdateavailable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn set_NotificationState(&self, isnotified: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn set_UpdateAvailable(&self, isupdateavailable: windows_core::BOOL) -> windows_core::Result<()>; + fn set_NotificationState(&self, isnotified: windows_core::BOOL) -> windows_core::Result<()>; fn set_IconPath(&self, appiconpath: &windows_core::BSTR) -> windows_core::Result<()>; - fn set_UninstallableState(&self, isuninstallable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn IsPinableOnKidZone(&self) -> windows_core::Result; - fn IsOriginallyPreInstalled(&self) -> windows_core::Result; - fn IsInstallOnSD(&self) -> windows_core::Result; - fn IsOptoutOnSD(&self) -> windows_core::Result; - fn IsOptoutBackupRestore(&self) -> windows_core::Result; - fn set_EnterpriseDisabled(&self, isdisabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn set_EnterpriseUninstallable(&self, isuninstallable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn EnterpriseDisabled(&self) -> windows_core::Result; - fn EnterpriseUninstallable(&self) -> windows_core::Result; - fn IsVisibleOnAppList(&self) -> windows_core::Result; - fn IsInboxApp(&self) -> windows_core::Result; + fn set_UninstallableState(&self, isuninstallable: windows_core::BOOL) -> windows_core::Result<()>; + fn IsPinableOnKidZone(&self) -> windows_core::Result; + fn IsOriginallyPreInstalled(&self) -> windows_core::Result; + fn IsInstallOnSD(&self) -> windows_core::Result; + fn IsOptoutOnSD(&self) -> windows_core::Result; + fn IsOptoutBackupRestore(&self) -> windows_core::Result; + fn set_EnterpriseDisabled(&self, isdisabled: windows_core::BOOL) -> windows_core::Result<()>; + fn set_EnterpriseUninstallable(&self, isuninstallable: windows_core::BOOL) -> windows_core::Result<()>; + fn EnterpriseDisabled(&self) -> windows_core::Result; + fn EnterpriseUninstallable(&self) -> windows_core::Result; + fn IsVisibleOnAppList(&self) -> windows_core::Result; + fn IsInboxApp(&self) -> windows_core::Result; fn StorageID(&self) -> windows_core::Result; fn StartAppBlob(&self, pblob: *mut PM_STARTAPPBLOB) -> windows_core::Result<()>; - fn IsMovable(&self) -> windows_core::Result; + fn IsMovable(&self) -> windows_core::Result; fn DeploymentAppEnumerationHubFilter(&self) -> windows_core::Result; fn ModifiedDate(&self) -> windows_core::Result; - fn IsOriginallyRestored(&self) -> windows_core::Result; - fn ShouldDeferMdilBind(&self) -> windows_core::Result; - fn IsFullyPreInstall(&self) -> windows_core::Result; - fn set_IsMdilMaintenanceNeeded(&self, fismdilmaintenanceneeded: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsOriginallyRestored(&self) -> windows_core::Result; + fn ShouldDeferMdilBind(&self) -> windows_core::Result; + fn IsFullyPreInstall(&self) -> windows_core::Result; + fn set_IsMdilMaintenanceNeeded(&self, fismdilmaintenanceneeded: windows_core::BOOL) -> windows_core::Result<()>; fn set_Title(&self, apptitle: &windows_core::BSTR) -> windows_core::Result<()>; } impl IPMApplicationInfo_Vtbl { @@ -5120,7 +5120,7 @@ impl IPMApplicationInfo_Vtbl { IPMApplicationInfo_Impl::IconPath(this, core::mem::transmute_copy(&pappiconpath)).into() } } - unsafe extern "system" fn NotificationState(this: *mut core::ffi::c_void, pisnotified: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn NotificationState(this: *mut core::ffi::c_void, pisnotified: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::NotificationState(this) { @@ -5156,7 +5156,7 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn IsRevoked(this: *mut core::ffi::c_void, pisrevoked: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsRevoked(this: *mut core::ffi::c_void, pisrevoked: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsRevoked(this) { @@ -5168,7 +5168,7 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn UpdateAvailable(this: *mut core::ffi::c_void, pisupdateavailable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn UpdateAvailable(this: *mut core::ffi::c_void, pisupdateavailable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::UpdateAvailable(this) { @@ -5192,7 +5192,7 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn IsUninstallable(this: *mut core::ffi::c_void, pisuninstallable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsUninstallable(this: *mut core::ffi::c_void, pisuninstallable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsUninstallable(this) { @@ -5204,7 +5204,7 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn IsThemable(this: *mut core::ffi::c_void, pisthemable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsThemable(this: *mut core::ffi::c_void, pisthemable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsThemable(this) { @@ -5216,7 +5216,7 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn IsTrial(this: *mut core::ffi::c_void, pistrial: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsTrial(this: *mut core::ffi::c_void, pistrial: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsTrial(this) { @@ -5318,7 +5318,7 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn IsMultiCore(this: *mut core::ffi::c_void, pismulticore: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsMultiCore(this: *mut core::ffi::c_void, pismulticore: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsMultiCore(this) { @@ -5360,13 +5360,13 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn set_UpdateAvailable(this: *mut core::ffi::c_void, isupdateavailable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn set_UpdateAvailable(this: *mut core::ffi::c_void, isupdateavailable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::set_UpdateAvailable(this, core::mem::transmute_copy(&isupdateavailable)).into() } } - unsafe extern "system" fn set_NotificationState(this: *mut core::ffi::c_void, isnotified: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn set_NotificationState(this: *mut core::ffi::c_void, isnotified: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::set_NotificationState(this, core::mem::transmute_copy(&isnotified)).into() @@ -5378,13 +5378,13 @@ impl IPMApplicationInfo_Vtbl { IPMApplicationInfo_Impl::set_IconPath(this, core::mem::transmute(&appiconpath)).into() } } - unsafe extern "system" fn set_UninstallableState(this: *mut core::ffi::c_void, isuninstallable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn set_UninstallableState(this: *mut core::ffi::c_void, isuninstallable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::set_UninstallableState(this, core::mem::transmute_copy(&isuninstallable)).into() } } - unsafe extern "system" fn IsPinableOnKidZone(this: *mut core::ffi::c_void, pispinable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsPinableOnKidZone(this: *mut core::ffi::c_void, pispinable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsPinableOnKidZone(this) { @@ -5396,7 +5396,7 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn IsOriginallyPreInstalled(this: *mut core::ffi::c_void, pispreinstalled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsOriginallyPreInstalled(this: *mut core::ffi::c_void, pispreinstalled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsOriginallyPreInstalled(this) { @@ -5408,7 +5408,7 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn IsInstallOnSD(this: *mut core::ffi::c_void, pisinstallonsd: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsInstallOnSD(this: *mut core::ffi::c_void, pisinstallonsd: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsInstallOnSD(this) { @@ -5420,7 +5420,7 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn IsOptoutOnSD(this: *mut core::ffi::c_void, pisoptoutonsd: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsOptoutOnSD(this: *mut core::ffi::c_void, pisoptoutonsd: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsOptoutOnSD(this) { @@ -5432,7 +5432,7 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn IsOptoutBackupRestore(this: *mut core::ffi::c_void, pisoptoutbackuprestore: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsOptoutBackupRestore(this: *mut core::ffi::c_void, pisoptoutbackuprestore: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsOptoutBackupRestore(this) { @@ -5444,19 +5444,19 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn set_EnterpriseDisabled(this: *mut core::ffi::c_void, isdisabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn set_EnterpriseDisabled(this: *mut core::ffi::c_void, isdisabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::set_EnterpriseDisabled(this, core::mem::transmute_copy(&isdisabled)).into() } } - unsafe extern "system" fn set_EnterpriseUninstallable(this: *mut core::ffi::c_void, isuninstallable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn set_EnterpriseUninstallable(this: *mut core::ffi::c_void, isuninstallable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::set_EnterpriseUninstallable(this, core::mem::transmute_copy(&isuninstallable)).into() } } - unsafe extern "system" fn EnterpriseDisabled(this: *mut core::ffi::c_void, isdisabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnterpriseDisabled(this: *mut core::ffi::c_void, isdisabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::EnterpriseDisabled(this) { @@ -5468,7 +5468,7 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn EnterpriseUninstallable(this: *mut core::ffi::c_void, isuninstallable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnterpriseUninstallable(this: *mut core::ffi::c_void, isuninstallable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::EnterpriseUninstallable(this) { @@ -5480,7 +5480,7 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn IsVisibleOnAppList(this: *mut core::ffi::c_void, pisvisible: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsVisibleOnAppList(this: *mut core::ffi::c_void, pisvisible: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsVisibleOnAppList(this) { @@ -5492,7 +5492,7 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn IsInboxApp(this: *mut core::ffi::c_void, pisinboxapp: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsInboxApp(this: *mut core::ffi::c_void, pisinboxapp: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsInboxApp(this) { @@ -5522,7 +5522,7 @@ impl IPMApplicationInfo_Vtbl { IPMApplicationInfo_Impl::StartAppBlob(this, core::mem::transmute_copy(&pblob)).into() } } - unsafe extern "system" fn IsMovable(this: *mut core::ffi::c_void, pismovable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsMovable(this: *mut core::ffi::c_void, pismovable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsMovable(this) { @@ -5558,7 +5558,7 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn IsOriginallyRestored(this: *mut core::ffi::c_void, pisrestored: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsOriginallyRestored(this: *mut core::ffi::c_void, pisrestored: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsOriginallyRestored(this) { @@ -5570,7 +5570,7 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn ShouldDeferMdilBind(this: *mut core::ffi::c_void, pfdefermdilbind: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ShouldDeferMdilBind(this: *mut core::ffi::c_void, pfdefermdilbind: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::ShouldDeferMdilBind(this) { @@ -5582,7 +5582,7 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn IsFullyPreInstall(this: *mut core::ffi::c_void, pfisfullypreinstall: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsFullyPreInstall(this: *mut core::ffi::c_void, pfisfullypreinstall: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMApplicationInfo_Impl::IsFullyPreInstall(this) { @@ -5594,7 +5594,7 @@ impl IPMApplicationInfo_Vtbl { } } } - unsafe extern "system" fn set_IsMdilMaintenanceNeeded(this: *mut core::ffi::c_void, fismdilmaintenanceneeded: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn set_IsMdilMaintenanceNeeded(this: *mut core::ffi::c_void, fismdilmaintenanceneeded: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMApplicationInfo_Impl::set_IsMdilMaintenanceNeeded(this, core::mem::transmute_copy(&fismdilmaintenanceneeded)).into() @@ -5739,19 +5739,19 @@ impl IPMBackgroundServiceAgentInfo { pub unsafe fn BGType(&self, pbgtype: *mut windows_core::BSTR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).BGType)(windows_core::Interface::as_raw(self), core::mem::transmute(pbgtype)).ok() } } - pub unsafe fn IsPeriodic(&self) -> windows_core::Result { + pub unsafe fn IsPeriodic(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsPeriodic)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsScheduled(&self) -> windows_core::Result { + pub unsafe fn IsScheduled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsScheduled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsScheduleAllowed(&self) -> windows_core::Result { + pub unsafe fn IsScheduleAllowed(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsScheduleAllowed)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -5760,7 +5760,7 @@ impl IPMBackgroundServiceAgentInfo { pub unsafe fn Description(&self, pdescription: *mut windows_core::BSTR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Description)(windows_core::Interface::as_raw(self), core::mem::transmute(pdescription)).ok() } } - pub unsafe fn IsLaunchOnBoot(&self) -> windows_core::Result { + pub unsafe fn IsLaunchOnBoot(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsLaunchOnBoot)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -5783,13 +5783,13 @@ pub struct IPMBackgroundServiceAgentInfo_Vtbl { pub BGName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub BGSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub BGType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsPeriodic: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsScheduled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsScheduleAllowed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsPeriodic: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsScheduled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsScheduleAllowed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Description: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsLaunchOnBoot: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub set_IsScheduled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub set_IsScheduleAllowed: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsLaunchOnBoot: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub set_IsScheduled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub set_IsScheduleAllowed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IPMBackgroundServiceAgentInfo_Impl: windows_core::IUnknownImpl { fn ProductID(&self) -> windows_core::Result; @@ -5799,13 +5799,13 @@ pub trait IPMBackgroundServiceAgentInfo_Impl: windows_core::IUnknownImpl { fn BGName(&self, pbgname: *mut windows_core::BSTR) -> windows_core::Result<()>; fn BGSource(&self, pbgsource: *mut windows_core::BSTR) -> windows_core::Result<()>; fn BGType(&self, pbgtype: *mut windows_core::BSTR) -> windows_core::Result<()>; - fn IsPeriodic(&self) -> windows_core::Result; - fn IsScheduled(&self) -> windows_core::Result; - fn IsScheduleAllowed(&self) -> windows_core::Result; + fn IsPeriodic(&self) -> windows_core::Result; + fn IsScheduled(&self) -> windows_core::Result; + fn IsScheduleAllowed(&self) -> windows_core::Result; fn Description(&self, pdescription: *mut windows_core::BSTR) -> windows_core::Result<()>; - fn IsLaunchOnBoot(&self) -> windows_core::Result; - fn set_IsScheduled(&self, isscheduled: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn set_IsScheduleAllowed(&self, isscheduleallowed: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsLaunchOnBoot(&self) -> windows_core::Result; + fn set_IsScheduled(&self, isscheduled: windows_core::BOOL) -> windows_core::Result<()>; + fn set_IsScheduleAllowed(&self, isscheduleallowed: windows_core::BOOL) -> windows_core::Result<()>; } impl IPMBackgroundServiceAgentInfo_Vtbl { pub const fn new() -> Self { @@ -5863,7 +5863,7 @@ impl IPMBackgroundServiceAgentInfo_Vtbl { IPMBackgroundServiceAgentInfo_Impl::BGType(this, core::mem::transmute_copy(&pbgtype)).into() } } - unsafe extern "system" fn IsPeriodic(this: *mut core::ffi::c_void, pisperiodic: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsPeriodic(this: *mut core::ffi::c_void, pisperiodic: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMBackgroundServiceAgentInfo_Impl::IsPeriodic(this) { @@ -5875,7 +5875,7 @@ impl IPMBackgroundServiceAgentInfo_Vtbl { } } } - unsafe extern "system" fn IsScheduled(this: *mut core::ffi::c_void, pisscheduled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsScheduled(this: *mut core::ffi::c_void, pisscheduled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMBackgroundServiceAgentInfo_Impl::IsScheduled(this) { @@ -5887,7 +5887,7 @@ impl IPMBackgroundServiceAgentInfo_Vtbl { } } } - unsafe extern "system" fn IsScheduleAllowed(this: *mut core::ffi::c_void, pisscheduleallowed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsScheduleAllowed(this: *mut core::ffi::c_void, pisscheduleallowed: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMBackgroundServiceAgentInfo_Impl::IsScheduleAllowed(this) { @@ -5905,7 +5905,7 @@ impl IPMBackgroundServiceAgentInfo_Vtbl { IPMBackgroundServiceAgentInfo_Impl::Description(this, core::mem::transmute_copy(&pdescription)).into() } } - unsafe extern "system" fn IsLaunchOnBoot(this: *mut core::ffi::c_void, plaunchonboot: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsLaunchOnBoot(this: *mut core::ffi::c_void, plaunchonboot: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMBackgroundServiceAgentInfo_Impl::IsLaunchOnBoot(this) { @@ -5917,13 +5917,13 @@ impl IPMBackgroundServiceAgentInfo_Vtbl { } } } - unsafe extern "system" fn set_IsScheduled(this: *mut core::ffi::c_void, isscheduled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn set_IsScheduled(this: *mut core::ffi::c_void, isscheduled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMBackgroundServiceAgentInfo_Impl::set_IsScheduled(this, core::mem::transmute_copy(&isscheduled)).into() } } - unsafe extern "system" fn set_IsScheduleAllowed(this: *mut core::ffi::c_void, isscheduleallowed: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn set_IsScheduleAllowed(this: *mut core::ffi::c_void, isscheduleallowed: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMBackgroundServiceAgentInfo_Impl::set_IsScheduleAllowed(this, core::mem::transmute_copy(&isscheduleallowed)).into() @@ -6018,7 +6018,7 @@ impl IPMBackgroundWorkerInfo { (windows_core::Interface::vtable(self).ExpectedRuntime)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsBootWorker(&self) -> windows_core::Result { + pub unsafe fn IsBootWorker(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsBootWorker)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6033,7 +6033,7 @@ pub struct IPMBackgroundWorkerInfo_Vtbl { pub BGName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub MaxStartupLatency: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub ExpectedRuntime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub IsBootWorker: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsBootWorker: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IPMBackgroundWorkerInfo_Impl: windows_core::IUnknownImpl { fn ProductID(&self) -> windows_core::Result; @@ -6041,7 +6041,7 @@ pub trait IPMBackgroundWorkerInfo_Impl: windows_core::IUnknownImpl { fn BGName(&self, pbgname: *mut windows_core::BSTR) -> windows_core::Result<()>; fn MaxStartupLatency(&self) -> windows_core::Result; fn ExpectedRuntime(&self) -> windows_core::Result; - fn IsBootWorker(&self) -> windows_core::Result; + fn IsBootWorker(&self) -> windows_core::Result; } impl IPMBackgroundWorkerInfo_Vtbl { pub const fn new() -> Self { @@ -6093,7 +6093,7 @@ impl IPMBackgroundWorkerInfo_Vtbl { } } } - unsafe extern "system" fn IsBootWorker(this: *mut core::ffi::c_void, pisbootworker: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsBootWorker(this: *mut core::ffi::c_void, pisbootworker: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMBackgroundWorkerInfo_Impl::IsBootWorker(this) { @@ -6271,7 +6271,7 @@ impl IPMDeploymentManager { pub unsafe fn UpdateChamberProfile(&self, productid: windows_core::GUID) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).UpdateChamberProfile)(windows_core::Interface::as_raw(self), core::mem::transmute(productid)).ok() } } - pub unsafe fn EnterprisePolicyIsApplicationAllowed(&self, productid: windows_core::GUID, publishername: P1) -> windows_core::Result + pub unsafe fn EnterprisePolicyIsApplicationAllowed(&self, productid: windows_core::GUID, publishername: P1) -> windows_core::Result where P1: windows_core::Param, { @@ -6347,7 +6347,7 @@ pub struct IPMDeploymentManager_Vtbl { pub ReindexSQLCEDatabases: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> windows_core::HRESULT, pub SetApplicationsNeedMaintenance: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, pub UpdateChamberProfile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> windows_core::HRESULT, - pub EnterprisePolicyIsApplicationAllowed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnterprisePolicyIsApplicationAllowed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, pub BeginUpdateDeployedPackage: unsafe extern "system" fn(*mut core::ffi::c_void, *const PM_UPDATEINFO) -> windows_core::HRESULT, pub ReportRestoreCancelled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> windows_core::HRESULT, pub ResolveResourceString: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -6385,7 +6385,7 @@ pub trait IPMDeploymentManager_Impl: windows_core::IUnknownImpl { fn ReindexSQLCEDatabases(&self, productid: &windows_core::GUID) -> windows_core::Result<()>; fn SetApplicationsNeedMaintenance(&self, requiredmaintenanceoperations: u32) -> windows_core::Result; fn UpdateChamberProfile(&self, productid: &windows_core::GUID) -> windows_core::Result<()>; - fn EnterprisePolicyIsApplicationAllowed(&self, productid: &windows_core::GUID, publishername: &windows_core::PCWSTR) -> windows_core::Result; + fn EnterprisePolicyIsApplicationAllowed(&self, productid: &windows_core::GUID, publishername: &windows_core::PCWSTR) -> windows_core::Result; fn BeginUpdateDeployedPackage(&self, pupdateinfo: *const PM_UPDATEINFO) -> windows_core::Result<()>; fn ReportRestoreCancelled(&self, productid: &windows_core::GUID) -> windows_core::Result<()>; fn ResolveResourceString(&self, resourcestring: &windows_core::PCWSTR, presolvedresourcestring: *mut windows_core::BSTR) -> windows_core::Result<()>; @@ -6550,7 +6550,7 @@ impl IPMDeploymentManager_Vtbl { IPMDeploymentManager_Impl::UpdateChamberProfile(this, core::mem::transmute(&productid)).into() } } - unsafe extern "system" fn EnterprisePolicyIsApplicationAllowed(this: *mut core::ffi::c_void, productid: windows_core::GUID, publishername: windows_core::PCWSTR, pisallowed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnterprisePolicyIsApplicationAllowed(this: *mut core::ffi::c_void, productid: windows_core::GUID, publishername: windows_core::PCWSTR, pisallowed: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMDeploymentManager_Impl::EnterprisePolicyIsApplicationAllowed(this, core::mem::transmute(&productid), core::mem::transmute(&publishername)) { @@ -6991,7 +6991,7 @@ impl windows_core::RuntimeName for IPMEnumerationManager {} windows_core::imp::define_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 { + pub unsafe fn SupportsUpdates(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SupportsUpdates)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7001,14 +7001,14 @@ impl IPMExtensionCachedFileUpdaterInfo { #[repr(C)] pub struct IPMExtensionCachedFileUpdaterInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SupportsUpdates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SupportsUpdates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IPMExtensionCachedFileUpdaterInfo_Impl: windows_core::IUnknownImpl { - fn SupportsUpdates(&self) -> windows_core::Result; + fn SupportsUpdates(&self) -> windows_core::Result; } impl IPMExtensionCachedFileUpdaterInfo_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SupportsUpdates(this: *mut core::ffi::c_void, psupportsupdates: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SupportsUpdates(this: *mut core::ffi::c_void, psupportsupdates: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMExtensionCachedFileUpdaterInfo_Impl::SupportsUpdates(this) { @@ -7168,7 +7168,7 @@ impl IPMExtensionFileOpenPickerInfo { pub unsafe fn get_AllFileTypes(&self, pctypes: *mut u32, pptypes: *mut *mut windows_core::BSTR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).get_AllFileTypes)(windows_core::Interface::as_raw(self), pctypes as _, pptypes as _).ok() } } - pub unsafe fn SupportsAllFileTypes(&self) -> windows_core::Result { + pub unsafe fn SupportsAllFileTypes(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SupportsAllFileTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7179,11 +7179,11 @@ impl IPMExtensionFileOpenPickerInfo { pub struct IPMExtensionFileOpenPickerInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub get_AllFileTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SupportsAllFileTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SupportsAllFileTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IPMExtensionFileOpenPickerInfo_Impl: windows_core::IUnknownImpl { fn get_AllFileTypes(&self, pctypes: *mut u32, pptypes: *mut *mut windows_core::BSTR) -> windows_core::Result<()>; - fn SupportsAllFileTypes(&self) -> windows_core::Result; + fn SupportsAllFileTypes(&self) -> windows_core::Result; } impl IPMExtensionFileOpenPickerInfo_Vtbl { pub const fn new() -> Self { @@ -7193,7 +7193,7 @@ impl IPMExtensionFileOpenPickerInfo_Vtbl { IPMExtensionFileOpenPickerInfo_Impl::get_AllFileTypes(this, core::mem::transmute_copy(&pctypes), core::mem::transmute_copy(&pptypes)).into() } } - unsafe extern "system" fn SupportsAllFileTypes(this: *mut core::ffi::c_void, psupportsalltypes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SupportsAllFileTypes(this: *mut core::ffi::c_void, psupportsalltypes: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMExtensionFileOpenPickerInfo_Impl::SupportsAllFileTypes(this) { @@ -7222,7 +7222,7 @@ impl IPMExtensionFileSavePickerInfo { pub unsafe fn get_AllFileTypes(&self, pctypes: *mut u32, pptypes: *mut *mut windows_core::BSTR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).get_AllFileTypes)(windows_core::Interface::as_raw(self), pctypes as _, pptypes as _).ok() } } - pub unsafe fn SupportsAllFileTypes(&self) -> windows_core::Result { + pub unsafe fn SupportsAllFileTypes(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SupportsAllFileTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7233,11 +7233,11 @@ impl IPMExtensionFileSavePickerInfo { pub struct IPMExtensionFileSavePickerInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub get_AllFileTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SupportsAllFileTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SupportsAllFileTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IPMExtensionFileSavePickerInfo_Impl: windows_core::IUnknownImpl { fn get_AllFileTypes(&self, pctypes: *mut u32, pptypes: *mut *mut windows_core::BSTR) -> windows_core::Result<()>; - fn SupportsAllFileTypes(&self) -> windows_core::Result; + fn SupportsAllFileTypes(&self) -> windows_core::Result; } impl IPMExtensionFileSavePickerInfo_Vtbl { pub const fn new() -> Self { @@ -7247,7 +7247,7 @@ impl IPMExtensionFileSavePickerInfo_Vtbl { IPMExtensionFileSavePickerInfo_Impl::get_AllFileTypes(this, core::mem::transmute_copy(&pctypes), core::mem::transmute_copy(&pptypes)).into() } } - unsafe extern "system" fn SupportsAllFileTypes(this: *mut core::ffi::c_void, psupportsalltypes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SupportsAllFileTypes(this: *mut core::ffi::c_void, psupportsalltypes: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMExtensionFileSavePickerInfo_Impl::SupportsAllFileTypes(this) { @@ -7465,7 +7465,7 @@ impl IPMExtensionShareTargetInfo { pub unsafe fn get_AllDataFormats(&self, pcdataformats: *mut u32, ppdataformats: *mut *mut windows_core::BSTR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).get_AllDataFormats)(windows_core::Interface::as_raw(self), pcdataformats as _, ppdataformats as _).ok() } } - pub unsafe fn SupportsAllFileTypes(&self) -> windows_core::Result { + pub unsafe fn SupportsAllFileTypes(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SupportsAllFileTypes)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7477,12 +7477,12 @@ pub struct IPMExtensionShareTargetInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub get_AllFileTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub get_AllDataFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SupportsAllFileTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SupportsAllFileTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IPMExtensionShareTargetInfo_Impl: windows_core::IUnknownImpl { fn get_AllFileTypes(&self, pctypes: *mut u32, pptypes: *mut *mut windows_core::BSTR) -> windows_core::Result<()>; fn get_AllDataFormats(&self, pcdataformats: *mut u32, ppdataformats: *mut *mut windows_core::BSTR) -> windows_core::Result<()>; - fn SupportsAllFileTypes(&self) -> windows_core::Result; + fn SupportsAllFileTypes(&self) -> windows_core::Result; } impl IPMExtensionShareTargetInfo_Vtbl { pub const fn new() -> Self { @@ -7498,7 +7498,7 @@ impl IPMExtensionShareTargetInfo_Vtbl { IPMExtensionShareTargetInfo_Impl::get_AllDataFormats(this, core::mem::transmute_copy(&pcdataformats), core::mem::transmute_copy(&ppdataformats)).into() } } - unsafe extern "system" fn SupportsAllFileTypes(this: *mut core::ffi::c_void, psupportsalltypes: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SupportsAllFileTypes(this: *mut core::ffi::c_void, psupportsalltypes: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMExtensionShareTargetInfo_Impl::SupportsAllFileTypes(this) { @@ -7561,7 +7561,7 @@ impl IPMLiveTileJobInfo { pub unsafe fn set_IntervalDuration(&self, ulintervalduration: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).set_IntervalDuration)(windows_core::Interface::as_raw(self), ulintervalduration).ok() } } - pub unsafe fn RunForever(&self) -> windows_core::Result { + pub unsafe fn RunForever(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).RunForever)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7639,8 +7639,8 @@ pub struct IPMLiveTileJobInfo_Vtbl { pub set_StartSchedule: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::FILETIME) -> windows_core::HRESULT, pub IntervalDuration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub set_IntervalDuration: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub RunForever: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub set_RunForever: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub RunForever: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub set_RunForever: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub MaxRunCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub set_MaxRunCount: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub RunCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -7665,8 +7665,8 @@ pub trait IPMLiveTileJobInfo_Impl: windows_core::IUnknownImpl { fn set_StartSchedule(&self, ftstartschedule: &super::super::Foundation::FILETIME) -> windows_core::Result<()>; fn IntervalDuration(&self) -> windows_core::Result; fn set_IntervalDuration(&self, ulintervalduration: u32) -> windows_core::Result<()>; - fn RunForever(&self) -> windows_core::Result; - fn set_RunForever(&self, frunforever: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn RunForever(&self) -> windows_core::Result; + fn set_RunForever(&self, frunforever: windows_core::BOOL) -> windows_core::Result<()>; fn MaxRunCount(&self) -> windows_core::Result; fn set_MaxRunCount(&self, ulmaxruncount: u32) -> windows_core::Result<()>; fn RunCount(&self) -> windows_core::Result; @@ -7756,7 +7756,7 @@ impl IPMLiveTileJobInfo_Vtbl { IPMLiveTileJobInfo_Impl::set_IntervalDuration(this, core::mem::transmute_copy(&ulintervalduration)).into() } } - unsafe extern "system" fn RunForever(this: *mut core::ffi::c_void, isrunforever: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RunForever(this: *mut core::ffi::c_void, isrunforever: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMLiveTileJobInfo_Impl::RunForever(this) { @@ -7768,7 +7768,7 @@ impl IPMLiveTileJobInfo_Vtbl { } } } - unsafe extern "system" fn set_RunForever(this: *mut core::ffi::c_void, frunforever: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn set_RunForever(this: *mut core::ffi::c_void, frunforever: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMLiveTileJobInfo_Impl::set_RunForever(this, core::mem::transmute_copy(&frunforever)).into() @@ -8014,13 +8014,13 @@ impl IPMTaskInfo { pub unsafe fn DataRootFolder(&self, pdatarootfolder: *mut windows_core::BSTR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).DataRootFolder)(windows_core::Interface::as_raw(self), core::mem::transmute(pdatarootfolder)).ok() } } - pub unsafe fn IsSingleInstanceHost(&self) -> windows_core::Result { + pub unsafe fn IsSingleInstanceHost(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsSingleInstanceHost)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsInteropEnabled(&self) -> windows_core::Result { + pub unsafe fn IsInteropEnabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsInteropEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -8047,7 +8047,7 @@ impl IPMTaskInfo { (windows_core::Interface::vtable(self).BitsPerPixel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn SuppressesDehydration(&self) -> windows_core::Result { + pub unsafe fn SuppressesDehydration(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SuppressesDehydration)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -8056,7 +8056,7 @@ impl IPMTaskInfo { pub unsafe fn BackgroundExecutionAbilities(&self, pbackgroundexecutionabilities: *mut windows_core::BSTR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).BackgroundExecutionAbilities)(windows_core::Interface::as_raw(self), core::mem::transmute(pbackgroundexecutionabilities)).ok() } } - pub unsafe fn IsOptedForExtendedMem(&self) -> windows_core::Result { + pub unsafe fn IsOptedForExtendedMem(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsOptedForExtendedMem)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -8078,15 +8078,15 @@ pub struct IPMTaskInfo_Vtbl { pub ImageParams: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub InstallRootFolder: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DataRootFolder: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsSingleInstanceHost: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsInteropEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsSingleInstanceHost: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsInteropEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub ApplicationState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PM_APPLICATION_STATE) -> windows_core::HRESULT, pub InstallType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PM_APPLICATION_INSTALL_TYPE) -> windows_core::HRESULT, pub get_Version: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8, *mut u8) -> windows_core::HRESULT, pub BitsPerPixel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16) -> windows_core::HRESULT, - pub SuppressesDehydration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SuppressesDehydration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub BackgroundExecutionAbilities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsOptedForExtendedMem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsOptedForExtendedMem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IPMTaskInfo_Impl: windows_core::IUnknownImpl { fn ProductID(&self) -> windows_core::Result; @@ -8101,15 +8101,15 @@ pub trait IPMTaskInfo_Impl: windows_core::IUnknownImpl { fn ImageParams(&self, pimageparams: *mut windows_core::BSTR) -> windows_core::Result<()>; fn InstallRootFolder(&self, pinstallrootfolder: *mut windows_core::BSTR) -> windows_core::Result<()>; fn DataRootFolder(&self, pdatarootfolder: *mut windows_core::BSTR) -> windows_core::Result<()>; - fn IsSingleInstanceHost(&self) -> windows_core::Result; - fn IsInteropEnabled(&self) -> windows_core::Result; + fn IsSingleInstanceHost(&self) -> windows_core::Result; + fn IsInteropEnabled(&self) -> windows_core::Result; fn ApplicationState(&self) -> windows_core::Result; fn InstallType(&self) -> windows_core::Result; fn get_Version(&self, ptargetmajorversion: *mut u8, ptargetminorversion: *mut u8) -> windows_core::Result<()>; fn BitsPerPixel(&self) -> windows_core::Result; - fn SuppressesDehydration(&self) -> windows_core::Result; + fn SuppressesDehydration(&self) -> windows_core::Result; fn BackgroundExecutionAbilities(&self, pbackgroundexecutionabilities: *mut windows_core::BSTR) -> windows_core::Result<()>; - fn IsOptedForExtendedMem(&self) -> windows_core::Result; + fn IsOptedForExtendedMem(&self) -> windows_core::Result; } impl IPMTaskInfo_Vtbl { pub const fn new() -> Self { @@ -8215,7 +8215,7 @@ impl IPMTaskInfo_Vtbl { IPMTaskInfo_Impl::DataRootFolder(this, core::mem::transmute_copy(&pdatarootfolder)).into() } } - unsafe extern "system" fn IsSingleInstanceHost(this: *mut core::ffi::c_void, pissingleinstancehost: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsSingleInstanceHost(this: *mut core::ffi::c_void, pissingleinstancehost: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTaskInfo_Impl::IsSingleInstanceHost(this) { @@ -8227,7 +8227,7 @@ impl IPMTaskInfo_Vtbl { } } } - unsafe extern "system" fn IsInteropEnabled(this: *mut core::ffi::c_void, pisinteropenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsInteropEnabled(this: *mut core::ffi::c_void, pisinteropenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTaskInfo_Impl::IsInteropEnabled(this) { @@ -8281,7 +8281,7 @@ impl IPMTaskInfo_Vtbl { } } } - unsafe extern "system" fn SuppressesDehydration(this: *mut core::ffi::c_void, psuppressesdehydration: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SuppressesDehydration(this: *mut core::ffi::c_void, psuppressesdehydration: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTaskInfo_Impl::SuppressesDehydration(this) { @@ -8299,7 +8299,7 @@ impl IPMTaskInfo_Vtbl { IPMTaskInfo_Impl::BackgroundExecutionAbilities(this, core::mem::transmute_copy(&pbackgroundexecutionabilities)).into() } } - unsafe extern "system" fn IsOptedForExtendedMem(this: *mut core::ffi::c_void, pisoptedin: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsOptedForExtendedMem(this: *mut core::ffi::c_void, pisoptedin: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTaskInfo_Impl::IsOptedForExtendedMem(this) { @@ -8398,7 +8398,7 @@ impl IPMTileInfo { (windows_core::Interface::vtable(self).TemplateType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn get_HubPinnedState(&self, hubtype: PM_TILE_HUBTYPE) -> windows_core::Result { + pub unsafe fn get_HubPinnedState(&self, hubtype: PM_TILE_HUBTYPE) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).get_HubPinnedState)(windows_core::Interface::as_raw(self), hubtype, &mut result__).map(|| result__) @@ -8410,13 +8410,13 @@ impl IPMTileInfo { (windows_core::Interface::vtable(self).get_HubPosition)(windows_core::Interface::as_raw(self), hubtype, &mut result__).map(|| result__) } } - pub unsafe fn IsNotified(&self) -> windows_core::Result { + pub unsafe fn IsNotified(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsNotified)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsDefault(&self) -> windows_core::Result { + pub unsafe fn IsDefault(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsDefault)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -8431,7 +8431,7 @@ impl IPMTileInfo { (windows_core::Interface::vtable(self).TileType)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsThemable(&self) -> windows_core::Result { + pub unsafe fn IsThemable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsThemable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -8476,13 +8476,13 @@ impl IPMTileInfo { pub unsafe fn StartTileBlob(&self, pblob: *mut PM_STARTTILEBLOB) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).StartTileBlob)(windows_core::Interface::as_raw(self), core::mem::transmute(pblob)).ok() } } - pub unsafe fn IsRestoring(&self) -> windows_core::Result { + pub unsafe fn IsRestoring(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsRestoring)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsAutoRestoreDisabled(&self) -> windows_core::Result { + pub unsafe fn IsAutoRestoreDisabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsAutoRestoreDisabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -8501,53 +8501,53 @@ pub struct IPMTileInfo_Vtbl { pub ProductID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub TileID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TemplateType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut TILE_TEMPLATE_TYPE) -> windows_core::HRESULT, - pub get_HubPinnedState: unsafe extern "system" fn(*mut core::ffi::c_void, PM_TILE_HUBTYPE, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub get_HubPinnedState: unsafe extern "system" fn(*mut core::ffi::c_void, PM_TILE_HUBTYPE, *mut windows_core::BOOL) -> windows_core::HRESULT, pub get_HubPosition: unsafe extern "system" fn(*mut core::ffi::c_void, PM_TILE_HUBTYPE, *mut u32) -> windows_core::HRESULT, - pub IsNotified: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsDefault: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsNotified: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsDefault: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub TaskID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TileType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PM_STARTTILE_TYPE) -> windows_core::HRESULT, - pub IsThemable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsThemable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub get_PropertyById: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub get_InvocationInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub PropertyEnum: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub get_HubTileSize: unsafe extern "system" fn(*mut core::ffi::c_void, PM_TILE_HUBTYPE, *mut PM_TILE_SIZE) -> windows_core::HRESULT, pub set_HubPosition: unsafe extern "system" fn(*mut core::ffi::c_void, PM_TILE_HUBTYPE, u32) -> windows_core::HRESULT, - pub set_NotifiedState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub set_HubPinnedState: unsafe extern "system" fn(*mut core::ffi::c_void, PM_TILE_HUBTYPE, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub set_NotifiedState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub set_HubPinnedState: unsafe extern "system" fn(*mut core::ffi::c_void, PM_TILE_HUBTYPE, windows_core::BOOL) -> windows_core::HRESULT, pub set_HubTileSize: unsafe extern "system" fn(*mut core::ffi::c_void, PM_TILE_HUBTYPE, PM_TILE_SIZE) -> windows_core::HRESULT, pub set_InvocationInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub StartTileBlob: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PM_STARTTILEBLOB) -> windows_core::HRESULT, - pub IsRestoring: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsAutoRestoreDisabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub set_IsRestoring: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub set_IsAutoRestoreDisabled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsRestoring: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsAutoRestoreDisabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub set_IsRestoring: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub set_IsAutoRestoreDisabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IPMTileInfo_Impl: windows_core::IUnknownImpl { fn ProductID(&self) -> windows_core::Result; fn TileID(&self, ptileid: *mut windows_core::BSTR) -> windows_core::Result<()>; fn TemplateType(&self) -> windows_core::Result; - fn get_HubPinnedState(&self, hubtype: PM_TILE_HUBTYPE) -> windows_core::Result; + fn get_HubPinnedState(&self, hubtype: PM_TILE_HUBTYPE) -> windows_core::Result; fn get_HubPosition(&self, hubtype: PM_TILE_HUBTYPE) -> windows_core::Result; - fn IsNotified(&self) -> windows_core::Result; - fn IsDefault(&self) -> windows_core::Result; + fn IsNotified(&self) -> windows_core::Result; + fn IsDefault(&self) -> windows_core::Result; fn TaskID(&self, ptaskid: *mut windows_core::BSTR) -> windows_core::Result<()>; fn TileType(&self) -> windows_core::Result; - fn IsThemable(&self) -> windows_core::Result; + fn IsThemable(&self) -> windows_core::Result; fn get_PropertyById(&self, propid: u32) -> windows_core::Result; fn get_InvocationInfo(&self, pimageurn: *mut windows_core::BSTR, pparameters: *mut windows_core::BSTR) -> windows_core::Result<()>; fn PropertyEnum(&self) -> windows_core::Result; fn get_HubTileSize(&self, hubtype: PM_TILE_HUBTYPE) -> windows_core::Result; fn set_HubPosition(&self, hubtype: PM_TILE_HUBTYPE, position: u32) -> windows_core::Result<()>; - fn set_NotifiedState(&self, notified: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn set_HubPinnedState(&self, hubtype: PM_TILE_HUBTYPE, pinned: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn set_NotifiedState(&self, notified: windows_core::BOOL) -> windows_core::Result<()>; + fn set_HubPinnedState(&self, hubtype: PM_TILE_HUBTYPE, pinned: windows_core::BOOL) -> windows_core::Result<()>; fn set_HubTileSize(&self, hubtype: PM_TILE_HUBTYPE, size: PM_TILE_SIZE) -> windows_core::Result<()>; fn set_InvocationInfo(&self, taskname: &windows_core::BSTR, taskparameters: &windows_core::BSTR) -> windows_core::Result<()>; fn StartTileBlob(&self, pblob: *mut PM_STARTTILEBLOB) -> windows_core::Result<()>; - fn IsRestoring(&self) -> windows_core::Result; - fn IsAutoRestoreDisabled(&self) -> windows_core::Result; - fn set_IsRestoring(&self, restoring: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn set_IsAutoRestoreDisabled(&self, autorestoredisabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsRestoring(&self) -> windows_core::Result; + fn IsAutoRestoreDisabled(&self) -> windows_core::Result; + fn set_IsRestoring(&self, restoring: windows_core::BOOL) -> windows_core::Result<()>; + fn set_IsAutoRestoreDisabled(&self, autorestoredisabled: windows_core::BOOL) -> windows_core::Result<()>; } impl IPMTileInfo_Vtbl { pub const fn new() -> Self { @@ -8581,7 +8581,7 @@ impl IPMTileInfo_Vtbl { } } } - unsafe extern "system" fn get_HubPinnedState(this: *mut core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, ppinned: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn get_HubPinnedState(this: *mut core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, ppinned: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::get_HubPinnedState(this, core::mem::transmute_copy(&hubtype)) { @@ -8605,7 +8605,7 @@ impl IPMTileInfo_Vtbl { } } } - unsafe extern "system" fn IsNotified(this: *mut core::ffi::c_void, pisnotified: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsNotified(this: *mut core::ffi::c_void, pisnotified: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::IsNotified(this) { @@ -8617,7 +8617,7 @@ impl IPMTileInfo_Vtbl { } } } - unsafe extern "system" fn IsDefault(this: *mut core::ffi::c_void, pisdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsDefault(this: *mut core::ffi::c_void, pisdefault: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::IsDefault(this) { @@ -8647,7 +8647,7 @@ impl IPMTileInfo_Vtbl { } } } - unsafe extern "system" fn IsThemable(this: *mut core::ffi::c_void, pisthemable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsThemable(this: *mut core::ffi::c_void, pisthemable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::IsThemable(this) { @@ -8707,13 +8707,13 @@ impl IPMTileInfo_Vtbl { IPMTileInfo_Impl::set_HubPosition(this, core::mem::transmute_copy(&hubtype), core::mem::transmute_copy(&position)).into() } } - unsafe extern "system" fn set_NotifiedState(this: *mut core::ffi::c_void, notified: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn set_NotifiedState(this: *mut core::ffi::c_void, notified: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTileInfo_Impl::set_NotifiedState(this, core::mem::transmute_copy(¬ified)).into() } } - unsafe extern "system" fn set_HubPinnedState(this: *mut core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, pinned: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn set_HubPinnedState(this: *mut core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, pinned: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTileInfo_Impl::set_HubPinnedState(this, core::mem::transmute_copy(&hubtype), core::mem::transmute_copy(&pinned)).into() @@ -8737,7 +8737,7 @@ impl IPMTileInfo_Vtbl { IPMTileInfo_Impl::StartTileBlob(this, core::mem::transmute_copy(&pblob)).into() } } - unsafe extern "system" fn IsRestoring(this: *mut core::ffi::c_void, pisrestoring: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsRestoring(this: *mut core::ffi::c_void, pisrestoring: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::IsRestoring(this) { @@ -8749,7 +8749,7 @@ impl IPMTileInfo_Vtbl { } } } - unsafe extern "system" fn IsAutoRestoreDisabled(this: *mut core::ffi::c_void, pisautorestoredisabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsAutoRestoreDisabled(this: *mut core::ffi::c_void, pisautorestoredisabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPMTileInfo_Impl::IsAutoRestoreDisabled(this) { @@ -8761,13 +8761,13 @@ impl IPMTileInfo_Vtbl { } } } - unsafe extern "system" fn set_IsRestoring(this: *mut core::ffi::c_void, restoring: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn set_IsRestoring(this: *mut core::ffi::c_void, restoring: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTileInfo_Impl::set_IsRestoring(this, core::mem::transmute_copy(&restoring)).into() } } - unsafe extern "system" fn set_IsAutoRestoreDisabled(this: *mut core::ffi::c_void, autorestoredisabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn set_IsAutoRestoreDisabled(this: *mut core::ffi::c_void, autorestoredisabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPMTileInfo_Impl::set_IsAutoRestoreDisabled(this, core::mem::transmute_copy(&autorestoredisabled)).into() @@ -9295,8 +9295,8 @@ pub const LOGTOKEN_SETUPAPI_DEVLOG: u32 = 3u32; pub const LOGTOKEN_TYPE_MASK: u32 = 3u32; pub const LOGTOKEN_UNSPECIFIED: u32 = 0u32; pub const LOGWARN: u32 = 2u32; -pub type LPDISPLAYVAL = Option super::super::Foundation::BOOL>; -pub type LPEVALCOMCALLBACK = Option super::super::Foundation::BOOL>; +pub type LPDISPLAYVAL = Option windows_core::BOOL>; +pub type LPEVALCOMCALLBACK = Option windows_core::BOOL>; pub const MAX_FEATURE_CHARS: u32 = 38u32; pub const MAX_GUID_CHARS: u32 = 38u32; #[repr(transparent)] @@ -9948,7 +9948,7 @@ pub struct PM_INSTALLINFO { pub InstanceID: windows_core::GUID, pub pbLicense: *mut u8, pub cbLicense: u32, - pub IsUninstallDisabled: super::super::Foundation::BOOL, + pub IsUninstallDisabled: windows_core::BOOL, pub DeploymentOptions: u32, pub OfferID: windows_core::GUID, pub MarketplaceAppVersion: core::mem::ManuallyDrop, @@ -9990,12 +9990,12 @@ pub struct PM_STARTAPPBLOB { pub ProductID: windows_core::GUID, pub AppTitle: core::mem::ManuallyDrop, pub IconPath: core::mem::ManuallyDrop, - pub IsUninstallable: super::super::Foundation::BOOL, + pub IsUninstallable: windows_core::BOOL, pub AppInstallType: PM_APPLICATION_INSTALL_TYPE, pub InstanceID: windows_core::GUID, pub State: PM_APPLICATION_STATE, - pub IsModern: super::super::Foundation::BOOL, - pub IsModernLightUp: super::super::Foundation::BOOL, + pub IsModern: windows_core::BOOL, + pub IsModernLightUp: windows_core::BOOL, pub LightUpSupportMask: u16, } impl Default for PM_STARTAPPBLOB { @@ -10012,12 +10012,12 @@ pub struct PM_STARTTILEBLOB { pub TemplateType: TILE_TEMPLATE_TYPE, pub HubPosition: [u32; 32], pub HubVisibilityBitmask: u32, - pub IsDefault: super::super::Foundation::BOOL, + pub IsDefault: windows_core::BOOL, pub TileType: PM_STARTTILE_TYPE, pub pbPropBlob: *mut u8, pub cbPropBlob: u32, - pub IsRestoring: super::super::Foundation::BOOL, - pub IsModern: super::super::Foundation::BOOL, + pub IsRestoring: windows_core::BOOL, + pub IsModern: windows_core::BOOL, pub InvocationInfo: PM_INVOCATIONINFO, } impl Default for PM_STARTTILEBLOB { @@ -10116,8 +10116,8 @@ impl Default for PM_UPDATEINFO_LEGACY { unsafe { core::mem::zeroed() } } } -pub type PPATCH_PROGRESS_CALLBACK = Option super::super::Foundation::BOOL>; -pub type PPATCH_SYMLOAD_CALLBACK = Option super::super::Foundation::BOOL>; +pub type PPATCH_PROGRESS_CALLBACK = Option windows_core::BOOL>; +pub type PPATCH_SYMLOAD_CALLBACK = Option windows_core::BOOL>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct PROTECTED_FILE_DATA { 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 6ea4296d32..14e4dc50ee 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ClrHosting/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ClrHosting/mod.rs @@ -241,7 +241,7 @@ pub struct BucketParameterIndex(pub i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct BucketParameters { - pub fInited: super::super::Foundation::BOOL, + pub fInited: windows_core::BOOL, pub pszEventTypeName: [u16; 255], pub pszParams: [u16; 2550], } @@ -643,7 +643,7 @@ impl ICLRAssemblyIdentityManager { (windows_core::Interface::vtable(self).GetProbingAssembliesFromReference)(windows_core::Interface::as_raw(self), dwmachinetype, dwflags, pwzreferenceidentity.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn IsStronglyNamed(&self, pwzassemblyidentity: P0) -> windows_core::Result + pub unsafe fn IsStronglyNamed(&self, pwzassemblyidentity: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -668,7 +668,7 @@ pub struct ICLRAssemblyIdentityManager_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetReferencedAssembliesFromStream: usize, pub GetProbingAssembliesFromReference: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsStronglyNamed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsStronglyNamed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait ICLRAssemblyIdentityManager_Impl: windows_core::IUnknownImpl { @@ -678,7 +678,7 @@ pub trait ICLRAssemblyIdentityManager_Impl: windows_core::IUnknownImpl { fn GetReferencedAssembliesFromFile(&self, pwzfilepath: &windows_core::PCWSTR, dwflags: u32, pexcludeassemblieslist: windows_core::Ref) -> windows_core::Result; fn GetReferencedAssembliesFromStream(&self, pstream: windows_core::Ref, dwflags: u32, pexcludeassemblieslist: windows_core::Ref) -> windows_core::Result; fn GetProbingAssembliesFromReference(&self, dwmachinetype: u32, dwflags: u32, pwzreferenceidentity: &windows_core::PCWSTR) -> windows_core::Result; - fn IsStronglyNamed(&self, pwzassemblyidentity: &windows_core::PCWSTR) -> windows_core::Result; + fn IsStronglyNamed(&self, pwzassemblyidentity: &windows_core::PCWSTR) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl ICLRAssemblyIdentityManager_Vtbl { @@ -743,7 +743,7 @@ impl ICLRAssemblyIdentityManager_Vtbl { } } } - unsafe extern "system" fn IsStronglyNamed(this: *mut core::ffi::c_void, pwzassemblyidentity: windows_core::PCWSTR, pbisstronglynamed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsStronglyNamed(this: *mut core::ffi::c_void, pwzassemblyidentity: windows_core::PCWSTR, pbisstronglynamed: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRAssemblyIdentityManager_Impl::IsStronglyNamed(this, core::mem::transmute(&pwzassemblyidentity)) { @@ -898,7 +898,7 @@ impl ICLRDebugManager { (windows_core::Interface::vtable(self).GetDacl)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsDebuggerAttached(&self) -> windows_core::Result { + pub unsafe fn IsDebuggerAttached(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsDebuggerAttached)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -922,7 +922,7 @@ pub struct ICLRDebugManager_Vtbl { pub GetDacl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut super::super::Security::ACL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Security"))] GetDacl: usize, - pub IsDebuggerAttached: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsDebuggerAttached: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetSymbolReadingPolicy: unsafe extern "system" fn(*mut core::ffi::c_void, ESymbolReadingPolicy) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Security")] @@ -932,7 +932,7 @@ pub trait ICLRDebugManager_Impl: windows_core::IUnknownImpl { fn EndConnection(&self, dwconnectionid: u32) -> windows_core::Result<()>; fn SetDacl(&self, pacl: *const super::super::Security::ACL) -> windows_core::Result<()>; fn GetDacl(&self) -> windows_core::Result<*mut super::super::Security::ACL>; - fn IsDebuggerAttached(&self) -> windows_core::Result; + fn IsDebuggerAttached(&self) -> windows_core::Result; fn SetSymbolReadingPolicy(&self, policy: ESymbolReadingPolicy) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Security")] @@ -974,7 +974,7 @@ impl ICLRDebugManager_Vtbl { } } } - unsafe extern "system" fn IsDebuggerAttached(this: *mut core::ffi::c_void, pbattached: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsDebuggerAttached(this: *mut core::ffi::c_void, pbattached: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRDebugManager_Impl::IsDebuggerAttached(this) { @@ -1944,7 +1944,7 @@ pub struct ICLRRuntimeHost_Vtbl { pub Stop: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SetHostControl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetCLRControl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub UnloadAppDomain: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub UnloadAppDomain: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, pub ExecuteInAppDomain: unsafe extern "system" fn(*mut core::ffi::c_void, u32, FExecuteInAppDomainCallback, *const core::ffi::c_void) -> windows_core::HRESULT, pub GetCurrentAppDomainId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub ExecuteApplication: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *const windows_core::PCWSTR, u32, *const windows_core::PCWSTR, *mut i32) -> windows_core::HRESULT, @@ -1955,7 +1955,7 @@ pub trait ICLRRuntimeHost_Impl: windows_core::IUnknownImpl { fn Stop(&self) -> windows_core::Result<()>; fn SetHostControl(&self, phostcontrol: windows_core::Ref) -> windows_core::Result<()>; fn GetCLRControl(&self) -> windows_core::Result; - fn UnloadAppDomain(&self, dwappdomainid: u32, fwaituntildone: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn UnloadAppDomain(&self, dwappdomainid: u32, fwaituntildone: windows_core::BOOL) -> windows_core::Result<()>; fn ExecuteInAppDomain(&self, dwappdomainid: u32, pcallback: FExecuteInAppDomainCallback, cookie: *const core::ffi::c_void) -> windows_core::Result<()>; fn GetCurrentAppDomainId(&self) -> windows_core::Result; fn ExecuteApplication(&self, pwzappfullname: &windows_core::PCWSTR, dwmanifestpaths: u32, ppwzmanifestpaths: *const windows_core::PCWSTR, dwactivationdata: u32, ppwzactivationdata: *const windows_core::PCWSTR) -> windows_core::Result; @@ -1993,7 +1993,7 @@ impl ICLRRuntimeHost_Vtbl { } } } - unsafe extern "system" fn UnloadAppDomain(this: *mut core::ffi::c_void, dwappdomainid: u32, fwaituntildone: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn UnloadAppDomain(this: *mut core::ffi::c_void, dwappdomainid: u32, fwaituntildone: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRRuntimeHost_Impl::UnloadAppDomain(this, core::mem::transmute_copy(&dwappdomainid), core::mem::transmute_copy(&fwaituntildone)).into() @@ -2068,7 +2068,7 @@ impl ICLRRuntimeInfo { pub unsafe fn GetRuntimeDirectory(&self, pwzbuffer: windows_core::PWSTR, pcchbuffer: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetRuntimeDirectory)(windows_core::Interface::as_raw(self), core::mem::transmute(pwzbuffer), pcchbuffer as _).ok() } } - pub unsafe fn IsLoaded(&self, hndprocess: super::super::Foundation::HANDLE) -> windows_core::Result { + pub unsafe fn IsLoaded(&self, hndprocess: super::super::Foundation::HANDLE) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsLoaded)(windows_core::Interface::as_raw(self), hndprocess, &mut result__).map(|| result__) @@ -2102,7 +2102,7 @@ impl ICLRRuntimeInfo { let mut result__ = core::ptr::null_mut(); unsafe { (windows_core::Interface::vtable(self).GetInterface)(windows_core::Interface::as_raw(self), rclsid, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn IsLoadable(&self) -> windows_core::Result { + pub unsafe fn IsLoadable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsLoadable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2120,7 +2120,7 @@ impl ICLRRuntimeInfo { pub unsafe fn BindAsLegacyV2Runtime(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).BindAsLegacyV2Runtime)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn IsStarted(&self, pbstarted: *mut super::super::Foundation::BOOL, pdwstartupflags: *mut u32) -> windows_core::Result<()> { + pub unsafe fn IsStarted(&self, pbstarted: *mut windows_core::BOOL, pdwstartupflags: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsStarted)(windows_core::Interface::as_raw(self), pbstarted as _, pdwstartupflags as _).ok() } } } @@ -2129,30 +2129,30 @@ pub struct ICLRRuntimeInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetVersionString: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, *mut u32) -> windows_core::HRESULT, pub GetRuntimeDirectory: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, *mut u32) -> windows_core::HRESULT, - pub IsLoaded: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsLoaded: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, *mut windows_core::BOOL) -> windows_core::HRESULT, pub LoadErrorString: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PWSTR, *mut u32, i32) -> windows_core::HRESULT, pub LoadLibraryA: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::HMODULE) -> windows_core::HRESULT, pub GetProcAddress: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetInterface: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsLoadable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsLoadable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetDefaultStartupFlags: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR) -> windows_core::HRESULT, pub GetDefaultStartupFlags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, windows_core::PWSTR, *mut u32) -> windows_core::HRESULT, pub BindAsLegacyV2Runtime: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsStarted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut u32) -> windows_core::HRESULT, + pub IsStarted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut u32) -> windows_core::HRESULT, } pub trait ICLRRuntimeInfo_Impl: windows_core::IUnknownImpl { fn GetVersionString(&self, pwzbuffer: windows_core::PWSTR, pcchbuffer: *mut u32) -> windows_core::Result<()>; fn GetRuntimeDirectory(&self, pwzbuffer: windows_core::PWSTR, pcchbuffer: *mut u32) -> windows_core::Result<()>; - fn IsLoaded(&self, hndprocess: super::super::Foundation::HANDLE) -> windows_core::Result; + fn IsLoaded(&self, hndprocess: super::super::Foundation::HANDLE) -> windows_core::Result; fn LoadErrorString(&self, iresourceid: u32, pwzbuffer: windows_core::PWSTR, pcchbuffer: *mut u32, ilocaleid: i32) -> windows_core::Result<()>; fn LoadLibraryA(&self, pwzdllname: &windows_core::PCWSTR) -> windows_core::Result; fn GetProcAddress(&self, pszprocname: &windows_core::PCSTR) -> windows_core::Result<*mut core::ffi::c_void>; fn GetInterface(&self, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppunk: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; - fn IsLoadable(&self) -> windows_core::Result; + fn IsLoadable(&self) -> windows_core::Result; fn SetDefaultStartupFlags(&self, dwstartupflags: u32, pwzhostconfigfile: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetDefaultStartupFlags(&self, pdwstartupflags: *mut u32, pwzhostconfigfile: windows_core::PWSTR, pcchhostconfigfile: *mut u32) -> windows_core::Result<()>; fn BindAsLegacyV2Runtime(&self) -> windows_core::Result<()>; - fn IsStarted(&self, pbstarted: *mut super::super::Foundation::BOOL, pdwstartupflags: *mut u32) -> windows_core::Result<()>; + fn IsStarted(&self, pbstarted: *mut windows_core::BOOL, pdwstartupflags: *mut u32) -> windows_core::Result<()>; } impl ICLRRuntimeInfo_Vtbl { pub const fn new() -> Self { @@ -2168,7 +2168,7 @@ impl ICLRRuntimeInfo_Vtbl { ICLRRuntimeInfo_Impl::GetRuntimeDirectory(this, core::mem::transmute_copy(&pwzbuffer), core::mem::transmute_copy(&pcchbuffer)).into() } } - unsafe extern "system" fn IsLoaded(this: *mut core::ffi::c_void, hndprocess: super::super::Foundation::HANDLE, pbloaded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsLoaded(this: *mut core::ffi::c_void, hndprocess: super::super::Foundation::HANDLE, pbloaded: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRRuntimeInfo_Impl::IsLoaded(this, core::mem::transmute_copy(&hndprocess)) { @@ -2216,7 +2216,7 @@ impl ICLRRuntimeInfo_Vtbl { ICLRRuntimeInfo_Impl::GetInterface(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppunk)).into() } } - unsafe extern "system" fn IsLoadable(this: *mut core::ffi::c_void, pbloadable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsLoadable(this: *mut core::ffi::c_void, pbloadable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRRuntimeInfo_Impl::IsLoadable(this) { @@ -2246,7 +2246,7 @@ impl ICLRRuntimeInfo_Vtbl { ICLRRuntimeInfo_Impl::BindAsLegacyV2Runtime(this).into() } } - unsafe extern "system" fn IsStarted(this: *mut core::ffi::c_void, pbstarted: *mut super::super::Foundation::BOOL, pdwstartupflags: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn IsStarted(this: *mut core::ffi::c_void, pbstarted: *mut windows_core::BOOL, pdwstartupflags: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRRuntimeInfo_Impl::IsStarted(this, core::mem::transmute_copy(&pbstarted), core::mem::transmute_copy(&pdwstartupflags)).into() @@ -2942,7 +2942,7 @@ impl ICLRTask { pub unsafe fn RudeAbort(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).RudeAbort)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn NeedsPriorityScheduling(&self) -> windows_core::Result { + pub unsafe fn NeedsPriorityScheduling(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).NeedsPriorityScheduling)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2967,11 +2967,11 @@ pub struct ICLRTask_Vtbl { pub SwitchIn: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE) -> windows_core::HRESULT, pub SwitchOut: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetMemStats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut COR_GC_THREAD_STATS) -> windows_core::HRESULT, - pub Reset: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Reset: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub ExitTask: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Abort: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub RudeAbort: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub NeedsPriorityScheduling: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub NeedsPriorityScheduling: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub YieldTask: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub LocksHeld: unsafe extern "system" fn(*mut core::ffi::c_void, *mut usize) -> windows_core::HRESULT, pub SetTaskIdentifier: unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, @@ -2980,11 +2980,11 @@ pub trait ICLRTask_Impl: windows_core::IUnknownImpl { fn SwitchIn(&self, threadhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn SwitchOut(&self) -> windows_core::Result<()>; fn GetMemStats(&self) -> windows_core::Result; - fn Reset(&self, ffull: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Reset(&self, ffull: windows_core::BOOL) -> windows_core::Result<()>; fn ExitTask(&self) -> windows_core::Result<()>; fn Abort(&self) -> windows_core::Result<()>; fn RudeAbort(&self) -> windows_core::Result<()>; - fn NeedsPriorityScheduling(&self) -> windows_core::Result; + fn NeedsPriorityScheduling(&self) -> windows_core::Result; fn YieldTask(&self) -> windows_core::Result<()>; fn LocksHeld(&self) -> windows_core::Result; fn SetTaskIdentifier(&self, asked: u64) -> windows_core::Result<()>; @@ -3015,7 +3015,7 @@ impl ICLRTask_Vtbl { } } } - unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, ffull: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Reset(this: *mut core::ffi::c_void, ffull: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICLRTask_Impl::Reset(this, core::mem::transmute_copy(&ffull)).into() @@ -3039,7 +3039,7 @@ impl ICLRTask_Vtbl { ICLRTask_Impl::RudeAbort(this).into() } } - unsafe extern "system" fn NeedsPriorityScheduling(this: *mut core::ffi::c_void, pbneedspriorityscheduling: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn NeedsPriorityScheduling(this: *mut core::ffi::c_void, pbneedspriorityscheduling: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICLRTask_Impl::NeedsPriorityScheduling(this) { @@ -3741,39 +3741,39 @@ windows_core::imp::define_interface!(ICorThreadpool, ICorThreadpool_Vtbl, 0x8468 windows_core::imp::interface_hierarchy!(ICorThreadpool, windows_core::IUnknown); impl ICorThreadpool { #[cfg(feature = "Win32_System_Threading")] - pub unsafe fn CorRegisterWaitForSingleObject(&self, phnewwaitobject: *const super::super::Foundation::HANDLE, hwaitobject: super::super::Foundation::HANDLE, callback: super::Threading::WAITORTIMERCALLBACK, context: *const core::ffi::c_void, timeout: u32, executeonlyonce: bool) -> windows_core::Result { + pub unsafe fn CorRegisterWaitForSingleObject(&self, phnewwaitobject: *const super::super::Foundation::HANDLE, hwaitobject: super::super::Foundation::HANDLE, callback: super::Threading::WAITORTIMERCALLBACK, context: *const core::ffi::c_void, timeout: u32, executeonlyonce: bool) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CorRegisterWaitForSingleObject)(windows_core::Interface::as_raw(self), phnewwaitobject, hwaitobject, callback, context, timeout, executeonlyonce.into(), &mut result__).map(|| result__) } } - pub unsafe fn CorUnregisterWait(&self, hwaitobject: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE) -> windows_core::Result { + pub unsafe fn CorUnregisterWait(&self, hwaitobject: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CorUnregisterWait)(windows_core::Interface::as_raw(self), hwaitobject, completionevent, &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Threading")] - pub unsafe fn CorQueueUserWorkItem(&self, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void, executeonlyonce: bool) -> windows_core::Result { + pub unsafe fn CorQueueUserWorkItem(&self, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void, executeonlyonce: bool) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CorQueueUserWorkItem)(windows_core::Interface::as_raw(self), function, context, executeonlyonce.into(), &mut result__).map(|| result__) } } #[cfg(feature = "Win32_System_Threading")] - pub unsafe fn CorCreateTimer(&self, phnewtimer: *const super::super::Foundation::HANDLE, callback: super::Threading::WAITORTIMERCALLBACK, parameter: *const core::ffi::c_void, duetime: u32, period: u32) -> windows_core::Result { + pub unsafe fn CorCreateTimer(&self, phnewtimer: *const super::super::Foundation::HANDLE, callback: super::Threading::WAITORTIMERCALLBACK, parameter: *const core::ffi::c_void, duetime: u32, period: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CorCreateTimer)(windows_core::Interface::as_raw(self), phnewtimer, callback, parameter, duetime, period, &mut result__).map(|| result__) } } - pub unsafe fn CorChangeTimer(&self, timer: super::super::Foundation::HANDLE, duetime: u32, period: u32) -> windows_core::Result { + pub unsafe fn CorChangeTimer(&self, timer: super::super::Foundation::HANDLE, duetime: u32, period: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CorChangeTimer)(windows_core::Interface::as_raw(self), timer, duetime, period, &mut result__).map(|| result__) } } - pub unsafe fn CorDeleteTimer(&self, timer: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE) -> windows_core::Result { + pub unsafe fn CorDeleteTimer(&self, timer: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CorDeleteTimer)(windows_core::Interface::as_raw(self), timer, completionevent, &mut result__).map(|| result__) @@ -3784,7 +3784,7 @@ impl ICorThreadpool { unsafe { (windows_core::Interface::vtable(self).CorBindIoCompletionCallback)(windows_core::Interface::as_raw(self), filehandle, callback).ok() } } #[cfg(feature = "Win32_System_Threading")] - pub unsafe fn CorCallOrQueueUserWorkItem(&self, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void) -> windows_core::Result { + pub unsafe fn CorCallOrQueueUserWorkItem(&self, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CorCallOrQueueUserWorkItem)(windows_core::Interface::as_raw(self), function, context, &mut result__).map(|| result__) @@ -3804,26 +3804,26 @@ impl ICorThreadpool { pub struct ICorThreadpool_Vtbl { pub base__: windows_core::IUnknown_Vtbl, #[cfg(feature = "Win32_System_Threading")] - pub CorRegisterWaitForSingleObject: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::HANDLE, super::super::Foundation::HANDLE, super::Threading::WAITORTIMERCALLBACK, *const core::ffi::c_void, u32, super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CorRegisterWaitForSingleObject: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::HANDLE, super::super::Foundation::HANDLE, super::Threading::WAITORTIMERCALLBACK, *const core::ffi::c_void, u32, windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Threading"))] CorRegisterWaitForSingleObject: usize, - pub CorUnregisterWait: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, super::super::Foundation::HANDLE, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CorUnregisterWait: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, super::super::Foundation::HANDLE, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Threading")] - pub CorQueueUserWorkItem: unsafe extern "system" fn(*mut core::ffi::c_void, super::Threading::LPTHREAD_START_ROUTINE, *const core::ffi::c_void, super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CorQueueUserWorkItem: unsafe extern "system" fn(*mut core::ffi::c_void, super::Threading::LPTHREAD_START_ROUTINE, *const core::ffi::c_void, windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Threading"))] CorQueueUserWorkItem: usize, #[cfg(feature = "Win32_System_Threading")] - pub CorCreateTimer: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::HANDLE, super::Threading::WAITORTIMERCALLBACK, *const core::ffi::c_void, u32, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CorCreateTimer: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::HANDLE, super::Threading::WAITORTIMERCALLBACK, *const core::ffi::c_void, u32, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Threading"))] CorCreateTimer: usize, - pub CorChangeTimer: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, u32, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CorDeleteTimer: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, super::super::Foundation::HANDLE, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CorChangeTimer: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, u32, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CorDeleteTimer: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, super::super::Foundation::HANDLE, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_IO")] pub CorBindIoCompletionCallback: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE, super::IO::LPOVERLAPPED_COMPLETION_ROUTINE) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_IO"))] CorBindIoCompletionCallback: usize, #[cfg(feature = "Win32_System_Threading")] - pub CorCallOrQueueUserWorkItem: unsafe extern "system" fn(*mut core::ffi::c_void, super::Threading::LPTHREAD_START_ROUTINE, *const core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CorCallOrQueueUserWorkItem: unsafe extern "system" fn(*mut core::ffi::c_void, super::Threading::LPTHREAD_START_ROUTINE, *const core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Threading"))] CorCallOrQueueUserWorkItem: usize, pub CorSetMaxThreads: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, @@ -3832,14 +3832,14 @@ pub struct ICorThreadpool_Vtbl { } #[cfg(all(feature = "Win32_System_IO", feature = "Win32_System_Threading"))] pub trait ICorThreadpool_Impl: windows_core::IUnknownImpl { - fn CorRegisterWaitForSingleObject(&self, phnewwaitobject: *const super::super::Foundation::HANDLE, hwaitobject: super::super::Foundation::HANDLE, callback: super::Threading::WAITORTIMERCALLBACK, context: *const core::ffi::c_void, timeout: u32, executeonlyonce: super::super::Foundation::BOOL) -> windows_core::Result; - fn CorUnregisterWait(&self, hwaitobject: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE) -> windows_core::Result; - fn CorQueueUserWorkItem(&self, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void, executeonlyonce: super::super::Foundation::BOOL) -> windows_core::Result; - fn CorCreateTimer(&self, phnewtimer: *const super::super::Foundation::HANDLE, callback: super::Threading::WAITORTIMERCALLBACK, parameter: *const core::ffi::c_void, duetime: u32, period: u32) -> windows_core::Result; - fn CorChangeTimer(&self, timer: super::super::Foundation::HANDLE, duetime: u32, period: u32) -> windows_core::Result; - fn CorDeleteTimer(&self, timer: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE) -> windows_core::Result; + fn CorRegisterWaitForSingleObject(&self, phnewwaitobject: *const super::super::Foundation::HANDLE, hwaitobject: super::super::Foundation::HANDLE, callback: super::Threading::WAITORTIMERCALLBACK, context: *const core::ffi::c_void, timeout: u32, executeonlyonce: windows_core::BOOL) -> windows_core::Result; + fn CorUnregisterWait(&self, hwaitobject: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE) -> windows_core::Result; + fn CorQueueUserWorkItem(&self, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void, executeonlyonce: windows_core::BOOL) -> windows_core::Result; + fn CorCreateTimer(&self, phnewtimer: *const super::super::Foundation::HANDLE, callback: super::Threading::WAITORTIMERCALLBACK, parameter: *const core::ffi::c_void, duetime: u32, period: u32) -> windows_core::Result; + fn CorChangeTimer(&self, timer: super::super::Foundation::HANDLE, duetime: u32, period: u32) -> windows_core::Result; + fn CorDeleteTimer(&self, timer: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE) -> windows_core::Result; fn CorBindIoCompletionCallback(&self, filehandle: super::super::Foundation::HANDLE, callback: super::IO::LPOVERLAPPED_COMPLETION_ROUTINE) -> windows_core::Result<()>; - fn CorCallOrQueueUserWorkItem(&self, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void) -> windows_core::Result; + fn CorCallOrQueueUserWorkItem(&self, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void) -> windows_core::Result; fn CorSetMaxThreads(&self, maxworkerthreads: u32, maxiocompletionthreads: u32) -> windows_core::Result<()>; fn CorGetMaxThreads(&self, maxworkerthreads: *mut u32, maxiocompletionthreads: *mut u32) -> windows_core::Result<()>; fn CorGetAvailableThreads(&self, availableworkerthreads: *mut u32, availableiocompletionthreads: *mut u32) -> windows_core::Result<()>; @@ -3847,7 +3847,7 @@ pub trait ICorThreadpool_Impl: windows_core::IUnknownImpl { #[cfg(all(feature = "Win32_System_IO", feature = "Win32_System_Threading"))] impl ICorThreadpool_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CorRegisterWaitForSingleObject(this: *mut core::ffi::c_void, phnewwaitobject: *const super::super::Foundation::HANDLE, hwaitobject: super::super::Foundation::HANDLE, callback: super::Threading::WAITORTIMERCALLBACK, context: *const core::ffi::c_void, timeout: u32, executeonlyonce: super::super::Foundation::BOOL, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CorRegisterWaitForSingleObject(this: *mut core::ffi::c_void, phnewwaitobject: *const super::super::Foundation::HANDLE, hwaitobject: super::super::Foundation::HANDLE, callback: super::Threading::WAITORTIMERCALLBACK, context: *const core::ffi::c_void, timeout: u32, executeonlyonce: windows_core::BOOL, result: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorThreadpool_Impl::CorRegisterWaitForSingleObject(this, core::mem::transmute_copy(&phnewwaitobject), core::mem::transmute_copy(&hwaitobject), core::mem::transmute_copy(&callback), core::mem::transmute_copy(&context), core::mem::transmute_copy(&timeout), core::mem::transmute_copy(&executeonlyonce)) { @@ -3859,7 +3859,7 @@ impl ICorThreadpool_Vtbl { } } } - unsafe extern "system" fn CorUnregisterWait(this: *mut core::ffi::c_void, hwaitobject: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CorUnregisterWait(this: *mut core::ffi::c_void, hwaitobject: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE, result: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorThreadpool_Impl::CorUnregisterWait(this, core::mem::transmute_copy(&hwaitobject), core::mem::transmute_copy(&completionevent)) { @@ -3871,7 +3871,7 @@ impl ICorThreadpool_Vtbl { } } } - unsafe extern "system" fn CorQueueUserWorkItem(this: *mut core::ffi::c_void, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void, executeonlyonce: super::super::Foundation::BOOL, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CorQueueUserWorkItem(this: *mut core::ffi::c_void, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void, executeonlyonce: windows_core::BOOL, result: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorThreadpool_Impl::CorQueueUserWorkItem(this, core::mem::transmute_copy(&function), core::mem::transmute_copy(&context), core::mem::transmute_copy(&executeonlyonce)) { @@ -3883,7 +3883,7 @@ impl ICorThreadpool_Vtbl { } } } - unsafe extern "system" fn CorCreateTimer(this: *mut core::ffi::c_void, phnewtimer: *const super::super::Foundation::HANDLE, callback: super::Threading::WAITORTIMERCALLBACK, parameter: *const core::ffi::c_void, duetime: u32, period: u32, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CorCreateTimer(this: *mut core::ffi::c_void, phnewtimer: *const super::super::Foundation::HANDLE, callback: super::Threading::WAITORTIMERCALLBACK, parameter: *const core::ffi::c_void, duetime: u32, period: u32, result: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorThreadpool_Impl::CorCreateTimer(this, core::mem::transmute_copy(&phnewtimer), core::mem::transmute_copy(&callback), core::mem::transmute_copy(¶meter), core::mem::transmute_copy(&duetime), core::mem::transmute_copy(&period)) { @@ -3895,7 +3895,7 @@ impl ICorThreadpool_Vtbl { } } } - unsafe extern "system" fn CorChangeTimer(this: *mut core::ffi::c_void, timer: super::super::Foundation::HANDLE, duetime: u32, period: u32, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CorChangeTimer(this: *mut core::ffi::c_void, timer: super::super::Foundation::HANDLE, duetime: u32, period: u32, result: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorThreadpool_Impl::CorChangeTimer(this, core::mem::transmute_copy(&timer), core::mem::transmute_copy(&duetime), core::mem::transmute_copy(&period)) { @@ -3907,7 +3907,7 @@ impl ICorThreadpool_Vtbl { } } } - unsafe extern "system" fn CorDeleteTimer(this: *mut core::ffi::c_void, timer: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CorDeleteTimer(this: *mut core::ffi::c_void, timer: super::super::Foundation::HANDLE, completionevent: super::super::Foundation::HANDLE, result: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorThreadpool_Impl::CorDeleteTimer(this, core::mem::transmute_copy(&timer), core::mem::transmute_copy(&completionevent)) { @@ -3925,7 +3925,7 @@ impl ICorThreadpool_Vtbl { ICorThreadpool_Impl::CorBindIoCompletionCallback(this, core::mem::transmute_copy(&filehandle), core::mem::transmute_copy(&callback)).into() } } - unsafe extern "system" fn CorCallOrQueueUserWorkItem(this: *mut core::ffi::c_void, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void, result: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CorCallOrQueueUserWorkItem(this: *mut core::ffi::c_void, function: super::Threading::LPTHREAD_START_ROUTINE, context: *const core::ffi::c_void, result: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorThreadpool_Impl::CorCallOrQueueUserWorkItem(this, core::mem::transmute_copy(&function), core::mem::transmute_copy(&context)) { @@ -3979,7 +3979,7 @@ impl windows_core::RuntimeName for ICorThreadpool {} windows_core::imp::define_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 { + pub unsafe fn IsDebuggerAttached(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsDebuggerAttached)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3989,14 +3989,14 @@ impl IDebuggerInfo { #[repr(C)] pub struct IDebuggerInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsDebuggerAttached: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsDebuggerAttached: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IDebuggerInfo_Impl: windows_core::IUnknownImpl { - fn IsDebuggerAttached(&self) -> windows_core::Result; + fn IsDebuggerAttached(&self) -> windows_core::Result; } impl IDebuggerInfo_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsDebuggerAttached(this: *mut core::ffi::c_void, pbattached: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsDebuggerAttached(this: *mut core::ffi::c_void, pbattached: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebuggerInfo_Impl::IsDebuggerAttached(this) { @@ -4493,7 +4493,7 @@ impl IHostCrst { pub unsafe fn Leave(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Leave)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn TryEnter(&self, option: u32) -> windows_core::Result { + pub unsafe fn TryEnter(&self, option: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).TryEnter)(windows_core::Interface::as_raw(self), option, &mut result__).map(|| result__) @@ -4508,13 +4508,13 @@ pub struct IHostCrst_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Enter: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub Leave: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub TryEnter: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub TryEnter: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetSpinCount: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, } pub trait IHostCrst_Impl: windows_core::IUnknownImpl { fn Enter(&self, option: u32) -> windows_core::Result<()>; fn Leave(&self) -> windows_core::Result<()>; - fn TryEnter(&self, option: u32) -> windows_core::Result; + fn TryEnter(&self, option: u32) -> windows_core::Result; fn SetSpinCount(&self, dwspincount: u32) -> windows_core::Result<()>; } impl IHostCrst_Vtbl { @@ -4531,7 +4531,7 @@ impl IHostCrst_Vtbl { IHostCrst_Impl::Leave(this).into() } } - unsafe extern "system" fn TryEnter(this: *mut core::ffi::c_void, option: u32, pbsucceeded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn TryEnter(this: *mut core::ffi::c_void, option: u32, pbsucceeded: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostCrst_Impl::TryEnter(this, core::mem::transmute_copy(&option)) { @@ -5228,7 +5228,7 @@ pub struct IHostSecurityManager_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub ImpersonateLoggedOnUser: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE) -> windows_core::HRESULT, pub RevertToSelf: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub OpenThreadToken: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL, *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT, + pub OpenThreadToken: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL, *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT, pub SetThreadToken: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE) -> windows_core::HRESULT, pub GetSecurityContext: unsafe extern "system" fn(*mut core::ffi::c_void, EContextType, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetSecurityContext: unsafe extern "system" fn(*mut core::ffi::c_void, EContextType, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -5236,7 +5236,7 @@ pub struct IHostSecurityManager_Vtbl { pub trait IHostSecurityManager_Impl: windows_core::IUnknownImpl { fn ImpersonateLoggedOnUser(&self, htoken: super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn RevertToSelf(&self) -> windows_core::Result<()>; - fn OpenThreadToken(&self, dwdesiredaccess: u32, bopenasself: super::super::Foundation::BOOL) -> windows_core::Result; + fn OpenThreadToken(&self, dwdesiredaccess: u32, bopenasself: windows_core::BOOL) -> windows_core::Result; fn SetThreadToken(&self, htoken: super::super::Foundation::HANDLE) -> windows_core::Result<()>; fn GetSecurityContext(&self, econtexttype: EContextType) -> windows_core::Result; fn SetSecurityContext(&self, econtexttype: EContextType, psecuritycontext: windows_core::Ref) -> windows_core::Result<()>; @@ -5255,7 +5255,7 @@ impl IHostSecurityManager_Vtbl { IHostSecurityManager_Impl::RevertToSelf(this).into() } } - unsafe extern "system" fn OpenThreadToken(this: *mut core::ffi::c_void, dwdesiredaccess: u32, bopenasself: super::super::Foundation::BOOL, phthreadtoken: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { + unsafe extern "system" fn OpenThreadToken(this: *mut core::ffi::c_void, dwdesiredaccess: u32, bopenasself: windows_core::BOOL, phthreadtoken: *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostSecurityManager_Impl::OpenThreadToken(this, core::mem::transmute_copy(&dwdesiredaccess), core::mem::transmute_copy(&bopenasself)) { @@ -5425,10 +5425,10 @@ pub struct IHostSyncManager_Vtbl { pub CreateCrst: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateCrstWithSpinCount: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateAutoEvent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CreateManualEvent: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateManualEvent: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateMonitorEvent: unsafe extern "system" fn(*mut core::ffi::c_void, usize, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateRWLockWriterEvent: unsafe extern "system" fn(*mut core::ffi::c_void, usize, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CreateRWLockReaderEvent: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, usize, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateRWLockReaderEvent: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, usize, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateSemaphoreA: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IHostSyncManager_Impl: windows_core::IUnknownImpl { @@ -5436,10 +5436,10 @@ pub trait IHostSyncManager_Impl: windows_core::IUnknownImpl { fn CreateCrst(&self) -> windows_core::Result; fn CreateCrstWithSpinCount(&self, dwspincount: u32) -> windows_core::Result; fn CreateAutoEvent(&self) -> windows_core::Result; - fn CreateManualEvent(&self, binitialstate: super::super::Foundation::BOOL) -> windows_core::Result; + fn CreateManualEvent(&self, binitialstate: windows_core::BOOL) -> windows_core::Result; fn CreateMonitorEvent(&self, cookie: usize) -> windows_core::Result; fn CreateRWLockWriterEvent(&self, cookie: usize) -> windows_core::Result; - fn CreateRWLockReaderEvent(&self, binitialstate: super::super::Foundation::BOOL, cookie: usize) -> windows_core::Result; + fn CreateRWLockReaderEvent(&self, binitialstate: windows_core::BOOL, cookie: usize) -> windows_core::Result; fn CreateSemaphoreA(&self, dwinitial: u32, dwmax: u32) -> windows_core::Result; } impl IHostSyncManager_Vtbl { @@ -5486,7 +5486,7 @@ impl IHostSyncManager_Vtbl { } } } - unsafe extern "system" fn CreateManualEvent(this: *mut core::ffi::c_void, binitialstate: super::super::Foundation::BOOL, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateManualEvent(this: *mut core::ffi::c_void, binitialstate: windows_core::BOOL, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostSyncManager_Impl::CreateManualEvent(this, core::mem::transmute_copy(&binitialstate)) { @@ -5522,7 +5522,7 @@ impl IHostSyncManager_Vtbl { } } } - unsafe extern "system" fn CreateRWLockReaderEvent(this: *mut core::ffi::c_void, binitialstate: super::super::Foundation::BOOL, cookie: usize, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateRWLockReaderEvent(this: *mut core::ffi::c_void, binitialstate: windows_core::BOOL, cookie: usize, ppevent: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostSyncManager_Impl::CreateRWLockReaderEvent(this, core::mem::transmute_copy(&binitialstate), core::mem::transmute_copy(&cookie)) { @@ -5697,7 +5697,7 @@ impl IHostTaskManager { pub unsafe fn SetLocale(&self, lcid: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetLocale)(windows_core::Interface::as_raw(self), lcid).ok() } } - pub unsafe fn CallNeedsHostHook(&self, target: usize) -> windows_core::Result { + pub unsafe fn CallNeedsHostHook(&self, target: usize) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CallNeedsHostHook)(windows_core::Interface::as_raw(self), target, &mut result__).map(|| result__) @@ -5755,7 +5755,7 @@ pub struct IHostTaskManager_Vtbl { pub SwitchToTask: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub SetUILocale: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub SetLocale: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub CallNeedsHostHook: unsafe extern "system" fn(*mut core::ffi::c_void, usize, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CallNeedsHostHook: unsafe extern "system" fn(*mut core::ffi::c_void, usize, *mut windows_core::BOOL) -> windows_core::HRESULT, pub LeaveRuntime: unsafe extern "system" fn(*mut core::ffi::c_void, usize) -> windows_core::HRESULT, pub EnterRuntime: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub ReverseLeaveRuntime: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -5776,7 +5776,7 @@ pub trait IHostTaskManager_Impl: windows_core::IUnknownImpl { fn SwitchToTask(&self, option: u32) -> windows_core::Result<()>; fn SetUILocale(&self, lcid: u32) -> windows_core::Result<()>; fn SetLocale(&self, lcid: u32) -> windows_core::Result<()>; - fn CallNeedsHostHook(&self, target: usize) -> windows_core::Result; + fn CallNeedsHostHook(&self, target: usize) -> windows_core::Result; fn LeaveRuntime(&self, target: usize) -> windows_core::Result<()>; fn EnterRuntime(&self) -> windows_core::Result<()>; fn ReverseLeaveRuntime(&self) -> windows_core::Result<()>; @@ -5840,7 +5840,7 @@ impl IHostTaskManager_Vtbl { IHostTaskManager_Impl::SetLocale(this, core::mem::transmute_copy(&lcid)).into() } } - unsafe extern "system" fn CallNeedsHostHook(this: *mut core::ffi::c_void, target: usize, pbcallneedshosthook: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CallNeedsHostHook(this: *mut core::ffi::c_void, target: usize, pbcallneedshosthook: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHostTaskManager_Impl::CallNeedsHostHook(this, core::mem::transmute_copy(&target)) { 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 798437e63a..2f438fb086 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 @@ -19,10 +19,10 @@ where #[derive(Clone, Copy, Debug, PartialEq)] pub struct CALLFRAMEINFO { pub iMethod: u32, - pub fHasInValues: super::super::super::Foundation::BOOL, - pub fHasInOutValues: super::super::super::Foundation::BOOL, - pub fHasOutValues: super::super::super::Foundation::BOOL, - pub fDerivesFromIDispatch: super::super::super::Foundation::BOOL, + pub fHasInValues: windows_core::BOOL, + pub fHasInOutValues: windows_core::BOOL, + pub fHasOutValues: windows_core::BOOL, + pub fDerivesFromIDispatch: windows_core::BOOL, pub cInInterfacesMax: i32, pub cInOutInterfacesMax: i32, pub cOutInterfacesMax: i32, @@ -454,14 +454,14 @@ impl ICallFrameWalker { #[repr(C)] pub struct ICallFrameWalker_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnWalkInterface: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const *const core::ffi::c_void, super::super::super::Foundation::BOOL, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnWalkInterface: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const *const core::ffi::c_void, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, } pub trait ICallFrameWalker_Impl: windows_core::IUnknownImpl { - fn OnWalkInterface(&self, iid: *const windows_core::GUID, ppvinterface: *const *const core::ffi::c_void, fin: super::super::super::Foundation::BOOL, fout: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnWalkInterface(&self, iid: *const windows_core::GUID, ppvinterface: *const *const core::ffi::c_void, fin: windows_core::BOOL, fout: windows_core::BOOL) -> windows_core::Result<()>; } impl ICallFrameWalker_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnWalkInterface(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, ppvinterface: *const *const core::ffi::c_void, fin: super::super::super::Foundation::BOOL, fout: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnWalkInterface(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, ppvinterface: *const *const core::ffi::c_void, fin: windows_core::BOOL, fout: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallFrameWalker_Impl::OnWalkInterface(this, core::mem::transmute_copy(&iid), core::mem::transmute_copy(&ppvinterface), core::mem::transmute_copy(&fin), core::mem::transmute_copy(&fout)).into() @@ -489,7 +489,7 @@ impl ICallIndirect { (windows_core::Interface::vtable(self).GetStackSize)(windows_core::Interface::as_raw(self), imethod, &mut result__).map(|| result__) } } - pub unsafe fn GetIID(&self, piid: Option<*mut windows_core::GUID>, pfderivesfromidispatch: Option<*mut super::super::super::Foundation::BOOL>, pcmethod: Option<*mut u32>, pwszinterface: *mut windows_core::PWSTR) -> windows_core::Result<()> { + pub unsafe fn GetIID(&self, piid: Option<*mut windows_core::GUID>, pfderivesfromidispatch: Option<*mut windows_core::BOOL>, pcmethod: Option<*mut u32>, pwszinterface: *mut windows_core::PWSTR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetIID)(windows_core::Interface::as_raw(self), piid.unwrap_or(core::mem::zeroed()) as _, pfderivesfromidispatch.unwrap_or(core::mem::zeroed()) as _, pcmethod.unwrap_or(core::mem::zeroed()) as _, pwszinterface as _).ok() } } } @@ -499,13 +499,13 @@ pub struct ICallIndirect_Vtbl { pub CallIndirect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT, u32, *const core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetMethodInfo: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut CALLFRAMEINFO, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetStackSize: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, - pub GetIID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID, *mut super::super::super::Foundation::BOOL, *mut u32, *mut windows_core::PWSTR) -> windows_core::HRESULT, + pub GetIID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID, *mut windows_core::BOOL, *mut u32, *mut windows_core::PWSTR) -> windows_core::HRESULT, } pub trait ICallIndirect_Impl: windows_core::IUnknownImpl { fn CallIndirect(&self, phrreturn: *mut windows_core::HRESULT, imethod: u32, pvargs: *const core::ffi::c_void, cbargs: *mut u32) -> windows_core::Result<()>; fn GetMethodInfo(&self, imethod: u32, pinfo: *mut CALLFRAMEINFO, pwszmethod: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn GetStackSize(&self, imethod: u32) -> windows_core::Result; - fn GetIID(&self, piid: *mut windows_core::GUID, pfderivesfromidispatch: *mut super::super::super::Foundation::BOOL, pcmethod: *mut u32, pwszinterface: *mut windows_core::PWSTR) -> windows_core::Result<()>; + fn GetIID(&self, piid: *mut windows_core::GUID, pfderivesfromidispatch: *mut windows_core::BOOL, pcmethod: *mut u32, pwszinterface: *mut windows_core::PWSTR) -> windows_core::Result<()>; } impl ICallIndirect_Vtbl { pub const fn new() -> Self { @@ -533,7 +533,7 @@ impl ICallIndirect_Vtbl { } } } - unsafe extern "system" fn GetIID(this: *mut core::ffi::c_void, piid: *mut windows_core::GUID, pfderivesfromidispatch: *mut super::super::super::Foundation::BOOL, pcmethod: *mut u32, pwszinterface: *mut windows_core::PWSTR) -> windows_core::HRESULT { + unsafe extern "system" fn GetIID(this: *mut core::ffi::c_void, piid: *mut windows_core::GUID, pfderivesfromidispatch: *mut windows_core::BOOL, pcmethod: *mut u32, pwszinterface: *mut windows_core::PWSTR) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallIndirect_Impl::GetIID(this, core::mem::transmute_copy(&piid), core::mem::transmute_copy(&pfderivesfromidispatch), core::mem::transmute_copy(&pcmethod), core::mem::transmute_copy(&pwszinterface)).into() @@ -628,16 +628,16 @@ impl ICallUnmarshal { #[repr(C)] pub struct ICallUnmarshal_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Unmarshal: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const core::ffi::c_void, u32, super::super::super::Foundation::BOOL, u32, *const CALLFRAME_MARSHALCONTEXT, *mut u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub Unmarshal: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const core::ffi::c_void, u32, windows_core::BOOL, u32, *const CALLFRAME_MARSHALCONTEXT, *mut u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ReleaseMarshalData: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const core::ffi::c_void, u32, u32, u32, *const CALLFRAME_MARSHALCONTEXT) -> windows_core::HRESULT, } pub trait ICallUnmarshal_Impl: windows_core::IUnknownImpl { - fn Unmarshal(&self, imethod: u32, pbuffer: *const core::ffi::c_void, cbbuffer: u32, fforcebuffercopy: super::super::super::Foundation::BOOL, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT, pcbunmarshalled: *mut u32, ppframe: windows_core::OutRef<'_, ICallFrame>) -> windows_core::Result<()>; + fn Unmarshal(&self, imethod: u32, pbuffer: *const core::ffi::c_void, cbbuffer: u32, fforcebuffercopy: windows_core::BOOL, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT, pcbunmarshalled: *mut u32, ppframe: windows_core::OutRef<'_, ICallFrame>) -> windows_core::Result<()>; fn ReleaseMarshalData(&self, imethod: u32, pbuffer: *const core::ffi::c_void, cbbuffer: u32, ibfirstrelease: u32, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT) -> windows_core::Result<()>; } impl ICallUnmarshal_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Unmarshal(this: *mut core::ffi::c_void, imethod: u32, pbuffer: *const core::ffi::c_void, cbbuffer: u32, fforcebuffercopy: super::super::super::Foundation::BOOL, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT, pcbunmarshalled: *mut u32, ppframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn Unmarshal(this: *mut core::ffi::c_void, imethod: u32, pbuffer: *const core::ffi::c_void, cbbuffer: u32, fforcebuffercopy: windows_core::BOOL, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT, pcbunmarshalled: *mut u32, ppframe: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICallUnmarshal_Impl::Unmarshal(this, core::mem::transmute_copy(&imethod), core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&cbbuffer), core::mem::transmute_copy(&fforcebuffercopy), core::mem::transmute_copy(&datarep), core::mem::transmute_copy(&pcontext), core::mem::transmute_copy(&pcbunmarshalled), core::mem::transmute_copy(&ppframe)).into() 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 c50c14f9d2..dc7ba31983 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 @@ -43,7 +43,7 @@ impl IChannelCredentials { #[repr(C)] pub struct IChannelCredentials_Vtbl { pub base__: super::IDispatch_Vtbl, - pub SetWindowsCredential: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, i32, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetWindowsCredential: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, i32, windows_core::BOOL) -> windows_core::HRESULT, pub SetUserNameCredential: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub SetClientCertificateFromStore: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Variant::VARIANT) -> windows_core::HRESULT, @@ -62,7 +62,7 @@ pub struct IChannelCredentials_Vtbl { } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IChannelCredentials_Impl: super::IDispatch_Impl { - fn SetWindowsCredential(&self, domain: &windows_core::BSTR, username: &windows_core::BSTR, password: &windows_core::BSTR, impersonationlevel: i32, allowntlm: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetWindowsCredential(&self, domain: &windows_core::BSTR, username: &windows_core::BSTR, password: &windows_core::BSTR, impersonationlevel: i32, allowntlm: windows_core::BOOL) -> windows_core::Result<()>; fn SetUserNameCredential(&self, username: &windows_core::BSTR, password: &windows_core::BSTR) -> windows_core::Result<()>; fn SetClientCertificateFromStore(&self, storelocation: &windows_core::BSTR, storename: &windows_core::BSTR, findyype: &windows_core::BSTR, findvalue: &super::super::Variant::VARIANT) -> windows_core::Result<()>; fn SetClientCertificateFromStoreByName(&self, subjectname: &windows_core::BSTR, storelocation: &windows_core::BSTR, storename: &windows_core::BSTR) -> windows_core::Result<()>; @@ -76,7 +76,7 @@ pub trait IChannelCredentials_Impl: super::IDispatch_Impl { #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IChannelCredentials_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetWindowsCredential(this: *mut core::ffi::c_void, domain: *mut core::ffi::c_void, username: *mut core::ffi::c_void, password: *mut core::ffi::c_void, impersonationlevel: i32, allowntlm: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetWindowsCredential(this: *mut core::ffi::c_void, domain: *mut core::ffi::c_void, username: *mut core::ffi::c_void, password: *mut core::ffi::c_void, impersonationlevel: i32, allowntlm: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IChannelCredentials_Impl::SetWindowsCredential(this, core::mem::transmute(&domain), core::mem::transmute(&username), core::mem::transmute(&password), core::mem::transmute_copy(&impersonationlevel), core::mem::transmute_copy(&allowntlm)).into() 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 d36f0d4b10..f5ec11993d 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 @@ -407,7 +407,7 @@ impl IEventClass2 { pub unsafe fn SetMultiInterfacePublisherFilterCLSID(&self, bstrpubfilclsid: &windows_core::BSTR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetMultiInterfacePublisherFilterCLSID)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrpubfilclsid)).ok() } } - pub unsafe fn AllowInprocActivation(&self) -> windows_core::Result { + pub unsafe fn AllowInprocActivation(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AllowInprocActivation)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -416,7 +416,7 @@ impl IEventClass2 { pub unsafe fn SetAllowInprocActivation(&self, fallowinprocactivation: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetAllowInprocActivation)(windows_core::Interface::as_raw(self), fallowinprocactivation.into()).ok() } } - pub unsafe fn FireInParallel(&self) -> windows_core::Result { + pub unsafe fn FireInParallel(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FireInParallel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -433,10 +433,10 @@ pub struct IEventClass2_Vtbl { pub SetPublisherID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub MultiInterfacePublisherFilterCLSID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetMultiInterfacePublisherFilterCLSID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub AllowInprocActivation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetAllowInprocActivation: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub FireInParallel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetFireInParallel: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AllowInprocActivation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetAllowInprocActivation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub FireInParallel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetFireInParallel: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IEventClass2_Impl: IEventClass_Impl { @@ -444,10 +444,10 @@ pub trait IEventClass2_Impl: IEventClass_Impl { fn SetPublisherID(&self, bstrpublisherid: &windows_core::BSTR) -> windows_core::Result<()>; fn MultiInterfacePublisherFilterCLSID(&self) -> windows_core::Result; fn SetMultiInterfacePublisherFilterCLSID(&self, bstrpubfilclsid: &windows_core::BSTR) -> windows_core::Result<()>; - fn AllowInprocActivation(&self) -> windows_core::Result; - fn SetAllowInprocActivation(&self, fallowinprocactivation: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn FireInParallel(&self) -> windows_core::Result; - fn SetFireInParallel(&self, ffireinparallel: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn AllowInprocActivation(&self) -> windows_core::Result; + fn SetAllowInprocActivation(&self, fallowinprocactivation: windows_core::BOOL) -> windows_core::Result<()>; + fn FireInParallel(&self) -> windows_core::Result; + fn SetFireInParallel(&self, ffireinparallel: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IEventClass2_Vtbl { @@ -488,7 +488,7 @@ impl IEventClass2_Vtbl { IEventClass2_Impl::SetMultiInterfacePublisherFilterCLSID(this, core::mem::transmute(&bstrpubfilclsid)).into() } } - unsafe extern "system" fn AllowInprocActivation(this: *mut core::ffi::c_void, pfallowinprocactivation: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AllowInprocActivation(this: *mut core::ffi::c_void, pfallowinprocactivation: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventClass2_Impl::AllowInprocActivation(this) { @@ -500,13 +500,13 @@ impl IEventClass2_Vtbl { } } } - unsafe extern "system" fn SetAllowInprocActivation(this: *mut core::ffi::c_void, fallowinprocactivation: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAllowInprocActivation(this: *mut core::ffi::c_void, fallowinprocactivation: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventClass2_Impl::SetAllowInprocActivation(this, core::mem::transmute_copy(&fallowinprocactivation)).into() } } - unsafe extern "system" fn FireInParallel(this: *mut core::ffi::c_void, pffireinparallel: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn FireInParallel(this: *mut core::ffi::c_void, pffireinparallel: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventClass2_Impl::FireInParallel(this) { @@ -518,7 +518,7 @@ impl IEventClass2_Vtbl { } } } - unsafe extern "system" fn SetFireInParallel(this: *mut core::ffi::c_void, ffireinparallel: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetFireInParallel(this: *mut core::ffi::c_void, ffireinparallel: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventClass2_Impl::SetFireInParallel(this, core::mem::transmute_copy(&ffireinparallel)).into() @@ -557,7 +557,7 @@ impl IEventControl { { unsafe { (windows_core::Interface::vtable(self).SetPublisherFilter)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(methodname), ppublisherfilter.param().abi()).ok() } } - pub unsafe fn AllowInprocActivation(&self) -> windows_core::Result { + pub unsafe fn AllowInprocActivation(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AllowInprocActivation)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -583,16 +583,16 @@ impl IEventControl { pub struct IEventControl_Vtbl { pub base__: super::IDispatch_Vtbl, pub SetPublisherFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub AllowInprocActivation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetAllowInprocActivation: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AllowInprocActivation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetAllowInprocActivation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetSubscriptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *const i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDefaultQuery: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IEventControl_Impl: super::IDispatch_Impl { fn SetPublisherFilter(&self, methodname: &windows_core::BSTR, ppublisherfilter: windows_core::Ref) -> windows_core::Result<()>; - fn AllowInprocActivation(&self) -> windows_core::Result; - fn SetAllowInprocActivation(&self, fallowinprocactivation: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn AllowInprocActivation(&self) -> windows_core::Result; + fn SetAllowInprocActivation(&self, fallowinprocactivation: windows_core::BOOL) -> windows_core::Result<()>; fn GetSubscriptions(&self, methodname: &windows_core::BSTR, optionalcriteria: &windows_core::BSTR, optionalerrorindex: *const i32) -> windows_core::Result; fn SetDefaultQuery(&self, methodname: &windows_core::BSTR, criteria: &windows_core::BSTR) -> windows_core::Result; } @@ -605,7 +605,7 @@ impl IEventControl_Vtbl { IEventControl_Impl::SetPublisherFilter(this, core::mem::transmute(&methodname), core::mem::transmute_copy(&ppublisherfilter)).into() } } - unsafe extern "system" fn AllowInprocActivation(this: *mut core::ffi::c_void, pfallowinprocactivation: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AllowInprocActivation(this: *mut core::ffi::c_void, pfallowinprocactivation: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventControl_Impl::AllowInprocActivation(this) { @@ -617,7 +617,7 @@ impl IEventControl_Vtbl { } } } - unsafe extern "system" fn SetAllowInprocActivation(this: *mut core::ffi::c_void, fallowinprocactivation: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAllowInprocActivation(this: *mut core::ffi::c_void, fallowinprocactivation: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventControl_Impl::SetAllowInprocActivation(this, core::mem::transmute_copy(&fallowinprocactivation)).into() @@ -1358,7 +1358,7 @@ impl IEventSubscription { { unsafe { (windows_core::Interface::vtable(self).SetSubscriberInterface)(windows_core::Interface::as_raw(self), psubscriberinterface.param().abi()).ok() } } - pub unsafe fn PerUser(&self) -> windows_core::Result { + pub unsafe fn PerUser(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PerUser)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1376,7 +1376,7 @@ impl IEventSubscription { pub unsafe fn SetOwnerSID(&self, bstrownersid: &windows_core::BSTR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetOwnerSID)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrownersid)).ok() } } - pub unsafe fn Enabled(&self) -> windows_core::Result { + pub unsafe fn Enabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1470,12 +1470,12 @@ pub struct IEventSubscription_Vtbl { pub SetSubscriberCLSID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SubscriberInterface: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetSubscriberInterface: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub PerUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetPerUser: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub PerUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetPerUser: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub OwnerSID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetOwnerSID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Enabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Enabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub Description: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub MachineName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1519,12 +1519,12 @@ pub trait IEventSubscription_Impl: super::IDispatch_Impl { fn SetSubscriberCLSID(&self, bstrsubscriberclsid: &windows_core::BSTR) -> windows_core::Result<()>; fn SubscriberInterface(&self) -> windows_core::Result; fn SetSubscriberInterface(&self, psubscriberinterface: windows_core::Ref) -> windows_core::Result<()>; - fn PerUser(&self) -> windows_core::Result; - fn SetPerUser(&self, fperuser: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn PerUser(&self) -> windows_core::Result; + fn SetPerUser(&self, fperuser: windows_core::BOOL) -> windows_core::Result<()>; fn OwnerSID(&self) -> windows_core::Result; fn SetOwnerSID(&self, bstrownersid: &windows_core::BSTR) -> windows_core::Result<()>; - fn Enabled(&self) -> windows_core::Result; - fn SetEnabled(&self, fenabled: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Enabled(&self) -> windows_core::Result; + fn SetEnabled(&self, fenabled: windows_core::BOOL) -> windows_core::Result<()>; fn Description(&self) -> windows_core::Result; fn SetDescription(&self, bstrdescription: &windows_core::BSTR) -> windows_core::Result<()>; fn MachineName(&self) -> windows_core::Result; @@ -1669,7 +1669,7 @@ impl IEventSubscription_Vtbl { IEventSubscription_Impl::SetSubscriberInterface(this, core::mem::transmute_copy(&psubscriberinterface)).into() } } - unsafe extern "system" fn PerUser(this: *mut core::ffi::c_void, pfperuser: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn PerUser(this: *mut core::ffi::c_void, pfperuser: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::PerUser(this) { @@ -1681,7 +1681,7 @@ impl IEventSubscription_Vtbl { } } } - unsafe extern "system" fn SetPerUser(this: *mut core::ffi::c_void, fperuser: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetPerUser(this: *mut core::ffi::c_void, fperuser: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::SetPerUser(this, core::mem::transmute_copy(&fperuser)).into() @@ -1705,7 +1705,7 @@ impl IEventSubscription_Vtbl { IEventSubscription_Impl::SetOwnerSID(this, core::mem::transmute(&bstrownersid)).into() } } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pfenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEventSubscription_Impl::Enabled(this) { @@ -1717,7 +1717,7 @@ impl IEventSubscription_Vtbl { } } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, fenabled: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, fenabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IEventSubscription_Impl::SetEnabled(this, core::mem::transmute_copy(&fenabled)).into() @@ -2097,7 +2097,7 @@ impl IMultiInterfaceEventControl { (windows_core::Interface::vtable(self).SetDefaultQuery)(windows_core::Interface::as_raw(self), eventiid, core::mem::transmute_copy(bstrmethodname), core::mem::transmute_copy(bstrcriteria), &mut result__).map(|| result__) } } - pub unsafe fn AllowInprocActivation(&self) -> windows_core::Result { + pub unsafe fn AllowInprocActivation(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AllowInprocActivation)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2106,7 +2106,7 @@ impl IMultiInterfaceEventControl { pub unsafe fn SetAllowInprocActivation(&self, fallowinprocactivation: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetAllowInprocActivation)(windows_core::Interface::as_raw(self), fallowinprocactivation.into()).ok() } } - pub unsafe fn FireInParallel(&self) -> windows_core::Result { + pub unsafe fn FireInParallel(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FireInParallel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2122,19 +2122,19 @@ pub struct IMultiInterfaceEventControl_Vtbl { pub SetMultiInterfacePublisherFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSubscriptions: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut core::ffi::c_void, *mut core::ffi::c_void, *const i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDefaultQuery: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - pub AllowInprocActivation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetAllowInprocActivation: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub FireInParallel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetFireInParallel: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AllowInprocActivation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetAllowInprocActivation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub FireInParallel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetFireInParallel: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IMultiInterfaceEventControl_Impl: windows_core::IUnknownImpl { fn SetMultiInterfacePublisherFilter(&self, classfilter: windows_core::Ref) -> windows_core::Result<()>; fn GetSubscriptions(&self, eventiid: *const windows_core::GUID, bstrmethodname: &windows_core::BSTR, optionalcriteria: &windows_core::BSTR, optionalerrorindex: *const i32) -> windows_core::Result; fn SetDefaultQuery(&self, eventiid: *const windows_core::GUID, bstrmethodname: &windows_core::BSTR, bstrcriteria: &windows_core::BSTR) -> windows_core::Result; - fn AllowInprocActivation(&self) -> windows_core::Result; - fn SetAllowInprocActivation(&self, fallowinprocactivation: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn FireInParallel(&self) -> windows_core::Result; - fn SetFireInParallel(&self, ffireinparallel: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn AllowInprocActivation(&self) -> windows_core::Result; + fn SetAllowInprocActivation(&self, fallowinprocactivation: windows_core::BOOL) -> windows_core::Result<()>; + fn FireInParallel(&self) -> windows_core::Result; + fn SetFireInParallel(&self, ffireinparallel: windows_core::BOOL) -> windows_core::Result<()>; } impl IMultiInterfaceEventControl_Vtbl { pub const fn new() -> Self { @@ -2168,7 +2168,7 @@ impl IMultiInterfaceEventControl_Vtbl { } } } - unsafe extern "system" fn AllowInprocActivation(this: *mut core::ffi::c_void, pfallowinprocactivation: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AllowInprocActivation(this: *mut core::ffi::c_void, pfallowinprocactivation: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiInterfaceEventControl_Impl::AllowInprocActivation(this) { @@ -2180,13 +2180,13 @@ impl IMultiInterfaceEventControl_Vtbl { } } } - unsafe extern "system" fn SetAllowInprocActivation(this: *mut core::ffi::c_void, fallowinprocactivation: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAllowInprocActivation(this: *mut core::ffi::c_void, fallowinprocactivation: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiInterfaceEventControl_Impl::SetAllowInprocActivation(this, core::mem::transmute_copy(&fallowinprocactivation)).into() } } - unsafe extern "system" fn FireInParallel(this: *mut core::ffi::c_void, pffireinparallel: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn FireInParallel(this: *mut core::ffi::c_void, pffireinparallel: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMultiInterfaceEventControl_Impl::FireInParallel(this) { @@ -2198,7 +2198,7 @@ impl IMultiInterfaceEventControl_Vtbl { } } } - unsafe extern "system" fn SetFireInParallel(this: *mut core::ffi::c_void, ffireinparallel: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetFireInParallel(this: *mut core::ffi::c_void, ffireinparallel: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMultiInterfaceEventControl_Impl::SetFireInParallel(this, core::mem::transmute_copy(&ffireinparallel)).into() 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 86322be861..0f3e711f05 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 @@ -34,7 +34,7 @@ where } #[inline] pub unsafe fn CreateILockBytesOnHGlobal(hglobal: Option, fdeleteonrelease: bool) -> windows_core::Result { - windows_targets::link!("ole32.dll" "system" fn CreateILockBytesOnHGlobal(hglobal : super::super::super::Foundation:: HGLOBAL, fdeleteonrelease : super::super::super::Foundation:: BOOL, pplkbyt : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("ole32.dll" "system" fn CreateILockBytesOnHGlobal(hglobal : super::super::super::Foundation:: HGLOBAL, fdeleteonrelease : windows_core::BOOL, pplkbyt : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); CreateILockBytesOnHGlobal(hglobal.unwrap_or(core::mem::zeroed()) as _, fdeleteonrelease.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -42,7 +42,7 @@ pub unsafe fn CreateILockBytesOnHGlobal(hglobal: Option windows_core::Result { - windows_targets::link!("ole32.dll" "system" fn CreateStreamOnHGlobal(hglobal : super::super::super::Foundation:: HGLOBAL, fdeleteonrelease : super::super::super::Foundation:: BOOL, ppstm : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("ole32.dll" "system" fn CreateStreamOnHGlobal(hglobal : super::super::super::Foundation:: HGLOBAL, fdeleteonrelease : windows_core::BOOL, ppstm : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); CreateStreamOnHGlobal(hglobal, fdeleteonrelease.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -91,8 +91,8 @@ where } #[cfg(feature = "Win32_System_Variant")] #[inline] -pub unsafe fn InitPropVariantFromBooleanVector(prgf: Option<&[super::super::super::Foundation::BOOL]>) -> windows_core::Result { - windows_targets::link!("propsys.dll" "system" fn InitPropVariantFromBooleanVector(prgf : *const super::super::super::Foundation:: BOOL, celems : u32, ppropvar : *mut PROPVARIANT) -> windows_core::HRESULT); +pub unsafe fn InitPropVariantFromBooleanVector(prgf: Option<&[windows_core::BOOL]>) -> windows_core::Result { + windows_targets::link!("propsys.dll" "system" fn InitPropVariantFromBooleanVector(prgf : *const windows_core::BOOL, celems : u32, ppropvar : *mut PROPVARIANT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); InitPropVariantFromBooleanVector(core::mem::transmute(prgf.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), prgf.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).map(|| core::mem::transmute(result__)) @@ -331,8 +331,8 @@ pub unsafe fn PropVariantCopy(pvardest: *mut PROPVARIANT, pvarsrc: *const PROPVA } #[cfg(feature = "Win32_System_Variant")] #[inline] -pub unsafe fn PropVariantGetBooleanElem(propvar: *const PROPVARIANT, ielem: u32) -> windows_core::Result { - windows_targets::link!("propsys.dll" "system" fn PropVariantGetBooleanElem(propvar : *const PROPVARIANT, ielem : u32, pfval : *mut super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn PropVariantGetBooleanElem(propvar: *const PROPVARIANT, ielem: u32) -> windows_core::Result { + windows_targets::link!("propsys.dll" "system" fn PropVariantGetBooleanElem(propvar : *const PROPVARIANT, ielem : u32, pfval : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); PropVariantGetBooleanElem(core::mem::transmute(propvar), ielem, &mut result__).map(|| core::mem::transmute(result__)) @@ -436,8 +436,8 @@ pub unsafe fn PropVariantToBSTR(propvar: *const PROPVARIANT) -> windows_core::Re } #[cfg(feature = "Win32_System_Variant")] #[inline] -pub unsafe fn PropVariantToBoolean(propvarin: *const PROPVARIANT) -> windows_core::Result { - windows_targets::link!("propsys.dll" "system" fn PropVariantToBoolean(propvarin : *const PROPVARIANT, pfret : *mut super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn PropVariantToBoolean(propvarin: *const PROPVARIANT) -> windows_core::Result { + windows_targets::link!("propsys.dll" "system" fn PropVariantToBoolean(propvarin : *const PROPVARIANT, pfret : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); PropVariantToBoolean(core::mem::transmute(propvarin), &mut result__).map(|| core::mem::transmute(result__)) @@ -445,20 +445,20 @@ pub unsafe fn PropVariantToBoolean(propvarin: *const PROPVARIANT) -> windows_cor } #[cfg(feature = "Win32_System_Variant")] #[inline] -pub unsafe fn PropVariantToBooleanVector(propvar: *const PROPVARIANT, prgf: &mut [super::super::super::Foundation::BOOL], pcelem: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("propsys.dll" "system" fn PropVariantToBooleanVector(propvar : *const PROPVARIANT, prgf : *mut super::super::super::Foundation:: BOOL, crgf : u32, pcelem : *mut u32) -> windows_core::HRESULT); +pub unsafe fn PropVariantToBooleanVector(propvar: *const PROPVARIANT, prgf: &mut [windows_core::BOOL], pcelem: *mut u32) -> windows_core::Result<()> { + windows_targets::link!("propsys.dll" "system" fn PropVariantToBooleanVector(propvar : *const PROPVARIANT, prgf : *mut windows_core::BOOL, crgf : u32, pcelem : *mut u32) -> windows_core::HRESULT); unsafe { PropVariantToBooleanVector(core::mem::transmute(propvar), core::mem::transmute(prgf.as_ptr()), prgf.len().try_into().unwrap(), pcelem as _).ok() } } #[cfg(feature = "Win32_System_Variant")] #[inline] -pub unsafe fn PropVariantToBooleanVectorAlloc(propvar: *const PROPVARIANT, pprgf: *mut *mut super::super::super::Foundation::BOOL, pcelem: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("propsys.dll" "system" fn PropVariantToBooleanVectorAlloc(propvar : *const PROPVARIANT, pprgf : *mut *mut super::super::super::Foundation:: BOOL, pcelem : *mut u32) -> windows_core::HRESULT); +pub unsafe fn PropVariantToBooleanVectorAlloc(propvar: *const PROPVARIANT, pprgf: *mut *mut windows_core::BOOL, pcelem: *mut u32) -> windows_core::Result<()> { + windows_targets::link!("propsys.dll" "system" fn PropVariantToBooleanVectorAlloc(propvar : *const PROPVARIANT, pprgf : *mut *mut windows_core::BOOL, pcelem : *mut u32) -> windows_core::HRESULT); unsafe { PropVariantToBooleanVectorAlloc(core::mem::transmute(propvar), pprgf as _, pcelem as _).ok() } } #[cfg(feature = "Win32_System_Variant")] #[inline] -pub unsafe fn PropVariantToBooleanWithDefault(propvarin: *const PROPVARIANT, fdefault: bool) -> super::super::super::Foundation::BOOL { - windows_targets::link!("propsys.dll" "system" fn PropVariantToBooleanWithDefault(propvarin : *const PROPVARIANT, fdefault : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); +pub unsafe fn PropVariantToBooleanWithDefault(propvarin: *const PROPVARIANT, fdefault: bool) -> windows_core::BOOL { + windows_targets::link!("propsys.dll" "system" fn PropVariantToBooleanWithDefault(propvarin : *const PROPVARIANT, fdefault : windows_core::BOOL) -> windows_core::BOOL); unsafe { PropVariantToBooleanWithDefault(core::mem::transmute(propvarin), fdefault.into()) } } #[cfg(feature = "Win32_System_Variant")] @@ -776,7 +776,7 @@ pub unsafe fn SetConvertStg(pstg: P0, fconvert: bool) -> windows_core::Resul where P0: windows_core::Param, { - windows_targets::link!("ole32.dll" "system" fn SetConvertStg(pstg : * mut core::ffi::c_void, fconvert : super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("ole32.dll" "system" fn SetConvertStg(pstg : * mut core::ffi::c_void, fconvert : windows_core::BOOL) -> windows_core::HRESULT); unsafe { SetConvertStg(pstg.param().abi(), fconvert.into()).ok() } } #[cfg(feature = "Win32_System_Variant")] @@ -1620,13 +1620,13 @@ pub struct IFillLockBytes_Vtbl { pub FillAppend: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, pub FillAt: unsafe extern "system" fn(*mut core::ffi::c_void, u64, *const core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, pub SetFillSize: unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, - pub Terminate: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Terminate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IFillLockBytes_Impl: windows_core::IUnknownImpl { fn FillAppend(&self, pv: *const core::ffi::c_void, cb: u32) -> windows_core::Result; fn FillAt(&self, uloffset: u64, pv: *const core::ffi::c_void, cb: u32) -> windows_core::Result; fn SetFillSize(&self, ulsize: u64) -> windows_core::Result<()>; - fn Terminate(&self, bcanceled: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Terminate(&self, bcanceled: windows_core::BOOL) -> windows_core::Result<()>; } impl IFillLockBytes_Vtbl { pub const fn new() -> Self { @@ -1660,7 +1660,7 @@ impl IFillLockBytes_Vtbl { IFillLockBytes_Impl::SetFillSize(this, core::mem::transmute_copy(&ulsize)).into() } } - unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void, bcanceled: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Terminate(this: *mut core::ffi::c_void, bcanceled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFillLockBytes_Impl::Terminate(this, core::mem::transmute_copy(&bcanceled)).into() @@ -1965,7 +1965,7 @@ pub struct IPersistStorage_Vtbl { pub IsDirty: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub InitNew: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Load: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SaveCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub HandsOffStorage: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -1973,7 +1973,7 @@ pub trait IPersistStorage_Impl: super::IPersist_Impl { fn IsDirty(&self) -> windows_core::HRESULT; fn InitNew(&self, pstg: windows_core::Ref) -> windows_core::Result<()>; fn Load(&self, pstg: windows_core::Ref) -> windows_core::Result<()>; - fn Save(&self, pstgsave: windows_core::Ref, fsameasload: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Save(&self, pstgsave: windows_core::Ref, fsameasload: windows_core::BOOL) -> windows_core::Result<()>; fn SaveCompleted(&self, pstgnew: windows_core::Ref) -> windows_core::Result<()>; fn HandsOffStorage(&self) -> windows_core::Result<()>; } @@ -1997,7 +1997,7 @@ impl IPersistStorage_Vtbl { IPersistStorage_Impl::Load(this, core::mem::transmute_copy(&pstg)).into() } } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pstgsave: *mut core::ffi::c_void, fsameasload: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pstgsave: *mut core::ffi::c_void, fsameasload: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistStorage_Impl::Save(this, core::mem::transmute_copy(&pstgsave), core::mem::transmute_copy(&fsameasload)).into() 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 2dca611ed4..710853ec78 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 @@ -148,7 +148,7 @@ where } #[inline] pub unsafe fn CoInternetSetFeatureEnabled(featureentry: INTERNETFEATURELIST, dwflags: u32, fenable: bool) -> windows_core::Result<()> { - windows_targets::link!("urlmon.dll" "system" fn CoInternetSetFeatureEnabled(featureentry : INTERNETFEATURELIST, dwflags : u32, fenable : super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("urlmon.dll" "system" fn CoInternetSetFeatureEnabled(featureentry : INTERNETFEATURELIST, dwflags : u32, fenable : windows_core::BOOL) -> windows_core::HRESULT); unsafe { CoInternetSetFeatureEnabled(featureentry, dwflags, fenable.into()).ok() } } #[inline] @@ -393,19 +393,19 @@ where unsafe { IsAsyncMoniker(pmk.param().abi()).ok() } } #[inline] -pub unsafe fn IsLoggingEnabledA(pszurl: P0) -> super::super::super::Foundation::BOOL +pub unsafe fn IsLoggingEnabledA(pszurl: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("urlmon.dll" "system" fn IsLoggingEnabledA(pszurl : windows_core::PCSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("urlmon.dll" "system" fn IsLoggingEnabledA(pszurl : windows_core::PCSTR) -> windows_core::BOOL); unsafe { IsLoggingEnabledA(pszurl.param().abi()) } } #[inline] -pub unsafe fn IsLoggingEnabledW(pwszurl: P0) -> super::super::super::Foundation::BOOL +pub unsafe fn IsLoggingEnabledW(pwszurl: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("urlmon.dll" "system" fn IsLoggingEnabledW(pwszurl : windows_core::PCWSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("urlmon.dll" "system" fn IsLoggingEnabledW(pwszurl : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { IsLoggingEnabledW(pwszurl.param().abi()) } } #[inline] @@ -612,8 +612,8 @@ pub unsafe fn UrlMkSetSessionOption(dwoption: u32, pbuffer: Option<*const core:: unsafe { UrlMkSetSessionOption(dwoption, pbuffer.unwrap_or(core::mem::zeroed()) as _, dwbufferlength, dwreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn WriteHitLogging(lplogginginfo: *const HIT_LOGGING_INFO) -> super::super::super::Foundation::BOOL { - windows_targets::link!("urlmon.dll" "system" fn WriteHitLogging(lplogginginfo : *const HIT_LOGGING_INFO) -> super::super::super::Foundation:: BOOL); +pub unsafe fn WriteHitLogging(lplogginginfo: *const HIT_LOGGING_INFO) -> windows_core::BOOL { + windows_targets::link!("urlmon.dll" "system" fn WriteHitLogging(lplogginginfo : *const HIT_LOGGING_INFO) -> windows_core::BOOL); unsafe { WriteHitLogging(lplogginginfo) } } #[repr(transparent)] @@ -2490,11 +2490,11 @@ impl IInternetSecurityMgrSite { pub struct IInternetSecurityMgrSite_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetWindow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT, - pub EnableModeless: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableModeless: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IInternetSecurityMgrSite_Impl: windows_core::IUnknownImpl { fn GetWindow(&self) -> windows_core::Result; - fn EnableModeless(&self, fenable: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EnableModeless(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; } impl IInternetSecurityMgrSite_Vtbl { pub const fn new() -> Self { @@ -2510,7 +2510,7 @@ impl IInternetSecurityMgrSite_Vtbl { } } } - unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetSecurityMgrSite_Impl::EnableModeless(this, core::mem::transmute_copy(&fenable)).into() @@ -2939,10 +2939,10 @@ impl IInternetZoneManagerEx2 { pub unsafe fn GetZoneAttributesEx(&self, dwzone: u32, pzoneattributes: *mut ZONEATTRIBUTES, dwflags: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetZoneAttributesEx)(windows_core::Interface::as_raw(self), dwzone, pzoneattributes as _, dwflags).ok() } } - pub unsafe fn GetZoneSecurityState(&self, dwzoneindex: u32, frespectpolicy: bool, pdwstate: *mut u32, pfpolicyencountered: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetZoneSecurityState(&self, dwzoneindex: u32, frespectpolicy: bool, pdwstate: *mut u32, pfpolicyencountered: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetZoneSecurityState)(windows_core::Interface::as_raw(self), dwzoneindex, frespectpolicy.into(), pdwstate as _, pfpolicyencountered as _).ok() } } - pub unsafe fn GetIESecurityState(&self, frespectpolicy: bool, pdwstate: *mut u32, pfpolicyencountered: *mut super::super::super::Foundation::BOOL, fnocache: bool) -> windows_core::Result<()> { + pub unsafe fn GetIESecurityState(&self, frespectpolicy: bool, pdwstate: *mut u32, pfpolicyencountered: *mut windows_core::BOOL, fnocache: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetIESecurityState)(windows_core::Interface::as_raw(self), frespectpolicy.into(), pdwstate as _, pfpolicyencountered as _, fnocache.into()).ok() } } pub unsafe fn FixUnsecureSettings(&self) -> windows_core::Result<()> { @@ -2953,14 +2953,14 @@ impl IInternetZoneManagerEx2 { pub struct IInternetZoneManagerEx2_Vtbl { pub base__: IInternetZoneManagerEx_Vtbl, pub GetZoneAttributesEx: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut ZONEATTRIBUTES, u32) -> windows_core::HRESULT, - pub GetZoneSecurityState: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::super::Foundation::BOOL, *mut u32, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetIESecurityState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL, *mut u32, *mut super::super::super::Foundation::BOOL, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetZoneSecurityState: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub GetIESecurityState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut u32, *mut windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, pub FixUnsecureSettings: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IInternetZoneManagerEx2_Impl: IInternetZoneManagerEx_Impl { fn GetZoneAttributesEx(&self, dwzone: u32, pzoneattributes: *mut ZONEATTRIBUTES, dwflags: u32) -> windows_core::Result<()>; - fn GetZoneSecurityState(&self, dwzoneindex: u32, frespectpolicy: super::super::super::Foundation::BOOL, pdwstate: *mut u32, pfpolicyencountered: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetIESecurityState(&self, frespectpolicy: super::super::super::Foundation::BOOL, pdwstate: *mut u32, pfpolicyencountered: *mut super::super::super::Foundation::BOOL, fnocache: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetZoneSecurityState(&self, dwzoneindex: u32, frespectpolicy: windows_core::BOOL, pdwstate: *mut u32, pfpolicyencountered: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn GetIESecurityState(&self, frespectpolicy: windows_core::BOOL, pdwstate: *mut u32, pfpolicyencountered: *mut windows_core::BOOL, fnocache: windows_core::BOOL) -> windows_core::Result<()>; fn FixUnsecureSettings(&self) -> windows_core::Result<()>; } impl IInternetZoneManagerEx2_Vtbl { @@ -2971,13 +2971,13 @@ impl IInternetZoneManagerEx2_Vtbl { IInternetZoneManagerEx2_Impl::GetZoneAttributesEx(this, core::mem::transmute_copy(&dwzone), core::mem::transmute_copy(&pzoneattributes), core::mem::transmute_copy(&dwflags)).into() } } - unsafe extern "system" fn GetZoneSecurityState(this: *mut core::ffi::c_void, dwzoneindex: u32, frespectpolicy: super::super::super::Foundation::BOOL, pdwstate: *mut u32, pfpolicyencountered: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetZoneSecurityState(this: *mut core::ffi::c_void, dwzoneindex: u32, frespectpolicy: windows_core::BOOL, pdwstate: *mut u32, pfpolicyencountered: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManagerEx2_Impl::GetZoneSecurityState(this, core::mem::transmute_copy(&dwzoneindex), core::mem::transmute_copy(&frespectpolicy), core::mem::transmute_copy(&pdwstate), core::mem::transmute_copy(&pfpolicyencountered)).into() } } - unsafe extern "system" fn GetIESecurityState(this: *mut core::ffi::c_void, frespectpolicy: super::super::super::Foundation::BOOL, pdwstate: *mut u32, pfpolicyencountered: *mut super::super::super::Foundation::BOOL, fnocache: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetIESecurityState(this: *mut core::ffi::c_void, frespectpolicy: windows_core::BOOL, pdwstate: *mut u32, pfpolicyencountered: *mut windows_core::BOOL, fnocache: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInternetZoneManagerEx2_Impl::GetIESecurityState(this, core::mem::transmute_copy(&frespectpolicy), core::mem::transmute_copy(&pdwstate), core::mem::transmute_copy(&pfpolicyencountered), core::mem::transmute_copy(&fnocache)).into() @@ -3136,16 +3136,16 @@ pub struct IPersistMoniker_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetClassID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub IsDirty: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub Load: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL, *mut core::ffi::c_void, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Load: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut core::ffi::c_void, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, + pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SaveCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetCurMoniker: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IPersistMoniker_Impl: windows_core::IUnknownImpl { fn GetClassID(&self) -> windows_core::Result; fn IsDirty(&self) -> windows_core::HRESULT; - fn Load(&self, ffullyavailable: super::super::super::Foundation::BOOL, pimkname: windows_core::Ref, pibc: windows_core::Ref, grfmode: u32) -> windows_core::Result<()>; - fn Save(&self, pimkname: windows_core::Ref, pbc: windows_core::Ref, fremember: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Load(&self, ffullyavailable: windows_core::BOOL, pimkname: windows_core::Ref, pibc: windows_core::Ref, grfmode: u32) -> windows_core::Result<()>; + fn Save(&self, pimkname: windows_core::Ref, pbc: windows_core::Ref, fremember: windows_core::BOOL) -> windows_core::Result<()>; fn SaveCompleted(&self, pimkname: windows_core::Ref, pibc: windows_core::Ref) -> windows_core::Result<()>; fn GetCurMoniker(&self) -> windows_core::Result; } @@ -3169,13 +3169,13 @@ impl IPersistMoniker_Vtbl { IPersistMoniker_Impl::IsDirty(this) } } - unsafe extern "system" fn Load(this: *mut core::ffi::c_void, ffullyavailable: super::super::super::Foundation::BOOL, pimkname: *mut core::ffi::c_void, pibc: *mut core::ffi::c_void, grfmode: u32) -> windows_core::HRESULT { + unsafe extern "system" fn Load(this: *mut core::ffi::c_void, ffullyavailable: windows_core::BOOL, pimkname: *mut core::ffi::c_void, pibc: *mut core::ffi::c_void, grfmode: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistMoniker_Impl::Load(this, core::mem::transmute_copy(&ffullyavailable), core::mem::transmute_copy(&pimkname), core::mem::transmute_copy(&pibc), core::mem::transmute_copy(&grfmode)).into() } } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pimkname: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, fremember: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pimkname: *mut core::ffi::c_void, pbc: *mut core::ffi::c_void, fremember: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistMoniker_Impl::Save(this, core::mem::transmute_copy(&pimkname), core::mem::transmute_copy(&pbc), core::mem::transmute_copy(&fremember)).into() @@ -4029,7 +4029,7 @@ pub const QUERY_USES_NETWORK: QUERYOPTION = QUERYOPTION(8i32); pub struct REMSECURITY_ATTRIBUTES { pub nLength: u32, pub lpSecurityDescriptor: u32, - pub bInheritHandle: super::super::super::Foundation::BOOL, + pub bInheritHandle: windows_core::BOOL, } impl Default for REMSECURITY_ATTRIBUTES { fn default() -> Self { 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 7bdf3db7a1..4916049bfc 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs @@ -163,8 +163,8 @@ where unsafe { CoDisconnectObject(punk.param().abi(), dwreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn CoDosDateTimeToFileTime(ndosdate: u16, ndostime: u16, lpfiletime: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL { - windows_targets::link!("ole32.dll" "system" fn CoDosDateTimeToFileTime(ndosdate : u16, ndostime : u16, lpfiletime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); +pub unsafe fn CoDosDateTimeToFileTime(ndosdate: u16, ndostime: u16, lpfiletime: *mut super::super::Foundation::FILETIME) -> windows_core::BOOL { + windows_targets::link!("ole32.dll" "system" fn CoDosDateTimeToFileTime(ndosdate : u16, ndostime : u16, lpfiletime : *mut super::super::Foundation:: FILETIME) -> windows_core::BOOL); unsafe { CoDosDateTimeToFileTime(ndosdate, ndostime, lpfiletime as _) } } #[inline] @@ -181,8 +181,8 @@ pub unsafe fn CoFileTimeNow() -> windows_core::Result super::super::Foundation::BOOL { - windows_targets::link!("ole32.dll" "system" fn CoFileTimeToDosDateTime(lpfiletime : *const super::super::Foundation:: FILETIME, lpdosdate : *mut u16, lpdostime : *mut u16) -> super::super::Foundation:: BOOL); +pub unsafe fn CoFileTimeToDosDateTime(lpfiletime: *const super::super::Foundation::FILETIME, lpdosdate: *mut u16, lpdostime: *mut u16) -> windows_core::BOOL { + windows_targets::link!("ole32.dll" "system" fn CoFileTimeToDosDateTime(lpfiletime : *const super::super::Foundation:: FILETIME, lpdosdate : *mut u16, lpdostime : *mut u16) -> windows_core::BOOL); unsafe { CoFileTimeToDosDateTime(lpfiletime, lpdosdate as _, lpdostime as _) } } #[inline] @@ -359,16 +359,16 @@ where unsafe { CoInvalidateRemoteMachineBindings(pszmachinename.param().abi()).ok() } } #[inline] -pub unsafe fn CoIsHandlerConnected(punk: P0) -> super::super::Foundation::BOOL +pub unsafe fn CoIsHandlerConnected(punk: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("ole32.dll" "system" fn CoIsHandlerConnected(punk : * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("ole32.dll" "system" fn CoIsHandlerConnected(punk : * mut core::ffi::c_void) -> windows_core::BOOL); unsafe { CoIsHandlerConnected(punk.param().abi()) } } #[inline] -pub unsafe fn CoIsOle1Class(rclsid: *const windows_core::GUID) -> super::super::Foundation::BOOL { - windows_targets::link!("ole32.dll" "system" fn CoIsOle1Class(rclsid : *const windows_core::GUID) -> super::super::Foundation:: BOOL); +pub unsafe fn CoIsOle1Class(rclsid: *const windows_core::GUID) -> windows_core::BOOL { + windows_targets::link!("ole32.dll" "system" fn CoIsOle1Class(rclsid : *const windows_core::GUID) -> windows_core::BOOL); unsafe { CoIsOle1Class(rclsid) } } #[inline] @@ -376,7 +376,7 @@ pub unsafe fn CoLoadLibrary(lpszlibname: P0, bautofree: bool) -> super::supe where P0: windows_core::Param, { - windows_targets::link!("ole32.dll" "system" fn CoLoadLibrary(lpszlibname : windows_core::PCWSTR, bautofree : super::super::Foundation:: BOOL) -> super::super::Foundation:: HINSTANCE); + windows_targets::link!("ole32.dll" "system" fn CoLoadLibrary(lpszlibname : windows_core::PCWSTR, bautofree : windows_core::BOOL) -> super::super::Foundation:: HINSTANCE); unsafe { CoLoadLibrary(lpszlibname.param().abi(), bautofree.into()) } } #[inline] @@ -384,7 +384,7 @@ pub unsafe fn CoLockObjectExternal(punk: P0, flock: bool, flastunlockrelease where P0: windows_core::Param, { - windows_targets::link!("ole32.dll" "system" fn CoLockObjectExternal(punk : * mut core::ffi::c_void, flock : super::super::Foundation:: BOOL, flastunlockreleases : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("ole32.dll" "system" fn CoLockObjectExternal(punk : * mut core::ffi::c_void, flock : windows_core::BOOL, flastunlockreleases : windows_core::BOOL) -> windows_core::HRESULT); unsafe { CoLockObjectExternal(punk.param().abi(), flock.into(), flastunlockreleases.into()).ok() } } #[inline] @@ -815,7 +815,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("ole32.dll" "system" fn MonikerRelativePathTo(pmksrc : * mut core::ffi::c_void, pmkdest : * mut core::ffi::c_void, ppmkrelpath : *mut * mut core::ffi::c_void, dwreserved : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("ole32.dll" "system" fn MonikerRelativePathTo(pmksrc : * mut core::ffi::c_void, pmkdest : * mut core::ffi::c_void, ppmkrelpath : *mut * mut core::ffi::c_void, dwreserved : windows_core::BOOL) -> windows_core::HRESULT); unsafe { MonikerRelativePathTo(pmksrc.param().abi(), pmkdest.param().abi(), core::mem::transmute(ppmkrelpath), dwreserved.into()).ok() } } #[inline] @@ -4027,11 +4027,11 @@ impl IClassFactory { pub struct IClassFactory_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub CreateInstance: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub LockServer: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub LockServer: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IClassFactory_Impl: windows_core::IUnknownImpl { fn CreateInstance(&self, punkouter: windows_core::Ref, riid: *const windows_core::GUID, ppvobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; - fn LockServer(&self, flock: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn LockServer(&self, flock: windows_core::BOOL) -> windows_core::Result<()>; } impl IClassFactory_Vtbl { pub const fn new() -> Self { @@ -4041,7 +4041,7 @@ impl IClassFactory_Vtbl { IClassFactory_Impl::CreateInstance(this, core::mem::transmute_copy(&punkouter), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppvobject)).into() } } - unsafe extern "system" fn LockServer(this: *mut core::ffi::c_void, flock: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn LockServer(this: *mut core::ffi::c_void, flock: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IClassFactory_Impl::LockServer(this, core::mem::transmute_copy(&flock)).into() @@ -4736,7 +4736,7 @@ pub struct IDataObject_Vtbl { pub QueryGetData: unsafe extern "system" fn(*mut core::ffi::c_void, *const FORMATETC) -> windows_core::HRESULT, pub GetCanonicalFormatEtc: unsafe extern "system" fn(*mut core::ffi::c_void, *const FORMATETC, *mut FORMATETC) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] - pub SetData: unsafe extern "system" fn(*mut core::ffi::c_void, *const FORMATETC, *const STGMEDIUM, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetData: unsafe extern "system" fn(*mut core::ffi::c_void, *const FORMATETC, *const STGMEDIUM, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage")))] SetData: usize, pub EnumFormatEtc: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -4750,7 +4750,7 @@ pub trait IDataObject_Impl: windows_core::IUnknownImpl { fn GetDataHere(&self, pformatetc: *const FORMATETC, pmedium: *mut STGMEDIUM) -> windows_core::Result<()>; fn QueryGetData(&self, pformatetc: *const FORMATETC) -> windows_core::HRESULT; fn GetCanonicalFormatEtc(&self, pformatectin: *const FORMATETC, pformatetcout: *mut FORMATETC) -> windows_core::HRESULT; - fn SetData(&self, pformatetc: *const FORMATETC, pmedium: *const STGMEDIUM, frelease: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetData(&self, pformatetc: *const FORMATETC, pmedium: *const STGMEDIUM, frelease: windows_core::BOOL) -> windows_core::Result<()>; fn EnumFormatEtc(&self, dwdirection: u32) -> windows_core::Result; fn DAdvise(&self, pformatetc: *const FORMATETC, advf: u32, padvsink: windows_core::Ref) -> windows_core::Result; fn DUnadvise(&self, dwconnection: u32) -> windows_core::Result<()>; @@ -4789,7 +4789,7 @@ impl IDataObject_Vtbl { IDataObject_Impl::GetCanonicalFormatEtc(this, core::mem::transmute_copy(&pformatectin), core::mem::transmute_copy(&pformatetcout)) } } - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, pformatetc: *const FORMATETC, pmedium: *const STGMEDIUM, frelease: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, pformatetc: *const FORMATETC, pmedium: *const STGMEDIUM, frelease: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataObject_Impl::SetData(this, core::mem::transmute_copy(&pformatetc), core::mem::transmute_copy(&pmedium), core::mem::transmute_copy(&frelease)).into() @@ -5924,11 +5924,11 @@ impl IExternalConnection { pub struct IExternalConnection_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub AddConnection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> u32, - pub ReleaseConnection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, super::super::Foundation::BOOL) -> u32, + pub ReleaseConnection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, windows_core::BOOL) -> u32, } pub trait IExternalConnection_Impl: windows_core::IUnknownImpl { fn AddConnection(&self, extconn: u32, reserved: u32) -> u32; - fn ReleaseConnection(&self, extconn: u32, reserved: u32, flastreleasecloses: super::super::Foundation::BOOL) -> u32; + fn ReleaseConnection(&self, extconn: u32, reserved: u32, flastreleasecloses: windows_core::BOOL) -> u32; } impl IExternalConnection_Vtbl { pub const fn new() -> Self { @@ -5938,7 +5938,7 @@ impl IExternalConnection_Vtbl { IExternalConnection_Impl::AddConnection(this, core::mem::transmute_copy(&extconn), core::mem::transmute_copy(&reserved)) } } - unsafe extern "system" fn ReleaseConnection(this: *mut core::ffi::c_void, extconn: u32, reserved: u32, flastreleasecloses: super::super::Foundation::BOOL) -> u32 { + unsafe extern "system" fn ReleaseConnection(this: *mut core::ffi::c_void, extconn: u32, reserved: u32, flastreleasecloses: windows_core::BOOL) -> u32 { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExternalConnection_Impl::ReleaseConnection(this, core::mem::transmute_copy(&extconn), core::mem::transmute_copy(&reserved), core::mem::transmute_copy(&flastreleasecloses)) @@ -6472,28 +6472,28 @@ pub struct IMallocSpy_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub PreAlloc: unsafe extern "system" fn(*mut core::ffi::c_void, usize) -> usize, pub PostAlloc: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void) -> *mut core::ffi::c_void, - pub PreFree: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, super::super::Foundation::BOOL) -> *mut core::ffi::c_void, - pub PostFree: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL), - pub PreRealloc: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, usize, *mut *mut core::ffi::c_void, super::super::Foundation::BOOL) -> usize, - pub PostRealloc: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, super::super::Foundation::BOOL) -> *mut core::ffi::c_void, - pub PreGetSize: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, super::super::Foundation::BOOL) -> *mut core::ffi::c_void, - pub PostGetSize: unsafe extern "system" fn(*mut core::ffi::c_void, usize, super::super::Foundation::BOOL) -> usize, - pub PreDidAlloc: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, super::super::Foundation::BOOL) -> *mut core::ffi::c_void, - pub PostDidAlloc: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, super::super::Foundation::BOOL, i32) -> i32, + pub PreFree: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, windows_core::BOOL) -> *mut core::ffi::c_void, + pub PostFree: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), + pub PreRealloc: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, usize, *mut *mut core::ffi::c_void, windows_core::BOOL) -> usize, + pub PostRealloc: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, windows_core::BOOL) -> *mut core::ffi::c_void, + pub PreGetSize: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, windows_core::BOOL) -> *mut core::ffi::c_void, + pub PostGetSize: unsafe extern "system" fn(*mut core::ffi::c_void, usize, windows_core::BOOL) -> usize, + pub PreDidAlloc: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, windows_core::BOOL) -> *mut core::ffi::c_void, + pub PostDidAlloc: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, windows_core::BOOL, i32) -> i32, pub PreHeapMinimize: unsafe extern "system" fn(*mut core::ffi::c_void), pub PostHeapMinimize: unsafe extern "system" fn(*mut core::ffi::c_void), } pub trait IMallocSpy_Impl: windows_core::IUnknownImpl { fn PreAlloc(&self, cbrequest: usize) -> usize; fn PostAlloc(&self, pactual: *const core::ffi::c_void) -> *mut core::ffi::c_void; - fn PreFree(&self, prequest: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> *mut core::ffi::c_void; - fn PostFree(&self, fspyed: super::super::Foundation::BOOL); - fn PreRealloc(&self, prequest: *const core::ffi::c_void, cbrequest: usize, ppnewrequest: *mut *mut core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> usize; - fn PostRealloc(&self, pactual: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> *mut core::ffi::c_void; - fn PreGetSize(&self, prequest: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> *mut core::ffi::c_void; - fn PostGetSize(&self, cbactual: usize, fspyed: super::super::Foundation::BOOL) -> usize; - fn PreDidAlloc(&self, prequest: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> *mut core::ffi::c_void; - fn PostDidAlloc(&self, prequest: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL, factual: i32) -> i32; + fn PreFree(&self, prequest: *const core::ffi::c_void, fspyed: windows_core::BOOL) -> *mut core::ffi::c_void; + fn PostFree(&self, fspyed: windows_core::BOOL); + fn PreRealloc(&self, prequest: *const core::ffi::c_void, cbrequest: usize, ppnewrequest: *mut *mut core::ffi::c_void, fspyed: windows_core::BOOL) -> usize; + fn PostRealloc(&self, pactual: *const core::ffi::c_void, fspyed: windows_core::BOOL) -> *mut core::ffi::c_void; + fn PreGetSize(&self, prequest: *const core::ffi::c_void, fspyed: windows_core::BOOL) -> *mut core::ffi::c_void; + fn PostGetSize(&self, cbactual: usize, fspyed: windows_core::BOOL) -> usize; + fn PreDidAlloc(&self, prequest: *const core::ffi::c_void, fspyed: windows_core::BOOL) -> *mut core::ffi::c_void; + fn PostDidAlloc(&self, prequest: *const core::ffi::c_void, fspyed: windows_core::BOOL, factual: i32) -> i32; fn PreHeapMinimize(&self); fn PostHeapMinimize(&self); } @@ -6511,49 +6511,49 @@ impl IMallocSpy_Vtbl { IMallocSpy_Impl::PostAlloc(this, core::mem::transmute_copy(&pactual)) } } - unsafe extern "system" fn PreFree(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> *mut core::ffi::c_void { + unsafe extern "system" fn PreFree(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, fspyed: windows_core::BOOL) -> *mut core::ffi::c_void { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PreFree(this, core::mem::transmute_copy(&prequest), core::mem::transmute_copy(&fspyed)) } } - unsafe extern "system" fn PostFree(this: *mut core::ffi::c_void, fspyed: super::super::Foundation::BOOL) { + unsafe extern "system" fn PostFree(this: *mut core::ffi::c_void, fspyed: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PostFree(this, core::mem::transmute_copy(&fspyed)) } } - unsafe extern "system" fn PreRealloc(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, cbrequest: usize, ppnewrequest: *mut *mut core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> usize { + unsafe extern "system" fn PreRealloc(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, cbrequest: usize, ppnewrequest: *mut *mut core::ffi::c_void, fspyed: windows_core::BOOL) -> usize { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PreRealloc(this, core::mem::transmute_copy(&prequest), core::mem::transmute_copy(&cbrequest), core::mem::transmute_copy(&ppnewrequest), core::mem::transmute_copy(&fspyed)) } } - unsafe extern "system" fn PostRealloc(this: *mut core::ffi::c_void, pactual: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> *mut core::ffi::c_void { + unsafe extern "system" fn PostRealloc(this: *mut core::ffi::c_void, pactual: *const core::ffi::c_void, fspyed: windows_core::BOOL) -> *mut core::ffi::c_void { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PostRealloc(this, core::mem::transmute_copy(&pactual), core::mem::transmute_copy(&fspyed)) } } - unsafe extern "system" fn PreGetSize(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> *mut core::ffi::c_void { + unsafe extern "system" fn PreGetSize(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, fspyed: windows_core::BOOL) -> *mut core::ffi::c_void { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PreGetSize(this, core::mem::transmute_copy(&prequest), core::mem::transmute_copy(&fspyed)) } } - unsafe extern "system" fn PostGetSize(this: *mut core::ffi::c_void, cbactual: usize, fspyed: super::super::Foundation::BOOL) -> usize { + unsafe extern "system" fn PostGetSize(this: *mut core::ffi::c_void, cbactual: usize, fspyed: windows_core::BOOL) -> usize { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PostGetSize(this, core::mem::transmute_copy(&cbactual), core::mem::transmute_copy(&fspyed)) } } - unsafe extern "system" fn PreDidAlloc(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL) -> *mut core::ffi::c_void { + unsafe extern "system" fn PreDidAlloc(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, fspyed: windows_core::BOOL) -> *mut core::ffi::c_void { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PreDidAlloc(this, core::mem::transmute_copy(&prequest), core::mem::transmute_copy(&fspyed)) } } - unsafe extern "system" fn PostDidAlloc(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, fspyed: super::super::Foundation::BOOL, factual: i32) -> i32 { + unsafe extern "system" fn PostDidAlloc(this: *mut core::ffi::c_void, prequest: *const core::ffi::c_void, fspyed: windows_core::BOOL, factual: i32) -> i32 { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMallocSpy_Impl::PostDidAlloc(this, core::mem::transmute_copy(&prequest), core::mem::transmute_copy(&fspyed), core::mem::transmute_copy(&factual)) @@ -6725,8 +6725,8 @@ pub struct IMoniker_Vtbl { pub BindToObject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub BindToStorage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Reduce: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub ComposeWith: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Enum: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub ComposeWith: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub Enum: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsEqual: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Hash: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub IsRunning: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -6742,8 +6742,8 @@ pub trait IMoniker_Impl: IPersistStream_Impl { fn BindToObject(&self, pbc: windows_core::Ref, pmktoleft: windows_core::Ref, riidresult: *const windows_core::GUID, ppvresult: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn BindToStorage(&self, pbc: windows_core::Ref, pmktoleft: windows_core::Ref, riid: *const windows_core::GUID, ppvobj: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn Reduce(&self, pbc: windows_core::Ref, dwreducehowfar: u32, ppmktoleft: windows_core::OutRef<'_, IMoniker>, ppmkreduced: windows_core::OutRef<'_, IMoniker>) -> windows_core::Result<()>; - fn ComposeWith(&self, pmkright: windows_core::Ref, fonlyifnotgeneric: super::super::Foundation::BOOL) -> windows_core::Result; - fn Enum(&self, fforward: super::super::Foundation::BOOL) -> windows_core::Result; + fn ComposeWith(&self, pmkright: windows_core::Ref, fonlyifnotgeneric: windows_core::BOOL) -> windows_core::Result; + fn Enum(&self, fforward: windows_core::BOOL) -> windows_core::Result; fn IsEqual(&self, pmkothermoniker: windows_core::Ref) -> windows_core::HRESULT; fn Hash(&self) -> windows_core::Result; fn IsRunning(&self, pbc: windows_core::Ref, pmktoleft: windows_core::Ref, pmknewlyrunning: windows_core::Ref) -> windows_core::Result<()>; @@ -6775,7 +6775,7 @@ impl IMoniker_Vtbl { IMoniker_Impl::Reduce(this, core::mem::transmute_copy(&pbc), core::mem::transmute_copy(&dwreducehowfar), core::mem::transmute_copy(&ppmktoleft), core::mem::transmute_copy(&ppmkreduced)).into() } } - unsafe extern "system" fn ComposeWith(this: *mut core::ffi::c_void, pmkright: *mut core::ffi::c_void, fonlyifnotgeneric: super::super::Foundation::BOOL, ppmkcomposite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn ComposeWith(this: *mut core::ffi::c_void, pmkright: *mut core::ffi::c_void, fonlyifnotgeneric: windows_core::BOOL, ppmkcomposite: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMoniker_Impl::ComposeWith(this, core::mem::transmute_copy(&pmkright), core::mem::transmute_copy(&fonlyifnotgeneric)) { @@ -6787,7 +6787,7 @@ impl IMoniker_Vtbl { } } } - unsafe extern "system" fn Enum(this: *mut core::ffi::c_void, fforward: super::super::Foundation::BOOL, ppenummoniker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn Enum(this: *mut core::ffi::c_void, fforward: windows_core::BOOL, ppenummoniker: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IMoniker_Impl::Enum(this, core::mem::transmute_copy(&fforward)) { @@ -7186,14 +7186,14 @@ pub struct IPersistFile_Vtbl { pub base__: IPersist_Vtbl, pub IsDirty: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Load: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, STGM) -> windows_core::HRESULT, - pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, pub SaveCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub GetCurFile: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, } pub trait IPersistFile_Impl: IPersist_Impl { fn IsDirty(&self) -> windows_core::HRESULT; fn Load(&self, pszfilename: &windows_core::PCWSTR, dwmode: STGM) -> windows_core::Result<()>; - fn Save(&self, pszfilename: &windows_core::PCWSTR, fremember: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Save(&self, pszfilename: &windows_core::PCWSTR, fremember: windows_core::BOOL) -> windows_core::Result<()>; fn SaveCompleted(&self, pszfilename: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetCurFile(&self) -> windows_core::Result; } @@ -7211,7 +7211,7 @@ impl IPersistFile_Vtbl { IPersistFile_Impl::Load(this, core::mem::transmute(&pszfilename), core::mem::transmute_copy(&dwmode)).into() } } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, fremember: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pszfilename: windows_core::PCWSTR, fremember: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistFile_Impl::Save(this, core::mem::transmute(&pszfilename), core::mem::transmute_copy(&fremember)).into() @@ -7282,14 +7282,14 @@ pub struct IPersistMemory_Vtbl { pub base__: IPersist_Vtbl, pub IsDirty: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Load: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, u32) -> windows_core::HRESULT, - pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, u32) -> windows_core::HRESULT, + pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, u32) -> windows_core::HRESULT, pub GetSizeMax: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub InitNew: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IPersistMemory_Impl: IPersist_Impl { fn IsDirty(&self) -> windows_core::HRESULT; fn Load(&self, pmem: *const core::ffi::c_void, cbsize: u32) -> windows_core::Result<()>; - fn Save(&self, pmem: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL, cbsize: u32) -> windows_core::Result<()>; + fn Save(&self, pmem: *mut core::ffi::c_void, fcleardirty: windows_core::BOOL, cbsize: u32) -> windows_core::Result<()>; fn GetSizeMax(&self) -> windows_core::Result; fn InitNew(&self) -> windows_core::Result<()>; } @@ -7307,7 +7307,7 @@ impl IPersistMemory_Vtbl { IPersistMemory_Impl::Load(this, core::mem::transmute_copy(&pmem), core::mem::transmute_copy(&cbsize)).into() } } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pmem: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL, cbsize: u32) -> windows_core::HRESULT { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pmem: *mut core::ffi::c_void, fcleardirty: windows_core::BOOL, cbsize: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistMemory_Impl::Save(this, core::mem::transmute_copy(&pmem), core::mem::transmute_copy(&fcleardirty), core::mem::transmute_copy(&cbsize)).into() @@ -7381,13 +7381,13 @@ pub struct IPersistStream_Vtbl { pub base__: IPersist_Vtbl, pub IsDirty: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Load: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetSizeMax: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, } pub trait IPersistStream_Impl: IPersist_Impl { fn IsDirty(&self) -> windows_core::HRESULT; fn Load(&self, pstm: windows_core::Ref) -> windows_core::Result<()>; - fn Save(&self, pstm: windows_core::Ref, fcleardirty: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Save(&self, pstm: windows_core::Ref, fcleardirty: windows_core::BOOL) -> windows_core::Result<()>; fn GetSizeMax(&self) -> windows_core::Result; } impl IPersistStream_Vtbl { @@ -7404,7 +7404,7 @@ impl IPersistStream_Vtbl { IPersistStream_Impl::Load(this, core::mem::transmute_copy(&pstm)).into() } } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, fcleardirty: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistStream_Impl::Save(this, core::mem::transmute_copy(&pstm), core::mem::transmute_copy(&fcleardirty)).into() @@ -7474,14 +7474,14 @@ pub struct IPersistStreamInit_Vtbl { pub base__: IPersist_Vtbl, pub IsDirty: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Load: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetSizeMax: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub InitNew: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IPersistStreamInit_Impl: IPersist_Impl { fn IsDirty(&self) -> windows_core::HRESULT; fn Load(&self, pstm: windows_core::Ref) -> windows_core::Result<()>; - fn Save(&self, pstm: windows_core::Ref, fcleardirty: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Save(&self, pstm: windows_core::Ref, fcleardirty: windows_core::BOOL) -> windows_core::Result<()>; fn GetSizeMax(&self) -> windows_core::Result; fn InitNew(&self) -> windows_core::Result<()>; } @@ -7499,7 +7499,7 @@ impl IPersistStreamInit_Vtbl { IPersistStreamInit_Impl::Load(this, core::mem::transmute_copy(&pstm)).into() } } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, fcleardirty: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistStreamInit_Impl::Save(this, core::mem::transmute_copy(&pstm), core::mem::transmute_copy(&fcleardirty)).into() @@ -7745,14 +7745,14 @@ impl IProgressNotify { #[repr(C)] pub struct IProgressNotify_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnProgress: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnProgress: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IProgressNotify_Impl: windows_core::IUnknownImpl { - fn OnProgress(&self, dwprogresscurrent: u32, dwprogressmaximum: u32, faccurate: super::super::Foundation::BOOL, fowner: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnProgress(&self, dwprogresscurrent: u32, dwprogressmaximum: u32, faccurate: windows_core::BOOL, fowner: windows_core::BOOL) -> windows_core::Result<()>; } impl IProgressNotify_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, dwprogresscurrent: u32, dwprogressmaximum: u32, faccurate: super::super::Foundation::BOOL, fowner: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, dwprogresscurrent: u32, dwprogressmaximum: u32, faccurate: windows_core::BOOL, fowner: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProgressNotify_Impl::OnProgress(this, core::mem::transmute_copy(&dwprogresscurrent), core::mem::transmute_copy(&dwprogressmaximum), core::mem::transmute_copy(&faccurate), core::mem::transmute_copy(&fowner)).into() @@ -8396,7 +8396,7 @@ impl IRunnableObject { { unsafe { (windows_core::Interface::vtable(self).Run)(windows_core::Interface::as_raw(self), pbc.param().abi()).ok() } } - pub unsafe fn IsRunning(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsRunning(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsRunning)(windows_core::Interface::as_raw(self)) } } pub unsafe fn LockRunning(&self, flock: bool, flastunlockcloses: bool) -> windows_core::Result<()> { @@ -8411,16 +8411,16 @@ pub struct IRunnableObject_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetRunningClass: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub Run: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsRunning: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, - pub LockRunning: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetContainedObject: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsRunning: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, + pub LockRunning: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, + pub SetContainedObject: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IRunnableObject_Impl: windows_core::IUnknownImpl { fn GetRunningClass(&self) -> windows_core::Result; fn Run(&self, pbc: windows_core::Ref) -> windows_core::Result<()>; - fn IsRunning(&self) -> super::super::Foundation::BOOL; - fn LockRunning(&self, flock: super::super::Foundation::BOOL, flastunlockcloses: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetContainedObject(&self, fcontained: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsRunning(&self) -> windows_core::BOOL; + fn LockRunning(&self, flock: windows_core::BOOL, flastunlockcloses: windows_core::BOOL) -> windows_core::Result<()>; + fn SetContainedObject(&self, fcontained: windows_core::BOOL) -> windows_core::Result<()>; } impl IRunnableObject_Vtbl { pub const fn new() -> Self { @@ -8442,19 +8442,19 @@ impl IRunnableObject_Vtbl { IRunnableObject_Impl::Run(this, core::mem::transmute_copy(&pbc)).into() } } - unsafe extern "system" fn IsRunning(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsRunning(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRunnableObject_Impl::IsRunning(this) } } - unsafe extern "system" fn LockRunning(this: *mut core::ffi::c_void, flock: super::super::Foundation::BOOL, flastunlockcloses: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn LockRunning(this: *mut core::ffi::c_void, flock: windows_core::BOOL, flastunlockcloses: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRunnableObject_Impl::LockRunning(this, core::mem::transmute_copy(&flock), core::mem::transmute_copy(&flastunlockcloses)).into() } } - unsafe extern "system" fn SetContainedObject(this: *mut core::ffi::c_void, fcontained: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetContainedObject(this: *mut core::ffi::c_void, fcontained: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRunnableObject_Impl::SetContainedObject(this, core::mem::transmute_copy(&fcontained)).into() @@ -8681,7 +8681,7 @@ impl IServerSecurity { pub unsafe fn RevertToSelf(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).RevertToSelf)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn IsImpersonating(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsImpersonating(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsImpersonating)(windows_core::Interface::as_raw(self)) } } } @@ -8691,13 +8691,13 @@ pub struct IServerSecurity_Vtbl { pub QueryBlanket: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32, *mut *mut u16, *mut u32, *mut u32, *mut *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub ImpersonateClient: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub RevertToSelf: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsImpersonating: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsImpersonating: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } pub trait IServerSecurity_Impl: windows_core::IUnknownImpl { fn QueryBlanket(&self, pauthnsvc: *mut u32, pauthzsvc: *mut u32, pserverprincname: *mut *mut u16, pauthnlevel: *mut u32, pimplevel: *mut u32, pprivs: *mut *mut core::ffi::c_void, pcapabilities: *mut u32) -> windows_core::Result<()>; fn ImpersonateClient(&self) -> windows_core::Result<()>; fn RevertToSelf(&self) -> windows_core::Result<()>; - fn IsImpersonating(&self) -> super::super::Foundation::BOOL; + fn IsImpersonating(&self) -> windows_core::BOOL; } impl IServerSecurity_Vtbl { pub const fn new() -> Self { @@ -8719,7 +8719,7 @@ impl IServerSecurity_Vtbl { IServerSecurity_Impl::RevertToSelf(this).into() } } - unsafe extern "system" fn IsImpersonating(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsImpersonating(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServerSecurity_Impl::IsImpersonating(this) @@ -9052,7 +9052,7 @@ impl windows_core::RuntimeName for ISurrogate {} windows_core::imp::define_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: P1) -> windows_core::Result + pub unsafe fn Init(&self, rguidprocessid: *const windows_core::GUID, pprocesslock: P1) -> windows_core::Result where P1: windows_core::Param, { @@ -9077,14 +9077,14 @@ impl ISurrogateService { #[repr(C)] pub struct ISurrogateService_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Init: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Init: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub ApplicationLaunch: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, ApplicationType) -> windows_core::HRESULT, pub ApplicationFree: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID) -> windows_core::HRESULT, pub CatalogRefresh: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub ProcessShutdown: unsafe extern "system" fn(*mut core::ffi::c_void, ShutdownType) -> windows_core::HRESULT, } pub trait ISurrogateService_Impl: windows_core::IUnknownImpl { - fn Init(&self, rguidprocessid: *const windows_core::GUID, pprocesslock: windows_core::Ref) -> windows_core::Result; + fn Init(&self, rguidprocessid: *const windows_core::GUID, pprocesslock: windows_core::Ref) -> windows_core::Result; fn ApplicationLaunch(&self, rguidapplid: *const windows_core::GUID, apptype: ApplicationType) -> windows_core::Result<()>; fn ApplicationFree(&self, rguidapplid: *const windows_core::GUID) -> windows_core::Result<()>; fn CatalogRefresh(&self, ulreserved: u32) -> windows_core::Result<()>; @@ -9092,7 +9092,7 @@ pub trait ISurrogateService_Impl: windows_core::IUnknownImpl { } impl ISurrogateService_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, rguidprocessid: *const windows_core::GUID, pprocesslock: *mut core::ffi::c_void, pfapplicationaware: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, rguidprocessid: *const windows_core::GUID, pprocesslock: *mut core::ffi::c_void, pfapplicationaware: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISurrogateService_Impl::Init(this, core::mem::transmute_copy(&rguidprocessid), core::mem::transmute_copy(&pprocesslock)) { @@ -10223,7 +10223,7 @@ impl ITypeLib { pub unsafe fn GetDocumentation(&self, index: i32, pbstrname: Option<*mut windows_core::BSTR>, pbstrdocstring: Option<*mut windows_core::BSTR>, pdwhelpcontext: *mut u32, pbstrhelpfile: Option<*mut windows_core::BSTR>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetDocumentation)(windows_core::Interface::as_raw(self), index, pbstrname.unwrap_or(core::mem::zeroed()) as _, pbstrdocstring.unwrap_or(core::mem::zeroed()) as _, pdwhelpcontext as _, pbstrhelpfile.unwrap_or(core::mem::zeroed()) as _).ok() } } - pub unsafe fn IsName(&self, sznamebuf: windows_core::PWSTR, lhashval: u32, pfname: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn IsName(&self, sznamebuf: windows_core::PWSTR, lhashval: u32, pfname: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsName)(windows_core::Interface::as_raw(self), core::mem::transmute(sznamebuf), lhashval, pfname as _).ok() } } pub unsafe fn FindName(&self, sznamebuf: windows_core::PWSTR, lhashval: u32, pptinfo: *mut Option, rgmemid: *mut i32, pcfound: *mut u16) -> windows_core::Result<()> { @@ -10243,7 +10243,7 @@ pub struct ITypeLib_Vtbl { pub GetLibAttr: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut TLIBATTR) -> windows_core::HRESULT, pub GetTypeComp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDocumentation: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub FindName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, *mut *mut core::ffi::c_void, *mut i32, *mut u16) -> windows_core::HRESULT, pub ReleaseTLibAttr: unsafe extern "system" fn(*mut core::ffi::c_void, *const TLIBATTR), } @@ -10255,7 +10255,7 @@ pub trait ITypeLib_Impl: windows_core::IUnknownImpl { fn GetLibAttr(&self) -> windows_core::Result<*mut TLIBATTR>; fn GetTypeComp(&self) -> windows_core::Result; fn GetDocumentation(&self, index: i32, pbstrname: *mut windows_core::BSTR, pbstrdocstring: *mut windows_core::BSTR, pdwhelpcontext: *mut u32, pbstrhelpfile: *mut windows_core::BSTR) -> windows_core::Result<()>; - fn IsName(&self, sznamebuf: windows_core::PWSTR, lhashval: u32, pfname: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsName(&self, sznamebuf: windows_core::PWSTR, lhashval: u32, pfname: *mut windows_core::BOOL) -> windows_core::Result<()>; fn FindName(&self, sznamebuf: windows_core::PWSTR, lhashval: u32, pptinfo: windows_core::OutRef<'_, ITypeInfo>, rgmemid: *mut i32, pcfound: *mut u16) -> windows_core::Result<()>; fn ReleaseTLibAttr(&self, ptlibattr: *const TLIBATTR); } @@ -10333,7 +10333,7 @@ impl ITypeLib_Vtbl { ITypeLib_Impl::GetDocumentation(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&pbstrname), core::mem::transmute_copy(&pbstrdocstring), core::mem::transmute_copy(&pdwhelpcontext), core::mem::transmute_copy(&pbstrhelpfile)).into() } } - unsafe extern "system" fn IsName(this: *mut core::ffi::c_void, sznamebuf: windows_core::PWSTR, lhashval: u32, pfname: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsName(this: *mut core::ffi::c_void, sznamebuf: windows_core::PWSTR, lhashval: u32, pfname: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITypeLib_Impl::IsName(this, core::mem::transmute_copy(&sznamebuf), core::mem::transmute_copy(&lhashval), core::mem::transmute_copy(&pfname)).into() @@ -10714,7 +10714,7 @@ impl IUri { pub unsafe fn GetPropertyDWORD(&self, uriprop: Uri_PROPERTY, pdwproperty: *mut u32, dwflags: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetPropertyDWORD)(windows_core::Interface::as_raw(self), uriprop, pdwproperty as _, dwflags).ok() } } - pub unsafe fn HasProperty(&self, uriprop: Uri_PROPERTY) -> windows_core::Result { + pub unsafe fn HasProperty(&self, uriprop: Uri_PROPERTY) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HasProperty)(windows_core::Interface::as_raw(self), uriprop, &mut result__).map(|| result__) @@ -10840,7 +10840,7 @@ impl IUri { (windows_core::Interface::vtable(self).GetProperties)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsEqual(&self, puri: P0) -> windows_core::Result + pub unsafe fn IsEqual(&self, puri: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -10856,7 +10856,7 @@ pub struct IUri_Vtbl { pub GetPropertyBSTR: unsafe extern "system" fn(*mut core::ffi::c_void, Uri_PROPERTY, *mut *mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetPropertyLength: unsafe extern "system" fn(*mut core::ffi::c_void, Uri_PROPERTY, *mut u32, u32) -> windows_core::HRESULT, pub GetPropertyDWORD: unsafe extern "system" fn(*mut core::ffi::c_void, Uri_PROPERTY, *mut u32, u32) -> windows_core::HRESULT, - pub HasProperty: unsafe extern "system" fn(*mut core::ffi::c_void, Uri_PROPERTY, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub HasProperty: unsafe extern "system" fn(*mut core::ffi::c_void, Uri_PROPERTY, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetAbsoluteUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetAuthority: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDisplayUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -10877,13 +10877,13 @@ pub struct IUri_Vtbl { pub GetScheme: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetZone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub IsEqual: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsEqual: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IUri_Impl: windows_core::IUnknownImpl { fn GetPropertyBSTR(&self, uriprop: Uri_PROPERTY, pbstrproperty: *mut windows_core::BSTR, dwflags: u32) -> windows_core::Result<()>; fn GetPropertyLength(&self, uriprop: Uri_PROPERTY, pcchproperty: *mut u32, dwflags: u32) -> windows_core::Result<()>; fn GetPropertyDWORD(&self, uriprop: Uri_PROPERTY, pdwproperty: *mut u32, dwflags: u32) -> windows_core::Result<()>; - fn HasProperty(&self, uriprop: Uri_PROPERTY) -> windows_core::Result; + fn HasProperty(&self, uriprop: Uri_PROPERTY) -> windows_core::Result; fn GetAbsoluteUri(&self) -> windows_core::Result; fn GetAuthority(&self) -> windows_core::Result; fn GetDisplayUri(&self) -> windows_core::Result; @@ -10904,7 +10904,7 @@ pub trait IUri_Impl: windows_core::IUnknownImpl { fn GetScheme(&self) -> windows_core::Result; fn GetZone(&self) -> windows_core::Result; fn GetProperties(&self) -> windows_core::Result; - fn IsEqual(&self, puri: windows_core::Ref) -> windows_core::Result; + fn IsEqual(&self, puri: windows_core::Ref) -> windows_core::Result; } impl IUri_Vtbl { pub const fn new() -> Self { @@ -10926,7 +10926,7 @@ impl IUri_Vtbl { IUri_Impl::GetPropertyDWORD(this, core::mem::transmute_copy(&uriprop), core::mem::transmute_copy(&pdwproperty), core::mem::transmute_copy(&dwflags)).into() } } - unsafe extern "system" fn HasProperty(this: *mut core::ffi::c_void, uriprop: Uri_PROPERTY, pfhasproperty: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn HasProperty(this: *mut core::ffi::c_void, uriprop: Uri_PROPERTY, pfhasproperty: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::HasProperty(this, core::mem::transmute_copy(&uriprop)) { @@ -11178,7 +11178,7 @@ impl IUri_Vtbl { } } } - unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, puri: *mut core::ffi::c_void, pfequal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, puri: *mut core::ffi::c_void, pfequal: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUri_Impl::IsEqual(this, core::mem::transmute_copy(&puri)) { @@ -11269,7 +11269,7 @@ impl IUriBuilder { pub unsafe fn GetPath(&self, pcchpath: *mut u32, ppwzpath: *mut windows_core::PCWSTR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetPath)(windows_core::Interface::as_raw(self), pcchpath as _, ppwzpath as _).ok() } } - pub unsafe fn GetPort(&self, pfhasport: *mut super::super::Foundation::BOOL, pdwport: *mut u32) -> windows_core::Result<()> { + pub unsafe fn GetPort(&self, pfhasport: *mut windows_core::BOOL, pdwport: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetPort)(windows_core::Interface::as_raw(self), pfhasport as _, pdwport as _).ok() } } pub unsafe fn GetQuery(&self, pcchquery: *mut u32, ppwzquery: *mut windows_core::PCWSTR) -> windows_core::Result<()> { @@ -11329,7 +11329,7 @@ impl IUriBuilder { pub unsafe fn RemoveProperties(&self, dwpropertymask: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).RemoveProperties)(windows_core::Interface::as_raw(self), dwpropertymask).ok() } } - pub unsafe fn HasBeenModified(&self) -> windows_core::Result { + pub unsafe fn HasBeenModified(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HasBeenModified)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -11348,7 +11348,7 @@ pub struct IUriBuilder_Vtbl { pub GetHost: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut windows_core::PCWSTR) -> windows_core::HRESULT, pub GetPassword: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut windows_core::PCWSTR) -> windows_core::HRESULT, pub GetPath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut windows_core::PCWSTR) -> windows_core::HRESULT, - pub GetPort: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut u32) -> windows_core::HRESULT, + pub GetPort: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut u32) -> windows_core::HRESULT, pub GetQuery: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut windows_core::PCWSTR) -> windows_core::HRESULT, pub GetSchemeName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut windows_core::PCWSTR) -> windows_core::HRESULT, pub GetUserName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut windows_core::PCWSTR) -> windows_core::HRESULT, @@ -11356,12 +11356,12 @@ pub struct IUriBuilder_Vtbl { pub SetHost: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub SetPassword: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub SetPath: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, - pub SetPort: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, u32) -> windows_core::HRESULT, + pub SetPort: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, u32) -> windows_core::HRESULT, pub SetQuery: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub SetSchemeName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub SetUserName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub RemoveProperties: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub HasBeenModified: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub HasBeenModified: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IUriBuilder_Impl: windows_core::IUnknownImpl { fn CreateUriSimple(&self, dwallowencodingpropertymask: u32, dwreserved: usize) -> windows_core::Result; @@ -11373,7 +11373,7 @@ pub trait IUriBuilder_Impl: windows_core::IUnknownImpl { fn GetHost(&self, pcchhost: *mut u32, ppwzhost: *mut windows_core::PCWSTR) -> windows_core::Result<()>; fn GetPassword(&self, pcchpassword: *mut u32, ppwzpassword: *mut windows_core::PCWSTR) -> windows_core::Result<()>; fn GetPath(&self, pcchpath: *mut u32, ppwzpath: *mut windows_core::PCWSTR) -> windows_core::Result<()>; - fn GetPort(&self, pfhasport: *mut super::super::Foundation::BOOL, pdwport: *mut u32) -> windows_core::Result<()>; + fn GetPort(&self, pfhasport: *mut windows_core::BOOL, pdwport: *mut u32) -> windows_core::Result<()>; fn GetQuery(&self, pcchquery: *mut u32, ppwzquery: *mut windows_core::PCWSTR) -> windows_core::Result<()>; fn GetSchemeName(&self, pcchschemename: *mut u32, ppwzschemename: *mut windows_core::PCWSTR) -> windows_core::Result<()>; fn GetUserName(&self, pcchusername: *mut u32, ppwzusername: *mut windows_core::PCWSTR) -> windows_core::Result<()>; @@ -11381,12 +11381,12 @@ pub trait IUriBuilder_Impl: windows_core::IUnknownImpl { fn SetHost(&self, pwznewvalue: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetPassword(&self, pwznewvalue: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetPath(&self, pwznewvalue: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn SetPort(&self, fhasport: super::super::Foundation::BOOL, dwnewvalue: u32) -> windows_core::Result<()>; + fn SetPort(&self, fhasport: windows_core::BOOL, dwnewvalue: u32) -> windows_core::Result<()>; fn SetQuery(&self, pwznewvalue: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetSchemeName(&self, pwznewvalue: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetUserName(&self, pwznewvalue: &windows_core::PCWSTR) -> windows_core::Result<()>; fn RemoveProperties(&self, dwpropertymask: u32) -> windows_core::Result<()>; - fn HasBeenModified(&self) -> windows_core::Result; + fn HasBeenModified(&self) -> windows_core::Result; } impl IUriBuilder_Vtbl { pub const fn new() -> Self { @@ -11468,7 +11468,7 @@ impl IUriBuilder_Vtbl { IUriBuilder_Impl::GetPath(this, core::mem::transmute_copy(&pcchpath), core::mem::transmute_copy(&ppwzpath)).into() } } - unsafe extern "system" fn GetPort(this: *mut core::ffi::c_void, pfhasport: *mut super::super::Foundation::BOOL, pdwport: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn GetPort(this: *mut core::ffi::c_void, pfhasport: *mut windows_core::BOOL, pdwport: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::GetPort(this, core::mem::transmute_copy(&pfhasport), core::mem::transmute_copy(&pdwport)).into() @@ -11516,7 +11516,7 @@ impl IUriBuilder_Vtbl { IUriBuilder_Impl::SetPath(this, core::mem::transmute(&pwznewvalue)).into() } } - unsafe extern "system" fn SetPort(this: *mut core::ffi::c_void, fhasport: super::super::Foundation::BOOL, dwnewvalue: u32) -> windows_core::HRESULT { + unsafe extern "system" fn SetPort(this: *mut core::ffi::c_void, fhasport: windows_core::BOOL, dwnewvalue: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUriBuilder_Impl::SetPort(this, core::mem::transmute_copy(&fhasport), core::mem::transmute_copy(&dwnewvalue)).into() @@ -11546,7 +11546,7 @@ impl IUriBuilder_Vtbl { IUriBuilder_Impl::RemoveProperties(this, core::mem::transmute_copy(&dwpropertymask)).into() } } - unsafe extern "system" fn HasBeenModified(this: *mut core::ffi::c_void, pfmodified: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn HasBeenModified(this: *mut core::ffi::c_void, pfmodified: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUriBuilder_Impl::HasBeenModified(this) { 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 1913f5f7f7..3aa5d7a095 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ComponentServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ComponentServices/mod.rs @@ -93,13 +93,13 @@ pub const AppDomainHelper: windows_core::GUID = windows_core::GUID::from_u128(0x #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct ApplicationProcessRecycleInfo { - pub IsRecyclable: super::super::Foundation::BOOL, - pub IsRecycled: super::super::Foundation::BOOL, + pub IsRecyclable: windows_core::BOOL, + pub IsRecycled: windows_core::BOOL, pub TimeRecycled: super::super::Foundation::FILETIME, pub TimeToTerminate: super::super::Foundation::FILETIME, pub RecycleReasonCode: i32, - pub IsPendingRecycle: super::super::Foundation::BOOL, - pub HasAutomaticLifetimeRecycling: super::super::Foundation::BOOL, + pub IsPendingRecycle: windows_core::BOOL, + pub HasAutomaticLifetimeRecycling: windows_core::BOOL, pub TimeForAutomaticRecycling: super::super::Foundation::FILETIME, pub MemoryLimitInKB: u32, pub MemoryUsageInKBLastCheck: u32, @@ -139,9 +139,9 @@ pub struct ApplicationProcessSummary { pub ProcessId: u32, pub Type: COMPLUS_APPTYPE, pub ProcessExeName: windows_core::PWSTR, - pub IsService: super::super::Foundation::BOOL, - pub IsPaused: super::super::Foundation::BOOL, - pub IsRecycled: super::super::Foundation::BOOL, + pub IsService: windows_core::BOOL, + pub IsPaused: windows_core::BOOL, + pub IsRecycled: windows_core::BOOL, } impl Default for ApplicationProcessSummary { fn default() -> Self { @@ -600,8 +600,8 @@ pub const ComSystemAppEventData: windows_core::GUID = windows_core::GUID::from_u #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct ComponentHangMonitorInfo { - pub IsMonitored: super::super::Foundation::BOOL, - pub TerminateOnHang: super::super::Foundation::BOOL, + pub IsMonitored: windows_core::BOOL, + pub TerminateOnHang: windows_core::BOOL, pub AvgCallThresholdInMs: u32, } impl Default for ComponentHangMonitorInfo { @@ -924,8 +924,8 @@ pub const GetSecurityCallContextAppObject: windows_core::GUID = windows_core::GU #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct HANG_INFO { - pub fAppHangMonitorEnabled: super::super::Foundation::BOOL, - pub fTerminateOnHang: super::super::Foundation::BOOL, + pub fAppHangMonitorEnabled: windows_core::BOOL, + pub fTerminateOnHang: windows_core::BOOL, pub DumpType: DUMPTYPE, pub dwHangTimeout: u32, pub dwDumpCount: u32, @@ -2832,14 +2832,14 @@ pub struct IComApp2Events_Vtbl { pub OnAppActivation2: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID, windows_core::GUID) -> windows_core::HRESULT, pub OnAppShutdown2: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID) -> windows_core::HRESULT, pub OnAppForceShutdown2: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID) -> windows_core::HRESULT, - pub OnAppPaused2: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnAppPaused2: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID, windows_core::BOOL) -> windows_core::HRESULT, pub OnAppRecycle2: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID, windows_core::GUID, i32) -> windows_core::HRESULT, } pub trait IComApp2Events_Impl: windows_core::IUnknownImpl { fn OnAppActivation2(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: &windows_core::GUID, guidprocess: &windows_core::GUID) -> windows_core::Result<()>; fn OnAppShutdown2(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: &windows_core::GUID) -> windows_core::Result<()>; fn OnAppForceShutdown2(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: &windows_core::GUID) -> windows_core::Result<()>; - fn OnAppPaused2(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: &windows_core::GUID, bpaused: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnAppPaused2(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: &windows_core::GUID, bpaused: windows_core::BOOL) -> windows_core::Result<()>; fn OnAppRecycle2(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: &windows_core::GUID, guidprocess: &windows_core::GUID, lreason: i32) -> windows_core::Result<()>; } impl IComApp2Events_Vtbl { @@ -2862,7 +2862,7 @@ impl IComApp2Events_Vtbl { IComApp2Events_Impl::OnAppForceShutdown2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidapp)).into() } } - unsafe extern "system" fn OnAppPaused2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID, bpaused: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnAppPaused2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: windows_core::GUID, bpaused: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComApp2Events_Impl::OnAppPaused2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidapp), core::mem::transmute_copy(&bpaused)).into() @@ -3008,10 +3008,10 @@ pub struct IComCRMEvents_Vtbl { pub OnCRMDone: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID) -> windows_core::HRESULT, pub OnCRMRelease: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID) -> windows_core::HRESULT, pub OnCRMAnalyze: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID, u32, u32) -> windows_core::HRESULT, - pub OnCRMWrite: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID, super::super::Foundation::BOOL, u32) -> windows_core::HRESULT, + pub OnCRMWrite: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID, windows_core::BOOL, u32) -> windows_core::HRESULT, pub OnCRMForget: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID) -> windows_core::HRESULT, pub OnCRMForce: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID) -> windows_core::HRESULT, - pub OnCRMDeliver: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID, super::super::Foundation::BOOL, u32) -> windows_core::HRESULT, + pub OnCRMDeliver: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID, windows_core::BOOL, u32) -> windows_core::HRESULT, } pub trait IComCRMEvents_Impl: windows_core::IUnknownImpl { fn OnCRMRecoveryStart(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: &windows_core::GUID) -> windows_core::Result<()>; @@ -3025,10 +3025,10 @@ pub trait IComCRMEvents_Impl: windows_core::IUnknownImpl { fn OnCRMDone(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: &windows_core::GUID) -> windows_core::Result<()>; fn OnCRMRelease(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: &windows_core::GUID) -> windows_core::Result<()>; fn OnCRMAnalyze(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: &windows_core::GUID, dwcrmrecordtype: u32, dwrecordsize: u32) -> windows_core::Result<()>; - fn OnCRMWrite(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: &windows_core::GUID, fvariants: super::super::Foundation::BOOL, dwrecordsize: u32) -> windows_core::Result<()>; + fn OnCRMWrite(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: &windows_core::GUID, fvariants: windows_core::BOOL, dwrecordsize: u32) -> windows_core::Result<()>; fn OnCRMForget(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: &windows_core::GUID) -> windows_core::Result<()>; fn OnCRMForce(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: &windows_core::GUID) -> windows_core::Result<()>; - fn OnCRMDeliver(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: &windows_core::GUID, fvariants: super::super::Foundation::BOOL, dwrecordsize: u32) -> windows_core::Result<()>; + fn OnCRMDeliver(&self, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: &windows_core::GUID, fvariants: windows_core::BOOL, dwrecordsize: u32) -> windows_core::Result<()>; } impl IComCRMEvents_Vtbl { pub const fn new() -> Self { @@ -3098,7 +3098,7 @@ impl IComCRMEvents_Vtbl { IComCRMEvents_Impl::OnCRMAnalyze(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidclerkclsid), core::mem::transmute_copy(&dwcrmrecordtype), core::mem::transmute_copy(&dwrecordsize)).into() } } - unsafe extern "system" fn OnCRMWrite(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID, fvariants: super::super::Foundation::BOOL, dwrecordsize: u32) -> windows_core::HRESULT { + unsafe extern "system" fn OnCRMWrite(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID, fvariants: windows_core::BOOL, dwrecordsize: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComCRMEvents_Impl::OnCRMWrite(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidclerkclsid), core::mem::transmute_copy(&fvariants), core::mem::transmute_copy(&dwrecordsize)).into() @@ -3116,7 +3116,7 @@ impl IComCRMEvents_Vtbl { IComCRMEvents_Impl::OnCRMForce(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidclerkclsid)).into() } } - unsafe extern "system" fn OnCRMDeliver(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID, fvariants: super::super::Foundation::BOOL, dwrecordsize: u32) -> windows_core::HRESULT { + unsafe extern "system" fn OnCRMDeliver(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: windows_core::GUID, fvariants: windows_core::BOOL, dwrecordsize: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComCRMEvents_Impl::OnCRMDeliver(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidclerkclsid), core::mem::transmute_copy(&fvariants), core::mem::transmute_copy(&dwrecordsize)).into() @@ -3326,28 +3326,28 @@ impl IComLTxEvents { #[repr(C)] pub struct IComLTxEvents_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnLtxTransactionStart: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID, windows_core::GUID, super::super::Foundation::BOOL, i32) -> windows_core::HRESULT, - pub OnLtxTransactionPrepare: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnLtxTransactionStart: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID, windows_core::GUID, windows_core::BOOL, i32) -> windows_core::HRESULT, + pub OnLtxTransactionPrepare: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID, windows_core::BOOL) -> windows_core::HRESULT, pub OnLtxTransactionAbort: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID) -> windows_core::HRESULT, pub OnLtxTransactionCommit: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID) -> windows_core::HRESULT, pub OnLtxTransactionPromote: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, windows_core::GUID, windows_core::GUID) -> windows_core::HRESULT, } pub trait IComLTxEvents_Impl: windows_core::IUnknownImpl { - fn OnLtxTransactionStart(&self, pinfo: *const COMSVCSEVENTINFO, guidltx: &windows_core::GUID, tsid: &windows_core::GUID, froot: super::super::Foundation::BOOL, nisolationlevel: i32) -> windows_core::Result<()>; - fn OnLtxTransactionPrepare(&self, pinfo: *const COMSVCSEVENTINFO, guidltx: &windows_core::GUID, fvote: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnLtxTransactionStart(&self, pinfo: *const COMSVCSEVENTINFO, guidltx: &windows_core::GUID, tsid: &windows_core::GUID, froot: windows_core::BOOL, nisolationlevel: i32) -> windows_core::Result<()>; + fn OnLtxTransactionPrepare(&self, pinfo: *const COMSVCSEVENTINFO, guidltx: &windows_core::GUID, fvote: windows_core::BOOL) -> windows_core::Result<()>; fn OnLtxTransactionAbort(&self, pinfo: *const COMSVCSEVENTINFO, guidltx: &windows_core::GUID) -> windows_core::Result<()>; fn OnLtxTransactionCommit(&self, pinfo: *const COMSVCSEVENTINFO, guidltx: &windows_core::GUID) -> windows_core::Result<()>; fn OnLtxTransactionPromote(&self, pinfo: *const COMSVCSEVENTINFO, guidltx: &windows_core::GUID, txnid: &windows_core::GUID) -> windows_core::Result<()>; } impl IComLTxEvents_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnLtxTransactionStart(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID, tsid: windows_core::GUID, froot: super::super::Foundation::BOOL, nisolationlevel: i32) -> windows_core::HRESULT { + unsafe extern "system" fn OnLtxTransactionStart(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID, tsid: windows_core::GUID, froot: windows_core::BOOL, nisolationlevel: i32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComLTxEvents_Impl::OnLtxTransactionStart(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidltx), core::mem::transmute(&tsid), core::mem::transmute_copy(&froot), core::mem::transmute_copy(&nisolationlevel)).into() } } - unsafe extern "system" fn OnLtxTransactionPrepare(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID, fvote: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnLtxTransactionPrepare(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidltx: windows_core::GUID, fvote: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComLTxEvents_Impl::OnLtxTransactionPrepare(this, core::mem::transmute_copy(&pinfo), core::mem::transmute(&guidltx), core::mem::transmute_copy(&fvote)).into() @@ -4106,28 +4106,28 @@ impl IComResourceEvents { #[repr(C)] pub struct IComResourceEvents_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnResourceCreate: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, u64, windows_core::PCWSTR, u64, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OnResourceAllocate: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, u64, windows_core::PCWSTR, u64, super::super::Foundation::BOOL, u32, u32) -> windows_core::HRESULT, + pub OnResourceCreate: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, u64, windows_core::PCWSTR, u64, windows_core::BOOL) -> windows_core::HRESULT, + pub OnResourceAllocate: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, u64, windows_core::PCWSTR, u64, windows_core::BOOL, u32, u32) -> windows_core::HRESULT, pub OnResourceRecycle: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, u64, windows_core::PCWSTR, u64) -> windows_core::HRESULT, pub OnResourceDestroy: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, u64, windows_core::HRESULT, windows_core::PCWSTR, u64) -> windows_core::HRESULT, - pub OnResourceTrack: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, u64, windows_core::PCWSTR, u64, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnResourceTrack: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, u64, windows_core::PCWSTR, u64, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IComResourceEvents_Impl: windows_core::IUnknownImpl { - fn OnResourceCreate(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: &windows_core::PCWSTR, resid: u64, enlisted: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OnResourceAllocate(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: &windows_core::PCWSTR, resid: u64, enlisted: super::super::Foundation::BOOL, numrated: u32, rating: u32) -> windows_core::Result<()>; + fn OnResourceCreate(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: &windows_core::PCWSTR, resid: u64, enlisted: windows_core::BOOL) -> windows_core::Result<()>; + fn OnResourceAllocate(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: &windows_core::PCWSTR, resid: u64, enlisted: windows_core::BOOL, numrated: u32, rating: u32) -> windows_core::Result<()>; fn OnResourceRecycle(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: &windows_core::PCWSTR, resid: u64) -> windows_core::Result<()>; fn OnResourceDestroy(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, hr: windows_core::HRESULT, psztype: &windows_core::PCWSTR, resid: u64) -> windows_core::Result<()>; - fn OnResourceTrack(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: &windows_core::PCWSTR, resid: u64, enlisted: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnResourceTrack(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: &windows_core::PCWSTR, resid: u64, enlisted: windows_core::BOOL) -> windows_core::Result<()>; } impl IComResourceEvents_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnResourceCreate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: windows_core::PCWSTR, resid: u64, enlisted: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnResourceCreate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: windows_core::PCWSTR, resid: u64, enlisted: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComResourceEvents_Impl::OnResourceCreate(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&objectid), core::mem::transmute(&psztype), core::mem::transmute_copy(&resid), core::mem::transmute_copy(&enlisted)).into() } } - unsafe extern "system" fn OnResourceAllocate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: windows_core::PCWSTR, resid: u64, enlisted: super::super::Foundation::BOOL, numrated: u32, rating: u32) -> windows_core::HRESULT { + unsafe extern "system" fn OnResourceAllocate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: windows_core::PCWSTR, resid: u64, enlisted: windows_core::BOOL, numrated: u32, rating: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComResourceEvents_Impl::OnResourceAllocate(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&objectid), core::mem::transmute(&psztype), core::mem::transmute_copy(&resid), core::mem::transmute_copy(&enlisted), core::mem::transmute_copy(&numrated), core::mem::transmute_copy(&rating)).into() @@ -4145,7 +4145,7 @@ impl IComResourceEvents_Vtbl { IComResourceEvents_Impl::OnResourceDestroy(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&objectid), core::mem::transmute_copy(&hr), core::mem::transmute(&psztype), core::mem::transmute_copy(&resid)).into() } } - unsafe extern "system" fn OnResourceTrack(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: windows_core::PCWSTR, resid: u64, enlisted: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnResourceTrack(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: windows_core::PCWSTR, resid: u64, enlisted: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComResourceEvents_Impl::OnResourceTrack(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&objectid), core::mem::transmute(&psztype), core::mem::transmute_copy(&resid), core::mem::transmute_copy(&enlisted)).into() @@ -4178,22 +4178,22 @@ impl IComSecurityEvents { #[repr(C)] pub struct IComSecurityEvents_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnAuthenticate: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, *const windows_core::GUID, u64, *const windows_core::GUID, u32, u32, *const u8, u32, *const u8, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OnAuthenticateFail: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, *const windows_core::GUID, u64, *const windows_core::GUID, u32, u32, *const u8, u32, *const u8, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnAuthenticate: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, *const windows_core::GUID, u64, *const windows_core::GUID, u32, u32, *const u8, u32, *const u8, windows_core::BOOL) -> windows_core::HRESULT, + pub OnAuthenticateFail: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, *const windows_core::GUID, u64, *const windows_core::GUID, u32, u32, *const u8, u32, *const u8, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IComSecurityEvents_Impl: windows_core::IUnknownImpl { - fn OnAuthenticate(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, objectid: u64, guidiid: *const windows_core::GUID, imeth: u32, cbbyteorig: u32, psidoriginaluser: *const u8, cbbytecur: u32, psidcurrentuser: *const u8, bcurrentuserinpersonatinginproc: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OnAuthenticateFail(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, objectid: u64, guidiid: *const windows_core::GUID, imeth: u32, cbbyteorig: u32, psidoriginaluser: *const u8, cbbytecur: u32, psidcurrentuser: *const u8, bcurrentuserinpersonatinginproc: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnAuthenticate(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, objectid: u64, guidiid: *const windows_core::GUID, imeth: u32, cbbyteorig: u32, psidoriginaluser: *const u8, cbbytecur: u32, psidcurrentuser: *const u8, bcurrentuserinpersonatinginproc: windows_core::BOOL) -> windows_core::Result<()>; + fn OnAuthenticateFail(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, objectid: u64, guidiid: *const windows_core::GUID, imeth: u32, cbbyteorig: u32, psidoriginaluser: *const u8, cbbytecur: u32, psidcurrentuser: *const u8, bcurrentuserinpersonatinginproc: windows_core::BOOL) -> windows_core::Result<()>; } impl IComSecurityEvents_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnAuthenticate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, objectid: u64, guidiid: *const windows_core::GUID, imeth: u32, cbbyteorig: u32, psidoriginaluser: *const u8, cbbytecur: u32, psidcurrentuser: *const u8, bcurrentuserinpersonatinginproc: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnAuthenticate(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, objectid: u64, guidiid: *const windows_core::GUID, imeth: u32, cbbyteorig: u32, psidoriginaluser: *const u8, cbbytecur: u32, psidcurrentuser: *const u8, bcurrentuserinpersonatinginproc: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComSecurityEvents_Impl::OnAuthenticate(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidactivity), core::mem::transmute_copy(&objectid), core::mem::transmute_copy(&guidiid), core::mem::transmute_copy(&imeth), core::mem::transmute_copy(&cbbyteorig), core::mem::transmute_copy(&psidoriginaluser), core::mem::transmute_copy(&cbbytecur), core::mem::transmute_copy(&psidcurrentuser), core::mem::transmute_copy(&bcurrentuserinpersonatinginproc)).into() } } - unsafe extern "system" fn OnAuthenticateFail(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, objectid: u64, guidiid: *const windows_core::GUID, imeth: u32, cbbyteorig: u32, psidoriginaluser: *const u8, cbbytecur: u32, psidcurrentuser: *const u8, bcurrentuserinpersonatinginproc: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnAuthenticateFail(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const windows_core::GUID, objectid: u64, guidiid: *const windows_core::GUID, imeth: u32, cbbyteorig: u32, psidoriginaluser: *const u8, cbbytecur: u32, psidcurrentuser: *const u8, bcurrentuserinpersonatinginproc: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComSecurityEvents_Impl::OnAuthenticateFail(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidactivity), core::mem::transmute_copy(&objectid), core::mem::transmute_copy(&guidiid), core::mem::transmute_copy(&imeth), core::mem::transmute_copy(&cbbyteorig), core::mem::transmute_copy(&psidoriginaluser), core::mem::transmute_copy(&cbbytecur), core::mem::transmute_copy(&psidcurrentuser), core::mem::transmute_copy(&bcurrentuserinpersonatinginproc)).into() @@ -4435,7 +4435,7 @@ impl IComStaThreadPoolKnobs2 { pub unsafe fn SetMaxCPULoad(&self, pdwload: i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetMaxCPULoad)(windows_core::Interface::as_raw(self), pdwload).ok() } } - pub unsafe fn GetCPUMetricEnabled(&self) -> windows_core::Result { + pub unsafe fn GetCPUMetricEnabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCPUMetricEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4444,7 +4444,7 @@ impl IComStaThreadPoolKnobs2 { pub unsafe fn SetCPUMetricEnabled(&self, bmetricenabled: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetCPUMetricEnabled)(windows_core::Interface::as_raw(self), bmetricenabled.into()).ok() } } - pub unsafe fn GetCreateThreadsAggressively(&self) -> windows_core::Result { + pub unsafe fn GetCreateThreadsAggressively(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCreateThreadsAggressively)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4477,10 +4477,10 @@ pub struct IComStaThreadPoolKnobs2_Vtbl { pub base__: IComStaThreadPoolKnobs_Vtbl, pub GetMaxCPULoad: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetMaxCPULoad: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, - pub GetCPUMetricEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetCPUMetricEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetCreateThreadsAggressively: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetCreateThreadsAggressively: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetCPUMetricEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetCPUMetricEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetCreateThreadsAggressively: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetCreateThreadsAggressively: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetMaxCSR: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetMaxCSR: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub GetWaitTimeForThreadCleanup: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -4489,10 +4489,10 @@ pub struct IComStaThreadPoolKnobs2_Vtbl { pub trait IComStaThreadPoolKnobs2_Impl: IComStaThreadPoolKnobs_Impl { fn GetMaxCPULoad(&self) -> windows_core::Result; fn SetMaxCPULoad(&self, pdwload: i32) -> windows_core::Result<()>; - fn GetCPUMetricEnabled(&self) -> windows_core::Result; - fn SetCPUMetricEnabled(&self, bmetricenabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetCreateThreadsAggressively(&self) -> windows_core::Result; - fn SetCreateThreadsAggressively(&self, bmetricenabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetCPUMetricEnabled(&self) -> windows_core::Result; + fn SetCPUMetricEnabled(&self, bmetricenabled: windows_core::BOOL) -> windows_core::Result<()>; + fn GetCreateThreadsAggressively(&self) -> windows_core::Result; + fn SetCreateThreadsAggressively(&self, bmetricenabled: windows_core::BOOL) -> windows_core::Result<()>; fn GetMaxCSR(&self) -> windows_core::Result; fn SetMaxCSR(&self, dwcsr: i32) -> windows_core::Result<()>; fn GetWaitTimeForThreadCleanup(&self) -> windows_core::Result; @@ -4518,7 +4518,7 @@ impl IComStaThreadPoolKnobs2_Vtbl { IComStaThreadPoolKnobs2_Impl::SetMaxCPULoad(this, core::mem::transmute_copy(&pdwload)).into() } } - unsafe extern "system" fn GetCPUMetricEnabled(this: *mut core::ffi::c_void, pbmetricenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetCPUMetricEnabled(this: *mut core::ffi::c_void, pbmetricenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComStaThreadPoolKnobs2_Impl::GetCPUMetricEnabled(this) { @@ -4530,13 +4530,13 @@ impl IComStaThreadPoolKnobs2_Vtbl { } } } - unsafe extern "system" fn SetCPUMetricEnabled(this: *mut core::ffi::c_void, bmetricenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetCPUMetricEnabled(this: *mut core::ffi::c_void, bmetricenabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComStaThreadPoolKnobs2_Impl::SetCPUMetricEnabled(this, core::mem::transmute_copy(&bmetricenabled)).into() } } - unsafe extern "system" fn GetCreateThreadsAggressively(this: *mut core::ffi::c_void, pbmetricenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetCreateThreadsAggressively(this: *mut core::ffi::c_void, pbmetricenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IComStaThreadPoolKnobs2_Impl::GetCreateThreadsAggressively(this) { @@ -4548,7 +4548,7 @@ impl IComStaThreadPoolKnobs2_Vtbl { } } } - unsafe extern "system" fn SetCreateThreadsAggressively(this: *mut core::ffi::c_void, bmetricenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetCreateThreadsAggressively(this: *mut core::ffi::c_void, bmetricenabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComStaThreadPoolKnobs2_Impl::SetCreateThreadsAggressively(this, core::mem::transmute_copy(&bmetricenabled)).into() @@ -5001,26 +5001,26 @@ impl IComTransaction2Events { #[repr(C)] pub struct IComTransaction2Events_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnTransactionStart2: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, *const windows_core::GUID, *const windows_core::GUID, super::super::Foundation::BOOL, i32) -> windows_core::HRESULT, - pub OnTransactionPrepare2: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, *const windows_core::GUID, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnTransactionStart2: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, *const windows_core::GUID, *const windows_core::GUID, windows_core::BOOL, i32) -> windows_core::HRESULT, + pub OnTransactionPrepare2: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, *const windows_core::GUID, windows_core::BOOL) -> windows_core::HRESULT, pub OnTransactionAbort2: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, *const windows_core::GUID) -> windows_core::HRESULT, pub OnTransactionCommit2: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, *const windows_core::GUID) -> windows_core::HRESULT, } pub trait IComTransaction2Events_Impl: windows_core::IUnknownImpl { - fn OnTransactionStart2(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, tsid: *const windows_core::GUID, froot: super::super::Foundation::BOOL, nisolationlevel: i32) -> windows_core::Result<()>; - fn OnTransactionPrepare2(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, fvoteyes: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnTransactionStart2(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, tsid: *const windows_core::GUID, froot: windows_core::BOOL, nisolationlevel: i32) -> windows_core::Result<()>; + fn OnTransactionPrepare2(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, fvoteyes: windows_core::BOOL) -> windows_core::Result<()>; fn OnTransactionAbort2(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID) -> windows_core::Result<()>; fn OnTransactionCommit2(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID) -> windows_core::Result<()>; } impl IComTransaction2Events_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnTransactionStart2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, tsid: *const windows_core::GUID, froot: super::super::Foundation::BOOL, nisolationlevel: i32) -> windows_core::HRESULT { + unsafe extern "system" fn OnTransactionStart2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, tsid: *const windows_core::GUID, froot: windows_core::BOOL, nisolationlevel: i32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComTransaction2Events_Impl::OnTransactionStart2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidtx), core::mem::transmute_copy(&tsid), core::mem::transmute_copy(&froot), core::mem::transmute_copy(&nisolationlevel)).into() } } - unsafe extern "system" fn OnTransactionPrepare2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, fvoteyes: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnTransactionPrepare2(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, fvoteyes: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComTransaction2Events_Impl::OnTransactionPrepare2(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidtx), core::mem::transmute_copy(&fvoteyes)).into() @@ -5070,26 +5070,26 @@ impl IComTransactionEvents { #[repr(C)] pub struct IComTransactionEvents_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnTransactionStart: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, *const windows_core::GUID, *const windows_core::GUID, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OnTransactionPrepare: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, *const windows_core::GUID, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnTransactionStart: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, *const windows_core::GUID, *const windows_core::GUID, windows_core::BOOL) -> windows_core::HRESULT, + pub OnTransactionPrepare: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, *const windows_core::GUID, windows_core::BOOL) -> windows_core::HRESULT, pub OnTransactionAbort: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, *const windows_core::GUID) -> windows_core::HRESULT, pub OnTransactionCommit: unsafe extern "system" fn(*mut core::ffi::c_void, *const COMSVCSEVENTINFO, *const windows_core::GUID) -> windows_core::HRESULT, } pub trait IComTransactionEvents_Impl: windows_core::IUnknownImpl { - fn OnTransactionStart(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, tsid: *const windows_core::GUID, froot: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OnTransactionPrepare(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, fvoteyes: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnTransactionStart(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, tsid: *const windows_core::GUID, froot: windows_core::BOOL) -> windows_core::Result<()>; + fn OnTransactionPrepare(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, fvoteyes: windows_core::BOOL) -> windows_core::Result<()>; fn OnTransactionAbort(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID) -> windows_core::Result<()>; fn OnTransactionCommit(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID) -> windows_core::Result<()>; } impl IComTransactionEvents_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnTransactionStart(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, tsid: *const windows_core::GUID, froot: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnTransactionStart(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, tsid: *const windows_core::GUID, froot: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComTransactionEvents_Impl::OnTransactionStart(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidtx), core::mem::transmute_copy(&tsid), core::mem::transmute_copy(&froot)).into() } } - unsafe extern "system" fn OnTransactionPrepare(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, fvoteyes: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnTransactionPrepare(this: *mut core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const windows_core::GUID, fvoteyes: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IComTransactionEvents_Impl::OnTransactionPrepare(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&guidtx), core::mem::transmute_copy(&fvoteyes)).into() @@ -5261,7 +5261,7 @@ impl windows_core::RuntimeName for IContextProperties {} windows_core::imp::define_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<()> { + pub unsafe fn GetPerimeterFlag(&self, pflag: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetPerimeterFlag)(windows_core::Interface::as_raw(self), pflag as _).ok() } } pub unsafe fn SetPerimeterFlag(&self, fflag: bool) -> windows_core::Result<()> { @@ -5271,22 +5271,22 @@ impl IContextSecurityPerimeter { #[repr(C)] pub struct IContextSecurityPerimeter_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetPerimeterFlag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetPerimeterFlag: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetPerimeterFlag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetPerimeterFlag: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IContextSecurityPerimeter_Impl: windows_core::IUnknownImpl { - fn GetPerimeterFlag(&self, pflag: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetPerimeterFlag(&self, fflag: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetPerimeterFlag(&self, pflag: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn SetPerimeterFlag(&self, fflag: windows_core::BOOL) -> windows_core::Result<()>; } impl IContextSecurityPerimeter_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetPerimeterFlag(this: *mut core::ffi::c_void, pflag: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetPerimeterFlag(this: *mut core::ffi::c_void, pflag: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextSecurityPerimeter_Impl::GetPerimeterFlag(this, core::mem::transmute_copy(&pflag)).into() } } - unsafe extern "system" fn SetPerimeterFlag(this: *mut core::ffi::c_void, fflag: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetPerimeterFlag(this: *mut core::ffi::c_void, fflag: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContextSecurityPerimeter_Impl::SetPerimeterFlag(this, core::mem::transmute_copy(&fflag)).into() @@ -5494,13 +5494,13 @@ impl ICrmCompensator { unsafe { (windows_core::Interface::vtable(self).BeginPrepare)(windows_core::Interface::as_raw(self)).ok() } } #[cfg(feature = "Win32_System_Com")] - pub unsafe fn PrepareRecord(&self, crmlogrec: CrmLogRecordRead) -> windows_core::Result { + pub unsafe fn PrepareRecord(&self, crmlogrec: CrmLogRecordRead) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).PrepareRecord)(windows_core::Interface::as_raw(self), core::mem::transmute(crmlogrec), &mut result__).map(|| result__) } } - pub unsafe fn EndPrepare(&self) -> windows_core::Result { + pub unsafe fn EndPrepare(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).EndPrepare)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -5510,7 +5510,7 @@ impl ICrmCompensator { unsafe { (windows_core::Interface::vtable(self).BeginCommit)(windows_core::Interface::as_raw(self), frecovery.into()).ok() } } #[cfg(feature = "Win32_System_Com")] - pub unsafe fn CommitRecord(&self, crmlogrec: CrmLogRecordRead) -> windows_core::Result { + pub unsafe fn CommitRecord(&self, crmlogrec: CrmLogRecordRead) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CommitRecord)(windows_core::Interface::as_raw(self), core::mem::transmute(crmlogrec), &mut result__).map(|| result__) @@ -5523,7 +5523,7 @@ impl ICrmCompensator { unsafe { (windows_core::Interface::vtable(self).BeginAbort)(windows_core::Interface::as_raw(self), frecovery.into()).ok() } } #[cfg(feature = "Win32_System_Com")] - pub unsafe fn AbortRecord(&self, crmlogrec: CrmLogRecordRead) -> windows_core::Result { + pub unsafe fn AbortRecord(&self, crmlogrec: CrmLogRecordRead) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AbortRecord)(windows_core::Interface::as_raw(self), core::mem::transmute(crmlogrec), &mut result__).map(|| result__) @@ -5539,19 +5539,19 @@ pub struct ICrmCompensator_Vtbl { pub SetLogControl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub BeginPrepare: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub PrepareRecord: unsafe extern "system" fn(*mut core::ffi::c_void, CrmLogRecordRead, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub PrepareRecord: unsafe extern "system" fn(*mut core::ffi::c_void, CrmLogRecordRead, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] PrepareRecord: usize, - pub EndPrepare: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub BeginCommit: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EndPrepare: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub BeginCommit: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub CommitRecord: unsafe extern "system" fn(*mut core::ffi::c_void, CrmLogRecordRead, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CommitRecord: unsafe extern "system" fn(*mut core::ffi::c_void, CrmLogRecordRead, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CommitRecord: usize, pub EndCommit: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub BeginAbort: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub BeginAbort: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub AbortRecord: unsafe extern "system" fn(*mut core::ffi::c_void, CrmLogRecordRead, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AbortRecord: unsafe extern "system" fn(*mut core::ffi::c_void, CrmLogRecordRead, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] AbortRecord: usize, pub EndAbort: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -5560,13 +5560,13 @@ pub struct ICrmCompensator_Vtbl { pub trait ICrmCompensator_Impl: windows_core::IUnknownImpl { fn SetLogControl(&self, plogcontrol: windows_core::Ref) -> windows_core::Result<()>; fn BeginPrepare(&self) -> windows_core::Result<()>; - fn PrepareRecord(&self, crmlogrec: &CrmLogRecordRead) -> windows_core::Result; - fn EndPrepare(&self) -> windows_core::Result; - fn BeginCommit(&self, frecovery: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn CommitRecord(&self, crmlogrec: &CrmLogRecordRead) -> windows_core::Result; + fn PrepareRecord(&self, crmlogrec: &CrmLogRecordRead) -> windows_core::Result; + fn EndPrepare(&self) -> windows_core::Result; + fn BeginCommit(&self, frecovery: windows_core::BOOL) -> windows_core::Result<()>; + fn CommitRecord(&self, crmlogrec: &CrmLogRecordRead) -> windows_core::Result; fn EndCommit(&self) -> windows_core::Result<()>; - fn BeginAbort(&self, frecovery: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn AbortRecord(&self, crmlogrec: &CrmLogRecordRead) -> windows_core::Result; + fn BeginAbort(&self, frecovery: windows_core::BOOL) -> windows_core::Result<()>; + fn AbortRecord(&self, crmlogrec: &CrmLogRecordRead) -> windows_core::Result; fn EndAbort(&self) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] @@ -5584,7 +5584,7 @@ impl ICrmCompensator_Vtbl { ICrmCompensator_Impl::BeginPrepare(this).into() } } - unsafe extern "system" fn PrepareRecord(this: *mut core::ffi::c_void, crmlogrec: CrmLogRecordRead, pfforget: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn PrepareRecord(this: *mut core::ffi::c_void, crmlogrec: CrmLogRecordRead, pfforget: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmCompensator_Impl::PrepareRecord(this, core::mem::transmute(&crmlogrec)) { @@ -5596,7 +5596,7 @@ impl ICrmCompensator_Vtbl { } } } - unsafe extern "system" fn EndPrepare(this: *mut core::ffi::c_void, pfoktoprepare: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EndPrepare(this: *mut core::ffi::c_void, pfoktoprepare: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmCompensator_Impl::EndPrepare(this) { @@ -5608,13 +5608,13 @@ impl ICrmCompensator_Vtbl { } } } - unsafe extern "system" fn BeginCommit(this: *mut core::ffi::c_void, frecovery: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn BeginCommit(this: *mut core::ffi::c_void, frecovery: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmCompensator_Impl::BeginCommit(this, core::mem::transmute_copy(&frecovery)).into() } } - unsafe extern "system" fn CommitRecord(this: *mut core::ffi::c_void, crmlogrec: CrmLogRecordRead, pfforget: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CommitRecord(this: *mut core::ffi::c_void, crmlogrec: CrmLogRecordRead, pfforget: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmCompensator_Impl::CommitRecord(this, core::mem::transmute(&crmlogrec)) { @@ -5632,13 +5632,13 @@ impl ICrmCompensator_Vtbl { ICrmCompensator_Impl::EndCommit(this).into() } } - unsafe extern "system" fn BeginAbort(this: *mut core::ffi::c_void, frecovery: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn BeginAbort(this: *mut core::ffi::c_void, frecovery: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICrmCompensator_Impl::BeginAbort(this, core::mem::transmute_copy(&frecovery)).into() } } - unsafe extern "system" fn AbortRecord(this: *mut core::ffi::c_void, crmlogrec: CrmLogRecordRead, pfforget: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AbortRecord(this: *mut core::ffi::c_void, crmlogrec: CrmLogRecordRead, pfforget: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICrmCompensator_Impl::AbortRecord(this, core::mem::transmute(&crmlogrec)) { @@ -6550,7 +6550,7 @@ impl IDispenserDriver { pub struct IDispenserDriver_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub CreateResource: unsafe extern "system" fn(*mut core::ffi::c_void, usize, *mut usize, *mut i32) -> windows_core::HRESULT, - pub RateResource: unsafe extern "system" fn(*mut core::ffi::c_void, usize, usize, super::super::Foundation::BOOL, *mut u32) -> windows_core::HRESULT, + pub RateResource: unsafe extern "system" fn(*mut core::ffi::c_void, usize, usize, windows_core::BOOL, *mut u32) -> windows_core::HRESULT, pub EnlistResource: unsafe extern "system" fn(*mut core::ffi::c_void, usize, usize) -> windows_core::HRESULT, pub ResetResource: unsafe extern "system" fn(*mut core::ffi::c_void, usize) -> windows_core::HRESULT, pub DestroyResource: unsafe extern "system" fn(*mut core::ffi::c_void, usize) -> windows_core::HRESULT, @@ -6558,7 +6558,7 @@ pub struct IDispenserDriver_Vtbl { } pub trait IDispenserDriver_Impl: windows_core::IUnknownImpl { fn CreateResource(&self, restypid: usize, presid: *mut usize, psecsfreebeforedestroy: *mut i32) -> windows_core::Result<()>; - fn RateResource(&self, restypid: usize, resid: usize, frequirestransactionenlistment: super::super::Foundation::BOOL, prating: *mut u32) -> windows_core::Result<()>; + fn RateResource(&self, restypid: usize, resid: usize, frequirestransactionenlistment: windows_core::BOOL, prating: *mut u32) -> windows_core::Result<()>; fn EnlistResource(&self, resid: usize, transid: usize) -> windows_core::Result<()>; fn ResetResource(&self, resid: usize) -> windows_core::Result<()>; fn DestroyResource(&self, resid: usize) -> windows_core::Result<()>; @@ -6572,7 +6572,7 @@ impl IDispenserDriver_Vtbl { IDispenserDriver_Impl::CreateResource(this, core::mem::transmute_copy(&restypid), core::mem::transmute_copy(&presid), core::mem::transmute_copy(&psecsfreebeforedestroy)).into() } } - unsafe extern "system" fn RateResource(this: *mut core::ffi::c_void, restypid: usize, resid: usize, frequirestransactionenlistment: super::super::Foundation::BOOL, prating: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn RateResource(this: *mut core::ffi::c_void, restypid: usize, resid: usize, frequirestransactionenlistment: windows_core::BOOL, prating: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDispenserDriver_Impl::RateResource(this, core::mem::transmute_copy(&restypid), core::mem::transmute_copy(&resid), core::mem::transmute_copy(&frequirestransactionenlistment), core::mem::transmute_copy(&prating)).into() @@ -6830,7 +6830,7 @@ 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<()> { unsafe { (windows_core::Interface::vtable(self).GetApplicationProcesses)(windows_core::Interface::as_raw(self), partitionid, applicationid, flags, numapplicationprocesses as _, applicationprocesses as _).ok() } } - pub unsafe fn GetApplicationProcessDetails(&self, applicationinstanceid: *const windows_core::GUID, processid: u32, flags: u32, summary: Option<*mut ApplicationProcessSummary>, statistics: Option<*mut ApplicationProcessStatistics>, recycleinfo: Option<*mut ApplicationProcessRecycleInfo>, anycomponentshangmonitored: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { + pub unsafe fn GetApplicationProcessDetails(&self, applicationinstanceid: *const windows_core::GUID, processid: u32, flags: u32, summary: Option<*mut ApplicationProcessSummary>, statistics: Option<*mut ApplicationProcessStatistics>, recycleinfo: Option<*mut ApplicationProcessRecycleInfo>, anycomponentshangmonitored: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetApplicationProcessDetails)(windows_core::Interface::as_raw(self), applicationinstanceid, processid, flags, summary.unwrap_or(core::mem::zeroed()) as _, statistics.unwrap_or(core::mem::zeroed()) as _, recycleinfo.unwrap_or(core::mem::zeroed()) as _, anycomponentshangmonitored.unwrap_or(core::mem::zeroed()) as _).ok() } } pub unsafe fn GetApplicationsInProcess(&self, applicationinstanceid: *const windows_core::GUID, processid: u32, partitionid: *const windows_core::GUID, flags: u32, numapplicationsinprocess: *mut u32, applications: *mut *mut ApplicationSummary) -> windows_core::Result<()> { @@ -6859,7 +6859,7 @@ impl IGetAppTrackerData { pub struct IGetAppTrackerData_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetApplicationProcesses: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const windows_core::GUID, u32, *mut u32, *mut *mut ApplicationProcessSummary) -> windows_core::HRESULT, - pub GetApplicationProcessDetails: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u32, u32, *mut ApplicationProcessSummary, *mut ApplicationProcessStatistics, *mut ApplicationProcessRecycleInfo, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetApplicationProcessDetails: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u32, u32, *mut ApplicationProcessSummary, *mut ApplicationProcessStatistics, *mut ApplicationProcessRecycleInfo, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetApplicationsInProcess: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u32, *const windows_core::GUID, u32, *mut u32, *mut *mut ApplicationSummary) -> windows_core::HRESULT, pub GetComponentsInProcess: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u32, *const windows_core::GUID, *const windows_core::GUID, u32, *mut u32, *mut *mut ComponentSummary) -> windows_core::HRESULT, pub GetComponentDetails: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u32, *const windows_core::GUID, u32, *mut ComponentSummary, *mut ComponentStatistics, *mut ComponentHangMonitorInfo) -> windows_core::HRESULT, @@ -6868,7 +6868,7 @@ pub struct IGetAppTrackerData_Vtbl { } pub trait IGetAppTrackerData_Impl: windows_core::IUnknownImpl { fn GetApplicationProcesses(&self, partitionid: *const windows_core::GUID, applicationid: *const windows_core::GUID, flags: u32, numapplicationprocesses: *mut u32, applicationprocesses: *mut *mut ApplicationProcessSummary) -> windows_core::Result<()>; - fn GetApplicationProcessDetails(&self, applicationinstanceid: *const windows_core::GUID, processid: u32, flags: u32, summary: *mut ApplicationProcessSummary, statistics: *mut ApplicationProcessStatistics, recycleinfo: *mut ApplicationProcessRecycleInfo, anycomponentshangmonitored: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetApplicationProcessDetails(&self, applicationinstanceid: *const windows_core::GUID, processid: u32, flags: u32, summary: *mut ApplicationProcessSummary, statistics: *mut ApplicationProcessStatistics, recycleinfo: *mut ApplicationProcessRecycleInfo, anycomponentshangmonitored: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetApplicationsInProcess(&self, applicationinstanceid: *const windows_core::GUID, processid: u32, partitionid: *const windows_core::GUID, flags: u32, numapplicationsinprocess: *mut u32, applications: *mut *mut ApplicationSummary) -> windows_core::Result<()>; fn GetComponentsInProcess(&self, applicationinstanceid: *const windows_core::GUID, processid: u32, partitionid: *const windows_core::GUID, applicationid: *const windows_core::GUID, flags: u32, numcomponentsinprocess: *mut u32, components: *mut *mut ComponentSummary) -> windows_core::Result<()>; fn GetComponentDetails(&self, applicationinstanceid: *const windows_core::GUID, processid: u32, clsid: *const windows_core::GUID, flags: u32, summary: *mut ComponentSummary, statistics: *mut ComponentStatistics, hangmonitorinfo: *mut ComponentHangMonitorInfo) -> windows_core::Result<()>; @@ -6883,7 +6883,7 @@ impl IGetAppTrackerData_Vtbl { IGetAppTrackerData_Impl::GetApplicationProcesses(this, core::mem::transmute_copy(&partitionid), core::mem::transmute_copy(&applicationid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&numapplicationprocesses), core::mem::transmute_copy(&applicationprocesses)).into() } } - unsafe extern "system" fn GetApplicationProcessDetails(this: *mut core::ffi::c_void, applicationinstanceid: *const windows_core::GUID, processid: u32, flags: u32, summary: *mut ApplicationProcessSummary, statistics: *mut ApplicationProcessStatistics, recycleinfo: *mut ApplicationProcessRecycleInfo, anycomponentshangmonitored: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetApplicationProcessDetails(this: *mut core::ffi::c_void, applicationinstanceid: *const windows_core::GUID, processid: u32, flags: u32, summary: *mut ApplicationProcessSummary, statistics: *mut ApplicationProcessStatistics, recycleinfo: *mut ApplicationProcessRecycleInfo, anycomponentshangmonitored: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGetAppTrackerData_Impl::GetApplicationProcessDetails(this, core::mem::transmute_copy(&applicationinstanceid), core::mem::transmute_copy(&processid), core::mem::transmute_copy(&flags), core::mem::transmute_copy(&summary), core::mem::transmute_copy(&statistics), core::mem::transmute_copy(&recycleinfo), core::mem::transmute_copy(&anycomponentshangmonitored)).into() @@ -7108,8 +7108,8 @@ pub struct IHolder_Vtbl { pub FreeResource: unsafe extern "system" fn(*mut core::ffi::c_void, usize) -> windows_core::HRESULT, pub TrackResource: unsafe extern "system" fn(*mut core::ffi::c_void, usize) -> windows_core::HRESULT, pub TrackResourceS: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16) -> windows_core::HRESULT, - pub UntrackResource: unsafe extern "system" fn(*mut core::ffi::c_void, usize, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub UntrackResourceS: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub UntrackResource: unsafe extern "system" fn(*mut core::ffi::c_void, usize, windows_core::BOOL) -> windows_core::HRESULT, + pub UntrackResourceS: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16, windows_core::BOOL) -> windows_core::HRESULT, pub Close: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub RequestDestroyResource: unsafe extern "system" fn(*mut core::ffi::c_void, usize) -> windows_core::HRESULT, } @@ -7118,8 +7118,8 @@ pub trait IHolder_Impl: windows_core::IUnknownImpl { fn FreeResource(&self, __midl__iholder0002: usize) -> windows_core::Result<()>; fn TrackResource(&self, __midl__iholder0003: usize) -> windows_core::Result<()>; fn TrackResourceS(&self, __midl__iholder0004: *mut u16) -> windows_core::Result<()>; - fn UntrackResource(&self, __midl__iholder0005: usize, __midl__iholder0006: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn UntrackResourceS(&self, __midl__iholder0007: *mut u16, __midl__iholder0008: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn UntrackResource(&self, __midl__iholder0005: usize, __midl__iholder0006: windows_core::BOOL) -> windows_core::Result<()>; + fn UntrackResourceS(&self, __midl__iholder0007: *mut u16, __midl__iholder0008: windows_core::BOOL) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; fn RequestDestroyResource(&self, __midl__iholder0009: usize) -> windows_core::Result<()>; } @@ -7149,13 +7149,13 @@ impl IHolder_Vtbl { IHolder_Impl::TrackResourceS(this, core::mem::transmute_copy(&__midl__iholder0004)).into() } } - unsafe extern "system" fn UntrackResource(this: *mut core::ffi::c_void, __midl__iholder0005: usize, __midl__iholder0006: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn UntrackResource(this: *mut core::ffi::c_void, __midl__iholder0005: usize, __midl__iholder0006: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolder_Impl::UntrackResource(this, core::mem::transmute_copy(&__midl__iholder0005), core::mem::transmute_copy(&__midl__iholder0006)).into() } } - unsafe extern "system" fn UntrackResourceS(this: *mut core::ffi::c_void, __midl__iholder0007: *mut u16, __midl__iholder0008: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn UntrackResourceS(this: *mut core::ffi::c_void, __midl__iholder0007: *mut u16, __midl__iholder0008: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHolder_Impl::UntrackResourceS(this, core::mem::transmute_copy(&__midl__iholder0007), core::mem::transmute_copy(&__midl__iholder0008)).into() @@ -7443,16 +7443,16 @@ impl IManagedActivationEvents { #[repr(C)] pub struct IManagedActivationEvents_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub CreateManagedStub: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CreateManagedStub: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub DestroyManagedStub: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IManagedActivationEvents_Impl: windows_core::IUnknownImpl { - fn CreateManagedStub(&self, pinfo: windows_core::Ref, fdist: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn CreateManagedStub(&self, pinfo: windows_core::Ref, fdist: windows_core::BOOL) -> windows_core::Result<()>; fn DestroyManagedStub(&self, pinfo: windows_core::Ref) -> windows_core::Result<()>; } impl IManagedActivationEvents_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CreateManagedStub(this: *mut core::ffi::c_void, pinfo: *mut core::ffi::c_void, fdist: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CreateManagedStub(this: *mut core::ffi::c_void, pinfo: *mut core::ffi::c_void, fdist: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManagedActivationEvents_Impl::CreateManagedStub(this, core::mem::transmute_copy(&pinfo), core::mem::transmute_copy(&fdist)).into() @@ -7505,14 +7505,14 @@ pub struct IManagedObjectInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetIUnknown: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetIObjectControl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetInPool: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetWrapperStrength: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetInPool: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub SetWrapperStrength: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IManagedObjectInfo_Impl: windows_core::IUnknownImpl { fn GetIUnknown(&self) -> windows_core::Result; fn GetIObjectControl(&self) -> windows_core::Result; - fn SetInPool(&self, binpool: super::super::Foundation::BOOL, ppooledobj: windows_core::Ref) -> windows_core::Result<()>; - fn SetWrapperStrength(&self, bstrong: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetInPool(&self, binpool: windows_core::BOOL, ppooledobj: windows_core::Ref) -> windows_core::Result<()>; + fn SetWrapperStrength(&self, bstrong: windows_core::BOOL) -> windows_core::Result<()>; } impl IManagedObjectInfo_Vtbl { pub const fn new() -> Self { @@ -7540,13 +7540,13 @@ impl IManagedObjectInfo_Vtbl { } } } - unsafe extern "system" fn SetInPool(this: *mut core::ffi::c_void, binpool: super::super::Foundation::BOOL, ppooledobj: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn SetInPool(this: *mut core::ffi::c_void, binpool: windows_core::BOOL, ppooledobj: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManagedObjectInfo_Impl::SetInPool(this, core::mem::transmute_copy(&binpool), core::mem::transmute_copy(&ppooledobj)).into() } } - unsafe extern "system" fn SetWrapperStrength(this: *mut core::ffi::c_void, bstrong: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetWrapperStrength(this: *mut core::ffi::c_void, bstrong: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManagedObjectInfo_Impl::SetWrapperStrength(this, core::mem::transmute_copy(&bstrong)).into() @@ -7605,14 +7605,14 @@ impl IManagedPooledObj { #[repr(C)] pub struct IManagedPooledObj_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetHeld: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetHeld: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IManagedPooledObj_Impl: windows_core::IUnknownImpl { - fn SetHeld(&self, m_bheld: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetHeld(&self, m_bheld: windows_core::BOOL) -> windows_core::Result<()>; } impl IManagedPooledObj_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetHeld(this: *mut core::ffi::c_void, m_bheld: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetHeld(this: *mut core::ffi::c_void, m_bheld: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IManagedPooledObj_Impl::SetHeld(this, core::mem::transmute_copy(&m_bheld)).into() @@ -8358,13 +8358,13 @@ impl IObjectContext { pub unsafe fn DisableCommit(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).DisableCommit)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn IsInTransaction(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsInTransaction(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsInTransaction)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn IsSecurityEnabled(&self) -> super::super::Foundation::BOOL { + pub unsafe fn IsSecurityEnabled(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsSecurityEnabled)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn IsCallerInRole(&self, bstrrole: &windows_core::BSTR, pfisinrole: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn IsCallerInRole(&self, bstrrole: &windows_core::BSTR, pfisinrole: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsCallerInRole)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(bstrrole), pfisinrole as _).ok() } } } @@ -8376,9 +8376,9 @@ pub struct IObjectContext_Vtbl { pub SetAbort: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub EnableCommit: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub DisableCommit: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsInTransaction: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, - pub IsSecurityEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, - pub IsCallerInRole: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsInTransaction: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, + pub IsSecurityEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, + pub IsCallerInRole: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IObjectContext_Impl: windows_core::IUnknownImpl { fn CreateInstance(&self, rclsid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -8386,9 +8386,9 @@ pub trait IObjectContext_Impl: windows_core::IUnknownImpl { fn SetAbort(&self) -> windows_core::Result<()>; fn EnableCommit(&self) -> windows_core::Result<()>; fn DisableCommit(&self) -> windows_core::Result<()>; - fn IsInTransaction(&self) -> super::super::Foundation::BOOL; - fn IsSecurityEnabled(&self) -> super::super::Foundation::BOOL; - fn IsCallerInRole(&self, bstrrole: &windows_core::BSTR, pfisinrole: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsInTransaction(&self) -> windows_core::BOOL; + fn IsSecurityEnabled(&self) -> windows_core::BOOL; + fn IsCallerInRole(&self, bstrrole: &windows_core::BSTR, pfisinrole: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IObjectContext_Vtbl { pub const fn new() -> Self { @@ -8422,19 +8422,19 @@ impl IObjectContext_Vtbl { IObjectContext_Impl::DisableCommit(this).into() } } - unsafe extern "system" fn IsInTransaction(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsInTransaction(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContext_Impl::IsInTransaction(this) } } - unsafe extern "system" fn IsSecurityEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsSecurityEnabled(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContext_Impl::IsSecurityEnabled(this) } } - unsafe extern "system" fn IsCallerInRole(this: *mut core::ffi::c_void, bstrrole: *mut core::ffi::c_void, pfisinrole: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsCallerInRole(this: *mut core::ffi::c_void, bstrrole: *mut core::ffi::c_void, pfisinrole: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContext_Impl::IsCallerInRole(this, core::mem::transmute(&bstrrole), core::mem::transmute_copy(&pfisinrole)).into() @@ -8490,7 +8490,7 @@ impl windows_core::RuntimeName for IObjectContextActivity {} windows_core::imp::define_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 { + pub unsafe fn IsInTransaction(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsInTransaction)(windows_core::Interface::as_raw(self)) } } pub unsafe fn GetTransaction(&self) -> windows_core::Result { @@ -8512,14 +8512,14 @@ impl IObjectContextInfo { #[repr(C)] pub struct IObjectContextInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsInTransaction: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsInTransaction: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub GetTransaction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetTransactionId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub GetActivityId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub GetContextId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, } pub trait IObjectContextInfo_Impl: windows_core::IUnknownImpl { - fn IsInTransaction(&self) -> super::super::Foundation::BOOL; + fn IsInTransaction(&self) -> windows_core::BOOL; fn GetTransaction(&self) -> windows_core::Result; fn GetTransactionId(&self, pguid: *mut windows_core::GUID) -> windows_core::Result<()>; fn GetActivityId(&self, pguid: *mut windows_core::GUID) -> windows_core::Result<()>; @@ -8527,7 +8527,7 @@ pub trait IObjectContextInfo_Impl: windows_core::IUnknownImpl { } impl IObjectContextInfo_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsInTransaction(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsInTransaction(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectContextInfo_Impl::IsInTransaction(this) @@ -8679,7 +8679,7 @@ impl IObjectControl { pub unsafe fn Deactivate(&self) { unsafe { (windows_core::Interface::vtable(self).Deactivate)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn CanBePooled(&self) -> super::super::Foundation::BOOL { + pub unsafe fn CanBePooled(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).CanBePooled)(windows_core::Interface::as_raw(self)) } } } @@ -8688,12 +8688,12 @@ pub struct IObjectControl_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Activate: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Deactivate: unsafe extern "system" fn(*mut core::ffi::c_void), - pub CanBePooled: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub CanBePooled: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } pub trait IObjectControl_Impl: windows_core::IUnknownImpl { fn Activate(&self) -> windows_core::Result<()>; fn Deactivate(&self); - fn CanBePooled(&self) -> super::super::Foundation::BOOL; + fn CanBePooled(&self) -> windows_core::BOOL; } impl IObjectControl_Vtbl { pub const fn new() -> Self { @@ -8709,7 +8709,7 @@ impl IObjectControl_Vtbl { IObjectControl_Impl::Deactivate(this) } } - unsafe extern "system" fn CanBePooled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn CanBePooled(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IObjectControl_Impl::CanBePooled(this) @@ -9746,7 +9746,7 @@ impl IServicePoolConfig { pub unsafe fn SetTransactionAffinity(&self, ftxaffinity: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetTransactionAffinity)(windows_core::Interface::as_raw(self), ftxaffinity.into()).ok() } } - pub unsafe fn TransactionAffinity(&self, pftxaffinity: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn TransactionAffinity(&self, pftxaffinity: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).TransactionAffinity)(windows_core::Interface::as_raw(self), pftxaffinity as _).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9773,8 +9773,8 @@ pub struct IServicePoolConfig_Vtbl { pub MinPoolSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetCreationTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub CreationTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub SetTransactionAffinity: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub TransactionAffinity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetTransactionAffinity: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub TransactionAffinity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SetClassFactory: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -9792,8 +9792,8 @@ pub trait IServicePoolConfig_Impl: windows_core::IUnknownImpl { fn MinPoolSize(&self, pdwminpool: *mut u32) -> windows_core::Result<()>; fn SetCreationTimeout(&self, dwcreationtimeout: u32) -> windows_core::Result<()>; fn CreationTimeout(&self, pdwcreationtimeout: *mut u32) -> windows_core::Result<()>; - fn SetTransactionAffinity(&self, ftxaffinity: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn TransactionAffinity(&self, pftxaffinity: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetTransactionAffinity(&self, ftxaffinity: windows_core::BOOL) -> windows_core::Result<()>; + fn TransactionAffinity(&self, pftxaffinity: *mut windows_core::BOOL) -> windows_core::Result<()>; fn SetClassFactory(&self, pfactory: windows_core::Ref) -> windows_core::Result<()>; fn ClassFactory(&self) -> windows_core::Result; } @@ -9836,13 +9836,13 @@ impl IServicePoolConfig_Vtbl { IServicePoolConfig_Impl::CreationTimeout(this, core::mem::transmute_copy(&pdwcreationtimeout)).into() } } - unsafe extern "system" fn SetTransactionAffinity(this: *mut core::ffi::c_void, ftxaffinity: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetTransactionAffinity(this: *mut core::ffi::c_void, ftxaffinity: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServicePoolConfig_Impl::SetTransactionAffinity(this, core::mem::transmute_copy(&ftxaffinity)).into() } } - unsafe extern "system" fn TransactionAffinity(this: *mut core::ffi::c_void, pftxaffinity: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn TransactionAffinity(this: *mut core::ffi::c_void, pftxaffinity: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IServicePoolConfig_Impl::TransactionAffinity(this, core::mem::transmute_copy(&pftxaffinity)).into() @@ -11104,7 +11104,7 @@ impl ITransactionProxy { pub unsafe fn GetIdentifier(&self, pbstridentifier: *mut windows_core::GUID) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetIdentifier)(windows_core::Interface::as_raw(self), pbstridentifier as _).ok() } } - pub unsafe fn IsReusable(&self, pfisreusable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn IsReusable(&self, pfisreusable: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsReusable)(windows_core::Interface::as_raw(self), pfisreusable as _).ok() } } } @@ -11123,7 +11123,7 @@ pub struct ITransactionProxy_Vtbl { CreateVoter: usize, pub GetIsolationLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub GetIdentifier: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - pub IsReusable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsReusable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] pub trait ITransactionProxy_Impl: windows_core::IUnknownImpl { @@ -11133,7 +11133,7 @@ pub trait ITransactionProxy_Impl: windows_core::IUnknownImpl { fn CreateVoter(&self, ptxasync: windows_core::Ref) -> windows_core::Result; fn GetIsolationLevel(&self, __midl__itransactionproxy0000: *mut i32) -> windows_core::Result<()>; fn GetIdentifier(&self, pbstridentifier: *mut windows_core::GUID) -> windows_core::Result<()>; - fn IsReusable(&self, pfisreusable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsReusable(&self, pfisreusable: *mut windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] impl ITransactionProxy_Vtbl { @@ -11186,7 +11186,7 @@ impl ITransactionProxy_Vtbl { ITransactionProxy_Impl::GetIdentifier(this, core::mem::transmute_copy(&pbstridentifier)).into() } } - unsafe extern "system" fn IsReusable(this: *mut core::ffi::c_void, pfisreusable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsReusable(this: *mut core::ffi::c_void, pfisreusable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionProxy_Impl::IsReusable(this, core::mem::transmute_copy(&pfisreusable)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/Console/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Console/mod.rs index 5f679a62c4..538f834214 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Console/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Console/mod.rs @@ -5,7 +5,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn AddConsoleAliasA(source : windows_core::PCSTR, target : windows_core::PCSTR, exename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn AddConsoleAliasA(source : windows_core::PCSTR, target : windows_core::PCSTR, exename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { AddConsoleAliasA(source.param().abi(), target.param().abi(), exename.param().abi()).ok() } } #[inline] @@ -15,17 +15,17 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn AddConsoleAliasW(source : windows_core::PCWSTR, target : windows_core::PCWSTR, exename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn AddConsoleAliasW(source : windows_core::PCWSTR, target : windows_core::PCWSTR, exename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { AddConsoleAliasW(source.param().abi(), target.param().abi(), exename.param().abi()).ok() } } #[inline] pub unsafe fn AllocConsole() -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn AllocConsole() -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn AllocConsole() -> windows_core::BOOL); unsafe { AllocConsole().ok() } } #[inline] pub unsafe fn AttachConsole(dwprocessid: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn AttachConsole(dwprocessid : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn AttachConsole(dwprocessid : u32) -> windows_core::BOOL); unsafe { AttachConsole(dwprocessid).ok() } } #[inline] @@ -71,32 +71,32 @@ where } #[inline] pub unsafe fn FillConsoleOutputAttribute(hconsoleoutput: super::super::Foundation::HANDLE, wattribute: u16, nlength: u32, dwwritecoord: COORD, lpnumberofattrswritten: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FillConsoleOutputAttribute(hconsoleoutput : super::super::Foundation:: HANDLE, wattribute : u16, nlength : u32, dwwritecoord : COORD, lpnumberofattrswritten : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FillConsoleOutputAttribute(hconsoleoutput : super::super::Foundation:: HANDLE, wattribute : u16, nlength : u32, dwwritecoord : COORD, lpnumberofattrswritten : *mut u32) -> windows_core::BOOL); unsafe { FillConsoleOutputAttribute(hconsoleoutput, wattribute, nlength, core::mem::transmute(dwwritecoord), lpnumberofattrswritten as _).ok() } } #[inline] pub unsafe fn FillConsoleOutputCharacterA(hconsoleoutput: super::super::Foundation::HANDLE, ccharacter: i8, nlength: u32, dwwritecoord: COORD, lpnumberofcharswritten: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FillConsoleOutputCharacterA(hconsoleoutput : super::super::Foundation:: HANDLE, ccharacter : i8, nlength : u32, dwwritecoord : COORD, lpnumberofcharswritten : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FillConsoleOutputCharacterA(hconsoleoutput : super::super::Foundation:: HANDLE, ccharacter : i8, nlength : u32, dwwritecoord : COORD, lpnumberofcharswritten : *mut u32) -> windows_core::BOOL); unsafe { FillConsoleOutputCharacterA(hconsoleoutput, ccharacter, nlength, core::mem::transmute(dwwritecoord), lpnumberofcharswritten as _).ok() } } #[inline] pub unsafe fn FillConsoleOutputCharacterW(hconsoleoutput: super::super::Foundation::HANDLE, ccharacter: u16, nlength: u32, dwwritecoord: COORD, lpnumberofcharswritten: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FillConsoleOutputCharacterW(hconsoleoutput : super::super::Foundation:: HANDLE, ccharacter : u16, nlength : u32, dwwritecoord : COORD, lpnumberofcharswritten : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FillConsoleOutputCharacterW(hconsoleoutput : super::super::Foundation:: HANDLE, ccharacter : u16, nlength : u32, dwwritecoord : COORD, lpnumberofcharswritten : *mut u32) -> windows_core::BOOL); unsafe { FillConsoleOutputCharacterW(hconsoleoutput, ccharacter, nlength, core::mem::transmute(dwwritecoord), lpnumberofcharswritten as _).ok() } } #[inline] pub unsafe fn FlushConsoleInputBuffer(hconsoleinput: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FlushConsoleInputBuffer(hconsoleinput : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FlushConsoleInputBuffer(hconsoleinput : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { FlushConsoleInputBuffer(hconsoleinput).ok() } } #[inline] pub unsafe fn FreeConsole() -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FreeConsole() -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FreeConsole() -> windows_core::BOOL); unsafe { FreeConsole().ok() } } #[inline] pub unsafe fn GenerateConsoleCtrlEvent(dwctrlevent: u32, dwprocessgroupid: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GenerateConsoleCtrlEvent(dwctrlevent : u32, dwprocessgroupid : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GenerateConsoleCtrlEvent(dwctrlevent : u32, dwprocessgroupid : u32) -> windows_core::BOOL); unsafe { GenerateConsoleCtrlEvent(dwctrlevent, dwprocessgroupid).ok() } } #[inline] @@ -208,12 +208,12 @@ where } #[inline] pub unsafe fn GetConsoleCursorInfo(hconsoleoutput: super::super::Foundation::HANDLE, lpconsolecursorinfo: *mut CONSOLE_CURSOR_INFO) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetConsoleCursorInfo(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolecursorinfo : *mut CONSOLE_CURSOR_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetConsoleCursorInfo(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolecursorinfo : *mut CONSOLE_CURSOR_INFO) -> windows_core::BOOL); unsafe { GetConsoleCursorInfo(hconsoleoutput, lpconsolecursorinfo as _).ok() } } #[inline] pub unsafe fn GetConsoleDisplayMode(lpmodeflags: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetConsoleDisplayMode(lpmodeflags : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetConsoleDisplayMode(lpmodeflags : *mut u32) -> windows_core::BOOL); unsafe { GetConsoleDisplayMode(lpmodeflags as _).ok() } } #[inline] @@ -223,12 +223,12 @@ pub unsafe fn GetConsoleFontSize(hconsoleoutput: super::super::Foundation::HANDL } #[inline] pub unsafe fn GetConsoleHistoryInfo(lpconsolehistoryinfo: *mut CONSOLE_HISTORY_INFO) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetConsoleHistoryInfo(lpconsolehistoryinfo : *mut CONSOLE_HISTORY_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetConsoleHistoryInfo(lpconsolehistoryinfo : *mut CONSOLE_HISTORY_INFO) -> windows_core::BOOL); unsafe { GetConsoleHistoryInfo(lpconsolehistoryinfo as _).ok() } } #[inline] pub unsafe fn GetConsoleMode(hconsolehandle: super::super::Foundation::HANDLE, lpmode: *mut CONSOLE_MODE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetConsoleMode(hconsolehandle : super::super::Foundation:: HANDLE, lpmode : *mut CONSOLE_MODE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetConsoleMode(hconsolehandle : super::super::Foundation:: HANDLE, lpmode : *mut CONSOLE_MODE) -> windows_core::BOOL); unsafe { GetConsoleMode(hconsolehandle, lpmode as _).ok() } } #[inline] @@ -253,17 +253,17 @@ pub unsafe fn GetConsoleProcessList(lpdwprocesslist: &mut [u32]) -> u32 { } #[inline] pub unsafe fn GetConsoleScreenBufferInfo(hconsoleoutput: super::super::Foundation::HANDLE, lpconsolescreenbufferinfo: *mut CONSOLE_SCREEN_BUFFER_INFO) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetConsoleScreenBufferInfo(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolescreenbufferinfo : *mut CONSOLE_SCREEN_BUFFER_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetConsoleScreenBufferInfo(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolescreenbufferinfo : *mut CONSOLE_SCREEN_BUFFER_INFO) -> windows_core::BOOL); unsafe { GetConsoleScreenBufferInfo(hconsoleoutput, lpconsolescreenbufferinfo as _).ok() } } #[inline] pub unsafe fn GetConsoleScreenBufferInfoEx(hconsoleoutput: super::super::Foundation::HANDLE, lpconsolescreenbufferinfoex: *mut CONSOLE_SCREEN_BUFFER_INFOEX) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetConsoleScreenBufferInfoEx(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolescreenbufferinfoex : *mut CONSOLE_SCREEN_BUFFER_INFOEX) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetConsoleScreenBufferInfoEx(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolescreenbufferinfoex : *mut CONSOLE_SCREEN_BUFFER_INFOEX) -> windows_core::BOOL); unsafe { GetConsoleScreenBufferInfoEx(hconsoleoutput, lpconsolescreenbufferinfoex as _).ok() } } #[inline] pub unsafe fn GetConsoleSelectionInfo(lpconsoleselectioninfo: *mut CONSOLE_SELECTION_INFO) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetConsoleSelectionInfo(lpconsoleselectioninfo : *mut CONSOLE_SELECTION_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetConsoleSelectionInfo(lpconsoleselectioninfo : *mut CONSOLE_SELECTION_INFO) -> windows_core::BOOL); unsafe { GetConsoleSelectionInfo(lpconsoleselectioninfo as _).ok() } } #[inline] @@ -283,12 +283,12 @@ pub unsafe fn GetConsoleWindow() -> super::super::Foundation::HWND { } #[inline] pub unsafe fn GetCurrentConsoleFont(hconsoleoutput: super::super::Foundation::HANDLE, bmaximumwindow: bool, lpconsolecurrentfont: *mut CONSOLE_FONT_INFO) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetCurrentConsoleFont(hconsoleoutput : super::super::Foundation:: HANDLE, bmaximumwindow : super::super::Foundation:: BOOL, lpconsolecurrentfont : *mut CONSOLE_FONT_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetCurrentConsoleFont(hconsoleoutput : super::super::Foundation:: HANDLE, bmaximumwindow : windows_core::BOOL, lpconsolecurrentfont : *mut CONSOLE_FONT_INFO) -> windows_core::BOOL); unsafe { GetCurrentConsoleFont(hconsoleoutput, bmaximumwindow.into(), lpconsolecurrentfont as _).ok() } } #[inline] pub unsafe fn GetCurrentConsoleFontEx(hconsoleoutput: super::super::Foundation::HANDLE, bmaximumwindow: bool, lpconsolecurrentfontex: *mut CONSOLE_FONT_INFOEX) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetCurrentConsoleFontEx(hconsoleoutput : super::super::Foundation:: HANDLE, bmaximumwindow : super::super::Foundation:: BOOL, lpconsolecurrentfontex : *mut CONSOLE_FONT_INFOEX) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetCurrentConsoleFontEx(hconsoleoutput : super::super::Foundation:: HANDLE, bmaximumwindow : windows_core::BOOL, lpconsolecurrentfontex : *mut CONSOLE_FONT_INFOEX) -> windows_core::BOOL); unsafe { GetCurrentConsoleFontEx(hconsoleoutput, bmaximumwindow.into(), lpconsolecurrentfontex as _).ok() } } #[inline] @@ -298,12 +298,12 @@ pub unsafe fn GetLargestConsoleWindowSize(hconsoleoutput: super::super::Foundati } #[inline] pub unsafe fn GetNumberOfConsoleInputEvents(hconsoleinput: super::super::Foundation::HANDLE, lpnumberofevents: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetNumberOfConsoleInputEvents(hconsoleinput : super::super::Foundation:: HANDLE, lpnumberofevents : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNumberOfConsoleInputEvents(hconsoleinput : super::super::Foundation:: HANDLE, lpnumberofevents : *mut u32) -> windows_core::BOOL); unsafe { GetNumberOfConsoleInputEvents(hconsoleinput, lpnumberofevents as _).ok() } } #[inline] pub unsafe fn GetNumberOfConsoleMouseButtons(lpnumberofmousebuttons: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetNumberOfConsoleMouseButtons(lpnumberofmousebuttons : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNumberOfConsoleMouseButtons(lpnumberofmousebuttons : *mut u32) -> windows_core::BOOL); unsafe { GetNumberOfConsoleMouseButtons(lpnumberofmousebuttons as _).ok() } } #[inline] @@ -314,57 +314,57 @@ pub unsafe fn GetStdHandle(nstdhandle: STD_HANDLE) -> windows_core::Result windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn PeekConsoleInputA(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *mut INPUT_RECORD, nlength : u32, lpnumberofeventsread : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn PeekConsoleInputA(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *mut INPUT_RECORD, nlength : u32, lpnumberofeventsread : *mut u32) -> windows_core::BOOL); unsafe { PeekConsoleInputA(hconsoleinput, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofeventsread as _).ok() } } #[inline] pub unsafe fn PeekConsoleInputW(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: &mut [INPUT_RECORD], lpnumberofeventsread: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn PeekConsoleInputW(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *mut INPUT_RECORD, nlength : u32, lpnumberofeventsread : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn PeekConsoleInputW(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *mut INPUT_RECORD, nlength : u32, lpnumberofeventsread : *mut u32) -> windows_core::BOOL); unsafe { PeekConsoleInputW(hconsoleinput, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofeventsread as _).ok() } } #[inline] pub unsafe fn ReadConsoleA(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: *mut core::ffi::c_void, nnumberofcharstoread: u32, lpnumberofcharsread: *mut u32, pinputcontrol: Option<*const CONSOLE_READCONSOLE_CONTROL>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ReadConsoleA(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *mut core::ffi::c_void, nnumberofcharstoread : u32, lpnumberofcharsread : *mut u32, pinputcontrol : *const CONSOLE_READCONSOLE_CONTROL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReadConsoleA(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *mut core::ffi::c_void, nnumberofcharstoread : u32, lpnumberofcharsread : *mut u32, pinputcontrol : *const CONSOLE_READCONSOLE_CONTROL) -> windows_core::BOOL); unsafe { ReadConsoleA(hconsoleinput, lpbuffer as _, nnumberofcharstoread, lpnumberofcharsread as _, pinputcontrol.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn ReadConsoleInputA(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: &mut [INPUT_RECORD], lpnumberofeventsread: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ReadConsoleInputA(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *mut INPUT_RECORD, nlength : u32, lpnumberofeventsread : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReadConsoleInputA(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *mut INPUT_RECORD, nlength : u32, lpnumberofeventsread : *mut u32) -> windows_core::BOOL); unsafe { ReadConsoleInputA(hconsoleinput, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofeventsread as _).ok() } } #[inline] pub unsafe fn ReadConsoleInputW(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: &mut [INPUT_RECORD], lpnumberofeventsread: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ReadConsoleInputW(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *mut INPUT_RECORD, nlength : u32, lpnumberofeventsread : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReadConsoleInputW(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *mut INPUT_RECORD, nlength : u32, lpnumberofeventsread : *mut u32) -> windows_core::BOOL); unsafe { ReadConsoleInputW(hconsoleinput, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofeventsread as _).ok() } } #[inline] pub unsafe fn ReadConsoleOutputA(hconsoleoutput: super::super::Foundation::HANDLE, lpbuffer: *mut CHAR_INFO, dwbuffersize: COORD, dwbuffercoord: COORD, lpreadregion: *mut SMALL_RECT) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ReadConsoleOutputA(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : *mut CHAR_INFO, dwbuffersize : COORD, dwbuffercoord : COORD, lpreadregion : *mut SMALL_RECT) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReadConsoleOutputA(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : *mut CHAR_INFO, dwbuffersize : COORD, dwbuffercoord : COORD, lpreadregion : *mut SMALL_RECT) -> windows_core::BOOL); unsafe { ReadConsoleOutputA(hconsoleoutput, lpbuffer as _, core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), lpreadregion as _).ok() } } #[inline] pub unsafe fn ReadConsoleOutputAttribute(hconsoleoutput: super::super::Foundation::HANDLE, lpattribute: &mut [u16], dwreadcoord: COORD, lpnumberofattrsread: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ReadConsoleOutputAttribute(hconsoleoutput : super::super::Foundation:: HANDLE, lpattribute : *mut u16, nlength : u32, dwreadcoord : COORD, lpnumberofattrsread : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReadConsoleOutputAttribute(hconsoleoutput : super::super::Foundation:: HANDLE, lpattribute : *mut u16, nlength : u32, dwreadcoord : COORD, lpnumberofattrsread : *mut u32) -> windows_core::BOOL); unsafe { ReadConsoleOutputAttribute(hconsoleoutput, core::mem::transmute(lpattribute.as_ptr()), lpattribute.len().try_into().unwrap(), core::mem::transmute(dwreadcoord), lpnumberofattrsread as _).ok() } } #[inline] pub unsafe fn ReadConsoleOutputCharacterA(hconsoleoutput: super::super::Foundation::HANDLE, lpcharacter: &mut [u8], dwreadcoord: COORD, lpnumberofcharsread: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ReadConsoleOutputCharacterA(hconsoleoutput : super::super::Foundation:: HANDLE, lpcharacter : windows_core::PSTR, nlength : u32, dwreadcoord : COORD, lpnumberofcharsread : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReadConsoleOutputCharacterA(hconsoleoutput : super::super::Foundation:: HANDLE, lpcharacter : windows_core::PSTR, nlength : u32, dwreadcoord : COORD, lpnumberofcharsread : *mut u32) -> windows_core::BOOL); unsafe { ReadConsoleOutputCharacterA(hconsoleoutput, core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwreadcoord), lpnumberofcharsread as _).ok() } } #[inline] pub unsafe fn ReadConsoleOutputCharacterW(hconsoleoutput: super::super::Foundation::HANDLE, lpcharacter: &mut [u16], dwreadcoord: COORD, lpnumberofcharsread: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ReadConsoleOutputCharacterW(hconsoleoutput : super::super::Foundation:: HANDLE, lpcharacter : windows_core::PWSTR, nlength : u32, dwreadcoord : COORD, lpnumberofcharsread : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReadConsoleOutputCharacterW(hconsoleoutput : super::super::Foundation:: HANDLE, lpcharacter : windows_core::PWSTR, nlength : u32, dwreadcoord : COORD, lpnumberofcharsread : *mut u32) -> windows_core::BOOL); unsafe { ReadConsoleOutputCharacterW(hconsoleoutput, core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwreadcoord), lpnumberofcharsread as _).ok() } } #[inline] pub unsafe fn ReadConsoleOutputW(hconsoleoutput: super::super::Foundation::HANDLE, lpbuffer: *mut CHAR_INFO, dwbuffersize: COORD, dwbuffercoord: COORD, lpreadregion: *mut SMALL_RECT) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ReadConsoleOutputW(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : *mut CHAR_INFO, dwbuffersize : COORD, dwbuffercoord : COORD, lpreadregion : *mut SMALL_RECT) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReadConsoleOutputW(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : *mut CHAR_INFO, dwbuffersize : COORD, dwbuffercoord : COORD, lpreadregion : *mut SMALL_RECT) -> windows_core::BOOL); unsafe { ReadConsoleOutputW(hconsoleoutput, lpbuffer as _, core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), lpreadregion as _).ok() } } #[inline] pub unsafe fn ReadConsoleW(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: *mut core::ffi::c_void, nnumberofcharstoread: u32, lpnumberofcharsread: *mut u32, pinputcontrol: Option<*const CONSOLE_READCONSOLE_CONTROL>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ReadConsoleW(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *mut core::ffi::c_void, nnumberofcharstoread : u32, lpnumberofcharsread : *mut u32, pinputcontrol : *const CONSOLE_READCONSOLE_CONTROL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReadConsoleW(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *mut core::ffi::c_void, nnumberofcharstoread : u32, lpnumberofcharsread : *mut u32, pinputcontrol : *const CONSOLE_READCONSOLE_CONTROL) -> windows_core::BOOL); unsafe { ReadConsoleW(hconsoleinput, lpbuffer as _, nnumberofcharstoread, lpnumberofcharsread as _, pinputcontrol.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -374,88 +374,88 @@ pub unsafe fn ResizePseudoConsole(hpc: HPCON, size: COORD) -> windows_core::Resu } #[inline] pub unsafe fn ScrollConsoleScreenBufferA(hconsoleoutput: super::super::Foundation::HANDLE, lpscrollrectangle: *const SMALL_RECT, lpcliprectangle: Option<*const SMALL_RECT>, dwdestinationorigin: COORD, lpfill: *const CHAR_INFO) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ScrollConsoleScreenBufferA(hconsoleoutput : super::super::Foundation:: HANDLE, lpscrollrectangle : *const SMALL_RECT, lpcliprectangle : *const SMALL_RECT, dwdestinationorigin : COORD, lpfill : *const CHAR_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ScrollConsoleScreenBufferA(hconsoleoutput : super::super::Foundation:: HANDLE, lpscrollrectangle : *const SMALL_RECT, lpcliprectangle : *const SMALL_RECT, dwdestinationorigin : COORD, lpfill : *const CHAR_INFO) -> windows_core::BOOL); unsafe { ScrollConsoleScreenBufferA(hconsoleoutput, lpscrollrectangle, lpcliprectangle.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(dwdestinationorigin), lpfill).ok() } } #[inline] pub unsafe fn ScrollConsoleScreenBufferW(hconsoleoutput: super::super::Foundation::HANDLE, lpscrollrectangle: *const SMALL_RECT, lpcliprectangle: Option<*const SMALL_RECT>, dwdestinationorigin: COORD, lpfill: *const CHAR_INFO) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ScrollConsoleScreenBufferW(hconsoleoutput : super::super::Foundation:: HANDLE, lpscrollrectangle : *const SMALL_RECT, lpcliprectangle : *const SMALL_RECT, dwdestinationorigin : COORD, lpfill : *const CHAR_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ScrollConsoleScreenBufferW(hconsoleoutput : super::super::Foundation:: HANDLE, lpscrollrectangle : *const SMALL_RECT, lpcliprectangle : *const SMALL_RECT, dwdestinationorigin : COORD, lpfill : *const CHAR_INFO) -> windows_core::BOOL); unsafe { ScrollConsoleScreenBufferW(hconsoleoutput, lpscrollrectangle, lpcliprectangle.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(dwdestinationorigin), lpfill).ok() } } #[inline] pub unsafe fn SetConsoleActiveScreenBuffer(hconsoleoutput: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetConsoleActiveScreenBuffer(hconsoleoutput : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetConsoleActiveScreenBuffer(hconsoleoutput : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SetConsoleActiveScreenBuffer(hconsoleoutput).ok() } } #[inline] pub unsafe fn SetConsoleCP(wcodepageid: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetConsoleCP(wcodepageid : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetConsoleCP(wcodepageid : u32) -> windows_core::BOOL); unsafe { SetConsoleCP(wcodepageid).ok() } } #[inline] pub unsafe fn SetConsoleCtrlHandler(handlerroutine: Option, add: bool) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetConsoleCtrlHandler(handlerroutine : PHANDLER_ROUTINE, add : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetConsoleCtrlHandler(handlerroutine : PHANDLER_ROUTINE, add : windows_core::BOOL) -> windows_core::BOOL); unsafe { SetConsoleCtrlHandler(handlerroutine.unwrap_or(core::mem::zeroed()) as _, add.into()).ok() } } #[inline] pub unsafe fn SetConsoleCursorInfo(hconsoleoutput: super::super::Foundation::HANDLE, lpconsolecursorinfo: *const CONSOLE_CURSOR_INFO) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetConsoleCursorInfo(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolecursorinfo : *const CONSOLE_CURSOR_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetConsoleCursorInfo(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolecursorinfo : *const CONSOLE_CURSOR_INFO) -> windows_core::BOOL); unsafe { SetConsoleCursorInfo(hconsoleoutput, lpconsolecursorinfo).ok() } } #[inline] pub unsafe fn SetConsoleCursorPosition(hconsoleoutput: super::super::Foundation::HANDLE, dwcursorposition: COORD) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetConsoleCursorPosition(hconsoleoutput : super::super::Foundation:: HANDLE, dwcursorposition : COORD) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetConsoleCursorPosition(hconsoleoutput : super::super::Foundation:: HANDLE, dwcursorposition : COORD) -> windows_core::BOOL); unsafe { SetConsoleCursorPosition(hconsoleoutput, core::mem::transmute(dwcursorposition)).ok() } } #[inline] pub unsafe fn SetConsoleDisplayMode(hconsoleoutput: super::super::Foundation::HANDLE, dwflags: u32, lpnewscreenbufferdimensions: Option<*mut COORD>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetConsoleDisplayMode(hconsoleoutput : super::super::Foundation:: HANDLE, dwflags : u32, lpnewscreenbufferdimensions : *mut COORD) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetConsoleDisplayMode(hconsoleoutput : super::super::Foundation:: HANDLE, dwflags : u32, lpnewscreenbufferdimensions : *mut COORD) -> windows_core::BOOL); unsafe { SetConsoleDisplayMode(hconsoleoutput, dwflags, lpnewscreenbufferdimensions.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetConsoleHistoryInfo(lpconsolehistoryinfo: *const CONSOLE_HISTORY_INFO) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetConsoleHistoryInfo(lpconsolehistoryinfo : *const CONSOLE_HISTORY_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetConsoleHistoryInfo(lpconsolehistoryinfo : *const CONSOLE_HISTORY_INFO) -> windows_core::BOOL); unsafe { SetConsoleHistoryInfo(lpconsolehistoryinfo).ok() } } #[inline] pub unsafe fn SetConsoleMode(hconsolehandle: super::super::Foundation::HANDLE, dwmode: CONSOLE_MODE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetConsoleMode(hconsolehandle : super::super::Foundation:: HANDLE, dwmode : CONSOLE_MODE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetConsoleMode(hconsolehandle : super::super::Foundation:: HANDLE, dwmode : CONSOLE_MODE) -> windows_core::BOOL); unsafe { SetConsoleMode(hconsolehandle, dwmode).ok() } } #[inline] -pub unsafe fn SetConsoleNumberOfCommandsA(number: u32, exename: P1) -> super::super::Foundation::BOOL +pub unsafe fn SetConsoleNumberOfCommandsA(number: u32, exename: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetConsoleNumberOfCommandsA(number : u32, exename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetConsoleNumberOfCommandsA(number : u32, exename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetConsoleNumberOfCommandsA(number, exename.param().abi()) } } #[inline] -pub unsafe fn SetConsoleNumberOfCommandsW(number: u32, exename: P1) -> super::super::Foundation::BOOL +pub unsafe fn SetConsoleNumberOfCommandsW(number: u32, exename: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetConsoleNumberOfCommandsW(number : u32, exename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetConsoleNumberOfCommandsW(number : u32, exename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetConsoleNumberOfCommandsW(number, exename.param().abi()) } } #[inline] pub unsafe fn SetConsoleOutputCP(wcodepageid: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetConsoleOutputCP(wcodepageid : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetConsoleOutputCP(wcodepageid : u32) -> windows_core::BOOL); unsafe { SetConsoleOutputCP(wcodepageid).ok() } } #[inline] pub unsafe fn SetConsoleScreenBufferInfoEx(hconsoleoutput: super::super::Foundation::HANDLE, lpconsolescreenbufferinfoex: *const CONSOLE_SCREEN_BUFFER_INFOEX) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetConsoleScreenBufferInfoEx(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolescreenbufferinfoex : *const CONSOLE_SCREEN_BUFFER_INFOEX) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetConsoleScreenBufferInfoEx(hconsoleoutput : super::super::Foundation:: HANDLE, lpconsolescreenbufferinfoex : *const CONSOLE_SCREEN_BUFFER_INFOEX) -> windows_core::BOOL); unsafe { SetConsoleScreenBufferInfoEx(hconsoleoutput, lpconsolescreenbufferinfoex).ok() } } #[inline] pub unsafe fn SetConsoleScreenBufferSize(hconsoleoutput: super::super::Foundation::HANDLE, dwsize: COORD) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetConsoleScreenBufferSize(hconsoleoutput : super::super::Foundation:: HANDLE, dwsize : COORD) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetConsoleScreenBufferSize(hconsoleoutput : super::super::Foundation:: HANDLE, dwsize : COORD) -> windows_core::BOOL); unsafe { SetConsoleScreenBufferSize(hconsoleoutput, core::mem::transmute(dwsize)).ok() } } #[inline] pub unsafe fn SetConsoleTextAttribute(hconsoleoutput: super::super::Foundation::HANDLE, wattributes: CONSOLE_CHARACTER_ATTRIBUTES) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetConsoleTextAttribute(hconsoleoutput : super::super::Foundation:: HANDLE, wattributes : CONSOLE_CHARACTER_ATTRIBUTES) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetConsoleTextAttribute(hconsoleoutput : super::super::Foundation:: HANDLE, wattributes : CONSOLE_CHARACTER_ATTRIBUTES) -> windows_core::BOOL); unsafe { SetConsoleTextAttribute(hconsoleoutput, wattributes).ok() } } #[inline] @@ -463,7 +463,7 @@ pub unsafe fn SetConsoleTitleA(lpconsoletitle: P0) -> windows_core::Result<( where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetConsoleTitleA(lpconsoletitle : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetConsoleTitleA(lpconsoletitle : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetConsoleTitleA(lpconsoletitle.param().abi()).ok() } } #[inline] @@ -471,72 +471,72 @@ pub unsafe fn SetConsoleTitleW(lpconsoletitle: P0) -> windows_core::Result<( where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetConsoleTitleW(lpconsoletitle : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetConsoleTitleW(lpconsoletitle : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetConsoleTitleW(lpconsoletitle.param().abi()).ok() } } #[inline] pub unsafe fn SetConsoleWindowInfo(hconsoleoutput: super::super::Foundation::HANDLE, babsolute: bool, lpconsolewindow: *const SMALL_RECT) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetConsoleWindowInfo(hconsoleoutput : super::super::Foundation:: HANDLE, babsolute : super::super::Foundation:: BOOL, lpconsolewindow : *const SMALL_RECT) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetConsoleWindowInfo(hconsoleoutput : super::super::Foundation:: HANDLE, babsolute : windows_core::BOOL, lpconsolewindow : *const SMALL_RECT) -> windows_core::BOOL); unsafe { SetConsoleWindowInfo(hconsoleoutput, babsolute.into(), lpconsolewindow).ok() } } #[inline] pub unsafe fn SetCurrentConsoleFontEx(hconsoleoutput: super::super::Foundation::HANDLE, bmaximumwindow: bool, lpconsolecurrentfontex: *const CONSOLE_FONT_INFOEX) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetCurrentConsoleFontEx(hconsoleoutput : super::super::Foundation:: HANDLE, bmaximumwindow : super::super::Foundation:: BOOL, lpconsolecurrentfontex : *const CONSOLE_FONT_INFOEX) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetCurrentConsoleFontEx(hconsoleoutput : super::super::Foundation:: HANDLE, bmaximumwindow : windows_core::BOOL, lpconsolecurrentfontex : *const CONSOLE_FONT_INFOEX) -> windows_core::BOOL); unsafe { SetCurrentConsoleFontEx(hconsoleoutput, bmaximumwindow.into(), lpconsolecurrentfontex).ok() } } #[inline] pub unsafe fn SetStdHandle(nstdhandle: STD_HANDLE, hhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetStdHandle(nstdhandle : STD_HANDLE, hhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetStdHandle(nstdhandle : STD_HANDLE, hhandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SetStdHandle(nstdhandle, hhandle).ok() } } #[inline] -pub unsafe fn SetStdHandleEx(nstdhandle: STD_HANDLE, hhandle: super::super::Foundation::HANDLE, phprevvalue: Option<*mut super::super::Foundation::HANDLE>) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn SetStdHandleEx(nstdhandle : STD_HANDLE, hhandle : super::super::Foundation:: HANDLE, phprevvalue : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn SetStdHandleEx(nstdhandle: STD_HANDLE, hhandle: super::super::Foundation::HANDLE, phprevvalue: Option<*mut super::super::Foundation::HANDLE>) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn SetStdHandleEx(nstdhandle : STD_HANDLE, hhandle : super::super::Foundation:: HANDLE, phprevvalue : *mut super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SetStdHandleEx(nstdhandle, hhandle, phprevvalue.unwrap_or(core::mem::zeroed()) as _) } } #[inline] pub unsafe fn WriteConsoleA(hconsoleoutput: super::super::Foundation::HANDLE, lpbuffer: &[u8], lpnumberofcharswritten: Option<*mut u32>, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn WriteConsoleA(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : windows_core::PCSTR, nnumberofcharstowrite : u32, lpnumberofcharswritten : *mut u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WriteConsoleA(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : windows_core::PCSTR, nnumberofcharstowrite : u32, lpnumberofcharswritten : *mut u32, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { WriteConsoleA(hconsoleoutput, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofcharswritten.unwrap_or(core::mem::zeroed()) as _, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn WriteConsoleInputA(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: &[INPUT_RECORD], lpnumberofeventswritten: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn WriteConsoleInputA(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *const INPUT_RECORD, nlength : u32, lpnumberofeventswritten : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WriteConsoleInputA(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *const INPUT_RECORD, nlength : u32, lpnumberofeventswritten : *mut u32) -> windows_core::BOOL); unsafe { WriteConsoleInputA(hconsoleinput, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofeventswritten as _).ok() } } #[inline] pub unsafe fn WriteConsoleInputW(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: &[INPUT_RECORD], lpnumberofeventswritten: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn WriteConsoleInputW(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *const INPUT_RECORD, nlength : u32, lpnumberofeventswritten : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WriteConsoleInputW(hconsoleinput : super::super::Foundation:: HANDLE, lpbuffer : *const INPUT_RECORD, nlength : u32, lpnumberofeventswritten : *mut u32) -> windows_core::BOOL); unsafe { WriteConsoleInputW(hconsoleinput, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofeventswritten as _).ok() } } #[inline] pub unsafe fn WriteConsoleOutputA(hconsoleoutput: super::super::Foundation::HANDLE, lpbuffer: *const CHAR_INFO, dwbuffersize: COORD, dwbuffercoord: COORD, lpwriteregion: *mut SMALL_RECT) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn WriteConsoleOutputA(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : *const CHAR_INFO, dwbuffersize : COORD, dwbuffercoord : COORD, lpwriteregion : *mut SMALL_RECT) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WriteConsoleOutputA(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : *const CHAR_INFO, dwbuffersize : COORD, dwbuffercoord : COORD, lpwriteregion : *mut SMALL_RECT) -> windows_core::BOOL); unsafe { WriteConsoleOutputA(hconsoleoutput, lpbuffer, core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), lpwriteregion as _).ok() } } #[inline] pub unsafe fn WriteConsoleOutputAttribute(hconsoleoutput: super::super::Foundation::HANDLE, lpattribute: &[u16], dwwritecoord: COORD, lpnumberofattrswritten: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn WriteConsoleOutputAttribute(hconsoleoutput : super::super::Foundation:: HANDLE, lpattribute : *const u16, nlength : u32, dwwritecoord : COORD, lpnumberofattrswritten : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WriteConsoleOutputAttribute(hconsoleoutput : super::super::Foundation:: HANDLE, lpattribute : *const u16, nlength : u32, dwwritecoord : COORD, lpnumberofattrswritten : *mut u32) -> windows_core::BOOL); unsafe { WriteConsoleOutputAttribute(hconsoleoutput, core::mem::transmute(lpattribute.as_ptr()), lpattribute.len().try_into().unwrap(), core::mem::transmute(dwwritecoord), lpnumberofattrswritten as _).ok() } } #[inline] pub unsafe fn WriteConsoleOutputCharacterA(hconsoleoutput: super::super::Foundation::HANDLE, lpcharacter: &[u8], dwwritecoord: COORD, lpnumberofcharswritten: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn WriteConsoleOutputCharacterA(hconsoleoutput : super::super::Foundation:: HANDLE, lpcharacter : windows_core::PCSTR, nlength : u32, dwwritecoord : COORD, lpnumberofcharswritten : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WriteConsoleOutputCharacterA(hconsoleoutput : super::super::Foundation:: HANDLE, lpcharacter : windows_core::PCSTR, nlength : u32, dwwritecoord : COORD, lpnumberofcharswritten : *mut u32) -> windows_core::BOOL); unsafe { WriteConsoleOutputCharacterA(hconsoleoutput, core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwwritecoord), lpnumberofcharswritten as _).ok() } } #[inline] pub unsafe fn WriteConsoleOutputCharacterW(hconsoleoutput: super::super::Foundation::HANDLE, lpcharacter: &[u16], dwwritecoord: COORD, lpnumberofcharswritten: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn WriteConsoleOutputCharacterW(hconsoleoutput : super::super::Foundation:: HANDLE, lpcharacter : windows_core::PCWSTR, nlength : u32, dwwritecoord : COORD, lpnumberofcharswritten : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WriteConsoleOutputCharacterW(hconsoleoutput : super::super::Foundation:: HANDLE, lpcharacter : windows_core::PCWSTR, nlength : u32, dwwritecoord : COORD, lpnumberofcharswritten : *mut u32) -> windows_core::BOOL); unsafe { WriteConsoleOutputCharacterW(hconsoleoutput, core::mem::transmute(lpcharacter.as_ptr()), lpcharacter.len().try_into().unwrap(), core::mem::transmute(dwwritecoord), lpnumberofcharswritten as _).ok() } } #[inline] pub unsafe fn WriteConsoleOutputW(hconsoleoutput: super::super::Foundation::HANDLE, lpbuffer: *const CHAR_INFO, dwbuffersize: COORD, dwbuffercoord: COORD, lpwriteregion: *mut SMALL_RECT) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn WriteConsoleOutputW(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : *const CHAR_INFO, dwbuffersize : COORD, dwbuffercoord : COORD, lpwriteregion : *mut SMALL_RECT) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WriteConsoleOutputW(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : *const CHAR_INFO, dwbuffersize : COORD, dwbuffercoord : COORD, lpwriteregion : *mut SMALL_RECT) -> windows_core::BOOL); unsafe { WriteConsoleOutputW(hconsoleoutput, lpbuffer, core::mem::transmute(dwbuffersize), core::mem::transmute(dwbuffercoord), lpwriteregion as _).ok() } } #[inline] pub unsafe fn WriteConsoleW(hconsoleoutput: super::super::Foundation::HANDLE, lpbuffer: &[u16], lpnumberofcharswritten: Option<*mut u32>, lpreserved: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn WriteConsoleW(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : windows_core::PCWSTR, nnumberofcharstowrite : u32, lpnumberofcharswritten : *mut u32, lpreserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WriteConsoleW(hconsoleoutput : super::super::Foundation:: HANDLE, lpbuffer : windows_core::PCWSTR, nnumberofcharstowrite : u32, lpnumberofcharswritten : *mut u32, lpreserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { WriteConsoleW(hconsoleoutput, core::mem::transmute(lpbuffer.as_ptr()), lpbuffer.len().try_into().unwrap(), lpnumberofcharswritten.unwrap_or(core::mem::zeroed()) as _, lpreserved.unwrap_or(core::mem::zeroed()) as _).ok() } } pub const ALTNUMPAD_BIT: u32 = 67108864u32; @@ -596,7 +596,7 @@ impl Default for CONSOLEENDTASK { #[derive(Clone, Copy, Debug, PartialEq)] pub struct CONSOLESETFOREGROUND { pub hProcess: super::super::Foundation::HANDLE, - pub bForeground: super::super::Foundation::BOOL, + pub bForeground: windows_core::BOOL, } impl Default for CONSOLESETFOREGROUND { fn default() -> Self { @@ -666,7 +666,7 @@ impl core::ops::Not for CONSOLE_CHARACTER_ATTRIBUTES { #[derive(Clone, Copy, Debug, PartialEq)] pub struct CONSOLE_CURSOR_INFO { pub dwSize: u32, - pub bVisible: super::super::Foundation::BOOL, + pub bVisible: windows_core::BOOL, } impl Default for CONSOLE_CURSOR_INFO { fn default() -> Self { @@ -802,7 +802,7 @@ pub struct CONSOLE_SCREEN_BUFFER_INFOEX { pub srWindow: SMALL_RECT, pub dwMaximumWindowSize: COORD, pub wPopupAttributes: u16, - pub bFullscreenSupported: super::super::Foundation::BOOL, + pub bFullscreenSupported: windows_core::BOOL, pub ColorTable: [super::super::Foundation::COLORREF; 16], } impl Default for CONSOLE_SCREEN_BUFFER_INFOEX { @@ -868,7 +868,7 @@ pub const FOCUS_EVENT: u32 = 16u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct FOCUS_EVENT_RECORD { - pub bSetFocus: super::super::Foundation::BOOL, + pub bSetFocus: windows_core::BOOL, } impl Default for FOCUS_EVENT_RECORD { fn default() -> Self { @@ -932,7 +932,7 @@ pub const KEY_EVENT: u32 = 1u32; #[repr(C)] #[derive(Clone, Copy)] pub struct KEY_EVENT_RECORD { - pub bKeyDown: super::super::Foundation::BOOL, + pub bKeyDown: windows_core::BOOL, pub wRepeatCount: u16, pub wVirtualKeyCode: u16, pub wVirtualScanCode: u16, @@ -993,7 +993,7 @@ pub const NLS_IME_DISABLE: u32 = 536870912u32; pub const NLS_KATAKANA: u32 = 131072u32; pub const NLS_ROMAN: u32 = 4194304u32; pub const NUMLOCK_ON: u32 = 32u32; -pub type PHANDLER_ROUTINE = Option super::super::Foundation::BOOL>; +pub type PHANDLER_ROUTINE = Option windows_core::BOOL>; pub const PSEUDOCONSOLE_INHERIT_CURSOR: u32 = 1u32; pub const RIGHTMOST_BUTTON_PRESSED: u32 = 2u32; pub const RIGHT_ALT_PRESSED: u32 = 1u32; 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 f8407ad8f7..170071015b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Contacts/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Contacts/mod.rs @@ -514,13 +514,13 @@ impl IContactAggregationContact { (windows_core::Interface::vtable(self).Id)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsMe(&self) -> windows_core::Result { + pub unsafe fn IsMe(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsMe)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsExternal(&self) -> windows_core::Result { + pub unsafe fn IsExternal(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsExternal)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -577,8 +577,8 @@ pub struct IContactAggregationContact_Vtbl { pub SetAccountId: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub AggregateId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub IsMe: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsExternal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsMe: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsExternal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub NetworkSourceId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetNetworkSourceId: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub NetworkSourceIdString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, @@ -597,8 +597,8 @@ pub trait IContactAggregationContact_Impl: windows_core::IUnknownImpl { fn SetAccountId(&self, paccountid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn AggregateId(&self) -> windows_core::Result; fn Id(&self) -> windows_core::Result; - fn IsMe(&self) -> windows_core::Result; - fn IsExternal(&self) -> windows_core::Result; + fn IsMe(&self) -> windows_core::Result; + fn IsExternal(&self) -> windows_core::Result; fn NetworkSourceId(&self) -> windows_core::Result; fn SetNetworkSourceId(&self, networksourceid: u32) -> windows_core::Result<()>; fn NetworkSourceIdString(&self) -> windows_core::Result; @@ -676,7 +676,7 @@ impl IContactAggregationContact_Vtbl { } } } - unsafe extern "system" fn IsMe(this: *mut core::ffi::c_void, pisme: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsMe(this: *mut core::ffi::c_void, pisme: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationContact_Impl::IsMe(this) { @@ -688,7 +688,7 @@ impl IContactAggregationContact_Vtbl { } } } - unsafe extern "system" fn IsExternal(this: *mut core::ffi::c_void, pisexternal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsExternal(this: *mut core::ffi::c_void, pisexternal: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationContact_Impl::IsExternal(this) { @@ -1251,7 +1251,7 @@ impl IContactAggregationLink { (windows_core::Interface::vtable(self).Id)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsLinkResolved(&self) -> windows_core::Result { + pub unsafe fn IsLinkResolved(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsLinkResolved)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1323,8 +1323,8 @@ pub struct IContactAggregationLink_Vtbl { pub AccountId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub SetAccountId: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub IsLinkResolved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetIsLinkResolved: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsLinkResolved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetIsLinkResolved: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub NetworkSourceIdString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub SetNetworkSourceIdString: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub RemoteObjectId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT, @@ -1342,8 +1342,8 @@ pub trait IContactAggregationLink_Impl: windows_core::IUnknownImpl { fn AccountId(&self) -> windows_core::Result; fn SetAccountId(&self, paccountid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Id(&self) -> windows_core::Result; - fn IsLinkResolved(&self) -> windows_core::Result; - fn SetIsLinkResolved(&self, islinkresolved: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsLinkResolved(&self) -> windows_core::Result; + fn SetIsLinkResolved(&self, islinkresolved: windows_core::BOOL) -> windows_core::Result<()>; fn NetworkSourceIdString(&self) -> windows_core::Result; fn SetNetworkSourceIdString(&self, pnetworksourceid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn RemoteObjectId(&self) -> windows_core::Result<*mut CONTACT_AGGREGATION_BLOB>; @@ -1399,7 +1399,7 @@ impl IContactAggregationLink_Vtbl { } } } - unsafe extern "system" fn IsLinkResolved(this: *mut core::ffi::c_void, pislinkresolved: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsLinkResolved(this: *mut core::ffi::c_void, pislinkresolved: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationLink_Impl::IsLinkResolved(this) { @@ -1411,7 +1411,7 @@ impl IContactAggregationLink_Vtbl { } } } - unsafe extern "system" fn SetIsLinkResolved(this: *mut core::ffi::c_void, islinkresolved: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetIsLinkResolved(this: *mut core::ffi::c_void, islinkresolved: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationLink_Impl::SetIsLinkResolved(this, core::mem::transmute_copy(&islinkresolved)).into() @@ -1648,7 +1648,7 @@ impl IContactAggregationManager { pub unsafe fn GetVersionInfo(&self, plmajorversion: *mut i32, plminorversion: *mut i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetVersionInfo)(windows_core::Interface::as_raw(self), plmajorversion as _, plminorversion as _).ok() } } - pub unsafe fn CreateOrOpenGroup(&self, pgroupname: P0, options: CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS, pcreatedgroup: *mut super::super::Foundation::BOOL) -> windows_core::Result + pub unsafe fn CreateOrOpenGroup(&self, pgroupname: P0, options: CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS, pcreatedgroup: *mut windows_core::BOOL) -> windows_core::Result where P0: windows_core::Param, { @@ -1752,7 +1752,7 @@ impl IContactAggregationManager { pub struct IContactAggregationManager_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetVersionInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32, *mut i32) -> windows_core::HRESULT, - pub CreateOrOpenGroup: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS, *mut super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateOrOpenGroup: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS, *mut windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateExternalContact: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateServerPerson: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateServerContactLink: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1769,7 +1769,7 @@ pub struct IContactAggregationManager_Vtbl { } pub trait IContactAggregationManager_Impl: windows_core::IUnknownImpl { fn GetVersionInfo(&self, plmajorversion: *mut i32, plminorversion: *mut i32) -> windows_core::Result<()>; - fn CreateOrOpenGroup(&self, pgroupname: &windows_core::PCWSTR, options: CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS, pcreatedgroup: *mut super::super::Foundation::BOOL) -> windows_core::Result; + fn CreateOrOpenGroup(&self, pgroupname: &windows_core::PCWSTR, options: CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS, pcreatedgroup: *mut windows_core::BOOL) -> windows_core::Result; fn CreateExternalContact(&self) -> windows_core::Result; fn CreateServerPerson(&self) -> windows_core::Result; fn CreateServerContactLink(&self) -> windows_core::Result; @@ -1792,7 +1792,7 @@ impl IContactAggregationManager_Vtbl { IContactAggregationManager_Impl::GetVersionInfo(this, core::mem::transmute_copy(&plmajorversion), core::mem::transmute_copy(&plminorversion)).into() } } - unsafe extern "system" fn CreateOrOpenGroup(this: *mut core::ffi::c_void, pgroupname: windows_core::PCWSTR, options: CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS, pcreatedgroup: *mut super::super::Foundation::BOOL, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateOrOpenGroup(this: *mut core::ffi::c_void, pgroupname: windows_core::PCWSTR, options: CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS, pcreatedgroup: *mut windows_core::BOOL, ppgroup: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationManager_Impl::CreateOrOpenGroup(this, core::mem::transmute(&pgroupname), core::mem::transmute_copy(&options), core::mem::transmute_copy(&pcreatedgroup)) { @@ -2065,7 +2065,7 @@ impl IContactAggregationServerPerson { (windows_core::Interface::vtable(self).Id)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsTombstone(&self) -> windows_core::Result { + pub unsafe fn IsTombstone(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsTombstone)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2119,8 +2119,8 @@ pub struct IContactAggregationServerPerson_Vtbl { pub GroupsBaseline: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT, pub SetGroupsBaseline: unsafe extern "system" fn(*mut core::ffi::c_void, *const CONTACT_AGGREGATION_BLOB) -> windows_core::HRESULT, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub IsTombstone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetIsTombstone: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsTombstone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetIsTombstone: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub LinkedAggregateId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub SetLinkedAggregateId: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub ObjectId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, @@ -2144,8 +2144,8 @@ pub trait IContactAggregationServerPerson_Impl: windows_core::IUnknownImpl { fn GroupsBaseline(&self) -> windows_core::Result<*mut CONTACT_AGGREGATION_BLOB>; fn SetGroupsBaseline(&self, pgroups: *const CONTACT_AGGREGATION_BLOB) -> windows_core::Result<()>; fn Id(&self) -> windows_core::Result; - fn IsTombstone(&self) -> windows_core::Result; - fn SetIsTombstone(&self, istombstone: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsTombstone(&self) -> windows_core::Result; + fn SetIsTombstone(&self, istombstone: windows_core::BOOL) -> windows_core::Result<()>; fn LinkedAggregateId(&self) -> windows_core::Result; fn SetLinkedAggregateId(&self, plinkedaggregateid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn ObjectId(&self) -> windows_core::Result; @@ -2303,7 +2303,7 @@ impl IContactAggregationServerPerson_Vtbl { } } } - unsafe extern "system" fn IsTombstone(this: *mut core::ffi::c_void, pistombstone: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsTombstone(this: *mut core::ffi::c_void, pistombstone: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IContactAggregationServerPerson_Impl::IsTombstone(this) { @@ -2315,7 +2315,7 @@ impl IContactAggregationServerPerson_Vtbl { } } } - unsafe extern "system" fn SetIsTombstone(this: *mut core::ffi::c_void, istombstone: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetIsTombstone(this: *mut core::ffi::c_void, istombstone: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactAggregationServerPerson_Impl::SetIsTombstone(this, core::mem::transmute_copy(&istombstone)).into() @@ -2849,11 +2849,11 @@ pub struct IContactProperties_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetBinary: usize, pub SetLabels: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, u32, *const windows_core::PCWSTR) -> windows_core::HRESULT, - pub CreateArrayNode: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, super::super::Foundation::BOOL, windows_core::PWSTR, u32, *mut u32) -> windows_core::HRESULT, + pub CreateArrayNode: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, windows_core::BOOL, windows_core::PWSTR, u32, *mut u32) -> windows_core::HRESULT, pub DeleteProperty: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32) -> windows_core::HRESULT, pub DeleteArrayNode: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32) -> windows_core::HRESULT, pub DeleteLabels: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32) -> windows_core::HRESULT, - pub GetPropertyCollection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, u32, windows_core::PCWSTR, u32, *const windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetPropertyCollection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, u32, windows_core::PCWSTR, u32, *const windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait IContactProperties_Impl: windows_core::IUnknownImpl { @@ -2865,11 +2865,11 @@ pub trait IContactProperties_Impl: windows_core::IUnknownImpl { fn SetDate(&self, pszpropertyname: &windows_core::PCWSTR, dwflags: u32, ftdatetime: &super::super::Foundation::FILETIME) -> windows_core::Result<()>; fn SetBinary(&self, pszpropertyname: &windows_core::PCWSTR, dwflags: u32, pszcontenttype: &windows_core::PCWSTR, pstream: windows_core::Ref) -> windows_core::Result<()>; fn SetLabels(&self, pszarrayelementname: &windows_core::PCWSTR, dwflags: u32, dwlabelcount: u32, ppszlabels: *const windows_core::PCWSTR) -> windows_core::Result<()>; - fn CreateArrayNode(&self, pszarrayname: &windows_core::PCWSTR, dwflags: u32, fappend: super::super::Foundation::BOOL, psznewarrayelementname: windows_core::PWSTR, cchnewarrayelementname: u32, pdwcchnewarrayelementnamerequired: *mut u32) -> windows_core::Result<()>; + fn CreateArrayNode(&self, pszarrayname: &windows_core::PCWSTR, dwflags: u32, fappend: windows_core::BOOL, psznewarrayelementname: windows_core::PWSTR, cchnewarrayelementname: u32, pdwcchnewarrayelementnamerequired: *mut u32) -> windows_core::Result<()>; fn DeleteProperty(&self, pszpropertyname: &windows_core::PCWSTR, dwflags: u32) -> windows_core::Result<()>; fn DeleteArrayNode(&self, pszarrayelementname: &windows_core::PCWSTR, dwflags: u32) -> windows_core::Result<()>; fn DeleteLabels(&self, pszarrayelementname: &windows_core::PCWSTR, dwflags: u32) -> windows_core::Result<()>; - fn GetPropertyCollection(&self, pppropertycollection: windows_core::OutRef<'_, IContactPropertyCollection>, dwflags: u32, pszmultivaluename: &windows_core::PCWSTR, dwlabelcount: u32, ppszlabels: *const windows_core::PCWSTR, fanylabelmatches: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetPropertyCollection(&self, pppropertycollection: windows_core::OutRef<'_, IContactPropertyCollection>, dwflags: u32, pszmultivaluename: &windows_core::PCWSTR, dwlabelcount: u32, ppszlabels: *const windows_core::PCWSTR, fanylabelmatches: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl IContactProperties_Vtbl { @@ -2922,7 +2922,7 @@ impl IContactProperties_Vtbl { IContactProperties_Impl::SetLabels(this, core::mem::transmute(&pszarrayelementname), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwlabelcount), core::mem::transmute_copy(&ppszlabels)).into() } } - unsafe extern "system" fn CreateArrayNode(this: *mut core::ffi::c_void, pszarrayname: windows_core::PCWSTR, dwflags: u32, fappend: super::super::Foundation::BOOL, psznewarrayelementname: windows_core::PWSTR, cchnewarrayelementname: u32, pdwcchnewarrayelementnamerequired: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn CreateArrayNode(this: *mut core::ffi::c_void, pszarrayname: windows_core::PCWSTR, dwflags: u32, fappend: windows_core::BOOL, psznewarrayelementname: windows_core::PWSTR, cchnewarrayelementname: u32, pdwcchnewarrayelementnamerequired: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactProperties_Impl::CreateArrayNode(this, core::mem::transmute(&pszarrayname), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&fappend), core::mem::transmute_copy(&psznewarrayelementname), core::mem::transmute_copy(&cchnewarrayelementname), core::mem::transmute_copy(&pdwcchnewarrayelementnamerequired)).into() @@ -2946,7 +2946,7 @@ impl IContactProperties_Vtbl { IContactProperties_Impl::DeleteLabels(this, core::mem::transmute(&pszarrayelementname), core::mem::transmute_copy(&dwflags)).into() } } - unsafe extern "system" fn GetPropertyCollection(this: *mut core::ffi::c_void, pppropertycollection: *mut *mut core::ffi::c_void, dwflags: u32, pszmultivaluename: windows_core::PCWSTR, dwlabelcount: u32, ppszlabels: *const windows_core::PCWSTR, fanylabelmatches: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetPropertyCollection(this: *mut core::ffi::c_void, pppropertycollection: *mut *mut core::ffi::c_void, dwflags: u32, pszmultivaluename: windows_core::PCWSTR, dwlabelcount: u32, ppszlabels: *const windows_core::PCWSTR, fanylabelmatches: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IContactProperties_Impl::GetPropertyCollection(this, core::mem::transmute_copy(&pppropertycollection), core::mem::transmute_copy(&dwflags), core::mem::transmute(&pszmultivaluename), core::mem::transmute_copy(&dwlabelcount), core::mem::transmute_copy(&ppszlabels), core::mem::transmute_copy(&fanylabelmatches)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/DataExchange/mod.rs b/crates/libs/windows/src/Windows/Win32/System/DataExchange/mod.rs index e1a9f1bc4d..97201fb20c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DataExchange/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DataExchange/mod.rs @@ -16,17 +16,17 @@ where } #[inline] pub unsafe fn AddClipboardFormatListener(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn AddClipboardFormatListener(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn AddClipboardFormatListener(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { AddClipboardFormatListener(hwnd).ok() } } #[inline] -pub unsafe fn ChangeClipboardChain(hwndremove: super::super::Foundation::HWND, hwndnewnext: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn ChangeClipboardChain(hwndremove : super::super::Foundation:: HWND, hwndnewnext : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn ChangeClipboardChain(hwndremove: super::super::Foundation::HWND, hwndnewnext: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn ChangeClipboardChain(hwndremove : super::super::Foundation:: HWND, hwndnewnext : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { ChangeClipboardChain(hwndremove, hwndnewnext) } } #[inline] pub unsafe fn CloseClipboard() -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn CloseClipboard() -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn CloseClipboard() -> windows_core::BOOL); unsafe { CloseClipboard().ok() } } #[inline] @@ -35,8 +35,8 @@ pub unsafe fn CountClipboardFormats() -> i32 { unsafe { CountClipboardFormats() } } #[inline] -pub unsafe fn DdeAbandonTransaction(idinst: u32, hconv: HCONV, idtransaction: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DdeAbandonTransaction(idinst : u32, hconv : HCONV, idtransaction : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn DdeAbandonTransaction(idinst: u32, hconv: HCONV, idtransaction: u32) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DdeAbandonTransaction(idinst : u32, hconv : HCONV, idtransaction : u32) -> windows_core::BOOL); unsafe { DdeAbandonTransaction(idinst, hconv, idtransaction) } } #[inline] @@ -93,28 +93,28 @@ where unsafe { DdeCreateStringHandleW(idinst, psz.param().abi(), icodepage) } } #[inline] -pub unsafe fn DdeDisconnect(hconv: HCONV) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DdeDisconnect(hconv : HCONV) -> super::super::Foundation:: BOOL); +pub unsafe fn DdeDisconnect(hconv: HCONV) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DdeDisconnect(hconv : HCONV) -> windows_core::BOOL); unsafe { DdeDisconnect(hconv) } } #[inline] -pub unsafe fn DdeDisconnectList(hconvlist: HCONVLIST) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DdeDisconnectList(hconvlist : HCONVLIST) -> super::super::Foundation:: BOOL); +pub unsafe fn DdeDisconnectList(hconvlist: HCONVLIST) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DdeDisconnectList(hconvlist : HCONVLIST) -> windows_core::BOOL); unsafe { DdeDisconnectList(hconvlist) } } #[inline] -pub unsafe fn DdeEnableCallback(idinst: u32, hconv: HCONV, wcmd: DDE_ENABLE_CALLBACK_CMD) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DdeEnableCallback(idinst : u32, hconv : HCONV, wcmd : DDE_ENABLE_CALLBACK_CMD) -> super::super::Foundation:: BOOL); +pub unsafe fn DdeEnableCallback(idinst: u32, hconv: HCONV, wcmd: DDE_ENABLE_CALLBACK_CMD) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DdeEnableCallback(idinst : u32, hconv : HCONV, wcmd : DDE_ENABLE_CALLBACK_CMD) -> windows_core::BOOL); unsafe { DdeEnableCallback(idinst, hconv, wcmd) } } #[inline] -pub unsafe fn DdeFreeDataHandle(hdata: HDDEDATA) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DdeFreeDataHandle(hdata : HDDEDATA) -> super::super::Foundation:: BOOL); +pub unsafe fn DdeFreeDataHandle(hdata: HDDEDATA) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DdeFreeDataHandle(hdata : HDDEDATA) -> windows_core::BOOL); unsafe { DdeFreeDataHandle(hdata) } } #[inline] -pub unsafe fn DdeFreeStringHandle(idinst: u32, hsz: HSZ) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DdeFreeStringHandle(idinst : u32, hsz : HSZ) -> super::super::Foundation:: BOOL); +pub unsafe fn DdeFreeStringHandle(idinst: u32, hsz: HSZ) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DdeFreeStringHandle(idinst : u32, hsz : HSZ) -> windows_core::BOOL); unsafe { DdeFreeStringHandle(idinst, hsz) } } #[inline] @@ -129,7 +129,7 @@ pub unsafe fn DdeGetLastError(idinst: u32) -> u32 { } #[inline] pub unsafe fn DdeImpersonateClient(hconv: HCONV) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn DdeImpersonateClient(hconv : HCONV) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn DdeImpersonateClient(hconv : HCONV) -> windows_core::BOOL); unsafe { DdeImpersonateClient(hconv).ok() } } #[inline] @@ -143,8 +143,8 @@ pub unsafe fn DdeInitializeW(pidinst: *mut u32, pfncallback: PFNCALLBACK, afcmd: unsafe { DdeInitializeW(pidinst as _, pfncallback, afcmd, ulres.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn DdeKeepStringHandle(idinst: u32, hsz: HSZ) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DdeKeepStringHandle(idinst : u32, hsz : HSZ) -> super::super::Foundation:: BOOL); +pub unsafe fn DdeKeepStringHandle(idinst: u32, hsz: HSZ) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DdeKeepStringHandle(idinst : u32, hsz : HSZ) -> windows_core::BOOL); unsafe { DdeKeepStringHandle(idinst, hsz) } } #[inline] @@ -153,8 +153,8 @@ pub unsafe fn DdeNameService(idinst: u32, hsz1: Option, hsz2: Option, unsafe { DdeNameService(idinst, hsz1.unwrap_or(core::mem::zeroed()) as _, hsz2.unwrap_or(core::mem::zeroed()) as _, afcmd) } } #[inline] -pub unsafe fn DdePostAdvise(idinst: u32, hsztopic: HSZ, hszitem: HSZ) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DdePostAdvise(idinst : u32, hsztopic : HSZ, hszitem : HSZ) -> super::super::Foundation:: BOOL); +pub unsafe fn DdePostAdvise(idinst: u32, hsztopic: HSZ, hszitem: HSZ) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DdePostAdvise(idinst : u32, hsztopic : HSZ, hszitem : HSZ) -> windows_core::BOOL); unsafe { DdePostAdvise(idinst, hsztopic, hszitem) } } #[cfg(feature = "Win32_Security")] @@ -186,22 +186,22 @@ pub unsafe fn DdeReconnect(hconv: HCONV) -> HCONV { #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn DdeSetQualityOfService(hwndclient: super::super::Foundation::HWND, pqosnew: *const super::super::Security::SECURITY_QUALITY_OF_SERVICE, pqosprev: *mut super::super::Security::SECURITY_QUALITY_OF_SERVICE) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn DdeSetQualityOfService(hwndclient : super::super::Foundation:: HWND, pqosnew : *const super::super::Security:: SECURITY_QUALITY_OF_SERVICE, pqosprev : *mut super::super::Security:: SECURITY_QUALITY_OF_SERVICE) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn DdeSetQualityOfService(hwndclient : super::super::Foundation:: HWND, pqosnew : *const super::super::Security:: SECURITY_QUALITY_OF_SERVICE, pqosprev : *mut super::super::Security:: SECURITY_QUALITY_OF_SERVICE) -> windows_core::BOOL); unsafe { DdeSetQualityOfService(hwndclient, pqosnew, pqosprev as _).ok() } } #[inline] -pub unsafe fn DdeSetUserHandle(hconv: HCONV, id: u32, huser: usize) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DdeSetUserHandle(hconv : HCONV, id : u32, huser : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn DdeSetUserHandle(hconv: HCONV, id: u32, huser: usize) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DdeSetUserHandle(hconv : HCONV, id : u32, huser : usize) -> windows_core::BOOL); unsafe { DdeSetUserHandle(hconv, id, huser) } } #[inline] -pub unsafe fn DdeUnaccessData(hdata: HDDEDATA) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DdeUnaccessData(hdata : HDDEDATA) -> super::super::Foundation:: BOOL); +pub unsafe fn DdeUnaccessData(hdata: HDDEDATA) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DdeUnaccessData(hdata : HDDEDATA) -> windows_core::BOOL); unsafe { DdeUnaccessData(hdata) } } #[inline] -pub unsafe fn DdeUninitialize(idinst: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DdeUninitialize(idinst : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn DdeUninitialize(idinst: u32) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DdeUninitialize(idinst : u32) -> windows_core::BOOL); unsafe { DdeUninitialize(idinst) } } #[inline] @@ -211,7 +211,7 @@ pub unsafe fn DeleteAtom(natom: u16) -> u16 { } #[inline] pub unsafe fn EmptyClipboard() -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn EmptyClipboard() -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EmptyClipboard() -> windows_core::BOOL); unsafe { EmptyClipboard().ok() } } #[inline] @@ -236,8 +236,8 @@ where unsafe { FindAtomW(lpstring.param().abi()) } } #[inline] -pub unsafe fn FreeDDElParam(msg: u32, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn FreeDDElParam(msg : u32, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); +pub unsafe fn FreeDDElParam(msg: u32, lparam: super::super::Foundation::LPARAM) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn FreeDDElParam(msg : u32, lparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { FreeDDElParam(msg, lparam) } } #[inline] @@ -296,7 +296,7 @@ pub unsafe fn GetPriorityClipboardFormat(paformatprioritylist: &[u32]) -> i32 { } #[inline] pub unsafe fn GetUpdatedClipboardFormats(lpuiformats: &mut [u32], pcformatsout: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetUpdatedClipboardFormats(lpuiformats : *mut u32, cformats : u32, pcformatsout : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetUpdatedClipboardFormats(lpuiformats : *mut u32, cformats : u32, pcformatsout : *mut u32) -> windows_core::BOOL); unsafe { GetUpdatedClipboardFormats(core::mem::transmute(lpuiformats.as_ptr()), lpuiformats.len().try_into().unwrap(), pcformatsout as _).ok() } } #[inline] @@ -364,22 +364,22 @@ pub unsafe fn GlobalGetAtomNameW(natom: u16, lpbuffer: &mut [u16]) -> u32 { } #[inline] pub unsafe fn ImpersonateDdeClientWindow(hwndclient: super::super::Foundation::HWND, hwndserver: super::super::Foundation::HWND) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn ImpersonateDdeClientWindow(hwndclient : super::super::Foundation:: HWND, hwndserver : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn ImpersonateDdeClientWindow(hwndclient : super::super::Foundation:: HWND, hwndserver : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { ImpersonateDdeClientWindow(hwndclient, hwndserver).ok() } } #[inline] -pub unsafe fn InitAtomTable(nsize: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn InitAtomTable(nsize : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn InitAtomTable(nsize: u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn InitAtomTable(nsize : u32) -> windows_core::BOOL); unsafe { InitAtomTable(nsize) } } #[inline] pub unsafe fn IsClipboardFormatAvailable(format: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn IsClipboardFormatAvailable(format : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn IsClipboardFormatAvailable(format : u32) -> windows_core::BOOL); unsafe { IsClipboardFormatAvailable(format).ok() } } #[inline] pub unsafe fn OpenClipboard(hwndnewowner: Option) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn OpenClipboard(hwndnewowner : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn OpenClipboard(hwndnewowner : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { OpenClipboard(hwndnewowner.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -405,7 +405,7 @@ where } #[inline] pub unsafe fn RemoveClipboardFormatListener(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn RemoveClipboardFormatListener(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn RemoveClipboardFormatListener(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { RemoveClipboardFormatListener(hwnd).ok() } } #[inline] @@ -432,8 +432,8 @@ pub unsafe fn SetWinMetaFileBits(lpmeta16data: &[u8], hdcref: Option super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn UnpackDDElParam(msg : u32, lparam : super::super::Foundation:: LPARAM, puilo : *mut usize, puihi : *mut usize) -> super::super::Foundation:: BOOL); +pub unsafe fn UnpackDDElParam(msg: u32, lparam: super::super::Foundation::LPARAM, puilo: *mut usize, puihi: *mut usize) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn UnpackDDElParam(msg : u32, lparam : super::super::Foundation:: LPARAM, puilo : *mut usize, puihi : *mut usize) -> windows_core::BOOL); unsafe { UnpackDDElParam(msg, lparam, puilo as _, puihi as _) } } pub const APPCLASS_MASK: i32 = 15i32; @@ -872,7 +872,7 @@ impl Default for MONCBSTRUCT { #[derive(Clone, Copy, Debug, PartialEq)] pub struct MONCONVSTRUCT { pub cb: u32, - pub fConnect: super::super::Foundation::BOOL, + pub fConnect: windows_core::BOOL, pub dwTime: u32, pub hTask: super::super::Foundation::HANDLE, pub hszSvc: HSZ, @@ -902,7 +902,7 @@ impl Default for MONERRSTRUCT { #[derive(Clone, Copy, Debug, PartialEq)] pub struct MONHSZSTRUCTA { pub cb: u32, - pub fsAction: super::super::Foundation::BOOL, + pub fsAction: windows_core::BOOL, pub dwTime: u32, pub hsz: HSZ, pub hTask: super::super::Foundation::HANDLE, @@ -917,7 +917,7 @@ impl Default for MONHSZSTRUCTA { #[derive(Clone, Copy, Debug, PartialEq)] pub struct MONHSZSTRUCTW { pub cb: u32, - pub fsAction: super::super::Foundation::BOOL, + pub fsAction: windows_core::BOOL, pub dwTime: u32, pub hsz: HSZ, pub hTask: super::super::Foundation::HANDLE, @@ -934,13 +934,13 @@ pub struct MONLINKSTRUCT { pub cb: u32, pub dwTime: u32, pub hTask: super::super::Foundation::HANDLE, - pub fEstablished: super::super::Foundation::BOOL, - pub fNoData: super::super::Foundation::BOOL, + pub fEstablished: windows_core::BOOL, + pub fNoData: windows_core::BOOL, pub hszSvc: HSZ, pub hszTopic: HSZ, pub hszItem: HSZ, pub wFmt: u32, - pub fServer: super::super::Foundation::BOOL, + pub fServer: windows_core::BOOL, pub hConvServer: HCONV, pub hConvClient: HCONV, } 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 47a96238d3..346ebeb4ba 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs @@ -29,8 +29,8 @@ pub unsafe fn PxeDhcpInitialize(precvpacket: *const core::ffi::c_void, urecvpack unsafe { PxeDhcpInitialize(precvpacket, urecvpacketlen, preplypacket as _, umaxreplypacketlen, pureplypacketlen as _) } } #[inline] -pub unsafe fn PxeDhcpIsValid(ppacket: *const core::ffi::c_void, upacketlen: u32, brequestpacket: bool, pbpxeoptionpresent: Option<*mut super::super::Foundation::BOOL>) -> u32 { - windows_targets::link!("wdspxe.dll" "system" fn PxeDhcpIsValid(ppacket : *const core::ffi::c_void, upacketlen : u32, brequestpacket : super::super::Foundation:: BOOL, pbpxeoptionpresent : *mut super::super::Foundation:: BOOL) -> u32); +pub unsafe fn PxeDhcpIsValid(ppacket: *const core::ffi::c_void, upacketlen: u32, brequestpacket: bool, pbpxeoptionpresent: Option<*mut windows_core::BOOL>) -> u32 { + windows_targets::link!("wdspxe.dll" "system" fn PxeDhcpIsValid(ppacket : *const core::ffi::c_void, upacketlen : u32, brequestpacket : windows_core::BOOL, pbpxeoptionpresent : *mut windows_core::BOOL) -> u32); unsafe { PxeDhcpIsValid(ppacket, upacketlen, brequestpacket.into(), pbpxeoptionpresent.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -64,8 +64,8 @@ pub unsafe fn PxeDhcpv6Initialize(prequest: *const core::ffi::c_void, cbrequest: unsafe { PxeDhcpv6Initialize(prequest, cbrequest, preply as _, cbreply, pcbreplyused as _) } } #[inline] -pub unsafe fn PxeDhcpv6IsValid(ppacket: *const core::ffi::c_void, upacketlen: u32, brequestpacket: bool, pbpxeoptionpresent: Option<*mut super::super::Foundation::BOOL>) -> u32 { - windows_targets::link!("wdspxe.dll" "system" fn PxeDhcpv6IsValid(ppacket : *const core::ffi::c_void, upacketlen : u32, brequestpacket : super::super::Foundation:: BOOL, pbpxeoptionpresent : *mut super::super::Foundation:: BOOL) -> u32); +pub unsafe fn PxeDhcpv6IsValid(ppacket: *const core::ffi::c_void, upacketlen: u32, brequestpacket: bool, pbpxeoptionpresent: Option<*mut windows_core::BOOL>) -> u32 { + windows_targets::link!("wdspxe.dll" "system" fn PxeDhcpv6IsValid(ppacket : *const core::ffi::c_void, upacketlen : u32, brequestpacket : windows_core::BOOL, pbpxeoptionpresent : *mut windows_core::BOOL) -> u32); unsafe { PxeDhcpv6IsValid(ppacket, upacketlen, brequestpacket.into(), pbpxeoptionpresent.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -128,7 +128,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("wdspxe.dll" "system" fn PxeProviderRegister(pszprovidername : windows_core::PCWSTR, pszmodulepath : windows_core::PCWSTR, index : u32, biscritical : super::super::Foundation:: BOOL, phproviderkey : *mut super::Registry:: HKEY) -> u32); + windows_targets::link!("wdspxe.dll" "system" fn PxeProviderRegister(pszprovidername : windows_core::PCWSTR, pszmodulepath : windows_core::PCWSTR, index : u32, biscritical : windows_core::BOOL, phproviderkey : *mut super::Registry:: HKEY) -> u32); unsafe { PxeProviderRegister(pszprovidername.param().abi(), pszmodulepath.param().abi(), index, biscritical.into(), phproviderkey.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -3932,7 +3932,7 @@ pub struct PXE_PROVIDER { pub uSizeOfStruct: u32, pub pwszName: windows_core::PWSTR, pub pwszFilePath: windows_core::PWSTR, - pub bIsCritical: super::super::Foundation::BOOL, + pub bIsCritical: windows_core::BOOL, pub uIndex: u32, } impl Default for PXE_PROVIDER { diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Ceip/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Ceip/mod.rs index 74f204f704..034628d5d1 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Ceip/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Ceip/mod.rs @@ -1,5 +1,5 @@ #[inline] -pub unsafe fn CeipIsOptedIn() -> super::super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn CeipIsOptedIn() -> super::super::super::Foundation:: BOOL); +pub unsafe fn CeipIsOptedIn() -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn CeipIsOptedIn() -> windows_core::BOOL); unsafe { CeipIsOptedIn() } } 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 0dc7b7c2eb..76fffa502b 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 @@ -15,7 +15,7 @@ impl Default for COR_DEBUG_IL_TO_NATIVE_MAP { pub struct COR_IL_MAP { pub oldOffset: u32, pub newOffset: u32, - pub fAccurate: super::super::super::Foundation::BOOL, + pub fAccurate: windows_core::BOOL, } impl Default for COR_IL_MAP { fn default() -> Self { @@ -389,8 +389,8 @@ pub type FunctionEnter = Option; pub type FunctionEnter2 = Option; pub type FunctionEnter3 = Option; pub type FunctionEnter3WithInfo = Option; -pub type FunctionIDMapper = Option usize>; -pub type FunctionIDMapper2 = Option usize>; +pub type FunctionIDMapper = Option usize>; +pub type FunctionIDMapper2 = Option usize>; #[repr(C)] #[derive(Clone, Copy)] pub union FunctionIDOrClientID { @@ -519,7 +519,7 @@ impl ICorProfilerCallback { pub unsafe fn JITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).JITCompilationFinished)(windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into()).ok() } } - pub unsafe fn JITCachedFunctionSearchStarted(&self, functionid: usize) -> windows_core::Result { + pub unsafe fn JITCachedFunctionSearchStarted(&self, functionid: usize) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).JITCachedFunctionSearchStarted)(windows_core::Interface::as_raw(self), functionid, &mut result__).map(|| result__) @@ -531,7 +531,7 @@ impl ICorProfilerCallback { pub unsafe fn JITFunctionPitched(&self, functionid: usize) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).JITFunctionPitched)(windows_core::Interface::as_raw(self), functionid).ok() } } - pub unsafe fn JITInlining(&self, callerid: usize, calleeid: usize) -> windows_core::Result { + pub unsafe fn JITInlining(&self, callerid: usize, calleeid: usize) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).JITInlining)(windows_core::Interface::as_raw(self), callerid, calleeid, &mut result__).map(|| result__) @@ -690,23 +690,23 @@ pub struct ICorProfilerCallback_Vtbl { pub ClassUnloadStarted: unsafe extern "system" fn(*mut core::ffi::c_void, usize) -> windows_core::HRESULT, pub ClassUnloadFinished: unsafe extern "system" fn(*mut core::ffi::c_void, usize, windows_core::HRESULT) -> windows_core::HRESULT, pub FunctionUnloadStarted: unsafe extern "system" fn(*mut core::ffi::c_void, usize) -> windows_core::HRESULT, - pub JITCompilationStarted: unsafe extern "system" fn(*mut core::ffi::c_void, usize, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub JITCompilationFinished: unsafe extern "system" fn(*mut core::ffi::c_void, usize, windows_core::HRESULT, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub JITCachedFunctionSearchStarted: unsafe extern "system" fn(*mut core::ffi::c_void, usize, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub JITCompilationStarted: unsafe extern "system" fn(*mut core::ffi::c_void, usize, windows_core::BOOL) -> windows_core::HRESULT, + pub JITCompilationFinished: unsafe extern "system" fn(*mut core::ffi::c_void, usize, windows_core::HRESULT, windows_core::BOOL) -> windows_core::HRESULT, + pub JITCachedFunctionSearchStarted: unsafe extern "system" fn(*mut core::ffi::c_void, usize, *mut windows_core::BOOL) -> windows_core::HRESULT, pub JITCachedFunctionSearchFinished: unsafe extern "system" fn(*mut core::ffi::c_void, usize, COR_PRF_JIT_CACHE) -> windows_core::HRESULT, pub JITFunctionPitched: unsafe extern "system" fn(*mut core::ffi::c_void, usize) -> windows_core::HRESULT, - pub JITInlining: unsafe extern "system" fn(*mut core::ffi::c_void, usize, usize, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub JITInlining: unsafe extern "system" fn(*mut core::ffi::c_void, usize, usize, *mut windows_core::BOOL) -> windows_core::HRESULT, pub ThreadCreated: unsafe extern "system" fn(*mut core::ffi::c_void, usize) -> windows_core::HRESULT, pub ThreadDestroyed: unsafe extern "system" fn(*mut core::ffi::c_void, usize) -> windows_core::HRESULT, pub ThreadAssignedToOSThread: unsafe extern "system" fn(*mut core::ffi::c_void, usize, u32) -> windows_core::HRESULT, pub RemotingClientInvocationStarted: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub RemotingClientSendingMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub RemotingClientReceivingReply: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub RemotingClientSendingMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, windows_core::BOOL) -> windows_core::HRESULT, + pub RemotingClientReceivingReply: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, windows_core::BOOL) -> windows_core::HRESULT, pub RemotingClientInvocationFinished: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub RemotingServerReceivingMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub RemotingServerReceivingMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, windows_core::BOOL) -> windows_core::HRESULT, pub RemotingServerInvocationStarted: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub RemotingServerInvocationReturned: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub RemotingServerSendingReply: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub RemotingServerSendingReply: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, windows_core::BOOL) -> windows_core::HRESULT, pub UnmanagedToManagedTransition: unsafe extern "system" fn(*mut core::ffi::c_void, usize, COR_PRF_TRANSITION_REASON) -> windows_core::HRESULT, pub ManagedToUnmanagedTransition: unsafe extern "system" fn(*mut core::ffi::c_void, usize, COR_PRF_TRANSITION_REASON) -> windows_core::HRESULT, pub RuntimeSuspendStarted: unsafe extern "system" fn(*mut core::ffi::c_void, COR_PRF_SUSPEND_REASON) -> windows_core::HRESULT, @@ -761,23 +761,23 @@ pub trait ICorProfilerCallback_Impl: windows_core::IUnknownImpl { fn ClassUnloadStarted(&self, classid: usize) -> windows_core::Result<()>; fn ClassUnloadFinished(&self, classid: usize, hrstatus: windows_core::HRESULT) -> windows_core::Result<()>; fn FunctionUnloadStarted(&self, functionid: usize) -> windows_core::Result<()>; - fn JITCompilationStarted(&self, functionid: usize, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn JITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn JITCachedFunctionSearchStarted(&self, functionid: usize) -> windows_core::Result; + fn JITCompilationStarted(&self, functionid: usize, fissafetoblock: windows_core::BOOL) -> windows_core::Result<()>; + fn JITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: windows_core::BOOL) -> windows_core::Result<()>; + fn JITCachedFunctionSearchStarted(&self, functionid: usize) -> windows_core::Result; fn JITCachedFunctionSearchFinished(&self, functionid: usize, result: COR_PRF_JIT_CACHE) -> windows_core::Result<()>; fn JITFunctionPitched(&self, functionid: usize) -> windows_core::Result<()>; - fn JITInlining(&self, callerid: usize, calleeid: usize) -> windows_core::Result; + fn JITInlining(&self, callerid: usize, calleeid: usize) -> windows_core::Result; fn ThreadCreated(&self, threadid: usize) -> windows_core::Result<()>; fn ThreadDestroyed(&self, threadid: usize) -> windows_core::Result<()>; fn ThreadAssignedToOSThread(&self, managedthreadid: usize, osthreadid: u32) -> windows_core::Result<()>; fn RemotingClientInvocationStarted(&self) -> windows_core::Result<()>; - fn RemotingClientSendingMessage(&self, pcookie: *const windows_core::GUID, fisasync: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn RemotingClientReceivingReply(&self, pcookie: *const windows_core::GUID, fisasync: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn RemotingClientSendingMessage(&self, pcookie: *const windows_core::GUID, fisasync: windows_core::BOOL) -> windows_core::Result<()>; + fn RemotingClientReceivingReply(&self, pcookie: *const windows_core::GUID, fisasync: windows_core::BOOL) -> windows_core::Result<()>; fn RemotingClientInvocationFinished(&self) -> windows_core::Result<()>; - fn RemotingServerReceivingMessage(&self, pcookie: *const windows_core::GUID, fisasync: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn RemotingServerReceivingMessage(&self, pcookie: *const windows_core::GUID, fisasync: windows_core::BOOL) -> windows_core::Result<()>; fn RemotingServerInvocationStarted(&self) -> windows_core::Result<()>; fn RemotingServerInvocationReturned(&self) -> windows_core::Result<()>; - fn RemotingServerSendingReply(&self, pcookie: *const windows_core::GUID, fisasync: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn RemotingServerSendingReply(&self, pcookie: *const windows_core::GUID, fisasync: windows_core::BOOL) -> windows_core::Result<()>; fn UnmanagedToManagedTransition(&self, functionid: usize, reason: COR_PRF_TRANSITION_REASON) -> windows_core::Result<()>; fn ManagedToUnmanagedTransition(&self, functionid: usize, reason: COR_PRF_TRANSITION_REASON) -> windows_core::Result<()>; fn RuntimeSuspendStarted(&self, suspendreason: COR_PRF_SUSPEND_REASON) -> windows_core::Result<()>; @@ -933,19 +933,19 @@ impl ICorProfilerCallback_Vtbl { ICorProfilerCallback_Impl::FunctionUnloadStarted(this, core::mem::transmute_copy(&functionid)).into() } } - unsafe extern "system" fn JITCompilationStarted(this: *mut core::ffi::c_void, functionid: usize, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn JITCompilationStarted(this: *mut core::ffi::c_void, functionid: usize, fissafetoblock: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::JITCompilationStarted(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&fissafetoblock)).into() } } - unsafe extern "system" fn JITCompilationFinished(this: *mut core::ffi::c_void, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn JITCompilationFinished(this: *mut core::ffi::c_void, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::JITCompilationFinished(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&hrstatus), core::mem::transmute_copy(&fissafetoblock)).into() } } - unsafe extern "system" fn JITCachedFunctionSearchStarted(this: *mut core::ffi::c_void, functionid: usize, pbusecachedfunction: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn JITCachedFunctionSearchStarted(this: *mut core::ffi::c_void, functionid: usize, pbusecachedfunction: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerCallback_Impl::JITCachedFunctionSearchStarted(this, core::mem::transmute_copy(&functionid)) { @@ -969,7 +969,7 @@ impl ICorProfilerCallback_Vtbl { ICorProfilerCallback_Impl::JITFunctionPitched(this, core::mem::transmute_copy(&functionid)).into() } } - unsafe extern "system" fn JITInlining(this: *mut core::ffi::c_void, callerid: usize, calleeid: usize, pfshouldinline: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn JITInlining(this: *mut core::ffi::c_void, callerid: usize, calleeid: usize, pfshouldinline: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerCallback_Impl::JITInlining(this, core::mem::transmute_copy(&callerid), core::mem::transmute_copy(&calleeid)) { @@ -1005,13 +1005,13 @@ impl ICorProfilerCallback_Vtbl { ICorProfilerCallback_Impl::RemotingClientInvocationStarted(this).into() } } - unsafe extern "system" fn RemotingClientSendingMessage(this: *mut core::ffi::c_void, pcookie: *const windows_core::GUID, fisasync: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RemotingClientSendingMessage(this: *mut core::ffi::c_void, pcookie: *const windows_core::GUID, fisasync: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RemotingClientSendingMessage(this, core::mem::transmute_copy(&pcookie), core::mem::transmute_copy(&fisasync)).into() } } - unsafe extern "system" fn RemotingClientReceivingReply(this: *mut core::ffi::c_void, pcookie: *const windows_core::GUID, fisasync: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RemotingClientReceivingReply(this: *mut core::ffi::c_void, pcookie: *const windows_core::GUID, fisasync: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RemotingClientReceivingReply(this, core::mem::transmute_copy(&pcookie), core::mem::transmute_copy(&fisasync)).into() @@ -1023,7 +1023,7 @@ impl ICorProfilerCallback_Vtbl { ICorProfilerCallback_Impl::RemotingClientInvocationFinished(this).into() } } - unsafe extern "system" fn RemotingServerReceivingMessage(this: *mut core::ffi::c_void, pcookie: *const windows_core::GUID, fisasync: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RemotingServerReceivingMessage(this: *mut core::ffi::c_void, pcookie: *const windows_core::GUID, fisasync: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RemotingServerReceivingMessage(this, core::mem::transmute_copy(&pcookie), core::mem::transmute_copy(&fisasync)).into() @@ -1041,7 +1041,7 @@ impl ICorProfilerCallback_Vtbl { ICorProfilerCallback_Impl::RemotingServerInvocationReturned(this).into() } } - unsafe extern "system" fn RemotingServerSendingReply(this: *mut core::ffi::c_void, pcookie: *const windows_core::GUID, fisasync: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RemotingServerSendingReply(this: *mut core::ffi::c_void, pcookie: *const windows_core::GUID, fisasync: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback_Impl::RemotingServerSendingReply(this, core::mem::transmute_copy(&pcookie), core::mem::transmute_copy(&fisasync)).into() @@ -1392,21 +1392,21 @@ impl core::ops::Deref for ICorProfilerCallback11 { } windows_core::imp::interface_hierarchy!(ICorProfilerCallback11, windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4, ICorProfilerCallback5, ICorProfilerCallback6, ICorProfilerCallback7, ICorProfilerCallback8, ICorProfilerCallback9, ICorProfilerCallback10); impl ICorProfilerCallback11 { - pub unsafe fn LoadAsNotificationOnly(&self, pbnotificationonly: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn LoadAsNotificationOnly(&self, pbnotificationonly: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).LoadAsNotificationOnly)(windows_core::Interface::as_raw(self), pbnotificationonly as _).ok() } } } #[repr(C)] pub struct ICorProfilerCallback11_Vtbl { pub base__: ICorProfilerCallback10_Vtbl, - pub LoadAsNotificationOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub LoadAsNotificationOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ICorProfilerCallback11_Impl: ICorProfilerCallback10_Impl { - fn LoadAsNotificationOnly(&self, pbnotificationonly: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn LoadAsNotificationOnly(&self, pbnotificationonly: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl ICorProfilerCallback11_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn LoadAsNotificationOnly(this: *mut core::ffi::c_void, pbnotificationonly: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn LoadAsNotificationOnly(this: *mut core::ffi::c_void, pbnotificationonly: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback11_Impl::LoadAsNotificationOnly(this, core::mem::transmute_copy(&pbnotificationonly)).into() @@ -1431,7 +1431,7 @@ impl ICorProfilerCallback2 { pub unsafe fn ThreadNameChanged(&self, threadid: usize, name: Option<&[u16]>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).ThreadNameChanged)(windows_core::Interface::as_raw(self), threadid, name.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(name.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } } - pub unsafe fn GarbageCollectionStarted(&self, generationcollected: &[super::super::super::Foundation::BOOL], reason: COR_PRF_GC_REASON) -> windows_core::Result<()> { + pub unsafe fn GarbageCollectionStarted(&self, generationcollected: &[windows_core::BOOL], reason: COR_PRF_GC_REASON) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GarbageCollectionStarted)(windows_core::Interface::as_raw(self), generationcollected.len().try_into().unwrap(), core::mem::transmute(generationcollected.as_ptr()), reason).ok() } } pub unsafe fn SurvivingReferences(&self, csurvivingobjectidranges: u32, objectidrangestart: *const usize, cobjectidrangelength: *const u32) -> windows_core::Result<()> { @@ -1457,7 +1457,7 @@ impl ICorProfilerCallback2 { pub struct ICorProfilerCallback2_Vtbl { pub base__: ICorProfilerCallback_Vtbl, pub ThreadNameChanged: unsafe extern "system" fn(*mut core::ffi::c_void, usize, u32, windows_core::PCWSTR) -> windows_core::HRESULT, - pub GarbageCollectionStarted: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *const super::super::super::Foundation::BOOL, COR_PRF_GC_REASON) -> windows_core::HRESULT, + pub GarbageCollectionStarted: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *const windows_core::BOOL, COR_PRF_GC_REASON) -> windows_core::HRESULT, pub SurvivingReferences: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const usize, *const u32) -> windows_core::HRESULT, pub GarbageCollectionFinished: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub FinalizeableObjectQueued: unsafe extern "system" fn(*mut core::ffi::c_void, u32, usize) -> windows_core::HRESULT, @@ -1467,7 +1467,7 @@ pub struct ICorProfilerCallback2_Vtbl { } pub trait ICorProfilerCallback2_Impl: ICorProfilerCallback_Impl { fn ThreadNameChanged(&self, threadid: usize, cchname: u32, name: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn GarbageCollectionStarted(&self, cgenerations: i32, generationcollected: *const super::super::super::Foundation::BOOL, reason: COR_PRF_GC_REASON) -> windows_core::Result<()>; + fn GarbageCollectionStarted(&self, cgenerations: i32, generationcollected: *const windows_core::BOOL, reason: COR_PRF_GC_REASON) -> windows_core::Result<()>; fn SurvivingReferences(&self, csurvivingobjectidranges: u32, objectidrangestart: *const usize, cobjectidrangelength: *const u32) -> windows_core::Result<()>; fn GarbageCollectionFinished(&self) -> windows_core::Result<()>; fn FinalizeableObjectQueued(&self, finalizerflags: u32, objectid: usize) -> windows_core::Result<()>; @@ -1483,7 +1483,7 @@ impl ICorProfilerCallback2_Vtbl { ICorProfilerCallback2_Impl::ThreadNameChanged(this, core::mem::transmute_copy(&threadid), core::mem::transmute_copy(&cchname), core::mem::transmute(&name)).into() } } - unsafe extern "system" fn GarbageCollectionStarted(this: *mut core::ffi::c_void, cgenerations: i32, generationcollected: *const super::super::super::Foundation::BOOL, reason: COR_PRF_GC_REASON) -> windows_core::HRESULT { + unsafe extern "system" fn GarbageCollectionStarted(this: *mut core::ffi::c_void, cgenerations: i32, generationcollected: *const windows_core::BOOL, reason: COR_PRF_GC_REASON) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback2_Impl::GarbageCollectionStarted(this, core::mem::transmute_copy(&cgenerations), core::mem::transmute_copy(&generationcollected), core::mem::transmute_copy(&reason)).into() @@ -1642,24 +1642,24 @@ impl ICorProfilerCallback4 { #[repr(C)] pub struct ICorProfilerCallback4_Vtbl { pub base__: ICorProfilerCallback3_Vtbl, - pub ReJITCompilationStarted: unsafe extern "system" fn(*mut core::ffi::c_void, usize, usize, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ReJITCompilationStarted: unsafe extern "system" fn(*mut core::ffi::c_void, usize, usize, windows_core::BOOL) -> windows_core::HRESULT, pub GetReJITParameters: unsafe extern "system" fn(*mut core::ffi::c_void, usize, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub ReJITCompilationFinished: unsafe extern "system" fn(*mut core::ffi::c_void, usize, usize, windows_core::HRESULT, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ReJITCompilationFinished: unsafe extern "system" fn(*mut core::ffi::c_void, usize, usize, windows_core::HRESULT, windows_core::BOOL) -> windows_core::HRESULT, pub ReJITError: unsafe extern "system" fn(*mut core::ffi::c_void, usize, u32, usize, windows_core::HRESULT) -> windows_core::HRESULT, pub MovedReferences2: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const usize, *const usize, *const usize) -> windows_core::HRESULT, pub SurvivingReferences2: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const usize, *const usize) -> windows_core::HRESULT, } pub trait ICorProfilerCallback4_Impl: ICorProfilerCallback3_Impl { - fn ReJITCompilationStarted(&self, functionid: usize, rejitid: usize, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ReJITCompilationStarted(&self, functionid: usize, rejitid: usize, fissafetoblock: windows_core::BOOL) -> windows_core::Result<()>; fn GetReJITParameters(&self, moduleid: usize, methodid: u32, pfunctioncontrol: windows_core::Ref) -> windows_core::Result<()>; - fn ReJITCompilationFinished(&self, functionid: usize, rejitid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ReJITCompilationFinished(&self, functionid: usize, rejitid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: windows_core::BOOL) -> windows_core::Result<()>; fn ReJITError(&self, moduleid: usize, methodid: u32, functionid: usize, hrstatus: windows_core::HRESULT) -> windows_core::Result<()>; fn MovedReferences2(&self, cmovedobjectidranges: u32, oldobjectidrangestart: *const usize, newobjectidrangestart: *const usize, cobjectidrangelength: *const usize) -> windows_core::Result<()>; fn SurvivingReferences2(&self, csurvivingobjectidranges: u32, objectidrangestart: *const usize, cobjectidrangelength: *const usize) -> windows_core::Result<()>; } impl ICorProfilerCallback4_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn ReJITCompilationStarted(this: *mut core::ffi::c_void, functionid: usize, rejitid: usize, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ReJITCompilationStarted(this: *mut core::ffi::c_void, functionid: usize, rejitid: usize, fissafetoblock: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback4_Impl::ReJITCompilationStarted(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&rejitid), core::mem::transmute_copy(&fissafetoblock)).into() @@ -1671,7 +1671,7 @@ impl ICorProfilerCallback4_Vtbl { ICorProfilerCallback4_Impl::GetReJITParameters(this, core::mem::transmute_copy(&moduleid), core::mem::transmute_copy(&methodid), core::mem::transmute_copy(&pfunctioncontrol)).into() } } - unsafe extern "system" fn ReJITCompilationFinished(this: *mut core::ffi::c_void, functionid: usize, rejitid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ReJITCompilationFinished(this: *mut core::ffi::c_void, functionid: usize, rejitid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback4_Impl::ReJITCompilationFinished(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&rejitid), core::mem::transmute_copy(&hrstatus), core::mem::transmute_copy(&fissafetoblock)).into() @@ -1844,22 +1844,22 @@ impl ICorProfilerCallback8 { #[repr(C)] pub struct ICorProfilerCallback8_Vtbl { pub base__: ICorProfilerCallback7_Vtbl, - pub DynamicMethodJITCompilationStarted: unsafe extern "system" fn(*mut core::ffi::c_void, usize, super::super::super::Foundation::BOOL, *const u8, u32) -> windows_core::HRESULT, - pub DynamicMethodJITCompilationFinished: unsafe extern "system" fn(*mut core::ffi::c_void, usize, windows_core::HRESULT, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub DynamicMethodJITCompilationStarted: unsafe extern "system" fn(*mut core::ffi::c_void, usize, windows_core::BOOL, *const u8, u32) -> windows_core::HRESULT, + pub DynamicMethodJITCompilationFinished: unsafe extern "system" fn(*mut core::ffi::c_void, usize, windows_core::HRESULT, windows_core::BOOL) -> windows_core::HRESULT, } pub trait ICorProfilerCallback8_Impl: ICorProfilerCallback7_Impl { - fn DynamicMethodJITCompilationStarted(&self, functionid: usize, fissafetoblock: super::super::super::Foundation::BOOL, pilheader: *const u8, cbilheader: u32) -> windows_core::Result<()>; - fn DynamicMethodJITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn DynamicMethodJITCompilationStarted(&self, functionid: usize, fissafetoblock: windows_core::BOOL, pilheader: *const u8, cbilheader: u32) -> windows_core::Result<()>; + fn DynamicMethodJITCompilationFinished(&self, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: windows_core::BOOL) -> windows_core::Result<()>; } impl ICorProfilerCallback8_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn DynamicMethodJITCompilationStarted(this: *mut core::ffi::c_void, functionid: usize, fissafetoblock: super::super::super::Foundation::BOOL, pilheader: *const u8, cbilheader: u32) -> windows_core::HRESULT { + unsafe extern "system" fn DynamicMethodJITCompilationStarted(this: *mut core::ffi::c_void, functionid: usize, fissafetoblock: windows_core::BOOL, pilheader: *const u8, cbilheader: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback8_Impl::DynamicMethodJITCompilationStarted(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&fissafetoblock), core::mem::transmute_copy(&pilheader), core::mem::transmute_copy(&cbilheader)).into() } } - unsafe extern "system" fn DynamicMethodJITCompilationFinished(this: *mut core::ffi::c_void, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DynamicMethodJITCompilationFinished(this: *mut core::ffi::c_void, functionid: usize, hrstatus: windows_core::HRESULT, fissafetoblock: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerCallback8_Impl::DynamicMethodJITCompilationFinished(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&hrstatus), core::mem::transmute_copy(&fissafetoblock)).into() @@ -2249,11 +2249,11 @@ pub struct ICorProfilerInfo_Vtbl { pub GetAssemblyInfo: unsafe extern "system" fn(*mut core::ffi::c_void, usize, u32, *mut u32, windows_core::PWSTR, *mut usize, *mut usize) -> windows_core::HRESULT, pub SetFunctionReJIT: unsafe extern "system" fn(*mut core::ffi::c_void, usize) -> windows_core::HRESULT, pub ForceGC: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetILInstrumentedCodeMap: unsafe extern "system" fn(*mut core::ffi::c_void, usize, super::super::super::Foundation::BOOL, u32, *const COR_IL_MAP) -> windows_core::HRESULT, + pub SetILInstrumentedCodeMap: unsafe extern "system" fn(*mut core::ffi::c_void, usize, windows_core::BOOL, u32, *const COR_IL_MAP) -> windows_core::HRESULT, pub GetInprocInspectionInterface: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetInprocInspectionIThisThread: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetThreadContext: unsafe extern "system" fn(*mut core::ffi::c_void, usize, *mut usize) -> windows_core::HRESULT, - pub BeginInprocDebugging: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL, *mut u32) -> windows_core::HRESULT, + pub BeginInprocDebugging: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut u32) -> windows_core::HRESULT, pub EndInprocDebugging: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetILToNativeMapping: unsafe extern "system" fn(*mut core::ffi::c_void, usize, u32, *mut u32, *mut COR_DEBUG_IL_TO_NATIVE_MAP) -> windows_core::HRESULT, } @@ -2285,11 +2285,11 @@ pub trait ICorProfilerInfo_Impl: windows_core::IUnknownImpl { fn GetAssemblyInfo(&self, assemblyid: usize, cchname: u32, pcchname: *mut u32, szname: windows_core::PWSTR, pappdomainid: *mut usize, pmoduleid: *mut usize) -> windows_core::Result<()>; fn SetFunctionReJIT(&self, functionid: usize) -> windows_core::Result<()>; fn ForceGC(&self) -> windows_core::Result<()>; - fn SetILInstrumentedCodeMap(&self, functionid: usize, fstartjit: super::super::super::Foundation::BOOL, cilmapentries: u32, rgilmapentries: *const COR_IL_MAP) -> windows_core::Result<()>; + fn SetILInstrumentedCodeMap(&self, functionid: usize, fstartjit: windows_core::BOOL, cilmapentries: u32, rgilmapentries: *const COR_IL_MAP) -> windows_core::Result<()>; fn GetInprocInspectionInterface(&self) -> windows_core::Result; fn GetInprocInspectionIThisThread(&self) -> windows_core::Result; fn GetThreadContext(&self, threadid: usize) -> windows_core::Result; - fn BeginInprocDebugging(&self, fthisthreadonly: super::super::super::Foundation::BOOL) -> windows_core::Result; + fn BeginInprocDebugging(&self, fthisthreadonly: windows_core::BOOL) -> windows_core::Result; fn EndInprocDebugging(&self, dwprofilercontext: u32) -> windows_core::Result<()>; fn GetILToNativeMapping(&self, functionid: usize, cmap: u32, pcmap: *mut u32, map: *mut COR_DEBUG_IL_TO_NATIVE_MAP) -> windows_core::Result<()>; } @@ -2518,7 +2518,7 @@ impl ICorProfilerInfo_Vtbl { ICorProfilerInfo_Impl::ForceGC(this).into() } } - unsafe extern "system" fn SetILInstrumentedCodeMap(this: *mut core::ffi::c_void, functionid: usize, fstartjit: super::super::super::Foundation::BOOL, cilmapentries: u32, rgilmapentries: *const COR_IL_MAP) -> windows_core::HRESULT { + unsafe extern "system" fn SetILInstrumentedCodeMap(this: *mut core::ffi::c_void, functionid: usize, fstartjit: windows_core::BOOL, cilmapentries: u32, rgilmapentries: *const COR_IL_MAP) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo_Impl::SetILInstrumentedCodeMap(this, core::mem::transmute_copy(&functionid), core::mem::transmute_copy(&fstartjit), core::mem::transmute_copy(&cilmapentries), core::mem::transmute_copy(&rgilmapentries)).into() @@ -2560,7 +2560,7 @@ impl ICorProfilerInfo_Vtbl { } } } - unsafe extern "system" fn BeginInprocDebugging(this: *mut core::ffi::c_void, fthisthreadonly: super::super::super::Foundation::BOOL, pdwprofilercontext: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn BeginInprocDebugging(this: *mut core::ffi::c_void, fthisthreadonly: windows_core::BOOL, pdwprofilercontext: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo_Impl::BeginInprocDebugging(this, core::mem::transmute_copy(&fthisthreadonly)) { @@ -2639,7 +2639,7 @@ impl ICorProfilerInfo10 { pub unsafe fn EnumerateObjectReferences(&self, objectid: usize, callback: ObjectReferenceCallback, clientdata: *mut core::ffi::c_void) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).EnumerateObjectReferences)(windows_core::Interface::as_raw(self), objectid, callback, clientdata as _).ok() } } - pub unsafe fn IsFrozenObject(&self, objectid: usize, pbfrozen: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn IsFrozenObject(&self, objectid: usize, pbfrozen: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsFrozenObject)(windows_core::Interface::as_raw(self), objectid, pbfrozen as _).ok() } } pub unsafe fn GetLOHObjectSizeThreshold(&self, pthreshold: *mut u32) -> windows_core::Result<()> { @@ -2659,7 +2659,7 @@ impl ICorProfilerInfo10 { pub struct ICorProfilerInfo10_Vtbl { pub base__: ICorProfilerInfo9_Vtbl, pub EnumerateObjectReferences: unsafe extern "system" fn(*mut core::ffi::c_void, usize, ObjectReferenceCallback, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsFrozenObject: unsafe extern "system" fn(*mut core::ffi::c_void, usize, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsFrozenObject: unsafe extern "system" fn(*mut core::ffi::c_void, usize, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetLOHObjectSizeThreshold: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub RequestReJITWithInliners: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const usize, *const u32) -> windows_core::HRESULT, pub SuspendRuntime: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2668,7 +2668,7 @@ pub struct ICorProfilerInfo10_Vtbl { #[cfg(feature = "Win32_System_WinRT_Metadata")] pub trait ICorProfilerInfo10_Impl: ICorProfilerInfo9_Impl { fn EnumerateObjectReferences(&self, objectid: usize, callback: ObjectReferenceCallback, clientdata: *mut core::ffi::c_void) -> windows_core::Result<()>; - fn IsFrozenObject(&self, objectid: usize, pbfrozen: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsFrozenObject(&self, objectid: usize, pbfrozen: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetLOHObjectSizeThreshold(&self, pthreshold: *mut u32) -> windows_core::Result<()>; fn RequestReJITWithInliners(&self, dwrejitflags: u32, cfunctions: u32, moduleids: *const usize, methodids: *const u32) -> windows_core::Result<()>; fn SuspendRuntime(&self) -> windows_core::Result<()>; @@ -2683,7 +2683,7 @@ impl ICorProfilerInfo10_Vtbl { ICorProfilerInfo10_Impl::EnumerateObjectReferences(this, core::mem::transmute_copy(&objectid), core::mem::transmute_copy(&callback), core::mem::transmute_copy(&clientdata)).into() } } - unsafe extern "system" fn IsFrozenObject(this: *mut core::ffi::c_void, objectid: usize, pbfrozen: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsFrozenObject(this: *mut core::ffi::c_void, objectid: usize, pbfrozen: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo10_Impl::IsFrozenObject(this, core::mem::transmute_copy(&objectid), core::mem::transmute_copy(&pbfrozen)).into() @@ -2839,28 +2839,28 @@ impl ICorProfilerInfo12 { #[repr(C)] pub struct ICorProfilerInfo12_Vtbl { pub base__: ICorProfilerInfo11_Vtbl, - pub EventPipeStartSession: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const COR_PRF_EVENTPIPE_PROVIDER_CONFIG, super::super::super::Foundation::BOOL, *mut u64) -> windows_core::HRESULT, + pub EventPipeStartSession: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const COR_PRF_EVENTPIPE_PROVIDER_CONFIG, windows_core::BOOL, *mut u64) -> windows_core::HRESULT, pub EventPipeAddProviderToSession: unsafe extern "system" fn(*mut core::ffi::c_void, u64, COR_PRF_EVENTPIPE_PROVIDER_CONFIG) -> windows_core::HRESULT, pub EventPipeStopSession: unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, pub EventPipeCreateProvider: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut usize) -> windows_core::HRESULT, pub EventPipeGetProviderInfo: unsafe extern "system" fn(*mut core::ffi::c_void, usize, u32, *mut u32, windows_core::PWSTR) -> windows_core::HRESULT, - pub EventPipeDefineEvent: unsafe extern "system" fn(*mut core::ffi::c_void, usize, windows_core::PCWSTR, u32, u64, u32, u32, u8, super::super::super::Foundation::BOOL, u32, *const COR_PRF_EVENTPIPE_PARAM_DESC, *mut usize) -> windows_core::HRESULT, + pub EventPipeDefineEvent: unsafe extern "system" fn(*mut core::ffi::c_void, usize, windows_core::PCWSTR, u32, u64, u32, u32, u8, windows_core::BOOL, u32, *const COR_PRF_EVENTPIPE_PARAM_DESC, *mut usize) -> windows_core::HRESULT, pub EventPipeWriteEvent: unsafe extern "system" fn(*mut core::ffi::c_void, usize, u32, *const COR_PRF_EVENT_DATA, *const windows_core::GUID, *const windows_core::GUID) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_WinRT_Metadata")] pub trait ICorProfilerInfo12_Impl: ICorProfilerInfo11_Impl { - fn EventPipeStartSession(&self, cproviderconfigs: u32, pproviderconfigs: *const COR_PRF_EVENTPIPE_PROVIDER_CONFIG, requestrundown: super::super::super::Foundation::BOOL) -> windows_core::Result; + fn EventPipeStartSession(&self, cproviderconfigs: u32, pproviderconfigs: *const COR_PRF_EVENTPIPE_PROVIDER_CONFIG, requestrundown: windows_core::BOOL) -> windows_core::Result; fn EventPipeAddProviderToSession(&self, session: u64, providerconfig: &COR_PRF_EVENTPIPE_PROVIDER_CONFIG) -> windows_core::Result<()>; fn EventPipeStopSession(&self, session: u64) -> windows_core::Result<()>; fn EventPipeCreateProvider(&self, providername: &windows_core::PCWSTR) -> windows_core::Result; fn EventPipeGetProviderInfo(&self, provider: usize, cchname: u32, pcchname: *mut u32, providername: windows_core::PWSTR) -> windows_core::Result<()>; - fn EventPipeDefineEvent(&self, 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) -> windows_core::Result; + fn EventPipeDefineEvent(&self, provider: usize, eventname: &windows_core::PCWSTR, eventid: u32, keywords: u64, eventversion: u32, level: u32, opcode: u8, needstack: windows_core::BOOL, cparamdescs: u32, pparamdescs: *const COR_PRF_EVENTPIPE_PARAM_DESC) -> windows_core::Result; fn EventPipeWriteEvent(&self, event: usize, cdata: u32, data: *const COR_PRF_EVENT_DATA, pactivityid: *const windows_core::GUID, prelatedactivityid: *const windows_core::GUID) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_WinRT_Metadata")] impl ICorProfilerInfo12_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn EventPipeStartSession(this: *mut core::ffi::c_void, cproviderconfigs: u32, pproviderconfigs: *const COR_PRF_EVENTPIPE_PROVIDER_CONFIG, requestrundown: super::super::super::Foundation::BOOL, psession: *mut u64) -> windows_core::HRESULT { + unsafe extern "system" fn EventPipeStartSession(this: *mut core::ffi::c_void, cproviderconfigs: u32, pproviderconfigs: *const COR_PRF_EVENTPIPE_PROVIDER_CONFIG, requestrundown: windows_core::BOOL, psession: *mut u64) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo12_Impl::EventPipeStartSession(this, core::mem::transmute_copy(&cproviderconfigs), core::mem::transmute_copy(&pproviderconfigs), core::mem::transmute_copy(&requestrundown)) { @@ -2902,7 +2902,7 @@ impl ICorProfilerInfo12_Vtbl { ICorProfilerInfo12_Impl::EventPipeGetProviderInfo(this, core::mem::transmute_copy(&provider), core::mem::transmute_copy(&cchname), core::mem::transmute_copy(&pcchname), core::mem::transmute_copy(&providername)).into() } } - unsafe extern "system" fn EventPipeDefineEvent(this: *mut core::ffi::c_void, provider: usize, eventname: windows_core::PCWSTR, eventid: u32, keywords: u64, eventversion: u32, level: u32, opcode: u8, needstack: super::super::super::Foundation::BOOL, cparamdescs: u32, pparamdescs: *const COR_PRF_EVENTPIPE_PARAM_DESC, pevent: *mut usize) -> windows_core::HRESULT { + unsafe extern "system" fn EventPipeDefineEvent(this: *mut core::ffi::c_void, provider: usize, eventname: windows_core::PCWSTR, eventid: u32, keywords: u64, eventversion: u32, level: u32, opcode: u8, needstack: windows_core::BOOL, cparamdescs: u32, pparamdescs: *const COR_PRF_EVENTPIPE_PARAM_DESC, pevent: *mut usize) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo12_Impl::EventPipeDefineEvent(this, core::mem::transmute_copy(&provider), core::mem::transmute(&eventname), core::mem::transmute_copy(&eventid), core::mem::transmute_copy(&keywords), core::mem::transmute_copy(&eventversion), core::mem::transmute_copy(&level), core::mem::transmute_copy(&opcode), core::mem::transmute_copy(&needstack), core::mem::transmute_copy(&cparamdescs), core::mem::transmute_copy(&pparamdescs)) { @@ -3947,23 +3947,23 @@ impl core::ops::Deref for ICorProfilerInfo6 { } windows_core::imp::interface_hierarchy!(ICorProfilerInfo6, windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5); impl ICorProfilerInfo6 { - pub unsafe fn EnumNgenModuleMethodsInliningThisMethod(&self, inlinersmoduleid: usize, inlineemoduleid: usize, inlineemethodid: u32, incompletedata: *mut super::super::super::Foundation::BOOL, ppenum: *mut Option) -> windows_core::Result<()> { + pub unsafe fn EnumNgenModuleMethodsInliningThisMethod(&self, inlinersmoduleid: usize, inlineemoduleid: usize, inlineemethodid: u32, incompletedata: *mut windows_core::BOOL, ppenum: *mut Option) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).EnumNgenModuleMethodsInliningThisMethod)(windows_core::Interface::as_raw(self), inlinersmoduleid, inlineemoduleid, inlineemethodid, incompletedata as _, core::mem::transmute(ppenum)).ok() } } } #[repr(C)] pub struct ICorProfilerInfo6_Vtbl { pub base__: ICorProfilerInfo5_Vtbl, - pub EnumNgenModuleMethodsInliningThisMethod: unsafe extern "system" fn(*mut core::ffi::c_void, usize, usize, u32, *mut super::super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub EnumNgenModuleMethodsInliningThisMethod: unsafe extern "system" fn(*mut core::ffi::c_void, usize, usize, u32, *mut windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_WinRT_Metadata")] pub trait ICorProfilerInfo6_Impl: ICorProfilerInfo5_Impl { - fn EnumNgenModuleMethodsInliningThisMethod(&self, inlinersmoduleid: usize, inlineemoduleid: usize, inlineemethodid: u32, incompletedata: *mut super::super::super::Foundation::BOOL, ppenum: windows_core::OutRef<'_, ICorProfilerMethodEnum>) -> windows_core::Result<()>; + fn EnumNgenModuleMethodsInliningThisMethod(&self, inlinersmoduleid: usize, inlineemoduleid: usize, inlineemethodid: u32, incompletedata: *mut windows_core::BOOL, ppenum: windows_core::OutRef<'_, ICorProfilerMethodEnum>) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_WinRT_Metadata")] impl ICorProfilerInfo6_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn EnumNgenModuleMethodsInliningThisMethod(this: *mut core::ffi::c_void, inlinersmoduleid: usize, inlineemoduleid: usize, inlineemethodid: u32, incompletedata: *mut super::super::super::Foundation::BOOL, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn EnumNgenModuleMethodsInliningThisMethod(this: *mut core::ffi::c_void, inlinersmoduleid: usize, inlineemoduleid: usize, inlineemethodid: u32, incompletedata: *mut windows_core::BOOL, ppenum: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICorProfilerInfo6_Impl::EnumNgenModuleMethodsInliningThisMethod(this, core::mem::transmute_copy(&inlinersmoduleid), core::mem::transmute_copy(&inlineemoduleid), core::mem::transmute_copy(&inlineemethodid), core::mem::transmute_copy(&incompletedata), core::mem::transmute_copy(&ppenum)).into() @@ -4064,7 +4064,7 @@ impl core::ops::Deref for ICorProfilerInfo8 { } windows_core::imp::interface_hierarchy!(ICorProfilerInfo8, windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6, ICorProfilerInfo7); impl ICorProfilerInfo8 { - pub unsafe fn IsFunctionDynamic(&self, functionid: usize) -> windows_core::Result { + pub unsafe fn IsFunctionDynamic(&self, functionid: usize) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsFunctionDynamic)(windows_core::Interface::as_raw(self), functionid, &mut result__).map(|| result__) @@ -4080,20 +4080,20 @@ impl ICorProfilerInfo8 { #[repr(C)] pub struct ICorProfilerInfo8_Vtbl { pub base__: ICorProfilerInfo7_Vtbl, - pub IsFunctionDynamic: unsafe extern "system" fn(*mut core::ffi::c_void, usize, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsFunctionDynamic: unsafe extern "system" fn(*mut core::ffi::c_void, usize, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetFunctionFromIP3: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, *mut usize, *mut usize) -> windows_core::HRESULT, pub GetDynamicFunctionInfo: unsafe extern "system" fn(*mut core::ffi::c_void, usize, *mut usize, *mut *mut u8, *mut u32, u32, *mut u32, windows_core::PWSTR) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_WinRT_Metadata")] pub trait ICorProfilerInfo8_Impl: ICorProfilerInfo7_Impl { - fn IsFunctionDynamic(&self, functionid: usize) -> windows_core::Result; + fn IsFunctionDynamic(&self, functionid: usize) -> windows_core::Result; fn GetFunctionFromIP3(&self, ip: *const u8, functionid: *mut usize, prejitid: *mut usize) -> windows_core::Result<()>; fn GetDynamicFunctionInfo(&self, functionid: usize, moduleid: *mut usize, ppvsig: *mut *mut u8, pbsig: *mut u32, cchname: u32, pcchname: *mut u32, wszname: windows_core::PWSTR) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_WinRT_Metadata")] impl ICorProfilerInfo8_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsFunctionDynamic(this: *mut core::ffi::c_void, functionid: usize, isdynamic: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsFunctionDynamic(this: *mut core::ffi::c_void, functionid: usize, isdynamic: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICorProfilerInfo8_Impl::IsFunctionDynamic(this, core::mem::transmute_copy(&functionid)) { @@ -4623,7 +4623,7 @@ impl IMethodMalloc_Vtbl { } impl windows_core::RuntimeName for IMethodMalloc {} pub const NO_MAPPING: CorDebugIlToNativeMappingTypes = CorDebugIlToNativeMappingTypes(-1i32); -pub type ObjectReferenceCallback = Option super::super::super::Foundation::BOOL>; +pub type ObjectReferenceCallback = Option windows_core::BOOL>; pub const PROFILER_GLOBAL_CLASS: COR_PRF_MISC = COR_PRF_MISC(-2i32); pub const PROFILER_GLOBAL_MODULE: COR_PRF_MISC = COR_PRF_MISC(-1i32); pub const PROFILER_PARENT_UNKNOWN: COR_PRF_MISC = COR_PRF_MISC(-3i32); 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 5398a17da6..9bc996e3b5 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 @@ -208,7 +208,7 @@ pub struct DebugStackFrameDescriptor { pub pdsf: core::mem::ManuallyDrop>, pub dwMin: u32, pub dwLim: u32, - pub fFinal: super::super::super::super::Foundation::BOOL, + pub fFinal: windows_core::BOOL, pub punkFinal: core::mem::ManuallyDrop>, } impl Default for DebugStackFrameDescriptor { @@ -222,7 +222,7 @@ pub struct DebugStackFrameDescriptor64 { pub pdsf: core::mem::ManuallyDrop>, pub dwMin: u64, pub dwLim: u64, - pub fFinal: super::super::super::super::Foundation::BOOL, + pub fFinal: windows_core::BOOL, pub punkFinal: core::mem::ManuallyDrop>, } impl Default for DebugStackFrameDescriptor64 { @@ -602,7 +602,7 @@ impl IActiveScriptAuthor { { unsafe { (windows_core::Interface::vtable(self).GetInfoFromContext)(windows_core::Interface::as_raw(self), pszcode.param().abi(), cchcode, ichcurrentposition, dwlisttypesrequested, pdwlisttypesprovided as _, pichlistanchorposition as _, pichfuncanchorposition as _, pmemid as _, picurrentparameter as _, core::mem::transmute(ppunk)).ok() } } - pub unsafe fn IsCommitChar(&self, ch: u16) -> windows_core::Result { + pub unsafe fn IsCommitChar(&self, ch: u16) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsCommitChar)(windows_core::Interface::as_raw(self), ch, &mut result__).map(|| result__) @@ -631,7 +631,7 @@ pub struct IActiveScriptAuthor_Vtbl { pub RemoveTypeLib: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u32, u32) -> windows_core::HRESULT, pub GetChars: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetInfoFromContext: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, u32, u32, *mut u32, *mut u32, *mut u32, *mut i32, *mut i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsCommitChar: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsCommitChar: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait IActiveScriptAuthor_Impl: windows_core::IUnknownImpl { @@ -648,7 +648,7 @@ pub trait IActiveScriptAuthor_Impl: windows_core::IUnknownImpl { fn RemoveTypeLib(&self, rguidtypelib: *const windows_core::GUID, dwmajor: u32, dwminor: u32) -> windows_core::Result<()>; fn GetChars(&self, frequestedlist: u32) -> windows_core::Result; fn GetInfoFromContext(&self, pszcode: &windows_core::PCWSTR, cchcode: u32, ichcurrentposition: u32, dwlisttypesrequested: u32, pdwlisttypesprovided: *mut u32, pichlistanchorposition: *mut u32, pichfuncanchorposition: *mut u32, pmemid: *mut i32, picurrentparameter: *mut i32, ppunk: windows_core::OutRef<'_, windows_core::IUnknown>) -> windows_core::Result<()>; - fn IsCommitChar(&self, ch: u16) -> windows_core::Result; + fn IsCommitChar(&self, ch: u16) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl IActiveScriptAuthor_Vtbl { @@ -755,7 +755,7 @@ impl IActiveScriptAuthor_Vtbl { IActiveScriptAuthor_Impl::GetInfoFromContext(this, core::mem::transmute(&pszcode), core::mem::transmute_copy(&cchcode), core::mem::transmute_copy(&ichcurrentposition), core::mem::transmute_copy(&dwlisttypesrequested), core::mem::transmute_copy(&pdwlisttypesprovided), core::mem::transmute_copy(&pichlistanchorposition), core::mem::transmute_copy(&pichfuncanchorposition), core::mem::transmute_copy(&pmemid), core::mem::transmute_copy(&picurrentparameter), core::mem::transmute_copy(&ppunk)).into() } } - unsafe extern "system" fn IsCommitChar(this: *mut core::ffi::c_void, ch: u16, pfcommit: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsCommitChar(this: *mut core::ffi::c_void, ch: u16, pfcommit: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptAuthor_Impl::IsCommitChar(this, core::mem::transmute_copy(&ch)) { @@ -2532,7 +2532,7 @@ impl IActiveScriptSiteDebug32 { (windows_core::Interface::vtable(self).GetRootApplicationNode)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn OnScriptErrorDebug(&self, perrordebug: P0, pfenterdebugger: *mut super::super::super::super::Foundation::BOOL, pfcallonscripterrorwhencontinuing: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn OnScriptErrorDebug(&self, perrordebug: P0, pfenterdebugger: *mut windows_core::BOOL, pfcallonscripterrorwhencontinuing: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -2545,13 +2545,13 @@ pub struct IActiveScriptSiteDebug32_Vtbl { pub GetDocumentContextFromPosition: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetApplication: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetRootApplicationNode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub OnScriptErrorDebug: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::super::super::Foundation::BOOL, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnScriptErrorDebug: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IActiveScriptSiteDebug32_Impl: windows_core::IUnknownImpl { fn GetDocumentContextFromPosition(&self, dwsourcecontext: u32, ucharacteroffset: u32, unumchars: u32) -> windows_core::Result; fn GetApplication(&self) -> windows_core::Result; fn GetRootApplicationNode(&self) -> windows_core::Result; - fn OnScriptErrorDebug(&self, perrordebug: windows_core::Ref, pfenterdebugger: *mut super::super::super::super::Foundation::BOOL, pfcallonscripterrorwhencontinuing: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnScriptErrorDebug(&self, perrordebug: windows_core::Ref, pfenterdebugger: *mut windows_core::BOOL, pfcallonscripterrorwhencontinuing: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IActiveScriptSiteDebug32_Vtbl { pub const fn new() -> Self { @@ -2591,7 +2591,7 @@ impl IActiveScriptSiteDebug32_Vtbl { } } } - unsafe extern "system" fn OnScriptErrorDebug(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pfenterdebugger: *mut super::super::super::super::Foundation::BOOL, pfcallonscripterrorwhencontinuing: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnScriptErrorDebug(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pfenterdebugger: *mut windows_core::BOOL, pfcallonscripterrorwhencontinuing: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptSiteDebug32_Impl::OnScriptErrorDebug(this, core::mem::transmute_copy(&perrordebug), core::mem::transmute_copy(&pfenterdebugger), core::mem::transmute_copy(&pfcallonscripterrorwhencontinuing)).into() @@ -2631,7 +2631,7 @@ impl IActiveScriptSiteDebug64 { (windows_core::Interface::vtable(self).GetRootApplicationNode)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn OnScriptErrorDebug(&self, perrordebug: P0, pfenterdebugger: *mut super::super::super::super::Foundation::BOOL, pfcallonscripterrorwhencontinuing: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn OnScriptErrorDebug(&self, perrordebug: P0, pfenterdebugger: *mut windows_core::BOOL, pfcallonscripterrorwhencontinuing: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -2644,13 +2644,13 @@ pub struct IActiveScriptSiteDebug64_Vtbl { pub GetDocumentContextFromPosition: unsafe extern "system" fn(*mut core::ffi::c_void, u64, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetApplication: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetRootApplicationNode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub OnScriptErrorDebug: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::super::super::Foundation::BOOL, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnScriptErrorDebug: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IActiveScriptSiteDebug64_Impl: windows_core::IUnknownImpl { fn GetDocumentContextFromPosition(&self, dwsourcecontext: u64, ucharacteroffset: u32, unumchars: u32) -> windows_core::Result; fn GetApplication(&self) -> windows_core::Result; fn GetRootApplicationNode(&self) -> windows_core::Result; - fn OnScriptErrorDebug(&self, perrordebug: windows_core::Ref, pfenterdebugger: *mut super::super::super::super::Foundation::BOOL, pfcallonscripterrorwhencontinuing: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnScriptErrorDebug(&self, perrordebug: windows_core::Ref, pfenterdebugger: *mut windows_core::BOOL, pfcallonscripterrorwhencontinuing: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IActiveScriptSiteDebug64_Vtbl { pub const fn new() -> Self { @@ -2690,7 +2690,7 @@ impl IActiveScriptSiteDebug64_Vtbl { } } } - unsafe extern "system" fn OnScriptErrorDebug(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pfenterdebugger: *mut super::super::super::super::Foundation::BOOL, pfcallonscripterrorwhencontinuing: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnScriptErrorDebug(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pfenterdebugger: *mut windows_core::BOOL, pfcallonscripterrorwhencontinuing: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptSiteDebug64_Impl::OnScriptErrorDebug(this, core::mem::transmute_copy(&perrordebug), core::mem::transmute_copy(&pfenterdebugger), core::mem::transmute_copy(&pfcallonscripterrorwhencontinuing)).into() @@ -2712,7 +2712,7 @@ impl windows_core::RuntimeName for IActiveScriptSiteDebug64 {} windows_core::imp::define_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 + pub unsafe fn OnCanNotJITScriptErrorDebug(&self, perrordebug: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -2725,14 +2725,14 @@ impl IActiveScriptSiteDebugEx { #[repr(C)] pub struct IActiveScriptSiteDebugEx_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnCanNotJITScriptErrorDebug: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnCanNotJITScriptErrorDebug: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IActiveScriptSiteDebugEx_Impl: windows_core::IUnknownImpl { - fn OnCanNotJITScriptErrorDebug(&self, perrordebug: windows_core::Ref) -> windows_core::Result; + fn OnCanNotJITScriptErrorDebug(&self, perrordebug: windows_core::Ref) -> windows_core::Result; } impl IActiveScriptSiteDebugEx_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnCanNotJITScriptErrorDebug(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pfcallonscripterrorwhencontinuing: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnCanNotJITScriptErrorDebug(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pfcallonscripterrorwhencontinuing: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveScriptSiteDebugEx_Impl::OnCanNotJITScriptErrorDebug(this, core::mem::transmute_copy(&perrordebug)) { @@ -2867,11 +2867,11 @@ impl IActiveScriptSiteWindow { pub struct IActiveScriptSiteWindow_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetWindow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::super::Foundation::HWND) -> windows_core::HRESULT, - pub EnableModeless: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableModeless: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IActiveScriptSiteWindow_Impl: windows_core::IUnknownImpl { fn GetWindow(&self) -> windows_core::Result; - fn EnableModeless(&self, fenable: super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EnableModeless(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; } impl IActiveScriptSiteWindow_Vtbl { pub const fn new() -> Self { @@ -2887,7 +2887,7 @@ impl IActiveScriptSiteWindow_Vtbl { } } } - unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveScriptSiteWindow_Impl::EnableModeless(this, core::mem::transmute_copy(&fenable)).into() @@ -3591,17 +3591,17 @@ impl IDebugApplication32 { { unsafe { (windows_core::Interface::vtable(self).FireDebuggerEvent)(windows_core::Interface::as_raw(self), riid, punk.param().abi()).ok() } } - pub unsafe fn HandleRuntimeError(&self, perrordebug: P0, pscriptsite: P1, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn HandleRuntimeError(&self, perrordebug: P0, pscriptsite: P1, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).HandleRuntimeError)(windows_core::Interface::as_raw(self), perrordebug.param().abi(), pscriptsite.param().abi(), pbra as _, perra as _, pfcallonscripterror as _).ok() } } - pub unsafe fn FCanJitDebug(&self) -> super::super::super::super::Foundation::BOOL { + pub unsafe fn FCanJitDebug(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).FCanJitDebug)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn FIsAutoJitDebugEnabled(&self) -> super::super::super::super::Foundation::BOOL { + pub unsafe fn FIsAutoJitDebugEnabled(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).FIsAutoJitDebugEnabled)(windows_core::Interface::as_raw(self)) } } pub unsafe fn AddGlobalExpressionContextProvider(&self, pdsfs: P0) -> windows_core::Result @@ -3635,9 +3635,9 @@ pub struct IDebugApplication32_Vtbl { pub SynchronousCallInDebuggerThread: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, u32) -> windows_core::HRESULT, pub CreateApplicationNode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub FireDebuggerEvent: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub HandleRuntimeError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut BREAKRESUMEACTION, *mut ERRORRESUMEACTION, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub FCanJitDebug: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::super::super::Foundation::BOOL, - pub FIsAutoJitDebugEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::super::super::Foundation::BOOL, + pub HandleRuntimeError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut BREAKRESUMEACTION, *mut ERRORRESUMEACTION, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub FCanJitDebug: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, + pub FIsAutoJitDebugEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub AddGlobalExpressionContextProvider: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub RemoveGlobalExpressionContextProvider: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, } @@ -3657,9 +3657,9 @@ pub trait IDebugApplication32_Impl: IRemoteDebugApplication_Impl { fn SynchronousCallInDebuggerThread(&self, pptc: windows_core::Ref, dwparam1: u32, dwparam2: u32, dwparam3: u32) -> windows_core::Result<()>; fn CreateApplicationNode(&self) -> windows_core::Result; fn FireDebuggerEvent(&self, riid: *const windows_core::GUID, punk: windows_core::Ref) -> windows_core::Result<()>; - fn HandleRuntimeError(&self, perrordebug: windows_core::Ref, pscriptsite: windows_core::Ref, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn FCanJitDebug(&self) -> super::super::super::super::Foundation::BOOL; - fn FIsAutoJitDebugEnabled(&self) -> super::super::super::super::Foundation::BOOL; + fn HandleRuntimeError(&self, perrordebug: windows_core::Ref, pscriptsite: windows_core::Ref, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn FCanJitDebug(&self) -> windows_core::BOOL; + fn FIsAutoJitDebugEnabled(&self) -> windows_core::BOOL; fn AddGlobalExpressionContextProvider(&self, pdsfs: windows_core::Ref) -> windows_core::Result; fn RemoveGlobalExpressionContextProvider(&self, dwcookie: u32) -> windows_core::Result<()>; } @@ -3785,19 +3785,19 @@ impl IDebugApplication32_Vtbl { IDebugApplication32_Impl::FireDebuggerEvent(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&punk)).into() } } - unsafe extern "system" fn HandleRuntimeError(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pscriptsite: *mut core::ffi::c_void, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn HandleRuntimeError(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pscriptsite: *mut core::ffi::c_void, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication32_Impl::HandleRuntimeError(this, core::mem::transmute_copy(&perrordebug), core::mem::transmute_copy(&pscriptsite), core::mem::transmute_copy(&pbra), core::mem::transmute_copy(&perra), core::mem::transmute_copy(&pfcallonscripterror)).into() } } - unsafe extern "system" fn FCanJitDebug(this: *mut core::ffi::c_void) -> super::super::super::super::Foundation::BOOL { + unsafe extern "system" fn FCanJitDebug(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication32_Impl::FCanJitDebug(this) } } - unsafe extern "system" fn FIsAutoJitDebugEnabled(this: *mut core::ffi::c_void) -> super::super::super::super::Foundation::BOOL { + unsafe extern "system" fn FIsAutoJitDebugEnabled(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication32_Impl::FIsAutoJitDebugEnabled(this) @@ -3937,17 +3937,17 @@ impl IDebugApplication64 { { unsafe { (windows_core::Interface::vtable(self).FireDebuggerEvent)(windows_core::Interface::as_raw(self), riid, punk.param().abi()).ok() } } - pub unsafe fn HandleRuntimeError(&self, perrordebug: P0, pscriptsite: P1, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn HandleRuntimeError(&self, perrordebug: P0, pscriptsite: P1, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).HandleRuntimeError)(windows_core::Interface::as_raw(self), perrordebug.param().abi(), pscriptsite.param().abi(), pbra as _, perra as _, pfcallonscripterror as _).ok() } } - pub unsafe fn FCanJitDebug(&self) -> super::super::super::super::Foundation::BOOL { + pub unsafe fn FCanJitDebug(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).FCanJitDebug)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn FIsAutoJitDebugEnabled(&self) -> super::super::super::super::Foundation::BOOL { + pub unsafe fn FIsAutoJitDebugEnabled(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).FIsAutoJitDebugEnabled)(windows_core::Interface::as_raw(self)) } } pub unsafe fn AddGlobalExpressionContextProvider(&self, pdsfs: P0) -> windows_core::Result @@ -3981,9 +3981,9 @@ pub struct IDebugApplication64_Vtbl { pub SynchronousCallInDebuggerThread: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u64, u64, u64) -> windows_core::HRESULT, pub CreateApplicationNode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub FireDebuggerEvent: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub HandleRuntimeError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut BREAKRESUMEACTION, *mut ERRORRESUMEACTION, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub FCanJitDebug: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::super::super::Foundation::BOOL, - pub FIsAutoJitDebugEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::super::super::Foundation::BOOL, + pub HandleRuntimeError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut BREAKRESUMEACTION, *mut ERRORRESUMEACTION, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub FCanJitDebug: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, + pub FIsAutoJitDebugEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub AddGlobalExpressionContextProvider: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub RemoveGlobalExpressionContextProvider: unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, } @@ -4003,9 +4003,9 @@ pub trait IDebugApplication64_Impl: IRemoteDebugApplication_Impl { fn SynchronousCallInDebuggerThread(&self, pptc: windows_core::Ref, dwparam1: u64, dwparam2: u64, dwparam3: u64) -> windows_core::Result<()>; fn CreateApplicationNode(&self) -> windows_core::Result; fn FireDebuggerEvent(&self, riid: *const windows_core::GUID, punk: windows_core::Ref) -> windows_core::Result<()>; - fn HandleRuntimeError(&self, perrordebug: windows_core::Ref, pscriptsite: windows_core::Ref, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn FCanJitDebug(&self) -> super::super::super::super::Foundation::BOOL; - fn FIsAutoJitDebugEnabled(&self) -> super::super::super::super::Foundation::BOOL; + fn HandleRuntimeError(&self, perrordebug: windows_core::Ref, pscriptsite: windows_core::Ref, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn FCanJitDebug(&self) -> windows_core::BOOL; + fn FIsAutoJitDebugEnabled(&self) -> windows_core::BOOL; fn AddGlobalExpressionContextProvider(&self, pdsfs: windows_core::Ref) -> windows_core::Result; fn RemoveGlobalExpressionContextProvider(&self, dwcookie: u64) -> windows_core::Result<()>; } @@ -4131,19 +4131,19 @@ impl IDebugApplication64_Vtbl { IDebugApplication64_Impl::FireDebuggerEvent(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&punk)).into() } } - unsafe extern "system" fn HandleRuntimeError(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pscriptsite: *mut core::ffi::c_void, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn HandleRuntimeError(this: *mut core::ffi::c_void, perrordebug: *mut core::ffi::c_void, pscriptsite: *mut core::ffi::c_void, pbra: *mut BREAKRESUMEACTION, perra: *mut ERRORRESUMEACTION, pfcallonscripterror: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication64_Impl::HandleRuntimeError(this, core::mem::transmute_copy(&perrordebug), core::mem::transmute_copy(&pscriptsite), core::mem::transmute_copy(&pbra), core::mem::transmute_copy(&perra), core::mem::transmute_copy(&pfcallonscripterror)).into() } } - unsafe extern "system" fn FCanJitDebug(this: *mut core::ffi::c_void) -> super::super::super::super::Foundation::BOOL { + unsafe extern "system" fn FCanJitDebug(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication64_Impl::FCanJitDebug(this) } } - unsafe extern "system" fn FIsAutoJitDebugEnabled(this: *mut core::ffi::c_void) -> super::super::super::super::Foundation::BOOL { + unsafe extern "system" fn FIsAutoJitDebugEnabled(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugApplication64_Impl::FIsAutoJitDebugEnabled(this) @@ -4571,13 +4571,13 @@ impl IDebugApplicationThread11032 { (windows_core::Interface::vtable(self).GetActiveThreadRequestCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsSuspendedForBreakPoint(&self) -> windows_core::Result { + pub unsafe fn IsSuspendedForBreakPoint(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsSuspendedForBreakPoint)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsThreadCallable(&self) -> windows_core::Result { + pub unsafe fn IsThreadCallable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsThreadCallable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4594,14 +4594,14 @@ impl IDebugApplicationThread11032 { pub struct IDebugApplicationThread11032_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetActiveThreadRequestCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub IsSuspendedForBreakPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsThreadCallable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsSuspendedForBreakPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsThreadCallable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub AsynchronousCallIntoThread: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, usize, usize, usize) -> windows_core::HRESULT, } pub trait IDebugApplicationThread11032_Impl: windows_core::IUnknownImpl { fn GetActiveThreadRequestCount(&self) -> windows_core::Result; - fn IsSuspendedForBreakPoint(&self) -> windows_core::Result; - fn IsThreadCallable(&self) -> windows_core::Result; + fn IsSuspendedForBreakPoint(&self) -> windows_core::Result; + fn IsThreadCallable(&self) -> windows_core::Result; fn AsynchronousCallIntoThread(&self, pptc: windows_core::Ref, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::Result<()>; } impl IDebugApplicationThread11032_Vtbl { @@ -4618,7 +4618,7 @@ impl IDebugApplicationThread11032_Vtbl { } } } - unsafe extern "system" fn IsSuspendedForBreakPoint(this: *mut core::ffi::c_void, pfissuspended: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsSuspendedForBreakPoint(this: *mut core::ffi::c_void, pfissuspended: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplicationThread11032_Impl::IsSuspendedForBreakPoint(this) { @@ -4630,7 +4630,7 @@ impl IDebugApplicationThread11032_Vtbl { } } } - unsafe extern "system" fn IsThreadCallable(this: *mut core::ffi::c_void, pfiscallable: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsThreadCallable(this: *mut core::ffi::c_void, pfiscallable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplicationThread11032_Impl::IsThreadCallable(this) { @@ -4670,13 +4670,13 @@ impl IDebugApplicationThread11064 { (windows_core::Interface::vtable(self).GetActiveThreadRequestCount)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsSuspendedForBreakPoint(&self) -> windows_core::Result { + pub unsafe fn IsSuspendedForBreakPoint(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsSuspendedForBreakPoint)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsThreadCallable(&self) -> windows_core::Result { + pub unsafe fn IsThreadCallable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsThreadCallable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4693,14 +4693,14 @@ impl IDebugApplicationThread11064 { pub struct IDebugApplicationThread11064_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetActiveThreadRequestCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub IsSuspendedForBreakPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsThreadCallable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsSuspendedForBreakPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsThreadCallable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub AsynchronousCallIntoThread: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, usize, usize, usize) -> windows_core::HRESULT, } pub trait IDebugApplicationThread11064_Impl: windows_core::IUnknownImpl { fn GetActiveThreadRequestCount(&self) -> windows_core::Result; - fn IsSuspendedForBreakPoint(&self) -> windows_core::Result; - fn IsThreadCallable(&self) -> windows_core::Result; + fn IsSuspendedForBreakPoint(&self) -> windows_core::Result; + fn IsThreadCallable(&self) -> windows_core::Result; fn AsynchronousCallIntoThread(&self, pptc: windows_core::Ref, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> windows_core::Result<()>; } impl IDebugApplicationThread11064_Vtbl { @@ -4717,7 +4717,7 @@ impl IDebugApplicationThread11064_Vtbl { } } } - unsafe extern "system" fn IsSuspendedForBreakPoint(this: *mut core::ffi::c_void, pfissuspended: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsSuspendedForBreakPoint(this: *mut core::ffi::c_void, pfissuspended: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplicationThread11064_Impl::IsSuspendedForBreakPoint(this) { @@ -4729,7 +4729,7 @@ impl IDebugApplicationThread11064_Vtbl { } } } - unsafe extern "system" fn IsThreadCallable(this: *mut core::ffi::c_void, pfiscallable: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsThreadCallable(this: *mut core::ffi::c_void, pfiscallable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugApplicationThread11064_Impl::IsThreadCallable(this) { @@ -5266,7 +5266,7 @@ pub struct IDebugDocumentHelper32_Vtbl { pub AddDBCSText: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR) -> windows_core::HRESULT, pub SetDebugDocumentHost: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub AddDeferredText: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, - pub DefineScriptBlock: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut core::ffi::c_void, super::super::super::super::Foundation::BOOL, *mut u32) -> windows_core::HRESULT, + pub DefineScriptBlock: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut core::ffi::c_void, windows_core::BOOL, *mut u32) -> windows_core::HRESULT, pub SetDefaultTextAttr: unsafe extern "system" fn(*mut core::ffi::c_void, u16) -> windows_core::HRESULT, pub SetTextAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const u16) -> windows_core::HRESULT, pub SetLongName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, @@ -5286,7 +5286,7 @@ pub trait IDebugDocumentHelper32_Impl: windows_core::IUnknownImpl { fn AddDBCSText(&self, psztext: &windows_core::PCSTR) -> windows_core::Result<()>; fn SetDebugDocumentHost(&self, pddh: windows_core::Ref) -> windows_core::Result<()>; fn AddDeferredText(&self, cchars: u32, dwtextstartcookie: u32) -> windows_core::Result<()>; - fn DefineScriptBlock(&self, ulcharoffset: u32, cchars: u32, pas: windows_core::Ref, fscriptlet: super::super::super::super::Foundation::BOOL) -> windows_core::Result; + fn DefineScriptBlock(&self, ulcharoffset: u32, cchars: u32, pas: windows_core::Ref, fscriptlet: windows_core::BOOL) -> windows_core::Result; fn SetDefaultTextAttr(&self, statextattr: u16) -> windows_core::Result<()>; fn SetTextAttributes(&self, ulcharoffset: u32, cchars: u32, pstatextattr: *const u16) -> windows_core::Result<()>; fn SetLongName(&self, pszlongname: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -5342,7 +5342,7 @@ impl IDebugDocumentHelper32_Vtbl { IDebugDocumentHelper32_Impl::AddDeferredText(this, core::mem::transmute_copy(&cchars), core::mem::transmute_copy(&dwtextstartcookie)).into() } } - unsafe extern "system" fn DefineScriptBlock(this: *mut core::ffi::c_void, ulcharoffset: u32, cchars: u32, pas: *mut core::ffi::c_void, fscriptlet: super::super::super::super::Foundation::BOOL, pdwsourcecontext: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn DefineScriptBlock(this: *mut core::ffi::c_void, ulcharoffset: u32, cchars: u32, pas: *mut core::ffi::c_void, fscriptlet: windows_core::BOOL, pdwsourcecontext: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentHelper32_Impl::DefineScriptBlock(this, core::mem::transmute_copy(&ulcharoffset), core::mem::transmute_copy(&cchars), core::mem::transmute_copy(&pas), core::mem::transmute_copy(&fscriptlet)) { @@ -5559,7 +5559,7 @@ pub struct IDebugDocumentHelper64_Vtbl { pub AddDBCSText: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR) -> windows_core::HRESULT, pub SetDebugDocumentHost: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub AddDeferredText: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, - pub DefineScriptBlock: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut core::ffi::c_void, super::super::super::super::Foundation::BOOL, *mut u64) -> windows_core::HRESULT, + pub DefineScriptBlock: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut core::ffi::c_void, windows_core::BOOL, *mut u64) -> windows_core::HRESULT, pub SetDefaultTextAttr: unsafe extern "system" fn(*mut core::ffi::c_void, u16) -> windows_core::HRESULT, pub SetTextAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const u16) -> windows_core::HRESULT, pub SetLongName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, @@ -5579,7 +5579,7 @@ pub trait IDebugDocumentHelper64_Impl: windows_core::IUnknownImpl { fn AddDBCSText(&self, psztext: &windows_core::PCSTR) -> windows_core::Result<()>; fn SetDebugDocumentHost(&self, pddh: windows_core::Ref) -> windows_core::Result<()>; fn AddDeferredText(&self, cchars: u32, dwtextstartcookie: u32) -> windows_core::Result<()>; - fn DefineScriptBlock(&self, ulcharoffset: u32, cchars: u32, pas: windows_core::Ref, fscriptlet: super::super::super::super::Foundation::BOOL) -> windows_core::Result; + fn DefineScriptBlock(&self, ulcharoffset: u32, cchars: u32, pas: windows_core::Ref, fscriptlet: windows_core::BOOL) -> windows_core::Result; fn SetDefaultTextAttr(&self, statextattr: u16) -> windows_core::Result<()>; fn SetTextAttributes(&self, ulcharoffset: u32, cchars: u32, pstatextattr: *const u16) -> windows_core::Result<()>; fn SetLongName(&self, pszlongname: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -5635,7 +5635,7 @@ impl IDebugDocumentHelper64_Vtbl { IDebugDocumentHelper64_Impl::AddDeferredText(this, core::mem::transmute_copy(&cchars), core::mem::transmute_copy(&dwtextstartcookie)).into() } } - unsafe extern "system" fn DefineScriptBlock(this: *mut core::ffi::c_void, ulcharoffset: u32, cchars: u32, pas: *mut core::ffi::c_void, fscriptlet: super::super::super::super::Foundation::BOOL, pdwsourcecontext: *mut u64) -> windows_core::HRESULT { + unsafe extern "system" fn DefineScriptBlock(this: *mut core::ffi::c_void, ulcharoffset: u32, cchars: u32, pas: *mut core::ffi::c_void, fscriptlet: windows_core::BOOL, pdwsourcecontext: *mut u64) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugDocumentHelper64_Impl::DefineScriptBlock(this, core::mem::transmute_copy(&ulcharoffset), core::mem::transmute_copy(&cchars), core::mem::transmute_copy(&pas), core::mem::transmute_copy(&fscriptlet)) { @@ -5765,7 +5765,7 @@ impl IDebugDocumentHost { (windows_core::Interface::vtable(self).OnCreateDocumentContext)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetPathName(&self, pbstrlongname: *mut windows_core::BSTR, pfisoriginalfile: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetPathName(&self, pbstrlongname: *mut windows_core::BSTR, pfisoriginalfile: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetPathName)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrlongname), pfisoriginalfile as _).ok() } } pub unsafe fn GetFileName(&self) -> windows_core::Result { @@ -5784,7 +5784,7 @@ pub struct IDebugDocumentHost_Vtbl { pub GetDeferredText: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PWSTR, *mut u16, *mut u32, u32) -> windows_core::HRESULT, pub GetScriptTextAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, windows_core::PCWSTR, u32, *mut u16) -> windows_core::HRESULT, pub OnCreateDocumentContext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetPathName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetPathName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetFileName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub NotifyChanged: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -5792,7 +5792,7 @@ pub trait IDebugDocumentHost_Impl: windows_core::IUnknownImpl { fn GetDeferredText(&self, dwtextstartcookie: u32, pchartext: windows_core::PWSTR, pstatextattr: *mut u16, pcnumchars: *mut u32, cmaxchars: u32) -> windows_core::Result<()>; fn GetScriptTextAttributes(&self, pstrcode: &windows_core::PCWSTR, unumcodechars: u32, pstrdelimiter: &windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> windows_core::Result<()>; fn OnCreateDocumentContext(&self) -> windows_core::Result; - fn GetPathName(&self, pbstrlongname: *mut windows_core::BSTR, pfisoriginalfile: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetPathName(&self, pbstrlongname: *mut windows_core::BSTR, pfisoriginalfile: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetFileName(&self) -> windows_core::Result; fn NotifyChanged(&self) -> windows_core::Result<()>; } @@ -5822,7 +5822,7 @@ impl IDebugDocumentHost_Vtbl { } } } - unsafe extern "system" fn GetPathName(this: *mut core::ffi::c_void, pbstrlongname: *mut *mut core::ffi::c_void, pfisoriginalfile: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetPathName(this: *mut core::ffi::c_void, pbstrlongname: *mut *mut core::ffi::c_void, pfisoriginalfile: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentHost_Impl::GetPathName(this, core::mem::transmute_copy(&pbstrlongname), core::mem::transmute_copy(&pfisoriginalfile)).into() @@ -6269,7 +6269,7 @@ impl windows_core::RuntimeName for IDebugDocumentTextEvents {} windows_core::imp::define_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<()> { + pub unsafe fn GetPathName(&self, pbstrlongname: *mut windows_core::BSTR, pfisoriginalfile: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetPathName)(windows_core::Interface::as_raw(self), core::mem::transmute(pbstrlongname), pfisoriginalfile as _).ok() } } pub unsafe fn GetFileName(&self) -> windows_core::Result { @@ -6285,18 +6285,18 @@ impl IDebugDocumentTextExternalAuthor { #[repr(C)] pub struct IDebugDocumentTextExternalAuthor_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetPathName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetPathName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetFileName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub NotifyChanged: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IDebugDocumentTextExternalAuthor_Impl: windows_core::IUnknownImpl { - fn GetPathName(&self, pbstrlongname: *mut windows_core::BSTR, pfisoriginalfile: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetPathName(&self, pbstrlongname: *mut windows_core::BSTR, pfisoriginalfile: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetFileName(&self) -> windows_core::Result; fn NotifyChanged(&self) -> windows_core::Result<()>; } impl IDebugDocumentTextExternalAuthor_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetPathName(this: *mut core::ffi::c_void, pbstrlongname: *mut *mut core::ffi::c_void, pfisoriginalfile: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetPathName(this: *mut core::ffi::c_void, pbstrlongname: *mut *mut core::ffi::c_void, pfisoriginalfile: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugDocumentTextExternalAuthor_Impl::GetPathName(this, core::mem::transmute_copy(&pbstrlongname), core::mem::transmute_copy(&pfisoriginalfile)).into() @@ -6788,15 +6788,15 @@ impl IDebugStackFrame { pub struct IDebugStackFrame_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCodeContext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetDescriptionString: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetLanguageString: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetDescriptionString: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetLanguageString: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetThread: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDebugProperty: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IDebugStackFrame_Impl: windows_core::IUnknownImpl { fn GetCodeContext(&self) -> windows_core::Result; - fn GetDescriptionString(&self, flong: super::super::super::super::Foundation::BOOL) -> windows_core::Result; - fn GetLanguageString(&self, flong: super::super::super::super::Foundation::BOOL) -> windows_core::Result; + fn GetDescriptionString(&self, flong: windows_core::BOOL) -> windows_core::Result; + fn GetLanguageString(&self, flong: windows_core::BOOL) -> windows_core::Result; fn GetThread(&self) -> windows_core::Result; fn GetDebugProperty(&self) -> windows_core::Result; } @@ -6814,7 +6814,7 @@ impl IDebugStackFrame_Vtbl { } } } - unsafe extern "system" fn GetDescriptionString(this: *mut core::ffi::c_void, flong: super::super::super::super::Foundation::BOOL, pbstrdescription: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetDescriptionString(this: *mut core::ffi::c_void, flong: windows_core::BOOL, pbstrdescription: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugStackFrame_Impl::GetDescriptionString(this, core::mem::transmute_copy(&flong)) { @@ -6826,7 +6826,7 @@ impl IDebugStackFrame_Vtbl { } } } - unsafe extern "system" fn GetLanguageString(this: *mut core::ffi::c_void, flong: super::super::super::super::Foundation::BOOL, pbstrlanguage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetLanguageString(this: *mut core::ffi::c_void, flong: windows_core::BOOL, pbstrlanguage: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDebugStackFrame_Impl::GetLanguageString(this, core::mem::transmute_copy(&flong)) { @@ -7799,7 +7799,7 @@ impl windows_core::RuntimeName for IJsDebug {} windows_core::imp::define_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 { + pub unsafe fn IsEnabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7821,14 +7821,14 @@ impl IJsDebugBreakPoint { #[repr(C)] pub struct IJsDebugBreakPoint_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Disable: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Delete: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDocumentPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64, *mut u32, *mut u32) -> windows_core::HRESULT, } pub trait IJsDebugBreakPoint_Impl: windows_core::IUnknownImpl { - fn IsEnabled(&self) -> windows_core::Result; + fn IsEnabled(&self) -> windows_core::Result; fn Enable(&self) -> windows_core::Result<()>; fn Disable(&self) -> windows_core::Result<()>; fn Delete(&self) -> windows_core::Result<()>; @@ -7836,7 +7836,7 @@ pub trait IJsDebugBreakPoint_Impl: windows_core::IUnknownImpl { } impl IJsDebugBreakPoint_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void, pisenabled: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void, pisenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsDebugBreakPoint_Impl::IsEnabled(this) { @@ -8224,13 +8224,13 @@ impl IJsDebugProcess { pub struct IJsDebugProcess_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub CreateStackWalker: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CreateBreakPoint: unsafe extern "system" fn(*mut core::ffi::c_void, u64, u32, u32, super::super::super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateBreakPoint: unsafe extern "system" fn(*mut core::ffi::c_void, u64, u32, u32, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub PerformAsyncBreak: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetExternalStepAddress: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, } pub trait IJsDebugProcess_Impl: windows_core::IUnknownImpl { fn CreateStackWalker(&self, threadid: u32) -> windows_core::Result; - fn CreateBreakPoint(&self, documentid: u64, characteroffset: u32, charactercount: u32, isenabled: super::super::super::super::Foundation::BOOL) -> windows_core::Result; + fn CreateBreakPoint(&self, documentid: u64, characteroffset: u32, charactercount: u32, isenabled: windows_core::BOOL) -> windows_core::Result; fn PerformAsyncBreak(&self, threadid: u32) -> windows_core::Result<()>; fn GetExternalStepAddress(&self) -> windows_core::Result; } @@ -8248,7 +8248,7 @@ impl IJsDebugProcess_Vtbl { } } } - unsafe extern "system" fn CreateBreakPoint(this: *mut core::ffi::c_void, documentid: u64, characteroffset: u32, charactercount: u32, isenabled: super::super::super::super::Foundation::BOOL, ppdebugbreakpoint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateBreakPoint(this: *mut core::ffi::c_void, documentid: u64, characteroffset: u32, charactercount: u32, isenabled: windows_core::BOOL, ppdebugbreakpoint: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IJsDebugProcess_Impl::CreateBreakPoint(this, core::mem::transmute_copy(&documentid), core::mem::transmute_copy(&characteroffset), core::mem::transmute_copy(&charactercount), core::mem::transmute_copy(&isenabled)) { 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 2d4f54fafb..346cbade59 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 @@ -657,7 +657,7 @@ pub const DEBUG_DATA_SuiteMask: u32 = 100024u32; pub struct DEBUG_DECODE_ERROR { pub SizeOfStruct: u32, pub Code: u32, - pub TreatAsStatus: super::super::super::super::Foundation::BOOL, + pub TreatAsStatus: windows_core::BOOL, pub Source: [i8; 64], pub Message: [i8; 260], } @@ -672,7 +672,7 @@ pub struct DEBUG_DEVICE_OBJECT_INFO { pub SizeOfStruct: u32, pub DevObjAddress: u64, pub ReferenceCount: u32, - pub QBusy: super::super::super::super::Foundation::BOOL, + pub QBusy: windows_core::BOOL, pub DriverObject: u64, pub CurrentIrp: u64, pub DevExtension: u64, @@ -2394,7 +2394,7 @@ pub struct DEBUG_STACK_FRAME { pub FuncTableEntry: u64, pub Params: [u64; 4], pub Reserved: [u64; 6], - pub Virtual: super::super::super::super::Foundation::BOOL, + pub Virtual: windows_core::BOOL, pub FrameNumber: u32, } impl Default for DEBUG_STACK_FRAME { @@ -2415,7 +2415,7 @@ pub struct DEBUG_STACK_FRAME_EX { pub FuncTableEntry: u64, pub Params: [u64; 4], pub Reserved: [u64; 6], - pub Virtual: super::super::super::super::Foundation::BOOL, + pub Virtual: windows_core::BOOL, pub FrameNumber: u32, pub InlineFrameContext: u32, pub Reserved1: u32, @@ -2674,7 +2674,7 @@ impl Default for DEBUG_VALUE_0 { #[derive(Clone, Copy, Debug, PartialEq)] pub struct DEBUG_VALUE_0_0 { pub I64: u64, - pub Nat: super::super::super::super::Foundation::BOOL, + pub Nat: windows_core::BOOL, } impl Default for DEBUG_VALUE_0_0 { fn default() -> Self { @@ -16475,7 +16475,7 @@ impl IDebugControl { pub unsafe fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), seconds).ok() } } - pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetLogFile)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), filesize.unwrap_or(core::mem::zeroed()) as _, append as _).ok() } } pub unsafe fn OpenLogFile(&self, file: P0, append: bool) -> windows_core::Result<()> @@ -16915,8 +16915,8 @@ pub struct IDebugControl_Vtbl { pub SetInterrupt: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetInterruptTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetInterruptTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub GetLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PSTR, u32, *mut u32, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OpenLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PSTR, u32, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OpenLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, windows_core::BOOL) -> windows_core::HRESULT, pub CloseLogFile: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetLogMask: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetLogMask: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -17016,8 +17016,8 @@ pub trait IDebugControl_Impl: windows_core::IUnknownImpl { fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()>; fn GetInterruptTimeout(&self) -> windows_core::Result; fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()>; - fn GetLogFile(&self, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OpenLogFile(&self, file: &windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetLogFile(&self, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn OpenLogFile(&self, file: &windows_core::PCSTR, append: windows_core::BOOL) -> windows_core::Result<()>; fn CloseLogFile(&self) -> windows_core::Result<()>; fn GetLogMask(&self) -> windows_core::Result; fn SetLogMask(&self, mask: u32) -> windows_core::Result<()>; @@ -17138,13 +17138,13 @@ impl IDebugControl_Vtbl { IDebugControl_Impl::SetInterruptTimeout(this, core::mem::transmute_copy(&seconds)).into() } } - unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::GetLogFile(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } } - unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl_Impl::OpenLogFile(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() @@ -17936,7 +17936,7 @@ impl IDebugControl2 { pub unsafe fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), seconds).ok() } } - pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetLogFile)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), filesize.unwrap_or(core::mem::zeroed()) as _, append as _).ok() } } pub unsafe fn OpenLogFile(&self, file: P0, append: bool) -> windows_core::Result<()> @@ -18432,8 +18432,8 @@ pub struct IDebugControl2_Vtbl { pub SetInterrupt: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetInterruptTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetInterruptTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub GetLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PSTR, u32, *mut u32, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OpenLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PSTR, u32, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OpenLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, windows_core::BOOL) -> windows_core::HRESULT, pub CloseLogFile: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetLogMask: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetLogMask: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -18541,8 +18541,8 @@ pub trait IDebugControl2_Impl: windows_core::IUnknownImpl { fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()>; fn GetInterruptTimeout(&self) -> windows_core::Result; fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()>; - fn GetLogFile(&self, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OpenLogFile(&self, file: &windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetLogFile(&self, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn OpenLogFile(&self, file: &windows_core::PCSTR, append: windows_core::BOOL) -> windows_core::Result<()>; fn CloseLogFile(&self) -> windows_core::Result<()>; fn GetLogMask(&self) -> windows_core::Result; fn SetLogMask(&self, mask: u32) -> windows_core::Result<()>; @@ -18671,13 +18671,13 @@ impl IDebugControl2_Vtbl { IDebugControl2_Impl::SetInterruptTimeout(this, core::mem::transmute_copy(&seconds)).into() } } - unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::GetLogFile(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } } - unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl2_Impl::OpenLogFile(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() @@ -19549,7 +19549,7 @@ impl IDebugControl3 { pub unsafe fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), seconds).ok() } } - pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetLogFile)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), filesize.unwrap_or(core::mem::zeroed()) as _, append as _).ok() } } pub unsafe fn OpenLogFile(&self, file: P0, append: bool) -> windows_core::Result<()> @@ -20120,8 +20120,8 @@ pub struct IDebugControl3_Vtbl { pub SetInterrupt: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetInterruptTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetInterruptTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub GetLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PSTR, u32, *mut u32, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OpenLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PSTR, u32, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OpenLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, windows_core::BOOL) -> windows_core::HRESULT, pub CloseLogFile: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetLogMask: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetLogMask: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -20242,8 +20242,8 @@ pub trait IDebugControl3_Impl: windows_core::IUnknownImpl { fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()>; fn GetInterruptTimeout(&self) -> windows_core::Result; fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()>; - fn GetLogFile(&self, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OpenLogFile(&self, file: &windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetLogFile(&self, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn OpenLogFile(&self, file: &windows_core::PCSTR, append: windows_core::BOOL) -> windows_core::Result<()>; fn CloseLogFile(&self) -> windows_core::Result<()>; fn GetLogMask(&self) -> windows_core::Result; fn SetLogMask(&self, mask: u32) -> windows_core::Result<()>; @@ -20385,13 +20385,13 @@ impl IDebugControl3_Vtbl { IDebugControl3_Impl::SetInterruptTimeout(this, core::mem::transmute_copy(&seconds)).into() } } - unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::GetLogFile(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } } - unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl3_Impl::OpenLogFile(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() @@ -21390,7 +21390,7 @@ impl IDebugControl4 { pub unsafe fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), seconds).ok() } } - pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetLogFile)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), filesize.unwrap_or(core::mem::zeroed()) as _, append as _).ok() } } pub unsafe fn OpenLogFile(&self, file: P0, append: bool) -> windows_core::Result<()> @@ -21953,7 +21953,7 @@ impl IDebugControl4 { (windows_core::Interface::vtable(self).SetNextEventIndex)(windows_core::Interface::as_raw(self), relation, value, &mut result__).map(|| result__) } } - pub unsafe fn GetLogFileWide(&self, buffer: Option<&mut [u16]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetLogFileWide(&self, buffer: Option<&mut [u16]>, filesize: Option<*mut u32>, append: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetLogFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), filesize.unwrap_or(core::mem::zeroed()) as _, append as _).ok() } } pub unsafe fn OpenLogFileWide(&self, file: P0, append: bool) -> windows_core::Result<()> @@ -22261,8 +22261,8 @@ pub struct IDebugControl4_Vtbl { pub SetInterrupt: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetInterruptTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetInterruptTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub GetLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PSTR, u32, *mut u32, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OpenLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PSTR, u32, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OpenLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, windows_core::BOOL) -> windows_core::HRESULT, pub CloseLogFile: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetLogMask: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetLogMask: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -22376,8 +22376,8 @@ pub struct IDebugControl4_Vtbl { pub GetEventIndexDescription: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, windows_core::PCSTR, u32, *mut u32) -> windows_core::HRESULT, pub GetCurrentEventIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetNextEventIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut u32) -> windows_core::HRESULT, - pub GetLogFileWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, *mut u32, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OpenLogFileWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetLogFileWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OpenLogFileWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, pub InputWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, *mut u32) -> windows_core::HRESULT, pub ReturnInputWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub OutputWide: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR) -> windows_core::HRESULT, @@ -22436,8 +22436,8 @@ pub trait IDebugControl4_Impl: windows_core::IUnknownImpl { fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()>; fn GetInterruptTimeout(&self) -> windows_core::Result; fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()>; - fn GetLogFile(&self, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OpenLogFile(&self, file: &windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetLogFile(&self, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn OpenLogFile(&self, file: &windows_core::PCSTR, append: windows_core::BOOL) -> windows_core::Result<()>; fn CloseLogFile(&self) -> windows_core::Result<()>; fn GetLogMask(&self) -> windows_core::Result; fn SetLogMask(&self, mask: u32) -> windows_core::Result<()>; @@ -22545,8 +22545,8 @@ pub trait IDebugControl4_Impl: windows_core::IUnknownImpl { fn GetEventIndexDescription(&self, index: u32, which: u32, buffer: &windows_core::PCSTR, buffersize: u32, descsize: *mut u32) -> windows_core::Result<()>; fn GetCurrentEventIndex(&self) -> windows_core::Result; fn SetNextEventIndex(&self, relation: u32, value: u32) -> windows_core::Result; - fn GetLogFileWide(&self, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OpenLogFileWide(&self, file: &windows_core::PCWSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetLogFileWide(&self, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn OpenLogFileWide(&self, file: &windows_core::PCWSTR, append: windows_core::BOOL) -> windows_core::Result<()>; fn InputWide(&self, buffer: windows_core::PWSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::Result<()>; fn ReturnInputWide(&self, buffer: &windows_core::PCWSTR) -> windows_core::Result<()>; fn OutputWide(&self, mask: u32, format: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -22632,13 +22632,13 @@ impl IDebugControl4_Vtbl { IDebugControl4_Impl::SetInterruptTimeout(this, core::mem::transmute_copy(&seconds)).into() } } - unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetLogFile(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } } - unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OpenLogFile(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() @@ -23496,13 +23496,13 @@ impl IDebugControl4_Vtbl { } } } - unsafe extern "system" fn GetLogFileWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetLogFileWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::GetLogFileWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } } - unsafe extern "system" fn OpenLogFileWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OpenLogFileWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, append: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl4_Impl::OpenLogFileWide(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() @@ -24050,7 +24050,7 @@ impl IDebugControl5 { pub unsafe fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), seconds).ok() } } - pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetLogFile)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), filesize.unwrap_or(core::mem::zeroed()) as _, append as _).ok() } } pub unsafe fn OpenLogFile(&self, file: P0, append: bool) -> windows_core::Result<()> @@ -24613,7 +24613,7 @@ impl IDebugControl5 { (windows_core::Interface::vtable(self).SetNextEventIndex)(windows_core::Interface::as_raw(self), relation, value, &mut result__).map(|| result__) } } - pub unsafe fn GetLogFileWide(&self, buffer: Option<&mut [u16]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetLogFileWide(&self, buffer: Option<&mut [u16]>, filesize: Option<*mut u32>, append: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetLogFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), filesize.unwrap_or(core::mem::zeroed()) as _, append as _).ok() } } pub unsafe fn OpenLogFileWide(&self, file: P0, append: bool) -> windows_core::Result<()> @@ -24939,8 +24939,8 @@ pub struct IDebugControl5_Vtbl { pub SetInterrupt: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetInterruptTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetInterruptTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub GetLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PSTR, u32, *mut u32, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OpenLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PSTR, u32, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OpenLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, windows_core::BOOL) -> windows_core::HRESULT, pub CloseLogFile: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetLogMask: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetLogMask: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -25054,8 +25054,8 @@ pub struct IDebugControl5_Vtbl { pub GetEventIndexDescription: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, windows_core::PCSTR, u32, *mut u32) -> windows_core::HRESULT, pub GetCurrentEventIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetNextEventIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut u32) -> windows_core::HRESULT, - pub GetLogFileWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, *mut u32, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OpenLogFileWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetLogFileWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OpenLogFileWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, pub InputWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, *mut u32) -> windows_core::HRESULT, pub ReturnInputWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub OutputWide: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR) -> windows_core::HRESULT, @@ -25119,8 +25119,8 @@ pub trait IDebugControl5_Impl: windows_core::IUnknownImpl { fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()>; fn GetInterruptTimeout(&self) -> windows_core::Result; fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()>; - fn GetLogFile(&self, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OpenLogFile(&self, file: &windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetLogFile(&self, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn OpenLogFile(&self, file: &windows_core::PCSTR, append: windows_core::BOOL) -> windows_core::Result<()>; fn CloseLogFile(&self) -> windows_core::Result<()>; fn GetLogMask(&self) -> windows_core::Result; fn SetLogMask(&self, mask: u32) -> windows_core::Result<()>; @@ -25228,8 +25228,8 @@ pub trait IDebugControl5_Impl: windows_core::IUnknownImpl { fn GetEventIndexDescription(&self, index: u32, which: u32, buffer: &windows_core::PCSTR, buffersize: u32, descsize: *mut u32) -> windows_core::Result<()>; fn GetCurrentEventIndex(&self) -> windows_core::Result; fn SetNextEventIndex(&self, relation: u32, value: u32) -> windows_core::Result; - fn GetLogFileWide(&self, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OpenLogFileWide(&self, file: &windows_core::PCWSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetLogFileWide(&self, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn OpenLogFileWide(&self, file: &windows_core::PCWSTR, append: windows_core::BOOL) -> windows_core::Result<()>; fn InputWide(&self, buffer: windows_core::PWSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::Result<()>; fn ReturnInputWide(&self, buffer: &windows_core::PCWSTR) -> windows_core::Result<()>; fn OutputWide(&self, mask: u32, format: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -25320,13 +25320,13 @@ impl IDebugControl5_Vtbl { IDebugControl5_Impl::SetInterruptTimeout(this, core::mem::transmute_copy(&seconds)).into() } } - unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetLogFile(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } } - unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OpenLogFile(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() @@ -26184,13 +26184,13 @@ impl IDebugControl5_Vtbl { } } } - unsafe extern "system" fn GetLogFileWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetLogFileWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::GetLogFileWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } } - unsafe extern "system" fn OpenLogFileWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OpenLogFileWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, append: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl5_Impl::OpenLogFileWide(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() @@ -26779,7 +26779,7 @@ impl IDebugControl6 { pub unsafe fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), seconds).ok() } } - pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetLogFile)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), filesize.unwrap_or(core::mem::zeroed()) as _, append as _).ok() } } pub unsafe fn OpenLogFile(&self, file: P0, append: bool) -> windows_core::Result<()> @@ -27342,7 +27342,7 @@ impl IDebugControl6 { (windows_core::Interface::vtable(self).SetNextEventIndex)(windows_core::Interface::as_raw(self), relation, value, &mut result__).map(|| result__) } } - pub unsafe fn GetLogFileWide(&self, buffer: Option<&mut [u16]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetLogFileWide(&self, buffer: Option<&mut [u16]>, filesize: Option<*mut u32>, append: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetLogFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), filesize.unwrap_or(core::mem::zeroed()) as _, append as _).ok() } } pub unsafe fn OpenLogFileWide(&self, file: P0, append: bool) -> windows_core::Result<()> @@ -27677,8 +27677,8 @@ pub struct IDebugControl6_Vtbl { pub SetInterrupt: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetInterruptTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetInterruptTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub GetLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PSTR, u32, *mut u32, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OpenLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PSTR, u32, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OpenLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, windows_core::BOOL) -> windows_core::HRESULT, pub CloseLogFile: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetLogMask: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetLogMask: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -27792,8 +27792,8 @@ pub struct IDebugControl6_Vtbl { pub GetEventIndexDescription: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, windows_core::PCSTR, u32, *mut u32) -> windows_core::HRESULT, pub GetCurrentEventIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetNextEventIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut u32) -> windows_core::HRESULT, - pub GetLogFileWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, *mut u32, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OpenLogFileWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetLogFileWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OpenLogFileWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, pub InputWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, *mut u32) -> windows_core::HRESULT, pub ReturnInputWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub OutputWide: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR) -> windows_core::HRESULT, @@ -27859,8 +27859,8 @@ pub trait IDebugControl6_Impl: windows_core::IUnknownImpl { fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()>; fn GetInterruptTimeout(&self) -> windows_core::Result; fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()>; - fn GetLogFile(&self, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OpenLogFile(&self, file: &windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetLogFile(&self, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn OpenLogFile(&self, file: &windows_core::PCSTR, append: windows_core::BOOL) -> windows_core::Result<()>; fn CloseLogFile(&self) -> windows_core::Result<()>; fn GetLogMask(&self) -> windows_core::Result; fn SetLogMask(&self, mask: u32) -> windows_core::Result<()>; @@ -27968,8 +27968,8 @@ pub trait IDebugControl6_Impl: windows_core::IUnknownImpl { fn GetEventIndexDescription(&self, index: u32, which: u32, buffer: &windows_core::PCSTR, buffersize: u32, descsize: *mut u32) -> windows_core::Result<()>; fn GetCurrentEventIndex(&self) -> windows_core::Result; fn SetNextEventIndex(&self, relation: u32, value: u32) -> windows_core::Result; - fn GetLogFileWide(&self, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OpenLogFileWide(&self, file: &windows_core::PCWSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetLogFileWide(&self, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn OpenLogFileWide(&self, file: &windows_core::PCWSTR, append: windows_core::BOOL) -> windows_core::Result<()>; fn InputWide(&self, buffer: windows_core::PWSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::Result<()>; fn ReturnInputWide(&self, buffer: &windows_core::PCWSTR) -> windows_core::Result<()>; fn OutputWide(&self, mask: u32, format: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -28062,13 +28062,13 @@ impl IDebugControl6_Vtbl { IDebugControl6_Impl::SetInterruptTimeout(this, core::mem::transmute_copy(&seconds)).into() } } - unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetLogFile(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } } - unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OpenLogFile(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() @@ -28926,13 +28926,13 @@ impl IDebugControl6_Vtbl { } } } - unsafe extern "system" fn GetLogFileWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetLogFileWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::GetLogFileWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } } - unsafe extern "system" fn OpenLogFileWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OpenLogFileWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, append: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl6_Impl::OpenLogFileWide(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() @@ -29541,7 +29541,7 @@ impl IDebugControl7 { pub unsafe fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetInterruptTimeout)(windows_core::Interface::as_raw(self), seconds).ok() } } - pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetLogFile(&self, buffer: Option<&mut [u8]>, filesize: Option<*mut u32>, append: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetLogFile)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), filesize.unwrap_or(core::mem::zeroed()) as _, append as _).ok() } } pub unsafe fn OpenLogFile(&self, file: P0, append: bool) -> windows_core::Result<()> @@ -30104,7 +30104,7 @@ impl IDebugControl7 { (windows_core::Interface::vtable(self).SetNextEventIndex)(windows_core::Interface::as_raw(self), relation, value, &mut result__).map(|| result__) } } - pub unsafe fn GetLogFileWide(&self, buffer: Option<&mut [u16]>, filesize: Option<*mut u32>, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetLogFileWide(&self, buffer: Option<&mut [u16]>, filesize: Option<*mut u32>, append: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetLogFileWide)(windows_core::Interface::as_raw(self), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), filesize.unwrap_or(core::mem::zeroed()) as _, append as _).ok() } } pub unsafe fn OpenLogFileWide(&self, file: P0, append: bool) -> windows_core::Result<()> @@ -30442,8 +30442,8 @@ pub struct IDebugControl7_Vtbl { pub SetInterrupt: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetInterruptTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetInterruptTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub GetLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PSTR, u32, *mut u32, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OpenLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PSTR, u32, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OpenLogFile: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, windows_core::BOOL) -> windows_core::HRESULT, pub CloseLogFile: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetLogMask: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetLogMask: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -30557,8 +30557,8 @@ pub struct IDebugControl7_Vtbl { pub GetEventIndexDescription: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, windows_core::PCSTR, u32, *mut u32) -> windows_core::HRESULT, pub GetCurrentEventIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetNextEventIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut u32) -> windows_core::HRESULT, - pub GetLogFileWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, *mut u32, *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OpenLogFileWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetLogFileWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OpenLogFileWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, pub InputWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32, *mut u32) -> windows_core::HRESULT, pub ReturnInputWide: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub OutputWide: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR) -> windows_core::HRESULT, @@ -30625,8 +30625,8 @@ pub trait IDebugControl7_Impl: windows_core::IUnknownImpl { fn SetInterrupt(&self, flags: u32) -> windows_core::Result<()>; fn GetInterruptTimeout(&self) -> windows_core::Result; fn SetInterruptTimeout(&self, seconds: u32) -> windows_core::Result<()>; - fn GetLogFile(&self, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OpenLogFile(&self, file: &windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetLogFile(&self, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn OpenLogFile(&self, file: &windows_core::PCSTR, append: windows_core::BOOL) -> windows_core::Result<()>; fn CloseLogFile(&self) -> windows_core::Result<()>; fn GetLogMask(&self) -> windows_core::Result; fn SetLogMask(&self, mask: u32) -> windows_core::Result<()>; @@ -30734,8 +30734,8 @@ pub trait IDebugControl7_Impl: windows_core::IUnknownImpl { fn GetEventIndexDescription(&self, index: u32, which: u32, buffer: &windows_core::PCSTR, buffersize: u32, descsize: *mut u32) -> windows_core::Result<()>; fn GetCurrentEventIndex(&self) -> windows_core::Result; fn SetNextEventIndex(&self, relation: u32, value: u32) -> windows_core::Result; - fn GetLogFileWide(&self, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OpenLogFileWide(&self, file: &windows_core::PCWSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetLogFileWide(&self, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn OpenLogFileWide(&self, file: &windows_core::PCWSTR, append: windows_core::BOOL) -> windows_core::Result<()>; fn InputWide(&self, buffer: windows_core::PWSTR, buffersize: u32, inputsize: *mut u32) -> windows_core::Result<()>; fn ReturnInputWide(&self, buffer: &windows_core::PCWSTR) -> windows_core::Result<()>; fn OutputWide(&self, mask: u32, format: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -30829,13 +30829,13 @@ impl IDebugControl7_Vtbl { IDebugControl7_Impl::SetInterruptTimeout(this, core::mem::transmute_copy(&seconds)).into() } } - unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetLogFile(this: *mut core::ffi::c_void, buffer: windows_core::PSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetLogFile(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } } - unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OpenLogFile(this: *mut core::ffi::c_void, file: windows_core::PCSTR, append: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OpenLogFile(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() @@ -31693,13 +31693,13 @@ impl IDebugControl7_Vtbl { } } } - unsafe extern "system" fn GetLogFileWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetLogFileWide(this: *mut core::ffi::c_void, buffer: windows_core::PWSTR, buffersize: u32, filesize: *mut u32, append: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::GetLogFileWide(this, core::mem::transmute_copy(&buffer), core::mem::transmute_copy(&buffersize), core::mem::transmute_copy(&filesize), core::mem::transmute_copy(&append)).into() } } - unsafe extern "system" fn OpenLogFileWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, append: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OpenLogFileWide(this: *mut core::ffi::c_void, file: windows_core::PCWSTR, append: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugControl7_Impl::OpenLogFileWide(this, core::mem::transmute(&file), core::mem::transmute_copy(&append)).into() @@ -34641,7 +34641,7 @@ impl IDebugFAEntryTags { (windows_core::Interface::vtable(self).GetTagByName)(windows_core::Interface::as_raw(self), pluginid.param().abi(), tagname.param().abi(), &mut result__).map(|| result__) } } - pub unsafe fn IsValidTagToSet(&self, tag: DEBUG_FLR_PARAM_TYPE) -> super::super::super::super::Foundation::BOOL { + pub unsafe fn IsValidTagToSet(&self, tag: DEBUG_FLR_PARAM_TYPE) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsValidTagToSet)(windows_core::Interface::as_raw(self), tag) } } } @@ -34652,7 +34652,7 @@ pub struct IDebugFAEntryTags_Vtbl { pub GetProperties: unsafe extern "system" fn(*mut core::ffi::c_void, DEBUG_FLR_PARAM_TYPE, windows_core::PSTR, *mut u32, windows_core::PSTR, *mut u32, *mut u32) -> windows_core::HRESULT, pub SetProperties: unsafe extern "system" fn(*mut core::ffi::c_void, DEBUG_FLR_PARAM_TYPE, windows_core::PCSTR, windows_core::PCSTR, u32) -> windows_core::HRESULT, pub GetTagByName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, windows_core::PCSTR, *mut DEBUG_FLR_PARAM_TYPE) -> windows_core::HRESULT, - pub IsValidTagToSet: unsafe extern "system" fn(*mut core::ffi::c_void, DEBUG_FLR_PARAM_TYPE) -> super::super::super::super::Foundation::BOOL, + pub IsValidTagToSet: unsafe extern "system" fn(*mut core::ffi::c_void, DEBUG_FLR_PARAM_TYPE) -> windows_core::BOOL, } pub trait IDebugFAEntryTags_Impl { fn GetType(&self, tag: DEBUG_FLR_PARAM_TYPE) -> FA_ENTRY_TYPE; @@ -34660,7 +34660,7 @@ pub trait IDebugFAEntryTags_Impl { fn GetProperties(&self, tag: DEBUG_FLR_PARAM_TYPE, name: windows_core::PSTR, namesize: *mut u32, description: windows_core::PSTR, descsize: *mut u32, flags: *mut u32) -> windows_core::Result<()>; fn SetProperties(&self, tag: DEBUG_FLR_PARAM_TYPE, name: &windows_core::PCSTR, description: &windows_core::PCSTR, flags: u32) -> windows_core::Result<()>; fn GetTagByName(&self, pluginid: &windows_core::PCSTR, tagname: &windows_core::PCSTR) -> windows_core::Result; - fn IsValidTagToSet(&self, tag: DEBUG_FLR_PARAM_TYPE) -> super::super::super::super::Foundation::BOOL; + fn IsValidTagToSet(&self, tag: DEBUG_FLR_PARAM_TYPE) -> windows_core::BOOL; } impl IDebugFAEntryTags_Vtbl { pub const fn new() -> Self { @@ -34705,7 +34705,7 @@ impl IDebugFAEntryTags_Vtbl { } } } - unsafe extern "system" fn IsValidTagToSet(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE) -> super::super::super::super::Foundation::BOOL { + unsafe extern "system" fn IsValidTagToSet(this: *mut core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE) -> windows_core::BOOL { unsafe { let this = (this as *mut *mut core::ffi::c_void) as *const windows_core::ScopedHeap; let this = &*((*this).this as *const Identity); @@ -39236,7 +39236,7 @@ pub struct IDebugSymbolGroup_Vtbl { pub RemoveSymbolByIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetSymbolName: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PSTR, u32, *mut u32) -> windows_core::HRESULT, pub GetSymbolParameters: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut DEBUG_SYMBOL_PARAMETERS) -> windows_core::HRESULT, - pub ExpandSymbol: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ExpandSymbol: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, pub OutputSymbols: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, u32, u32) -> windows_core::HRESULT, pub WriteSymbol: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCSTR) -> windows_core::HRESULT, pub OutputAsType: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCSTR) -> windows_core::HRESULT, @@ -39248,7 +39248,7 @@ pub trait IDebugSymbolGroup_Impl: windows_core::IUnknownImpl { fn RemoveSymbolByIndex(&self, index: u32) -> windows_core::Result<()>; fn GetSymbolName(&self, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::Result<()>; fn GetSymbolParameters(&self, start: u32, count: u32, params: *mut DEBUG_SYMBOL_PARAMETERS) -> windows_core::Result<()>; - fn ExpandSymbol(&self, index: u32, expand: super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ExpandSymbol(&self, index: u32, expand: windows_core::BOOL) -> windows_core::Result<()>; fn OutputSymbols(&self, outputcontrol: u32, flags: u32, start: u32, count: u32) -> windows_core::Result<()>; fn WriteSymbol(&self, index: u32, value: &windows_core::PCSTR) -> windows_core::Result<()>; fn OutputAsType(&self, index: u32, r#type: &windows_core::PCSTR) -> windows_core::Result<()>; @@ -39297,7 +39297,7 @@ impl IDebugSymbolGroup_Vtbl { IDebugSymbolGroup_Impl::GetSymbolParameters(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } } - unsafe extern "system" fn ExpandSymbol(this: *mut core::ffi::c_void, index: u32, expand: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ExpandSymbol(this: *mut core::ffi::c_void, index: u32, expand: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup_Impl::ExpandSymbol(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&expand)).into() @@ -39458,7 +39458,7 @@ pub struct IDebugSymbolGroup2_Vtbl { pub RemoveSymbolByIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetSymbolName: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PSTR, u32, *mut u32) -> windows_core::HRESULT, pub GetSymbolParameters: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut DEBUG_SYMBOL_PARAMETERS) -> windows_core::HRESULT, - pub ExpandSymbol: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ExpandSymbol: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, pub OutputSymbols: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, u32, u32) -> windows_core::HRESULT, pub WriteSymbol: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCSTR) -> windows_core::HRESULT, pub OutputAsType: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCSTR) -> windows_core::HRESULT, @@ -39483,7 +39483,7 @@ pub trait IDebugSymbolGroup2_Impl: windows_core::IUnknownImpl { fn RemoveSymbolByIndex(&self, index: u32) -> windows_core::Result<()>; fn GetSymbolName(&self, index: u32, buffer: windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> windows_core::Result<()>; fn GetSymbolParameters(&self, start: u32, count: u32, params: *mut DEBUG_SYMBOL_PARAMETERS) -> windows_core::Result<()>; - fn ExpandSymbol(&self, index: u32, expand: super::super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ExpandSymbol(&self, index: u32, expand: windows_core::BOOL) -> windows_core::Result<()>; fn OutputSymbols(&self, outputcontrol: u32, flags: u32, start: u32, count: u32) -> windows_core::Result<()>; fn WriteSymbol(&self, index: u32, value: &windows_core::PCSTR) -> windows_core::Result<()>; fn OutputAsType(&self, index: u32, r#type: &windows_core::PCSTR) -> windows_core::Result<()>; @@ -39545,7 +39545,7 @@ impl IDebugSymbolGroup2_Vtbl { IDebugSymbolGroup2_Impl::GetSymbolParameters(this, core::mem::transmute_copy(&start), core::mem::transmute_copy(&count), core::mem::transmute_copy(¶ms)).into() } } - unsafe extern "system" fn ExpandSymbol(this: *mut core::ffi::c_void, index: u32, expand: super::super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ExpandSymbol(this: *mut core::ffi::c_void, index: u32, expand: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDebugSymbolGroup2_Impl::ExpandSymbol(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&expand)).into() @@ -52178,7 +52178,7 @@ pub struct KDEXTS_LOCK_INFO { pub SizeOfStruct: u32, pub Address: u64, pub OwningThread: u64, - pub ExclusiveOwned: super::super::super::super::Foundation::BOOL, + pub ExclusiveOwned: windows_core::BOOL, pub NumOwners: u32, pub ContentionCount: u32, pub NumExclusiveWaiters: u32, 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 d54307d017..005e593cd4 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 @@ -16,7 +16,7 @@ pub unsafe fn AddVectoredExceptionHandler(first: u32, handler: PVECTORED_EXCEPTI } #[inline] pub unsafe fn Beep(dwfreq: u32, dwduration: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Beep(dwfreq : u32, dwduration : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Beep(dwfreq : u32, dwduration : u32) -> windows_core::BOOL); unsafe { Beep(dwfreq, dwduration).ok() } } #[inline] @@ -26,7 +26,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("imagehlp.dll" "system" fn BindImage(imagename : windows_core::PCSTR, dllpath : windows_core::PCSTR, symbolpath : windows_core::PCSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn BindImage(imagename : windows_core::PCSTR, dllpath : windows_core::PCSTR, symbolpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { BindImage(imagename.param().abi(), dllpath.param().abi(), symbolpath.param().abi()).ok() } } #[inline] @@ -36,12 +36,12 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("imagehlp.dll" "system" fn BindImageEx(flags : u32, imagename : windows_core::PCSTR, dllpath : windows_core::PCSTR, symbolpath : windows_core::PCSTR, statusroutine : PIMAGEHLP_STATUS_ROUTINE) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn BindImageEx(flags : u32, imagename : windows_core::PCSTR, dllpath : windows_core::PCSTR, symbolpath : windows_core::PCSTR, statusroutine : PIMAGEHLP_STATUS_ROUTINE) -> windows_core::BOOL); unsafe { BindImageEx(flags, imagename.param().abi(), dllpath.param().abi(), symbolpath.param().abi(), statusroutine.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn CheckRemoteDebuggerPresent(hprocess: super::super::super::Foundation::HANDLE, pbdebuggerpresent: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn CheckRemoteDebuggerPresent(hprocess : super::super::super::Foundation:: HANDLE, pbdebuggerpresent : *mut super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); +pub unsafe fn CheckRemoteDebuggerPresent(hprocess: super::super::super::Foundation::HANDLE, pbdebuggerpresent: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("kernel32.dll" "system" fn CheckRemoteDebuggerPresent(hprocess : super::super::super::Foundation:: HANDLE, pbdebuggerpresent : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { CheckRemoteDebuggerPresent(hprocess, pbdebuggerpresent as _).ok() } } #[cfg(target_arch = "x86")] @@ -65,39 +65,39 @@ pub unsafe fn CloseThreadWaitChainSession(wcthandle: *const core::ffi::c_void) { } #[inline] pub unsafe fn ContinueDebugEvent(dwprocessid: u32, dwthreadid: u32, dwcontinuestatus: super::super::super::Foundation::NTSTATUS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ContinueDebugEvent(dwprocessid : u32, dwthreadid : u32, dwcontinuestatus : super::super::super::Foundation:: NTSTATUS) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ContinueDebugEvent(dwprocessid : u32, dwthreadid : u32, dwcontinuestatus : super::super::super::Foundation:: NTSTATUS) -> windows_core::BOOL); unsafe { ContinueDebugEvent(dwprocessid, dwthreadid, dwcontinuestatus).ok() } } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn CopyContext(destination: *mut CONTEXT, contextflags: CONTEXT_FLAGS, source: *const CONTEXT) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn CopyContext(destination : *mut CONTEXT, contextflags : CONTEXT_FLAGS, source : *const CONTEXT) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CopyContext(destination : *mut CONTEXT, contextflags : CONTEXT_FLAGS, source : *const CONTEXT) -> windows_core::BOOL); unsafe { CopyContext(destination as _, contextflags, source).ok() } } #[inline] -pub unsafe fn DbgHelpCreateUserDump(filename: P0, callback: PDBGHELP_CREATE_USER_DUMP_CALLBACK, userdata: Option<*const core::ffi::c_void>) -> super::super::super::Foundation::BOOL +pub unsafe fn DbgHelpCreateUserDump(filename: P0, callback: PDBGHELP_CREATE_USER_DUMP_CALLBACK, userdata: Option<*const core::ffi::c_void>) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn DbgHelpCreateUserDump(filename : windows_core::PCSTR, callback : PDBGHELP_CREATE_USER_DUMP_CALLBACK, userdata : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn DbgHelpCreateUserDump(filename : windows_core::PCSTR, callback : PDBGHELP_CREATE_USER_DUMP_CALLBACK, userdata : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { DbgHelpCreateUserDump(filename.param().abi(), callback, userdata.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn DbgHelpCreateUserDumpW(filename: P0, callback: PDBGHELP_CREATE_USER_DUMP_CALLBACK, userdata: Option<*const core::ffi::c_void>) -> super::super::super::Foundation::BOOL +pub unsafe fn DbgHelpCreateUserDumpW(filename: P0, callback: PDBGHELP_CREATE_USER_DUMP_CALLBACK, userdata: Option<*const core::ffi::c_void>) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn DbgHelpCreateUserDumpW(filename : windows_core::PCWSTR, callback : PDBGHELP_CREATE_USER_DUMP_CALLBACK, userdata : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn DbgHelpCreateUserDumpW(filename : windows_core::PCWSTR, callback : PDBGHELP_CREATE_USER_DUMP_CALLBACK, userdata : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { DbgHelpCreateUserDumpW(filename.param().abi(), callback, userdata.unwrap_or(core::mem::zeroed()) as _) } } #[inline] pub unsafe fn DebugActiveProcess(dwprocessid: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn DebugActiveProcess(dwprocessid : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DebugActiveProcess(dwprocessid : u32) -> windows_core::BOOL); unsafe { DebugActiveProcess(dwprocessid).ok() } } #[inline] pub unsafe fn DebugActiveProcessStop(dwprocessid: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn DebugActiveProcessStop(dwprocessid : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DebugActiveProcessStop(dwprocessid : u32) -> windows_core::BOOL); unsafe { DebugActiveProcessStop(dwprocessid).ok() } } #[inline] @@ -107,12 +107,12 @@ pub unsafe fn DebugBreak() { } #[inline] pub unsafe fn DebugBreakProcess(process: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn DebugBreakProcess(process : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DebugBreakProcess(process : super::super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { DebugBreakProcess(process).ok() } } #[inline] pub unsafe fn DebugSetProcessKillOnExit(killonexit: bool) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn DebugSetProcessKillOnExit(killonexit : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DebugSetProcessKillOnExit(killonexit : windows_core::BOOL) -> windows_core::BOOL); unsafe { DebugSetProcessKillOnExit(killonexit.into()).ok() } } #[inline] @@ -151,7 +151,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn EnumDirTree(hprocess : super::super::super::Foundation:: HANDLE, rootpath : windows_core::PCSTR, inputpathname : windows_core::PCSTR, outputpathbuffer : windows_core::PSTR, cb : PENUMDIRTREE_CALLBACK, data : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn EnumDirTree(hprocess : super::super::super::Foundation:: HANDLE, rootpath : windows_core::PCSTR, inputpathname : windows_core::PCSTR, outputpathbuffer : windows_core::PSTR, cb : PENUMDIRTREE_CALLBACK, data : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { EnumDirTree(hprocess.unwrap_or(core::mem::zeroed()) as _, rootpath.param().abi(), inputpathname.param().abi(), outputpathbuffer.unwrap_or(core::mem::zeroed()) as _, cb.unwrap_or(core::mem::zeroed()) as _, data.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -160,33 +160,33 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn EnumDirTreeW(hprocess : super::super::super::Foundation:: HANDLE, rootpath : windows_core::PCWSTR, inputpathname : windows_core::PCWSTR, outputpathbuffer : windows_core::PWSTR, cb : PENUMDIRTREE_CALLBACKW, data : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn EnumDirTreeW(hprocess : super::super::super::Foundation:: HANDLE, rootpath : windows_core::PCWSTR, inputpathname : windows_core::PCWSTR, outputpathbuffer : windows_core::PWSTR, cb : PENUMDIRTREE_CALLBACKW, data : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { EnumDirTreeW(hprocess.unwrap_or(core::mem::zeroed()) as _, rootpath.param().abi(), inputpathname.param().abi(), outputpathbuffer.unwrap_or(core::mem::zeroed()) as _, cb.unwrap_or(core::mem::zeroed()) as _, data.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn EnumerateLoadedModules(hprocess: super::super::super::Foundation::HANDLE, enumloadedmodulescallback: PENUMLOADED_MODULES_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn EnumerateLoadedModules(hprocess : super::super::super::Foundation:: HANDLE, enumloadedmodulescallback : PENUMLOADED_MODULES_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn EnumerateLoadedModules(hprocess : super::super::super::Foundation:: HANDLE, enumloadedmodulescallback : PENUMLOADED_MODULES_CALLBACK, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { EnumerateLoadedModules(hprocess, enumloadedmodulescallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn EnumerateLoadedModules64(hprocess: super::super::super::Foundation::HANDLE, enumloadedmodulescallback: PENUMLOADED_MODULES_CALLBACK64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn EnumerateLoadedModules64(hprocess : super::super::super::Foundation:: HANDLE, enumloadedmodulescallback : PENUMLOADED_MODULES_CALLBACK64, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn EnumerateLoadedModules64(hprocess : super::super::super::Foundation:: HANDLE, enumloadedmodulescallback : PENUMLOADED_MODULES_CALLBACK64, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { EnumerateLoadedModules64(hprocess, enumloadedmodulescallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn EnumerateLoadedModulesEx(hprocess: super::super::super::Foundation::HANDLE, enumloadedmodulescallback: PENUMLOADED_MODULES_CALLBACK64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn EnumerateLoadedModulesEx(hprocess : super::super::super::Foundation:: HANDLE, enumloadedmodulescallback : PENUMLOADED_MODULES_CALLBACK64, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn EnumerateLoadedModulesEx(hprocess : super::super::super::Foundation:: HANDLE, enumloadedmodulescallback : PENUMLOADED_MODULES_CALLBACK64, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { EnumerateLoadedModulesEx(hprocess, enumloadedmodulescallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn EnumerateLoadedModulesExW(hprocess: super::super::super::Foundation::HANDLE, enumloadedmodulescallback: PENUMLOADED_MODULES_CALLBACKW64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn EnumerateLoadedModulesExW(hprocess : super::super::super::Foundation:: HANDLE, enumloadedmodulescallback : PENUMLOADED_MODULES_CALLBACKW64, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn EnumerateLoadedModulesExW(hprocess : super::super::super::Foundation:: HANDLE, enumloadedmodulescallback : PENUMLOADED_MODULES_CALLBACKW64, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { EnumerateLoadedModulesExW(hprocess, enumloadedmodulescallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn EnumerateLoadedModulesW64(hprocess: super::super::super::Foundation::HANDLE, enumloadedmodulescallback: PENUMLOADED_MODULES_CALLBACKW64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn EnumerateLoadedModulesW64(hprocess : super::super::super::Foundation:: HANDLE, enumloadedmodulescallback : PENUMLOADED_MODULES_CALLBACKW64, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn EnumerateLoadedModulesW64(hprocess : super::super::super::Foundation:: HANDLE, enumloadedmodulescallback : PENUMLOADED_MODULES_CALLBACKW64, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { EnumerateLoadedModulesW64(hprocess, enumloadedmodulescallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -271,26 +271,26 @@ where (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] -pub unsafe fn FindFileInPath(hprocess: super::super::super::Foundation::HANDLE, searchpatha: P1, filename: P2, id: *const core::ffi::c_void, two: u32, three: u32, flags: u32, filepath: windows_core::PSTR) -> super::super::super::Foundation::BOOL +pub unsafe fn FindFileInPath(hprocess: super::super::super::Foundation::HANDLE, searchpatha: P1, filename: P2, id: *const core::ffi::c_void, two: u32, three: u32, flags: u32, filepath: windows_core::PSTR) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn FindFileInPath(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PCSTR, filename : windows_core::PCSTR, id : *const core::ffi::c_void, two : u32, three : u32, flags : u32, filepath : windows_core::PSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn FindFileInPath(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PCSTR, filename : windows_core::PCSTR, id : *const core::ffi::c_void, two : u32, three : u32, flags : u32, filepath : windows_core::PSTR) -> windows_core::BOOL); unsafe { FindFileInPath(hprocess, searchpatha.param().abi(), filename.param().abi(), id, two, three, flags, core::mem::transmute(filepath)) } } #[inline] -pub unsafe fn FindFileInSearchPath(hprocess: super::super::super::Foundation::HANDLE, searchpatha: P1, filename: P2, one: u32, two: u32, three: u32, filepath: windows_core::PSTR) -> super::super::super::Foundation::BOOL +pub unsafe fn FindFileInSearchPath(hprocess: super::super::super::Foundation::HANDLE, searchpatha: P1, filename: P2, one: u32, two: u32, three: u32, filepath: windows_core::PSTR) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn FindFileInSearchPath(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PCSTR, filename : windows_core::PCSTR, one : u32, two : u32, three : u32, filepath : windows_core::PSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn FindFileInSearchPath(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PCSTR, filename : windows_core::PCSTR, one : u32, two : u32, three : u32, filepath : windows_core::PSTR) -> windows_core::BOOL); unsafe { FindFileInSearchPath(hprocess, searchpatha.param().abi(), filename.param().abi(), one, two, three, core::mem::transmute(filepath)) } } #[inline] pub unsafe fn FlushInstructionCache(hprocess: super::super::super::Foundation::HANDLE, lpbaseaddress: Option<*const core::ffi::c_void>, dwsize: usize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FlushInstructionCache(hprocess : super::super::super::Foundation:: HANDLE, lpbaseaddress : *const core::ffi::c_void, dwsize : usize) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FlushInstructionCache(hprocess : super::super::super::Foundation:: HANDLE, lpbaseaddress : *const core::ffi::c_void, dwsize : usize) -> windows_core::BOOL); unsafe { FlushInstructionCache(hprocess, lpbaseaddress.unwrap_or(core::mem::zeroed()) as _, dwsize).ok() } } #[inline] @@ -318,14 +318,14 @@ pub unsafe fn GetErrorMode() -> u32 { #[cfg(all(feature = "Win32_System_Kernel", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn GetImageConfigInformation(loadedimage: *const LOADED_IMAGE, imageconfiginformation: *mut IMAGE_LOAD_CONFIG_DIRECTORY32) -> windows_core::Result<()> { - windows_targets::link!("imagehlp.dll" "system" fn GetImageConfigInformation(loadedimage : *const LOADED_IMAGE, imageconfiginformation : *mut IMAGE_LOAD_CONFIG_DIRECTORY32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn GetImageConfigInformation(loadedimage : *const LOADED_IMAGE, imageconfiginformation : *mut IMAGE_LOAD_CONFIG_DIRECTORY32) -> windows_core::BOOL); unsafe { GetImageConfigInformation(loadedimage, imageconfiginformation as _).ok() } } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_System_Kernel", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn GetImageConfigInformation(loadedimage: *const LOADED_IMAGE, imageconfiginformation: *mut IMAGE_LOAD_CONFIG_DIRECTORY64) -> windows_core::Result<()> { - windows_targets::link!("imagehlp.dll" "system" fn GetImageConfigInformation(loadedimage : *const LOADED_IMAGE, imageconfiginformation : *mut IMAGE_LOAD_CONFIG_DIRECTORY64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn GetImageConfigInformation(loadedimage : *const LOADED_IMAGE, imageconfiginformation : *mut IMAGE_LOAD_CONFIG_DIRECTORY64) -> windows_core::BOOL); unsafe { GetImageConfigInformation(loadedimage, imageconfiginformation as _).ok() } } #[cfg(all(feature = "Win32_System_Kernel", feature = "Win32_System_SystemInformation"))] @@ -342,7 +342,7 @@ pub unsafe fn GetSymLoadError() -> u32 { #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn GetThreadContext(hthread: super::super::super::Foundation::HANDLE, lpcontext: *mut CONTEXT) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetThreadContext(hthread : super::super::super::Foundation:: HANDLE, lpcontext : *mut CONTEXT) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetThreadContext(hthread : super::super::super::Foundation:: HANDLE, lpcontext : *mut CONTEXT) -> windows_core::BOOL); unsafe { GetThreadContext(hthread, lpcontext as _).ok() } } #[inline] @@ -352,12 +352,12 @@ pub unsafe fn GetThreadErrorMode() -> u32 { } #[inline] pub unsafe fn GetThreadSelectorEntry(hthread: super::super::super::Foundation::HANDLE, dwselector: u32, lpselectorentry: *mut LDT_ENTRY) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetThreadSelectorEntry(hthread : super::super::super::Foundation:: HANDLE, dwselector : u32, lpselectorentry : *mut LDT_ENTRY) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetThreadSelectorEntry(hthread : super::super::super::Foundation:: HANDLE, dwselector : u32, lpselectorentry : *mut LDT_ENTRY) -> windows_core::BOOL); unsafe { GetThreadSelectorEntry(hthread, dwselector, lpselectorentry as _).ok() } } #[inline] -pub unsafe fn GetThreadWaitChain(wcthandle: *const core::ffi::c_void, context: Option, flags: WAIT_CHAIN_THREAD_OPTIONS, threadid: u32, nodecount: *mut u32, nodeinfoarray: *mut WAITCHAIN_NODE_INFO, iscycle: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetThreadWaitChain(wcthandle : *const core::ffi::c_void, context : usize, flags : WAIT_CHAIN_THREAD_OPTIONS, threadid : u32, nodecount : *mut u32, nodeinfoarray : *mut WAITCHAIN_NODE_INFO, iscycle : *mut super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); +pub unsafe fn GetThreadWaitChain(wcthandle: *const core::ffi::c_void, context: Option, flags: WAIT_CHAIN_THREAD_OPTIONS, threadid: u32, nodecount: *mut u32, nodeinfoarray: *mut WAITCHAIN_NODE_INFO, iscycle: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("advapi32.dll" "system" fn GetThreadWaitChain(wcthandle : *const core::ffi::c_void, context : usize, flags : WAIT_CHAIN_THREAD_OPTIONS, threadid : u32, nodecount : *mut u32, nodeinfoarray : *mut WAITCHAIN_NODE_INFO, iscycle : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { GetThreadWaitChain(wcthandle, context.unwrap_or(core::mem::zeroed()) as _, flags, threadid, nodecount as _, nodeinfoarray as _, iscycle as _).ok() } } #[inline] @@ -368,14 +368,14 @@ pub unsafe fn GetTimestampForLoadedLibrary(module: super::super::super::Foundati #[cfg(any(target_arch = "arm64ec", target_arch = "x86", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn GetXStateFeaturesMask(context: *const CONTEXT, featuremask: *mut u64) -> super::super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetXStateFeaturesMask(context : *const CONTEXT, featuremask : *mut u64) -> super::super::super::Foundation:: BOOL); +pub unsafe fn GetXStateFeaturesMask(context: *const CONTEXT, featuremask: *mut u64) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetXStateFeaturesMask(context : *const CONTEXT, featuremask : *mut u64) -> windows_core::BOOL); unsafe { GetXStateFeaturesMask(context, featuremask as _) } } #[cfg(feature = "Win32_Security_WinTrust")] #[inline] pub unsafe fn ImageAddCertificate(filehandle: super::super::super::Foundation::HANDLE, certificate: *const super::super::super::Security::WinTrust::WIN_CERTIFICATE, index: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("imagehlp.dll" "system" fn ImageAddCertificate(filehandle : super::super::super::Foundation:: HANDLE, certificate : *const super::super::super::Security::WinTrust:: WIN_CERTIFICATE, index : *mut u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn ImageAddCertificate(filehandle : super::super::super::Foundation:: HANDLE, certificate : *const super::super::super::Security::WinTrust:: WIN_CERTIFICATE, index : *mut u32) -> windows_core::BOOL); unsafe { ImageAddCertificate(filehandle, certificate, index as _).ok() } } #[inline] @@ -390,24 +390,24 @@ pub unsafe fn ImageDirectoryEntryToDataEx(base: *const core::ffi::c_void, mapped } #[inline] pub unsafe fn ImageEnumerateCertificates(filehandle: super::super::super::Foundation::HANDLE, typefilter: u16, certificatecount: *mut u32, indices: Option<&mut [u32]>) -> windows_core::Result<()> { - windows_targets::link!("imagehlp.dll" "system" fn ImageEnumerateCertificates(filehandle : super::super::super::Foundation:: HANDLE, typefilter : u16, certificatecount : *mut u32, indices : *mut u32, indexcount : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn ImageEnumerateCertificates(filehandle : super::super::super::Foundation:: HANDLE, typefilter : u16, certificatecount : *mut u32, indices : *mut u32, indexcount : u32) -> windows_core::BOOL); unsafe { ImageEnumerateCertificates(filehandle, typefilter, certificatecount as _, core::mem::transmute(indices.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), indices.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } } #[cfg(feature = "Win32_Security_WinTrust")] #[inline] pub unsafe fn ImageGetCertificateData(filehandle: super::super::super::Foundation::HANDLE, certificateindex: u32, certificate: *mut super::super::super::Security::WinTrust::WIN_CERTIFICATE, requiredlength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("imagehlp.dll" "system" fn ImageGetCertificateData(filehandle : super::super::super::Foundation:: HANDLE, certificateindex : u32, certificate : *mut super::super::super::Security::WinTrust:: WIN_CERTIFICATE, requiredlength : *mut u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn ImageGetCertificateData(filehandle : super::super::super::Foundation:: HANDLE, certificateindex : u32, certificate : *mut super::super::super::Security::WinTrust:: WIN_CERTIFICATE, requiredlength : *mut u32) -> windows_core::BOOL); unsafe { ImageGetCertificateData(filehandle, certificateindex, certificate as _, requiredlength as _).ok() } } #[cfg(feature = "Win32_Security_WinTrust")] #[inline] pub unsafe fn ImageGetCertificateHeader(filehandle: super::super::super::Foundation::HANDLE, certificateindex: u32, certificateheader: *mut super::super::super::Security::WinTrust::WIN_CERTIFICATE) -> windows_core::Result<()> { - windows_targets::link!("imagehlp.dll" "system" fn ImageGetCertificateHeader(filehandle : super::super::super::Foundation:: HANDLE, certificateindex : u32, certificateheader : *mut super::super::super::Security::WinTrust:: WIN_CERTIFICATE) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn ImageGetCertificateHeader(filehandle : super::super::super::Foundation:: HANDLE, certificateindex : u32, certificateheader : *mut super::super::super::Security::WinTrust:: WIN_CERTIFICATE) -> windows_core::BOOL); unsafe { ImageGetCertificateHeader(filehandle, certificateindex, certificateheader as _).ok() } } #[inline] pub unsafe fn ImageGetDigestStream(filehandle: super::super::super::Foundation::HANDLE, digestlevel: u32, digestfunction: DIGEST_FUNCTION, digesthandle: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("imagehlp.dll" "system" fn ImageGetDigestStream(filehandle : super::super::super::Foundation:: HANDLE, digestlevel : u32, digestfunction : DIGEST_FUNCTION, digesthandle : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn ImageGetDigestStream(filehandle : super::super::super::Foundation:: HANDLE, digestlevel : u32, digestfunction : DIGEST_FUNCTION, digesthandle : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { ImageGetDigestStream(filehandle, digestlevel, digestfunction, digesthandle).ok() } } #[cfg(all(feature = "Win32_System_Kernel", feature = "Win32_System_SystemInformation"))] @@ -436,7 +436,7 @@ pub unsafe fn ImageNtHeader(base: *const core::ffi::c_void) -> *mut IMAGE_NT_HEA } #[inline] pub unsafe fn ImageRemoveCertificate(filehandle: super::super::super::Foundation::HANDLE, index: u32) -> windows_core::Result<()> { - windows_targets::link!("imagehlp.dll" "system" fn ImageRemoveCertificate(filehandle : super::super::super::Foundation:: HANDLE, index : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn ImageRemoveCertificate(filehandle : super::super::super::Foundation:: HANDLE, index : u32) -> windows_core::BOOL); unsafe { ImageRemoveCertificate(filehandle, index).ok() } } #[cfg(target_arch = "x86")] @@ -470,7 +470,7 @@ pub unsafe fn ImageRvaToVa(ntheaders: *const IMAGE_NT_HEADERS64, base: *const co #[cfg(all(feature = "Win32_System_Kernel", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn ImageUnload(loadedimage: *mut LOADED_IMAGE) -> windows_core::Result<()> { - windows_targets::link!("imagehlp.dll" "system" fn ImageUnload(loadedimage : *mut LOADED_IMAGE) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn ImageUnload(loadedimage : *mut LOADED_IMAGE) -> windows_core::BOOL); unsafe { ImageUnload(loadedimage as _).ok() } } #[inline] @@ -486,18 +486,18 @@ pub unsafe fn ImagehlpApiVersionEx(appversion: *const API_VERSION) -> *mut API_V #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn InitializeContext(buffer: Option<*mut core::ffi::c_void>, contextflags: CONTEXT_FLAGS, context: *mut *mut CONTEXT, contextlength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn InitializeContext(buffer : *mut core::ffi::c_void, contextflags : CONTEXT_FLAGS, context : *mut *mut CONTEXT, contextlength : *mut u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn InitializeContext(buffer : *mut core::ffi::c_void, contextflags : CONTEXT_FLAGS, context : *mut *mut CONTEXT, contextlength : *mut u32) -> windows_core::BOOL); unsafe { InitializeContext(buffer.unwrap_or(core::mem::zeroed()) as _, contextflags, context as _, contextlength as _).ok() } } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn InitializeContext2(buffer: Option<*mut core::ffi::c_void>, contextflags: CONTEXT_FLAGS, context: *mut *mut CONTEXT, contextlength: *mut u32, xstatecompactionmask: u64) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn InitializeContext2(buffer : *mut core::ffi::c_void, contextflags : CONTEXT_FLAGS, context : *mut *mut CONTEXT, contextlength : *mut u32, xstatecompactionmask : u64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn InitializeContext2(buffer : *mut core::ffi::c_void, contextflags : CONTEXT_FLAGS, context : *mut *mut CONTEXT, contextlength : *mut u32, xstatecompactionmask : u64) -> windows_core::BOOL); unsafe { InitializeContext2(buffer.unwrap_or(core::mem::zeroed()) as _, contextflags, context as _, contextlength as _, xstatecompactionmask).ok() } } #[inline] -pub unsafe fn IsDebuggerPresent() -> super::super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn IsDebuggerPresent() -> super::super::super::Foundation:: BOOL); +pub unsafe fn IsDebuggerPresent() -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn IsDebuggerPresent() -> windows_core::BOOL); unsafe { IsDebuggerPresent() } } #[cfg(any(target_arch = "arm64ec", target_arch = "x86", target_arch = "x86_64"))] @@ -512,7 +512,7 @@ pub unsafe fn MakeSureDirectoryPathExists(dirpath: P0) -> windows_core::Resu where P0: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn MakeSureDirectoryPathExists(dirpath : windows_core::PCSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn MakeSureDirectoryPathExists(dirpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { MakeSureDirectoryPathExists(dirpath.param().abi()).ok() } } #[cfg(all(feature = "Win32_System_Kernel", feature = "Win32_System_SystemInformation"))] @@ -522,7 +522,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("imagehlp.dll" "system" fn MapAndLoad(imagename : windows_core::PCSTR, dllpath : windows_core::PCSTR, loadedimage : *mut LOADED_IMAGE, dotdll : super::super::super::Foundation:: BOOL, readonly : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn MapAndLoad(imagename : windows_core::PCSTR, dllpath : windows_core::PCSTR, loadedimage : *mut LOADED_IMAGE, dotdll : windows_core::BOOL, readonly : windows_core::BOOL) -> windows_core::BOOL); unsafe { MapAndLoad(imagename.param().abi(), dllpath.param().abi(), loadedimage as _, dotdll.into(), readonly.into()).ok() } } #[inline] @@ -544,18 +544,18 @@ where #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn MessageBeep(utype: super::super::super::UI::WindowsAndMessaging::MESSAGEBOX_STYLE) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn MessageBeep(utype : super::super::super::UI::WindowsAndMessaging:: MESSAGEBOX_STYLE) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn MessageBeep(utype : super::super::super::UI::WindowsAndMessaging:: MESSAGEBOX_STYLE) -> windows_core::BOOL); unsafe { MessageBeep(utype).ok() } } #[inline] -pub unsafe fn MiniDumpReadDumpStream(baseofdump: *const core::ffi::c_void, streamnumber: u32, dir: *mut *mut MINIDUMP_DIRECTORY, streampointer: *mut *mut core::ffi::c_void, streamsize: Option<*mut u32>) -> super::super::super::Foundation::BOOL { - windows_targets::link!("dbghelp.dll" "system" fn MiniDumpReadDumpStream(baseofdump : *const core::ffi::c_void, streamnumber : u32, dir : *mut *mut MINIDUMP_DIRECTORY, streampointer : *mut *mut core::ffi::c_void, streamsize : *mut u32) -> super::super::super::Foundation:: BOOL); +pub unsafe fn MiniDumpReadDumpStream(baseofdump: *const core::ffi::c_void, streamnumber: u32, dir: *mut *mut MINIDUMP_DIRECTORY, streampointer: *mut *mut core::ffi::c_void, streamsize: Option<*mut u32>) -> windows_core::BOOL { + windows_targets::link!("dbghelp.dll" "system" fn MiniDumpReadDumpStream(baseofdump : *const core::ffi::c_void, streamnumber : u32, dir : *mut *mut MINIDUMP_DIRECTORY, streampointer : *mut *mut core::ffi::c_void, streamsize : *mut u32) -> windows_core::BOOL); unsafe { MiniDumpReadDumpStream(baseofdump, streamnumber, dir as _, streampointer as _, streamsize.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(all(feature = "Win32_Storage_FileSystem", feature = "Win32_System_Kernel", feature = "Win32_System_Memory"))] #[inline] pub unsafe fn MiniDumpWriteDump(hprocess: super::super::super::Foundation::HANDLE, processid: u32, hfile: super::super::super::Foundation::HANDLE, dumptype: MINIDUMP_TYPE, exceptionparam: Option<*const MINIDUMP_EXCEPTION_INFORMATION>, userstreamparam: Option<*const MINIDUMP_USER_STREAM_INFORMATION>, callbackparam: Option<*const MINIDUMP_CALLBACK_INFORMATION>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn MiniDumpWriteDump(hprocess : super::super::super::Foundation:: HANDLE, processid : u32, hfile : super::super::super::Foundation:: HANDLE, dumptype : MINIDUMP_TYPE, exceptionparam : *const MINIDUMP_EXCEPTION_INFORMATION, userstreamparam : *const MINIDUMP_USER_STREAM_INFORMATION, callbackparam : *const MINIDUMP_CALLBACK_INFORMATION) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn MiniDumpWriteDump(hprocess : super::super::super::Foundation:: HANDLE, processid : u32, hfile : super::super::super::Foundation:: HANDLE, dumptype : MINIDUMP_TYPE, exceptionparam : *const MINIDUMP_EXCEPTION_INFORMATION, userstreamparam : *const MINIDUMP_USER_STREAM_INFORMATION, callbackparam : *const MINIDUMP_CALLBACK_INFORMATION) -> windows_core::BOOL); unsafe { MiniDumpWriteDump(hprocess, processid, hfile, dumptype, exceptionparam.unwrap_or(core::mem::zeroed()) as _, userstreamparam.unwrap_or(core::mem::zeroed()) as _, callbackparam.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -591,11 +591,11 @@ pub unsafe fn RaiseFailFastException(pexceptionrecord: Option<*const EXCEPTION_R unsafe { RaiseFailFastException(pexceptionrecord.unwrap_or(core::mem::zeroed()) as _, pcontextrecord.unwrap_or(core::mem::zeroed()) as _, dwflags) } } #[inline] -pub unsafe fn RangeMapAddPeImageSections(rmaphandle: *const core::ffi::c_void, imagename: P1, mappedimage: *const core::ffi::c_void, mappingbytes: u32, imagebase: u64, usertag: u64, mappingflags: u32) -> super::super::super::Foundation::BOOL +pub unsafe fn RangeMapAddPeImageSections(rmaphandle: *const core::ffi::c_void, imagename: P1, mappedimage: *const core::ffi::c_void, mappingbytes: u32, imagebase: u64, usertag: u64, mappingflags: u32) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn RangeMapAddPeImageSections(rmaphandle : *const core::ffi::c_void, imagename : windows_core::PCWSTR, mappedimage : *const core::ffi::c_void, mappingbytes : u32, imagebase : u64, usertag : u64, mappingflags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn RangeMapAddPeImageSections(rmaphandle : *const core::ffi::c_void, imagename : windows_core::PCWSTR, mappedimage : *const core::ffi::c_void, mappingbytes : u32, imagebase : u64, usertag : u64, mappingflags : u32) -> windows_core::BOOL); unsafe { RangeMapAddPeImageSections(rmaphandle, imagename.param().abi(), mappedimage, mappingbytes, imagebase, usertag, mappingflags) } } #[inline] @@ -609,18 +609,18 @@ pub unsafe fn RangeMapFree(rmaphandle: Option<*const core::ffi::c_void>) { unsafe { RangeMapFree(rmaphandle.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn RangeMapRead(rmaphandle: *const core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, requestbytes: u32, flags: u32, donebytes: Option<*mut u32>) -> super::super::super::Foundation::BOOL { - windows_targets::link!("dbghelp.dll" "system" fn RangeMapRead(rmaphandle : *const core::ffi::c_void, offset : u64, buffer : *mut core::ffi::c_void, requestbytes : u32, flags : u32, donebytes : *mut u32) -> super::super::super::Foundation:: BOOL); +pub unsafe fn RangeMapRead(rmaphandle: *const core::ffi::c_void, offset: u64, buffer: *mut core::ffi::c_void, requestbytes: u32, flags: u32, donebytes: Option<*mut u32>) -> windows_core::BOOL { + windows_targets::link!("dbghelp.dll" "system" fn RangeMapRead(rmaphandle : *const core::ffi::c_void, offset : u64, buffer : *mut core::ffi::c_void, requestbytes : u32, flags : u32, donebytes : *mut u32) -> windows_core::BOOL); unsafe { RangeMapRead(rmaphandle, offset, buffer as _, requestbytes, flags, donebytes.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn RangeMapRemove(rmaphandle: *const core::ffi::c_void, usertag: u64) -> super::super::super::Foundation::BOOL { - windows_targets::link!("dbghelp.dll" "system" fn RangeMapRemove(rmaphandle : *const core::ffi::c_void, usertag : u64) -> super::super::super::Foundation:: BOOL); +pub unsafe fn RangeMapRemove(rmaphandle: *const core::ffi::c_void, usertag: u64) -> windows_core::BOOL { + windows_targets::link!("dbghelp.dll" "system" fn RangeMapRemove(rmaphandle : *const core::ffi::c_void, usertag : u64) -> windows_core::BOOL); unsafe { RangeMapRemove(rmaphandle, usertag) } } #[inline] -pub unsafe fn RangeMapWrite(rmaphandle: *const core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, requestbytes: u32, flags: u32, donebytes: Option<*mut u32>) -> super::super::super::Foundation::BOOL { - windows_targets::link!("dbghelp.dll" "system" fn RangeMapWrite(rmaphandle : *const core::ffi::c_void, offset : u64, buffer : *const core::ffi::c_void, requestbytes : u32, flags : u32, donebytes : *mut u32) -> super::super::super::Foundation:: BOOL); +pub unsafe fn RangeMapWrite(rmaphandle: *const core::ffi::c_void, offset: u64, buffer: *const core::ffi::c_void, requestbytes: u32, flags: u32, donebytes: Option<*mut u32>) -> windows_core::BOOL { + windows_targets::link!("dbghelp.dll" "system" fn RangeMapWrite(rmaphandle : *const core::ffi::c_void, offset : u64, buffer : *const core::ffi::c_void, requestbytes : u32, flags : u32, donebytes : *mut u32) -> windows_core::BOOL); unsafe { RangeMapWrite(rmaphandle, offset, buffer, requestbytes, flags, donebytes.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -629,7 +629,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("imagehlp.dll" "system" fn ReBaseImage(currentimagename : windows_core::PCSTR, symbolpath : windows_core::PCSTR, frebase : super::super::super::Foundation:: BOOL, frebasesysfileok : super::super::super::Foundation:: BOOL, fgoingdown : super::super::super::Foundation:: BOOL, checkimagesize : u32, oldimagesize : *mut u32, oldimagebase : *mut usize, newimagesize : *mut u32, newimagebase : *mut usize, timestamp : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn ReBaseImage(currentimagename : windows_core::PCSTR, symbolpath : windows_core::PCSTR, frebase : windows_core::BOOL, frebasesysfileok : windows_core::BOOL, fgoingdown : windows_core::BOOL, checkimagesize : u32, oldimagesize : *mut u32, oldimagebase : *mut usize, newimagesize : *mut u32, newimagebase : *mut usize, timestamp : u32) -> windows_core::BOOL); unsafe { ReBaseImage(currentimagename.param().abi(), symbolpath.param().abi(), frebase.into(), frebasesysfileok.into(), fgoingdown.into(), checkimagesize, oldimagesize as _, oldimagebase as _, newimagesize as _, newimagebase as _, timestamp).ok() } } #[inline] @@ -638,12 +638,12 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("imagehlp.dll" "system" fn ReBaseImage64(currentimagename : windows_core::PCSTR, symbolpath : windows_core::PCSTR, frebase : super::super::super::Foundation:: BOOL, frebasesysfileok : super::super::super::Foundation:: BOOL, fgoingdown : super::super::super::Foundation:: BOOL, checkimagesize : u32, oldimagesize : *mut u32, oldimagebase : *mut u64, newimagesize : *mut u32, newimagebase : *mut u64, timestamp : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn ReBaseImage64(currentimagename : windows_core::PCSTR, symbolpath : windows_core::PCSTR, frebase : windows_core::BOOL, frebasesysfileok : windows_core::BOOL, fgoingdown : windows_core::BOOL, checkimagesize : u32, oldimagesize : *mut u32, oldimagebase : *mut u64, newimagesize : *mut u32, newimagebase : *mut u64, timestamp : u32) -> windows_core::BOOL); unsafe { ReBaseImage64(currentimagename.param().abi(), symbolpath.param().abi(), frebase.into(), frebasesysfileok.into(), fgoingdown.into(), checkimagesize, oldimagesize as _, oldimagebase as _, newimagesize as _, newimagebase as _, timestamp).ok() } } #[inline] pub unsafe fn ReadProcessMemory(hprocess: super::super::super::Foundation::HANDLE, lpbaseaddress: *const core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, nsize: usize, lpnumberofbytesread: Option<*mut usize>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ReadProcessMemory(hprocess : super::super::super::Foundation:: HANDLE, lpbaseaddress : *const core::ffi::c_void, lpbuffer : *mut core::ffi::c_void, nsize : usize, lpnumberofbytesread : *mut usize) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReadProcessMemory(hprocess : super::super::super::Foundation:: HANDLE, lpbaseaddress : *const core::ffi::c_void, lpbuffer : *mut core::ffi::c_void, nsize : usize, lpnumberofbytesread : *mut usize) -> windows_core::BOOL); unsafe { ReadProcessMemory(hprocess, lpbaseaddress, lpbuffer as _, nsize, lpnumberofbytesread.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -667,11 +667,11 @@ pub unsafe fn RemoveVectoredExceptionHandler(handle: *const core::ffi::c_void) - unsafe { RemoveVectoredExceptionHandler(handle) } } #[inline] -pub unsafe fn ReportSymbolLoadSummary(hprocess: super::super::super::Foundation::HANDLE, ploadmodule: P1, psymboldata: *const DBGHELP_DATA_REPORT_STRUCT) -> super::super::super::Foundation::BOOL +pub unsafe fn ReportSymbolLoadSummary(hprocess: super::super::super::Foundation::HANDLE, ploadmodule: P1, psymboldata: *const DBGHELP_DATA_REPORT_STRUCT) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn ReportSymbolLoadSummary(hprocess : super::super::super::Foundation:: HANDLE, ploadmodule : windows_core::PCWSTR, psymboldata : *const DBGHELP_DATA_REPORT_STRUCT) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn ReportSymbolLoadSummary(hprocess : super::super::super::Foundation:: HANDLE, ploadmodule : windows_core::PCWSTR, psymboldata : *const DBGHELP_DATA_REPORT_STRUCT) -> windows_core::BOOL); unsafe { ReportSymbolLoadSummary(hprocess, ploadmodule.param().abi(), psymboldata) } } #[cfg(any(target_arch = "arm64ec", target_arch = "x86_64"))] @@ -818,7 +818,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SearchTreeForFile(rootpath : windows_core::PCSTR, inputpathname : windows_core::PCSTR, outputpathbuffer : windows_core::PSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SearchTreeForFile(rootpath : windows_core::PCSTR, inputpathname : windows_core::PCSTR, outputpathbuffer : windows_core::PSTR) -> windows_core::BOOL); unsafe { SearchTreeForFile(rootpath.param().abi(), inputpathname.param().abi(), core::mem::transmute(outputpathbuffer)).ok() } } #[inline] @@ -827,7 +827,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SearchTreeForFileW(rootpath : windows_core::PCWSTR, inputpathname : windows_core::PCWSTR, outputpathbuffer : windows_core::PWSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SearchTreeForFileW(rootpath : windows_core::PCWSTR, inputpathname : windows_core::PCWSTR, outputpathbuffer : windows_core::PWSTR) -> windows_core::BOOL); unsafe { SearchTreeForFileW(rootpath.param().abi(), inputpathname.param().abi(), core::mem::transmute(outputpathbuffer)).ok() } } #[inline] @@ -844,14 +844,14 @@ pub unsafe fn SetErrorMode(umode: THREAD_ERROR_MODE) -> THREAD_ERROR_MODE { #[cfg(all(feature = "Win32_System_Kernel", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetImageConfigInformation(loadedimage: *mut LOADED_IMAGE, imageconfiginformation: *const IMAGE_LOAD_CONFIG_DIRECTORY32) -> windows_core::Result<()> { - windows_targets::link!("imagehlp.dll" "system" fn SetImageConfigInformation(loadedimage : *mut LOADED_IMAGE, imageconfiginformation : *const IMAGE_LOAD_CONFIG_DIRECTORY32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn SetImageConfigInformation(loadedimage : *mut LOADED_IMAGE, imageconfiginformation : *const IMAGE_LOAD_CONFIG_DIRECTORY32) -> windows_core::BOOL); unsafe { SetImageConfigInformation(loadedimage as _, imageconfiginformation).ok() } } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[cfg(all(feature = "Win32_System_Kernel", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn SetImageConfigInformation(loadedimage: *mut LOADED_IMAGE, imageconfiginformation: *const IMAGE_LOAD_CONFIG_DIRECTORY64) -> windows_core::Result<()> { - windows_targets::link!("imagehlp.dll" "system" fn SetImageConfigInformation(loadedimage : *mut LOADED_IMAGE, imageconfiginformation : *const IMAGE_LOAD_CONFIG_DIRECTORY64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn SetImageConfigInformation(loadedimage : *mut LOADED_IMAGE, imageconfiginformation : *const IMAGE_LOAD_CONFIG_DIRECTORY64) -> windows_core::BOOL); unsafe { SetImageConfigInformation(loadedimage as _, imageconfiginformation).ok() } } #[inline] @@ -862,12 +862,12 @@ pub unsafe fn SetSymLoadError(error: u32) { #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn SetThreadContext(hthread: super::super::super::Foundation::HANDLE, lpcontext: *const CONTEXT) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetThreadContext(hthread : super::super::super::Foundation:: HANDLE, lpcontext : *const CONTEXT) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetThreadContext(hthread : super::super::super::Foundation:: HANDLE, lpcontext : *const CONTEXT) -> windows_core::BOOL); unsafe { SetThreadContext(hthread, lpcontext).ok() } } #[inline] pub unsafe fn SetThreadErrorMode(dwnewmode: THREAD_ERROR_MODE, lpoldmode: Option<*mut THREAD_ERROR_MODE>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetThreadErrorMode(dwnewmode : THREAD_ERROR_MODE, lpoldmode : *mut THREAD_ERROR_MODE) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetThreadErrorMode(dwnewmode : THREAD_ERROR_MODE, lpoldmode : *mut THREAD_ERROR_MODE) -> windows_core::BOOL); unsafe { SetThreadErrorMode(dwnewmode, lpoldmode.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_System_Kernel")] @@ -879,29 +879,29 @@ pub unsafe fn SetUnhandledExceptionFilter(lptoplevelexceptionfilter: Option super::super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn SetXStateFeaturesMask(context : *mut CONTEXT, featuremask : u64) -> super::super::super::Foundation:: BOOL); +pub unsafe fn SetXStateFeaturesMask(context: *mut CONTEXT, featuremask: u64) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn SetXStateFeaturesMask(context : *mut CONTEXT, featuremask : u64) -> windows_core::BOOL); unsafe { SetXStateFeaturesMask(context as _, featuremask) } } #[cfg(target_arch = "x86")] #[inline] -pub unsafe fn StackWalk(machinetype: u32, hprocess: super::super::super::Foundation::HANDLE, hthread: super::super::super::Foundation::HANDLE, stackframe: *mut STACKFRAME, contextrecord: *mut core::ffi::c_void, readmemoryroutine: Option, functiontableaccessroutine: Option, getmodulebaseroutine: Option, translateaddress: Option) -> super::super::super::Foundation::BOOL { - windows_targets::link!("dbghelp.dll" "system" fn StackWalk(machinetype : u32, hprocess : super::super::super::Foundation:: HANDLE, hthread : super::super::super::Foundation:: HANDLE, stackframe : *mut STACKFRAME, contextrecord : *mut core::ffi::c_void, readmemoryroutine : PREAD_PROCESS_MEMORY_ROUTINE, functiontableaccessroutine : PFUNCTION_TABLE_ACCESS_ROUTINE, getmodulebaseroutine : PGET_MODULE_BASE_ROUTINE, translateaddress : PTRANSLATE_ADDRESS_ROUTINE) -> super::super::super::Foundation:: BOOL); +pub unsafe fn StackWalk(machinetype: u32, hprocess: super::super::super::Foundation::HANDLE, hthread: super::super::super::Foundation::HANDLE, stackframe: *mut STACKFRAME, contextrecord: *mut core::ffi::c_void, readmemoryroutine: Option, functiontableaccessroutine: Option, getmodulebaseroutine: Option, translateaddress: Option) -> windows_core::BOOL { + windows_targets::link!("dbghelp.dll" "system" fn StackWalk(machinetype : u32, hprocess : super::super::super::Foundation:: HANDLE, hthread : super::super::super::Foundation:: HANDLE, stackframe : *mut STACKFRAME, contextrecord : *mut core::ffi::c_void, readmemoryroutine : PREAD_PROCESS_MEMORY_ROUTINE, functiontableaccessroutine : PFUNCTION_TABLE_ACCESS_ROUTINE, getmodulebaseroutine : PGET_MODULE_BASE_ROUTINE, translateaddress : PTRANSLATE_ADDRESS_ROUTINE) -> windows_core::BOOL); unsafe { StackWalk(machinetype, hprocess, hthread, stackframe as _, contextrecord as _, readmemoryroutine.unwrap_or(core::mem::zeroed()) as _, functiontableaccessroutine.unwrap_or(core::mem::zeroed()) as _, getmodulebaseroutine.unwrap_or(core::mem::zeroed()) as _, translateaddress.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn StackWalk2(machinetype: u32, hprocess: super::super::super::Foundation::HANDLE, hthread: super::super::super::Foundation::HANDLE, stackframe: *mut STACKFRAME_EX, contextrecord: *mut core::ffi::c_void, readmemoryroutine: Option, functiontableaccessroutine: Option, getmodulebaseroutine: Option, translateaddress: Option, gettargetattributevalue: Option, flags: u32) -> super::super::super::Foundation::BOOL { - windows_targets::link!("dbghelp.dll" "system" fn StackWalk2(machinetype : u32, hprocess : super::super::super::Foundation:: HANDLE, hthread : super::super::super::Foundation:: HANDLE, stackframe : *mut STACKFRAME_EX, contextrecord : *mut core::ffi::c_void, readmemoryroutine : PREAD_PROCESS_MEMORY_ROUTINE64, functiontableaccessroutine : PFUNCTION_TABLE_ACCESS_ROUTINE64, getmodulebaseroutine : PGET_MODULE_BASE_ROUTINE64, translateaddress : PTRANSLATE_ADDRESS_ROUTINE64, gettargetattributevalue : PGET_TARGET_ATTRIBUTE_VALUE64, flags : u32) -> super::super::super::Foundation:: BOOL); +pub unsafe fn StackWalk2(machinetype: u32, hprocess: super::super::super::Foundation::HANDLE, hthread: super::super::super::Foundation::HANDLE, stackframe: *mut STACKFRAME_EX, contextrecord: *mut core::ffi::c_void, readmemoryroutine: Option, functiontableaccessroutine: Option, getmodulebaseroutine: Option, translateaddress: Option, gettargetattributevalue: Option, flags: u32) -> windows_core::BOOL { + windows_targets::link!("dbghelp.dll" "system" fn StackWalk2(machinetype : u32, hprocess : super::super::super::Foundation:: HANDLE, hthread : super::super::super::Foundation:: HANDLE, stackframe : *mut STACKFRAME_EX, contextrecord : *mut core::ffi::c_void, readmemoryroutine : PREAD_PROCESS_MEMORY_ROUTINE64, functiontableaccessroutine : PFUNCTION_TABLE_ACCESS_ROUTINE64, getmodulebaseroutine : PGET_MODULE_BASE_ROUTINE64, translateaddress : PTRANSLATE_ADDRESS_ROUTINE64, gettargetattributevalue : PGET_TARGET_ATTRIBUTE_VALUE64, flags : u32) -> windows_core::BOOL); unsafe { StackWalk2(machinetype, hprocess, hthread, stackframe as _, contextrecord as _, readmemoryroutine.unwrap_or(core::mem::zeroed()) as _, functiontableaccessroutine.unwrap_or(core::mem::zeroed()) as _, getmodulebaseroutine.unwrap_or(core::mem::zeroed()) as _, translateaddress.unwrap_or(core::mem::zeroed()) as _, gettargetattributevalue.unwrap_or(core::mem::zeroed()) as _, flags) } } #[inline] -pub unsafe fn StackWalk64(machinetype: u32, hprocess: super::super::super::Foundation::HANDLE, hthread: super::super::super::Foundation::HANDLE, stackframe: *mut STACKFRAME64, contextrecord: *mut core::ffi::c_void, readmemoryroutine: Option, functiontableaccessroutine: Option, getmodulebaseroutine: Option, translateaddress: Option) -> super::super::super::Foundation::BOOL { - windows_targets::link!("dbghelp.dll" "system" fn StackWalk64(machinetype : u32, hprocess : super::super::super::Foundation:: HANDLE, hthread : super::super::super::Foundation:: HANDLE, stackframe : *mut STACKFRAME64, contextrecord : *mut core::ffi::c_void, readmemoryroutine : PREAD_PROCESS_MEMORY_ROUTINE64, functiontableaccessroutine : PFUNCTION_TABLE_ACCESS_ROUTINE64, getmodulebaseroutine : PGET_MODULE_BASE_ROUTINE64, translateaddress : PTRANSLATE_ADDRESS_ROUTINE64) -> super::super::super::Foundation:: BOOL); +pub unsafe fn StackWalk64(machinetype: u32, hprocess: super::super::super::Foundation::HANDLE, hthread: super::super::super::Foundation::HANDLE, stackframe: *mut STACKFRAME64, contextrecord: *mut core::ffi::c_void, readmemoryroutine: Option, functiontableaccessroutine: Option, getmodulebaseroutine: Option, translateaddress: Option) -> windows_core::BOOL { + windows_targets::link!("dbghelp.dll" "system" fn StackWalk64(machinetype : u32, hprocess : super::super::super::Foundation:: HANDLE, hthread : super::super::super::Foundation:: HANDLE, stackframe : *mut STACKFRAME64, contextrecord : *mut core::ffi::c_void, readmemoryroutine : PREAD_PROCESS_MEMORY_ROUTINE64, functiontableaccessroutine : PFUNCTION_TABLE_ACCESS_ROUTINE64, getmodulebaseroutine : PGET_MODULE_BASE_ROUTINE64, translateaddress : PTRANSLATE_ADDRESS_ROUTINE64) -> windows_core::BOOL); unsafe { StackWalk64(machinetype, hprocess, hthread, stackframe as _, contextrecord as _, readmemoryroutine.unwrap_or(core::mem::zeroed()) as _, functiontableaccessroutine.unwrap_or(core::mem::zeroed()) as _, getmodulebaseroutine.unwrap_or(core::mem::zeroed()) as _, translateaddress.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn StackWalkEx(machinetype: u32, hprocess: super::super::super::Foundation::HANDLE, hthread: super::super::super::Foundation::HANDLE, stackframe: *mut STACKFRAME_EX, contextrecord: *mut core::ffi::c_void, readmemoryroutine: Option, functiontableaccessroutine: Option, getmodulebaseroutine: Option, translateaddress: Option, flags: u32) -> super::super::super::Foundation::BOOL { - windows_targets::link!("dbghelp.dll" "system" fn StackWalkEx(machinetype : u32, hprocess : super::super::super::Foundation:: HANDLE, hthread : super::super::super::Foundation:: HANDLE, stackframe : *mut STACKFRAME_EX, contextrecord : *mut core::ffi::c_void, readmemoryroutine : PREAD_PROCESS_MEMORY_ROUTINE64, functiontableaccessroutine : PFUNCTION_TABLE_ACCESS_ROUTINE64, getmodulebaseroutine : PGET_MODULE_BASE_ROUTINE64, translateaddress : PTRANSLATE_ADDRESS_ROUTINE64, flags : u32) -> super::super::super::Foundation:: BOOL); +pub unsafe fn StackWalkEx(machinetype: u32, hprocess: super::super::super::Foundation::HANDLE, hthread: super::super::super::Foundation::HANDLE, stackframe: *mut STACKFRAME_EX, contextrecord: *mut core::ffi::c_void, readmemoryroutine: Option, functiontableaccessroutine: Option, getmodulebaseroutine: Option, translateaddress: Option, flags: u32) -> windows_core::BOOL { + windows_targets::link!("dbghelp.dll" "system" fn StackWalkEx(machinetype : u32, hprocess : super::super::super::Foundation:: HANDLE, hthread : super::super::super::Foundation:: HANDLE, stackframe : *mut STACKFRAME_EX, contextrecord : *mut core::ffi::c_void, readmemoryroutine : PREAD_PROCESS_MEMORY_ROUTINE64, functiontableaccessroutine : PFUNCTION_TABLE_ACCESS_ROUTINE64, getmodulebaseroutine : PGET_MODULE_BASE_ROUTINE64, translateaddress : PTRANSLATE_ADDRESS_ROUTINE64, flags : u32) -> windows_core::BOOL); unsafe { StackWalkEx(machinetype, hprocess, hthread, stackframe as _, contextrecord as _, readmemoryroutine.unwrap_or(core::mem::zeroed()) as _, functiontableaccessroutine.unwrap_or(core::mem::zeroed()) as _, getmodulebaseroutine.unwrap_or(core::mem::zeroed()) as _, translateaddress.unwrap_or(core::mem::zeroed()) as _, flags) } } #[inline] @@ -909,15 +909,15 @@ pub unsafe fn SymAddSourceStream(hprocess: super::super::super::Foundation:: where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymAddSourceStream(hprocess : super::super::super::Foundation:: HANDLE, base : u64, streamfile : windows_core::PCSTR, buffer : *const u8, size : usize) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymAddSourceStream(hprocess : super::super::super::Foundation:: HANDLE, base : u64, streamfile : windows_core::PCSTR, buffer : *const u8, size : usize) -> windows_core::BOOL); unsafe { SymAddSourceStream(hprocess, base, streamfile.param().abi(), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } } #[inline] -pub unsafe fn SymAddSourceStreamA(hprocess: super::super::super::Foundation::HANDLE, base: u64, streamfile: P2, buffer: Option<&[u8]>) -> super::super::super::Foundation::BOOL +pub unsafe fn SymAddSourceStreamA(hprocess: super::super::super::Foundation::HANDLE, base: u64, streamfile: P2, buffer: Option<&[u8]>) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymAddSourceStreamA(hprocess : super::super::super::Foundation:: HANDLE, base : u64, streamfile : windows_core::PCSTR, buffer : *const u8, size : usize) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymAddSourceStreamA(hprocess : super::super::super::Foundation:: HANDLE, base : u64, streamfile : windows_core::PCSTR, buffer : *const u8, size : usize) -> windows_core::BOOL); unsafe { SymAddSourceStreamA(hprocess, base, streamfile.param().abi(), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } } #[inline] @@ -925,7 +925,7 @@ pub unsafe fn SymAddSourceStreamW(hprocess: super::super::super::Foundation: where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymAddSourceStreamW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCWSTR, buffer : *const u8, size : usize) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymAddSourceStreamW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCWSTR, buffer : *const u8, size : usize) -> windows_core::BOOL); unsafe { SymAddSourceStreamW(hprocess, base, filespec.param().abi(), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } } #[inline] @@ -933,7 +933,7 @@ pub unsafe fn SymAddSymbol(hprocess: super::super::super::Foundation::HANDLE where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymAddSymbol(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, name : windows_core::PCSTR, address : u64, size : u32, flags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymAddSymbol(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, name : windows_core::PCSTR, address : u64, size : u32, flags : u32) -> windows_core::BOOL); unsafe { SymAddSymbol(hprocess, baseofdll, name.param().abi(), address, size, flags).ok() } } #[inline] @@ -941,7 +941,7 @@ pub unsafe fn SymAddSymbolW(hprocess: super::super::super::Foundation::HANDL where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymAddSymbolW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, name : windows_core::PCWSTR, address : u64, size : u32, flags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymAddSymbolW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, name : windows_core::PCWSTR, address : u64, size : u32, flags : u32) -> windows_core::BOOL); unsafe { SymAddSymbolW(hprocess, baseofdll, name.param().abi(), address, size, flags).ok() } } #[inline] @@ -951,7 +951,7 @@ pub unsafe fn SymAddrIncludeInlineTrace(hprocess: super::super::super::Foundatio } #[inline] pub unsafe fn SymCleanup(hprocess: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymCleanup(hprocess : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymCleanup(hprocess : super::super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SymCleanup(hprocess).ok() } } #[inline] @@ -964,7 +964,7 @@ pub unsafe fn SymDeleteSymbol(hprocess: super::super::super::Foundation::HAN where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymDeleteSymbol(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, name : windows_core::PCSTR, address : u64, flags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymDeleteSymbol(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, name : windows_core::PCSTR, address : u64, flags : u32) -> windows_core::BOOL); unsafe { SymDeleteSymbol(hprocess, baseofdll, name.param().abi(), address, flags).ok() } } #[inline] @@ -972,7 +972,7 @@ pub unsafe fn SymDeleteSymbolW(hprocess: super::super::super::Foundation::HA where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymDeleteSymbolW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, name : windows_core::PCWSTR, address : u64, flags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymDeleteSymbolW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, name : windows_core::PCWSTR, address : u64, flags : u32) -> windows_core::BOOL); unsafe { SymDeleteSymbolW(hprocess, baseofdll, name.param().abi(), address, flags).ok() } } #[inline] @@ -981,7 +981,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumLines(hprocess : super::super::super::Foundation:: HANDLE, base : u64, obj : windows_core::PCSTR, file : windows_core::PCSTR, enumlinescallback : PSYM_ENUMLINES_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumLines(hprocess : super::super::super::Foundation:: HANDLE, base : u64, obj : windows_core::PCSTR, file : windows_core::PCSTR, enumlinescallback : PSYM_ENUMLINES_CALLBACK, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumLines(hprocess, base, obj.param().abi(), file.param().abi(), enumlinescallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -990,17 +990,17 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumLinesW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, obj : windows_core::PCWSTR, file : windows_core::PCWSTR, enumlinescallback : PSYM_ENUMLINES_CALLBACKW, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumLinesW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, obj : windows_core::PCWSTR, file : windows_core::PCWSTR, enumlinescallback : PSYM_ENUMLINES_CALLBACKW, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumLinesW(hprocess, base, obj.param().abi(), file.param().abi(), enumlinescallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SymEnumProcesses(enumprocessescallback: PSYM_ENUMPROCESSES_CALLBACK, usercontext: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumProcesses(enumprocessescallback : PSYM_ENUMPROCESSES_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumProcesses(enumprocessescallback : PSYM_ENUMPROCESSES_CALLBACK, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumProcesses(enumprocessescallback, usercontext).ok() } } #[inline] pub unsafe fn SymEnumSourceFileTokens(hprocess: super::super::super::Foundation::HANDLE, base: u64, callback: PENUMSOURCEFILETOKENSCALLBACK) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumSourceFileTokens(hprocess : super::super::super::Foundation:: HANDLE, base : u64, callback : PENUMSOURCEFILETOKENSCALLBACK) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumSourceFileTokens(hprocess : super::super::super::Foundation:: HANDLE, base : u64, callback : PENUMSOURCEFILETOKENSCALLBACK) -> windows_core::BOOL); unsafe { SymEnumSourceFileTokens(hprocess, base, callback).ok() } } #[inline] @@ -1008,7 +1008,7 @@ pub unsafe fn SymEnumSourceFiles(hprocess: super::super::super::Foundation:: where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumSourceFiles(hprocess : super::super::super::Foundation:: HANDLE, modbase : u64, mask : windows_core::PCSTR, cbsrcfiles : PSYM_ENUMSOURCEFILES_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumSourceFiles(hprocess : super::super::super::Foundation:: HANDLE, modbase : u64, mask : windows_core::PCSTR, cbsrcfiles : PSYM_ENUMSOURCEFILES_CALLBACK, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumSourceFiles(hprocess, modbase, mask.param().abi(), cbsrcfiles, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1016,7 +1016,7 @@ pub unsafe fn SymEnumSourceFilesW(hprocess: super::super::super::Foundation: where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumSourceFilesW(hprocess : super::super::super::Foundation:: HANDLE, modbase : u64, mask : windows_core::PCWSTR, cbsrcfiles : PSYM_ENUMSOURCEFILES_CALLBACKW, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumSourceFilesW(hprocess : super::super::super::Foundation:: HANDLE, modbase : u64, mask : windows_core::PCWSTR, cbsrcfiles : PSYM_ENUMSOURCEFILES_CALLBACKW, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumSourceFilesW(hprocess, modbase, mask.param().abi(), cbsrcfiles, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1025,7 +1025,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumSourceLines(hprocess : super::super::super::Foundation:: HANDLE, base : u64, obj : windows_core::PCSTR, file : windows_core::PCSTR, line : u32, flags : u32, enumlinescallback : PSYM_ENUMLINES_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumSourceLines(hprocess : super::super::super::Foundation:: HANDLE, base : u64, obj : windows_core::PCSTR, file : windows_core::PCSTR, line : u32, flags : u32, enumlinescallback : PSYM_ENUMLINES_CALLBACK, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumSourceLines(hprocess, base, obj.param().abi(), file.param().abi(), line.unwrap_or(core::mem::zeroed()) as _, flags, enumlinescallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1034,12 +1034,12 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumSourceLinesW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, obj : windows_core::PCWSTR, file : windows_core::PCWSTR, line : u32, flags : u32, enumlinescallback : PSYM_ENUMLINES_CALLBACKW, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumSourceLinesW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, obj : windows_core::PCWSTR, file : windows_core::PCWSTR, line : u32, flags : u32, enumlinescallback : PSYM_ENUMLINES_CALLBACKW, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumSourceLinesW(hprocess, base, obj.param().abi(), file.param().abi(), line.unwrap_or(core::mem::zeroed()) as _, flags, enumlinescallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn SymEnumSym(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> super::super::super::Foundation::BOOL { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumSym(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); +pub unsafe fn SymEnumSym(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("dbghelp.dll" "system" fn SymEnumSym(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumSym(hprocess, baseofdll, enumsymbolscallback, usercontext.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1047,7 +1047,7 @@ pub unsafe fn SymEnumSymbols(hprocess: super::super::super::Foundation::HAND where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumSymbols(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, mask : windows_core::PCSTR, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumSymbols(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, mask : windows_core::PCSTR, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumSymbols(hprocess, baseofdll, mask.param().abi(), enumsymbolscallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1055,7 +1055,7 @@ pub unsafe fn SymEnumSymbolsEx(hprocess: super::super::super::Foundation::HA where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumSymbolsEx(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, mask : windows_core::PCSTR, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void, options : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumSymbolsEx(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, mask : windows_core::PCSTR, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void, options : u32) -> windows_core::BOOL); unsafe { SymEnumSymbolsEx(hprocess, baseofdll, mask.param().abi(), enumsymbolscallback, usercontext.unwrap_or(core::mem::zeroed()) as _, options).ok() } } #[inline] @@ -1063,17 +1063,17 @@ pub unsafe fn SymEnumSymbolsExW(hprocess: super::super::super::Foundation::H where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumSymbolsExW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, mask : windows_core::PCWSTR, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void, options : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumSymbolsExW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, mask : windows_core::PCWSTR, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void, options : u32) -> windows_core::BOOL); unsafe { SymEnumSymbolsExW(hprocess, baseofdll, mask.param().abi(), enumsymbolscallback, usercontext.unwrap_or(core::mem::zeroed()) as _, options).ok() } } #[inline] pub unsafe fn SymEnumSymbolsForAddr(hprocess: super::super::super::Foundation::HANDLE, address: u64, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumSymbolsForAddr(hprocess : super::super::super::Foundation:: HANDLE, address : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumSymbolsForAddr(hprocess : super::super::super::Foundation:: HANDLE, address : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumSymbolsForAddr(hprocess, address, enumsymbolscallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SymEnumSymbolsForAddrW(hprocess: super::super::super::Foundation::HANDLE, address: u64, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumSymbolsForAddrW(hprocess : super::super::super::Foundation:: HANDLE, address : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumSymbolsForAddrW(hprocess : super::super::super::Foundation:: HANDLE, address : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumSymbolsForAddrW(hprocess, address, enumsymbolscallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1081,12 +1081,12 @@ pub unsafe fn SymEnumSymbolsW(hprocess: super::super::super::Foundation::HAN where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumSymbolsW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, mask : windows_core::PCWSTR, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumSymbolsW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, mask : windows_core::PCWSTR, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumSymbolsW(hprocess, baseofdll, mask.param().abi(), enumsymbolscallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SymEnumTypes(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumTypes(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumTypes(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumTypes(hprocess, baseofdll, enumsymbolscallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1094,7 +1094,7 @@ pub unsafe fn SymEnumTypesByName(hprocess: super::super::super::Foundation:: where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumTypesByName(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, mask : windows_core::PCSTR, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumTypesByName(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, mask : windows_core::PCSTR, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumTypesByName(hprocess, baseofdll, mask.param().abi(), enumsymbolscallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1102,50 +1102,50 @@ pub unsafe fn SymEnumTypesByNameW(hprocess: super::super::super::Foundation: where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumTypesByNameW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, mask : windows_core::PCWSTR, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumTypesByNameW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, mask : windows_core::PCWSTR, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumTypesByNameW(hprocess, baseofdll, mask.param().abi(), enumsymbolscallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SymEnumTypesW(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, enumsymbolscallback: PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumTypesW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumTypesW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumTypesW(hprocess, baseofdll, enumsymbolscallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymEnumerateModules(hprocess: super::super::super::Foundation::HANDLE, enummodulescallback: PSYM_ENUMMODULES_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateModules(hprocess : super::super::super::Foundation:: HANDLE, enummodulescallback : PSYM_ENUMMODULES_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateModules(hprocess : super::super::super::Foundation:: HANDLE, enummodulescallback : PSYM_ENUMMODULES_CALLBACK, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumerateModules(hprocess, enummodulescallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SymEnumerateModules64(hprocess: super::super::super::Foundation::HANDLE, enummodulescallback: PSYM_ENUMMODULES_CALLBACK64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateModules64(hprocess : super::super::super::Foundation:: HANDLE, enummodulescallback : PSYM_ENUMMODULES_CALLBACK64, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateModules64(hprocess : super::super::super::Foundation:: HANDLE, enummodulescallback : PSYM_ENUMMODULES_CALLBACK64, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumerateModules64(hprocess, enummodulescallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SymEnumerateModulesW64(hprocess: super::super::super::Foundation::HANDLE, enummodulescallback: PSYM_ENUMMODULES_CALLBACKW64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateModulesW64(hprocess : super::super::super::Foundation:: HANDLE, enummodulescallback : PSYM_ENUMMODULES_CALLBACKW64, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateModulesW64(hprocess : super::super::super::Foundation:: HANDLE, enummodulescallback : PSYM_ENUMMODULES_CALLBACKW64, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumerateModulesW64(hprocess, enummodulescallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymEnumerateSymbols(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u32, enumsymbolscallback: PSYM_ENUMSYMBOLS_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateSymbols(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u32, enumsymbolscallback : PSYM_ENUMSYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateSymbols(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u32, enumsymbolscallback : PSYM_ENUMSYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumerateSymbols(hprocess, baseofdll, enumsymbolscallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SymEnumerateSymbols64(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, enumsymbolscallback: PSYM_ENUMSYMBOLS_CALLBACK64, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateSymbols64(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, enumsymbolscallback : PSYM_ENUMSYMBOLS_CALLBACK64, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateSymbols64(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, enumsymbolscallback : PSYM_ENUMSYMBOLS_CALLBACK64, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumerateSymbols64(hprocess, baseofdll, enumsymbolscallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymEnumerateSymbolsW(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u32, enumsymbolscallback: PSYM_ENUMSYMBOLS_CALLBACKW, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateSymbolsW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u32, enumsymbolscallback : PSYM_ENUMSYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateSymbolsW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u32, enumsymbolscallback : PSYM_ENUMSYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumerateSymbolsW(hprocess, baseofdll, enumsymbolscallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SymEnumerateSymbolsW64(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, enumsymbolscallback: PSYM_ENUMSYMBOLS_CALLBACK64W, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateSymbolsW64(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, enumsymbolscallback : PSYM_ENUMSYMBOLS_CALLBACK64W, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymEnumerateSymbolsW64(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, enumsymbolscallback : PSYM_ENUMSYMBOLS_CALLBACK64W, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymEnumerateSymbolsW64(hprocess, baseofdll, enumsymbolscallback, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1190,7 +1190,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymFindFileInPath(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PCSTR, filename : windows_core::PCSTR, id : *const core::ffi::c_void, two : u32, three : u32, flags : SYM_FIND_ID_OPTION, foundfile : windows_core::PSTR, callback : PFINDFILEINPATHCALLBACK, context : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymFindFileInPath(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PCSTR, filename : windows_core::PCSTR, id : *const core::ffi::c_void, two : u32, three : u32, flags : SYM_FIND_ID_OPTION, foundfile : windows_core::PSTR, callback : PFINDFILEINPATHCALLBACK, context : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymFindFileInPath(hprocess, searchpatha.param().abi(), filename.param().abi(), id.unwrap_or(core::mem::zeroed()) as _, two, three, flags, core::mem::transmute(foundfile), callback.unwrap_or(core::mem::zeroed()) as _, context.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1199,37 +1199,37 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymFindFileInPathW(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PCWSTR, filename : windows_core::PCWSTR, id : *const core::ffi::c_void, two : u32, three : u32, flags : SYM_FIND_ID_OPTION, foundfile : windows_core::PWSTR, callback : PFINDFILEINPATHCALLBACKW, context : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymFindFileInPathW(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PCWSTR, filename : windows_core::PCWSTR, id : *const core::ffi::c_void, two : u32, three : u32, flags : SYM_FIND_ID_OPTION, foundfile : windows_core::PWSTR, callback : PFINDFILEINPATHCALLBACKW, context : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymFindFileInPathW(hprocess, searchpatha.param().abi(), filename.param().abi(), id.unwrap_or(core::mem::zeroed()) as _, two, three, flags, core::mem::transmute(foundfile), callback.unwrap_or(core::mem::zeroed()) as _, context.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SymFromAddr(hprocess: super::super::super::Foundation::HANDLE, address: u64, displacement: Option<*mut u64>, symbol: *mut SYMBOL_INFO) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymFromAddr(hprocess : super::super::super::Foundation:: HANDLE, address : u64, displacement : *mut u64, symbol : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymFromAddr(hprocess : super::super::super::Foundation:: HANDLE, address : u64, displacement : *mut u64, symbol : *mut SYMBOL_INFO) -> windows_core::BOOL); unsafe { SymFromAddr(hprocess, address, displacement.unwrap_or(core::mem::zeroed()) as _, symbol as _).ok() } } #[inline] pub unsafe fn SymFromAddrW(hprocess: super::super::super::Foundation::HANDLE, address: u64, displacement: Option<*mut u64>, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymFromAddrW(hprocess : super::super::super::Foundation:: HANDLE, address : u64, displacement : *mut u64, symbol : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymFromAddrW(hprocess : super::super::super::Foundation:: HANDLE, address : u64, displacement : *mut u64, symbol : *mut SYMBOL_INFOW) -> windows_core::BOOL); unsafe { SymFromAddrW(hprocess, address, displacement.unwrap_or(core::mem::zeroed()) as _, symbol as _).ok() } } #[inline] pub unsafe fn SymFromIndex(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, index: u32, symbol: *mut SYMBOL_INFO) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymFromIndex(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32, symbol : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymFromIndex(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32, symbol : *mut SYMBOL_INFO) -> windows_core::BOOL); unsafe { SymFromIndex(hprocess, baseofdll, index, symbol as _).ok() } } #[inline] pub unsafe fn SymFromIndexW(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, index: u32, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymFromIndexW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32, symbol : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymFromIndexW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32, symbol : *mut SYMBOL_INFOW) -> windows_core::BOOL); unsafe { SymFromIndexW(hprocess, baseofdll, index, symbol as _).ok() } } #[inline] pub unsafe fn SymFromInlineContext(hprocess: super::super::super::Foundation::HANDLE, address: u64, inlinecontext: u32, displacement: Option<*mut u64>, symbol: *mut SYMBOL_INFO) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymFromInlineContext(hprocess : super::super::super::Foundation:: HANDLE, address : u64, inlinecontext : u32, displacement : *mut u64, symbol : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymFromInlineContext(hprocess : super::super::super::Foundation:: HANDLE, address : u64, inlinecontext : u32, displacement : *mut u64, symbol : *mut SYMBOL_INFO) -> windows_core::BOOL); unsafe { SymFromInlineContext(hprocess, address, inlinecontext, displacement.unwrap_or(core::mem::zeroed()) as _, symbol as _).ok() } } #[inline] pub unsafe fn SymFromInlineContextW(hprocess: super::super::super::Foundation::HANDLE, address: u64, inlinecontext: u32, displacement: Option<*mut u64>, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymFromInlineContextW(hprocess : super::super::super::Foundation:: HANDLE, address : u64, inlinecontext : u32, displacement : *mut u64, symbol : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymFromInlineContextW(hprocess : super::super::super::Foundation:: HANDLE, address : u64, inlinecontext : u32, displacement : *mut u64, symbol : *mut SYMBOL_INFOW) -> windows_core::BOOL); unsafe { SymFromInlineContextW(hprocess, address, inlinecontext, displacement.unwrap_or(core::mem::zeroed()) as _, symbol as _).ok() } } #[inline] @@ -1237,7 +1237,7 @@ pub unsafe fn SymFromName(hprocess: super::super::super::Foundation::HANDLE, where P1: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymFromName(hprocess : super::super::super::Foundation:: HANDLE, name : windows_core::PCSTR, symbol : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymFromName(hprocess : super::super::super::Foundation:: HANDLE, name : windows_core::PCSTR, symbol : *mut SYMBOL_INFO) -> windows_core::BOOL); unsafe { SymFromName(hprocess, name.param().abi(), symbol as _).ok() } } #[inline] @@ -1245,17 +1245,17 @@ pub unsafe fn SymFromNameW(hprocess: super::super::super::Foundation::HANDLE where P1: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymFromNameW(hprocess : super::super::super::Foundation:: HANDLE, name : windows_core::PCWSTR, symbol : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymFromNameW(hprocess : super::super::super::Foundation:: HANDLE, name : windows_core::PCWSTR, symbol : *mut SYMBOL_INFOW) -> windows_core::BOOL); unsafe { SymFromNameW(hprocess, name.param().abi(), symbol as _).ok() } } #[inline] pub unsafe fn SymFromToken(hprocess: super::super::super::Foundation::HANDLE, base: u64, token: u32, symbol: *mut SYMBOL_INFO) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymFromToken(hprocess : super::super::super::Foundation:: HANDLE, base : u64, token : u32, symbol : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymFromToken(hprocess : super::super::super::Foundation:: HANDLE, base : u64, token : u32, symbol : *mut SYMBOL_INFO) -> windows_core::BOOL); unsafe { SymFromToken(hprocess, base, token, symbol as _).ok() } } #[inline] pub unsafe fn SymFromTokenW(hprocess: super::super::super::Foundation::HANDLE, base: u64, token: u32, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymFromTokenW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, token : u32, symbol : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymFromTokenW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, token : u32, symbol : *mut SYMBOL_INFOW) -> windows_core::BOOL); unsafe { SymFromTokenW(hprocess, base, token, symbol as _).ok() } } #[cfg(target_arch = "x86")] @@ -1275,8 +1275,8 @@ pub unsafe fn SymFunctionTableAccess64AccessRoutines(hprocess: super::super::sup unsafe { SymFunctionTableAccess64AccessRoutines(hprocess, addrbase, readmemoryroutine.unwrap_or(core::mem::zeroed()) as _, getmodulebaseroutine.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn SymGetExtendedOption(option: IMAGEHLP_EXTENDED_OPTIONS) -> super::super::super::Foundation::BOOL { - windows_targets::link!("dbghelp.dll" "system" fn SymGetExtendedOption(option : IMAGEHLP_EXTENDED_OPTIONS) -> super::super::super::Foundation:: BOOL); +pub unsafe fn SymGetExtendedOption(option: IMAGEHLP_EXTENDED_OPTIONS) -> windows_core::BOOL { + windows_targets::link!("dbghelp.dll" "system" fn SymGetExtendedOption(option : IMAGEHLP_EXTENDED_OPTIONS) -> windows_core::BOOL); unsafe { SymGetExtendedOption(option) } } #[inline] @@ -1301,27 +1301,27 @@ pub unsafe fn SymGetHomeDirectoryW(r#type: IMAGEHLP_HD_TYPE, dir: &mut [u16]) -> #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetLineFromAddr(hprocess: super::super::super::Foundation::HANDLE, dwaddr: u32, pdwdisplacement: *mut u32, line: *mut IMAGEHLP_LINE) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromAddr(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u32, pdwdisplacement : *mut u32, line : *mut IMAGEHLP_LINE) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromAddr(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u32, pdwdisplacement : *mut u32, line : *mut IMAGEHLP_LINE) -> windows_core::BOOL); unsafe { SymGetLineFromAddr(hprocess, dwaddr, pdwdisplacement as _, line as _).ok() } } #[inline] pub unsafe fn SymGetLineFromAddr64(hprocess: super::super::super::Foundation::HANDLE, qwaddr: u64, pdwdisplacement: *mut u32, line64: *mut IMAGEHLP_LINE64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromAddr64(hprocess : super::super::super::Foundation:: HANDLE, qwaddr : u64, pdwdisplacement : *mut u32, line64 : *mut IMAGEHLP_LINE64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromAddr64(hprocess : super::super::super::Foundation:: HANDLE, qwaddr : u64, pdwdisplacement : *mut u32, line64 : *mut IMAGEHLP_LINE64) -> windows_core::BOOL); unsafe { SymGetLineFromAddr64(hprocess, qwaddr, pdwdisplacement as _, line64 as _).ok() } } #[inline] pub unsafe fn SymGetLineFromAddrW64(hprocess: super::super::super::Foundation::HANDLE, dwaddr: u64, pdwdisplacement: *mut u32, line: *mut IMAGEHLP_LINEW64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromAddrW64(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u64, pdwdisplacement : *mut u32, line : *mut IMAGEHLP_LINEW64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromAddrW64(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u64, pdwdisplacement : *mut u32, line : *mut IMAGEHLP_LINEW64) -> windows_core::BOOL); unsafe { SymGetLineFromAddrW64(hprocess, dwaddr, pdwdisplacement as _, line as _).ok() } } #[inline] pub unsafe fn SymGetLineFromInlineContext(hprocess: super::super::super::Foundation::HANDLE, qwaddr: u64, inlinecontext: u32, qwmodulebaseaddress: Option, pdwdisplacement: *mut u32, line64: *mut IMAGEHLP_LINE64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromInlineContext(hprocess : super::super::super::Foundation:: HANDLE, qwaddr : u64, inlinecontext : u32, qwmodulebaseaddress : u64, pdwdisplacement : *mut u32, line64 : *mut IMAGEHLP_LINE64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromInlineContext(hprocess : super::super::super::Foundation:: HANDLE, qwaddr : u64, inlinecontext : u32, qwmodulebaseaddress : u64, pdwdisplacement : *mut u32, line64 : *mut IMAGEHLP_LINE64) -> windows_core::BOOL); unsafe { SymGetLineFromInlineContext(hprocess, qwaddr, inlinecontext, qwmodulebaseaddress.unwrap_or(core::mem::zeroed()) as _, pdwdisplacement as _, line64 as _).ok() } } #[inline] pub unsafe fn SymGetLineFromInlineContextW(hprocess: super::super::super::Foundation::HANDLE, dwaddr: u64, inlinecontext: u32, qwmodulebaseaddress: Option, pdwdisplacement: *mut u32, line: *mut IMAGEHLP_LINEW64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromInlineContextW(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u64, inlinecontext : u32, qwmodulebaseaddress : u64, pdwdisplacement : *mut u32, line : *mut IMAGEHLP_LINEW64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromInlineContextW(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u64, inlinecontext : u32, qwmodulebaseaddress : u64, pdwdisplacement : *mut u32, line : *mut IMAGEHLP_LINEW64) -> windows_core::BOOL); unsafe { SymGetLineFromInlineContextW(hprocess, dwaddr, inlinecontext, qwmodulebaseaddress.unwrap_or(core::mem::zeroed()) as _, pdwdisplacement as _, line as _).ok() } } #[cfg(target_arch = "x86")] @@ -1331,7 +1331,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromName(hprocess : super::super::super::Foundation:: HANDLE, modulename : windows_core::PCSTR, filename : windows_core::PCSTR, dwlinenumber : u32, pldisplacement : *mut i32, line : *mut IMAGEHLP_LINE) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromName(hprocess : super::super::super::Foundation:: HANDLE, modulename : windows_core::PCSTR, filename : windows_core::PCSTR, dwlinenumber : u32, pldisplacement : *mut i32, line : *mut IMAGEHLP_LINE) -> windows_core::BOOL); unsafe { SymGetLineFromName(hprocess, modulename.param().abi(), filename.param().abi(), dwlinenumber, pldisplacement as _, line as _).ok() } } #[inline] @@ -1340,7 +1340,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromName64(hprocess : super::super::super::Foundation:: HANDLE, modulename : windows_core::PCSTR, filename : windows_core::PCSTR, dwlinenumber : u32, pldisplacement : *mut i32, line : *mut IMAGEHLP_LINE64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromName64(hprocess : super::super::super::Foundation:: HANDLE, modulename : windows_core::PCSTR, filename : windows_core::PCSTR, dwlinenumber : u32, pldisplacement : *mut i32, line : *mut IMAGEHLP_LINE64) -> windows_core::BOOL); unsafe { SymGetLineFromName64(hprocess, modulename.param().abi(), filename.param().abi(), dwlinenumber, pldisplacement as _, line as _).ok() } } #[inline] @@ -1349,39 +1349,39 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromNameW64(hprocess : super::super::super::Foundation:: HANDLE, modulename : windows_core::PCWSTR, filename : windows_core::PCWSTR, dwlinenumber : u32, pldisplacement : *mut i32, line : *mut IMAGEHLP_LINEW64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetLineFromNameW64(hprocess : super::super::super::Foundation:: HANDLE, modulename : windows_core::PCWSTR, filename : windows_core::PCWSTR, dwlinenumber : u32, pldisplacement : *mut i32, line : *mut IMAGEHLP_LINEW64) -> windows_core::BOOL); unsafe { SymGetLineFromNameW64(hprocess, modulename.param().abi(), filename.param().abi(), dwlinenumber, pldisplacement as _, line as _).ok() } } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetLineNext(hprocess: super::super::super::Foundation::HANDLE, line: *mut IMAGEHLP_LINE) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetLineNext(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINE) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetLineNext(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINE) -> windows_core::BOOL); unsafe { SymGetLineNext(hprocess, line as _).ok() } } #[inline] pub unsafe fn SymGetLineNext64(hprocess: super::super::super::Foundation::HANDLE, line: *mut IMAGEHLP_LINE64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetLineNext64(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINE64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetLineNext64(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINE64) -> windows_core::BOOL); unsafe { SymGetLineNext64(hprocess, line as _).ok() } } #[inline] pub unsafe fn SymGetLineNextW64(hprocess: super::super::super::Foundation::HANDLE, line: *mut IMAGEHLP_LINEW64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetLineNextW64(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINEW64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetLineNextW64(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINEW64) -> windows_core::BOOL); unsafe { SymGetLineNextW64(hprocess, line as _).ok() } } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetLinePrev(hprocess: super::super::super::Foundation::HANDLE, line: *mut IMAGEHLP_LINE) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetLinePrev(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINE) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetLinePrev(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINE) -> windows_core::BOOL); unsafe { SymGetLinePrev(hprocess, line as _).ok() } } #[inline] pub unsafe fn SymGetLinePrev64(hprocess: super::super::super::Foundation::HANDLE, line: *mut IMAGEHLP_LINE64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetLinePrev64(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINE64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetLinePrev64(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINE64) -> windows_core::BOOL); unsafe { SymGetLinePrev64(hprocess, line as _).ok() } } #[inline] pub unsafe fn SymGetLinePrevW64(hprocess: super::super::super::Foundation::HANDLE, line: *mut IMAGEHLP_LINEW64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetLinePrevW64(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINEW64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetLinePrevW64(hprocess : super::super::super::Foundation:: HANDLE, line : *mut IMAGEHLP_LINEW64) -> windows_core::BOOL); unsafe { SymGetLinePrevW64(hprocess, line as _).ok() } } #[cfg(target_arch = "x86")] @@ -1398,28 +1398,28 @@ pub unsafe fn SymGetModuleBase64(hprocess: super::super::super::Foundation::HAND #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetModuleInfo(hprocess: super::super::super::Foundation::HANDLE, dwaddr: u32, moduleinfo: *mut IMAGEHLP_MODULE) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetModuleInfo(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u32, moduleinfo : *mut IMAGEHLP_MODULE) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetModuleInfo(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u32, moduleinfo : *mut IMAGEHLP_MODULE) -> windows_core::BOOL); unsafe { SymGetModuleInfo(hprocess, dwaddr, moduleinfo as _).ok() } } #[inline] pub unsafe fn SymGetModuleInfo64(hprocess: super::super::super::Foundation::HANDLE, qwaddr: u64, moduleinfo: *mut IMAGEHLP_MODULE64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetModuleInfo64(hprocess : super::super::super::Foundation:: HANDLE, qwaddr : u64, moduleinfo : *mut IMAGEHLP_MODULE64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetModuleInfo64(hprocess : super::super::super::Foundation:: HANDLE, qwaddr : u64, moduleinfo : *mut IMAGEHLP_MODULE64) -> windows_core::BOOL); unsafe { SymGetModuleInfo64(hprocess, qwaddr, moduleinfo as _).ok() } } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetModuleInfoW(hprocess: super::super::super::Foundation::HANDLE, dwaddr: u32, moduleinfo: *mut IMAGEHLP_MODULEW) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetModuleInfoW(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u32, moduleinfo : *mut IMAGEHLP_MODULEW) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetModuleInfoW(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u32, moduleinfo : *mut IMAGEHLP_MODULEW) -> windows_core::BOOL); unsafe { SymGetModuleInfoW(hprocess, dwaddr, moduleinfo as _).ok() } } #[inline] pub unsafe fn SymGetModuleInfoW64(hprocess: super::super::super::Foundation::HANDLE, qwaddr: u64, moduleinfo: *mut IMAGEHLP_MODULEW64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetModuleInfoW64(hprocess : super::super::super::Foundation:: HANDLE, qwaddr : u64, moduleinfo : *mut IMAGEHLP_MODULEW64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetModuleInfoW64(hprocess : super::super::super::Foundation:: HANDLE, qwaddr : u64, moduleinfo : *mut IMAGEHLP_MODULEW64) -> windows_core::BOOL); unsafe { SymGetModuleInfoW64(hprocess, qwaddr, moduleinfo as _).ok() } } #[inline] pub unsafe fn SymGetOmaps(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, omapto: *mut *mut OMAP, comapto: *mut u64, omapfrom: *mut *mut OMAP, comapfrom: *mut u64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetOmaps(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, omapto : *mut *mut OMAP, comapto : *mut u64, omapfrom : *mut *mut OMAP, comapfrom : *mut u64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetOmaps(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, omapto : *mut *mut OMAP, comapto : *mut u64, omapfrom : *mut *mut OMAP, comapfrom : *mut u64) -> windows_core::BOOL); unsafe { SymGetOmaps(hprocess, baseofdll, omapto as _, comapto as _, omapfrom as _, comapfrom as _).ok() } } #[inline] @@ -1429,22 +1429,22 @@ pub unsafe fn SymGetOptions() -> u32 { } #[inline] pub unsafe fn SymGetScope(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, index: u32, symbol: *mut SYMBOL_INFO) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetScope(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32, symbol : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetScope(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32, symbol : *mut SYMBOL_INFO) -> windows_core::BOOL); unsafe { SymGetScope(hprocess, baseofdll, index, symbol as _).ok() } } #[inline] pub unsafe fn SymGetScopeW(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, index: u32, symbol: *mut SYMBOL_INFOW) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetScopeW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32, symbol : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetScopeW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32, symbol : *mut SYMBOL_INFOW) -> windows_core::BOOL); unsafe { SymGetScopeW(hprocess, baseofdll, index, symbol as _).ok() } } #[inline] pub unsafe fn SymGetSearchPath(hprocess: super::super::super::Foundation::HANDLE, searchpatha: &mut [u8]) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSearchPath(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PSTR, searchpathlength : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSearchPath(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PSTR, searchpathlength : u32) -> windows_core::BOOL); unsafe { SymGetSearchPath(hprocess, core::mem::transmute(searchpatha.as_ptr()), searchpatha.len().try_into().unwrap()).ok() } } #[inline] pub unsafe fn SymGetSearchPathW(hprocess: super::super::super::Foundation::HANDLE, searchpatha: &mut [u16]) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSearchPathW(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PWSTR, searchpathlength : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSearchPathW(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PWSTR, searchpathlength : u32) -> windows_core::BOOL); unsafe { SymGetSearchPathW(hprocess, core::mem::transmute(searchpatha.as_ptr()), searchpatha.len().try_into().unwrap()).ok() } } #[inline] @@ -1453,7 +1453,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFile(hprocess : super::super::super::Foundation:: HANDLE, base : u64, params : windows_core::PCSTR, filespec : windows_core::PCSTR, filepath : windows_core::PSTR, size : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFile(hprocess : super::super::super::Foundation:: HANDLE, base : u64, params : windows_core::PCSTR, filespec : windows_core::PCSTR, filepath : windows_core::PSTR, size : u32) -> windows_core::BOOL); unsafe { SymGetSourceFile(hprocess, base, params.param().abi(), filespec.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() } } #[inline] @@ -1461,7 +1461,7 @@ pub unsafe fn SymGetSourceFileChecksum(hprocess: super::super::super::Founda where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileChecksum(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCSTR, pchecksumtype : *mut u32, pchecksum : *mut u8, checksumsize : u32, pactualbyteswritten : *mut u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileChecksum(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCSTR, pchecksumtype : *mut u32, pchecksum : *mut u8, checksumsize : u32, pactualbyteswritten : *mut u32) -> windows_core::BOOL); unsafe { SymGetSourceFileChecksum(hprocess, base, filespec.param().abi(), pchecksumtype as _, core::mem::transmute(pchecksum.as_ptr()), pchecksum.len().try_into().unwrap(), pactualbyteswritten as _).ok() } } #[inline] @@ -1469,7 +1469,7 @@ pub unsafe fn SymGetSourceFileChecksumW(hprocess: super::super::super::Found where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileChecksumW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCWSTR, pchecksumtype : *mut u32, pchecksum : *mut u8, checksumsize : u32, pactualbyteswritten : *mut u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileChecksumW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCWSTR, pchecksumtype : *mut u32, pchecksum : *mut u8, checksumsize : u32, pactualbyteswritten : *mut u32) -> windows_core::BOOL); unsafe { SymGetSourceFileChecksumW(hprocess, base, filespec.param().abi(), pchecksumtype as _, core::mem::transmute(pchecksum.as_ptr()), pchecksum.len().try_into().unwrap(), pactualbyteswritten as _).ok() } } #[inline] @@ -1477,25 +1477,25 @@ pub unsafe fn SymGetSourceFileFromToken(hprocess: super::super::super::Found where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileFromToken(hprocess : super::super::super::Foundation:: HANDLE, token : *const core::ffi::c_void, params : windows_core::PCSTR, filepath : windows_core::PSTR, size : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileFromToken(hprocess : super::super::super::Foundation:: HANDLE, token : *const core::ffi::c_void, params : windows_core::PCSTR, filepath : windows_core::PSTR, size : u32) -> windows_core::BOOL); unsafe { SymGetSourceFileFromToken(hprocess, token, params.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() } } #[inline] -pub unsafe fn SymGetSourceFileFromTokenByTokenName(hprocess: super::super::super::Foundation::HANDLE, token: *const core::ffi::c_void, tokenname: P2, params: P3, filepath: &mut [u8]) -> super::super::super::Foundation::BOOL +pub unsafe fn SymGetSourceFileFromTokenByTokenName(hprocess: super::super::super::Foundation::HANDLE, token: *const core::ffi::c_void, tokenname: P2, params: P3, filepath: &mut [u8]) -> windows_core::BOOL where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileFromTokenByTokenName(hprocess : super::super::super::Foundation:: HANDLE, token : *const core::ffi::c_void, tokenname : windows_core::PCSTR, params : windows_core::PCSTR, filepath : windows_core::PSTR, size : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileFromTokenByTokenName(hprocess : super::super::super::Foundation:: HANDLE, token : *const core::ffi::c_void, tokenname : windows_core::PCSTR, params : windows_core::PCSTR, filepath : windows_core::PSTR, size : u32) -> windows_core::BOOL); unsafe { SymGetSourceFileFromTokenByTokenName(hprocess, token, tokenname.param().abi(), params.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()) } } #[inline] -pub unsafe fn SymGetSourceFileFromTokenByTokenNameW(hprocess: super::super::super::Foundation::HANDLE, token: *const core::ffi::c_void, tokenname: P2, params: P3, filepath: &mut [u16]) -> super::super::super::Foundation::BOOL +pub unsafe fn SymGetSourceFileFromTokenByTokenNameW(hprocess: super::super::super::Foundation::HANDLE, token: *const core::ffi::c_void, tokenname: P2, params: P3, filepath: &mut [u16]) -> windows_core::BOOL where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileFromTokenByTokenNameW(hprocess : super::super::super::Foundation:: HANDLE, token : *const core::ffi::c_void, tokenname : windows_core::PCWSTR, params : windows_core::PCWSTR, filepath : windows_core::PWSTR, size : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileFromTokenByTokenNameW(hprocess : super::super::super::Foundation:: HANDLE, token : *const core::ffi::c_void, tokenname : windows_core::PCWSTR, params : windows_core::PCWSTR, filepath : windows_core::PWSTR, size : u32) -> windows_core::BOOL); unsafe { SymGetSourceFileFromTokenByTokenNameW(hprocess, token, tokenname.param().abi(), params.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()) } } #[inline] @@ -1503,7 +1503,7 @@ pub unsafe fn SymGetSourceFileFromTokenW(hprocess: super::super::super::Foun where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileFromTokenW(hprocess : super::super::super::Foundation:: HANDLE, token : *const core::ffi::c_void, params : windows_core::PCWSTR, filepath : windows_core::PWSTR, size : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileFromTokenW(hprocess : super::super::super::Foundation:: HANDLE, token : *const core::ffi::c_void, params : windows_core::PCWSTR, filepath : windows_core::PWSTR, size : u32) -> windows_core::BOOL); unsafe { SymGetSourceFileFromTokenW(hprocess, token, params.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() } } #[inline] @@ -1511,27 +1511,27 @@ pub unsafe fn SymGetSourceFileToken(hprocess: super::super::super::Foundatio where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileToken(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCSTR, token : *mut *mut core::ffi::c_void, size : *mut u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileToken(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCSTR, token : *mut *mut core::ffi::c_void, size : *mut u32) -> windows_core::BOOL); unsafe { SymGetSourceFileToken(hprocess, base, filespec.param().abi(), token as _, size as _).ok() } } #[inline] -pub unsafe fn SymGetSourceFileTokenByTokenName(hprocess: super::super::super::Foundation::HANDLE, base: u64, filespec: P2, tokenname: P3, tokenparameters: P4, token: *mut *mut core::ffi::c_void, size: *mut u32) -> super::super::super::Foundation::BOOL +pub unsafe fn SymGetSourceFileTokenByTokenName(hprocess: super::super::super::Foundation::HANDLE, base: u64, filespec: P2, tokenname: P3, tokenparameters: P4, token: *mut *mut core::ffi::c_void, size: *mut u32) -> windows_core::BOOL where P2: windows_core::Param, P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileTokenByTokenName(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCSTR, tokenname : windows_core::PCSTR, tokenparameters : windows_core::PCSTR, token : *mut *mut core::ffi::c_void, size : *mut u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileTokenByTokenName(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCSTR, tokenname : windows_core::PCSTR, tokenparameters : windows_core::PCSTR, token : *mut *mut core::ffi::c_void, size : *mut u32) -> windows_core::BOOL); unsafe { SymGetSourceFileTokenByTokenName(hprocess, base, filespec.param().abi(), tokenname.param().abi(), tokenparameters.param().abi(), token as _, size as _) } } #[inline] -pub unsafe fn SymGetSourceFileTokenByTokenNameW(hprocess: super::super::super::Foundation::HANDLE, base: u64, filespec: P2, tokenname: P3, tokenparameters: P4, token: *mut *mut core::ffi::c_void, size: *mut u32) -> super::super::super::Foundation::BOOL +pub unsafe fn SymGetSourceFileTokenByTokenNameW(hprocess: super::super::super::Foundation::HANDLE, base: u64, filespec: P2, tokenname: P3, tokenparameters: P4, token: *mut *mut core::ffi::c_void, size: *mut u32) -> windows_core::BOOL where P2: windows_core::Param, P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileTokenByTokenNameW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCWSTR, tokenname : windows_core::PCWSTR, tokenparameters : windows_core::PCWSTR, token : *mut *mut core::ffi::c_void, size : *mut u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileTokenByTokenNameW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCWSTR, tokenname : windows_core::PCWSTR, tokenparameters : windows_core::PCWSTR, token : *mut *mut core::ffi::c_void, size : *mut u32) -> windows_core::BOOL); unsafe { SymGetSourceFileTokenByTokenNameW(hprocess, base, filespec.param().abi(), tokenname.param().abi(), tokenparameters.param().abi(), token as _, size as _) } } #[inline] @@ -1539,7 +1539,7 @@ pub unsafe fn SymGetSourceFileTokenW(hprocess: super::super::super::Foundati where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileTokenW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCWSTR, token : *mut *mut core::ffi::c_void, size : *mut u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileTokenW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, filespec : windows_core::PCWSTR, token : *mut *mut core::ffi::c_void, size : *mut u32) -> windows_core::BOOL); unsafe { SymGetSourceFileTokenW(hprocess, base, filespec.param().abi(), token as _, size as _).ok() } } #[inline] @@ -1548,7 +1548,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, params : windows_core::PCWSTR, filespec : windows_core::PCWSTR, filepath : windows_core::PWSTR, size : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceFileW(hprocess : super::super::super::Foundation:: HANDLE, base : u64, params : windows_core::PCWSTR, filespec : windows_core::PCWSTR, filepath : windows_core::PWSTR, size : u32) -> windows_core::BOOL); unsafe { SymGetSourceFileW(hprocess, base, params.param().abi(), filespec.param().abi(), core::mem::transmute(filepath.as_ptr()), filepath.len().try_into().unwrap()).ok() } } #[inline] @@ -1557,7 +1557,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceVarFromToken(hprocess : super::super::super::Foundation:: HANDLE, token : *const core::ffi::c_void, params : windows_core::PCSTR, varname : windows_core::PCSTR, value : windows_core::PSTR, size : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceVarFromToken(hprocess : super::super::super::Foundation:: HANDLE, token : *const core::ffi::c_void, params : windows_core::PCSTR, varname : windows_core::PCSTR, value : windows_core::PSTR, size : u32) -> windows_core::BOOL); unsafe { SymGetSourceVarFromToken(hprocess, token, params.param().abi(), varname.param().abi(), core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap()).ok() } } #[inline] @@ -1566,18 +1566,18 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceVarFromTokenW(hprocess : super::super::super::Foundation:: HANDLE, token : *const core::ffi::c_void, params : windows_core::PCWSTR, varname : windows_core::PCWSTR, value : windows_core::PWSTR, size : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSourceVarFromTokenW(hprocess : super::super::super::Foundation:: HANDLE, token : *const core::ffi::c_void, params : windows_core::PCWSTR, varname : windows_core::PCWSTR, value : windows_core::PWSTR, size : u32) -> windows_core::BOOL); unsafe { SymGetSourceVarFromTokenW(hprocess, token, params.param().abi(), varname.param().abi(), core::mem::transmute(value.as_ptr()), value.len().try_into().unwrap()).ok() } } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetSymFromAddr(hprocess: super::super::super::Foundation::HANDLE, dwaddr: u32, pdwdisplacement: Option<*mut u32>, symbol: *mut IMAGEHLP_SYMBOL) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSymFromAddr(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u32, pdwdisplacement : *mut u32, symbol : *mut IMAGEHLP_SYMBOL) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSymFromAddr(hprocess : super::super::super::Foundation:: HANDLE, dwaddr : u32, pdwdisplacement : *mut u32, symbol : *mut IMAGEHLP_SYMBOL) -> windows_core::BOOL); unsafe { SymGetSymFromAddr(hprocess, dwaddr, pdwdisplacement.unwrap_or(core::mem::zeroed()) as _, symbol as _).ok() } } #[inline] pub unsafe fn SymGetSymFromAddr64(hprocess: super::super::super::Foundation::HANDLE, qwaddr: u64, pdwdisplacement: Option<*mut u64>, symbol: *mut IMAGEHLP_SYMBOL64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSymFromAddr64(hprocess : super::super::super::Foundation:: HANDLE, qwaddr : u64, pdwdisplacement : *mut u64, symbol : *mut IMAGEHLP_SYMBOL64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSymFromAddr64(hprocess : super::super::super::Foundation:: HANDLE, qwaddr : u64, pdwdisplacement : *mut u64, symbol : *mut IMAGEHLP_SYMBOL64) -> windows_core::BOOL); unsafe { SymGetSymFromAddr64(hprocess, qwaddr, pdwdisplacement.unwrap_or(core::mem::zeroed()) as _, symbol as _).ok() } } #[cfg(target_arch = "x86")] @@ -1586,7 +1586,7 @@ pub unsafe fn SymGetSymFromName(hprocess: super::super::super::Foundation::H where P1: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSymFromName(hprocess : super::super::super::Foundation:: HANDLE, name : windows_core::PCSTR, symbol : *mut IMAGEHLP_SYMBOL) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSymFromName(hprocess : super::super::super::Foundation:: HANDLE, name : windows_core::PCSTR, symbol : *mut IMAGEHLP_SYMBOL) -> windows_core::BOOL); unsafe { SymGetSymFromName(hprocess, name.param().abi(), symbol as _).ok() } } #[inline] @@ -1594,29 +1594,29 @@ pub unsafe fn SymGetSymFromName64(hprocess: super::super::super::Foundation: where P1: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSymFromName64(hprocess : super::super::super::Foundation:: HANDLE, name : windows_core::PCSTR, symbol : *mut IMAGEHLP_SYMBOL64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSymFromName64(hprocess : super::super::super::Foundation:: HANDLE, name : windows_core::PCSTR, symbol : *mut IMAGEHLP_SYMBOL64) -> windows_core::BOOL); unsafe { SymGetSymFromName64(hprocess, name.param().abi(), symbol as _).ok() } } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetSymNext(hprocess: super::super::super::Foundation::HANDLE, symbol: *mut IMAGEHLP_SYMBOL) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSymNext(hprocess : super::super::super::Foundation:: HANDLE, symbol : *mut IMAGEHLP_SYMBOL) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSymNext(hprocess : super::super::super::Foundation:: HANDLE, symbol : *mut IMAGEHLP_SYMBOL) -> windows_core::BOOL); unsafe { SymGetSymNext(hprocess, symbol as _).ok() } } #[inline] pub unsafe fn SymGetSymNext64(hprocess: super::super::super::Foundation::HANDLE, symbol: *mut IMAGEHLP_SYMBOL64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSymNext64(hprocess : super::super::super::Foundation:: HANDLE, symbol : *mut IMAGEHLP_SYMBOL64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSymNext64(hprocess : super::super::super::Foundation:: HANDLE, symbol : *mut IMAGEHLP_SYMBOL64) -> windows_core::BOOL); unsafe { SymGetSymNext64(hprocess, symbol as _).ok() } } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymGetSymPrev(hprocess: super::super::super::Foundation::HANDLE, symbol: *mut IMAGEHLP_SYMBOL) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSymPrev(hprocess : super::super::super::Foundation:: HANDLE, symbol : *mut IMAGEHLP_SYMBOL) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSymPrev(hprocess : super::super::super::Foundation:: HANDLE, symbol : *mut IMAGEHLP_SYMBOL) -> windows_core::BOOL); unsafe { SymGetSymPrev(hprocess, symbol as _).ok() } } #[inline] pub unsafe fn SymGetSymPrev64(hprocess: super::super::super::Foundation::HANDLE, symbol: *mut IMAGEHLP_SYMBOL64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSymPrev64(hprocess : super::super::super::Foundation:: HANDLE, symbol : *mut IMAGEHLP_SYMBOL64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSymPrev64(hprocess : super::super::super::Foundation:: HANDLE, symbol : *mut IMAGEHLP_SYMBOL64) -> windows_core::BOOL); unsafe { SymGetSymPrev64(hprocess, symbol as _).ok() } } #[inline] @@ -1625,7 +1625,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSymbolFile(hprocess : super::super::super::Foundation:: HANDLE, sympath : windows_core::PCSTR, imagefile : windows_core::PCSTR, r#type : u32, symbolfile : windows_core::PSTR, csymbolfile : usize, dbgfile : windows_core::PSTR, cdbgfile : usize) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSymbolFile(hprocess : super::super::super::Foundation:: HANDLE, sympath : windows_core::PCSTR, imagefile : windows_core::PCSTR, r#type : u32, symbolfile : windows_core::PSTR, csymbolfile : usize, dbgfile : windows_core::PSTR, cdbgfile : usize) -> windows_core::BOOL); unsafe { SymGetSymbolFile(hprocess.unwrap_or(core::mem::zeroed()) as _, sympath.param().abi(), imagefile.param().abi(), r#type.0 as _, core::mem::transmute(symbolfile.as_ptr()), symbolfile.len().try_into().unwrap(), core::mem::transmute(dbgfile.as_ptr()), dbgfile.len().try_into().unwrap()).ok() } } #[inline] @@ -1634,7 +1634,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetSymbolFileW(hprocess : super::super::super::Foundation:: HANDLE, sympath : windows_core::PCWSTR, imagefile : windows_core::PCWSTR, r#type : u32, symbolfile : windows_core::PWSTR, csymbolfile : usize, dbgfile : windows_core::PWSTR, cdbgfile : usize) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetSymbolFileW(hprocess : super::super::super::Foundation:: HANDLE, sympath : windows_core::PCWSTR, imagefile : windows_core::PCWSTR, r#type : u32, symbolfile : windows_core::PWSTR, csymbolfile : usize, dbgfile : windows_core::PWSTR, cdbgfile : usize) -> windows_core::BOOL); unsafe { SymGetSymbolFileW(hprocess.unwrap_or(core::mem::zeroed()) as _, sympath.param().abi(), imagefile.param().abi(), r#type.0 as _, core::mem::transmute(symbolfile.as_ptr()), symbolfile.len().try_into().unwrap(), core::mem::transmute(dbgfile.as_ptr()), dbgfile.len().try_into().unwrap()).ok() } } #[inline] @@ -1642,7 +1642,7 @@ pub unsafe fn SymGetTypeFromName(hprocess: super::super::super::Foundation:: where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetTypeFromName(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, name : windows_core::PCSTR, symbol : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetTypeFromName(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, name : windows_core::PCSTR, symbol : *mut SYMBOL_INFO) -> windows_core::BOOL); unsafe { SymGetTypeFromName(hprocess, baseofdll, name.param().abi(), symbol as _).ok() } } #[inline] @@ -1650,22 +1650,22 @@ pub unsafe fn SymGetTypeFromNameW(hprocess: super::super::super::Foundation: where P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymGetTypeFromNameW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, name : windows_core::PCWSTR, symbol : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetTypeFromNameW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, name : windows_core::PCWSTR, symbol : *mut SYMBOL_INFOW) -> windows_core::BOOL); unsafe { SymGetTypeFromNameW(hprocess, baseofdll, name.param().abi(), symbol as _).ok() } } #[inline] pub unsafe fn SymGetTypeInfo(hprocess: super::super::super::Foundation::HANDLE, modbase: u64, typeid: u32, gettype: IMAGEHLP_SYMBOL_TYPE_INFO, pinfo: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetTypeInfo(hprocess : super::super::super::Foundation:: HANDLE, modbase : u64, typeid : u32, gettype : IMAGEHLP_SYMBOL_TYPE_INFO, pinfo : *mut core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetTypeInfo(hprocess : super::super::super::Foundation:: HANDLE, modbase : u64, typeid : u32, gettype : IMAGEHLP_SYMBOL_TYPE_INFO, pinfo : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { SymGetTypeInfo(hprocess, modbase, typeid, gettype, pinfo as _).ok() } } #[inline] pub unsafe fn SymGetTypeInfoEx(hprocess: super::super::super::Foundation::HANDLE, modbase: u64, params: *mut IMAGEHLP_GET_TYPE_INFO_PARAMS) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymGetTypeInfoEx(hprocess : super::super::super::Foundation:: HANDLE, modbase : u64, params : *mut IMAGEHLP_GET_TYPE_INFO_PARAMS) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymGetTypeInfoEx(hprocess : super::super::super::Foundation:: HANDLE, modbase : u64, params : *mut IMAGEHLP_GET_TYPE_INFO_PARAMS) -> windows_core::BOOL); unsafe { SymGetTypeInfoEx(hprocess, modbase, params as _).ok() } } #[inline] -pub unsafe fn SymGetUnwindInfo(hprocess: super::super::super::Foundation::HANDLE, address: u64, buffer: Option<*mut core::ffi::c_void>, size: *mut u32) -> super::super::super::Foundation::BOOL { - windows_targets::link!("dbghelp.dll" "system" fn SymGetUnwindInfo(hprocess : super::super::super::Foundation:: HANDLE, address : u64, buffer : *mut core::ffi::c_void, size : *mut u32) -> super::super::super::Foundation:: BOOL); +pub unsafe fn SymGetUnwindInfo(hprocess: super::super::super::Foundation::HANDLE, address: u64, buffer: Option<*mut core::ffi::c_void>, size: *mut u32) -> windows_core::BOOL { + windows_targets::link!("dbghelp.dll" "system" fn SymGetUnwindInfo(hprocess : super::super::super::Foundation:: HANDLE, address : u64, buffer : *mut core::ffi::c_void, size : *mut u32) -> windows_core::BOOL); unsafe { SymGetUnwindInfo(hprocess, address, buffer.unwrap_or(core::mem::zeroed()) as _, size as _) } } #[inline] @@ -1673,7 +1673,7 @@ pub unsafe fn SymInitialize(hprocess: super::super::super::Foundation::HANDL where P1: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymInitialize(hprocess : super::super::super::Foundation:: HANDLE, usersearchpath : windows_core::PCSTR, finvadeprocess : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymInitialize(hprocess : super::super::super::Foundation:: HANDLE, usersearchpath : windows_core::PCSTR, finvadeprocess : windows_core::BOOL) -> windows_core::BOOL); unsafe { SymInitialize(hprocess, usersearchpath.param().abi(), finvadeprocess.into()).ok() } } #[inline] @@ -1681,7 +1681,7 @@ pub unsafe fn SymInitializeW(hprocess: super::super::super::Foundation::HAND where P1: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymInitializeW(hprocess : super::super::super::Foundation:: HANDLE, usersearchpath : windows_core::PCWSTR, finvadeprocess : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymInitializeW(hprocess : super::super::super::Foundation:: HANDLE, usersearchpath : windows_core::PCWSTR, finvadeprocess : windows_core::BOOL) -> windows_core::BOOL); unsafe { SymInitializeW(hprocess, usersearchpath.param().abi(), finvadeprocess.into()).ok() } } #[cfg(target_arch = "x86")] @@ -1727,7 +1727,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymMatchFileName(filename : windows_core::PCSTR, r#match : windows_core::PCSTR, filenamestop : *mut windows_core::PSTR, matchstop : *mut windows_core::PSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymMatchFileName(filename : windows_core::PCSTR, r#match : windows_core::PCSTR, filenamestop : *mut windows_core::PSTR, matchstop : *mut windows_core::PSTR) -> windows_core::BOOL); unsafe { SymMatchFileName(filename.param().abi(), r#match.param().abi(), filenamestop.unwrap_or(core::mem::zeroed()) as _, matchstop.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1736,7 +1736,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymMatchFileNameW(filename : windows_core::PCWSTR, r#match : windows_core::PCWSTR, filenamestop : *mut windows_core::PWSTR, matchstop : *mut windows_core::PWSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymMatchFileNameW(filename : windows_core::PCWSTR, r#match : windows_core::PCWSTR, filenamestop : *mut windows_core::PWSTR, matchstop : *mut windows_core::PWSTR) -> windows_core::BOOL); unsafe { SymMatchFileNameW(filename.param().abi(), r#match.param().abi(), filenamestop.unwrap_or(core::mem::zeroed()) as _, matchstop.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1745,16 +1745,16 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymMatchString(string : windows_core::PCSTR, expression : windows_core::PCSTR, fcase : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymMatchString(string : windows_core::PCSTR, expression : windows_core::PCSTR, fcase : windows_core::BOOL) -> windows_core::BOOL); unsafe { SymMatchString(string.param().abi(), expression.param().abi(), fcase.into()).ok() } } #[inline] -pub unsafe fn SymMatchStringA(string: P0, expression: P1, fcase: bool) -> super::super::super::Foundation::BOOL +pub unsafe fn SymMatchStringA(string: P0, expression: P1, fcase: bool) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymMatchStringA(string : windows_core::PCSTR, expression : windows_core::PCSTR, fcase : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymMatchStringA(string : windows_core::PCSTR, expression : windows_core::PCSTR, fcase : windows_core::BOOL) -> windows_core::BOOL); unsafe { SymMatchStringA(string.param().abi(), expression.param().abi(), fcase.into()) } } #[inline] @@ -1763,64 +1763,64 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymMatchStringW(string : windows_core::PCWSTR, expression : windows_core::PCWSTR, fcase : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymMatchStringW(string : windows_core::PCWSTR, expression : windows_core::PCWSTR, fcase : windows_core::BOOL) -> windows_core::BOOL); unsafe { SymMatchStringW(string.param().abi(), expression.param().abi(), fcase.into()).ok() } } #[inline] pub unsafe fn SymNext(hprocess: super::super::super::Foundation::HANDLE, si: *mut SYMBOL_INFO) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymNext(hprocess : super::super::super::Foundation:: HANDLE, si : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymNext(hprocess : super::super::super::Foundation:: HANDLE, si : *mut SYMBOL_INFO) -> windows_core::BOOL); unsafe { SymNext(hprocess, si as _).ok() } } #[inline] pub unsafe fn SymNextW(hprocess: super::super::super::Foundation::HANDLE, siw: *mut SYMBOL_INFOW) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymNextW(hprocess : super::super::super::Foundation:: HANDLE, siw : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymNextW(hprocess : super::super::super::Foundation:: HANDLE, siw : *mut SYMBOL_INFOW) -> windows_core::BOOL); unsafe { SymNextW(hprocess, siw as _).ok() } } #[inline] pub unsafe fn SymPrev(hprocess: super::super::super::Foundation::HANDLE, si: *mut SYMBOL_INFO) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymPrev(hprocess : super::super::super::Foundation:: HANDLE, si : *mut SYMBOL_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymPrev(hprocess : super::super::super::Foundation:: HANDLE, si : *mut SYMBOL_INFO) -> windows_core::BOOL); unsafe { SymPrev(hprocess, si as _).ok() } } #[inline] pub unsafe fn SymPrevW(hprocess: super::super::super::Foundation::HANDLE, siw: *mut SYMBOL_INFOW) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymPrevW(hprocess : super::super::super::Foundation:: HANDLE, siw : *mut SYMBOL_INFOW) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymPrevW(hprocess : super::super::super::Foundation:: HANDLE, siw : *mut SYMBOL_INFOW) -> windows_core::BOOL); unsafe { SymPrevW(hprocess, siw as _).ok() } } #[inline] pub unsafe fn SymQueryInlineTrace(hprocess: super::super::super::Foundation::HANDLE, startaddress: u64, startcontext: u32, startretaddress: u64, curaddress: u64, curcontext: *mut u32, curframeindex: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymQueryInlineTrace(hprocess : super::super::super::Foundation:: HANDLE, startaddress : u64, startcontext : u32, startretaddress : u64, curaddress : u64, curcontext : *mut u32, curframeindex : *mut u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymQueryInlineTrace(hprocess : super::super::super::Foundation:: HANDLE, startaddress : u64, startcontext : u32, startretaddress : u64, curaddress : u64, curcontext : *mut u32, curframeindex : *mut u32) -> windows_core::BOOL); unsafe { SymQueryInlineTrace(hprocess, startaddress, startcontext, startretaddress, curaddress, curcontext as _, curframeindex as _).ok() } } #[inline] pub unsafe fn SymRefreshModuleList(hprocess: super::super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymRefreshModuleList(hprocess : super::super::super::Foundation:: HANDLE) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymRefreshModuleList(hprocess : super::super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SymRefreshModuleList(hprocess).ok() } } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymRegisterCallback(hprocess: super::super::super::Foundation::HANDLE, callbackfunction: PSYMBOL_REGISTERED_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymRegisterCallback(hprocess : super::super::super::Foundation:: HANDLE, callbackfunction : PSYMBOL_REGISTERED_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymRegisterCallback(hprocess : super::super::super::Foundation:: HANDLE, callbackfunction : PSYMBOL_REGISTERED_CALLBACK, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymRegisterCallback(hprocess, callbackfunction, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SymRegisterCallback64(hprocess: super::super::super::Foundation::HANDLE, callbackfunction: PSYMBOL_REGISTERED_CALLBACK64, usercontext: u64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymRegisterCallback64(hprocess : super::super::super::Foundation:: HANDLE, callbackfunction : PSYMBOL_REGISTERED_CALLBACK64, usercontext : u64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymRegisterCallback64(hprocess : super::super::super::Foundation:: HANDLE, callbackfunction : PSYMBOL_REGISTERED_CALLBACK64, usercontext : u64) -> windows_core::BOOL); unsafe { SymRegisterCallback64(hprocess, callbackfunction, usercontext).ok() } } #[inline] pub unsafe fn SymRegisterCallbackW64(hprocess: super::super::super::Foundation::HANDLE, callbackfunction: PSYMBOL_REGISTERED_CALLBACK64, usercontext: u64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymRegisterCallbackW64(hprocess : super::super::super::Foundation:: HANDLE, callbackfunction : PSYMBOL_REGISTERED_CALLBACK64, usercontext : u64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymRegisterCallbackW64(hprocess : super::super::super::Foundation:: HANDLE, callbackfunction : PSYMBOL_REGISTERED_CALLBACK64, usercontext : u64) -> windows_core::BOOL); unsafe { SymRegisterCallbackW64(hprocess, callbackfunction, usercontext).ok() } } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymRegisterFunctionEntryCallback(hprocess: super::super::super::Foundation::HANDLE, callbackfunction: PSYMBOL_FUNCENTRY_CALLBACK, usercontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymRegisterFunctionEntryCallback(hprocess : super::super::super::Foundation:: HANDLE, callbackfunction : PSYMBOL_FUNCENTRY_CALLBACK, usercontext : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymRegisterFunctionEntryCallback(hprocess : super::super::super::Foundation:: HANDLE, callbackfunction : PSYMBOL_FUNCENTRY_CALLBACK, usercontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymRegisterFunctionEntryCallback(hprocess, callbackfunction, usercontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SymRegisterFunctionEntryCallback64(hprocess: super::super::super::Foundation::HANDLE, callbackfunction: PSYMBOL_FUNCENTRY_CALLBACK64, usercontext: u64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymRegisterFunctionEntryCallback64(hprocess : super::super::super::Foundation:: HANDLE, callbackfunction : PSYMBOL_FUNCENTRY_CALLBACK64, usercontext : u64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymRegisterFunctionEntryCallback64(hprocess : super::super::super::Foundation:: HANDLE, callbackfunction : PSYMBOL_FUNCENTRY_CALLBACK64, usercontext : u64) -> windows_core::BOOL); unsafe { SymRegisterFunctionEntryCallback64(hprocess, callbackfunction, usercontext).ok() } } #[inline] @@ -1828,7 +1828,7 @@ pub unsafe fn SymSearch(hprocess: super::super::super::Foundation::HANDLE, b where P4: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymSearch(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32, symtag : u32, mask : windows_core::PCSTR, address : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void, options : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymSearch(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32, symtag : u32, mask : windows_core::PCSTR, address : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACK, usercontext : *const core::ffi::c_void, options : u32) -> windows_core::BOOL); unsafe { SymSearch(hprocess, baseofdll, index.unwrap_or(core::mem::zeroed()) as _, symtag.unwrap_or(core::mem::zeroed()) as _, mask.param().abi(), address.unwrap_or(core::mem::zeroed()) as _, enumsymbolscallback, usercontext.unwrap_or(core::mem::zeroed()) as _, options).ok() } } #[inline] @@ -1836,17 +1836,17 @@ pub unsafe fn SymSearchW(hprocess: super::super::super::Foundation::HANDLE, where P4: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymSearchW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32, symtag : u32, mask : windows_core::PCWSTR, address : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void, options : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymSearchW(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32, symtag : u32, mask : windows_core::PCWSTR, address : u64, enumsymbolscallback : PSYM_ENUMERATESYMBOLS_CALLBACKW, usercontext : *const core::ffi::c_void, options : u32) -> windows_core::BOOL); unsafe { SymSearchW(hprocess, baseofdll, index.unwrap_or(core::mem::zeroed()) as _, symtag.unwrap_or(core::mem::zeroed()) as _, mask.param().abi(), address.unwrap_or(core::mem::zeroed()) as _, enumsymbolscallback, usercontext.unwrap_or(core::mem::zeroed()) as _, options).ok() } } #[inline] pub unsafe fn SymSetContext(hprocess: super::super::super::Foundation::HANDLE, stackframe: *const IMAGEHLP_STACK_FRAME, context: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymSetContext(hprocess : super::super::super::Foundation:: HANDLE, stackframe : *const IMAGEHLP_STACK_FRAME, context : *const core::ffi::c_void) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymSetContext(hprocess : super::super::super::Foundation:: HANDLE, stackframe : *const IMAGEHLP_STACK_FRAME, context : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SymSetContext(hprocess, stackframe, context.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn SymSetExtendedOption(option: IMAGEHLP_EXTENDED_OPTIONS, value: bool) -> super::super::super::Foundation::BOOL { - windows_targets::link!("dbghelp.dll" "system" fn SymSetExtendedOption(option : IMAGEHLP_EXTENDED_OPTIONS, value : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); +pub unsafe fn SymSetExtendedOption(option: IMAGEHLP_EXTENDED_OPTIONS, value: bool) -> windows_core::BOOL { + windows_targets::link!("dbghelp.dll" "system" fn SymSetExtendedOption(option : IMAGEHLP_EXTENDED_OPTIONS, value : windows_core::BOOL) -> windows_core::BOOL); unsafe { SymSetExtendedOption(option, value.into()) } } #[inline] @@ -1872,22 +1872,22 @@ pub unsafe fn SymSetOptions(symoptions: u32) -> u32 { } #[inline] pub unsafe fn SymSetParentWindow(hwnd: super::super::super::Foundation::HWND) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymSetParentWindow(hwnd : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymSetParentWindow(hwnd : super::super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { SymSetParentWindow(hwnd).ok() } } #[inline] pub unsafe fn SymSetScopeFromAddr(hprocess: super::super::super::Foundation::HANDLE, address: u64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymSetScopeFromAddr(hprocess : super::super::super::Foundation:: HANDLE, address : u64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymSetScopeFromAddr(hprocess : super::super::super::Foundation:: HANDLE, address : u64) -> windows_core::BOOL); unsafe { SymSetScopeFromAddr(hprocess, address).ok() } } #[inline] pub unsafe fn SymSetScopeFromIndex(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64, index: u32) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymSetScopeFromIndex(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymSetScopeFromIndex(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64, index : u32) -> windows_core::BOOL); unsafe { SymSetScopeFromIndex(hprocess, baseofdll, index).ok() } } #[inline] pub unsafe fn SymSetScopeFromInlineContext(hprocess: super::super::super::Foundation::HANDLE, address: u64, inlinecontext: u32) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymSetScopeFromInlineContext(hprocess : super::super::super::Foundation:: HANDLE, address : u64, inlinecontext : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymSetScopeFromInlineContext(hprocess : super::super::super::Foundation:: HANDLE, address : u64, inlinecontext : u32) -> windows_core::BOOL); unsafe { SymSetScopeFromInlineContext(hprocess, address, inlinecontext).ok() } } #[inline] @@ -1895,7 +1895,7 @@ pub unsafe fn SymSetSearchPath(hprocess: super::super::super::Foundation::HA where P1: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymSetSearchPath(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PCSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymSetSearchPath(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SymSetSearchPath(hprocess, searchpatha.param().abi()).ok() } } #[inline] @@ -1903,7 +1903,7 @@ pub unsafe fn SymSetSearchPathW(hprocess: super::super::super::Foundation::H where P1: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymSetSearchPathW(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PCWSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymSetSearchPathW(hprocess : super::super::super::Foundation:: HANDLE, searchpatha : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SymSetSearchPathW(hprocess, searchpatha.param().abi()).ok() } } #[inline] @@ -1933,7 +1933,7 @@ pub unsafe fn SymSrvGetFileIndexInfo(file: P0, info: *mut SYMSRV_INDEX_INFO, where P0: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetFileIndexInfo(file : windows_core::PCSTR, info : *mut SYMSRV_INDEX_INFO, flags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetFileIndexInfo(file : windows_core::PCSTR, info : *mut SYMSRV_INDEX_INFO, flags : u32) -> windows_core::BOOL); unsafe { SymSrvGetFileIndexInfo(file.param().abi(), info as _, flags).ok() } } #[inline] @@ -1941,7 +1941,7 @@ pub unsafe fn SymSrvGetFileIndexInfoW(file: P0, info: *mut SYMSRV_INDEX_INFO where P0: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetFileIndexInfoW(file : windows_core::PCWSTR, info : *mut SYMSRV_INDEX_INFOW, flags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetFileIndexInfoW(file : windows_core::PCWSTR, info : *mut SYMSRV_INDEX_INFOW, flags : u32) -> windows_core::BOOL); unsafe { SymSrvGetFileIndexInfoW(file.param().abi(), info as _, flags).ok() } } #[inline] @@ -1950,7 +1950,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetFileIndexString(hprocess : super::super::super::Foundation:: HANDLE, srvpath : windows_core::PCSTR, file : windows_core::PCSTR, index : windows_core::PSTR, size : usize, flags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetFileIndexString(hprocess : super::super::super::Foundation:: HANDLE, srvpath : windows_core::PCSTR, file : windows_core::PCSTR, index : windows_core::PSTR, size : usize, flags : u32) -> windows_core::BOOL); unsafe { SymSrvGetFileIndexString(hprocess, srvpath.param().abi(), file.param().abi(), core::mem::transmute(index.as_ptr()), index.len().try_into().unwrap(), flags).ok() } } #[inline] @@ -1959,7 +1959,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetFileIndexStringW(hprocess : super::super::super::Foundation:: HANDLE, srvpath : windows_core::PCWSTR, file : windows_core::PCWSTR, index : windows_core::PWSTR, size : usize, flags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetFileIndexStringW(hprocess : super::super::super::Foundation:: HANDLE, srvpath : windows_core::PCWSTR, file : windows_core::PCWSTR, index : windows_core::PWSTR, size : usize, flags : u32) -> windows_core::BOOL); unsafe { SymSrvGetFileIndexStringW(hprocess, srvpath.param().abi(), file.param().abi(), core::mem::transmute(index.as_ptr()), index.len().try_into().unwrap(), flags).ok() } } #[inline] @@ -1967,7 +1967,7 @@ pub unsafe fn SymSrvGetFileIndexes(file: P0, id: *mut windows_core::GUID, va where P0: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetFileIndexes(file : windows_core::PCSTR, id : *mut windows_core::GUID, val1 : *mut u32, val2 : *mut u32, flags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetFileIndexes(file : windows_core::PCSTR, id : *mut windows_core::GUID, val1 : *mut u32, val2 : *mut u32, flags : u32) -> windows_core::BOOL); unsafe { SymSrvGetFileIndexes(file.param().abi(), id as _, val1 as _, val2.unwrap_or(core::mem::zeroed()) as _, flags).ok() } } #[inline] @@ -1975,7 +1975,7 @@ pub unsafe fn SymSrvGetFileIndexesW(file: P0, id: *mut windows_core::GUID, v where P0: windows_core::Param, { - windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetFileIndexesW(file : windows_core::PCWSTR, id : *mut windows_core::GUID, val1 : *mut u32, val2 : *mut u32, flags : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymSrvGetFileIndexesW(file : windows_core::PCWSTR, id : *mut windows_core::GUID, val1 : *mut u32, val2 : *mut u32, flags : u32) -> windows_core::BOOL); unsafe { SymSrvGetFileIndexesW(file.param().abi(), id as _, val1 as _, val2.unwrap_or(core::mem::zeroed()) as _, flags).ok() } } #[inline] @@ -2003,7 +2003,7 @@ pub unsafe fn SymSrvIsStore(hprocess: Option, { - windows_targets::link!("dbghelp.dll" "system" fn SymSrvIsStore(hprocess : super::super::super::Foundation:: HANDLE, path : windows_core::PCSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymSrvIsStore(hprocess : super::super::super::Foundation:: HANDLE, path : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SymSrvIsStore(hprocess.unwrap_or(core::mem::zeroed()) as _, path.param().abi()).ok() } } #[inline] @@ -2011,7 +2011,7 @@ pub unsafe fn SymSrvIsStoreW(hprocess: Option, { - windows_targets::link!("dbghelp.dll" "system" fn SymSrvIsStoreW(hprocess : super::super::super::Foundation:: HANDLE, path : windows_core::PCWSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymSrvIsStoreW(hprocess : super::super::super::Foundation:: HANDLE, path : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SymSrvIsStoreW(hprocess.unwrap_or(core::mem::zeroed()) as _, path.param().abi()).ok() } } #[inline] @@ -2055,23 +2055,23 @@ where #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymUnDName(sym: *const IMAGEHLP_SYMBOL, undecname: &mut [u8]) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymUnDName(sym : *const IMAGEHLP_SYMBOL, undecname : windows_core::PSTR, undecnamelength : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymUnDName(sym : *const IMAGEHLP_SYMBOL, undecname : windows_core::PSTR, undecnamelength : u32) -> windows_core::BOOL); unsafe { SymUnDName(sym, core::mem::transmute(undecname.as_ptr()), undecname.len().try_into().unwrap()).ok() } } #[inline] pub unsafe fn SymUnDName64(sym: *const IMAGEHLP_SYMBOL64, undecname: &mut [u8]) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymUnDName64(sym : *const IMAGEHLP_SYMBOL64, undecname : windows_core::PSTR, undecnamelength : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymUnDName64(sym : *const IMAGEHLP_SYMBOL64, undecname : windows_core::PSTR, undecnamelength : u32) -> windows_core::BOOL); unsafe { SymUnDName64(sym, core::mem::transmute(undecname.as_ptr()), undecname.len().try_into().unwrap()).ok() } } #[cfg(target_arch = "x86")] #[inline] pub unsafe fn SymUnloadModule(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u32) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymUnloadModule(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymUnloadModule(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u32) -> windows_core::BOOL); unsafe { SymUnloadModule(hprocess, baseofdll).ok() } } #[inline] pub unsafe fn SymUnloadModule64(hprocess: super::super::super::Foundation::HANDLE, baseofdll: u64) -> windows_core::Result<()> { - windows_targets::link!("dbghelp.dll" "system" fn SymUnloadModule64(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("dbghelp.dll" "system" fn SymUnloadModule64(hprocess : super::super::super::Foundation:: HANDLE, baseofdll : u64) -> windows_core::BOOL); unsafe { SymUnloadModule64(hprocess, baseofdll).ok() } } #[inline] @@ -2081,7 +2081,7 @@ pub unsafe fn TerminateProcessOnMemoryExhaustion(failedallocationsize: usize) { } #[inline] pub unsafe fn TouchFileTimes(filehandle: super::super::super::Foundation::HANDLE, psystemtime: Option<*const super::super::super::Foundation::SYSTEMTIME>) -> windows_core::Result<()> { - windows_targets::link!("imagehlp.dll" "system" fn TouchFileTimes(filehandle : super::super::super::Foundation:: HANDLE, psystemtime : *const super::super::super::Foundation:: SYSTEMTIME) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn TouchFileTimes(filehandle : super::super::super::Foundation:: HANDLE, psystemtime : *const super::super::super::Foundation:: SYSTEMTIME) -> windows_core::BOOL); unsafe { TouchFileTimes(filehandle, psystemtime.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2103,7 +2103,7 @@ where #[cfg(all(feature = "Win32_System_Kernel", feature = "Win32_System_SystemInformation"))] #[inline] pub unsafe fn UnMapAndLoad(loadedimage: *mut LOADED_IMAGE) -> windows_core::Result<()> { - windows_targets::link!("imagehlp.dll" "system" fn UnMapAndLoad(loadedimage : *mut LOADED_IMAGE) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn UnMapAndLoad(loadedimage : *mut LOADED_IMAGE) -> windows_core::BOOL); unsafe { UnMapAndLoad(loadedimage as _).ok() } } #[cfg(feature = "Win32_System_Kernel")] @@ -2119,49 +2119,49 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("imagehlp.dll" "system" fn UpdateDebugInfoFile(imagefilename : windows_core::PCSTR, symbolpath : windows_core::PCSTR, debugfilepath : windows_core::PSTR, ntheaders : *const IMAGE_NT_HEADERS32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn UpdateDebugInfoFile(imagefilename : windows_core::PCSTR, symbolpath : windows_core::PCSTR, debugfilepath : windows_core::PSTR, ntheaders : *const IMAGE_NT_HEADERS32) -> windows_core::BOOL); unsafe { UpdateDebugInfoFile(imagefilename.param().abi(), symbolpath.param().abi(), core::mem::transmute(debugfilepath), ntheaders).ok() } } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] -pub unsafe fn UpdateDebugInfoFileEx(imagefilename: P0, symbolpath: P1, debugfilepath: windows_core::PSTR, ntheaders: *const IMAGE_NT_HEADERS32, oldchecksum: u32) -> super::super::super::Foundation::BOOL +pub unsafe fn UpdateDebugInfoFileEx(imagefilename: P0, symbolpath: P1, debugfilepath: windows_core::PSTR, ntheaders: *const IMAGE_NT_HEADERS32, oldchecksum: u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("imagehlp.dll" "system" fn UpdateDebugInfoFileEx(imagefilename : windows_core::PCSTR, symbolpath : windows_core::PCSTR, debugfilepath : windows_core::PSTR, ntheaders : *const IMAGE_NT_HEADERS32, oldchecksum : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imagehlp.dll" "system" fn UpdateDebugInfoFileEx(imagefilename : windows_core::PCSTR, symbolpath : windows_core::PCSTR, debugfilepath : windows_core::PSTR, ntheaders : *const IMAGE_NT_HEADERS32, oldchecksum : u32) -> windows_core::BOOL); unsafe { UpdateDebugInfoFileEx(imagefilename.param().abi(), symbolpath.param().abi(), core::mem::transmute(debugfilepath), ntheaders, oldchecksum) } } #[cfg(feature = "Win32_System_Threading")] #[inline] pub unsafe fn WaitForDebugEvent(lpdebugevent: *mut DEBUG_EVENT, dwmilliseconds: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn WaitForDebugEvent(lpdebugevent : *mut DEBUG_EVENT, dwmilliseconds : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WaitForDebugEvent(lpdebugevent : *mut DEBUG_EVENT, dwmilliseconds : u32) -> windows_core::BOOL); unsafe { WaitForDebugEvent(lpdebugevent as _, dwmilliseconds).ok() } } #[cfg(feature = "Win32_System_Threading")] #[inline] pub unsafe fn WaitForDebugEventEx(lpdebugevent: *mut DEBUG_EVENT, dwmilliseconds: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn WaitForDebugEventEx(lpdebugevent : *mut DEBUG_EVENT, dwmilliseconds : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WaitForDebugEventEx(lpdebugevent : *mut DEBUG_EVENT, dwmilliseconds : u32) -> windows_core::BOOL); unsafe { WaitForDebugEventEx(lpdebugevent as _, dwmilliseconds).ok() } } #[inline] pub unsafe fn Wow64GetThreadContext(hthread: super::super::super::Foundation::HANDLE, lpcontext: *mut WOW64_CONTEXT) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Wow64GetThreadContext(hthread : super::super::super::Foundation:: HANDLE, lpcontext : *mut WOW64_CONTEXT) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Wow64GetThreadContext(hthread : super::super::super::Foundation:: HANDLE, lpcontext : *mut WOW64_CONTEXT) -> windows_core::BOOL); unsafe { Wow64GetThreadContext(hthread, lpcontext as _).ok() } } #[inline] pub unsafe fn Wow64GetThreadSelectorEntry(hthread: super::super::super::Foundation::HANDLE, dwselector: u32, lpselectorentry: *mut WOW64_LDT_ENTRY) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Wow64GetThreadSelectorEntry(hthread : super::super::super::Foundation:: HANDLE, dwselector : u32, lpselectorentry : *mut WOW64_LDT_ENTRY) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Wow64GetThreadSelectorEntry(hthread : super::super::super::Foundation:: HANDLE, dwselector : u32, lpselectorentry : *mut WOW64_LDT_ENTRY) -> windows_core::BOOL); unsafe { Wow64GetThreadSelectorEntry(hthread, dwselector, lpselectorentry as _).ok() } } #[inline] pub unsafe fn Wow64SetThreadContext(hthread: super::super::super::Foundation::HANDLE, lpcontext: *const WOW64_CONTEXT) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Wow64SetThreadContext(hthread : super::super::super::Foundation:: HANDLE, lpcontext : *const WOW64_CONTEXT) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Wow64SetThreadContext(hthread : super::super::super::Foundation:: HANDLE, lpcontext : *const WOW64_CONTEXT) -> windows_core::BOOL); unsafe { Wow64SetThreadContext(hthread, lpcontext).ok() } } #[inline] pub unsafe fn WriteProcessMemory(hprocess: super::super::super::Foundation::HANDLE, lpbaseaddress: *const core::ffi::c_void, lpbuffer: *const core::ffi::c_void, nsize: usize, lpnumberofbyteswritten: Option<*mut usize>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn WriteProcessMemory(hprocess : super::super::super::Foundation:: HANDLE, lpbaseaddress : *const core::ffi::c_void, lpbuffer : *const core::ffi::c_void, nsize : usize, lpnumberofbyteswritten : *mut usize) -> super::super::super::Foundation:: BOOL); + 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) -> windows_core::BOOL); unsafe { WriteProcessMemory(hprocess, lpbaseaddress, lpbuffer, nsize, lpnumberofbyteswritten.unwrap_or(core::mem::zeroed()) as _).ok() } } pub const ABNORMAL_RESET_DETECTED: BUGCHECK_ERROR = BUGCHECK_ERROR(327u32); @@ -3083,7 +3083,7 @@ pub const DEVICE_QUEUE_NOT_BUSY: BUGCHECK_ERROR = BUGCHECK_ERROR(2u32); pub const DEVICE_REFERENCE_COUNT_NOT_ZERO: BUGCHECK_ERROR = BUGCHECK_ERROR(54u32); pub const DFSC_FILE_SYSTEM: BUGCHECK_ERROR = BUGCHECK_ERROR(267u32); pub const DFS_FILE_SYSTEM: BUGCHECK_ERROR = BUGCHECK_ERROR(130u32); -pub type DIGEST_FUNCTION = Option super::super::super::Foundation::BOOL>; +pub type DIGEST_FUNCTION = Option windows_core::BOOL>; pub const DIRECTED_FX_TRANSITION_LIVEDUMP: BUGCHECK_ERROR = BUGCHECK_ERROR(425u32); pub const DIRTY_MAPPED_PAGES_CONGESTION: BUGCHECK_ERROR = BUGCHECK_ERROR(235u32); pub const DIRTY_NOWRITE_PAGES_CONGESTION: BUGCHECK_ERROR = BUGCHECK_ERROR(253u32); @@ -4531,13 +4531,13 @@ pub struct IMAGEHLP_MODULE64 { pub PdbSig: u32, pub PdbSig70: windows_core::GUID, pub PdbAge: u32, - pub PdbUnmatched: super::super::super::Foundation::BOOL, - pub DbgUnmatched: super::super::super::Foundation::BOOL, - pub LineNumbers: super::super::super::Foundation::BOOL, - pub GlobalSymbols: super::super::super::Foundation::BOOL, - pub TypeInfo: super::super::super::Foundation::BOOL, - pub SourceIndexed: super::super::super::Foundation::BOOL, - pub Publics: super::super::super::Foundation::BOOL, + pub PdbUnmatched: windows_core::BOOL, + pub DbgUnmatched: windows_core::BOOL, + pub LineNumbers: windows_core::BOOL, + pub GlobalSymbols: windows_core::BOOL, + pub TypeInfo: windows_core::BOOL, + pub SourceIndexed: windows_core::BOOL, + pub Publics: windows_core::BOOL, pub MachineType: u32, pub Reserved: u32, } @@ -4597,13 +4597,13 @@ pub struct IMAGEHLP_MODULEW64 { pub PdbSig: u32, pub PdbSig70: windows_core::GUID, pub PdbAge: u32, - pub PdbUnmatched: super::super::super::Foundation::BOOL, - pub DbgUnmatched: super::super::super::Foundation::BOOL, - pub LineNumbers: super::super::super::Foundation::BOOL, - pub GlobalSymbols: super::super::super::Foundation::BOOL, - pub TypeInfo: super::super::super::Foundation::BOOL, - pub SourceIndexed: super::super::super::Foundation::BOOL, - pub Publics: super::super::super::Foundation::BOOL, + pub PdbUnmatched: windows_core::BOOL, + pub DbgUnmatched: windows_core::BOOL, + pub LineNumbers: windows_core::BOOL, + pub GlobalSymbols: windows_core::BOOL, + pub TypeInfo: windows_core::BOOL, + pub SourceIndexed: windows_core::BOOL, + pub Publics: windows_core::BOOL, pub MachineType: u32, pub Reserved: u32, } @@ -4649,7 +4649,7 @@ pub struct IMAGEHLP_STACK_FRAME { pub FuncTableEntry: u64, pub Params: [u64; 4], pub Reserved: [u64; 5], - pub Virtual: super::super::super::Foundation::BOOL, + pub Virtual: windows_core::BOOL, pub Reserved2: u32, } impl Default for IMAGEHLP_STACK_FRAME { @@ -4939,7 +4939,7 @@ pub struct IMAGE_DEBUG_INFORMATION { pub ImageFileName: windows_core::PSTR, pub ReservedDebugFilePath: windows_core::PSTR, pub ReservedTimeDateStamp: u32, - pub ReservedRomImage: super::super::super::Foundation::BOOL, + pub ReservedRomImage: windows_core::BOOL, pub ReservedDebugDirectory: *mut IMAGE_DEBUG_DIRECTORY, pub ReservedNumberOfDebugDirectories: u32, pub ReservedOriginalFunctionTableBaseAddress: u32, @@ -6321,8 +6321,8 @@ impl Default for MINIDUMP_CALLBACK_OUTPUT_0_0 { #[cfg(feature = "Win32_System_Memory")] #[derive(Clone, Copy, Debug, PartialEq)] pub struct MINIDUMP_CALLBACK_OUTPUT_0_1 { - pub CheckCancel: super::super::super::Foundation::BOOL, - pub Cancel: super::super::super::Foundation::BOOL, + pub CheckCancel: windows_core::BOOL, + pub Cancel: windows_core::BOOL, } #[cfg(feature = "Win32_System_Memory")] impl Default for MINIDUMP_CALLBACK_OUTPUT_0_1 { @@ -6335,7 +6335,7 @@ impl Default for MINIDUMP_CALLBACK_OUTPUT_0_1 { #[derive(Clone, Copy)] pub struct MINIDUMP_CALLBACK_OUTPUT_0_2 { pub VmRegion: MINIDUMP_MEMORY_INFO, - pub Continue: super::super::super::Foundation::BOOL, + pub Continue: windows_core::BOOL, } #[cfg(feature = "Win32_System_Memory")] impl Default for MINIDUMP_CALLBACK_OUTPUT_0_2 { @@ -6370,7 +6370,7 @@ impl Default for MINIDUMP_CALLBACK_OUTPUT_0_4 { } } #[cfg(all(feature = "Win32_Storage_FileSystem", feature = "Win32_System_Kernel", feature = "Win32_System_Memory"))] -pub type MINIDUMP_CALLBACK_ROUTINE = Option super::super::super::Foundation::BOOL>; +pub type MINIDUMP_CALLBACK_ROUTINE = Option windows_core::BOOL>; #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct MINIDUMP_CALLBACK_TYPE(pub i32); @@ -6408,7 +6408,7 @@ impl Default for MINIDUMP_EXCEPTION { pub struct MINIDUMP_EXCEPTION_INFORMATION { pub ThreadId: u32, pub ExceptionPointers: *mut EXCEPTION_POINTERS, - pub ClientPointers: super::super::super::Foundation::BOOL, + pub ClientPointers: windows_core::BOOL, } #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_System_Kernel")] @@ -6424,7 +6424,7 @@ impl Default for MINIDUMP_EXCEPTION_INFORMATION { pub struct MINIDUMP_EXCEPTION_INFORMATION { pub ThreadId: u32, pub ExceptionPointers: *mut EXCEPTION_POINTERS, - pub ClientPointers: super::super::super::Foundation::BOOL, + pub ClientPointers: windows_core::BOOL, } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_Kernel")] @@ -6439,7 +6439,7 @@ pub struct MINIDUMP_EXCEPTION_INFORMATION64 { pub ThreadId: u32, pub ExceptionRecord: u64, pub ContextRecord: u64, - pub ClientPointers: super::super::super::Foundation::BOOL, + pub ClientPointers: windows_core::BOOL, } impl Default for MINIDUMP_EXCEPTION_INFORMATION64 { fn default() -> Self { @@ -7871,25 +7871,25 @@ pub const PCI_CONFIG_SPACE_ACCESS_FAILURE: BUGCHECK_ERROR = BUGCHECK_ERROR(192u3 pub const PCI_VERIFIER_DETECTED_VIOLATION: BUGCHECK_ERROR = BUGCHECK_ERROR(246u32); pub type PCOGETACTIVATIONSTATE = Option windows_core::HRESULT>; pub type PCOGETCALLSTATE = Option windows_core::HRESULT>; -pub type PDBGHELP_CREATE_USER_DUMP_CALLBACK = Option super::super::super::Foundation::BOOL>; +pub type PDBGHELP_CREATE_USER_DUMP_CALLBACK = Option windows_core::BOOL>; pub const PDC_LOCK_WATCHDOG_LIVEDUMP: BUGCHECK_ERROR = BUGCHECK_ERROR(380u32); pub const PDC_PRIVILEGE_CHECK_LIVEDUMP: BUGCHECK_ERROR = BUGCHECK_ERROR(415u32); pub const PDC_UNEXPECTED_REVOCATION_LIVEDUMP: BUGCHECK_ERROR = BUGCHECK_ERROR(381u32); pub const PDC_WATCHDOG_TIMEOUT: BUGCHECK_ERROR = BUGCHECK_ERROR(335u32); pub const PDC_WATCHDOG_TIMEOUT_LIVEDUMP: BUGCHECK_ERROR = BUGCHECK_ERROR(348u32); -pub type PENUMDIRTREE_CALLBACK = Option super::super::super::Foundation::BOOL>; -pub type PENUMDIRTREE_CALLBACKW = Option super::super::super::Foundation::BOOL>; +pub type PENUMDIRTREE_CALLBACK = Option windows_core::BOOL>; +pub type PENUMDIRTREE_CALLBACKW = Option windows_core::BOOL>; #[cfg(target_arch = "x86")] -pub type PENUMLOADED_MODULES_CALLBACK = Option super::super::super::Foundation::BOOL>; -pub type PENUMLOADED_MODULES_CALLBACK64 = Option super::super::super::Foundation::BOOL>; -pub type PENUMLOADED_MODULES_CALLBACKW64 = Option super::super::super::Foundation::BOOL>; -pub type PENUMSOURCEFILETOKENSCALLBACK = Option super::super::super::Foundation::BOOL>; -pub type PFINDFILEINPATHCALLBACK = Option super::super::super::Foundation::BOOL>; -pub type PFINDFILEINPATHCALLBACKW = Option super::super::super::Foundation::BOOL>; -pub type PFIND_DEBUG_FILE_CALLBACK = Option super::super::super::Foundation::BOOL>; -pub type PFIND_DEBUG_FILE_CALLBACKW = Option super::super::super::Foundation::BOOL>; -pub type PFIND_EXE_FILE_CALLBACK = Option super::super::super::Foundation::BOOL>; -pub type PFIND_EXE_FILE_CALLBACKW = Option super::super::super::Foundation::BOOL>; +pub type PENUMLOADED_MODULES_CALLBACK = Option windows_core::BOOL>; +pub type PENUMLOADED_MODULES_CALLBACK64 = Option windows_core::BOOL>; +pub type PENUMLOADED_MODULES_CALLBACKW64 = Option windows_core::BOOL>; +pub type PENUMSOURCEFILETOKENSCALLBACK = Option windows_core::BOOL>; +pub type PFINDFILEINPATHCALLBACK = Option windows_core::BOOL>; +pub type PFINDFILEINPATHCALLBACKW = Option windows_core::BOOL>; +pub type PFIND_DEBUG_FILE_CALLBACK = Option windows_core::BOOL>; +pub type PFIND_DEBUG_FILE_CALLBACKW = Option windows_core::BOOL>; +pub type PFIND_EXE_FILE_CALLBACK = Option windows_core::BOOL>; +pub type PFIND_EXE_FILE_CALLBACKW = Option windows_core::BOOL>; pub const PFN_LIST_CORRUPT: BUGCHECK_ERROR = BUGCHECK_ERROR(78u32); pub const PFN_REFERENCE_COUNT: BUGCHECK_ERROR = BUGCHECK_ERROR(28u32); pub const PFN_SHARE_COUNT: BUGCHECK_ERROR = BUGCHECK_ERROR(27u32); @@ -7904,7 +7904,7 @@ pub type PGET_MODULE_BASE_ROUTINE64 = Option *mut IMAGE_RUNTIME_FUNCTION_ENTRY>; #[cfg(target_arch = "aarch64")] pub type PGET_RUNTIME_FUNCTION_CALLBACK = Option *mut IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY>; -pub type PGET_TARGET_ATTRIBUTE_VALUE64 = Option super::super::super::Foundation::BOOL>; +pub type PGET_TARGET_ATTRIBUTE_VALUE64 = Option windows_core::BOOL>; pub const PHASE0_EXCEPTION: BUGCHECK_ERROR = BUGCHECK_ERROR(120u32); pub const PHASE0_INITIALIZATION_FAILED: BUGCHECK_ERROR = BUGCHECK_ERROR(49u32); pub const PHASE1_INITIALIZATION_FAILED: BUGCHECK_ERROR = BUGCHECK_ERROR(50u32); @@ -7954,9 +7954,9 @@ impl Default for PHYSICAL_MEMORY_RUN64 { unsafe { core::mem::zeroed() } } } -pub type PIMAGEHLP_STATUS_ROUTINE = Option super::super::super::Foundation::BOOL>; -pub type PIMAGEHLP_STATUS_ROUTINE32 = Option super::super::super::Foundation::BOOL>; -pub type PIMAGEHLP_STATUS_ROUTINE64 = Option super::super::super::Foundation::BOOL>; +pub type PIMAGEHLP_STATUS_ROUTINE = Option windows_core::BOOL>; +pub type PIMAGEHLP_STATUS_ROUTINE32 = Option windows_core::BOOL>; +pub type PIMAGEHLP_STATUS_ROUTINE64 = Option windows_core::BOOL>; pub const PINBALL_FILE_SYSTEM: BUGCHECK_ERROR = BUGCHECK_ERROR(89u32); pub const PNP_DETECTED_FATAL_ERROR: BUGCHECK_ERROR = BUGCHECK_ERROR(202u32); pub const PNP_INTERNAL_ERROR: BUGCHECK_ERROR = BUGCHECK_ERROR(149u32); @@ -7966,8 +7966,8 @@ pub const POWER_FAILURE_SIMULATE: BUGCHECK_ERROR = BUGCHECK_ERROR(229u32); pub const PP0_INITIALIZATION_FAILED: BUGCHECK_ERROR = BUGCHECK_ERROR(143u32); pub const PP1_INITIALIZATION_FAILED: BUGCHECK_ERROR = BUGCHECK_ERROR(144u32); #[cfg(target_arch = "x86")] -pub type PREAD_PROCESS_MEMORY_ROUTINE = Option super::super::super::Foundation::BOOL>; -pub type PREAD_PROCESS_MEMORY_ROUTINE64 = Option super::super::super::Foundation::BOOL>; +pub type PREAD_PROCESS_MEMORY_ROUTINE = Option windows_core::BOOL>; +pub type PREAD_PROCESS_MEMORY_ROUTINE64 = Option windows_core::BOOL>; pub const PREVIOUS_FATAL_ABNORMAL_RESET_ERROR: BUGCHECK_ERROR = BUGCHECK_ERROR(373u32); pub const PROCESS1_INITIALIZATION_FAILED: BUGCHECK_ERROR = BUGCHECK_ERROR(107u32); pub const PROCESSOR_DRIVER_INTERNAL: BUGCHECK_ERROR = BUGCHECK_ERROR(323u32); @@ -7985,68 +7985,68 @@ pub const PROP_INFO_FULLNAME: PROP_INFO_FLAGS = PROP_INFO_FLAGS(32i32); pub const PROP_INFO_NAME: PROP_INFO_FLAGS = PROP_INFO_FLAGS(1i32); pub const PROP_INFO_TYPE: PROP_INFO_FLAGS = PROP_INFO_FLAGS(2i32); pub const PROP_INFO_VALUE: PROP_INFO_FLAGS = PROP_INFO_FLAGS(4i32); -pub type PSYMBOLSERVERBYINDEXPROC = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERBYINDEXPROCA = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERBYINDEXPROCW = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERCALLBACKPROC = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERCLOSEPROC = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERDELTANAME = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERDELTANAMEW = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERGETINDEXSTRING = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERGETINDEXSTRINGW = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERGETOPTIONDATAPROC = Option super::super::super::Foundation::BOOL>; +pub type PSYMBOLSERVERBYINDEXPROC = Option windows_core::BOOL>; +pub type PSYMBOLSERVERBYINDEXPROCA = Option windows_core::BOOL>; +pub type PSYMBOLSERVERBYINDEXPROCW = Option windows_core::BOOL>; +pub type PSYMBOLSERVERCALLBACKPROC = Option windows_core::BOOL>; +pub type PSYMBOLSERVERCLOSEPROC = Option windows_core::BOOL>; +pub type PSYMBOLSERVERDELTANAME = Option windows_core::BOOL>; +pub type PSYMBOLSERVERDELTANAMEW = Option windows_core::BOOL>; +pub type PSYMBOLSERVERGETINDEXSTRING = Option windows_core::BOOL>; +pub type PSYMBOLSERVERGETINDEXSTRINGW = Option windows_core::BOOL>; +pub type PSYMBOLSERVERGETOPTIONDATAPROC = Option windows_core::BOOL>; pub type PSYMBOLSERVERGETOPTIONSPROC = Option usize>; -pub type PSYMBOLSERVERGETSUPPLEMENT = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERGETSUPPLEMENTW = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERGETVERSION = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERISSTORE = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERISSTOREW = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERMESSAGEPROC = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVEROPENPROC = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERPINGPROC = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERPINGPROCA = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERPINGPROCW = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERPINGPROCWEX = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERPROC = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERPROCA = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERPROCW = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERSETHTTPAUTHHEADER = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERSETOPTIONSPROC = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERSETOPTIONSWPROC = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERSTOREFILE = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERSTOREFILEW = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERSTORESUPPLEMENT = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOLSERVERSTORESUPPLEMENTW = Option super::super::super::Foundation::BOOL>; +pub type PSYMBOLSERVERGETSUPPLEMENT = Option windows_core::BOOL>; +pub type PSYMBOLSERVERGETSUPPLEMENTW = Option windows_core::BOOL>; +pub type PSYMBOLSERVERGETVERSION = Option windows_core::BOOL>; +pub type PSYMBOLSERVERISSTORE = Option windows_core::BOOL>; +pub type PSYMBOLSERVERISSTOREW = Option windows_core::BOOL>; +pub type PSYMBOLSERVERMESSAGEPROC = Option windows_core::BOOL>; +pub type PSYMBOLSERVEROPENPROC = Option windows_core::BOOL>; +pub type PSYMBOLSERVERPINGPROC = Option windows_core::BOOL>; +pub type PSYMBOLSERVERPINGPROCA = Option windows_core::BOOL>; +pub type PSYMBOLSERVERPINGPROCW = Option windows_core::BOOL>; +pub type PSYMBOLSERVERPINGPROCWEX = Option windows_core::BOOL>; +pub type PSYMBOLSERVERPROC = Option windows_core::BOOL>; +pub type PSYMBOLSERVERPROCA = Option windows_core::BOOL>; +pub type PSYMBOLSERVERPROCW = Option windows_core::BOOL>; +pub type PSYMBOLSERVERSETHTTPAUTHHEADER = Option windows_core::BOOL>; +pub type PSYMBOLSERVERSETOPTIONSPROC = Option windows_core::BOOL>; +pub type PSYMBOLSERVERSETOPTIONSWPROC = Option windows_core::BOOL>; +pub type PSYMBOLSERVERSTOREFILE = Option windows_core::BOOL>; +pub type PSYMBOLSERVERSTOREFILEW = Option windows_core::BOOL>; +pub type PSYMBOLSERVERSTORESUPPLEMENT = Option windows_core::BOOL>; +pub type PSYMBOLSERVERSTORESUPPLEMENTW = Option windows_core::BOOL>; pub type PSYMBOLSERVERVERSION = Option u32>; -pub type PSYMBOLSERVERWEXPROC = Option super::super::super::Foundation::BOOL>; +pub type PSYMBOLSERVERWEXPROC = Option windows_core::BOOL>; pub type PSYMBOL_FUNCENTRY_CALLBACK = Option *mut core::ffi::c_void>; pub type PSYMBOL_FUNCENTRY_CALLBACK64 = Option *mut core::ffi::c_void>; #[cfg(target_arch = "x86")] -pub type PSYMBOL_REGISTERED_CALLBACK = Option super::super::super::Foundation::BOOL>; -pub type PSYMBOL_REGISTERED_CALLBACK64 = Option super::super::super::Foundation::BOOL>; -pub type PSYM_ENUMERATESYMBOLS_CALLBACK = Option super::super::super::Foundation::BOOL>; -pub type PSYM_ENUMERATESYMBOLS_CALLBACKW = Option super::super::super::Foundation::BOOL>; -pub type PSYM_ENUMLINES_CALLBACK = Option super::super::super::Foundation::BOOL>; -pub type PSYM_ENUMLINES_CALLBACKW = Option super::super::super::Foundation::BOOL>; +pub type PSYMBOL_REGISTERED_CALLBACK = Option windows_core::BOOL>; +pub type PSYMBOL_REGISTERED_CALLBACK64 = Option windows_core::BOOL>; +pub type PSYM_ENUMERATESYMBOLS_CALLBACK = Option windows_core::BOOL>; +pub type PSYM_ENUMERATESYMBOLS_CALLBACKW = Option windows_core::BOOL>; +pub type PSYM_ENUMLINES_CALLBACK = Option windows_core::BOOL>; +pub type PSYM_ENUMLINES_CALLBACKW = Option windows_core::BOOL>; #[cfg(target_arch = "x86")] -pub type PSYM_ENUMMODULES_CALLBACK = Option super::super::super::Foundation::BOOL>; -pub type PSYM_ENUMMODULES_CALLBACK64 = Option super::super::super::Foundation::BOOL>; -pub type PSYM_ENUMMODULES_CALLBACKW64 = Option super::super::super::Foundation::BOOL>; -pub type PSYM_ENUMPROCESSES_CALLBACK = Option super::super::super::Foundation::BOOL>; -pub type PSYM_ENUMSOURCEFILES_CALLBACK = Option super::super::super::Foundation::BOOL>; -pub type PSYM_ENUMSOURCEFILES_CALLBACKW = Option super::super::super::Foundation::BOOL>; +pub type PSYM_ENUMMODULES_CALLBACK = Option windows_core::BOOL>; +pub type PSYM_ENUMMODULES_CALLBACK64 = Option windows_core::BOOL>; +pub type PSYM_ENUMMODULES_CALLBACKW64 = Option windows_core::BOOL>; +pub type PSYM_ENUMPROCESSES_CALLBACK = Option windows_core::BOOL>; +pub type PSYM_ENUMSOURCEFILES_CALLBACK = Option windows_core::BOOL>; +pub type PSYM_ENUMSOURCEFILES_CALLBACKW = Option windows_core::BOOL>; #[cfg(target_arch = "x86")] -pub type PSYM_ENUMSYMBOLS_CALLBACK = Option super::super::super::Foundation::BOOL>; -pub type PSYM_ENUMSYMBOLS_CALLBACK64 = Option super::super::super::Foundation::BOOL>; -pub type PSYM_ENUMSYMBOLS_CALLBACK64W = Option super::super::super::Foundation::BOOL>; +pub type PSYM_ENUMSYMBOLS_CALLBACK = Option windows_core::BOOL>; +pub type PSYM_ENUMSYMBOLS_CALLBACK64 = Option windows_core::BOOL>; +pub type PSYM_ENUMSYMBOLS_CALLBACK64W = Option windows_core::BOOL>; #[cfg(target_arch = "x86")] -pub type PSYM_ENUMSYMBOLS_CALLBACKW = Option super::super::super::Foundation::BOOL>; +pub type PSYM_ENUMSYMBOLS_CALLBACKW = Option windows_core::BOOL>; #[cfg(target_arch = "x86")] pub type PTRANSLATE_ADDRESS_ROUTINE = Option u32>; pub type PTRANSLATE_ADDRESS_ROUTINE64 = Option u64>; #[cfg(feature = "Win32_System_Kernel")] pub type PVECTORED_EXCEPTION_HANDLER = Option i32>; -pub type PWAITCHAINCALLBACK = Option; +pub type PWAITCHAINCALLBACK = Option; pub const ProcessVmCountersStream: MINIDUMP_STREAM_TYPE = MINIDUMP_STREAM_TYPE(22i32); pub const QUOTA_UNDERFLOW: BUGCHECK_ERROR = BUGCHECK_ERROR(33u32); pub const RAMDISK_BOOT_INITIALIZATION_FAILED: BUGCHECK_ERROR = BUGCHECK_ERROR(248u32); @@ -8289,8 +8289,8 @@ pub struct STACKFRAME { pub AddrStack: ADDRESS, pub FuncTableEntry: *mut core::ffi::c_void, pub Params: [u32; 4], - pub Far: super::super::super::Foundation::BOOL, - pub Virtual: super::super::super::Foundation::BOOL, + pub Far: windows_core::BOOL, + pub Virtual: windows_core::BOOL, pub Reserved: [u32; 3], pub KdHelp: KDHELP, pub AddrBStore: ADDRESS, @@ -8311,8 +8311,8 @@ pub struct STACKFRAME64 { pub AddrBStore: ADDRESS64, pub FuncTableEntry: *mut core::ffi::c_void, pub Params: [u64; 4], - pub Far: super::super::super::Foundation::BOOL, - pub Virtual: super::super::super::Foundation::BOOL, + pub Far: windows_core::BOOL, + pub Virtual: windows_core::BOOL, pub Reserved: [u64; 3], pub KdHelp: KDHELP64, } @@ -8331,8 +8331,8 @@ pub struct STACKFRAME_EX { pub AddrBStore: ADDRESS64, pub FuncTableEntry: *mut core::ffi::c_void, pub Params: [u64; 4], - pub Far: super::super::super::Foundation::BOOL, - pub Virtual: super::super::super::Foundation::BOOL, + pub Far: windows_core::BOOL, + pub Virtual: windows_core::BOOL, pub Reserved: [u64; 3], pub KdHelp: KDHELP64, pub StackFrameSize: u32, @@ -8347,8 +8347,8 @@ pub const STORAGE_DEVICE_ABNORMALITY_DETECTED: BUGCHECK_ERROR = BUGCHECK_ERROR(3 pub const STORAGE_MINIPORT_ERROR: BUGCHECK_ERROR = BUGCHECK_ERROR(240u32); pub const STORE_DATA_STRUCTURE_CORRUPTION: BUGCHECK_ERROR = BUGCHECK_ERROR(455u32); pub const STREAMS_INTERNAL_ERROR: BUGCHECK_ERROR = BUGCHECK_ERROR(75u32); -pub type SYMADDSOURCESTREAM = Option super::super::super::Foundation::BOOL>; -pub type SYMADDSOURCESTREAMA = Option super::super::super::Foundation::BOOL>; +pub type SYMADDSOURCESTREAM = Option windows_core::BOOL>; +pub type SYMADDSOURCESTREAMA = Option windows_core::BOOL>; pub const SYMBOLIC_INITIALIZATION_FAILED: BUGCHECK_ERROR = BUGCHECK_ERROR(100u32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -8555,7 +8555,7 @@ impl Default for SYMSRV_EXTENDED_OUTPUT_DATA { pub struct SYMSRV_INDEX_INFO { pub sizeofstruct: u32, pub file: [i8; 261], - pub stripped: super::super::super::Foundation::BOOL, + pub stripped: windows_core::BOOL, pub timestamp: u32, pub size: u32, pub dbgfile: [i8; 261], @@ -8574,7 +8574,7 @@ impl Default for SYMSRV_INDEX_INFO { pub struct SYMSRV_INDEX_INFOW { pub sizeofstruct: u32, pub file: [u16; 261], - pub stripped: super::super::super::Foundation::BOOL, + pub stripped: windows_core::BOOL, pub timestamp: u32, pub size: u32, pub dbgfile: [u16; 261], @@ -8944,7 +8944,7 @@ impl Default for WAITCHAIN_NODE_INFO_0 { pub struct WAITCHAIN_NODE_INFO_0_0 { pub ObjectName: [u16; 128], pub Timeout: i64, - pub Alertable: super::super::super::Foundation::BOOL, + pub Alertable: windows_core::BOOL, } impl Default for WAITCHAIN_NODE_INFO_0_0 { fn default() -> Self { 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 408f12b756..d8d31e9c8e 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 @@ -2567,7 +2567,7 @@ impl Default for PAYLOAD_FILTER_PREDICATE { pub struct PAYLOAD_OPERATOR(pub i32); pub type PENABLECALLBACK = Option; #[cfg(feature = "Win32_System_Time")] -pub type PETW_BUFFER_CALLBACK = Option super::super::super::Foundation::BOOL>; +pub type PETW_BUFFER_CALLBACK = Option windows_core::BOOL>; pub type PETW_BUFFER_COMPLETION_CALLBACK = Option; pub type PEVENT_CALLBACK = Option; pub type PEVENT_RECORD_CALLBACK = Option; diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ProcessSnapshotting/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ProcessSnapshotting/mod.rs index 93a6cb5a45..6361cf8f3d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ProcessSnapshotting/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ProcessSnapshotting/mod.rs @@ -262,8 +262,8 @@ impl Default for PSS_HANDLE_ENTRY_0 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct PSS_HANDLE_ENTRY_0_3 { - pub ManualReset: super::super::super::Foundation::BOOL, - pub Signaled: super::super::super::Foundation::BOOL, + pub ManualReset: windows_core::BOOL, + pub Signaled: windows_core::BOOL, } impl Default for PSS_HANDLE_ENTRY_0_3 { fn default() -> Self { @@ -274,7 +274,7 @@ impl Default for PSS_HANDLE_ENTRY_0_3 { #[derive(Clone, Copy, Debug, PartialEq)] pub struct PSS_HANDLE_ENTRY_0_2 { pub CurrentCount: i32, - pub Abandoned: super::super::super::Foundation::BOOL, + pub Abandoned: windows_core::BOOL, pub OwnerProcessId: u32, pub OwnerThreadId: u32, } diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ToolHelp/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ToolHelp/mod.rs index 8ba28bf14b..15cfd88d87 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ToolHelp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ToolHelp/mod.rs @@ -6,77 +6,77 @@ pub unsafe fn CreateToolhelp32Snapshot(dwflags: CREATE_TOOLHELP_SNAPSHOT_FLAGS, } #[inline] pub unsafe fn Heap32First(lphe: *mut HEAPENTRY32, th32processid: u32, th32heapid: usize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Heap32First(lphe : *mut HEAPENTRY32, th32processid : u32, th32heapid : usize) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Heap32First(lphe : *mut HEAPENTRY32, th32processid : u32, th32heapid : usize) -> windows_core::BOOL); unsafe { Heap32First(lphe as _, th32processid, th32heapid).ok() } } #[inline] pub unsafe fn Heap32ListFirst(hsnapshot: super::super::super::Foundation::HANDLE, lphl: *mut HEAPLIST32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Heap32ListFirst(hsnapshot : super::super::super::Foundation:: HANDLE, lphl : *mut HEAPLIST32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Heap32ListFirst(hsnapshot : super::super::super::Foundation:: HANDLE, lphl : *mut HEAPLIST32) -> windows_core::BOOL); unsafe { Heap32ListFirst(hsnapshot, lphl as _).ok() } } #[inline] pub unsafe fn Heap32ListNext(hsnapshot: super::super::super::Foundation::HANDLE, lphl: *mut HEAPLIST32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Heap32ListNext(hsnapshot : super::super::super::Foundation:: HANDLE, lphl : *mut HEAPLIST32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Heap32ListNext(hsnapshot : super::super::super::Foundation:: HANDLE, lphl : *mut HEAPLIST32) -> windows_core::BOOL); unsafe { Heap32ListNext(hsnapshot, lphl as _).ok() } } #[inline] pub unsafe fn Heap32Next(lphe: *mut HEAPENTRY32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Heap32Next(lphe : *mut HEAPENTRY32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Heap32Next(lphe : *mut HEAPENTRY32) -> windows_core::BOOL); unsafe { Heap32Next(lphe as _).ok() } } #[inline] pub unsafe fn Module32First(hsnapshot: super::super::super::Foundation::HANDLE, lpme: *mut MODULEENTRY32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Module32First(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Module32First(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32) -> windows_core::BOOL); unsafe { Module32First(hsnapshot, lpme as _).ok() } } #[inline] pub unsafe fn Module32FirstW(hsnapshot: super::super::super::Foundation::HANDLE, lpme: *mut MODULEENTRY32W) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Module32FirstW(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32W) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Module32FirstW(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32W) -> windows_core::BOOL); unsafe { Module32FirstW(hsnapshot, lpme as _).ok() } } #[inline] pub unsafe fn Module32Next(hsnapshot: super::super::super::Foundation::HANDLE, lpme: *mut MODULEENTRY32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Module32Next(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Module32Next(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32) -> windows_core::BOOL); unsafe { Module32Next(hsnapshot, lpme as _).ok() } } #[inline] pub unsafe fn Module32NextW(hsnapshot: super::super::super::Foundation::HANDLE, lpme: *mut MODULEENTRY32W) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Module32NextW(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32W) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Module32NextW(hsnapshot : super::super::super::Foundation:: HANDLE, lpme : *mut MODULEENTRY32W) -> windows_core::BOOL); unsafe { Module32NextW(hsnapshot, lpme as _).ok() } } #[inline] pub unsafe fn Process32First(hsnapshot: super::super::super::Foundation::HANDLE, lppe: *mut PROCESSENTRY32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Process32First(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Process32First(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32) -> windows_core::BOOL); unsafe { Process32First(hsnapshot, lppe as _).ok() } } #[inline] pub unsafe fn Process32FirstW(hsnapshot: super::super::super::Foundation::HANDLE, lppe: *mut PROCESSENTRY32W) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Process32FirstW(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32W) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Process32FirstW(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32W) -> windows_core::BOOL); unsafe { Process32FirstW(hsnapshot, lppe as _).ok() } } #[inline] pub unsafe fn Process32Next(hsnapshot: super::super::super::Foundation::HANDLE, lppe: *mut PROCESSENTRY32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Process32Next(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Process32Next(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32) -> windows_core::BOOL); unsafe { Process32Next(hsnapshot, lppe as _).ok() } } #[inline] pub unsafe fn Process32NextW(hsnapshot: super::super::super::Foundation::HANDLE, lppe: *mut PROCESSENTRY32W) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Process32NextW(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32W) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Process32NextW(hsnapshot : super::super::super::Foundation:: HANDLE, lppe : *mut PROCESSENTRY32W) -> windows_core::BOOL); unsafe { Process32NextW(hsnapshot, lppe as _).ok() } } #[inline] pub unsafe fn Thread32First(hsnapshot: super::super::super::Foundation::HANDLE, lpte: *mut THREADENTRY32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Thread32First(hsnapshot : super::super::super::Foundation:: HANDLE, lpte : *mut THREADENTRY32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Thread32First(hsnapshot : super::super::super::Foundation:: HANDLE, lpte : *mut THREADENTRY32) -> windows_core::BOOL); unsafe { Thread32First(hsnapshot, lpte as _).ok() } } #[inline] pub unsafe fn Thread32Next(hsnapshot: super::super::super::Foundation::HANDLE, lpte: *mut THREADENTRY32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn Thread32Next(hsnapshot : super::super::super::Foundation:: HANDLE, lpte : *mut THREADENTRY32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn Thread32Next(hsnapshot : super::super::super::Foundation:: HANDLE, lpte : *mut THREADENTRY32) -> windows_core::BOOL); unsafe { Thread32Next(hsnapshot, lpte as _).ok() } } #[inline] -pub unsafe fn Toolhelp32ReadProcessMemory(th32processid: u32, lpbaseaddress: *const core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, cbread: usize, lpnumberofbytesread: *mut usize) -> super::super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn Toolhelp32ReadProcessMemory(th32processid : u32, lpbaseaddress : *const core::ffi::c_void, lpbuffer : *mut core::ffi::c_void, cbread : usize, lpnumberofbytesread : *mut usize) -> super::super::super::Foundation:: BOOL); +pub unsafe fn Toolhelp32ReadProcessMemory(th32processid: u32, lpbaseaddress: *const core::ffi::c_void, lpbuffer: *mut core::ffi::c_void, cbread: usize, lpnumberofbytesread: *mut usize) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn Toolhelp32ReadProcessMemory(th32processid : u32, lpbaseaddress : *const core::ffi::c_void, lpbuffer : *mut core::ffi::c_void, cbread : usize, lpnumberofbytesread : *mut usize) -> windows_core::BOOL); unsafe { Toolhelp32ReadProcessMemory(th32processid, lpbaseaddress, lpbuffer as _, cbread, lpnumberofbytesread as _) } } #[repr(transparent)] 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 2a28599400..45ed9eec77 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/mod.rs @@ -302,7 +302,7 @@ impl IDtcLuRecoveryInitiatedByDtcTransWork { pub unsafe fn HandleErrorFromOurXln(&self, error: DTCLUXLNERROR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).HandleErrorFromOurXln)(windows_core::Interface::as_raw(self), error).ok() } } - pub unsafe fn CheckForCompareStates(&self, fcomparestates: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn CheckForCompareStates(&self, fcomparestates: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).CheckForCompareStates)(windows_core::Interface::as_raw(self), fcomparestates as _).ok() } } pub unsafe fn GetOurTransIdSize(&self, pcbourtransid: *mut u32) -> windows_core::Result<()> { @@ -335,7 +335,7 @@ pub struct IDtcLuRecoveryInitiatedByDtcTransWork_Vtbl { pub HandleConfirmationFromOurXln: unsafe extern "system" fn(*mut core::ffi::c_void, DTCLUXLNCONFIRMATION) -> windows_core::HRESULT, pub HandleTheirXlnResponse: unsafe extern "system" fn(*mut core::ffi::c_void, DTCLUXLN, *mut u8, u32, u32, *mut DTCLUXLNCONFIRMATION) -> windows_core::HRESULT, pub HandleErrorFromOurXln: unsafe extern "system" fn(*mut core::ffi::c_void, DTCLUXLNERROR) -> windows_core::HRESULT, - pub CheckForCompareStates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CheckForCompareStates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetOurTransIdSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetOurCompareStates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8, *mut DTCLUCOMPARESTATE) -> windows_core::HRESULT, pub HandleTheirCompareStatesResponse: unsafe extern "system" fn(*mut core::ffi::c_void, DTCLUCOMPARESTATE, *mut DTCLUCOMPARESTATESCONFIRMATION) -> windows_core::HRESULT, @@ -350,7 +350,7 @@ pub trait IDtcLuRecoveryInitiatedByDtcTransWork_Impl: windows_core::IUnknownImpl fn HandleConfirmationFromOurXln(&self, confirmation: DTCLUXLNCONFIRMATION) -> windows_core::Result<()>; fn HandleTheirXlnResponse(&self, xln: DTCLUXLN, premotelogname: *mut u8, cbremotelogname: u32, dwprotocol: u32, pconfirmation: *mut DTCLUXLNCONFIRMATION) -> windows_core::Result<()>; fn HandleErrorFromOurXln(&self, error: DTCLUXLNERROR) -> windows_core::Result<()>; - fn CheckForCompareStates(&self, fcomparestates: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn CheckForCompareStates(&self, fcomparestates: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetOurTransIdSize(&self, pcbourtransid: *mut u32) -> windows_core::Result<()>; fn GetOurCompareStates(&self, pourtransid: *mut u8, pcomparestate: *mut DTCLUCOMPARESTATE) -> windows_core::Result<()>; fn HandleTheirCompareStatesResponse(&self, comparestate: DTCLUCOMPARESTATE, pconfirmation: *mut DTCLUCOMPARESTATESCONFIRMATION) -> windows_core::Result<()>; @@ -391,7 +391,7 @@ impl IDtcLuRecoveryInitiatedByDtcTransWork_Vtbl { IDtcLuRecoveryInitiatedByDtcTransWork_Impl::HandleErrorFromOurXln(this, core::mem::transmute_copy(&error)).into() } } - unsafe extern "system" fn CheckForCompareStates(this: *mut core::ffi::c_void, fcomparestates: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CheckForCompareStates(this: *mut core::ffi::c_void, fcomparestates: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRecoveryInitiatedByDtcTransWork_Impl::CheckForCompareStates(this, core::mem::transmute_copy(&fcomparestates)).into() @@ -642,7 +642,7 @@ impl IDtcLuRmEnlistment { #[repr(C)] pub struct IDtcLuRmEnlistment_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Unplug: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Unplug: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub BackedOut: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub BackOut: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Committed: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -650,7 +650,7 @@ pub struct IDtcLuRmEnlistment_Vtbl { pub RequestCommit: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IDtcLuRmEnlistment_Impl: windows_core::IUnknownImpl { - fn Unplug(&self, fconversationlost: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Unplug(&self, fconversationlost: windows_core::BOOL) -> windows_core::Result<()>; fn BackedOut(&self) -> windows_core::Result<()>; fn BackOut(&self) -> windows_core::Result<()>; fn Committed(&self) -> windows_core::Result<()>; @@ -659,7 +659,7 @@ pub trait IDtcLuRmEnlistment_Impl: windows_core::IUnknownImpl { } impl IDtcLuRmEnlistment_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Unplug(this: *mut core::ffi::c_void, fconversationlost: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Unplug(this: *mut core::ffi::c_void, fconversationlost: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuRmEnlistment_Impl::Unplug(this, core::mem::transmute_copy(&fconversationlost)).into() @@ -901,7 +901,7 @@ impl IDtcLuSubordinateDtc { #[repr(C)] pub struct IDtcLuSubordinateDtc_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Unplug: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Unplug: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub BackedOut: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub BackOut: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Committed: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -910,7 +910,7 @@ pub struct IDtcLuSubordinateDtc_Vtbl { pub RequestCommit: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IDtcLuSubordinateDtc_Impl: windows_core::IUnknownImpl { - fn Unplug(&self, fconversationlost: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Unplug(&self, fconversationlost: windows_core::BOOL) -> windows_core::Result<()>; fn BackedOut(&self) -> windows_core::Result<()>; fn BackOut(&self) -> windows_core::Result<()>; fn Committed(&self) -> windows_core::Result<()>; @@ -920,7 +920,7 @@ pub trait IDtcLuSubordinateDtc_Impl: windows_core::IUnknownImpl { } impl IDtcLuSubordinateDtc_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Unplug(this: *mut core::ffi::c_void, fconversationlost: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Unplug(this: *mut core::ffi::c_void, fconversationlost: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcLuSubordinateDtc_Impl::Unplug(this, core::mem::transmute_copy(&fconversationlost)).into() @@ -1133,7 +1133,7 @@ impl windows_core::RuntimeName for IDtcLuSubordinateDtcSink {} windows_core::imp::define_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 { + pub unsafe fn GetAnyNetworkAccess(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAnyNetworkAccess)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1142,7 +1142,7 @@ impl IDtcNetworkAccessConfig { pub unsafe fn SetAnyNetworkAccess(&self, banynetworkaccess: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetAnyNetworkAccess)(windows_core::Interface::as_raw(self), banynetworkaccess.into()).ok() } } - pub unsafe fn GetNetworkAdministrationAccess(&self) -> windows_core::Result { + pub unsafe fn GetNetworkAdministrationAccess(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNetworkAdministrationAccess)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1151,7 +1151,7 @@ impl IDtcNetworkAccessConfig { pub unsafe fn SetNetworkAdministrationAccess(&self, bnetworkadministrationaccess: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetNetworkAdministrationAccess)(windows_core::Interface::as_raw(self), bnetworkadministrationaccess.into()).ok() } } - pub unsafe fn GetNetworkTransactionAccess(&self) -> windows_core::Result { + pub unsafe fn GetNetworkTransactionAccess(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNetworkTransactionAccess)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1160,7 +1160,7 @@ impl IDtcNetworkAccessConfig { pub unsafe fn SetNetworkTransactionAccess(&self, bnetworktransactionaccess: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetNetworkTransactionAccess)(windows_core::Interface::as_raw(self), bnetworktransactionaccess.into()).ok() } } - pub unsafe fn GetNetworkClientAccess(&self) -> windows_core::Result { + pub unsafe fn GetNetworkClientAccess(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNetworkClientAccess)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1169,7 +1169,7 @@ impl IDtcNetworkAccessConfig { pub unsafe fn SetNetworkClientAccess(&self, bnetworkclientaccess: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetNetworkClientAccess)(windows_core::Interface::as_raw(self), bnetworkclientaccess.into()).ok() } } - pub unsafe fn GetNetworkTIPAccess(&self) -> windows_core::Result { + pub unsafe fn GetNetworkTIPAccess(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNetworkTIPAccess)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1178,7 +1178,7 @@ impl IDtcNetworkAccessConfig { pub unsafe fn SetNetworkTIPAccess(&self, bnetworktipaccess: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetNetworkTIPAccess)(windows_core::Interface::as_raw(self), bnetworktipaccess.into()).ok() } } - pub unsafe fn GetXAAccess(&self) -> windows_core::Result { + pub unsafe fn GetXAAccess(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetXAAccess)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1194,38 +1194,38 @@ impl IDtcNetworkAccessConfig { #[repr(C)] pub struct IDtcNetworkAccessConfig_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetAnyNetworkAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetAnyNetworkAccess: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetNetworkAdministrationAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetNetworkAdministrationAccess: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetNetworkTransactionAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetNetworkTransactionAccess: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetNetworkClientAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetNetworkClientAccess: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetNetworkTIPAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetNetworkTIPAccess: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetXAAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetXAAccess: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetAnyNetworkAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetAnyNetworkAccess: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetNetworkAdministrationAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetNetworkAdministrationAccess: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetNetworkTransactionAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetNetworkTransactionAccess: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetNetworkClientAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetNetworkClientAccess: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetNetworkTIPAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetNetworkTIPAccess: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetXAAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetXAAccess: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub RestartDtcService: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IDtcNetworkAccessConfig_Impl: windows_core::IUnknownImpl { - fn GetAnyNetworkAccess(&self) -> windows_core::Result; - fn SetAnyNetworkAccess(&self, banynetworkaccess: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetNetworkAdministrationAccess(&self) -> windows_core::Result; - fn SetNetworkAdministrationAccess(&self, bnetworkadministrationaccess: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetNetworkTransactionAccess(&self) -> windows_core::Result; - fn SetNetworkTransactionAccess(&self, bnetworktransactionaccess: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetNetworkClientAccess(&self) -> windows_core::Result; - fn SetNetworkClientAccess(&self, bnetworkclientaccess: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetNetworkTIPAccess(&self) -> windows_core::Result; - fn SetNetworkTIPAccess(&self, bnetworktipaccess: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetXAAccess(&self) -> windows_core::Result; - fn SetXAAccess(&self, bxaaccess: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetAnyNetworkAccess(&self) -> windows_core::Result; + fn SetAnyNetworkAccess(&self, banynetworkaccess: windows_core::BOOL) -> windows_core::Result<()>; + fn GetNetworkAdministrationAccess(&self) -> windows_core::Result; + fn SetNetworkAdministrationAccess(&self, bnetworkadministrationaccess: windows_core::BOOL) -> windows_core::Result<()>; + fn GetNetworkTransactionAccess(&self) -> windows_core::Result; + fn SetNetworkTransactionAccess(&self, bnetworktransactionaccess: windows_core::BOOL) -> windows_core::Result<()>; + fn GetNetworkClientAccess(&self) -> windows_core::Result; + fn SetNetworkClientAccess(&self, bnetworkclientaccess: windows_core::BOOL) -> windows_core::Result<()>; + fn GetNetworkTIPAccess(&self) -> windows_core::Result; + fn SetNetworkTIPAccess(&self, bnetworktipaccess: windows_core::BOOL) -> windows_core::Result<()>; + fn GetXAAccess(&self) -> windows_core::Result; + fn SetXAAccess(&self, bxaaccess: windows_core::BOOL) -> windows_core::Result<()>; fn RestartDtcService(&self) -> windows_core::Result<()>; } impl IDtcNetworkAccessConfig_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetAnyNetworkAccess(this: *mut core::ffi::c_void, pbanynetworkaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetAnyNetworkAccess(this: *mut core::ffi::c_void, pbanynetworkaccess: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig_Impl::GetAnyNetworkAccess(this) { @@ -1237,13 +1237,13 @@ impl IDtcNetworkAccessConfig_Vtbl { } } } - unsafe extern "system" fn SetAnyNetworkAccess(this: *mut core::ffi::c_void, banynetworkaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAnyNetworkAccess(this: *mut core::ffi::c_void, banynetworkaccess: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig_Impl::SetAnyNetworkAccess(this, core::mem::transmute_copy(&banynetworkaccess)).into() } } - unsafe extern "system" fn GetNetworkAdministrationAccess(this: *mut core::ffi::c_void, pbnetworkadministrationaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetNetworkAdministrationAccess(this: *mut core::ffi::c_void, pbnetworkadministrationaccess: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig_Impl::GetNetworkAdministrationAccess(this) { @@ -1255,13 +1255,13 @@ impl IDtcNetworkAccessConfig_Vtbl { } } } - unsafe extern "system" fn SetNetworkAdministrationAccess(this: *mut core::ffi::c_void, bnetworkadministrationaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetNetworkAdministrationAccess(this: *mut core::ffi::c_void, bnetworkadministrationaccess: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig_Impl::SetNetworkAdministrationAccess(this, core::mem::transmute_copy(&bnetworkadministrationaccess)).into() } } - unsafe extern "system" fn GetNetworkTransactionAccess(this: *mut core::ffi::c_void, pbnetworktransactionaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetNetworkTransactionAccess(this: *mut core::ffi::c_void, pbnetworktransactionaccess: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig_Impl::GetNetworkTransactionAccess(this) { @@ -1273,13 +1273,13 @@ impl IDtcNetworkAccessConfig_Vtbl { } } } - unsafe extern "system" fn SetNetworkTransactionAccess(this: *mut core::ffi::c_void, bnetworktransactionaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetNetworkTransactionAccess(this: *mut core::ffi::c_void, bnetworktransactionaccess: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig_Impl::SetNetworkTransactionAccess(this, core::mem::transmute_copy(&bnetworktransactionaccess)).into() } } - unsafe extern "system" fn GetNetworkClientAccess(this: *mut core::ffi::c_void, pbnetworkclientaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetNetworkClientAccess(this: *mut core::ffi::c_void, pbnetworkclientaccess: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig_Impl::GetNetworkClientAccess(this) { @@ -1291,13 +1291,13 @@ impl IDtcNetworkAccessConfig_Vtbl { } } } - unsafe extern "system" fn SetNetworkClientAccess(this: *mut core::ffi::c_void, bnetworkclientaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetNetworkClientAccess(this: *mut core::ffi::c_void, bnetworkclientaccess: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig_Impl::SetNetworkClientAccess(this, core::mem::transmute_copy(&bnetworkclientaccess)).into() } } - unsafe extern "system" fn GetNetworkTIPAccess(this: *mut core::ffi::c_void, pbnetworktipaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetNetworkTIPAccess(this: *mut core::ffi::c_void, pbnetworktipaccess: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig_Impl::GetNetworkTIPAccess(this) { @@ -1309,13 +1309,13 @@ impl IDtcNetworkAccessConfig_Vtbl { } } } - unsafe extern "system" fn SetNetworkTIPAccess(this: *mut core::ffi::c_void, bnetworktipaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetNetworkTIPAccess(this: *mut core::ffi::c_void, bnetworktipaccess: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig_Impl::SetNetworkTIPAccess(this, core::mem::transmute_copy(&bnetworktipaccess)).into() } } - unsafe extern "system" fn GetXAAccess(this: *mut core::ffi::c_void, pbxaaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetXAAccess(this: *mut core::ffi::c_void, pbxaaccess: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig_Impl::GetXAAccess(this) { @@ -1327,7 +1327,7 @@ impl IDtcNetworkAccessConfig_Vtbl { } } } - unsafe extern "system" fn SetXAAccess(this: *mut core::ffi::c_void, bxaaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetXAAccess(this: *mut core::ffi::c_void, bxaaccess: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig_Impl::SetXAAccess(this, core::mem::transmute_copy(&bxaaccess)).into() @@ -1370,13 +1370,13 @@ impl core::ops::Deref for IDtcNetworkAccessConfig2 { } windows_core::imp::interface_hierarchy!(IDtcNetworkAccessConfig2, windows_core::IUnknown, IDtcNetworkAccessConfig); impl IDtcNetworkAccessConfig2 { - pub unsafe fn GetNetworkInboundAccess(&self) -> windows_core::Result { + pub unsafe fn GetNetworkInboundAccess(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNetworkInboundAccess)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetNetworkOutboundAccess(&self) -> windows_core::Result { + pub unsafe fn GetNetworkOutboundAccess(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetNetworkOutboundAccess)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1401,24 +1401,24 @@ impl IDtcNetworkAccessConfig2 { #[repr(C)] pub struct IDtcNetworkAccessConfig2_Vtbl { pub base__: IDtcNetworkAccessConfig_Vtbl, - pub GetNetworkInboundAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetNetworkOutboundAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetNetworkInboundAccess: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetNetworkOutboundAccess: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetNetworkInboundAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub GetNetworkOutboundAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetNetworkInboundAccess: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub SetNetworkOutboundAccess: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetAuthenticationLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AUTHENTICATION_LEVEL) -> windows_core::HRESULT, pub SetAuthenticationLevel: unsafe extern "system" fn(*mut core::ffi::c_void, AUTHENTICATION_LEVEL) -> windows_core::HRESULT, } pub trait IDtcNetworkAccessConfig2_Impl: IDtcNetworkAccessConfig_Impl { - fn GetNetworkInboundAccess(&self) -> windows_core::Result; - fn GetNetworkOutboundAccess(&self) -> windows_core::Result; - fn SetNetworkInboundAccess(&self, binbound: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetNetworkOutboundAccess(&self, boutbound: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetNetworkInboundAccess(&self) -> windows_core::Result; + fn GetNetworkOutboundAccess(&self) -> windows_core::Result; + fn SetNetworkInboundAccess(&self, binbound: windows_core::BOOL) -> windows_core::Result<()>; + fn SetNetworkOutboundAccess(&self, boutbound: windows_core::BOOL) -> windows_core::Result<()>; fn GetAuthenticationLevel(&self) -> windows_core::Result; fn SetAuthenticationLevel(&self, authlevel: AUTHENTICATION_LEVEL) -> windows_core::Result<()>; } impl IDtcNetworkAccessConfig2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetNetworkInboundAccess(this: *mut core::ffi::c_void, pbinbound: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetNetworkInboundAccess(this: *mut core::ffi::c_void, pbinbound: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig2_Impl::GetNetworkInboundAccess(this) { @@ -1430,7 +1430,7 @@ impl IDtcNetworkAccessConfig2_Vtbl { } } } - unsafe extern "system" fn GetNetworkOutboundAccess(this: *mut core::ffi::c_void, pboutbound: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetNetworkOutboundAccess(this: *mut core::ffi::c_void, pboutbound: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig2_Impl::GetNetworkOutboundAccess(this) { @@ -1442,13 +1442,13 @@ impl IDtcNetworkAccessConfig2_Vtbl { } } } - unsafe extern "system" fn SetNetworkInboundAccess(this: *mut core::ffi::c_void, binbound: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetNetworkInboundAccess(this: *mut core::ffi::c_void, binbound: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig2_Impl::SetNetworkInboundAccess(this, core::mem::transmute_copy(&binbound)).into() } } - unsafe extern "system" fn SetNetworkOutboundAccess(this: *mut core::ffi::c_void, boutbound: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetNetworkOutboundAccess(this: *mut core::ffi::c_void, boutbound: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig2_Impl::SetNetworkOutboundAccess(this, core::mem::transmute_copy(&boutbound)).into() @@ -1496,7 +1496,7 @@ impl core::ops::Deref for IDtcNetworkAccessConfig3 { } windows_core::imp::interface_hierarchy!(IDtcNetworkAccessConfig3, windows_core::IUnknown, IDtcNetworkAccessConfig, IDtcNetworkAccessConfig2); impl IDtcNetworkAccessConfig3 { - pub unsafe fn GetLUAccess(&self) -> windows_core::Result { + pub unsafe fn GetLUAccess(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetLUAccess)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1509,16 +1509,16 @@ impl IDtcNetworkAccessConfig3 { #[repr(C)] pub struct IDtcNetworkAccessConfig3_Vtbl { pub base__: IDtcNetworkAccessConfig2_Vtbl, - pub GetLUAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetLUAccess: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetLUAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetLUAccess: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IDtcNetworkAccessConfig3_Impl: IDtcNetworkAccessConfig2_Impl { - fn GetLUAccess(&self) -> windows_core::Result; - fn SetLUAccess(&self, bluaccess: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetLUAccess(&self) -> windows_core::Result; + fn SetLUAccess(&self, bluaccess: windows_core::BOOL) -> windows_core::Result<()>; } impl IDtcNetworkAccessConfig3_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetLUAccess(this: *mut core::ffi::c_void, pbluaccess: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetLUAccess(this: *mut core::ffi::c_void, pbluaccess: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDtcNetworkAccessConfig3_Impl::GetLUAccess(this) { @@ -1530,7 +1530,7 @@ impl IDtcNetworkAccessConfig3_Vtbl { } } } - unsafe extern "system" fn SetLUAccess(this: *mut core::ffi::c_void, bluaccess: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetLUAccess(this: *mut core::ffi::c_void, bluaccess: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcNetworkAccessConfig3_Impl::SetLUAccess(this, core::mem::transmute_copy(&bluaccess)).into() @@ -1563,16 +1563,16 @@ impl IDtcToXaHelper { #[repr(C)] pub struct IDtcToXaHelper_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Close: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Close: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub TranslateTridToXid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, *mut XID) -> windows_core::HRESULT, } pub trait IDtcToXaHelper_Impl: windows_core::IUnknownImpl { - fn Close(&self, i_fdorecovery: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Close(&self, i_fdorecovery: windows_core::BOOL) -> windows_core::Result<()>; fn TranslateTridToXid(&self, pitransaction: windows_core::Ref, pguidbqual: *const windows_core::GUID, pxid: *mut XID) -> windows_core::Result<()>; } impl IDtcToXaHelper_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Close(this: *mut core::ffi::c_void, i_fdorecovery: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void, i_fdorecovery: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcToXaHelper_Impl::Close(this, core::mem::transmute_copy(&i_fdorecovery)).into() @@ -1662,13 +1662,13 @@ pub struct IDtcToXaHelperSinglePipe_Vtbl { pub XARMCreate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, windows_core::PCSTR, *mut u32) -> windows_core::HRESULT, pub ConvertTridToXID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, u32, *mut XID) -> windows_core::HRESULT, pub EnlistWithRM: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub ReleaseRMCookie: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL), + pub ReleaseRMCookie: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL), } pub trait IDtcToXaHelperSinglePipe_Impl: windows_core::IUnknownImpl { fn XARMCreate(&self, pszdsn: &windows_core::PCSTR, pszclientdll: &windows_core::PCSTR, pdwrmcookie: *mut u32) -> windows_core::Result<()>; fn ConvertTridToXID(&self, pdwitrans: *mut u32, dwrmcookie: u32, pxid: *mut XID) -> windows_core::Result<()>; fn EnlistWithRM(&self, dwrmcookie: u32, i_pitransaction: windows_core::Ref, i_pitransres: windows_core::Ref) -> windows_core::Result; - fn ReleaseRMCookie(&self, i_dwrmcookie: u32, i_fnormal: super::super::Foundation::BOOL); + fn ReleaseRMCookie(&self, i_dwrmcookie: u32, i_fnormal: windows_core::BOOL); } impl IDtcToXaHelperSinglePipe_Vtbl { pub const fn new() -> Self { @@ -1696,7 +1696,7 @@ impl IDtcToXaHelperSinglePipe_Vtbl { } } } - unsafe extern "system" fn ReleaseRMCookie(this: *mut core::ffi::c_void, i_dwrmcookie: u32, i_fnormal: super::super::Foundation::BOOL) { + unsafe extern "system" fn ReleaseRMCookie(this: *mut core::ffi::c_void, i_dwrmcookie: u32, i_fnormal: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDtcToXaHelperSinglePipe_Impl::ReleaseRMCookie(this, core::mem::transmute_copy(&i_dwrmcookie), core::mem::transmute_copy(&i_fnormal)) @@ -2020,11 +2020,11 @@ impl IRMHelper { pub struct IRMHelper_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub RMCount: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub RMInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut xa_switch_t, super::super::Foundation::BOOL, windows_core::PCSTR, windows_core::PCSTR, windows_core::GUID) -> windows_core::HRESULT, + pub RMInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut xa_switch_t, windows_core::BOOL, windows_core::PCSTR, windows_core::PCSTR, windows_core::GUID) -> windows_core::HRESULT, } pub trait IRMHelper_Impl: windows_core::IUnknownImpl { fn RMCount(&self, dwctotalnumberofrms: u32) -> windows_core::Result<()>; - fn RMInfo(&self, pxa_switch: *mut xa_switch_t, fcdeclcallingconv: super::super::Foundation::BOOL, pszopenstring: &windows_core::PCSTR, pszclosestring: &windows_core::PCSTR, guidrmrecovery: &windows_core::GUID) -> windows_core::Result<()>; + fn RMInfo(&self, pxa_switch: *mut xa_switch_t, fcdeclcallingconv: windows_core::BOOL, pszopenstring: &windows_core::PCSTR, pszclosestring: &windows_core::PCSTR, guidrmrecovery: &windows_core::GUID) -> windows_core::Result<()>; } impl IRMHelper_Vtbl { pub const fn new() -> Self { @@ -2034,7 +2034,7 @@ impl IRMHelper_Vtbl { IRMHelper_Impl::RMCount(this, core::mem::transmute_copy(&dwctotalnumberofrms)).into() } } - unsafe extern "system" fn RMInfo(this: *mut core::ffi::c_void, pxa_switch: *mut xa_switch_t, fcdeclcallingconv: super::super::Foundation::BOOL, pszopenstring: windows_core::PCSTR, pszclosestring: windows_core::PCSTR, guidrmrecovery: windows_core::GUID) -> windows_core::HRESULT { + unsafe extern "system" fn RMInfo(this: *mut core::ffi::c_void, pxa_switch: *mut xa_switch_t, fcdeclcallingconv: windows_core::BOOL, pszopenstring: windows_core::PCSTR, pszclosestring: windows_core::PCSTR, guidrmrecovery: windows_core::GUID) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRMHelper_Impl::RMInfo(this, core::mem::transmute_copy(&pxa_switch), core::mem::transmute_copy(&fcdeclcallingconv), core::mem::transmute(&pszopenstring), core::mem::transmute(&pszclosestring), core::mem::transmute(&guidrmrecovery)).into() @@ -2623,24 +2623,24 @@ impl ITransaction { #[repr(C)] pub struct ITransaction_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Commit: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, u32, u32) -> windows_core::HRESULT, - pub Abort: unsafe extern "system" fn(*mut core::ffi::c_void, *const BOID, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Commit: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, u32, u32) -> windows_core::HRESULT, + pub Abort: unsafe extern "system" fn(*mut core::ffi::c_void, *const BOID, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, pub GetTransactionInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut XACTTRANSINFO) -> windows_core::HRESULT, } pub trait ITransaction_Impl: windows_core::IUnknownImpl { - fn Commit(&self, fretaining: super::super::Foundation::BOOL, grftc: u32, grfrm: u32) -> windows_core::Result<()>; - fn Abort(&self, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, fasync: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Commit(&self, fretaining: windows_core::BOOL, grftc: u32, grfrm: u32) -> windows_core::Result<()>; + fn Abort(&self, pboidreason: *const BOID, fretaining: windows_core::BOOL, fasync: windows_core::BOOL) -> windows_core::Result<()>; fn GetTransactionInfo(&self, pinfo: *mut XACTTRANSINFO) -> windows_core::Result<()>; } impl ITransaction_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, fretaining: super::super::Foundation::BOOL, grftc: u32, grfrm: u32) -> windows_core::HRESULT { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, fretaining: windows_core::BOOL, grftc: u32, grfrm: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransaction_Impl::Commit(this, core::mem::transmute_copy(&fretaining), core::mem::transmute_copy(&grftc), core::mem::transmute_copy(&grfrm)).into() } } - unsafe extern "system" fn Abort(this: *mut core::ffi::c_void, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, fasync: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Abort(this: *mut core::ffi::c_void, pboidreason: *const BOID, fretaining: windows_core::BOOL, fasync: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransaction_Impl::Abort(this, core::mem::transmute_copy(&pboidreason), core::mem::transmute_copy(&fretaining), core::mem::transmute_copy(&fasync)).into() @@ -3229,26 +3229,26 @@ impl ITransactionOutcomeEvents { #[repr(C)] pub struct ITransactionOutcomeEvents_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Committed: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *const BOID, windows_core::HRESULT) -> windows_core::HRESULT, - pub Aborted: unsafe extern "system" fn(*mut core::ffi::c_void, *const BOID, super::super::Foundation::BOOL, *const BOID, windows_core::HRESULT) -> windows_core::HRESULT, + pub Committed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *const BOID, windows_core::HRESULT) -> windows_core::HRESULT, + pub Aborted: unsafe extern "system" fn(*mut core::ffi::c_void, *const BOID, windows_core::BOOL, *const BOID, windows_core::HRESULT) -> windows_core::HRESULT, pub HeuristicDecision: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const BOID, windows_core::HRESULT) -> windows_core::HRESULT, pub Indoubt: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ITransactionOutcomeEvents_Impl: windows_core::IUnknownImpl { - fn Committed(&self, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::Result<()>; - fn Aborted(&self, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::Result<()>; + fn Committed(&self, fretaining: windows_core::BOOL, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::Result<()>; + fn Aborted(&self, pboidreason: *const BOID, fretaining: windows_core::BOOL, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::Result<()>; fn HeuristicDecision(&self, dwdecision: u32, pboidreason: *const BOID, hr: windows_core::HRESULT) -> windows_core::Result<()>; fn Indoubt(&self) -> windows_core::Result<()>; } impl ITransactionOutcomeEvents_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Committed(this: *mut core::ffi::c_void, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::HRESULT { + unsafe extern "system" fn Committed(this: *mut core::ffi::c_void, fretaining: windows_core::BOOL, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionOutcomeEvents_Impl::Committed(this, core::mem::transmute_copy(&fretaining), core::mem::transmute_copy(&pnewuow), core::mem::transmute_copy(&hr)).into() } } - unsafe extern "system" fn Aborted(this: *mut core::ffi::c_void, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::HRESULT { + unsafe extern "system" fn Aborted(this: *mut core::ffi::c_void, pboidreason: *const BOID, fretaining: windows_core::BOOL, pnewuow: *const BOID, hr: windows_core::HRESULT) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionOutcomeEvents_Impl::Aborted(this, core::mem::transmute_copy(&pboidreason), core::mem::transmute_copy(&fretaining), core::mem::transmute_copy(&pnewuow), core::mem::transmute_copy(&hr)).into() @@ -3424,16 +3424,16 @@ impl ITransactionPhase0NotifyAsync { #[repr(C)] pub struct ITransactionPhase0NotifyAsync_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Phase0Request: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Phase0Request: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub EnlistCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::HRESULT) -> windows_core::HRESULT, } pub trait ITransactionPhase0NotifyAsync_Impl: windows_core::IUnknownImpl { - fn Phase0Request(&self, fabortinghint: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Phase0Request(&self, fabortinghint: windows_core::BOOL) -> windows_core::Result<()>; fn EnlistCompleted(&self, status: windows_core::HRESULT) -> windows_core::Result<()>; } impl ITransactionPhase0NotifyAsync_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Phase0Request(this: *mut core::ffi::c_void, fabortinghint: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Phase0Request(this: *mut core::ffi::c_void, fabortinghint: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionPhase0NotifyAsync_Impl::Phase0Request(this, core::mem::transmute_copy(&fabortinghint)).into() @@ -3601,20 +3601,20 @@ impl ITransactionResource { #[repr(C)] pub struct ITransactionResource_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub PrepareRequest: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, u32, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub PrepareRequest: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, u32, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, pub CommitRequest: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const BOID) -> windows_core::HRESULT, - pub AbortRequest: unsafe extern "system" fn(*mut core::ffi::c_void, *const BOID, super::super::Foundation::BOOL, *const BOID) -> windows_core::HRESULT, + pub AbortRequest: unsafe extern "system" fn(*mut core::ffi::c_void, *const BOID, windows_core::BOOL, *const BOID) -> windows_core::HRESULT, pub TMDown: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ITransactionResource_Impl: windows_core::IUnknownImpl { - fn PrepareRequest(&self, fretaining: super::super::Foundation::BOOL, grfrm: u32, fwantmoniker: super::super::Foundation::BOOL, fsinglephase: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn PrepareRequest(&self, fretaining: windows_core::BOOL, grfrm: u32, fwantmoniker: windows_core::BOOL, fsinglephase: windows_core::BOOL) -> windows_core::Result<()>; fn CommitRequest(&self, grfrm: u32, pnewuow: *const BOID) -> windows_core::Result<()>; - fn AbortRequest(&self, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID) -> windows_core::Result<()>; + fn AbortRequest(&self, pboidreason: *const BOID, fretaining: windows_core::BOOL, pnewuow: *const BOID) -> windows_core::Result<()>; fn TMDown(&self) -> windows_core::Result<()>; } impl ITransactionResource_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn PrepareRequest(this: *mut core::ffi::c_void, fretaining: super::super::Foundation::BOOL, grfrm: u32, fwantmoniker: super::super::Foundation::BOOL, fsinglephase: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn PrepareRequest(this: *mut core::ffi::c_void, fretaining: windows_core::BOOL, grfrm: u32, fwantmoniker: windows_core::BOOL, fsinglephase: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionResource_Impl::PrepareRequest(this, core::mem::transmute_copy(&fretaining), core::mem::transmute_copy(&grfrm), core::mem::transmute_copy(&fwantmoniker), core::mem::transmute_copy(&fsinglephase)).into() @@ -3626,7 +3626,7 @@ impl ITransactionResource_Vtbl { ITransactionResource_Impl::CommitRequest(this, core::mem::transmute_copy(&grfrm), core::mem::transmute_copy(&pnewuow)).into() } } - unsafe extern "system" fn AbortRequest(this: *mut core::ffi::c_void, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID) -> windows_core::HRESULT { + unsafe extern "system" fn AbortRequest(this: *mut core::ffi::c_void, pboidreason: *const BOID, fretaining: windows_core::BOOL, pnewuow: *const BOID) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionResource_Impl::AbortRequest(this, core::mem::transmute_copy(&pboidreason), core::mem::transmute_copy(&fretaining), core::mem::transmute_copy(&pnewuow)).into() @@ -3670,20 +3670,20 @@ impl ITransactionResourceAsync { #[repr(C)] pub struct ITransactionResourceAsync_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub PrepareRequest: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, u32, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub PrepareRequest: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, u32, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, pub CommitRequest: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const BOID) -> windows_core::HRESULT, - pub AbortRequest: unsafe extern "system" fn(*mut core::ffi::c_void, *const BOID, super::super::Foundation::BOOL, *const BOID) -> windows_core::HRESULT, + pub AbortRequest: unsafe extern "system" fn(*mut core::ffi::c_void, *const BOID, windows_core::BOOL, *const BOID) -> windows_core::HRESULT, pub TMDown: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ITransactionResourceAsync_Impl: windows_core::IUnknownImpl { - fn PrepareRequest(&self, fretaining: super::super::Foundation::BOOL, grfrm: u32, fwantmoniker: super::super::Foundation::BOOL, fsinglephase: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn PrepareRequest(&self, fretaining: windows_core::BOOL, grfrm: u32, fwantmoniker: windows_core::BOOL, fsinglephase: windows_core::BOOL) -> windows_core::Result<()>; fn CommitRequest(&self, grfrm: u32, pnewuow: *const BOID) -> windows_core::Result<()>; - fn AbortRequest(&self, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID) -> windows_core::Result<()>; + fn AbortRequest(&self, pboidreason: *const BOID, fretaining: windows_core::BOOL, pnewuow: *const BOID) -> windows_core::Result<()>; fn TMDown(&self) -> windows_core::Result<()>; } impl ITransactionResourceAsync_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn PrepareRequest(this: *mut core::ffi::c_void, fretaining: super::super::Foundation::BOOL, grfrm: u32, fwantmoniker: super::super::Foundation::BOOL, fsinglephase: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn PrepareRequest(this: *mut core::ffi::c_void, fretaining: windows_core::BOOL, grfrm: u32, fwantmoniker: windows_core::BOOL, fsinglephase: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionResourceAsync_Impl::PrepareRequest(this, core::mem::transmute_copy(&fretaining), core::mem::transmute_copy(&grfrm), core::mem::transmute_copy(&fwantmoniker), core::mem::transmute_copy(&fsinglephase)).into() @@ -3695,7 +3695,7 @@ impl ITransactionResourceAsync_Vtbl { ITransactionResourceAsync_Impl::CommitRequest(this, core::mem::transmute_copy(&grfrm), core::mem::transmute_copy(&pnewuow)).into() } } - unsafe extern "system" fn AbortRequest(this: *mut core::ffi::c_void, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID) -> windows_core::HRESULT { + unsafe extern "system" fn AbortRequest(this: *mut core::ffi::c_void, pboidreason: *const BOID, fretaining: windows_core::BOOL, pnewuow: *const BOID) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITransactionResourceAsync_Impl::AbortRequest(this, core::mem::transmute_copy(&pboidreason), core::mem::transmute_copy(&fretaining), core::mem::transmute_copy(&pnewuow)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/Environment/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Environment/mod.rs index 113f512404..27536aae73 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Environment/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Environment/mod.rs @@ -1,6 +1,6 @@ #[inline] pub unsafe fn CallEnclave(lproutine: isize, lpparameter: *const core::ffi::c_void, fwaitforthread: bool, lpreturnvalue: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("vertdll.dll" "system" fn CallEnclave(lproutine : isize, lpparameter : *const core::ffi::c_void, fwaitforthread : super::super::Foundation:: BOOL, lpreturnvalue : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("vertdll.dll" "system" fn CallEnclave(lproutine : isize, lpparameter : *const core::ffi::c_void, fwaitforthread : windows_core::BOOL, lpreturnvalue : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { CallEnclave(lproutine, lpparameter, fwaitforthread.into(), lpreturnvalue as _).ok() } } #[inline] @@ -10,17 +10,17 @@ pub unsafe fn CreateEnclave(hprocess: super::super::Foundation::HANDLE, lpaddres } #[inline] pub unsafe fn CreateEnvironmentBlock(lpenvironment: *mut *mut core::ffi::c_void, htoken: Option, binherit: bool) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn CreateEnvironmentBlock(lpenvironment : *mut *mut core::ffi::c_void, htoken : super::super::Foundation:: HANDLE, binherit : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn CreateEnvironmentBlock(lpenvironment : *mut *mut core::ffi::c_void, htoken : super::super::Foundation:: HANDLE, binherit : windows_core::BOOL) -> windows_core::BOOL); unsafe { CreateEnvironmentBlock(lpenvironment as _, htoken.unwrap_or(core::mem::zeroed()) as _, binherit.into()).ok() } } #[inline] pub unsafe fn DeleteEnclave(lpaddress: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("api-ms-win-core-enclave-l1-1-1.dll" "system" fn DeleteEnclave(lpaddress : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-enclave-l1-1-1.dll" "system" fn DeleteEnclave(lpaddress : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { DeleteEnclave(lpaddress).ok() } } #[inline] pub unsafe fn DestroyEnvironmentBlock(lpenvironment: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn DestroyEnvironmentBlock(lpenvironment : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn DestroyEnvironmentBlock(lpenvironment : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { DestroyEnvironmentBlock(lpenvironment).ok() } } #[inline] @@ -61,7 +61,7 @@ pub unsafe fn ExpandEnvironmentStringsForUserA(htoken: Option, { - windows_targets::link!("userenv.dll" "system" fn ExpandEnvironmentStringsForUserA(htoken : super::super::Foundation:: HANDLE, lpsrc : windows_core::PCSTR, lpdest : windows_core::PSTR, dwsize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn ExpandEnvironmentStringsForUserA(htoken : super::super::Foundation:: HANDLE, lpsrc : windows_core::PCSTR, lpdest : windows_core::PSTR, dwsize : u32) -> windows_core::BOOL); unsafe { ExpandEnvironmentStringsForUserA(htoken.unwrap_or(core::mem::zeroed()) as _, lpsrc.param().abi(), core::mem::transmute(lpdest.as_ptr()), lpdest.len().try_into().unwrap()).ok() } } #[inline] @@ -69,7 +69,7 @@ pub unsafe fn ExpandEnvironmentStringsForUserW(htoken: Option, { - windows_targets::link!("userenv.dll" "system" fn ExpandEnvironmentStringsForUserW(htoken : super::super::Foundation:: HANDLE, lpsrc : windows_core::PCWSTR, lpdest : windows_core::PWSTR, dwsize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn ExpandEnvironmentStringsForUserW(htoken : super::super::Foundation:: HANDLE, lpsrc : windows_core::PCWSTR, lpdest : windows_core::PWSTR, dwsize : u32) -> windows_core::BOOL); unsafe { ExpandEnvironmentStringsForUserW(htoken.unwrap_or(core::mem::zeroed()) as _, lpsrc.param().abi(), core::mem::transmute(lpdest.as_ptr()), lpdest.len().try_into().unwrap()).ok() } } #[inline] @@ -85,7 +85,7 @@ pub unsafe fn FreeEnvironmentStringsA(penv: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn FreeEnvironmentStringsA(penv : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FreeEnvironmentStringsA(penv : windows_core::PCSTR) -> windows_core::BOOL); unsafe { FreeEnvironmentStringsA(penv.param().abi()).ok() } } #[inline] @@ -93,7 +93,7 @@ pub unsafe fn FreeEnvironmentStringsW(penv: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn FreeEnvironmentStringsW(penv : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FreeEnvironmentStringsW(penv : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { FreeEnvironmentStringsW(penv.param().abi()).ok() } } #[inline] @@ -144,25 +144,25 @@ where } #[inline] pub unsafe fn InitializeEnclave(hprocess: super::super::Foundation::HANDLE, lpaddress: *const core::ffi::c_void, lpenclaveinformation: *const core::ffi::c_void, dwinfolength: u32, lpenclaveerror: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn InitializeEnclave(hprocess : super::super::Foundation:: HANDLE, lpaddress : *const core::ffi::c_void, lpenclaveinformation : *const core::ffi::c_void, dwinfolength : u32, lpenclaveerror : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn InitializeEnclave(hprocess : super::super::Foundation:: HANDLE, lpaddress : *const core::ffi::c_void, lpenclaveinformation : *const core::ffi::c_void, dwinfolength : u32, lpenclaveerror : *mut u32) -> windows_core::BOOL); unsafe { InitializeEnclave(hprocess, lpaddress, lpenclaveinformation, dwinfolength, lpenclaveerror.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn IsEnclaveTypeSupported(flenclavetype: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn IsEnclaveTypeSupported(flenclavetype : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn IsEnclaveTypeSupported(flenclavetype : u32) -> windows_core::BOOL); unsafe { IsEnclaveTypeSupported(flenclavetype).ok() } } #[inline] pub unsafe fn LoadEnclaveData(hprocess: super::super::Foundation::HANDLE, lpaddress: *const core::ffi::c_void, lpbuffer: *const core::ffi::c_void, nsize: usize, flprotect: u32, lppageinformation: *const core::ffi::c_void, dwinfolength: u32, lpnumberofbyteswritten: *mut usize, lpenclaveerror: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn LoadEnclaveData(hprocess : super::super::Foundation:: HANDLE, lpaddress : *const core::ffi::c_void, lpbuffer : *const core::ffi::c_void, nsize : usize, flprotect : u32, lppageinformation : *const core::ffi::c_void, dwinfolength : u32, lpnumberofbyteswritten : *mut usize, lpenclaveerror : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn LoadEnclaveData(hprocess : super::super::Foundation:: HANDLE, lpaddress : *const core::ffi::c_void, lpbuffer : *const core::ffi::c_void, nsize : usize, flprotect : u32, lppageinformation : *const core::ffi::c_void, dwinfolength : u32, lpnumberofbyteswritten : *mut usize, lpenclaveerror : *mut u32) -> windows_core::BOOL); unsafe { LoadEnclaveData(hprocess, lpaddress, lpbuffer, nsize, flprotect, lppageinformation, dwinfolength, lpnumberofbyteswritten as _, lpenclaveerror.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn LoadEnclaveImageA(lpenclaveaddress: *const core::ffi::c_void, lpimagename: P1) -> super::super::Foundation::BOOL +pub unsafe fn LoadEnclaveImageA(lpenclaveaddress: *const core::ffi::c_void, lpimagename: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("api-ms-win-core-enclave-l1-1-1.dll" "system" fn LoadEnclaveImageA(lpenclaveaddress : *const core::ffi::c_void, lpimagename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-enclave-l1-1-1.dll" "system" fn LoadEnclaveImageA(lpenclaveaddress : *const core::ffi::c_void, lpimagename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { LoadEnclaveImageA(lpenclaveaddress, lpimagename.param().abi()) } } #[inline] @@ -170,47 +170,47 @@ pub unsafe fn LoadEnclaveImageW(lpenclaveaddress: *const core::ffi::c_void, where P1: windows_core::Param, { - windows_targets::link!("api-ms-win-core-enclave-l1-1-1.dll" "system" fn LoadEnclaveImageW(lpenclaveaddress : *const core::ffi::c_void, lpimagename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-enclave-l1-1-1.dll" "system" fn LoadEnclaveImageW(lpenclaveaddress : *const core::ffi::c_void, lpimagename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { LoadEnclaveImageW(lpenclaveaddress, lpimagename.param().abi()).ok() } } #[inline] -pub unsafe fn NeedCurrentDirectoryForExePathA(exename: P0) -> super::super::Foundation::BOOL +pub unsafe fn NeedCurrentDirectoryForExePathA(exename: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn NeedCurrentDirectoryForExePathA(exename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn NeedCurrentDirectoryForExePathA(exename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { NeedCurrentDirectoryForExePathA(exename.param().abi()) } } #[inline] -pub unsafe fn NeedCurrentDirectoryForExePathW(exename: P0) -> super::super::Foundation::BOOL +pub unsafe fn NeedCurrentDirectoryForExePathW(exename: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn NeedCurrentDirectoryForExePathW(exename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn NeedCurrentDirectoryForExePathW(exename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { NeedCurrentDirectoryForExePathW(exename.param().abi()) } } #[inline] -pub unsafe fn SetCurrentDirectoryA(lppathname: P0) -> super::super::Foundation::BOOL +pub unsafe fn SetCurrentDirectoryA(lppathname: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetCurrentDirectoryA(lppathname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetCurrentDirectoryA(lppathname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetCurrentDirectoryA(lppathname.param().abi()) } } #[inline] -pub unsafe fn SetCurrentDirectoryW(lppathname: P0) -> super::super::Foundation::BOOL +pub unsafe fn SetCurrentDirectoryW(lppathname: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetCurrentDirectoryW(lppathname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetCurrentDirectoryW(lppathname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetCurrentDirectoryW(lppathname.param().abi()) } } #[inline] -pub unsafe fn SetEnvironmentStringsW(newenvironment: P0) -> super::super::Foundation::BOOL +pub unsafe fn SetEnvironmentStringsW(newenvironment: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetEnvironmentStringsW(newenvironment : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetEnvironmentStringsW(newenvironment : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetEnvironmentStringsW(newenvironment.param().abi()) } } #[inline] @@ -219,7 +219,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetEnvironmentVariableA(lpname : windows_core::PCSTR, lpvalue : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetEnvironmentVariableA(lpname : windows_core::PCSTR, lpvalue : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetEnvironmentVariableA(lpname.param().abi(), lpvalue.param().abi()).ok() } } #[inline] @@ -228,12 +228,12 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetEnvironmentVariableW(lpname : windows_core::PCWSTR, lpvalue : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetEnvironmentVariableW(lpname : windows_core::PCWSTR, lpvalue : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetEnvironmentVariableW(lpname.param().abi(), lpvalue.param().abi()).ok() } } #[inline] pub unsafe fn TerminateEnclave(lpaddress: *const core::ffi::c_void, fwait: bool) -> windows_core::Result<()> { - windows_targets::link!("vertdll.dll" "system" fn TerminateEnclave(lpaddress : *const core::ffi::c_void, fwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("vertdll.dll" "system" fn TerminateEnclave(lpaddress : *const core::ffi::c_void, fwait : windows_core::BOOL) -> windows_core::BOOL); unsafe { TerminateEnclave(lpaddress, fwait.into()).ok() } } pub const ENCLAVE_FLAG_DYNAMIC_DEBUG_ACTIVE: u32 = 4u32; diff --git a/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs index 5b47f98601..22427974b1 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ErrorReporting/mod.rs @@ -3,7 +3,7 @@ pub unsafe fn AddERExcludedApplicationA(szapplication: P0) -> windows_core:: where P0: windows_core::Param, { - windows_targets::link!("faultrep.dll" "system" fn AddERExcludedApplicationA(szapplication : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("faultrep.dll" "system" fn AddERExcludedApplicationA(szapplication : windows_core::PCSTR) -> windows_core::BOOL); unsafe { AddERExcludedApplicationA(szapplication.param().abi()).ok() } } #[inline] @@ -11,7 +11,7 @@ pub unsafe fn AddERExcludedApplicationW(wszapplication: P0) -> windows_core: where P0: windows_core::Param, { - windows_targets::link!("faultrep.dll" "system" fn AddERExcludedApplicationW(wszapplication : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("faultrep.dll" "system" fn AddERExcludedApplicationW(wszapplication : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { AddERExcludedApplicationW(wszapplication.param().abi()).ok() } } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_Kernel"))] @@ -25,7 +25,7 @@ pub unsafe fn WerAddExcludedApplication(pwzexename: P0, ballusers: bool) -> where P0: windows_core::Param, { - windows_targets::link!("wer.dll" "system" fn WerAddExcludedApplication(pwzexename : windows_core::PCWSTR, ballusers : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("wer.dll" "system" fn WerAddExcludedApplication(pwzexename : windows_core::PCWSTR, ballusers : windows_core::BOOL) -> windows_core::HRESULT); unsafe { WerAddExcludedApplication(pwzexename.param().abi(), ballusers.into()).ok() } } #[inline] @@ -97,7 +97,7 @@ pub unsafe fn WerRemoveExcludedApplication(pwzexename: P0, ballusers: bool) where P0: windows_core::Param, { - windows_targets::link!("wer.dll" "system" fn WerRemoveExcludedApplication(pwzexename : windows_core::PCWSTR, ballusers : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("wer.dll" "system" fn WerRemoveExcludedApplication(pwzexename : windows_core::PCWSTR, ballusers : windows_core::BOOL) -> windows_core::HRESULT); unsafe { WerRemoveExcludedApplication(pwzexename.param().abi(), ballusers.into()).ok() } } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_Kernel"))] @@ -344,9 +344,9 @@ impl Default for HREPORTSTORE { } pub const PACKAGED_APPCRASH_EVENT: windows_core::PCWSTR = windows_core::w!("MoAppCrash"); #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_Kernel"))] -pub type PFN_WER_RUNTIME_EXCEPTION_DEBUGGER_LAUNCH = Option windows_core::HRESULT>; +pub type PFN_WER_RUNTIME_EXCEPTION_DEBUGGER_LAUNCH = Option windows_core::HRESULT>; #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_Kernel"))] -pub type PFN_WER_RUNTIME_EXCEPTION_EVENT = Option windows_core::HRESULT>; +pub type PFN_WER_RUNTIME_EXCEPTION_EVENT = Option windows_core::HRESULT>; #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_Kernel"))] pub type PFN_WER_RUNTIME_EXCEPTION_EVENT_SIGNATURE = Option windows_core::HRESULT>; #[repr(transparent)] @@ -362,7 +362,7 @@ pub struct WER_DUMP_CUSTOM_OPTIONS { pub dwSize: u32, pub dwMask: u32, pub dwDumpFlags: u32, - pub bOnlyThisThread: super::super::Foundation::BOOL, + pub bOnlyThisThread: windows_core::BOOL, pub dwExceptionThreadFlags: u32, pub dwOtherThreadFlags: u32, pub dwExceptionThreadExFlags: u32, @@ -382,7 +382,7 @@ pub struct WER_DUMP_CUSTOM_OPTIONS_V2 { pub dwSize: u32, pub dwMask: u32, pub dwDumpFlags: u32, - pub bOnlyThisThread: super::super::Foundation::BOOL, + pub bOnlyThisThread: windows_core::BOOL, pub dwExceptionThreadFlags: u32, pub dwOtherThreadFlags: u32, pub dwExceptionThreadExFlags: u32, @@ -404,7 +404,7 @@ pub struct WER_DUMP_CUSTOM_OPTIONS_V3 { pub dwSize: u32, pub dwMask: u32, pub dwDumpFlags: u32, - pub bOnlyThisThread: super::super::Foundation::BOOL, + pub bOnlyThisThread: windows_core::BOOL, pub dwExceptionThreadFlags: u32, pub dwOtherThreadFlags: u32, pub dwExceptionThreadExFlags: u32, @@ -433,7 +433,7 @@ pub struct WER_DUMP_TYPE(pub i32); #[derive(Clone, Copy, Debug, PartialEq)] pub struct WER_EXCEPTION_INFORMATION { pub pExceptionPointers: *mut super::Diagnostics::Debug::EXCEPTION_POINTERS, - pub bClientPointers: super::super::Foundation::BOOL, + pub bClientPointers: windows_core::BOOL, } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_Kernel"))] impl Default for WER_EXCEPTION_INFORMATION { @@ -743,7 +743,7 @@ pub struct WER_RUNTIME_EXCEPTION_INFORMATION { pub exceptionRecord: super::Diagnostics::Debug::EXCEPTION_RECORD, pub context: super::Diagnostics::Debug::CONTEXT, pub pwszReportId: windows_core::PCWSTR, - pub bIsFatal: super::super::Foundation::BOOL, + pub bIsFatal: windows_core::BOOL, pub dwReserved: u32, } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_Kernel"))] diff --git a/crates/libs/windows/src/Windows/Win32/System/EventCollector/mod.rs b/crates/libs/windows/src/Windows/Win32/System/EventCollector/mod.rs index 589ddd0ee8..ea0acaea51 100644 --- a/crates/libs/windows/src/Windows/Win32/System/EventCollector/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/EventCollector/mod.rs @@ -1,48 +1,48 @@ #[inline] -pub unsafe fn EcClose(object: isize) -> super::super::Foundation::BOOL { - windows_targets::link!("wecapi.dll" "system" fn EcClose(object : isize) -> super::super::Foundation:: BOOL); +pub unsafe fn EcClose(object: isize) -> windows_core::BOOL { + windows_targets::link!("wecapi.dll" "system" fn EcClose(object : isize) -> windows_core::BOOL); unsafe { EcClose(object) } } #[inline] -pub unsafe fn EcDeleteSubscription(subscriptionname: P0, flags: u32) -> super::super::Foundation::BOOL +pub unsafe fn EcDeleteSubscription(subscriptionname: P0, flags: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("wecapi.dll" "system" fn EcDeleteSubscription(subscriptionname : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wecapi.dll" "system" fn EcDeleteSubscription(subscriptionname : windows_core::PCWSTR, flags : u32) -> windows_core::BOOL); unsafe { EcDeleteSubscription(subscriptionname.param().abi(), flags) } } #[inline] -pub unsafe fn EcEnumNextSubscription(subscriptionenum: isize, subscriptionnamebuffer: Option<&mut [u16]>, subscriptionnamebufferused: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wecapi.dll" "system" fn EcEnumNextSubscription(subscriptionenum : isize, subscriptionnamebuffersize : u32, subscriptionnamebuffer : windows_core::PWSTR, subscriptionnamebufferused : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EcEnumNextSubscription(subscriptionenum: isize, subscriptionnamebuffer: Option<&mut [u16]>, subscriptionnamebufferused: *mut u32) -> windows_core::BOOL { + windows_targets::link!("wecapi.dll" "system" fn EcEnumNextSubscription(subscriptionenum : isize, subscriptionnamebuffersize : u32, subscriptionnamebuffer : windows_core::PWSTR, subscriptionnamebufferused : *mut u32) -> windows_core::BOOL); unsafe { EcEnumNextSubscription(subscriptionenum, subscriptionnamebuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(subscriptionnamebuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), subscriptionnamebufferused as _) } } #[inline] -pub unsafe fn EcGetObjectArrayProperty(objectarray: isize, propertyid: EC_SUBSCRIPTION_PROPERTY_ID, arrayindex: u32, flags: u32, propertyvaluebuffersize: u32, propertyvaluebuffer: *mut EC_VARIANT, propertyvaluebufferused: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wecapi.dll" "system" fn EcGetObjectArrayProperty(objectarray : isize, propertyid : EC_SUBSCRIPTION_PROPERTY_ID, arrayindex : u32, flags : u32, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EC_VARIANT, propertyvaluebufferused : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EcGetObjectArrayProperty(objectarray: isize, propertyid: EC_SUBSCRIPTION_PROPERTY_ID, arrayindex: u32, flags: u32, propertyvaluebuffersize: u32, propertyvaluebuffer: *mut EC_VARIANT, propertyvaluebufferused: *mut u32) -> windows_core::BOOL { + windows_targets::link!("wecapi.dll" "system" fn EcGetObjectArrayProperty(objectarray : isize, propertyid : EC_SUBSCRIPTION_PROPERTY_ID, arrayindex : u32, flags : u32, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EC_VARIANT, propertyvaluebufferused : *mut u32) -> windows_core::BOOL); unsafe { EcGetObjectArrayProperty(objectarray, propertyid, arrayindex, flags, propertyvaluebuffersize, propertyvaluebuffer as _, propertyvaluebufferused as _) } } #[inline] -pub unsafe fn EcGetObjectArraySize(objectarray: isize, objectarraysize: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wecapi.dll" "system" fn EcGetObjectArraySize(objectarray : isize, objectarraysize : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EcGetObjectArraySize(objectarray: isize, objectarraysize: *mut u32) -> windows_core::BOOL { + windows_targets::link!("wecapi.dll" "system" fn EcGetObjectArraySize(objectarray : isize, objectarraysize : *mut u32) -> windows_core::BOOL); unsafe { EcGetObjectArraySize(objectarray, objectarraysize as _) } } #[inline] -pub unsafe fn EcGetSubscriptionProperty(subscription: isize, propertyid: EC_SUBSCRIPTION_PROPERTY_ID, flags: u32, propertyvaluebuffersize: u32, propertyvaluebuffer: *mut EC_VARIANT, propertyvaluebufferused: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wecapi.dll" "system" fn EcGetSubscriptionProperty(subscription : isize, propertyid : EC_SUBSCRIPTION_PROPERTY_ID, flags : u32, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EC_VARIANT, propertyvaluebufferused : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EcGetSubscriptionProperty(subscription: isize, propertyid: EC_SUBSCRIPTION_PROPERTY_ID, flags: u32, propertyvaluebuffersize: u32, propertyvaluebuffer: *mut EC_VARIANT, propertyvaluebufferused: *mut u32) -> windows_core::BOOL { + windows_targets::link!("wecapi.dll" "system" fn EcGetSubscriptionProperty(subscription : isize, propertyid : EC_SUBSCRIPTION_PROPERTY_ID, flags : u32, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EC_VARIANT, propertyvaluebufferused : *mut u32) -> windows_core::BOOL); unsafe { EcGetSubscriptionProperty(subscription, propertyid, flags, propertyvaluebuffersize, propertyvaluebuffer as _, propertyvaluebufferused as _) } } #[inline] -pub unsafe fn EcGetSubscriptionRunTimeStatus(subscriptionname: P0, statusinfoid: EC_SUBSCRIPTION_RUNTIME_STATUS_INFO_ID, eventsourcename: P2, flags: u32, statusvaluebuffersize: u32, statusvaluebuffer: *mut EC_VARIANT, statusvaluebufferused: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn EcGetSubscriptionRunTimeStatus(subscriptionname: P0, statusinfoid: EC_SUBSCRIPTION_RUNTIME_STATUS_INFO_ID, eventsourcename: P2, flags: u32, statusvaluebuffersize: u32, statusvaluebuffer: *mut EC_VARIANT, statusvaluebufferused: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wecapi.dll" "system" fn EcGetSubscriptionRunTimeStatus(subscriptionname : windows_core::PCWSTR, statusinfoid : EC_SUBSCRIPTION_RUNTIME_STATUS_INFO_ID, eventsourcename : windows_core::PCWSTR, flags : u32, statusvaluebuffersize : u32, statusvaluebuffer : *mut EC_VARIANT, statusvaluebufferused : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wecapi.dll" "system" fn EcGetSubscriptionRunTimeStatus(subscriptionname : windows_core::PCWSTR, statusinfoid : EC_SUBSCRIPTION_RUNTIME_STATUS_INFO_ID, eventsourcename : windows_core::PCWSTR, flags : u32, statusvaluebuffersize : u32, statusvaluebuffer : *mut EC_VARIANT, statusvaluebufferused : *mut u32) -> windows_core::BOOL); unsafe { EcGetSubscriptionRunTimeStatus(subscriptionname.param().abi(), statusinfoid, eventsourcename.param().abi(), flags, statusvaluebuffersize, statusvaluebuffer as _, statusvaluebufferused as _) } } #[inline] -pub unsafe fn EcInsertObjectArrayElement(objectarray: isize, arrayindex: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wecapi.dll" "system" fn EcInsertObjectArrayElement(objectarray : isize, arrayindex : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EcInsertObjectArrayElement(objectarray: isize, arrayindex: u32) -> windows_core::BOOL { + windows_targets::link!("wecapi.dll" "system" fn EcInsertObjectArrayElement(objectarray : isize, arrayindex : u32) -> windows_core::BOOL); unsafe { EcInsertObjectArrayElement(objectarray, arrayindex) } } #[inline] @@ -59,32 +59,32 @@ pub unsafe fn EcOpenSubscriptionEnum(flags: u32) -> isize { unsafe { EcOpenSubscriptionEnum(flags) } } #[inline] -pub unsafe fn EcRemoveObjectArrayElement(objectarray: isize, arrayindex: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wecapi.dll" "system" fn EcRemoveObjectArrayElement(objectarray : isize, arrayindex : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EcRemoveObjectArrayElement(objectarray: isize, arrayindex: u32) -> windows_core::BOOL { + windows_targets::link!("wecapi.dll" "system" fn EcRemoveObjectArrayElement(objectarray : isize, arrayindex : u32) -> windows_core::BOOL); unsafe { EcRemoveObjectArrayElement(objectarray, arrayindex) } } #[inline] -pub unsafe fn EcRetrySubscription(subscriptionname: P0, eventsourcename: P1, flags: u32) -> super::super::Foundation::BOOL +pub unsafe fn EcRetrySubscription(subscriptionname: P0, eventsourcename: P1, flags: u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("wecapi.dll" "system" fn EcRetrySubscription(subscriptionname : windows_core::PCWSTR, eventsourcename : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wecapi.dll" "system" fn EcRetrySubscription(subscriptionname : windows_core::PCWSTR, eventsourcename : windows_core::PCWSTR, flags : u32) -> windows_core::BOOL); unsafe { EcRetrySubscription(subscriptionname.param().abi(), eventsourcename.param().abi(), flags) } } #[inline] -pub unsafe fn EcSaveSubscription(subscription: isize, flags: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wecapi.dll" "system" fn EcSaveSubscription(subscription : isize, flags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EcSaveSubscription(subscription: isize, flags: u32) -> windows_core::BOOL { + windows_targets::link!("wecapi.dll" "system" fn EcSaveSubscription(subscription : isize, flags : u32) -> windows_core::BOOL); unsafe { EcSaveSubscription(subscription, flags) } } #[inline] -pub unsafe fn EcSetObjectArrayProperty(objectarray: isize, propertyid: EC_SUBSCRIPTION_PROPERTY_ID, arrayindex: u32, flags: u32, propertyvalue: *mut EC_VARIANT) -> super::super::Foundation::BOOL { - windows_targets::link!("wecapi.dll" "system" fn EcSetObjectArrayProperty(objectarray : isize, propertyid : EC_SUBSCRIPTION_PROPERTY_ID, arrayindex : u32, flags : u32, propertyvalue : *mut EC_VARIANT) -> super::super::Foundation:: BOOL); +pub unsafe fn EcSetObjectArrayProperty(objectarray: isize, propertyid: EC_SUBSCRIPTION_PROPERTY_ID, arrayindex: u32, flags: u32, propertyvalue: *mut EC_VARIANT) -> windows_core::BOOL { + windows_targets::link!("wecapi.dll" "system" fn EcSetObjectArrayProperty(objectarray : isize, propertyid : EC_SUBSCRIPTION_PROPERTY_ID, arrayindex : u32, flags : u32, propertyvalue : *mut EC_VARIANT) -> windows_core::BOOL); unsafe { EcSetObjectArrayProperty(objectarray, propertyid, arrayindex, flags, propertyvalue as _) } } #[inline] -pub unsafe fn EcSetSubscriptionProperty(subscription: isize, propertyid: EC_SUBSCRIPTION_PROPERTY_ID, flags: u32, propertyvalue: *mut EC_VARIANT) -> super::super::Foundation::BOOL { - windows_targets::link!("wecapi.dll" "system" fn EcSetSubscriptionProperty(subscription : isize, propertyid : EC_SUBSCRIPTION_PROPERTY_ID, flags : u32, propertyvalue : *mut EC_VARIANT) -> super::super::Foundation:: BOOL); +pub unsafe fn EcSetSubscriptionProperty(subscription: isize, propertyid: EC_SUBSCRIPTION_PROPERTY_ID, flags: u32, propertyvalue: *mut EC_VARIANT) -> windows_core::BOOL { + windows_targets::link!("wecapi.dll" "system" fn EcSetSubscriptionProperty(subscription : isize, propertyid : EC_SUBSCRIPTION_PROPERTY_ID, flags : u32, propertyvalue : *mut EC_VARIANT) -> windows_core::BOOL); unsafe { EcSetSubscriptionProperty(subscription, propertyid, flags, propertyvalue as _) } } pub const EC_CREATE_NEW: u32 = 1u32; @@ -130,12 +130,12 @@ impl Default for EC_VARIANT { #[repr(C)] #[derive(Clone, Copy)] pub union EC_VARIANT_0 { - pub BooleanVal: super::super::Foundation::BOOL, + pub BooleanVal: windows_core::BOOL, pub UInt32Val: u32, pub DateTimeVal: u64, pub StringVal: windows_core::PCWSTR, pub BinaryVal: *mut u8, - pub BooleanArr: *mut super::super::Foundation::BOOL, + pub BooleanArr: *mut windows_core::BOOL, pub Int32Arr: *mut i32, pub StringArr: *mut windows_core::PWSTR, pub PropertyHandleVal: isize, diff --git a/crates/libs/windows/src/Windows/Win32/System/EventLog/mod.rs b/crates/libs/windows/src/Windows/Win32/System/EventLog/mod.rs index 70d770cec4..a792def795 100644 --- a/crates/libs/windows/src/Windows/Win32/System/EventLog/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/EventLog/mod.rs @@ -3,7 +3,7 @@ pub unsafe fn BackupEventLogA(heventlog: super::super::Foundation::HANDLE, l where P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn BackupEventLogA(heventlog : super::super::Foundation:: HANDLE, lpbackupfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn BackupEventLogA(heventlog : super::super::Foundation:: HANDLE, lpbackupfilename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { BackupEventLogA(heventlog, lpbackupfilename.param().abi()).ok() } } #[inline] @@ -11,7 +11,7 @@ pub unsafe fn BackupEventLogW(heventlog: super::super::Foundation::HANDLE, l where P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn BackupEventLogW(heventlog : super::super::Foundation:: HANDLE, lpbackupfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn BackupEventLogW(heventlog : super::super::Foundation:: HANDLE, lpbackupfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { BackupEventLogW(heventlog, lpbackupfilename.param().abi()).ok() } } #[inline] @@ -19,7 +19,7 @@ pub unsafe fn ClearEventLogA(heventlog: super::super::Foundation::HANDLE, lp where P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn ClearEventLogA(heventlog : super::super::Foundation:: HANDLE, lpbackupfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ClearEventLogA(heventlog : super::super::Foundation:: HANDLE, lpbackupfilename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { ClearEventLogA(heventlog, lpbackupfilename.param().abi()).ok() } } #[inline] @@ -27,17 +27,17 @@ pub unsafe fn ClearEventLogW(heventlog: super::super::Foundation::HANDLE, lp where P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn ClearEventLogW(heventlog : super::super::Foundation:: HANDLE, lpbackupfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ClearEventLogW(heventlog : super::super::Foundation:: HANDLE, lpbackupfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { ClearEventLogW(heventlog, lpbackupfilename.param().abi()).ok() } } #[inline] pub unsafe fn CloseEventLog(heventlog: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CloseEventLog(heventlog : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CloseEventLog(heventlog : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CloseEventLog(heventlog).ok() } } #[inline] pub unsafe fn DeregisterEventSource(heventlog: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn DeregisterEventSource(heventlog : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn DeregisterEventSource(heventlog : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { DeregisterEventSource(heventlog).ok() } } #[inline] @@ -45,12 +45,12 @@ pub unsafe fn EvtArchiveExportedLog(session: Option, logfilepath where P1: windows_core::Param, { - windows_targets::link!("wevtapi.dll" "system" fn EvtArchiveExportedLog(session : EVT_HANDLE, logfilepath : windows_core::PCWSTR, locale : u32, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtArchiveExportedLog(session : EVT_HANDLE, logfilepath : windows_core::PCWSTR, locale : u32, flags : u32) -> windows_core::BOOL); unsafe { EvtArchiveExportedLog(session.unwrap_or(core::mem::zeroed()) as _, logfilepath.param().abi(), locale, flags).ok() } } #[inline] pub unsafe fn EvtCancel(object: Option) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtCancel(object : EVT_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtCancel(object : EVT_HANDLE) -> windows_core::BOOL); unsafe { EvtCancel(object.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -59,12 +59,12 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("wevtapi.dll" "system" fn EvtClearLog(session : EVT_HANDLE, channelpath : windows_core::PCWSTR, targetfilepath : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtClearLog(session : EVT_HANDLE, channelpath : windows_core::PCWSTR, targetfilepath : windows_core::PCWSTR, flags : u32) -> windows_core::BOOL); unsafe { EvtClearLog(session.unwrap_or(core::mem::zeroed()) as _, channelpath.param().abi(), targetfilepath.param().abi(), flags).ok() } } #[inline] pub unsafe fn EvtClose(object: EVT_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtClose(object : EVT_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtClose(object : EVT_HANDLE) -> windows_core::BOOL); unsafe { EvtClose(object).ok() } } #[inline] @@ -89,31 +89,31 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("wevtapi.dll" "system" fn EvtExportLog(session : EVT_HANDLE, path : windows_core::PCWSTR, query : windows_core::PCWSTR, targetfilepath : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtExportLog(session : EVT_HANDLE, path : windows_core::PCWSTR, query : windows_core::PCWSTR, targetfilepath : windows_core::PCWSTR, flags : u32) -> windows_core::BOOL); unsafe { EvtExportLog(session.unwrap_or(core::mem::zeroed()) as _, path.param().abi(), query.param().abi(), targetfilepath.param().abi(), flags).ok() } } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EvtFormatMessage(publishermetadata: Option, event: Option, messageid: u32, values: Option<&[EVT_VARIANT]>, flags: u32, buffer: Option<&mut [u16]>, bufferused: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtFormatMessage(publishermetadata : EVT_HANDLE, event : EVT_HANDLE, messageid : u32, valuecount : u32, values : *const EVT_VARIANT, flags : u32, buffersize : u32, buffer : windows_core::PWSTR, bufferused : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtFormatMessage(publishermetadata : EVT_HANDLE, event : EVT_HANDLE, messageid : u32, valuecount : u32, values : *const EVT_VARIANT, flags : u32, buffersize : u32, buffer : windows_core::PWSTR, bufferused : *mut u32) -> windows_core::BOOL); unsafe { EvtFormatMessage(publishermetadata.unwrap_or(core::mem::zeroed()) as _, event.unwrap_or(core::mem::zeroed()) as _, messageid, values.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(values.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), flags, buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(buffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), bufferused as _).ok() } } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EvtGetChannelConfigProperty(channelconfig: EVT_HANDLE, propertyid: EVT_CHANNEL_CONFIG_PROPERTY_ID, flags: u32, propertyvaluebuffersize: u32, propertyvaluebuffer: Option<*mut EVT_VARIANT>, propertyvaluebufferused: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtGetChannelConfigProperty(channelconfig : EVT_HANDLE, propertyid : EVT_CHANNEL_CONFIG_PROPERTY_ID, flags : u32, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EVT_VARIANT, propertyvaluebufferused : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtGetChannelConfigProperty(channelconfig : EVT_HANDLE, propertyid : EVT_CHANNEL_CONFIG_PROPERTY_ID, flags : u32, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EVT_VARIANT, propertyvaluebufferused : *mut u32) -> windows_core::BOOL); unsafe { EvtGetChannelConfigProperty(channelconfig, propertyid, flags, propertyvaluebuffersize, propertyvaluebuffer.unwrap_or(core::mem::zeroed()) as _, propertyvaluebufferused as _).ok() } } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EvtGetEventInfo(event: EVT_HANDLE, propertyid: EVT_EVENT_PROPERTY_ID, propertyvaluebuffersize: u32, propertyvaluebuffer: Option<*mut EVT_VARIANT>, propertyvaluebufferused: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtGetEventInfo(event : EVT_HANDLE, propertyid : EVT_EVENT_PROPERTY_ID, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EVT_VARIANT, propertyvaluebufferused : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtGetEventInfo(event : EVT_HANDLE, propertyid : EVT_EVENT_PROPERTY_ID, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EVT_VARIANT, propertyvaluebufferused : *mut u32) -> windows_core::BOOL); unsafe { EvtGetEventInfo(event, propertyid, propertyvaluebuffersize, propertyvaluebuffer.unwrap_or(core::mem::zeroed()) as _, propertyvaluebufferused as _).ok() } } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EvtGetEventMetadataProperty(eventmetadata: EVT_HANDLE, propertyid: EVT_EVENT_METADATA_PROPERTY_ID, flags: u32, eventmetadatapropertybuffersize: u32, eventmetadatapropertybuffer: Option<*mut EVT_VARIANT>, eventmetadatapropertybufferused: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtGetEventMetadataProperty(eventmetadata : EVT_HANDLE, propertyid : EVT_EVENT_METADATA_PROPERTY_ID, flags : u32, eventmetadatapropertybuffersize : u32, eventmetadatapropertybuffer : *mut EVT_VARIANT, eventmetadatapropertybufferused : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtGetEventMetadataProperty(eventmetadata : EVT_HANDLE, propertyid : EVT_EVENT_METADATA_PROPERTY_ID, flags : u32, eventmetadatapropertybuffersize : u32, eventmetadatapropertybuffer : *mut EVT_VARIANT, eventmetadatapropertybufferused : *mut u32) -> windows_core::BOOL); unsafe { EvtGetEventMetadataProperty(eventmetadata, propertyid, flags, eventmetadatapropertybuffersize, eventmetadatapropertybuffer.unwrap_or(core::mem::zeroed()) as _, eventmetadatapropertybufferused as _).ok() } } #[inline] @@ -124,40 +124,40 @@ pub unsafe fn EvtGetExtendedStatus(buffer: Option<&mut [u16]>, bufferused: *mut #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EvtGetLogInfo(log: EVT_HANDLE, propertyid: EVT_LOG_PROPERTY_ID, propertyvaluebuffersize: u32, propertyvaluebuffer: Option<*mut EVT_VARIANT>, propertyvaluebufferused: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtGetLogInfo(log : EVT_HANDLE, propertyid : EVT_LOG_PROPERTY_ID, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EVT_VARIANT, propertyvaluebufferused : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtGetLogInfo(log : EVT_HANDLE, propertyid : EVT_LOG_PROPERTY_ID, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EVT_VARIANT, propertyvaluebufferused : *mut u32) -> windows_core::BOOL); unsafe { EvtGetLogInfo(log, propertyid, propertyvaluebuffersize, propertyvaluebuffer.unwrap_or(core::mem::zeroed()) as _, propertyvaluebufferused as _).ok() } } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EvtGetObjectArrayProperty(objectarray: isize, propertyid: u32, arrayindex: u32, flags: u32, propertyvaluebuffersize: u32, propertyvaluebuffer: Option<*mut EVT_VARIANT>, propertyvaluebufferused: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtGetObjectArrayProperty(objectarray : isize, propertyid : u32, arrayindex : u32, flags : u32, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EVT_VARIANT, propertyvaluebufferused : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtGetObjectArrayProperty(objectarray : isize, propertyid : u32, arrayindex : u32, flags : u32, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EVT_VARIANT, propertyvaluebufferused : *mut u32) -> windows_core::BOOL); unsafe { EvtGetObjectArrayProperty(objectarray, propertyid, arrayindex, flags, propertyvaluebuffersize, propertyvaluebuffer.unwrap_or(core::mem::zeroed()) as _, propertyvaluebufferused as _).ok() } } #[inline] pub unsafe fn EvtGetObjectArraySize(objectarray: isize, objectarraysize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtGetObjectArraySize(objectarray : isize, objectarraysize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtGetObjectArraySize(objectarray : isize, objectarraysize : *mut u32) -> windows_core::BOOL); unsafe { EvtGetObjectArraySize(objectarray, objectarraysize as _).ok() } } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EvtGetPublisherMetadataProperty(publishermetadata: EVT_HANDLE, propertyid: EVT_PUBLISHER_METADATA_PROPERTY_ID, flags: u32, publishermetadatapropertybuffersize: u32, publishermetadatapropertybuffer: Option<*mut EVT_VARIANT>, publishermetadatapropertybufferused: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtGetPublisherMetadataProperty(publishermetadata : EVT_HANDLE, propertyid : EVT_PUBLISHER_METADATA_PROPERTY_ID, flags : u32, publishermetadatapropertybuffersize : u32, publishermetadatapropertybuffer : *mut EVT_VARIANT, publishermetadatapropertybufferused : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtGetPublisherMetadataProperty(publishermetadata : EVT_HANDLE, propertyid : EVT_PUBLISHER_METADATA_PROPERTY_ID, flags : u32, publishermetadatapropertybuffersize : u32, publishermetadatapropertybuffer : *mut EVT_VARIANT, publishermetadatapropertybufferused : *mut u32) -> windows_core::BOOL); unsafe { EvtGetPublisherMetadataProperty(publishermetadata, propertyid, flags, publishermetadatapropertybuffersize, publishermetadatapropertybuffer.unwrap_or(core::mem::zeroed()) as _, publishermetadatapropertybufferused as _).ok() } } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EvtGetQueryInfo(queryorsubscription: EVT_HANDLE, propertyid: EVT_QUERY_PROPERTY_ID, propertyvaluebuffersize: u32, propertyvaluebuffer: Option<*mut EVT_VARIANT>, propertyvaluebufferused: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtGetQueryInfo(queryorsubscription : EVT_HANDLE, propertyid : EVT_QUERY_PROPERTY_ID, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EVT_VARIANT, propertyvaluebufferused : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtGetQueryInfo(queryorsubscription : EVT_HANDLE, propertyid : EVT_QUERY_PROPERTY_ID, propertyvaluebuffersize : u32, propertyvaluebuffer : *mut EVT_VARIANT, propertyvaluebufferused : *mut u32) -> windows_core::BOOL); unsafe { EvtGetQueryInfo(queryorsubscription, propertyid, propertyvaluebuffersize, propertyvaluebuffer.unwrap_or(core::mem::zeroed()) as _, propertyvaluebufferused as _).ok() } } #[inline] pub unsafe fn EvtNext(resultset: EVT_HANDLE, events: &mut [isize], timeout: u32, flags: u32, returned: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtNext(resultset : EVT_HANDLE, eventssize : u32, events : *mut isize, timeout : u32, flags : u32, returned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtNext(resultset : EVT_HANDLE, eventssize : u32, events : *mut isize, timeout : u32, flags : u32, returned : *mut u32) -> windows_core::BOOL); unsafe { EvtNext(resultset, events.len().try_into().unwrap(), core::mem::transmute(events.as_ptr()), timeout, flags, returned as _).ok() } } #[inline] pub unsafe fn EvtNextChannelPath(channelenum: EVT_HANDLE, channelpathbuffer: Option<&mut [u16]>, channelpathbufferused: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtNextChannelPath(channelenum : EVT_HANDLE, channelpathbuffersize : u32, channelpathbuffer : windows_core::PWSTR, channelpathbufferused : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtNextChannelPath(channelenum : EVT_HANDLE, channelpathbuffersize : u32, channelpathbuffer : windows_core::PWSTR, channelpathbufferused : *mut u32) -> windows_core::BOOL); unsafe { EvtNextChannelPath(channelenum, channelpathbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(channelpathbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), channelpathbufferused as _).ok() } } #[inline] @@ -168,7 +168,7 @@ pub unsafe fn EvtNextEventMetadata(eventmetadataenum: EVT_HANDLE, flags: u32) -> } #[inline] pub unsafe fn EvtNextPublisherId(publisherenum: EVT_HANDLE, publisheridbuffer: Option<&mut [u16]>, publisheridbufferused: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtNextPublisherId(publisherenum : EVT_HANDLE, publisheridbuffersize : u32, publisheridbuffer : windows_core::PWSTR, publisheridbufferused : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtNextPublisherId(publisherenum : EVT_HANDLE, publisheridbuffersize : u32, publisheridbuffer : windows_core::PWSTR, publisheridbufferused : *mut u32) -> windows_core::BOOL); unsafe { EvtNextPublisherId(publisherenum, publisheridbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(publisheridbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), publisheridbufferused as _).ok() } } #[inline] @@ -235,23 +235,23 @@ where } #[inline] pub unsafe fn EvtRender(context: Option, fragment: EVT_HANDLE, flags: u32, buffersize: u32, buffer: Option<*mut core::ffi::c_void>, bufferused: *mut u32, propertycount: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtRender(context : EVT_HANDLE, fragment : EVT_HANDLE, flags : u32, buffersize : u32, buffer : *mut core::ffi::c_void, bufferused : *mut u32, propertycount : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtRender(context : EVT_HANDLE, fragment : EVT_HANDLE, flags : u32, buffersize : u32, buffer : *mut core::ffi::c_void, bufferused : *mut u32, propertycount : *mut u32) -> windows_core::BOOL); unsafe { EvtRender(context.unwrap_or(core::mem::zeroed()) as _, fragment, flags, buffersize, buffer.unwrap_or(core::mem::zeroed()) as _, bufferused as _, propertycount as _).ok() } } #[inline] pub unsafe fn EvtSaveChannelConfig(channelconfig: EVT_HANDLE, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtSaveChannelConfig(channelconfig : EVT_HANDLE, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtSaveChannelConfig(channelconfig : EVT_HANDLE, flags : u32) -> windows_core::BOOL); unsafe { EvtSaveChannelConfig(channelconfig, flags).ok() } } #[inline] pub unsafe fn EvtSeek(resultset: EVT_HANDLE, position: i64, bookmark: Option, timeout: Option, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtSeek(resultset : EVT_HANDLE, position : i64, bookmark : EVT_HANDLE, timeout : u32, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtSeek(resultset : EVT_HANDLE, position : i64, bookmark : EVT_HANDLE, timeout : u32, flags : u32) -> windows_core::BOOL); unsafe { EvtSeek(resultset, position, bookmark.unwrap_or(core::mem::zeroed()) as _, timeout.unwrap_or(core::mem::zeroed()) as _, flags).ok() } } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn EvtSetChannelConfigProperty(channelconfig: EVT_HANDLE, propertyid: EVT_CHANNEL_CONFIG_PROPERTY_ID, flags: u32, propertyvalue: *const EVT_VARIANT) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtSetChannelConfigProperty(channelconfig : EVT_HANDLE, propertyid : EVT_CHANNEL_CONFIG_PROPERTY_ID, flags : u32, propertyvalue : *const EVT_VARIANT) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtSetChannelConfigProperty(channelconfig : EVT_HANDLE, propertyid : EVT_CHANNEL_CONFIG_PROPERTY_ID, flags : u32, propertyvalue : *const EVT_VARIANT) -> windows_core::BOOL); unsafe { EvtSetChannelConfigProperty(channelconfig, propertyid, flags, propertyvalue).ok() } } #[inline] @@ -266,27 +266,27 @@ where } #[inline] pub unsafe fn EvtUpdateBookmark(bookmark: EVT_HANDLE, event: EVT_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("wevtapi.dll" "system" fn EvtUpdateBookmark(bookmark : EVT_HANDLE, event : EVT_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("wevtapi.dll" "system" fn EvtUpdateBookmark(bookmark : EVT_HANDLE, event : EVT_HANDLE) -> windows_core::BOOL); unsafe { EvtUpdateBookmark(bookmark, event).ok() } } #[inline] pub unsafe fn GetEventLogInformation(heventlog: super::super::Foundation::HANDLE, dwinfolevel: u32, lpbuffer: *mut core::ffi::c_void, cbbufsize: u32, pcbbytesneeded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetEventLogInformation(heventlog : super::super::Foundation:: HANDLE, dwinfolevel : u32, lpbuffer : *mut core::ffi::c_void, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetEventLogInformation(heventlog : super::super::Foundation:: HANDLE, dwinfolevel : u32, lpbuffer : *mut core::ffi::c_void, cbbufsize : u32, pcbbytesneeded : *mut u32) -> windows_core::BOOL); unsafe { GetEventLogInformation(heventlog, dwinfolevel, lpbuffer as _, cbbufsize, pcbbytesneeded as _).ok() } } #[inline] pub unsafe fn GetNumberOfEventLogRecords(heventlog: super::super::Foundation::HANDLE, numberofrecords: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetNumberOfEventLogRecords(heventlog : super::super::Foundation:: HANDLE, numberofrecords : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetNumberOfEventLogRecords(heventlog : super::super::Foundation:: HANDLE, numberofrecords : *mut u32) -> windows_core::BOOL); unsafe { GetNumberOfEventLogRecords(heventlog, numberofrecords as _).ok() } } #[inline] pub unsafe fn GetOldestEventLogRecord(heventlog: super::super::Foundation::HANDLE, oldestrecord: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetOldestEventLogRecord(heventlog : super::super::Foundation:: HANDLE, oldestrecord : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetOldestEventLogRecord(heventlog : super::super::Foundation:: HANDLE, oldestrecord : *mut u32) -> windows_core::BOOL); unsafe { GetOldestEventLogRecord(heventlog, oldestrecord as _).ok() } } #[inline] pub unsafe fn NotifyChangeEventLog(heventlog: super::super::Foundation::HANDLE, hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn NotifyChangeEventLog(heventlog : super::super::Foundation:: HANDLE, hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn NotifyChangeEventLog(heventlog : super::super::Foundation:: HANDLE, hevent : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { NotifyChangeEventLog(heventlog, hevent).ok() } } #[inline] @@ -331,12 +331,12 @@ where } #[inline] pub unsafe fn ReadEventLogA(heventlog: super::super::Foundation::HANDLE, dwreadflags: READ_EVENT_LOG_READ_FLAGS, dwrecordoffset: u32, lpbuffer: *mut core::ffi::c_void, nnumberofbytestoread: u32, pnbytesread: *mut u32, pnminnumberofbytesneeded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ReadEventLogA(heventlog : super::super::Foundation:: HANDLE, dwreadflags : READ_EVENT_LOG_READ_FLAGS, dwrecordoffset : u32, lpbuffer : *mut core::ffi::c_void, nnumberofbytestoread : u32, pnbytesread : *mut u32, pnminnumberofbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ReadEventLogA(heventlog : super::super::Foundation:: HANDLE, dwreadflags : READ_EVENT_LOG_READ_FLAGS, dwrecordoffset : u32, lpbuffer : *mut core::ffi::c_void, nnumberofbytestoread : u32, pnbytesread : *mut u32, pnminnumberofbytesneeded : *mut u32) -> windows_core::BOOL); unsafe { ReadEventLogA(heventlog, dwreadflags, dwrecordoffset, lpbuffer as _, nnumberofbytestoread, pnbytesread as _, pnminnumberofbytesneeded as _).ok() } } #[inline] pub unsafe fn ReadEventLogW(heventlog: super::super::Foundation::HANDLE, dwreadflags: READ_EVENT_LOG_READ_FLAGS, dwrecordoffset: u32, lpbuffer: *mut core::ffi::c_void, nnumberofbytestoread: u32, pnbytesread: *mut u32, pnminnumberofbytesneeded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ReadEventLogW(heventlog : super::super::Foundation:: HANDLE, dwreadflags : READ_EVENT_LOG_READ_FLAGS, dwrecordoffset : u32, lpbuffer : *mut core::ffi::c_void, nnumberofbytestoread : u32, pnbytesread : *mut u32, pnminnumberofbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ReadEventLogW(heventlog : super::super::Foundation:: HANDLE, dwreadflags : READ_EVENT_LOG_READ_FLAGS, dwrecordoffset : u32, lpbuffer : *mut core::ffi::c_void, nnumberofbytestoread : u32, pnbytesread : *mut u32, pnminnumberofbytesneeded : *mut u32) -> windows_core::BOOL); unsafe { ReadEventLogW(heventlog, dwreadflags, dwrecordoffset, lpbuffer as _, nnumberofbytestoread, pnbytesread as _, pnminnumberofbytesneeded as _).ok() } } #[inline] @@ -362,13 +362,13 @@ where #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ReportEventA(heventlog: super::super::Foundation::HANDLE, wtype: REPORT_EVENT_TYPE, wcategory: u16, dweventid: u32, lpusersid: Option, dwdatasize: u32, lpstrings: Option<&[windows_core::PCSTR]>, lprawdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ReportEventA(heventlog : super::super::Foundation:: HANDLE, wtype : REPORT_EVENT_TYPE, wcategory : u16, dweventid : u32, lpusersid : super::super::Security:: PSID, wnumstrings : u16, dwdatasize : u32, lpstrings : *const windows_core::PCSTR, lprawdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ReportEventA(heventlog : super::super::Foundation:: HANDLE, wtype : REPORT_EVENT_TYPE, wcategory : u16, dweventid : u32, lpusersid : super::super::Security:: PSID, wnumstrings : u16, dwdatasize : u32, lpstrings : *const windows_core::PCSTR, lprawdata : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { ReportEventA(heventlog, wtype, wcategory, dweventid, lpusersid.unwrap_or(core::mem::zeroed()) as _, lpstrings.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwdatasize, core::mem::transmute(lpstrings.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lprawdata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn ReportEventW(heventlog: super::super::Foundation::HANDLE, wtype: REPORT_EVENT_TYPE, wcategory: u16, dweventid: u32, lpusersid: Option, dwdatasize: u32, lpstrings: Option<&[windows_core::PCWSTR]>, lprawdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ReportEventW(heventlog : super::super::Foundation:: HANDLE, wtype : REPORT_EVENT_TYPE, wcategory : u16, dweventid : u32, lpusersid : super::super::Security:: PSID, wnumstrings : u16, dwdatasize : u32, lpstrings : *const windows_core::PCWSTR, lprawdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ReportEventW(heventlog : super::super::Foundation:: HANDLE, wtype : REPORT_EVENT_TYPE, wcategory : u16, dweventid : u32, lpusersid : super::super::Security:: PSID, wnumstrings : u16, dwdatasize : u32, lpstrings : *const windows_core::PCWSTR, lprawdata : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { ReportEventW(heventlog, wtype, wcategory, dweventid, lpusersid.unwrap_or(core::mem::zeroed()) as _, lpstrings.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), dwdatasize, core::mem::transmute(lpstrings.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lprawdata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[repr(C)] @@ -551,7 +551,7 @@ impl Default for EVT_VARIANT { #[cfg(feature = "Win32_Security")] #[derive(Clone, Copy)] pub union EVT_VARIANT_0 { - pub BooleanVal: super::super::Foundation::BOOL, + pub BooleanVal: windows_core::BOOL, pub SByteVal: i8, pub Int16Val: i16, pub Int32Val: i32, @@ -570,7 +570,7 @@ pub union EVT_VARIANT_0 { pub BinaryVal: *mut u8, pub SidVal: super::super::Security::PSID, pub SizeTVal: usize, - pub BooleanArr: *mut super::super::Foundation::BOOL, + pub BooleanArr: *mut windows_core::BOOL, pub SByteArr: *mut i8, pub Int16Arr: *mut i16, pub Int32Arr: *mut i32, 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 7e71ed1327..d52a15fdb3 100644 --- a/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/mod.rs @@ -3,7 +3,7 @@ pub unsafe fn IsDestinationReachableA(lpszdestination: P0, lpqocinfo: *mut Q where P0: windows_core::Param, { - windows_targets::link!("sensapi.dll" "system" fn IsDestinationReachableA(lpszdestination : windows_core::PCSTR, lpqocinfo : *mut QOCINFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("sensapi.dll" "system" fn IsDestinationReachableA(lpszdestination : windows_core::PCSTR, lpqocinfo : *mut QOCINFO) -> windows_core::BOOL); unsafe { IsDestinationReachableA(lpszdestination.param().abi(), lpqocinfo as _).ok() } } #[inline] @@ -11,12 +11,12 @@ pub unsafe fn IsDestinationReachableW(lpszdestination: P0, lpqocinfo: *mut Q where P0: windows_core::Param, { - windows_targets::link!("sensapi.dll" "system" fn IsDestinationReachableW(lpszdestination : windows_core::PCWSTR, lpqocinfo : *mut QOCINFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("sensapi.dll" "system" fn IsDestinationReachableW(lpszdestination : windows_core::PCWSTR, lpqocinfo : *mut QOCINFO) -> windows_core::BOOL); unsafe { IsDestinationReachableW(lpszdestination.param().abi(), lpqocinfo as _).ok() } } #[inline] 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); + windows_targets::link!("sensapi.dll" "system" fn IsNetworkAlive(lpdwflags : *mut u32) -> windows_core::BOOL); unsafe { IsNetworkAlive(lpdwflags as _).ok() } } pub const CONNECTION_AOL: u32 = 4u32; 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 5305dd69c9..2d1f691f00 100644 --- a/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/mod.rs @@ -17,7 +17,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("gpedit.dll" "system" fn CreateGPOLink(lpgpo : windows_core::PCWSTR, lpcontainer : windows_core::PCWSTR, fhighpriority : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("gpedit.dll" "system" fn CreateGPOLink(lpgpo : windows_core::PCWSTR, lpcontainer : windows_core::PCWSTR, fhighpriority : windows_core::BOOL) -> windows_core::HRESULT); unsafe { CreateGPOLink(lpgpo.param().abi(), lpcontainer.param().abi(), fhighpriority.into()).ok() } } #[inline] @@ -39,7 +39,7 @@ where } #[inline] pub unsafe fn EnterCriticalPolicySection(bmachine: bool) -> windows_core::Result { - windows_targets::link!("userenv.dll" "system" fn EnterCriticalPolicySection(bmachine : super::super::Foundation:: BOOL) -> super::super::Foundation:: HANDLE); + windows_targets::link!("userenv.dll" "system" fn EnterCriticalPolicySection(bmachine : windows_core::BOOL) -> super::super::Foundation:: HANDLE); let result__ = unsafe { EnterCriticalPolicySection(bmachine.into()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -54,12 +54,12 @@ where } #[inline] pub unsafe fn FreeGPOListA(pgpolist: *const GROUP_POLICY_OBJECTA) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn FreeGPOListA(pgpolist : *const GROUP_POLICY_OBJECTA) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn FreeGPOListA(pgpolist : *const GROUP_POLICY_OBJECTA) -> windows_core::BOOL); unsafe { FreeGPOListA(pgpolist).ok() } } #[inline] pub unsafe fn FreeGPOListW(pgpolist: *const GROUP_POLICY_OBJECTW) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn FreeGPOListW(pgpolist : *const GROUP_POLICY_OBJECTW) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn FreeGPOListW(pgpolist : *const GROUP_POLICY_OBJECTW) -> windows_core::BOOL); unsafe { FreeGPOListW(pgpolist).ok() } } #[inline] @@ -67,7 +67,7 @@ pub unsafe fn GenerateGPNotification(bmachine: bool, lpwszmgmtproduct: P1, d where P1: windows_core::Param, { - windows_targets::link!("userenv.dll" "system" fn GenerateGPNotification(bmachine : super::super::Foundation:: BOOL, lpwszmgmtproduct : windows_core::PCWSTR, dwmgmtproductoptions : u32) -> u32); + windows_targets::link!("userenv.dll" "system" fn GenerateGPNotification(bmachine : windows_core::BOOL, lpwszmgmtproduct : windows_core::PCWSTR, dwmgmtproductoptions : u32) -> u32); unsafe { GenerateGPNotification(bmachine.into(), lpwszmgmtproduct.param().abi(), dwmgmtproductoptions) } } #[cfg(feature = "Win32_Security")] @@ -95,7 +95,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("userenv.dll" "system" fn GetGPOListA(htoken : super::super::Foundation:: HANDLE, lpname : windows_core::PCSTR, lphostname : windows_core::PCSTR, lpcomputername : windows_core::PCSTR, dwflags : u32, pgpolist : *mut *mut GROUP_POLICY_OBJECTA) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn GetGPOListA(htoken : super::super::Foundation:: HANDLE, lpname : windows_core::PCSTR, lphostname : windows_core::PCSTR, lpcomputername : windows_core::PCSTR, dwflags : u32, pgpolist : *mut *mut GROUP_POLICY_OBJECTA) -> windows_core::BOOL); unsafe { GetGPOListA(htoken.unwrap_or(core::mem::zeroed()) as _, lpname.param().abi(), lphostname.param().abi(), lpcomputername.param().abi(), dwflags, pgpolist as _).ok() } } #[inline] @@ -105,7 +105,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("userenv.dll" "system" fn GetGPOListW(htoken : super::super::Foundation:: HANDLE, lpname : windows_core::PCWSTR, lphostname : windows_core::PCWSTR, lpcomputername : windows_core::PCWSTR, dwflags : u32, pgpolist : *mut *mut GROUP_POLICY_OBJECTW) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn GetGPOListW(htoken : super::super::Foundation:: HANDLE, lpname : windows_core::PCWSTR, lphostname : windows_core::PCWSTR, lpcomputername : windows_core::PCWSTR, dwflags : u32, pgpolist : *mut *mut GROUP_POLICY_OBJECTW) -> windows_core::BOOL); unsafe { GetGPOListW(htoken.unwrap_or(core::mem::zeroed()) as _, lpname.param().abi(), lphostname.param().abi(), lpcomputername.param().abi(), dwflags, pgpolist as _).ok() } } #[inline] @@ -118,7 +118,7 @@ where } #[inline] pub unsafe fn GetLocalManagedApplications(buserapps: bool, pdwapps: *mut u32, prglocalapps: *mut *mut LOCALMANAGEDAPPLICATION) -> u32 { - windows_targets::link!("advapi32.dll" "system" fn GetLocalManagedApplications(buserapps : super::super::Foundation:: BOOL, pdwapps : *mut u32, prglocalapps : *mut *mut LOCALMANAGEDAPPLICATION) -> u32); + windows_targets::link!("advapi32.dll" "system" fn GetLocalManagedApplications(buserapps : windows_core::BOOL, pdwapps : *mut u32, prglocalapps : *mut *mut LOCALMANAGEDAPPLICATION) -> u32); unsafe { GetLocalManagedApplications(buserapps.into(), pdwapps as _, prglocalapps as _) } } #[cfg(feature = "Win32_UI_Shell")] @@ -148,7 +148,7 @@ pub unsafe fn InstallApplication(pinstallinfo: *const INSTALLDATA) -> u32 { } #[inline] pub unsafe fn LeaveCriticalPolicySection(hsection: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn LeaveCriticalPolicySection(hsection : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn LeaveCriticalPolicySection(hsection : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { LeaveCriticalPolicySection(hsection).ok() } } #[inline] @@ -163,31 +163,31 @@ pub unsafe fn ProcessGroupPolicyCompletedEx(extensionid: *const windows_core::GU } #[inline] pub unsafe fn RefreshPolicy(bmachine: bool) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn RefreshPolicy(bmachine : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn RefreshPolicy(bmachine : windows_core::BOOL) -> windows_core::BOOL); unsafe { RefreshPolicy(bmachine.into()).ok() } } #[inline] pub unsafe fn RefreshPolicyEx(bmachine: bool, dwoptions: u32) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn RefreshPolicyEx(bmachine : super::super::Foundation:: BOOL, dwoptions : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn RefreshPolicyEx(bmachine : windows_core::BOOL, dwoptions : u32) -> windows_core::BOOL); unsafe { RefreshPolicyEx(bmachine.into(), dwoptions).ok() } } #[inline] pub unsafe fn RegisterGPNotification(hevent: super::super::Foundation::HANDLE, bmachine: bool) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn RegisterGPNotification(hevent : super::super::Foundation:: HANDLE, bmachine : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn RegisterGPNotification(hevent : super::super::Foundation:: HANDLE, bmachine : windows_core::BOOL) -> windows_core::BOOL); unsafe { RegisterGPNotification(hevent, bmachine.into()).ok() } } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn RsopAccessCheckByType(psecuritydescriptor: super::super::Security::PSECURITY_DESCRIPTOR, pprincipalselfsid: Option, prsoptoken: *const core::ffi::c_void, dwdesiredaccessmask: u32, pobjecttypelist: Option<&[super::super::Security::OBJECT_TYPE_LIST]>, pgenericmapping: *const super::super::Security::GENERIC_MAPPING, pprivilegeset: Option<*const super::super::Security::PRIVILEGE_SET>, pdwprivilegesetlength: Option<*const u32>, pdwgrantedaccessmask: *mut u32, pbaccessstatus: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn RsopAccessCheckByType(psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, pprincipalselfsid : super::super::Security:: PSID, prsoptoken : *const core::ffi::c_void, dwdesiredaccessmask : u32, pobjecttypelist : *const super::super::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, pgenericmapping : *const super::super::Security:: GENERIC_MAPPING, pprivilegeset : *const super::super::Security:: PRIVILEGE_SET, pdwprivilegesetlength : *const u32, pdwgrantedaccessmask : *mut u32, pbaccessstatus : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn RsopAccessCheckByType(psecuritydescriptor: super::super::Security::PSECURITY_DESCRIPTOR, pprincipalselfsid: Option, prsoptoken: *const core::ffi::c_void, dwdesiredaccessmask: u32, pobjecttypelist: Option<&[super::super::Security::OBJECT_TYPE_LIST]>, pgenericmapping: *const super::super::Security::GENERIC_MAPPING, pprivilegeset: Option<*const super::super::Security::PRIVILEGE_SET>, pdwprivilegesetlength: Option<*const u32>, pdwgrantedaccessmask: *mut u32, pbaccessstatus: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("userenv.dll" "system" fn RsopAccessCheckByType(psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, pprincipalselfsid : super::super::Security:: PSID, prsoptoken : *const core::ffi::c_void, dwdesiredaccessmask : u32, pobjecttypelist : *const super::super::Security:: OBJECT_TYPE_LIST, objecttypelistlength : u32, pgenericmapping : *const super::super::Security:: GENERIC_MAPPING, pprivilegeset : *const super::super::Security:: PRIVILEGE_SET, pdwprivilegesetlength : *const u32, pdwgrantedaccessmask : *mut u32, pbaccessstatus : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { RsopAccessCheckByType(psecuritydescriptor, pprincipalselfsid.unwrap_or(core::mem::zeroed()) as _, prsoptoken, dwdesiredaccessmask, core::mem::transmute(pobjecttypelist.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pobjecttypelist.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pgenericmapping, pprivilegeset.unwrap_or(core::mem::zeroed()) as _, pdwprivilegesetlength.unwrap_or(core::mem::zeroed()) as _, pdwgrantedaccessmask as _, pbaccessstatus as _).ok() } } #[inline] -pub unsafe fn RsopFileAccessCheck(pszfilename: P0, prsoptoken: *const core::ffi::c_void, dwdesiredaccessmask: u32, pdwgrantedaccessmask: *mut u32, pbaccessstatus: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> +pub unsafe fn RsopFileAccessCheck(pszfilename: P0, prsoptoken: *const core::ffi::c_void, dwdesiredaccessmask: u32, pdwgrantedaccessmask: *mut u32, pbaccessstatus: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("userenv.dll" "system" fn RsopFileAccessCheck(pszfilename : windows_core::PCWSTR, prsoptoken : *const core::ffi::c_void, dwdesiredaccessmask : u32, pdwgrantedaccessmask : *mut u32, pbaccessstatus : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("userenv.dll" "system" fn RsopFileAccessCheck(pszfilename : windows_core::PCWSTR, prsoptoken : *const core::ffi::c_void, dwdesiredaccessmask : u32, pdwgrantedaccessmask : *mut u32, pbaccessstatus : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { RsopFileAccessCheck(pszfilename.param().abi(), prsoptoken, dwdesiredaccessmask, pdwgrantedaccessmask as _, pbaccessstatus as _).ok() } } #[cfg(feature = "Win32_System_Wmi")] @@ -220,7 +220,7 @@ where } #[inline] pub unsafe fn UnregisterGPNotification(hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn UnregisterGPNotification(hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn UnregisterGPNotification(hevent : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { UnregisterGPNotification(hevent).ok() } } pub const ABSENT: APPSTATE = APPSTATE(0i32); @@ -539,7 +539,7 @@ pub struct IGPEInformation_Vtbl { pub GetOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GROUP_POLICY_OBJECT_TYPE) -> windows_core::HRESULT, pub GetHint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GROUP_POLICY_HINT_TYPE) -> windows_core::HRESULT, - pub PolicyChanged: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *mut windows_core::GUID, *mut windows_core::GUID) -> windows_core::HRESULT, + pub PolicyChanged: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL, *mut windows_core::GUID, *mut windows_core::GUID) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Registry")] pub trait IGPEInformation_Impl: windows_core::IUnknownImpl { @@ -551,7 +551,7 @@ pub trait IGPEInformation_Impl: windows_core::IUnknownImpl { fn GetOptions(&self, dwoptions: *mut u32) -> windows_core::Result<()>; fn GetType(&self, gpotype: *mut GROUP_POLICY_OBJECT_TYPE) -> windows_core::Result<()>; fn GetHint(&self, gphint: *mut GROUP_POLICY_HINT_TYPE) -> windows_core::Result<()>; - fn PolicyChanged(&self, bmachine: super::super::Foundation::BOOL, badd: super::super::Foundation::BOOL, pguidextension: *mut windows_core::GUID, pguidsnapin: *mut windows_core::GUID) -> windows_core::Result<()>; + fn PolicyChanged(&self, bmachine: windows_core::BOOL, badd: windows_core::BOOL, pguidextension: *mut windows_core::GUID, pguidsnapin: *mut windows_core::GUID) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Registry")] impl IGPEInformation_Vtbl { @@ -604,7 +604,7 @@ impl IGPEInformation_Vtbl { IGPEInformation_Impl::GetHint(this, core::mem::transmute_copy(&gphint)).into() } } - unsafe extern "system" fn PolicyChanged(this: *mut core::ffi::c_void, bmachine: super::super::Foundation::BOOL, badd: super::super::Foundation::BOOL, pguidextension: *mut windows_core::GUID, pguidsnapin: *mut windows_core::GUID) -> windows_core::HRESULT { + unsafe extern "system" fn PolicyChanged(this: *mut core::ffi::c_void, bmachine: windows_core::BOOL, badd: windows_core::BOOL, pguidextension: *mut windows_core::GUID, pguidsnapin: *mut windows_core::GUID) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGPEInformation_Impl::PolicyChanged(this, core::mem::transmute_copy(&bmachine), core::mem::transmute_copy(&badd), core::mem::transmute_copy(&pguidextension), core::mem::transmute_copy(&pguidsnapin)).into() @@ -8901,7 +8901,7 @@ pub struct IGroupPolicyObject_Vtbl { pub OpenDSGPO: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, GPO_OPEN_FLAGS) -> windows_core::HRESULT, pub OpenLocalMachineGPO: unsafe extern "system" fn(*mut core::ffi::c_void, GPO_OPEN_FLAGS) -> windows_core::HRESULT, pub OpenRemoteMachineGPO: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, GPO_OPEN_FLAGS) -> windows_core::HRESULT, - pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *mut windows_core::GUID, *mut windows_core::GUID) -> windows_core::HRESULT, + pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL, *mut windows_core::GUID, *mut windows_core::GUID) -> windows_core::HRESULT, pub Delete: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, i32) -> windows_core::HRESULT, pub GetDisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, i32) -> windows_core::HRESULT, @@ -8928,7 +8928,7 @@ pub trait IGroupPolicyObject_Impl: windows_core::IUnknownImpl { fn OpenDSGPO(&self, pszpath: &windows_core::PCWSTR, dwflags: GPO_OPEN_FLAGS) -> windows_core::Result<()>; fn OpenLocalMachineGPO(&self, dwflags: GPO_OPEN_FLAGS) -> windows_core::Result<()>; fn OpenRemoteMachineGPO(&self, pszcomputername: &windows_core::PCWSTR, dwflags: GPO_OPEN_FLAGS) -> windows_core::Result<()>; - fn Save(&self, bmachine: super::super::Foundation::BOOL, badd: super::super::Foundation::BOOL, pguidextension: *mut windows_core::GUID, pguid: *mut windows_core::GUID) -> windows_core::Result<()>; + fn Save(&self, bmachine: windows_core::BOOL, badd: windows_core::BOOL, pguidextension: *mut windows_core::GUID, pguid: *mut windows_core::GUID) -> windows_core::Result<()>; fn Delete(&self) -> windows_core::Result<()>; fn GetName(&self, pszname: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::Result<()>; fn GetDisplayName(&self, pszname: windows_core::PWSTR, cchmaxlength: i32) -> windows_core::Result<()>; @@ -8970,7 +8970,7 @@ impl IGroupPolicyObject_Vtbl { IGroupPolicyObject_Impl::OpenRemoteMachineGPO(this, core::mem::transmute(&pszcomputername), core::mem::transmute_copy(&dwflags)).into() } } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, bmachine: super::super::Foundation::BOOL, badd: super::super::Foundation::BOOL, pguidextension: *mut windows_core::GUID, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, bmachine: windows_core::BOOL, badd: windows_core::BOOL, pguidextension: *mut windows_core::GUID, pguid: *mut windows_core::GUID) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGroupPolicyObject_Impl::Save(this, core::mem::transmute_copy(&bmachine), core::mem::transmute_copy(&badd), core::mem::transmute_copy(&pguidextension), core::mem::transmute_copy(&pguid)).into() @@ -9241,7 +9241,7 @@ pub struct MANAGEDAPPLICATION { pub pszContact: windows_core::PWSTR, pub pszSupportUrl: windows_core::PWSTR, pub dwPathType: u32, - pub bInstalled: super::super::Foundation::BOOL, + pub bInstalled: windows_core::BOOL, } impl Default for MANAGEDAPPLICATION { fn default() -> Self { @@ -9263,12 +9263,12 @@ pub const NODEID_RSOPUserSWSettings: windows_core::GUID = windows_core::GUID::fr pub const NODEID_User: windows_core::GUID = windows_core::GUID::from_u128(0x8fc0b738_a0e1_11d1_a7d3_0000f87571e3); pub const NODEID_UserSWSettings: windows_core::GUID = windows_core::GUID::from_u128(0x8fc0b73c_a0e1_11d1_a7d3_0000f87571e3); #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Wmi"))] -pub type PFNGENERATEGROUPPOLICY = Option u32>; +pub type PFNGENERATEGROUPPOLICY = Option u32>; #[cfg(feature = "Win32_System_Registry")] -pub type PFNPROCESSGROUPPOLICY = Option u32>; +pub type PFNPROCESSGROUPPOLICY = Option u32>; #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_System_Wmi"))] -pub type PFNPROCESSGROUPPOLICYEX = Option, prsopstatus: *mut windows_core::HRESULT) -> u32>; -pub type PFNSTATUSMESSAGECALLBACK = Option u32>; +pub type PFNPROCESSGROUPPOLICYEX = Option, prsopstatus: *mut windows_core::HRESULT) -> u32>; +pub type PFNSTATUSMESSAGECALLBACK = Option u32>; pub const PI_APPLYPOLICY: u32 = 2u32; pub const PI_NOUI: u32 = 1u32; #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs index 664981360a..8eb30ef540 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Hypervisor/mod.rs @@ -17,12 +17,12 @@ pub unsafe fn CallStackUnwind(vmsavedstatedumphandle: *mut core::ffi::c_void, vp unsafe { CallStackUnwind(vmsavedstatedumphandle as _, vpid, imageinfo, imageinfocount, framecount, callstack as _).ok() } } #[inline] -pub unsafe fn FindSavedStateSymbolFieldInType(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, typename: P2, fieldname: P3, offset: *mut u32, found: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> +pub unsafe fn FindSavedStateSymbolFieldInType(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, typename: P2, fieldname: P3, offset: *mut u32, found: *mut windows_core::BOOL) -> windows_core::Result<()> where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn FindSavedStateSymbolFieldInType(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, typename : windows_core::PCSTR, fieldname : windows_core::PCWSTR, offset : *mut u32, found : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn FindSavedStateSymbolFieldInType(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, typename : windows_core::PCSTR, fieldname : windows_core::PCWSTR, offset : *mut u32, found : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { FindSavedStateSymbolFieldInType(vmsavedstatedumphandle as _, vpid, typename.param().abi(), fieldname.param().abi(), offset as _, found as _).ok() } } #[inline] @@ -36,8 +36,8 @@ pub unsafe fn ForceArchitecture(vmsavedstatedumphandle: *mut core::ffi::c_void, unsafe { ForceArchitecture(vmsavedstatedumphandle as _, vpid, architecture).ok() } } #[inline] -pub unsafe fn ForceNestedHostMode(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, hostmode: bool, oldmode: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { - windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ForceNestedHostMode(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, hostmode : super::super::Foundation:: BOOL, oldmode : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn ForceNestedHostMode(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, hostmode: bool, oldmode: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { + windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ForceNestedHostMode(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, hostmode : windows_core::BOOL, oldmode : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { ForceNestedHostMode(vmsavedstatedumphandle as _, vpid, hostmode.into(), oldmode.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -86,8 +86,8 @@ pub unsafe fn GetMemoryBlockCacheLimit(vmsavedstatedumphandle: *mut core::ffi::c unsafe { GetMemoryBlockCacheLimit(vmsavedstatedumphandle as _, memoryblockcachelimit as _).ok() } } #[inline] -pub unsafe fn GetNestedVirtualizationMode(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, enabled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetNestedVirtualizationMode(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, enabled : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn GetNestedVirtualizationMode(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, enabled: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetNestedVirtualizationMode(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, enabled : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { GetNestedVirtualizationMode(vmsavedstatedumphandle as _, vpid, enabled as _).ok() } } #[inline] @@ -143,7 +143,7 @@ pub unsafe fn HdvCreateDeviceInstance(devicehosthandle: *const core::ffi::c_void } #[inline] pub unsafe fn HdvCreateGuestMemoryAperture(requestor: *const core::ffi::c_void, guestphysicaladdress: u64, bytecount: u32, writeprotected: bool, mappedaddress: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("vmdevicehost.dll" "system" fn HdvCreateGuestMemoryAperture(requestor : *const core::ffi::c_void, guestphysicaladdress : u64, bytecount : u32, writeprotected : super::super::Foundation:: BOOL, mappedaddress : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("vmdevicehost.dll" "system" fn HdvCreateGuestMemoryAperture(requestor : *const core::ffi::c_void, guestphysicaladdress : u64, bytecount : u32, writeprotected : windows_core::BOOL, mappedaddress : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { HdvCreateGuestMemoryAperture(requestor, guestphysicaladdress, bytecount, writeprotected.into(), mappedaddress as _).ok() } } #[inline] @@ -204,18 +204,18 @@ pub unsafe fn HdvWriteGuestMemory(requestor: *const core::ffi::c_void, guestphys unsafe { HdvWriteGuestMemory(requestor, guestphysicaladdress, buffer.len().try_into().unwrap(), core::mem::transmute(buffer.as_ptr())).ok() } } #[inline] -pub unsafe fn InKernelSpace(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, inkernelspace: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn InKernelSpace(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, inkernelspace : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn InKernelSpace(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, inkernelspace: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn InKernelSpace(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, inkernelspace : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { InKernelSpace(vmsavedstatedumphandle as _, vpid, inkernelspace as _).ok() } } #[inline] -pub unsafe fn IsActiveVirtualTrustLevelEnabled(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, activevirtualtrustlevelenabled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn IsActiveVirtualTrustLevelEnabled(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, activevirtualtrustlevelenabled : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn IsActiveVirtualTrustLevelEnabled(vmsavedstatedumphandle: *mut core::ffi::c_void, vpid: u32, activevirtualtrustlevelenabled: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn IsActiveVirtualTrustLevelEnabled(vmsavedstatedumphandle : *mut core::ffi::c_void, vpid : u32, activevirtualtrustlevelenabled : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { IsActiveVirtualTrustLevelEnabled(vmsavedstatedumphandle as _, vpid, activevirtualtrustlevelenabled as _).ok() } } #[inline] -pub unsafe fn IsNestedVirtualizationEnabled(vmsavedstatedumphandle: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn IsNestedVirtualizationEnabled(vmsavedstatedumphandle : *mut core::ffi::c_void, enabled : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn IsNestedVirtualizationEnabled(vmsavedstatedumphandle: *mut core::ffi::c_void, enabled: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn IsNestedVirtualizationEnabled(vmsavedstatedumphandle : *mut core::ffi::c_void, enabled : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { IsNestedVirtualizationEnabled(vmsavedstatedumphandle as _, enabled as _).ok() } } #[inline] @@ -258,7 +258,7 @@ pub unsafe fn LoadSavedStateSymbolProvider(vmsavedstatedumphandle: *mut core where P1: windows_core::Param, { - windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn LoadSavedStateSymbolProvider(vmsavedstatedumphandle : *mut core::ffi::c_void, usersymbols : windows_core::PCWSTR, force : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn LoadSavedStateSymbolProvider(vmsavedstatedumphandle : *mut core::ffi::c_void, usersymbols : windows_core::PCWSTR, force : windows_core::BOOL) -> windows_core::HRESULT); unsafe { LoadSavedStateSymbolProvider(vmsavedstatedumphandle as _, usersymbols.param().abi(), force.into()).ok() } } #[inline] @@ -636,8 +636,8 @@ pub unsafe fn WHvSetupPartition(partition: WHV_PARTITION_HANDLE) -> windows_core unsafe { WHvSetupPartition(partition).ok() } } #[inline] -pub unsafe fn WHvSignalVirtualProcessorSynicEvent(partition: WHV_PARTITION_HANDLE, synicevent: WHV_SYNIC_EVENT_PARAMETERS, newlysignaled: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { - windows_targets::link!("winhvplatform.dll" "system" fn WHvSignalVirtualProcessorSynicEvent(partition : WHV_PARTITION_HANDLE, synicevent : WHV_SYNIC_EVENT_PARAMETERS, newlysignaled : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn WHvSignalVirtualProcessorSynicEvent(partition: WHV_PARTITION_HANDLE, synicevent: WHV_SYNIC_EVENT_PARAMETERS, newlysignaled: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { + windows_targets::link!("winhvplatform.dll" "system" fn WHvSignalVirtualProcessorSynicEvent(partition : WHV_PARTITION_HANDLE, synicevent : WHV_SYNIC_EVENT_PARAMETERS, newlysignaled : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { WHvSignalVirtualProcessorSynicEvent(partition, core::mem::transmute(synicevent), newlysignaled.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -802,7 +802,7 @@ impl Default for DOS_IMAGE_INFO { unsafe { core::mem::zeroed() } } } -pub type FOUND_IMAGE_CALLBACK = Option super::super::Foundation::BOOL>; +pub type FOUND_IMAGE_CALLBACK = Option windows_core::BOOL>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct GPA_MEMORY_CHUNK { @@ -1378,7 +1378,7 @@ pub struct WHV_CACHE_TYPE(pub i32); #[repr(C)] #[derive(Clone, Copy)] pub union WHV_CAPABILITY { - pub HypervisorPresent: super::super::Foundation::BOOL, + pub HypervisorPresent: windows_core::BOOL, pub Features: WHV_CAPABILITY_FEATURES, pub ExtendedVmExits: WHV_EXTENDED_VM_EXITS, pub ProcessorVendor: WHV_PROCESSOR_VENDOR, @@ -1847,12 +1847,12 @@ pub union WHV_PARTITION_PROPERTY { pub UnimplementedMsrAction: WHV_MSR_ACTION, pub ExceptionExitBitmap: u64, pub LocalApicEmulationMode: WHV_X64_LOCAL_APIC_EMULATION_MODE, - pub SeparateSecurityDomain: super::super::Foundation::BOOL, - pub NestedVirtualization: super::super::Foundation::BOOL, + pub SeparateSecurityDomain: windows_core::BOOL, + pub NestedVirtualization: windows_core::BOOL, pub X64MsrExitBitmap: WHV_X64_MSR_EXIT_BITMAP, pub ProcessorClockFrequency: u64, pub InterruptClockFrequency: u64, - pub ApicRemoteRead: super::super::Foundation::BOOL, + pub ApicRemoteRead: windows_core::BOOL, pub ProcessorFeaturesBanks: WHV_PROCESSOR_FEATURES_BANKS, pub ReferenceTime: u64, pub PrimaryNumaNode: u16, @@ -1861,9 +1861,9 @@ pub union WHV_PARTITION_PROPERTY { pub CpuWeight: u32, pub CpuGroupId: u64, pub ProcessorFrequencyCap: u32, - pub AllowDeviceAssignment: super::super::Foundation::BOOL, + pub AllowDeviceAssignment: windows_core::BOOL, pub ProcessorPerfmonFeatures: WHV_PROCESSOR_PERFMON_FEATURES, - pub DisableSmt: super::super::Foundation::BOOL, + pub DisableSmt: windows_core::BOOL, } impl Default for WHV_PARTITION_PROPERTY { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/System/IO/mod.rs b/crates/libs/windows/src/Windows/Win32/System/IO/mod.rs index 40b51aa279..e3c448affa 100644 --- a/crates/libs/windows/src/Windows/Win32/System/IO/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/IO/mod.rs @@ -1,21 +1,21 @@ #[inline] pub unsafe fn BindIoCompletionCallback(filehandle: super::super::Foundation::HANDLE, function: LPOVERLAPPED_COMPLETION_ROUTINE, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn BindIoCompletionCallback(filehandle : super::super::Foundation:: HANDLE, function : LPOVERLAPPED_COMPLETION_ROUTINE, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn BindIoCompletionCallback(filehandle : super::super::Foundation:: HANDLE, function : LPOVERLAPPED_COMPLETION_ROUTINE, flags : u32) -> windows_core::BOOL); unsafe { BindIoCompletionCallback(filehandle, function, flags).ok() } } #[inline] pub unsafe fn CancelIo(hfile: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn CancelIo(hfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CancelIo(hfile : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CancelIo(hfile).ok() } } #[inline] pub unsafe fn CancelIoEx(hfile: super::super::Foundation::HANDLE, lpoverlapped: Option<*const OVERLAPPED>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn CancelIoEx(hfile : super::super::Foundation:: HANDLE, lpoverlapped : *const OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CancelIoEx(hfile : super::super::Foundation:: HANDLE, lpoverlapped : *const OVERLAPPED) -> windows_core::BOOL); unsafe { CancelIoEx(hfile, lpoverlapped.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CancelSynchronousIo(hthread: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn CancelSynchronousIo(hthread : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CancelSynchronousIo(hthread : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CancelSynchronousIo(hthread).ok() } } #[inline] @@ -26,32 +26,32 @@ pub unsafe fn CreateIoCompletionPort(filehandle: super::super::Foundation::HANDL } #[inline] pub unsafe fn DeviceIoControl(hdevice: super::super::Foundation::HANDLE, dwiocontrolcode: u32, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesreturned: Option<*mut u32>, lpoverlapped: Option<*mut OVERLAPPED>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn DeviceIoControl(hdevice : super::super::Foundation:: HANDLE, dwiocontrolcode : u32, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32, lpoverlapped : *mut OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DeviceIoControl(hdevice : super::super::Foundation:: HANDLE, dwiocontrolcode : u32, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesreturned : *mut u32, lpoverlapped : *mut OVERLAPPED) -> windows_core::BOOL); unsafe { DeviceIoControl(hdevice, dwiocontrolcode, lpinbuffer.unwrap_or(core::mem::zeroed()) as _, ninbuffersize, lpoutbuffer.unwrap_or(core::mem::zeroed()) as _, noutbuffersize, lpbytesreturned.unwrap_or(core::mem::zeroed()) as _, lpoverlapped.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn GetOverlappedResult(hfile: super::super::Foundation::HANDLE, lpoverlapped: *const OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: bool) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetOverlappedResult(hfile : super::super::Foundation:: HANDLE, lpoverlapped : *const OVERLAPPED, lpnumberofbytestransferred : *mut u32, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetOverlappedResult(hfile : super::super::Foundation:: HANDLE, lpoverlapped : *const OVERLAPPED, lpnumberofbytestransferred : *mut u32, bwait : windows_core::BOOL) -> windows_core::BOOL); unsafe { GetOverlappedResult(hfile, lpoverlapped, lpnumberofbytestransferred as _, bwait.into()).ok() } } #[inline] pub unsafe fn GetOverlappedResultEx(hfile: super::super::Foundation::HANDLE, lpoverlapped: *const OVERLAPPED, lpnumberofbytestransferred: *mut u32, dwmilliseconds: u32, balertable: bool) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetOverlappedResultEx(hfile : super::super::Foundation:: HANDLE, lpoverlapped : *const OVERLAPPED, lpnumberofbytestransferred : *mut u32, dwmilliseconds : u32, balertable : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetOverlappedResultEx(hfile : super::super::Foundation:: HANDLE, lpoverlapped : *const OVERLAPPED, lpnumberofbytestransferred : *mut u32, dwmilliseconds : u32, balertable : windows_core::BOOL) -> windows_core::BOOL); unsafe { GetOverlappedResultEx(hfile, lpoverlapped, lpnumberofbytestransferred as _, dwmilliseconds, balertable.into()).ok() } } #[inline] pub unsafe fn GetQueuedCompletionStatus(completionport: super::super::Foundation::HANDLE, lpnumberofbytestransferred: *mut u32, lpcompletionkey: *mut usize, lpoverlapped: *mut *mut OVERLAPPED, dwmilliseconds: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetQueuedCompletionStatus(completionport : super::super::Foundation:: HANDLE, lpnumberofbytestransferred : *mut u32, lpcompletionkey : *mut usize, lpoverlapped : *mut *mut OVERLAPPED, dwmilliseconds : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetQueuedCompletionStatus(completionport : super::super::Foundation:: HANDLE, lpnumberofbytestransferred : *mut u32, lpcompletionkey : *mut usize, lpoverlapped : *mut *mut OVERLAPPED, dwmilliseconds : u32) -> windows_core::BOOL); unsafe { GetQueuedCompletionStatus(completionport, lpnumberofbytestransferred as _, lpcompletionkey as _, lpoverlapped as _, dwmilliseconds).ok() } } #[inline] pub unsafe fn GetQueuedCompletionStatusEx(completionport: super::super::Foundation::HANDLE, lpcompletionportentries: &mut [OVERLAPPED_ENTRY], ulnumentriesremoved: *mut u32, dwmilliseconds: u32, falertable: bool) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetQueuedCompletionStatusEx(completionport : super::super::Foundation:: HANDLE, lpcompletionportentries : *mut OVERLAPPED_ENTRY, ulcount : u32, ulnumentriesremoved : *mut u32, dwmilliseconds : u32, falertable : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetQueuedCompletionStatusEx(completionport : super::super::Foundation:: HANDLE, lpcompletionportentries : *mut OVERLAPPED_ENTRY, ulcount : u32, ulnumentriesremoved : *mut u32, dwmilliseconds : u32, falertable : windows_core::BOOL) -> windows_core::BOOL); unsafe { GetQueuedCompletionStatusEx(completionport, core::mem::transmute(lpcompletionportentries.as_ptr()), lpcompletionportentries.len().try_into().unwrap(), ulnumentriesremoved as _, dwmilliseconds, falertable.into()).ok() } } #[inline] pub unsafe fn PostQueuedCompletionStatus(completionport: super::super::Foundation::HANDLE, dwnumberofbytestransferred: u32, dwcompletionkey: usize, lpoverlapped: Option<*const OVERLAPPED>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn PostQueuedCompletionStatus(completionport : super::super::Foundation:: HANDLE, dwnumberofbytestransferred : u32, dwcompletionkey : usize, lpoverlapped : *const OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn PostQueuedCompletionStatus(completionport : super::super::Foundation:: HANDLE, dwnumberofbytestransferred : u32, dwcompletionkey : usize, lpoverlapped : *const OVERLAPPED) -> windows_core::BOOL); unsafe { PostQueuedCompletionStatus(completionport, dwnumberofbytestransferred, dwcompletionkey, lpoverlapped.unwrap_or(core::mem::zeroed()) as _).ok() } } #[repr(C)] 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 44e50f7941..2ce777f507 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Iis/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Iis/mod.rs @@ -1,11 +1,11 @@ #[inline] -pub unsafe fn GetExtensionVersion(pver: *mut HSE_VERSION_INFO) -> super::super::Foundation::BOOL { - windows_targets::link!("rpcproxy.dll" "system" fn GetExtensionVersion(pver : *mut HSE_VERSION_INFO) -> super::super::Foundation:: BOOL); +pub unsafe fn GetExtensionVersion(pver: *mut HSE_VERSION_INFO) -> windows_core::BOOL { + windows_targets::link!("rpcproxy.dll" "system" fn GetExtensionVersion(pver : *mut HSE_VERSION_INFO) -> windows_core::BOOL); unsafe { GetExtensionVersion(pver as _) } } #[inline] -pub unsafe fn GetFilterVersion(pver: *mut HTTP_FILTER_VERSION) -> super::super::Foundation::BOOL { - windows_targets::link!("rpcproxy.dll" "system" fn GetFilterVersion(pver : *mut HTTP_FILTER_VERSION) -> super::super::Foundation:: BOOL); +pub unsafe fn GetFilterVersion(pver: *mut HTTP_FILTER_VERSION) -> windows_core::BOOL { + windows_targets::link!("rpcproxy.dll" "system" fn GetFilterVersion(pver : *mut HTTP_FILTER_VERSION) -> windows_core::BOOL); unsafe { GetFilterVersion(pver as _) } } #[inline] @@ -41,7 +41,7 @@ impl AsyncIFtpAuthenticationProvider { { unsafe { (windows_core::Interface::vtable(self).Begin_AuthenticateUser)(windows_core::Interface::as_raw(self), pszsessionid.param().abi(), pszsitename.param().abi(), pszusername.param().abi(), pszpassword.param().abi()).ok() } } - pub unsafe fn Finish_AuthenticateUser(&self, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn Finish_AuthenticateUser(&self, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Finish_AuthenticateUser)(windows_core::Interface::as_raw(self), ppszcanonicalusername as _, pfauthenticated as _).ok() } } } @@ -49,11 +49,11 @@ impl AsyncIFtpAuthenticationProvider { pub struct AsyncIFtpAuthenticationProvider_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Begin_AuthenticateUser: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, - pub Finish_AuthenticateUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Finish_AuthenticateUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait AsyncIFtpAuthenticationProvider_Impl: windows_core::IUnknownImpl { fn Begin_AuthenticateUser(&self, pszsessionid: &windows_core::PCWSTR, pszsitename: &windows_core::PCWSTR, pszusername: &windows_core::PCWSTR, pszpassword: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn Finish_AuthenticateUser(&self, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Finish_AuthenticateUser(&self, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl AsyncIFtpAuthenticationProvider_Vtbl { pub const fn new() -> Self { @@ -63,7 +63,7 @@ impl AsyncIFtpAuthenticationProvider_Vtbl { AsyncIFtpAuthenticationProvider_Impl::Begin_AuthenticateUser(this, core::mem::transmute(&pszsessionid), core::mem::transmute(&pszsitename), core::mem::transmute(&pszusername), core::mem::transmute(&pszpassword)).into() } } - unsafe extern "system" fn Finish_AuthenticateUser(this: *mut core::ffi::c_void, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Finish_AuthenticateUser(this: *mut core::ffi::c_void, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); AsyncIFtpAuthenticationProvider_Impl::Finish_AuthenticateUser(this, core::mem::transmute_copy(&ppszcanonicalusername), core::mem::transmute_copy(&pfauthenticated)).into() @@ -364,7 +364,7 @@ impl AsyncIFtpRoleProvider { { unsafe { (windows_core::Interface::vtable(self).Begin_IsUserInRole)(windows_core::Interface::as_raw(self), pszsessionid.param().abi(), pszsitename.param().abi(), pszusername.param().abi(), pszrole.param().abi()).ok() } } - pub unsafe fn Finish_IsUserInRole(&self) -> windows_core::Result { + pub unsafe fn Finish_IsUserInRole(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Finish_IsUserInRole)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -375,11 +375,11 @@ impl AsyncIFtpRoleProvider { pub struct AsyncIFtpRoleProvider_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Begin_IsUserInRole: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, - pub Finish_IsUserInRole: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Finish_IsUserInRole: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait AsyncIFtpRoleProvider_Impl: windows_core::IUnknownImpl { fn Begin_IsUserInRole(&self, pszsessionid: &windows_core::PCWSTR, pszsitename: &windows_core::PCWSTR, pszusername: &windows_core::PCWSTR, pszrole: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn Finish_IsUserInRole(&self) -> windows_core::Result; + fn Finish_IsUserInRole(&self) -> windows_core::Result; } impl AsyncIFtpRoleProvider_Vtbl { pub const fn new() -> Self { @@ -389,7 +389,7 @@ impl AsyncIFtpRoleProvider_Vtbl { AsyncIFtpRoleProvider_Impl::Begin_IsUserInRole(this, core::mem::transmute(&pszsessionid), core::mem::transmute(&pszsitename), core::mem::transmute(&pszusername), core::mem::transmute(&pszrole)).into() } } - unsafe extern "system" fn Finish_IsUserInRole(this: *mut core::ffi::c_void, pfisinrole: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Finish_IsUserInRole(this: *mut core::ffi::c_void, pfisinrole: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match AsyncIFtpRoleProvider_Impl::Finish_IsUserInRole(this) { @@ -614,7 +614,7 @@ pub const HSE_APP_FLAG_POOLED_OOP: u32 = 2u32; pub struct HSE_CUSTOM_ERROR_INFO { pub pszStatus: windows_core::PSTR, pub uHttpSubError: u16, - pub fAsync: super::super::Foundation::BOOL, + pub fAsync: windows_core::BOOL, } impl Default for HSE_CUSTOM_ERROR_INFO { fn default() -> Self { @@ -777,7 +777,7 @@ pub struct HSE_SEND_HEADER_EX_INFO { pub pszHeader: windows_core::PCSTR, pub cchStatus: u32, pub cchHeader: u32, - pub fKeepConn: super::super::Foundation::BOOL, + pub fKeepConn: windows_core::BOOL, } impl Default for HSE_SEND_HEADER_EX_INFO { fn default() -> Self { @@ -813,7 +813,7 @@ impl Default for HSE_TF_INFO { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct HSE_TRACE_INFO { - pub fTraceRequest: super::super::Foundation::BOOL, + pub fTraceRequest: windows_core::BOOL, pub TraceContextId: [u8; 16], pub dwReserved1: u32, pub dwReserved2: u32, @@ -923,7 +923,7 @@ pub struct HTTP_FILTER_AUTH_COMPLETE_INFO { pub AddHeader: isize, pub GetUserToken: isize, pub HttpStatus: u32, - pub fResetAuth: super::super::Foundation::BOOL, + pub fResetAuth: windows_core::BOOL, pub dwReserved: u32, } impl Default for HTTP_FILTER_AUTH_COMPLETE_INFO { @@ -938,7 +938,7 @@ pub struct HTTP_FILTER_CONTEXT { pub Revision: u32, pub ServerContext: *mut core::ffi::c_void, pub ulReserved: u32, - pub fIsSecurePort: super::super::Foundation::BOOL, + pub fIsSecurePort: windows_core::BOOL, pub pFilterContext: *mut core::ffi::c_void, pub GetServerVariable: isize, pub AddResponseHeaders: isize, @@ -1045,7 +1045,7 @@ pub struct HTTP_TRACE_CONFIGURATION { pub pProviderGuid: *const windows_core::GUID, pub dwAreas: u32, pub dwVerbosity: u32, - pub fProviderEnabled: super::super::Foundation::BOOL, + pub fProviderEnabled: windows_core::BOOL, } impl Default for HTTP_TRACE_CONFIGURATION { fn default() -> Self { @@ -1166,7 +1166,7 @@ impl windows_core::RuntimeName for IADMEXT {} windows_core::imp::define_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<()> + pub unsafe fn AuthenticateUser(&self, pszsessionid: P0, pszsitename: P1, pszusername: P2, pszpassword: P3, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, @@ -1179,14 +1179,14 @@ impl IFtpAuthenticationProvider { #[repr(C)] pub struct IFtpAuthenticationProvider_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub AuthenticateUser: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, *mut windows_core::PWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AuthenticateUser: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, *mut windows_core::PWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IFtpAuthenticationProvider_Impl: windows_core::IUnknownImpl { - fn AuthenticateUser(&self, pszsessionid: &windows_core::PCWSTR, pszsitename: &windows_core::PCWSTR, pszusername: &windows_core::PCWSTR, pszpassword: &windows_core::PCWSTR, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn AuthenticateUser(&self, pszsessionid: &windows_core::PCWSTR, pszsitename: &windows_core::PCWSTR, pszusername: &windows_core::PCWSTR, pszpassword: &windows_core::PCWSTR, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IFtpAuthenticationProvider_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn AuthenticateUser(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, pszpassword: windows_core::PCWSTR, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AuthenticateUser(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, pszpassword: windows_core::PCWSTR, ppszcanonicalusername: *mut windows_core::PWSTR, pfauthenticated: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFtpAuthenticationProvider_Impl::AuthenticateUser(this, core::mem::transmute(&pszsessionid), core::mem::transmute(&pszsitename), core::mem::transmute(&pszusername), core::mem::transmute(&pszpassword), core::mem::transmute_copy(&ppszcanonicalusername), core::mem::transmute_copy(&pfauthenticated)).into() @@ -1436,7 +1436,7 @@ impl windows_core::RuntimeName for IFtpProviderConstruct {} windows_core::imp::define_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 + pub unsafe fn IsUserInRole(&self, pszsessionid: P0, pszsitename: P1, pszusername: P2, pszrole: P3) -> windows_core::Result where P0: windows_core::Param, P1: windows_core::Param, @@ -1452,14 +1452,14 @@ impl IFtpRoleProvider { #[repr(C)] pub struct IFtpRoleProvider_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsUserInRole: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsUserInRole: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IFtpRoleProvider_Impl: windows_core::IUnknownImpl { - fn IsUserInRole(&self, pszsessionid: &windows_core::PCWSTR, pszsitename: &windows_core::PCWSTR, pszusername: &windows_core::PCWSTR, pszrole: &windows_core::PCWSTR) -> windows_core::Result; + fn IsUserInRole(&self, pszsessionid: &windows_core::PCWSTR, pszsitename: &windows_core::PCWSTR, pszusername: &windows_core::PCWSTR, pszrole: &windows_core::PCWSTR) -> windows_core::Result; } impl IFtpRoleProvider_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsUserInRole(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, pszrole: windows_core::PCWSTR, pfisinrole: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsUserInRole(this: *mut core::ffi::c_void, pszsessionid: windows_core::PCWSTR, pszsitename: windows_core::PCWSTR, pszusername: windows_core::PCWSTR, pszrole: windows_core::PCWSTR, pfisinrole: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFtpRoleProvider_Impl::IsUserInRole(this, core::mem::transmute(&pszsessionid), core::mem::transmute(&pszsitename), core::mem::transmute(&pszusername), core::mem::transmute(&pszrole)) { @@ -1961,7 +1961,7 @@ pub struct IMSAdminBaseW_Vtbl { pub DeleteKey: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR) -> windows_core::HRESULT, pub DeleteChildKeys: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR) -> windows_core::HRESULT, pub EnumKeys: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, windows_core::PWSTR, u32) -> windows_core::HRESULT, - pub CopyKey: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, u32, windows_core::PCWSTR, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CopyKey: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, u32, windows_core::PCWSTR, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, pub RenameKey: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, pub SetData: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, *mut METADATA_RECORD) -> windows_core::HRESULT, pub GetData: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, *mut METADATA_RECORD, *mut u32) -> windows_core::HRESULT, @@ -1969,7 +1969,7 @@ pub struct IMSAdminBaseW_Vtbl { pub EnumData: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, *mut METADATA_RECORD, u32, *mut u32) -> windows_core::HRESULT, pub GetAllData: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, u32, u32, u32, *mut u32, *mut u32, u32, *mut u8, *mut u32) -> windows_core::HRESULT, pub DeleteAllData: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, u32, u32) -> windows_core::HRESULT, - pub CopyData: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, u32, windows_core::PCWSTR, u32, u32, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CopyData: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, u32, windows_core::PCWSTR, u32, u32, u32, windows_core::BOOL) -> windows_core::HRESULT, pub GetDataPaths: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, u32, u32, u32, windows_core::PWSTR, *mut u32) -> windows_core::HRESULT, pub OpenKey: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, u32, u32, *mut u32) -> windows_core::HRESULT, pub CloseKey: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -1978,8 +1978,8 @@ pub struct IMSAdminBaseW_Vtbl { pub GetHandleInfo: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut METADATA_HANDLE_INFO) -> windows_core::HRESULT, pub GetSystemChangeNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetDataSetNumber: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, *mut u32) -> windows_core::HRESULT, - pub SetLastChangeTime: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, *const super::super::Foundation::FILETIME, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetLastChangeTime: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, *mut super::super::Foundation::FILETIME, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetLastChangeTime: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, *const super::super::Foundation::FILETIME, windows_core::BOOL) -> windows_core::HRESULT, + pub GetLastChangeTime: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, *mut super::super::Foundation::FILETIME, windows_core::BOOL) -> windows_core::HRESULT, pub KeyExchangePhase1: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub KeyExchangePhase2: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Backup: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, u32) -> windows_core::HRESULT, @@ -1994,7 +1994,7 @@ pub trait IMSAdminBaseW_Impl: windows_core::IUnknownImpl { fn DeleteKey(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR) -> windows_core::Result<()>; fn DeleteChildKeys(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR) -> windows_core::Result<()>; fn EnumKeys(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR, pszmdname: windows_core::PWSTR, dwmdenumobjectindex: u32) -> windows_core::Result<()>; - fn CopyKey(&self, hmdsourcehandle: u32, pszmdsourcepath: &windows_core::PCWSTR, hmddesthandle: u32, pszmddestpath: &windows_core::PCWSTR, bmdoverwriteflag: super::super::Foundation::BOOL, bmdcopyflag: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn CopyKey(&self, hmdsourcehandle: u32, pszmdsourcepath: &windows_core::PCWSTR, hmddesthandle: u32, pszmddestpath: &windows_core::PCWSTR, bmdoverwriteflag: windows_core::BOOL, bmdcopyflag: windows_core::BOOL) -> windows_core::Result<()>; fn RenameKey(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR, pszmdnewname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetData(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR, pmdrmddata: *mut METADATA_RECORD) -> windows_core::Result<()>; fn GetData(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR, pmdrmddata: *mut METADATA_RECORD, pdwmdrequireddatalen: *mut u32) -> windows_core::Result<()>; @@ -2002,7 +2002,7 @@ pub trait IMSAdminBaseW_Impl: windows_core::IUnknownImpl { fn EnumData(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR, pmdrmddata: *mut METADATA_RECORD, dwmdenumdataindex: u32, pdwmdrequireddatalen: *mut u32) -> windows_core::Result<()>; fn GetAllData(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR, dwmdattributes: u32, dwmdusertype: u32, dwmddatatype: u32, pdwmdnumdataentries: *mut u32, pdwmddatasetnumber: *mut u32, dwmdbuffersize: u32, pbmdbuffer: *mut u8, pdwmdrequiredbuffersize: *mut u32) -> windows_core::Result<()>; fn DeleteAllData(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR, dwmdusertype: u32, dwmddatatype: u32) -> windows_core::Result<()>; - fn CopyData(&self, hmdsourcehandle: u32, pszmdsourcepath: &windows_core::PCWSTR, hmddesthandle: u32, pszmddestpath: &windows_core::PCWSTR, dwmdattributes: u32, dwmdusertype: u32, dwmddatatype: u32, bmdcopyflag: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn CopyData(&self, hmdsourcehandle: u32, pszmdsourcepath: &windows_core::PCWSTR, hmddesthandle: u32, pszmddestpath: &windows_core::PCWSTR, dwmdattributes: u32, dwmdusertype: u32, dwmddatatype: u32, bmdcopyflag: windows_core::BOOL) -> windows_core::Result<()>; fn GetDataPaths(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR, dwmdidentifier: u32, dwmddatatype: u32, dwmdbuffersize: u32, pszbuffer: windows_core::PWSTR, pdwmdrequiredbuffersize: *mut u32) -> windows_core::Result<()>; fn OpenKey(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR, dwmdaccessrequested: u32, dwmdtimeout: u32) -> windows_core::Result; fn CloseKey(&self, hmdhandle: u32) -> windows_core::Result<()>; @@ -2011,8 +2011,8 @@ pub trait IMSAdminBaseW_Impl: windows_core::IUnknownImpl { fn GetHandleInfo(&self, hmdhandle: u32) -> windows_core::Result; fn GetSystemChangeNumber(&self) -> windows_core::Result; fn GetDataSetNumber(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR) -> windows_core::Result; - fn SetLastChangeTime(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR, pftmdlastchangetime: *const super::super::Foundation::FILETIME, blocaltime: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetLastChangeTime(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR, pftmdlastchangetime: *mut super::super::Foundation::FILETIME, blocaltime: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetLastChangeTime(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR, pftmdlastchangetime: *const super::super::Foundation::FILETIME, blocaltime: windows_core::BOOL) -> windows_core::Result<()>; + fn GetLastChangeTime(&self, hmdhandle: u32, pszmdpath: &windows_core::PCWSTR, pftmdlastchangetime: *mut super::super::Foundation::FILETIME, blocaltime: windows_core::BOOL) -> windows_core::Result<()>; fn KeyExchangePhase1(&self) -> windows_core::Result<()>; fn KeyExchangePhase2(&self) -> windows_core::Result<()>; fn Backup(&self, pszmdbackuplocation: &windows_core::PCWSTR, dwmdversion: u32, dwmdflags: u32) -> windows_core::Result<()>; @@ -2048,7 +2048,7 @@ impl IMSAdminBaseW_Vtbl { IMSAdminBaseW_Impl::EnumKeys(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath), core::mem::transmute_copy(&pszmdname), core::mem::transmute_copy(&dwmdenumobjectindex)).into() } } - unsafe extern "system" fn CopyKey(this: *mut core::ffi::c_void, hmdsourcehandle: u32, pszmdsourcepath: windows_core::PCWSTR, hmddesthandle: u32, pszmddestpath: windows_core::PCWSTR, bmdoverwriteflag: super::super::Foundation::BOOL, bmdcopyflag: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CopyKey(this: *mut core::ffi::c_void, hmdsourcehandle: u32, pszmdsourcepath: windows_core::PCWSTR, hmddesthandle: u32, pszmddestpath: windows_core::PCWSTR, bmdoverwriteflag: windows_core::BOOL, bmdcopyflag: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::CopyKey(this, core::mem::transmute_copy(&hmdsourcehandle), core::mem::transmute(&pszmdsourcepath), core::mem::transmute_copy(&hmddesthandle), core::mem::transmute(&pszmddestpath), core::mem::transmute_copy(&bmdoverwriteflag), core::mem::transmute_copy(&bmdcopyflag)).into() @@ -2096,7 +2096,7 @@ impl IMSAdminBaseW_Vtbl { IMSAdminBaseW_Impl::DeleteAllData(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath), core::mem::transmute_copy(&dwmdusertype), core::mem::transmute_copy(&dwmddatatype)).into() } } - unsafe extern "system" fn CopyData(this: *mut core::ffi::c_void, hmdsourcehandle: u32, pszmdsourcepath: windows_core::PCWSTR, hmddesthandle: u32, pszmddestpath: windows_core::PCWSTR, dwmdattributes: u32, dwmdusertype: u32, dwmddatatype: u32, bmdcopyflag: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CopyData(this: *mut core::ffi::c_void, hmdsourcehandle: u32, pszmdsourcepath: windows_core::PCWSTR, hmddesthandle: u32, pszmddestpath: windows_core::PCWSTR, dwmdattributes: u32, dwmdusertype: u32, dwmddatatype: u32, bmdcopyflag: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::CopyData(this, core::mem::transmute_copy(&hmdsourcehandle), core::mem::transmute(&pszmdsourcepath), core::mem::transmute_copy(&hmddesthandle), core::mem::transmute(&pszmddestpath), core::mem::transmute_copy(&dwmdattributes), core::mem::transmute_copy(&dwmdusertype), core::mem::transmute_copy(&dwmddatatype), core::mem::transmute_copy(&bmdcopyflag)).into() @@ -2174,13 +2174,13 @@ impl IMSAdminBaseW_Vtbl { } } } - unsafe extern "system" fn SetLastChangeTime(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pftmdlastchangetime: *const super::super::Foundation::FILETIME, blocaltime: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetLastChangeTime(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pftmdlastchangetime: *const super::super::Foundation::FILETIME, blocaltime: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::SetLastChangeTime(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath), core::mem::transmute_copy(&pftmdlastchangetime), core::mem::transmute_copy(&blocaltime)).into() } } - unsafe extern "system" fn GetLastChangeTime(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pftmdlastchangetime: *mut super::super::Foundation::FILETIME, blocaltime: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetLastChangeTime(this: *mut core::ffi::c_void, hmdhandle: u32, pszmdpath: windows_core::PCWSTR, pftmdlastchangetime: *mut super::super::Foundation::FILETIME, blocaltime: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMSAdminBaseW_Impl::GetLastChangeTime(this, core::mem::transmute_copy(&hmdhandle), core::mem::transmute(&pszmdpath), core::mem::transmute_copy(&pftmdlastchangetime), core::mem::transmute_copy(&blocaltime)).into() @@ -3089,16 +3089,16 @@ pub const MSCS_MD_ID_END_RESERVED: u32 = 57343u32; pub const MULTISZ_METADATA: METADATATYPES = METADATATYPES(5i32); pub const NNTP_MD_ID_BEGIN_RESERVED: u32 = 45056u32; pub const NNTP_MD_ID_END_RESERVED: u32 = 49151u32; -pub type PFN_GETEXTENSIONVERSION = Option super::super::Foundation::BOOL>; +pub type PFN_GETEXTENSIONVERSION = Option windows_core::BOOL>; pub type PFN_HSE_CACHE_INVALIDATION_CALLBACK = Option windows_core::HRESULT>; pub type PFN_HSE_GET_PROTOCOL_MANAGER_CUSTOM_INTERFACE_CALLBACK = Option windows_core::HRESULT>; pub type PFN_HSE_IO_COMPLETION = Option; pub type PFN_HTTPEXTENSIONPROC = Option u32>; -pub type PFN_IIS_GETSERVERVARIABLE = Option super::super::Foundation::BOOL>; -pub type PFN_IIS_READCLIENT = Option super::super::Foundation::BOOL>; -pub type PFN_IIS_SERVERSUPPORTFUNCTION = Option super::super::Foundation::BOOL>; -pub type PFN_IIS_WRITECLIENT = Option super::super::Foundation::BOOL>; -pub type PFN_TERMINATEEXTENSION = Option super::super::Foundation::BOOL>; +pub type PFN_IIS_GETSERVERVARIABLE = Option windows_core::BOOL>; +pub type PFN_IIS_READCLIENT = Option windows_core::BOOL>; +pub type PFN_IIS_SERVERSUPPORTFUNCTION = Option windows_core::BOOL>; +pub type PFN_IIS_WRITECLIENT = Option windows_core::BOOL>; +pub type PFN_TERMINATEEXTENSION = Option windows_core::BOOL>; pub type PFN_WEB_CORE_ACTIVATE = Option windows_core::HRESULT>; pub type PFN_WEB_CORE_SET_METADATA_DLL_ENTRY = Option windows_core::HRESULT>; pub type PFN_WEB_CORE_SHUTDOWN = Option windows_core::HRESULT>; diff --git a/crates/libs/windows/src/Windows/Win32/System/JobObjects/mod.rs b/crates/libs/windows/src/Windows/Win32/System/JobObjects/mod.rs index a81597d9e7..30d9499bc9 100644 --- a/crates/libs/windows/src/Windows/Win32/System/JobObjects/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/JobObjects/mod.rs @@ -1,6 +1,6 @@ #[inline] pub unsafe fn AssignProcessToJobObject(hjob: super::super::Foundation::HANDLE, hprocess: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn AssignProcessToJobObject(hjob : super::super::Foundation:: HANDLE, hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn AssignProcessToJobObject(hjob : super::super::Foundation:: HANDLE, hprocess : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { AssignProcessToJobObject(hjob, hprocess).ok() } } #[cfg(feature = "Win32_Security")] @@ -24,8 +24,8 @@ where (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] -pub unsafe fn CreateJobSet(userjobset: &[JOB_SET_ARRAY], flags: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn CreateJobSet(numjob : u32, userjobset : *const JOB_SET_ARRAY, flags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn CreateJobSet(userjobset: &[JOB_SET_ARRAY], flags: u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn CreateJobSet(numjob : u32, userjobset : *const JOB_SET_ARRAY, flags : u32) -> windows_core::BOOL); unsafe { CreateJobSet(userjobset.len().try_into().unwrap(), core::mem::transmute(userjobset.as_ptr()), flags) } } #[inline] @@ -34,8 +34,8 @@ pub unsafe fn FreeMemoryJobObject(buffer: *const core::ffi::c_void) { unsafe { FreeMemoryJobObject(buffer) } } #[inline] -pub unsafe fn IsProcessInJob(processhandle: super::super::Foundation::HANDLE, jobhandle: Option, result: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn IsProcessInJob(processhandle : super::super::Foundation:: HANDLE, jobhandle : super::super::Foundation:: HANDLE, result : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn IsProcessInJob(processhandle: super::super::Foundation::HANDLE, jobhandle: Option, result: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("kernel32.dll" "system" fn IsProcessInJob(processhandle : super::super::Foundation:: HANDLE, jobhandle : super::super::Foundation:: HANDLE, result : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { IsProcessInJob(processhandle, jobhandle.unwrap_or(core::mem::zeroed()) as _, result as _).ok() } } #[inline] @@ -43,7 +43,7 @@ pub unsafe fn OpenJobObjectA(dwdesiredaccess: u32, binherithandle: bool, lpn where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn OpenJobObjectA(dwdesiredaccess : u32, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn OpenJobObjectA(dwdesiredaccess : u32, binherithandle : windows_core::BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); let result__ = unsafe { OpenJobObjectA(dwdesiredaccess, binherithandle.into(), lpname.param().abi()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -52,13 +52,13 @@ pub unsafe fn OpenJobObjectW(dwdesiredaccess: u32, binherithandle: bool, lpn where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn OpenJobObjectW(dwdesiredaccess : u32, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn OpenJobObjectW(dwdesiredaccess : u32, binherithandle : windows_core::BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); let result__ = unsafe { OpenJobObjectW(dwdesiredaccess, binherithandle.into(), lpname.param().abi()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn QueryInformationJobObject(hjob: Option, jobobjectinformationclass: JOBOBJECTINFOCLASS, lpjobobjectinformation: *mut core::ffi::c_void, cbjobobjectinformationlength: u32, lpreturnlength: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn QueryInformationJobObject(hjob : super::super::Foundation:: HANDLE, jobobjectinformationclass : JOBOBJECTINFOCLASS, lpjobobjectinformation : *mut core::ffi::c_void, cbjobobjectinformationlength : u32, lpreturnlength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn QueryInformationJobObject(hjob : super::super::Foundation:: HANDLE, jobobjectinformationclass : JOBOBJECTINFOCLASS, lpjobobjectinformation : *mut core::ffi::c_void, cbjobobjectinformationlength : u32, lpreturnlength : *mut u32) -> windows_core::BOOL); unsafe { QueryInformationJobObject(hjob.unwrap_or(core::mem::zeroed()) as _, jobobjectinformationclass, lpjobobjectinformation as _, cbjobobjectinformationlength, lpreturnlength.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -71,7 +71,7 @@ where } #[inline] pub unsafe fn SetInformationJobObject(hjob: super::super::Foundation::HANDLE, jobobjectinformationclass: JOBOBJECTINFOCLASS, lpjobobjectinformation: *const core::ffi::c_void, cbjobobjectinformationlength: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetInformationJobObject(hjob : super::super::Foundation:: HANDLE, jobobjectinformationclass : JOBOBJECTINFOCLASS, lpjobobjectinformation : *const core::ffi::c_void, cbjobobjectinformationlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetInformationJobObject(hjob : super::super::Foundation:: HANDLE, jobobjectinformationclass : JOBOBJECTINFOCLASS, lpjobobjectinformation : *const core::ffi::c_void, cbjobobjectinformationlength : u32) -> windows_core::BOOL); unsafe { SetInformationJobObject(hjob, jobobjectinformationclass, lpjobobjectinformation, cbjobobjectinformationlength).ok() } } #[inline] @@ -81,12 +81,12 @@ pub unsafe fn SetIoRateControlInformationJobObject(hjob: super::super::Foundatio } #[inline] pub unsafe fn TerminateJobObject(hjob: super::super::Foundation::HANDLE, uexitcode: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn TerminateJobObject(hjob : super::super::Foundation:: HANDLE, uexitcode : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn TerminateJobObject(hjob : super::super::Foundation:: HANDLE, uexitcode : u32) -> windows_core::BOOL); unsafe { TerminateJobObject(hjob, uexitcode).ok() } } #[inline] pub unsafe fn UserHandleGrantAccess(huserhandle: super::super::Foundation::HANDLE, hjob: super::super::Foundation::HANDLE, bgrant: bool) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn UserHandleGrantAccess(huserhandle : super::super::Foundation:: HANDLE, hjob : super::super::Foundation:: HANDLE, bgrant : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn UserHandleGrantAccess(huserhandle : super::super::Foundation:: HANDLE, hjob : super::super::Foundation:: HANDLE, bgrant : windows_core::BOOL) -> windows_core::BOOL); unsafe { UserHandleGrantAccess(huserhandle, hjob, bgrant.into()).ok() } } #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Win32/System/LibraryLoader/mod.rs b/crates/libs/windows/src/Windows/Win32/System/LibraryLoader/mod.rs index 14b7416b00..9171b4e2da 100644 --- a/crates/libs/windows/src/Windows/Win32/System/LibraryLoader/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/LibraryLoader/mod.rs @@ -11,7 +11,7 @@ pub unsafe fn BeginUpdateResourceA(pfilename: P0, bdeleteexistingresources: where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn BeginUpdateResourceA(pfilename : windows_core::PCSTR, bdeleteexistingresources : super::super::Foundation:: BOOL) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn BeginUpdateResourceA(pfilename : windows_core::PCSTR, bdeleteexistingresources : windows_core::BOOL) -> super::super::Foundation:: HANDLE); let result__ = unsafe { BeginUpdateResourceA(pfilename.param().abi(), bdeleteexistingresources.into()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -20,23 +20,23 @@ pub unsafe fn BeginUpdateResourceW(pfilename: P0, bdeleteexistingresources: where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn BeginUpdateResourceW(pfilename : windows_core::PCWSTR, bdeleteexistingresources : super::super::Foundation:: BOOL) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn BeginUpdateResourceW(pfilename : windows_core::PCWSTR, bdeleteexistingresources : windows_core::BOOL) -> super::super::Foundation:: HANDLE); let result__ = unsafe { BeginUpdateResourceW(pfilename.param().abi(), bdeleteexistingresources.into()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn DisableThreadLibraryCalls(hlibmodule: super::super::Foundation::HMODULE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn DisableThreadLibraryCalls(hlibmodule : super::super::Foundation:: HMODULE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DisableThreadLibraryCalls(hlibmodule : super::super::Foundation:: HMODULE) -> windows_core::BOOL); unsafe { DisableThreadLibraryCalls(hlibmodule).ok() } } #[inline] pub unsafe fn EndUpdateResourceA(hupdate: super::super::Foundation::HANDLE, fdiscard: bool) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EndUpdateResourceA(hupdate : super::super::Foundation:: HANDLE, fdiscard : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EndUpdateResourceA(hupdate : super::super::Foundation:: HANDLE, fdiscard : windows_core::BOOL) -> windows_core::BOOL); unsafe { EndUpdateResourceA(hupdate, fdiscard.into()).ok() } } #[inline] pub unsafe fn EndUpdateResourceW(hupdate: super::super::Foundation::HANDLE, fdiscard: bool) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EndUpdateResourceW(hupdate : super::super::Foundation:: HANDLE, fdiscard : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EndUpdateResourceW(hupdate : super::super::Foundation:: HANDLE, fdiscard : windows_core::BOOL) -> windows_core::BOOL); unsafe { EndUpdateResourceW(hupdate, fdiscard.into()).ok() } } #[inline] @@ -45,7 +45,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn EnumResourceLanguagesA(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCSTR, lpname : windows_core::PCSTR, lpenumfunc : ENUMRESLANGPROCA, lparam : isize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumResourceLanguagesA(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCSTR, lpname : windows_core::PCSTR, lpenumfunc : ENUMRESLANGPROCA, lparam : isize) -> windows_core::BOOL); unsafe { EnumResourceLanguagesA(hmodule.unwrap_or(core::mem::zeroed()) as _, lptype.param().abi(), lpname.param().abi(), lpenumfunc, lparam).ok() } } #[inline] @@ -54,7 +54,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn EnumResourceLanguagesExA(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCSTR, lpname : windows_core::PCSTR, lpenumfunc : ENUMRESLANGPROCA, lparam : isize, dwflags : u32, langid : u16) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumResourceLanguagesExA(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCSTR, lpname : windows_core::PCSTR, lpenumfunc : ENUMRESLANGPROCA, lparam : isize, dwflags : u32, langid : u16) -> windows_core::BOOL); unsafe { EnumResourceLanguagesExA(hmodule.unwrap_or(core::mem::zeroed()) as _, lptype.param().abi(), lpname.param().abi(), lpenumfunc, lparam.unwrap_or(core::mem::zeroed()) as _, dwflags, langid).ok() } } #[inline] @@ -63,7 +63,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn EnumResourceLanguagesExW(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCWSTR, lpname : windows_core::PCWSTR, lpenumfunc : ENUMRESLANGPROCW, lparam : isize, dwflags : u32, langid : u16) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumResourceLanguagesExW(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCWSTR, lpname : windows_core::PCWSTR, lpenumfunc : ENUMRESLANGPROCW, lparam : isize, dwflags : u32, langid : u16) -> windows_core::BOOL); unsafe { EnumResourceLanguagesExW(hmodule.unwrap_or(core::mem::zeroed()) as _, lptype.param().abi(), lpname.param().abi(), lpenumfunc, lparam.unwrap_or(core::mem::zeroed()) as _, dwflags, langid).ok() } } #[inline] @@ -72,7 +72,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn EnumResourceLanguagesW(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCWSTR, lpname : windows_core::PCWSTR, lpenumfunc : ENUMRESLANGPROCW, lparam : isize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumResourceLanguagesW(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCWSTR, lpname : windows_core::PCWSTR, lpenumfunc : ENUMRESLANGPROCW, lparam : isize) -> windows_core::BOOL); unsafe { EnumResourceLanguagesW(hmodule.unwrap_or(core::mem::zeroed()) as _, lptype.param().abi(), lpname.param().abi(), lpenumfunc, lparam).ok() } } #[inline] @@ -80,7 +80,7 @@ pub unsafe fn EnumResourceNamesA(hmodule: Option, { - windows_targets::link!("kernel32.dll" "system" fn EnumResourceNamesA(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCSTR, lpenumfunc : ENUMRESNAMEPROCA, lparam : isize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumResourceNamesA(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCSTR, lpenumfunc : ENUMRESNAMEPROCA, lparam : isize) -> windows_core::BOOL); unsafe { EnumResourceNamesA(hmodule.unwrap_or(core::mem::zeroed()) as _, lptype.param().abi(), lpenumfunc, lparam).ok() } } #[inline] @@ -88,7 +88,7 @@ pub unsafe fn EnumResourceNamesExA(hmodule: Option, { - windows_targets::link!("kernel32.dll" "system" fn EnumResourceNamesExA(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCSTR, lpenumfunc : ENUMRESNAMEPROCA, lparam : isize, dwflags : u32, langid : u16) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumResourceNamesExA(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCSTR, lpenumfunc : ENUMRESNAMEPROCA, lparam : isize, dwflags : u32, langid : u16) -> windows_core::BOOL); unsafe { EnumResourceNamesExA(hmodule.unwrap_or(core::mem::zeroed()) as _, lptype.param().abi(), lpenumfunc, lparam, dwflags, langid).ok() } } #[inline] @@ -96,35 +96,35 @@ pub unsafe fn EnumResourceNamesExW(hmodule: Option, { - windows_targets::link!("kernel32.dll" "system" fn EnumResourceNamesExW(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCWSTR, lpenumfunc : ENUMRESNAMEPROCW, lparam : isize, dwflags : u32, langid : u16) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumResourceNamesExW(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCWSTR, lpenumfunc : ENUMRESNAMEPROCW, lparam : isize, dwflags : u32, langid : u16) -> windows_core::BOOL); unsafe { EnumResourceNamesExW(hmodule.unwrap_or(core::mem::zeroed()) as _, lptype.param().abi(), lpenumfunc, lparam, dwflags, langid).ok() } } #[inline] -pub unsafe fn EnumResourceNamesW(hmodule: Option, lptype: P1, lpenumfunc: ENUMRESNAMEPROCW, lparam: isize) -> super::super::Foundation::BOOL +pub unsafe fn EnumResourceNamesW(hmodule: Option, lptype: P1, lpenumfunc: ENUMRESNAMEPROCW, lparam: isize) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn EnumResourceNamesW(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCWSTR, lpenumfunc : ENUMRESNAMEPROCW, lparam : isize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumResourceNamesW(hmodule : super::super::Foundation:: HMODULE, lptype : windows_core::PCWSTR, lpenumfunc : ENUMRESNAMEPROCW, lparam : isize) -> windows_core::BOOL); unsafe { EnumResourceNamesW(hmodule.unwrap_or(core::mem::zeroed()) as _, lptype.param().abi(), lpenumfunc, lparam) } } #[inline] pub unsafe fn EnumResourceTypesA(hmodule: Option, lpenumfunc: ENUMRESTYPEPROCA, lparam: isize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumResourceTypesA(hmodule : super::super::Foundation:: HMODULE, lpenumfunc : ENUMRESTYPEPROCA, lparam : isize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumResourceTypesA(hmodule : super::super::Foundation:: HMODULE, lpenumfunc : ENUMRESTYPEPROCA, lparam : isize) -> windows_core::BOOL); unsafe { EnumResourceTypesA(hmodule.unwrap_or(core::mem::zeroed()) as _, lpenumfunc, lparam).ok() } } #[inline] pub unsafe fn EnumResourceTypesExA(hmodule: Option, lpenumfunc: ENUMRESTYPEPROCA, lparam: isize, dwflags: u32, langid: u16) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumResourceTypesExA(hmodule : super::super::Foundation:: HMODULE, lpenumfunc : ENUMRESTYPEPROCA, lparam : isize, dwflags : u32, langid : u16) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumResourceTypesExA(hmodule : super::super::Foundation:: HMODULE, lpenumfunc : ENUMRESTYPEPROCA, lparam : isize, dwflags : u32, langid : u16) -> windows_core::BOOL); unsafe { EnumResourceTypesExA(hmodule.unwrap_or(core::mem::zeroed()) as _, lpenumfunc, lparam, dwflags, langid).ok() } } #[inline] pub unsafe fn EnumResourceTypesExW(hmodule: Option, lpenumfunc: ENUMRESTYPEPROCW, lparam: isize, dwflags: u32, langid: u16) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumResourceTypesExW(hmodule : super::super::Foundation:: HMODULE, lpenumfunc : ENUMRESTYPEPROCW, lparam : isize, dwflags : u32, langid : u16) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumResourceTypesExW(hmodule : super::super::Foundation:: HMODULE, lpenumfunc : ENUMRESTYPEPROCW, lparam : isize, dwflags : u32, langid : u16) -> windows_core::BOOL); unsafe { EnumResourceTypesExW(hmodule.unwrap_or(core::mem::zeroed()) as _, lpenumfunc, lparam, dwflags, langid).ok() } } #[inline] pub unsafe fn EnumResourceTypesW(hmodule: Option, lpenumfunc: ENUMRESTYPEPROCW, lparam: isize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnumResourceTypesW(hmodule : super::super::Foundation:: HMODULE, lpenumfunc : ENUMRESTYPEPROCW, lparam : isize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnumResourceTypesW(hmodule : super::super::Foundation:: HMODULE, lpenumfunc : ENUMRESTYPEPROCW, lparam : isize) -> windows_core::BOOL); unsafe { EnumResourceTypesW(hmodule.unwrap_or(core::mem::zeroed()) as _, lpenumfunc, lparam).ok() } } #[inline] @@ -171,8 +171,8 @@ pub unsafe fn FreeLibraryAndExitThread(hlibmodule: super::super::Foundation::HMO unsafe { FreeLibraryAndExitThread(hlibmodule, dwexitcode) } } #[inline] -pub unsafe fn FreeResource(hresdata: super::super::Foundation::HGLOBAL) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn FreeResource(hresdata : super::super::Foundation:: HGLOBAL) -> super::super::Foundation:: BOOL); +pub unsafe fn FreeResource(hresdata: super::super::Foundation::HGLOBAL) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn FreeResource(hresdata : super::super::Foundation:: HGLOBAL) -> windows_core::BOOL); unsafe { FreeResource(hresdata) } } #[inline] @@ -209,7 +209,7 @@ pub unsafe fn GetModuleHandleExA(dwflags: u32, lpmodulename: P1, phmodule: * where P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetModuleHandleExA(dwflags : u32, lpmodulename : windows_core::PCSTR, phmodule : *mut super::super::Foundation:: HMODULE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetModuleHandleExA(dwflags : u32, lpmodulename : windows_core::PCSTR, phmodule : *mut super::super::Foundation:: HMODULE) -> windows_core::BOOL); unsafe { GetModuleHandleExA(dwflags, lpmodulename.param().abi(), phmodule as _).ok() } } #[inline] @@ -217,7 +217,7 @@ pub unsafe fn GetModuleHandleExW(dwflags: u32, lpmodulename: P1, phmodule: * where P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetModuleHandleExW(dwflags : u32, lpmodulename : windows_core::PCWSTR, phmodule : *mut super::super::Foundation:: HMODULE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetModuleHandleExW(dwflags : u32, lpmodulename : windows_core::PCWSTR, phmodule : *mut super::super::Foundation:: HMODULE) -> windows_core::BOOL); unsafe { GetModuleHandleExW(dwflags, lpmodulename.param().abi(), phmodule as _).ok() } } #[inline] @@ -307,17 +307,17 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("api-ms-win-core-libraryloader-l2-1-0.dll" "system" fn QueryOptionalDelayLoadedAPI(hparentmodule : super::super::Foundation:: HMODULE, lpdllname : windows_core::PCSTR, lpprocname : windows_core::PCSTR, reserved : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-libraryloader-l2-1-0.dll" "system" fn QueryOptionalDelayLoadedAPI(hparentmodule : super::super::Foundation:: HMODULE, lpdllname : windows_core::PCSTR, lpprocname : windows_core::PCSTR, reserved : u32) -> windows_core::BOOL); unsafe { QueryOptionalDelayLoadedAPI(hparentmodule, lpdllname.param().abi(), lpprocname.param().abi(), reserved.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn RemoveDllDirectory(cookie: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn RemoveDllDirectory(cookie : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn RemoveDllDirectory(cookie : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { RemoveDllDirectory(cookie).ok() } } #[inline] pub unsafe fn SetDefaultDllDirectories(directoryflags: LOAD_LIBRARY_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetDefaultDllDirectories(directoryflags : LOAD_LIBRARY_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetDefaultDllDirectories(directoryflags : LOAD_LIBRARY_FLAGS) -> windows_core::BOOL); unsafe { SetDefaultDllDirectories(directoryflags).ok() } } #[inline] @@ -325,7 +325,7 @@ pub unsafe fn SetDllDirectoryA(lppathname: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetDllDirectoryA(lppathname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetDllDirectoryA(lppathname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetDllDirectoryA(lppathname.param().abi()).ok() } } #[inline] @@ -333,7 +333,7 @@ pub unsafe fn SetDllDirectoryW(lppathname: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetDllDirectoryW(lppathname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetDllDirectoryW(lppathname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetDllDirectoryW(lppathname.param().abi()).ok() } } #[inline] @@ -347,7 +347,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn UpdateResourceA(hupdate : super::super::Foundation:: HANDLE, lptype : windows_core::PCSTR, lpname : windows_core::PCSTR, wlanguage : u16, lpdata : *const core::ffi::c_void, cb : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn UpdateResourceA(hupdate : super::super::Foundation:: HANDLE, lptype : windows_core::PCSTR, lpname : windows_core::PCSTR, wlanguage : u16, lpdata : *const core::ffi::c_void, cb : u32) -> windows_core::BOOL); unsafe { UpdateResourceA(hupdate, lptype.param().abi(), lpname.param().abi(), wlanguage, lpdata.unwrap_or(core::mem::zeroed()) as _, cb).ok() } } #[inline] @@ -356,17 +356,17 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn UpdateResourceW(hupdate : super::super::Foundation:: HANDLE, lptype : windows_core::PCWSTR, lpname : windows_core::PCWSTR, wlanguage : u16, lpdata : *const core::ffi::c_void, cb : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn UpdateResourceW(hupdate : super::super::Foundation:: HANDLE, lptype : windows_core::PCWSTR, lpname : windows_core::PCWSTR, wlanguage : u16, lpdata : *const core::ffi::c_void, cb : u32) -> windows_core::BOOL); unsafe { UpdateResourceW(hupdate, lptype.param().abi(), lpname.param().abi(), wlanguage, lpdata.unwrap_or(core::mem::zeroed()) as _, cb).ok() } } pub const CURRENT_IMPORT_REDIRECTION_VERSION: u32 = 1u32; pub const DONT_RESOLVE_DLL_REFERENCES: LOAD_LIBRARY_FLAGS = LOAD_LIBRARY_FLAGS(1u32); -pub type ENUMRESLANGPROCA = Option super::super::Foundation::BOOL>; -pub type ENUMRESLANGPROCW = Option super::super::Foundation::BOOL>; -pub type ENUMRESNAMEPROCA = Option super::super::Foundation::BOOL>; -pub type ENUMRESNAMEPROCW = Option super::super::Foundation::BOOL>; -pub type ENUMRESTYPEPROCA = Option super::super::Foundation::BOOL>; -pub type ENUMRESTYPEPROCW = Option super::super::Foundation::BOOL>; +pub type ENUMRESLANGPROCA = Option windows_core::BOOL>; +pub type ENUMRESLANGPROCW = Option windows_core::BOOL>; +pub type ENUMRESNAMEPROCA = Option windows_core::BOOL>; +pub type ENUMRESNAMEPROCW = Option windows_core::BOOL>; +pub type ENUMRESTYPEPROCA = Option windows_core::BOOL>; +pub type ENUMRESTYPEPROCW = Option windows_core::BOOL>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct ENUMUILANG { @@ -435,8 +435,8 @@ pub const LOAD_LIBRARY_SEARCH_SYSTEM32: LOAD_LIBRARY_FLAGS = LOAD_LIBRARY_FLAGS( pub const LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER: LOAD_LIBRARY_FLAGS = LOAD_LIBRARY_FLAGS(16384u32); pub const LOAD_LIBRARY_SEARCH_USER_DIRS: LOAD_LIBRARY_FLAGS = LOAD_LIBRARY_FLAGS(1024u32); pub const LOAD_WITH_ALTERED_SEARCH_PATH: LOAD_LIBRARY_FLAGS = LOAD_LIBRARY_FLAGS(8u32); -pub type PGET_MODULE_HANDLE_EXA = Option super::super::Foundation::BOOL>; -pub type PGET_MODULE_HANDLE_EXW = Option super::super::Foundation::BOOL>; +pub type PGET_MODULE_HANDLE_EXA = Option windows_core::BOOL>; +pub type PGET_MODULE_HANDLE_EXW = Option windows_core::BOOL>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct REDIRECTION_DESCRIPTOR { diff --git a/crates/libs/windows/src/Windows/Win32/System/Mailslots/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Mailslots/mod.rs index 886d66a52c..b1fd4ee4ec 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Mailslots/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Mailslots/mod.rs @@ -20,11 +20,11 @@ where } #[inline] pub unsafe fn GetMailslotInfo(hmailslot: super::super::Foundation::HANDLE, lpmaxmessagesize: Option<*mut u32>, lpnextsize: Option<*mut u32>, lpmessagecount: Option<*mut u32>, lpreadtimeout: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetMailslotInfo(hmailslot : super::super::Foundation:: HANDLE, lpmaxmessagesize : *mut u32, lpnextsize : *mut u32, lpmessagecount : *mut u32, lpreadtimeout : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetMailslotInfo(hmailslot : super::super::Foundation:: HANDLE, lpmaxmessagesize : *mut u32, lpnextsize : *mut u32, lpmessagecount : *mut u32, lpreadtimeout : *mut u32) -> windows_core::BOOL); unsafe { GetMailslotInfo(hmailslot, lpmaxmessagesize.unwrap_or(core::mem::zeroed()) as _, lpnextsize.unwrap_or(core::mem::zeroed()) as _, lpmessagecount.unwrap_or(core::mem::zeroed()) as _, lpreadtimeout.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetMailslotInfo(hmailslot: super::super::Foundation::HANDLE, lreadtimeout: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetMailslotInfo(hmailslot : super::super::Foundation:: HANDLE, lreadtimeout : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetMailslotInfo(hmailslot : super::super::Foundation:: HANDLE, lreadtimeout : u32) -> windows_core::BOOL); unsafe { SetMailslotInfo(hmailslot, lreadtimeout).ok() } } diff --git a/crates/libs/windows/src/Windows/Win32/System/Memory/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Memory/mod.rs index 7c56d5bfa6..2eeeaa69fd 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Memory/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Memory/mod.rs @@ -2,22 +2,22 @@ pub mod NonVolatile; #[inline] pub unsafe fn AddSecureMemoryCacheCallback(pfncallback: PSECURE_MEMORY_CACHE_CALLBACK) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn AddSecureMemoryCacheCallback(pfncallback : PSECURE_MEMORY_CACHE_CALLBACK) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn AddSecureMemoryCacheCallback(pfncallback : PSECURE_MEMORY_CACHE_CALLBACK) -> windows_core::BOOL); unsafe { AddSecureMemoryCacheCallback(pfncallback).ok() } } #[inline] pub unsafe fn AllocateUserPhysicalPages(hprocess: super::super::Foundation::HANDLE, numberofpages: *mut usize, pagearray: *mut usize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn AllocateUserPhysicalPages(hprocess : super::super::Foundation:: HANDLE, numberofpages : *mut usize, pagearray : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn AllocateUserPhysicalPages(hprocess : super::super::Foundation:: HANDLE, numberofpages : *mut usize, pagearray : *mut usize) -> windows_core::BOOL); unsafe { AllocateUserPhysicalPages(hprocess, numberofpages as _, pagearray as _).ok() } } #[inline] -pub unsafe fn AllocateUserPhysicalPages2(objecthandle: super::super::Foundation::HANDLE, numberofpages: *mut usize, pagearray: *mut usize, extendedparameters: Option<&mut [MEM_EXTENDED_PARAMETER]>) -> super::super::Foundation::BOOL { - windows_targets::link!("api-ms-win-core-memory-l1-1-8.dll" "system" fn AllocateUserPhysicalPages2(objecthandle : super::super::Foundation:: HANDLE, numberofpages : *mut usize, pagearray : *mut usize, extendedparameters : *mut MEM_EXTENDED_PARAMETER, extendedparametercount : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn AllocateUserPhysicalPages2(objecthandle: super::super::Foundation::HANDLE, numberofpages: *mut usize, pagearray: *mut usize, extendedparameters: Option<&mut [MEM_EXTENDED_PARAMETER]>) -> windows_core::BOOL { + windows_targets::link!("api-ms-win-core-memory-l1-1-8.dll" "system" fn AllocateUserPhysicalPages2(objecthandle : super::super::Foundation:: HANDLE, numberofpages : *mut usize, pagearray : *mut usize, extendedparameters : *mut MEM_EXTENDED_PARAMETER, extendedparametercount : u32) -> windows_core::BOOL); unsafe { AllocateUserPhysicalPages2(objecthandle, numberofpages as _, pagearray as _, core::mem::transmute(extendedparameters.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), extendedparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } } #[inline] pub unsafe fn AllocateUserPhysicalPagesNuma(hprocess: super::super::Foundation::HANDLE, numberofpages: *mut usize, pagearray: *mut usize, nndpreferred: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn AllocateUserPhysicalPagesNuma(hprocess : super::super::Foundation:: HANDLE, numberofpages : *mut usize, pagearray : *mut usize, nndpreferred : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn AllocateUserPhysicalPagesNuma(hprocess : super::super::Foundation:: HANDLE, numberofpages : *mut usize, pagearray : *mut usize, nndpreferred : u32) -> windows_core::BOOL); unsafe { AllocateUserPhysicalPagesNuma(hprocess, numberofpages as _, pagearray as _, nndpreferred).ok() } } #[cfg(feature = "Win32_Security")] @@ -93,12 +93,12 @@ pub unsafe fn DiscardVirtualMemory(virtualaddress: &mut [u8]) -> u32 { } #[inline] pub unsafe fn FlushViewOfFile(lpbaseaddress: *const core::ffi::c_void, dwnumberofbytestoflush: usize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FlushViewOfFile(lpbaseaddress : *const core::ffi::c_void, dwnumberofbytestoflush : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FlushViewOfFile(lpbaseaddress : *const core::ffi::c_void, dwnumberofbytestoflush : usize) -> windows_core::BOOL); unsafe { FlushViewOfFile(lpbaseaddress, dwnumberofbytestoflush).ok() } } #[inline] pub unsafe fn FreeUserPhysicalPages(hprocess: super::super::Foundation::HANDLE, numberofpages: *mut usize, pagearray: *const usize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FreeUserPhysicalPages(hprocess : super::super::Foundation:: HANDLE, numberofpages : *mut usize, pagearray : *const usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FreeUserPhysicalPages(hprocess : super::super::Foundation:: HANDLE, numberofpages : *mut usize, pagearray : *const usize) -> windows_core::BOOL); unsafe { FreeUserPhysicalPages(hprocess, numberofpages as _, pagearray).ok() } } #[inline] @@ -108,7 +108,7 @@ pub unsafe fn GetLargePageMinimum() -> usize { } #[inline] pub unsafe fn GetMemoryErrorHandlingCapabilities(capabilities: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetMemoryErrorHandlingCapabilities(capabilities : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetMemoryErrorHandlingCapabilities(capabilities : *mut u32) -> windows_core::BOOL); unsafe { GetMemoryErrorHandlingCapabilities(capabilities as _).ok() } } #[inline] @@ -123,13 +123,13 @@ pub unsafe fn GetProcessHeaps(processheaps: &mut [super::super::Foundation::HAND unsafe { GetProcessHeaps(processheaps.len().try_into().unwrap(), core::mem::transmute(processheaps.as_ptr())) } } #[inline] -pub unsafe fn GetProcessWorkingSetSizeEx(hprocess: super::super::Foundation::HANDLE, lpminimumworkingsetsize: *mut usize, lpmaximumworkingsetsize: *mut usize, flags: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetProcessWorkingSetSizeEx(hprocess : super::super::Foundation:: HANDLE, lpminimumworkingsetsize : *mut usize, lpmaximumworkingsetsize : *mut usize, flags : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetProcessWorkingSetSizeEx(hprocess: super::super::Foundation::HANDLE, lpminimumworkingsetsize: *mut usize, lpmaximumworkingsetsize: *mut usize, flags: *mut u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetProcessWorkingSetSizeEx(hprocess : super::super::Foundation:: HANDLE, lpminimumworkingsetsize : *mut usize, lpmaximumworkingsetsize : *mut usize, flags : *mut u32) -> windows_core::BOOL); unsafe { GetProcessWorkingSetSizeEx(hprocess, lpminimumworkingsetsize as _, lpmaximumworkingsetsize as _, flags as _) } } #[inline] pub unsafe fn GetSystemFileCacheSize(lpminimumfilecachesize: *mut usize, lpmaximumfilecachesize: *mut usize, lpflags: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetSystemFileCacheSize(lpminimumfilecachesize : *mut usize, lpmaximumfilecachesize : *mut usize, lpflags : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetSystemFileCacheSize(lpminimumfilecachesize : *mut usize, lpmaximumfilecachesize : *mut usize, lpflags : *mut u32) -> windows_core::BOOL); unsafe { GetSystemFileCacheSize(lpminimumfilecachesize as _, lpmaximumfilecachesize as _, lpflags as _).ok() } } #[inline] @@ -172,7 +172,7 @@ pub unsafe fn GlobalSize(hmem: super::super::Foundation::HGLOBAL) -> usize { } #[inline] pub unsafe fn GlobalUnlock(hmem: super::super::Foundation::HGLOBAL) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GlobalUnlock(hmem : super::super::Foundation:: HGLOBAL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GlobalUnlock(hmem : super::super::Foundation:: HGLOBAL) -> windows_core::BOOL); unsafe { GlobalUnlock(hmem).ok() } } #[inline] @@ -193,22 +193,22 @@ pub unsafe fn HeapCreate(floptions: HEAP_FLAGS, dwinitialsize: usize, dwmaximums } #[inline] pub unsafe fn HeapDestroy(hheap: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn HeapDestroy(hheap : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn HeapDestroy(hheap : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { HeapDestroy(hheap).ok() } } #[inline] pub unsafe fn HeapFree(hheap: super::super::Foundation::HANDLE, dwflags: HEAP_FLAGS, lpmem: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn HeapFree(hheap : super::super::Foundation:: HANDLE, dwflags : HEAP_FLAGS, lpmem : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn HeapFree(hheap : super::super::Foundation:: HANDLE, dwflags : HEAP_FLAGS, lpmem : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { HeapFree(hheap as _, dwflags, lpmem.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn HeapLock(hheap: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn HeapLock(hheap : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn HeapLock(hheap : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { HeapLock(hheap).ok() } } #[inline] pub unsafe fn HeapQueryInformation(heaphandle: Option, heapinformationclass: HEAP_INFORMATION_CLASS, heapinformation: Option<*mut core::ffi::c_void>, heapinformationlength: usize, returnlength: Option<*mut usize>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn HeapQueryInformation(heaphandle : super::super::Foundation:: HANDLE, heapinformationclass : HEAP_INFORMATION_CLASS, heapinformation : *mut core::ffi::c_void, heapinformationlength : usize, returnlength : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn HeapQueryInformation(heaphandle : super::super::Foundation:: HANDLE, heapinformationclass : HEAP_INFORMATION_CLASS, heapinformation : *mut core::ffi::c_void, heapinformationlength : usize, returnlength : *mut usize) -> windows_core::BOOL); unsafe { HeapQueryInformation(heaphandle.unwrap_or(core::mem::zeroed()) as _, heapinformationclass, heapinformation.unwrap_or(core::mem::zeroed()) as _, heapinformationlength, returnlength.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -218,7 +218,7 @@ pub unsafe fn HeapReAlloc(hheap: super::super::Foundation::HANDLE, dwflags: HEAP } #[inline] pub unsafe fn HeapSetInformation(heaphandle: Option, heapinformationclass: HEAP_INFORMATION_CLASS, heapinformation: Option<*const core::ffi::c_void>, heapinformationlength: usize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn HeapSetInformation(heaphandle : super::super::Foundation:: HANDLE, heapinformationclass : HEAP_INFORMATION_CLASS, heapinformation : *const core::ffi::c_void, heapinformationlength : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn HeapSetInformation(heaphandle : super::super::Foundation:: HANDLE, heapinformationclass : HEAP_INFORMATION_CLASS, heapinformation : *const core::ffi::c_void, heapinformationlength : usize) -> windows_core::BOOL); unsafe { HeapSetInformation(heaphandle.unwrap_or(core::mem::zeroed()) as _, heapinformationclass, heapinformation.unwrap_or(core::mem::zeroed()) as _, heapinformationlength).ok() } } #[inline] @@ -227,54 +227,54 @@ pub unsafe fn HeapSize(hheap: super::super::Foundation::HANDLE, dwflags: HEAP_FL unsafe { HeapSize(hheap, dwflags, lpmem) } } #[inline] -pub unsafe fn HeapSummary(hheap: super::super::Foundation::HANDLE, dwflags: u32, lpsummary: *mut HEAP_SUMMARY) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn HeapSummary(hheap : super::super::Foundation:: HANDLE, dwflags : u32, lpsummary : *mut HEAP_SUMMARY) -> super::super::Foundation:: BOOL); +pub unsafe fn HeapSummary(hheap: super::super::Foundation::HANDLE, dwflags: u32, lpsummary: *mut HEAP_SUMMARY) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn HeapSummary(hheap : super::super::Foundation:: HANDLE, dwflags : u32, lpsummary : *mut HEAP_SUMMARY) -> windows_core::BOOL); unsafe { HeapSummary(hheap, dwflags, lpsummary as _) } } #[inline] pub unsafe fn HeapUnlock(hheap: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn HeapUnlock(hheap : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn HeapUnlock(hheap : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { HeapUnlock(hheap).ok() } } #[inline] -pub unsafe fn HeapValidate(hheap: super::super::Foundation::HANDLE, dwflags: HEAP_FLAGS, lpmem: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn HeapValidate(hheap : super::super::Foundation:: HANDLE, dwflags : HEAP_FLAGS, lpmem : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn HeapValidate(hheap: super::super::Foundation::HANDLE, dwflags: HEAP_FLAGS, lpmem: Option<*const core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn HeapValidate(hheap : super::super::Foundation:: HANDLE, dwflags : HEAP_FLAGS, lpmem : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { HeapValidate(hheap, dwflags, lpmem.unwrap_or(core::mem::zeroed()) as _) } } #[inline] pub unsafe fn HeapWalk(hheap: super::super::Foundation::HANDLE, lpentry: *mut PROCESS_HEAP_ENTRY) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn HeapWalk(hheap : super::super::Foundation:: HANDLE, lpentry : *mut PROCESS_HEAP_ENTRY) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn HeapWalk(hheap : super::super::Foundation:: HANDLE, lpentry : *mut PROCESS_HEAP_ENTRY) -> windows_core::BOOL); unsafe { HeapWalk(hheap, lpentry as _).ok() } } #[inline] pub unsafe fn IsBadCodePtr(lpfn: Option) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn IsBadCodePtr(lpfn : super::super::Foundation:: FARPROC) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn IsBadCodePtr(lpfn : super::super::Foundation:: FARPROC) -> windows_core::BOOL); unsafe { IsBadCodePtr(lpfn.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn IsBadReadPtr(lp: Option<*const core::ffi::c_void>, ucb: usize) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn IsBadReadPtr(lp : *const core::ffi::c_void, ucb : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn IsBadReadPtr(lp: Option<*const core::ffi::c_void>, ucb: usize) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn IsBadReadPtr(lp : *const core::ffi::c_void, ucb : usize) -> windows_core::BOOL); unsafe { IsBadReadPtr(lp.unwrap_or(core::mem::zeroed()) as _, ucb) } } #[inline] -pub unsafe fn IsBadStringPtrA(lpsz: P0, ucchmax: usize) -> super::super::Foundation::BOOL +pub unsafe fn IsBadStringPtrA(lpsz: P0, ucchmax: usize) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn IsBadStringPtrA(lpsz : windows_core::PCSTR, ucchmax : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn IsBadStringPtrA(lpsz : windows_core::PCSTR, ucchmax : usize) -> windows_core::BOOL); unsafe { IsBadStringPtrA(lpsz.param().abi(), ucchmax) } } #[inline] -pub unsafe fn IsBadStringPtrW(lpsz: P0, ucchmax: usize) -> super::super::Foundation::BOOL +pub unsafe fn IsBadStringPtrW(lpsz: P0, ucchmax: usize) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn IsBadStringPtrW(lpsz : windows_core::PCWSTR, ucchmax : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn IsBadStringPtrW(lpsz : windows_core::PCWSTR, ucchmax : usize) -> windows_core::BOOL); unsafe { IsBadStringPtrW(lpsz.param().abi(), ucchmax) } } #[inline] -pub unsafe fn IsBadWritePtr(lp: Option<*const core::ffi::c_void>, ucb: usize) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn IsBadWritePtr(lp : *const core::ffi::c_void, ucb : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn IsBadWritePtr(lp: Option<*const core::ffi::c_void>, ucb: usize) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn IsBadWritePtr(lp : *const core::ffi::c_void, ucb : usize) -> windows_core::BOOL); unsafe { IsBadWritePtr(lp.unwrap_or(core::mem::zeroed()) as _, ucb) } } #[inline] @@ -312,17 +312,17 @@ pub unsafe fn LocalSize(hmem: super::super::Foundation::HLOCAL) -> usize { } #[inline] pub unsafe fn LocalUnlock(hmem: super::super::Foundation::HLOCAL) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn LocalUnlock(hmem : super::super::Foundation:: HLOCAL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn LocalUnlock(hmem : super::super::Foundation:: HLOCAL) -> windows_core::BOOL); unsafe { LocalUnlock(hmem).ok() } } #[inline] pub unsafe fn MapUserPhysicalPages(virtualaddress: *const core::ffi::c_void, pagearray: Option<&[usize]>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn MapUserPhysicalPages(virtualaddress : *const core::ffi::c_void, numberofpages : usize, pagearray : *const usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn MapUserPhysicalPages(virtualaddress : *const core::ffi::c_void, numberofpages : usize, pagearray : *const usize) -> windows_core::BOOL); unsafe { MapUserPhysicalPages(virtualaddress, pagearray.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(pagearray.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } } #[inline] pub unsafe fn MapUserPhysicalPagesScatter(virtualaddresses: *const *const core::ffi::c_void, numberofpages: usize, pagearray: Option<*const usize>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn MapUserPhysicalPagesScatter(virtualaddresses : *const *const core::ffi::c_void, numberofpages : usize, pagearray : *const usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn MapUserPhysicalPagesScatter(virtualaddresses : *const *const core::ffi::c_void, numberofpages : usize, pagearray : *const usize) -> windows_core::BOOL); unsafe { MapUserPhysicalPagesScatter(virtualaddresses, numberofpages, pagearray.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -367,7 +367,7 @@ pub unsafe fn OfferVirtualMemory(virtualaddress: &mut [u8], priority: OFFER_PRIO } #[inline] pub unsafe fn OpenDedicatedMemoryPartition(partition: super::super::Foundation::HANDLE, dedicatedmemorytypeid: u64, desiredaccess: u32, inherithandle: bool) -> super::super::Foundation::HANDLE { - windows_targets::link!("api-ms-win-core-memory-l1-1-8.dll" "system" fn OpenDedicatedMemoryPartition(partition : super::super::Foundation:: HANDLE, dedicatedmemorytypeid : u64, desiredaccess : u32, inherithandle : super::super::Foundation:: BOOL) -> super::super::Foundation:: HANDLE); + windows_targets::link!("api-ms-win-core-memory-l1-1-8.dll" "system" fn OpenDedicatedMemoryPartition(partition : super::super::Foundation:: HANDLE, dedicatedmemorytypeid : u64, desiredaccess : u32, inherithandle : windows_core::BOOL) -> super::super::Foundation:: HANDLE); unsafe { OpenDedicatedMemoryPartition(partition, dedicatedmemorytypeid, desiredaccess, inherithandle.into()) } } #[inline] @@ -375,7 +375,7 @@ pub unsafe fn OpenFileMappingA(dwdesiredaccess: u32, binherithandle: bool, l where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn OpenFileMappingA(dwdesiredaccess : u32, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn OpenFileMappingA(dwdesiredaccess : u32, binherithandle : windows_core::BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); let result__ = unsafe { OpenFileMappingA(dwdesiredaccess, binherithandle.into(), lpname.param().abi()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -384,7 +384,7 @@ pub unsafe fn OpenFileMappingFromApp(desiredaccess: u32, inherithandle: bool where P2: windows_core::Param, { - windows_targets::link!("api-ms-win-core-memory-l1-1-3.dll" "system" fn OpenFileMappingFromApp(desiredaccess : u32, inherithandle : super::super::Foundation:: BOOL, name : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("api-ms-win-core-memory-l1-1-3.dll" "system" fn OpenFileMappingFromApp(desiredaccess : u32, inherithandle : windows_core::BOOL, name : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); let result__ = unsafe { OpenFileMappingFromApp(desiredaccess, inherithandle.into(), name.param().abi()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -393,28 +393,28 @@ pub unsafe fn OpenFileMappingW(dwdesiredaccess: u32, binherithandle: bool, l where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn OpenFileMappingW(dwdesiredaccess : u32, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn OpenFileMappingW(dwdesiredaccess : u32, binherithandle : windows_core::BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); let result__ = unsafe { OpenFileMappingW(dwdesiredaccess, binherithandle.into(), lpname.param().abi()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn PrefetchVirtualMemory(hprocess: super::super::Foundation::HANDLE, virtualaddresses: &[WIN32_MEMORY_RANGE_ENTRY], flags: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn PrefetchVirtualMemory(hprocess : super::super::Foundation:: HANDLE, numberofentries : usize, virtualaddresses : *const WIN32_MEMORY_RANGE_ENTRY, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn PrefetchVirtualMemory(hprocess : super::super::Foundation:: HANDLE, numberofentries : usize, virtualaddresses : *const WIN32_MEMORY_RANGE_ENTRY, flags : u32) -> windows_core::BOOL); unsafe { PrefetchVirtualMemory(hprocess, virtualaddresses.len().try_into().unwrap(), core::mem::transmute(virtualaddresses.as_ptr()), flags).ok() } } #[inline] -pub unsafe fn QueryMemoryResourceNotification(resourcenotificationhandle: super::super::Foundation::HANDLE, resourcestate: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn QueryMemoryResourceNotification(resourcenotificationhandle : super::super::Foundation:: HANDLE, resourcestate : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn QueryMemoryResourceNotification(resourcenotificationhandle: super::super::Foundation::HANDLE, resourcestate: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("kernel32.dll" "system" fn QueryMemoryResourceNotification(resourcenotificationhandle : super::super::Foundation:: HANDLE, resourcestate : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { QueryMemoryResourceNotification(resourcenotificationhandle, resourcestate as _).ok() } } #[inline] -pub unsafe fn QueryPartitionInformation(partition: super::super::Foundation::HANDLE, partitioninformationclass: WIN32_MEMORY_PARTITION_INFORMATION_CLASS, partitioninformation: *mut core::ffi::c_void, partitioninformationlength: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("api-ms-win-core-memory-l1-1-8.dll" "system" fn QueryPartitionInformation(partition : super::super::Foundation:: HANDLE, partitioninformationclass : WIN32_MEMORY_PARTITION_INFORMATION_CLASS, partitioninformation : *mut core::ffi::c_void, partitioninformationlength : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn QueryPartitionInformation(partition: super::super::Foundation::HANDLE, partitioninformationclass: WIN32_MEMORY_PARTITION_INFORMATION_CLASS, partitioninformation: *mut core::ffi::c_void, partitioninformationlength: u32) -> windows_core::BOOL { + windows_targets::link!("api-ms-win-core-memory-l1-1-8.dll" "system" fn QueryPartitionInformation(partition : super::super::Foundation:: HANDLE, partitioninformationclass : WIN32_MEMORY_PARTITION_INFORMATION_CLASS, partitioninformation : *mut core::ffi::c_void, partitioninformationlength : u32) -> windows_core::BOOL); unsafe { QueryPartitionInformation(partition, partitioninformationclass, partitioninformation as _, partitioninformationlength) } } #[inline] pub unsafe fn QueryVirtualMemoryInformation(process: super::super::Foundation::HANDLE, virtualaddress: *const core::ffi::c_void, memoryinformationclass: WIN32_MEMORY_INFORMATION_CLASS, memoryinformation: *mut core::ffi::c_void, memoryinformationsize: usize, returnsize: Option<*mut usize>) -> windows_core::Result<()> { - windows_targets::link!("api-ms-win-core-memory-l1-1-4.dll" "system" fn QueryVirtualMemoryInformation(process : super::super::Foundation:: HANDLE, virtualaddress : *const core::ffi::c_void, memoryinformationclass : WIN32_MEMORY_INFORMATION_CLASS, memoryinformation : *mut core::ffi::c_void, memoryinformationsize : usize, returnsize : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-memory-l1-1-4.dll" "system" fn QueryVirtualMemoryInformation(process : super::super::Foundation:: HANDLE, virtualaddress : *const core::ffi::c_void, memoryinformationclass : WIN32_MEMORY_INFORMATION_CLASS, memoryinformation : *mut core::ffi::c_void, memoryinformationsize : usize, returnsize : *mut usize) -> windows_core::BOOL); unsafe { QueryVirtualMemoryInformation(process, virtualaddress, memoryinformationclass, memoryinformation as _, memoryinformationsize, returnsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -428,8 +428,8 @@ pub unsafe fn RegisterBadMemoryNotification(callback: PBAD_MEMORY_CALLBACK_ROUTI unsafe { RegisterBadMemoryNotification(callback) } } #[inline] -pub unsafe fn RemoveSecureMemoryCacheCallback(pfncallback: PSECURE_MEMORY_CACHE_CALLBACK) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn RemoveSecureMemoryCacheCallback(pfncallback : PSECURE_MEMORY_CACHE_CALLBACK) -> super::super::Foundation:: BOOL); +pub unsafe fn RemoveSecureMemoryCacheCallback(pfncallback: PSECURE_MEMORY_CACHE_CALLBACK) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn RemoveSecureMemoryCacheCallback(pfncallback : PSECURE_MEMORY_CACHE_CALLBACK) -> windows_core::BOOL); unsafe { RemoveSecureMemoryCacheCallback(pfncallback) } } #[inline] @@ -459,42 +459,42 @@ pub unsafe fn RtlIsZeroMemory(buffer: *const core::ffi::c_void, length: usize) - } #[inline] pub unsafe fn SetProcessValidCallTargets(hprocess: super::super::Foundation::HANDLE, virtualaddress: *const core::ffi::c_void, regionsize: usize, offsetinformation: &mut [CFG_CALL_TARGET_INFO]) -> windows_core::Result<()> { - windows_targets::link!("api-ms-win-core-memory-l1-1-3.dll" "system" fn SetProcessValidCallTargets(hprocess : super::super::Foundation:: HANDLE, virtualaddress : *const core::ffi::c_void, regionsize : usize, numberofoffsets : u32, offsetinformation : *mut CFG_CALL_TARGET_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-memory-l1-1-3.dll" "system" fn SetProcessValidCallTargets(hprocess : super::super::Foundation:: HANDLE, virtualaddress : *const core::ffi::c_void, regionsize : usize, numberofoffsets : u32, offsetinformation : *mut CFG_CALL_TARGET_INFO) -> windows_core::BOOL); unsafe { SetProcessValidCallTargets(hprocess, virtualaddress, regionsize, offsetinformation.len().try_into().unwrap(), core::mem::transmute(offsetinformation.as_ptr())).ok() } } #[inline] -pub unsafe fn SetProcessValidCallTargetsForMappedView(process: super::super::Foundation::HANDLE, virtualaddress: *const core::ffi::c_void, regionsize: usize, offsetinformation: &mut [CFG_CALL_TARGET_INFO], section: super::super::Foundation::HANDLE, expectedfileoffset: u64) -> super::super::Foundation::BOOL { - windows_targets::link!("api-ms-win-core-memory-l1-1-7.dll" "system" fn SetProcessValidCallTargetsForMappedView(process : super::super::Foundation:: HANDLE, virtualaddress : *const core::ffi::c_void, regionsize : usize, numberofoffsets : u32, offsetinformation : *mut CFG_CALL_TARGET_INFO, section : super::super::Foundation:: HANDLE, expectedfileoffset : u64) -> super::super::Foundation:: BOOL); +pub unsafe fn SetProcessValidCallTargetsForMappedView(process: super::super::Foundation::HANDLE, virtualaddress: *const core::ffi::c_void, regionsize: usize, offsetinformation: &mut [CFG_CALL_TARGET_INFO], section: super::super::Foundation::HANDLE, expectedfileoffset: u64) -> windows_core::BOOL { + windows_targets::link!("api-ms-win-core-memory-l1-1-7.dll" "system" fn SetProcessValidCallTargetsForMappedView(process : super::super::Foundation:: HANDLE, virtualaddress : *const core::ffi::c_void, regionsize : usize, numberofoffsets : u32, offsetinformation : *mut CFG_CALL_TARGET_INFO, section : super::super::Foundation:: HANDLE, expectedfileoffset : u64) -> windows_core::BOOL); unsafe { SetProcessValidCallTargetsForMappedView(process, virtualaddress, regionsize, offsetinformation.len().try_into().unwrap(), core::mem::transmute(offsetinformation.as_ptr()), section, expectedfileoffset) } } #[inline] pub unsafe fn SetProcessWorkingSetSizeEx(hprocess: super::super::Foundation::HANDLE, dwminimumworkingsetsize: usize, dwmaximumworkingsetsize: usize, flags: SETPROCESSWORKINGSETSIZEEX_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetProcessWorkingSetSizeEx(hprocess : super::super::Foundation:: HANDLE, dwminimumworkingsetsize : usize, dwmaximumworkingsetsize : usize, flags : SETPROCESSWORKINGSETSIZEEX_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetProcessWorkingSetSizeEx(hprocess : super::super::Foundation:: HANDLE, dwminimumworkingsetsize : usize, dwmaximumworkingsetsize : usize, flags : SETPROCESSWORKINGSETSIZEEX_FLAGS) -> windows_core::BOOL); unsafe { SetProcessWorkingSetSizeEx(hprocess, dwminimumworkingsetsize, dwmaximumworkingsetsize, flags).ok() } } #[inline] pub unsafe fn SetSystemFileCacheSize(minimumfilecachesize: usize, maximumfilecachesize: usize, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetSystemFileCacheSize(minimumfilecachesize : usize, maximumfilecachesize : usize, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetSystemFileCacheSize(minimumfilecachesize : usize, maximumfilecachesize : usize, flags : u32) -> windows_core::BOOL); unsafe { SetSystemFileCacheSize(minimumfilecachesize, maximumfilecachesize, flags).ok() } } #[inline] pub unsafe fn UnmapViewOfFile(lpbaseaddress: MEMORY_MAPPED_VIEW_ADDRESS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn UnmapViewOfFile(lpbaseaddress : MEMORY_MAPPED_VIEW_ADDRESS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn UnmapViewOfFile(lpbaseaddress : MEMORY_MAPPED_VIEW_ADDRESS) -> windows_core::BOOL); unsafe { UnmapViewOfFile(core::mem::transmute(lpbaseaddress)).ok() } } #[inline] pub unsafe fn UnmapViewOfFile2(process: super::super::Foundation::HANDLE, baseaddress: MEMORY_MAPPED_VIEW_ADDRESS, unmapflags: UNMAP_VIEW_OF_FILE_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("api-ms-win-core-memory-l1-1-5.dll" "system" fn UnmapViewOfFile2(process : super::super::Foundation:: HANDLE, baseaddress : MEMORY_MAPPED_VIEW_ADDRESS, unmapflags : UNMAP_VIEW_OF_FILE_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-memory-l1-1-5.dll" "system" fn UnmapViewOfFile2(process : super::super::Foundation:: HANDLE, baseaddress : MEMORY_MAPPED_VIEW_ADDRESS, unmapflags : UNMAP_VIEW_OF_FILE_FLAGS) -> windows_core::BOOL); unsafe { UnmapViewOfFile2(process, core::mem::transmute(baseaddress), unmapflags).ok() } } #[inline] pub unsafe fn UnmapViewOfFileEx(baseaddress: MEMORY_MAPPED_VIEW_ADDRESS, unmapflags: UNMAP_VIEW_OF_FILE_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn UnmapViewOfFileEx(baseaddress : MEMORY_MAPPED_VIEW_ADDRESS, unmapflags : UNMAP_VIEW_OF_FILE_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn UnmapViewOfFileEx(baseaddress : MEMORY_MAPPED_VIEW_ADDRESS, unmapflags : UNMAP_VIEW_OF_FILE_FLAGS) -> windows_core::BOOL); unsafe { UnmapViewOfFileEx(core::mem::transmute(baseaddress), unmapflags).ok() } } #[inline] pub unsafe fn UnregisterBadMemoryNotification(registrationhandle: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn UnregisterBadMemoryNotification(registrationhandle : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn UnregisterBadMemoryNotification(registrationhandle : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { UnregisterBadMemoryNotification(registrationhandle).ok() } } #[inline] @@ -529,32 +529,32 @@ pub unsafe fn VirtualAllocFromApp(baseaddress: Option<*const core::ffi::c_void>, } #[inline] pub unsafe fn VirtualFree(lpaddress: *mut core::ffi::c_void, dwsize: usize, dwfreetype: VIRTUAL_FREE_TYPE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn VirtualFree(lpaddress : *mut core::ffi::c_void, dwsize : usize, dwfreetype : VIRTUAL_FREE_TYPE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn VirtualFree(lpaddress : *mut core::ffi::c_void, dwsize : usize, dwfreetype : VIRTUAL_FREE_TYPE) -> windows_core::BOOL); unsafe { VirtualFree(lpaddress as _, dwsize, dwfreetype).ok() } } #[inline] pub unsafe fn VirtualFreeEx(hprocess: super::super::Foundation::HANDLE, lpaddress: *mut core::ffi::c_void, dwsize: usize, dwfreetype: VIRTUAL_FREE_TYPE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn VirtualFreeEx(hprocess : super::super::Foundation:: HANDLE, lpaddress : *mut core::ffi::c_void, dwsize : usize, dwfreetype : VIRTUAL_FREE_TYPE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn VirtualFreeEx(hprocess : super::super::Foundation:: HANDLE, lpaddress : *mut core::ffi::c_void, dwsize : usize, dwfreetype : VIRTUAL_FREE_TYPE) -> windows_core::BOOL); unsafe { VirtualFreeEx(hprocess, lpaddress as _, dwsize, dwfreetype).ok() } } #[inline] pub unsafe fn VirtualLock(lpaddress: *const core::ffi::c_void, dwsize: usize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn VirtualLock(lpaddress : *const core::ffi::c_void, dwsize : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn VirtualLock(lpaddress : *const core::ffi::c_void, dwsize : usize) -> windows_core::BOOL); unsafe { VirtualLock(lpaddress, dwsize).ok() } } #[inline] pub unsafe fn VirtualProtect(lpaddress: *const core::ffi::c_void, dwsize: usize, flnewprotect: PAGE_PROTECTION_FLAGS, lpfloldprotect: *mut PAGE_PROTECTION_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn VirtualProtect(lpaddress : *const core::ffi::c_void, dwsize : usize, flnewprotect : PAGE_PROTECTION_FLAGS, lpfloldprotect : *mut PAGE_PROTECTION_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn VirtualProtect(lpaddress : *const core::ffi::c_void, dwsize : usize, flnewprotect : PAGE_PROTECTION_FLAGS, lpfloldprotect : *mut PAGE_PROTECTION_FLAGS) -> windows_core::BOOL); unsafe { VirtualProtect(lpaddress, dwsize, flnewprotect, lpfloldprotect as _).ok() } } #[inline] pub unsafe fn VirtualProtectEx(hprocess: super::super::Foundation::HANDLE, lpaddress: *const core::ffi::c_void, dwsize: usize, flnewprotect: PAGE_PROTECTION_FLAGS, lpfloldprotect: *mut PAGE_PROTECTION_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn VirtualProtectEx(hprocess : super::super::Foundation:: HANDLE, lpaddress : *const core::ffi::c_void, dwsize : usize, flnewprotect : PAGE_PROTECTION_FLAGS, lpfloldprotect : *mut PAGE_PROTECTION_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn VirtualProtectEx(hprocess : super::super::Foundation:: HANDLE, lpaddress : *const core::ffi::c_void, dwsize : usize, flnewprotect : PAGE_PROTECTION_FLAGS, lpfloldprotect : *mut PAGE_PROTECTION_FLAGS) -> windows_core::BOOL); unsafe { VirtualProtectEx(hprocess, lpaddress, dwsize, flnewprotect, lpfloldprotect as _).ok() } } #[inline] pub unsafe fn VirtualProtectFromApp(address: *const core::ffi::c_void, size: usize, newprotection: u32, oldprotection: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("api-ms-win-core-memory-l1-1-3.dll" "system" fn VirtualProtectFromApp(address : *const core::ffi::c_void, size : usize, newprotection : u32, oldprotection : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-memory-l1-1-3.dll" "system" fn VirtualProtectFromApp(address : *const core::ffi::c_void, size : usize, newprotection : u32, oldprotection : *mut u32) -> windows_core::BOOL); unsafe { VirtualProtectFromApp(address, size, newprotection, oldprotection as _).ok() } } #[inline] @@ -569,12 +569,12 @@ pub unsafe fn VirtualQueryEx(hprocess: super::super::Foundation::HANDLE, lpaddre } #[inline] pub unsafe fn VirtualUnlock(lpaddress: *const core::ffi::c_void, dwsize: usize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn VirtualUnlock(lpaddress : *const core::ffi::c_void, dwsize : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn VirtualUnlock(lpaddress : *const core::ffi::c_void, dwsize : usize) -> windows_core::BOOL); unsafe { VirtualUnlock(lpaddress, dwsize).ok() } } #[inline] -pub unsafe fn VirtualUnlockEx(process: Option, address: *const core::ffi::c_void, size: usize) -> super::super::Foundation::BOOL { - windows_targets::link!("api-ms-win-core-memory-l1-1-5.dll" "system" fn VirtualUnlockEx(process : super::super::Foundation:: HANDLE, address : *const core::ffi::c_void, size : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn VirtualUnlockEx(process: Option, address: *const core::ffi::c_void, size: usize) -> windows_core::BOOL { + windows_targets::link!("api-ms-win-core-memory-l1-1-5.dll" "system" fn VirtualUnlockEx(process : super::super::Foundation:: HANDLE, address : *const core::ffi::c_void, size : usize) -> windows_core::BOOL); unsafe { VirtualUnlockEx(process.unwrap_or(core::mem::zeroed()) as _, address, size) } } #[repr(transparent)] 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 10ba3398dd..052596a136 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Mmc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Mmc/mod.rs @@ -142,7 +142,7 @@ impl Column { pub unsafe fn SetDisplayPosition(&self, index: i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetDisplayPosition)(windows_core::Interface::as_raw(self), index).ok() } } - pub unsafe fn Hidden(&self) -> windows_core::Result { + pub unsafe fn Hidden(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Hidden)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -154,7 +154,7 @@ impl Column { pub unsafe fn SetAsSortColumn(&self, sortorder: _ColumnSortOrder) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetAsSortColumn)(windows_core::Interface::as_raw(self), sortorder).ok() } } - pub unsafe fn IsSortColumn(&self) -> windows_core::Result { + pub unsafe fn IsSortColumn(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsSortColumn)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -170,10 +170,10 @@ pub struct Column_Vtbl { pub SetWidth: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub DisplayPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetDisplayPosition: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, - pub Hidden: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetHidden: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Hidden: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetHidden: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetAsSortColumn: unsafe extern "system" fn(*mut core::ffi::c_void, _ColumnSortOrder) -> windows_core::HRESULT, - pub IsSortColumn: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsSortColumn: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait Column_Impl: super::Com::IDispatch_Impl { @@ -182,10 +182,10 @@ pub trait Column_Impl: super::Com::IDispatch_Impl { fn SetWidth(&self, width: i32) -> windows_core::Result<()>; fn DisplayPosition(&self) -> windows_core::Result; fn SetDisplayPosition(&self, index: i32) -> windows_core::Result<()>; - fn Hidden(&self) -> windows_core::Result; - fn SetHidden(&self, hidden: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Hidden(&self) -> windows_core::Result; + fn SetHidden(&self, hidden: windows_core::BOOL) -> windows_core::Result<()>; fn SetAsSortColumn(&self, sortorder: _ColumnSortOrder) -> windows_core::Result<()>; - fn IsSortColumn(&self) -> windows_core::Result; + fn IsSortColumn(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl Column_Vtbl { @@ -238,7 +238,7 @@ impl Column_Vtbl { Column_Impl::SetDisplayPosition(this, core::mem::transmute_copy(&index)).into() } } - unsafe extern "system" fn Hidden(this: *mut core::ffi::c_void, hidden: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Hidden(this: *mut core::ffi::c_void, hidden: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Column_Impl::Hidden(this) { @@ -250,7 +250,7 @@ impl Column_Vtbl { } } } - unsafe extern "system" fn SetHidden(this: *mut core::ffi::c_void, hidden: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetHidden(this: *mut core::ffi::c_void, hidden: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Column_Impl::SetHidden(this, core::mem::transmute_copy(&hidden)).into() @@ -262,7 +262,7 @@ impl Column_Vtbl { Column_Impl::SetAsSortColumn(this, core::mem::transmute_copy(&sortorder)).into() } } - unsafe extern "system" fn IsSortColumn(this: *mut core::ffi::c_void, issortcolumn: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsSortColumn(this: *mut core::ffi::c_void, issortcolumn: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Column_Impl::IsSortColumn(this) { @@ -552,7 +552,7 @@ impl Document { (windows_core::Interface::vtable(self).Location)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn IsSaved(&self) -> windows_core::Result { + pub unsafe fn IsSaved(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsSaved)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -598,14 +598,14 @@ pub struct Document_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Save: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SaveAs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Close: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Close: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub Views: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SnapIns: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ActiveView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Location: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsSaved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsSaved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Mode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut _DocumentMode) -> windows_core::HRESULT, pub SetMode: unsafe extern "system" fn(*mut core::ffi::c_void, _DocumentMode) -> windows_core::HRESULT, pub RootNode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -617,14 +617,14 @@ pub struct Document_Vtbl { pub trait Document_Impl: super::Com::IDispatch_Impl { fn Save(&self) -> windows_core::Result<()>; fn SaveAs(&self, filename: &windows_core::BSTR) -> windows_core::Result<()>; - fn Close(&self, savechanges: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Close(&self, savechanges: windows_core::BOOL) -> windows_core::Result<()>; fn Views(&self) -> windows_core::Result; fn SnapIns(&self) -> windows_core::Result; fn ActiveView(&self) -> windows_core::Result; fn Name(&self) -> windows_core::Result; fn SetName(&self, name: &windows_core::BSTR) -> windows_core::Result<()>; fn Location(&self) -> windows_core::Result; - fn IsSaved(&self) -> windows_core::Result; + fn IsSaved(&self) -> windows_core::Result; fn Mode(&self) -> windows_core::Result<_DocumentMode>; fn SetMode(&self, mode: _DocumentMode) -> windows_core::Result<()>; fn RootNode(&self) -> windows_core::Result; @@ -647,7 +647,7 @@ impl Document_Vtbl { Document_Impl::SaveAs(this, core::mem::transmute(&filename)).into() } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void, savechanges: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void, savechanges: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Document_Impl::Close(this, core::mem::transmute_copy(&savechanges)).into() @@ -719,7 +719,7 @@ impl Document_Vtbl { } } } - unsafe extern "system" fn IsSaved(this: *mut core::ffi::c_void, issaved: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsSaved(this: *mut core::ffi::c_void, issaved: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Document_Impl::IsSaved(this) { @@ -891,8 +891,8 @@ pub struct Extension_Vtbl { pub Version: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Extensions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SnapinCLSID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub EnableAllExtensions: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableAllExtensions: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait Extension_Impl: super::Com::IDispatch_Impl { @@ -901,8 +901,8 @@ pub trait Extension_Impl: super::Com::IDispatch_Impl { fn Version(&self) -> windows_core::Result; fn Extensions(&self) -> windows_core::Result; fn SnapinCLSID(&self) -> windows_core::Result; - fn EnableAllExtensions(&self, enable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn Enable(&self, enable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EnableAllExtensions(&self, enable: windows_core::BOOL) -> windows_core::Result<()>; + fn Enable(&self, enable: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl Extension_Vtbl { @@ -967,13 +967,13 @@ impl Extension_Vtbl { } } } - unsafe extern "system" fn EnableAllExtensions(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableAllExtensions(this: *mut core::ffi::c_void, enable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Extension_Impl::EnableAllExtensions(this, core::mem::transmute_copy(&enable)).into() } } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, enable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); Extension_Impl::Enable(this, core::mem::transmute_copy(&enable)).into() @@ -2057,20 +2057,20 @@ impl IConsole2 { #[repr(C)] pub struct IConsole2_Vtbl { pub base__: IConsole_Vtbl, - pub Expand: unsafe extern "system" fn(*mut core::ffi::c_void, isize, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Expand: unsafe extern "system" fn(*mut core::ffi::c_void, isize, windows_core::BOOL) -> windows_core::HRESULT, pub IsTaskpadViewPreferred: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SetStatusText: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait IConsole2_Impl: IConsole_Impl { - fn Expand(&self, hitem: isize, bexpand: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Expand(&self, hitem: isize, bexpand: windows_core::BOOL) -> windows_core::Result<()>; fn IsTaskpadViewPreferred(&self) -> windows_core::Result<()>; fn SetStatusText(&self, pszstatustext: &windows_core::PCWSTR) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl IConsole2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Expand(this: *mut core::ffi::c_void, hitem: isize, bexpand: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Expand(this: *mut core::ffi::c_void, hitem: isize, bexpand: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsole2_Impl::Expand(this, core::mem::transmute_copy(&hitem), core::mem::transmute_copy(&bexpand)).into() @@ -2379,7 +2379,7 @@ impl windows_core::RuntimeName for IConsolePowerSink {} windows_core::imp::define_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 { + pub unsafe fn GetVerbState(&self, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetVerbState)(windows_core::Interface::as_raw(self), ecmdid, nstate, &mut result__).map(|| result__) @@ -2401,20 +2401,20 @@ impl IConsoleVerb { #[repr(C)] pub struct IConsoleVerb_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetVerbState: unsafe extern "system" fn(*mut core::ffi::c_void, MMC_CONSOLE_VERB, MMC_BUTTON_STATE, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetVerbState: unsafe extern "system" fn(*mut core::ffi::c_void, MMC_CONSOLE_VERB, MMC_BUTTON_STATE, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetVerbState: unsafe extern "system" fn(*mut core::ffi::c_void, MMC_CONSOLE_VERB, MMC_BUTTON_STATE, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetVerbState: unsafe extern "system" fn(*mut core::ffi::c_void, MMC_CONSOLE_VERB, MMC_BUTTON_STATE, windows_core::BOOL) -> windows_core::HRESULT, pub SetDefaultVerb: unsafe extern "system" fn(*mut core::ffi::c_void, MMC_CONSOLE_VERB) -> windows_core::HRESULT, pub GetDefaultVerb: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MMC_CONSOLE_VERB) -> windows_core::HRESULT, } pub trait IConsoleVerb_Impl: windows_core::IUnknownImpl { - fn GetVerbState(&self, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE) -> windows_core::Result; - fn SetVerbState(&self, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE, bstate: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetVerbState(&self, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE) -> windows_core::Result; + fn SetVerbState(&self, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE, bstate: windows_core::BOOL) -> windows_core::Result<()>; fn SetDefaultVerb(&self, ecmdid: MMC_CONSOLE_VERB) -> windows_core::Result<()>; fn GetDefaultVerb(&self) -> windows_core::Result; } impl IConsoleVerb_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetVerbState(this: *mut core::ffi::c_void, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE, pstate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetVerbState(this: *mut core::ffi::c_void, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE, pstate: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConsoleVerb_Impl::GetVerbState(this, core::mem::transmute_copy(&ecmdid), core::mem::transmute_copy(&nstate)) { @@ -2426,7 +2426,7 @@ impl IConsoleVerb_Vtbl { } } } - unsafe extern "system" fn SetVerbState(this: *mut core::ffi::c_void, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE, bstate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetVerbState(this: *mut core::ffi::c_void, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE, bstate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConsoleVerb_Impl::SetVerbState(this, core::mem::transmute_copy(&ecmdid), core::mem::transmute_copy(&nstate), core::mem::transmute_copy(&bstate)).into() @@ -2995,7 +2995,7 @@ impl core::ops::Deref for IExtendPropertySheet2 { windows_core::imp::interface_hierarchy!(IExtendPropertySheet2, windows_core::IUnknown, IExtendPropertySheet); impl IExtendPropertySheet2 { #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] - pub unsafe fn GetWatermarks(&self, lpidataobject: P0, lphwatermark: *mut super::super::Graphics::Gdi::HBITMAP, lphheader: *mut super::super::Graphics::Gdi::HBITMAP, lphpalette: *mut super::super::Graphics::Gdi::HPALETTE, bstretch: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn GetWatermarks(&self, lpidataobject: P0, lphwatermark: *mut super::super::Graphics::Gdi::HBITMAP, lphheader: *mut super::super::Graphics::Gdi::HBITMAP, lphpalette: *mut super::super::Graphics::Gdi::HPALETTE, bstretch: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -3006,18 +3006,18 @@ impl IExtendPropertySheet2 { pub struct IExtendPropertySheet2_Vtbl { pub base__: IExtendPropertySheet_Vtbl, #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] - pub GetWatermarks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Graphics::Gdi::HBITMAP, *mut super::super::Graphics::Gdi::HBITMAP, *mut super::super::Graphics::Gdi::HPALETTE, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetWatermarks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Graphics::Gdi::HBITMAP, *mut super::super::Graphics::Gdi::HBITMAP, *mut super::super::Graphics::Gdi::HPALETTE, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com")))] GetWatermarks: usize, } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub trait IExtendPropertySheet2_Impl: IExtendPropertySheet_Impl { - fn GetWatermarks(&self, lpidataobject: windows_core::Ref, lphwatermark: *mut super::super::Graphics::Gdi::HBITMAP, lphheader: *mut super::super::Graphics::Gdi::HBITMAP, lphpalette: *mut super::super::Graphics::Gdi::HPALETTE, bstretch: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetWatermarks(&self, lpidataobject: windows_core::Ref, lphwatermark: *mut super::super::Graphics::Gdi::HBITMAP, lphheader: *mut super::super::Graphics::Gdi::HBITMAP, lphpalette: *mut super::super::Graphics::Gdi::HPALETTE, bstretch: *mut windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IExtendPropertySheet2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetWatermarks(this: *mut core::ffi::c_void, lpidataobject: *mut core::ffi::c_void, lphwatermark: *mut super::super::Graphics::Gdi::HBITMAP, lphheader: *mut super::super::Graphics::Gdi::HBITMAP, lphpalette: *mut super::super::Graphics::Gdi::HPALETTE, bstretch: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetWatermarks(this: *mut core::ffi::c_void, lpidataobject: *mut core::ffi::c_void, lphwatermark: *mut super::super::Graphics::Gdi::HBITMAP, lphheader: *mut super::super::Graphics::Gdi::HBITMAP, lphpalette: *mut super::super::Graphics::Gdi::HPALETTE, bstretch: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExtendPropertySheet2_Impl::GetWatermarks(this, core::mem::transmute_copy(&lpidataobject), core::mem::transmute_copy(&lphwatermark), core::mem::transmute_copy(&lphheader), core::mem::transmute_copy(&lphpalette), core::mem::transmute_copy(&bstretch)).into() @@ -3523,12 +3523,12 @@ pub struct IMenuButton_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub AddButton: unsafe extern "system" fn(*mut core::ffi::c_void, i32, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, pub SetButton: unsafe extern "system" fn(*mut core::ffi::c_void, i32, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, - pub SetButtonState: unsafe extern "system" fn(*mut core::ffi::c_void, i32, MMC_BUTTON_STATE, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetButtonState: unsafe extern "system" fn(*mut core::ffi::c_void, i32, MMC_BUTTON_STATE, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IMenuButton_Impl: windows_core::IUnknownImpl { fn AddButton(&self, idcommand: i32, lpbuttontext: &windows_core::PCWSTR, lptooltiptext: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetButton(&self, idcommand: i32, lpbuttontext: &windows_core::PCWSTR, lptooltiptext: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn SetButtonState(&self, idcommand: i32, nstate: MMC_BUTTON_STATE, bstate: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetButtonState(&self, idcommand: i32, nstate: MMC_BUTTON_STATE, bstate: windows_core::BOOL) -> windows_core::Result<()>; } impl IMenuButton_Vtbl { pub const fn new() -> Self { @@ -3544,7 +3544,7 @@ impl IMenuButton_Vtbl { IMenuButton_Impl::SetButton(this, core::mem::transmute_copy(&idcommand), core::mem::transmute(&lpbuttontext), core::mem::transmute(&lptooltiptext)).into() } } - unsafe extern "system" fn SetButtonState(this: *mut core::ffi::c_void, idcommand: i32, nstate: MMC_BUTTON_STATE, bstate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetButtonState(this: *mut core::ffi::c_void, idcommand: i32, nstate: MMC_BUTTON_STATE, bstate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMenuButton_Impl::SetButtonState(this, core::mem::transmute_copy(&idcommand), core::mem::transmute_copy(&nstate), core::mem::transmute_copy(&bstate)).into() @@ -3782,7 +3782,7 @@ pub struct IPropertySheetProvider_Vtbl { pub FindPropertySheet: unsafe extern "system" fn(*mut core::ffi::c_void, isize, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] FindPropertySheet: usize, - pub AddPrimaryPages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::HWND, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AddPrimaryPages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, super::super::Foundation::HWND, windows_core::BOOL) -> windows_core::HRESULT, pub AddExtensionPages: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Show: unsafe extern "system" fn(*mut core::ffi::c_void, isize, i32) -> windows_core::HRESULT, } @@ -3790,7 +3790,7 @@ pub struct IPropertySheetProvider_Vtbl { pub trait IPropertySheetProvider_Impl: windows_core::IUnknownImpl { fn CreatePropertySheet(&self, title: &windows_core::PCWSTR, r#type: u8, cookie: isize, pidataobjectm: windows_core::Ref, dwoptions: u32) -> windows_core::Result<()>; fn FindPropertySheet(&self, hitem: isize, lpcomponent: windows_core::Ref, lpdataobject: windows_core::Ref) -> windows_core::Result<()>; - fn AddPrimaryPages(&self, lpunknown: windows_core::Ref, bcreatehandle: super::super::Foundation::BOOL, hnotifywindow: super::super::Foundation::HWND, bscopepane: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn AddPrimaryPages(&self, lpunknown: windows_core::Ref, bcreatehandle: windows_core::BOOL, hnotifywindow: super::super::Foundation::HWND, bscopepane: windows_core::BOOL) -> windows_core::Result<()>; fn AddExtensionPages(&self) -> windows_core::Result<()>; fn Show(&self, window: isize, page: i32) -> windows_core::Result<()>; } @@ -3809,7 +3809,7 @@ impl IPropertySheetProvider_Vtbl { IPropertySheetProvider_Impl::FindPropertySheet(this, core::mem::transmute_copy(&hitem), core::mem::transmute_copy(&lpcomponent), core::mem::transmute_copy(&lpdataobject)).into() } } - unsafe extern "system" fn AddPrimaryPages(this: *mut core::ffi::c_void, lpunknown: *mut core::ffi::c_void, bcreatehandle: super::super::Foundation::BOOL, hnotifywindow: super::super::Foundation::HWND, bscopepane: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AddPrimaryPages(this: *mut core::ffi::c_void, lpunknown: *mut core::ffi::c_void, bcreatehandle: windows_core::BOOL, hnotifywindow: super::super::Foundation::HWND, bscopepane: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertySheetProvider_Impl::AddPrimaryPages(this, core::mem::transmute_copy(&lpunknown), core::mem::transmute_copy(&bcreatehandle), core::mem::transmute_copy(&hnotifywindow), core::mem::transmute_copy(&bscopepane)).into() @@ -4799,7 +4799,7 @@ impl IToolbar { pub unsafe fn DeleteButton(&self, nindex: i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).DeleteButton)(windows_core::Interface::as_raw(self), nindex).ok() } } - pub unsafe fn GetButtonState(&self, idcommand: i32, nstate: MMC_BUTTON_STATE) -> windows_core::Result { + pub unsafe fn GetButtonState(&self, idcommand: i32, nstate: MMC_BUTTON_STATE) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetButtonState)(windows_core::Interface::as_raw(self), idcommand, nstate, &mut result__).map(|| result__) @@ -4819,8 +4819,8 @@ pub struct IToolbar_Vtbl { pub AddButtons: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *const MMCBUTTON) -> windows_core::HRESULT, pub InsertButton: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *const MMCBUTTON) -> windows_core::HRESULT, pub DeleteButton: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, - pub GetButtonState: unsafe extern "system" fn(*mut core::ffi::c_void, i32, MMC_BUTTON_STATE, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetButtonState: unsafe extern "system" fn(*mut core::ffi::c_void, i32, MMC_BUTTON_STATE, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetButtonState: unsafe extern "system" fn(*mut core::ffi::c_void, i32, MMC_BUTTON_STATE, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetButtonState: unsafe extern "system" fn(*mut core::ffi::c_void, i32, MMC_BUTTON_STATE, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Graphics_Gdi")] pub trait IToolbar_Impl: windows_core::IUnknownImpl { @@ -4828,8 +4828,8 @@ pub trait IToolbar_Impl: windows_core::IUnknownImpl { fn AddButtons(&self, nbuttons: i32, lpbuttons: *const MMCBUTTON) -> windows_core::Result<()>; fn InsertButton(&self, nindex: i32, lpbutton: *const MMCBUTTON) -> windows_core::Result<()>; fn DeleteButton(&self, nindex: i32) -> windows_core::Result<()>; - fn GetButtonState(&self, idcommand: i32, nstate: MMC_BUTTON_STATE) -> windows_core::Result; - fn SetButtonState(&self, idcommand: i32, nstate: MMC_BUTTON_STATE, bstate: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetButtonState(&self, idcommand: i32, nstate: MMC_BUTTON_STATE) -> windows_core::Result; + fn SetButtonState(&self, idcommand: i32, nstate: MMC_BUTTON_STATE, bstate: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_Gdi")] impl IToolbar_Vtbl { @@ -4858,7 +4858,7 @@ impl IToolbar_Vtbl { IToolbar_Impl::DeleteButton(this, core::mem::transmute_copy(&nindex)).into() } } - unsafe extern "system" fn GetButtonState(this: *mut core::ffi::c_void, idcommand: i32, nstate: MMC_BUTTON_STATE, pstate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetButtonState(this: *mut core::ffi::c_void, idcommand: i32, nstate: MMC_BUTTON_STATE, pstate: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IToolbar_Impl::GetButtonState(this, core::mem::transmute_copy(&idcommand), core::mem::transmute_copy(&nstate)) { @@ -4870,7 +4870,7 @@ impl IToolbar_Vtbl { } } } - unsafe extern "system" fn SetButtonState(this: *mut core::ffi::c_void, idcommand: i32, nstate: MMC_BUTTON_STATE, bstate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetButtonState(this: *mut core::ffi::c_void, idcommand: i32, nstate: MMC_BUTTON_STATE, bstate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IToolbar_Impl::SetButtonState(this, core::mem::transmute_copy(&idcommand), core::mem::transmute_copy(&nstate), core::mem::transmute_copy(&bstate)).into() @@ -5062,8 +5062,8 @@ pub const MMC_ENSUREFOCUSVISIBLE: MMC_RESULT_VIEW_STYLE = MMC_RESULT_VIEW_STYLE( #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct MMC_EXPANDSYNC_STRUCT { - pub bHandled: super::super::Foundation::BOOL, - pub bExpanding: super::super::Foundation::BOOL, + pub bHandled: windows_core::BOOL, + pub bExpanding: windows_core::BOOL, pub hItem: isize, } impl Default for MMC_EXPANDSYNC_STRUCT { @@ -5078,7 +5078,7 @@ pub struct MMC_EXT_VIEW_DATA { pub pszURL: windows_core::PCWSTR, pub pszViewTitle: windows_core::PCWSTR, pub pszTooltipText: windows_core::PCWSTR, - pub bReplacesDefaultView: super::super::Foundation::BOOL, + pub bReplacesDefaultView: windows_core::BOOL, } impl Default for MMC_EXT_VIEW_DATA { fn default() -> Self { @@ -5379,7 +5379,7 @@ impl MenuItem { pub unsafe fn Execute(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn Enabled(&self) -> windows_core::Result { + pub unsafe fn Enabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -5395,7 +5395,7 @@ pub struct MenuItem_Vtbl { pub Path: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub LanguageIndependentPath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Execute: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub Enabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Enabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait MenuItem_Impl: super::Com::IDispatch_Impl { @@ -5404,7 +5404,7 @@ pub trait MenuItem_Impl: super::Com::IDispatch_Impl { fn Path(&self) -> windows_core::Result; fn LanguageIndependentPath(&self) -> windows_core::Result; fn Execute(&self) -> windows_core::Result<()>; - fn Enabled(&self) -> windows_core::Result; + fn Enabled(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl MenuItem_Vtbl { @@ -5463,7 +5463,7 @@ impl MenuItem_Vtbl { MenuItem_Impl::Execute(this).into() } } - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, enabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match MenuItem_Impl::Enabled(this) { @@ -5522,7 +5522,7 @@ impl Node { (windows_core::Interface::vtable(self).Bookmark)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn IsScopeNode(&self) -> windows_core::Result { + pub unsafe fn IsScopeNode(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsScopeNode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -5542,7 +5542,7 @@ pub struct Node_Vtbl { pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub get_Property: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Bookmark: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsScopeNode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsScopeNode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Nodetype: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -5550,7 +5550,7 @@ pub trait Node_Impl: super::Com::IDispatch_Impl { fn Name(&self) -> windows_core::Result; fn get_Property(&self, propertyname: &windows_core::BSTR) -> windows_core::Result; fn Bookmark(&self) -> windows_core::Result; - fn IsScopeNode(&self) -> windows_core::Result; + fn IsScopeNode(&self) -> windows_core::Result; fn Nodetype(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -5592,7 +5592,7 @@ impl Node_Vtbl { } } } - unsafe extern "system" fn IsScopeNode(this: *mut core::ffi::c_void, isscopenode: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsScopeNode(this: *mut core::ffi::c_void, isscopenode: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match Node_Impl::IsScopeNode(this) { @@ -5974,7 +5974,7 @@ pub const RDI_STR: u32 = 2u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct RESULTDATAITEM { pub mask: u32, - pub bScopeItem: super::super::Foundation::BOOL, + pub bScopeItem: windows_core::BOOL, pub itemID: isize, pub nIndex: i32, pub nCol: i32, @@ -6371,7 +6371,7 @@ pub struct SnapIn_Vtbl { pub Extensions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SnapinCLSID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub EnableAllExtensions: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableAllExtensions: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait SnapIn_Impl: super::Com::IDispatch_Impl { @@ -6381,7 +6381,7 @@ pub trait SnapIn_Impl: super::Com::IDispatch_Impl { fn Extensions(&self) -> windows_core::Result; fn SnapinCLSID(&self) -> windows_core::Result; fn Properties(&self) -> windows_core::Result; - fn EnableAllExtensions(&self, enable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EnableAllExtensions(&self, enable: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl SnapIn_Vtbl { @@ -6458,7 +6458,7 @@ impl SnapIn_Vtbl { } } } - unsafe extern "system" fn EnableAllExtensions(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableAllExtensions(this: *mut core::ffi::c_void, enable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); SnapIn_Impl::EnableAllExtensions(this, core::mem::transmute_copy(&enable)).into() @@ -6702,7 +6702,7 @@ impl View { { unsafe { (windows_core::Interface::vtable(self).Deselect)(windows_core::Interface::as_raw(self), node.param().abi()).ok() } } - pub unsafe fn IsSelected(&self, node: P0) -> windows_core::Result + pub unsafe fn IsSelected(&self, node: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -6778,7 +6778,7 @@ impl View { pub unsafe fn Close(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn ScopeTreeVisible(&self) -> windows_core::Result { + pub unsafe fn ScopeTreeVisible(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ScopeTreeVisible)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6857,7 +6857,7 @@ pub struct View_Vtbl { pub SelectAll: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Select: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Deselect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsSelected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsSelected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub DisplayScopeNodePropertySheet: unsafe extern "system" fn(*mut core::ffi::c_void, super::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -6896,8 +6896,8 @@ pub struct View_Vtbl { pub ExecuteShellCommand: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Frame: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Close: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub ScopeTreeVisible: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetScopeTreeVisible: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ScopeTreeVisible: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetScopeTreeVisible: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub Back: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Forward: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SetStatusBarText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -6923,7 +6923,7 @@ pub trait View_Impl: super::Com::IDispatch_Impl { fn SelectAll(&self) -> windows_core::Result<()>; fn Select(&self, node: windows_core::Ref) -> windows_core::Result<()>; fn Deselect(&self, node: windows_core::Ref) -> windows_core::Result<()>; - fn IsSelected(&self, node: windows_core::Ref) -> windows_core::Result; + fn IsSelected(&self, node: windows_core::Ref) -> windows_core::Result; fn DisplayScopeNodePropertySheet(&self, scopenode: &super::Variant::VARIANT) -> windows_core::Result<()>; fn DisplaySelectionPropertySheet(&self) -> windows_core::Result<()>; fn CopyScopeNode(&self, scopenode: &super::Variant::VARIANT) -> windows_core::Result<()>; @@ -6941,8 +6941,8 @@ pub trait View_Impl: super::Com::IDispatch_Impl { fn ExecuteShellCommand(&self, command: &windows_core::BSTR, directory: &windows_core::BSTR, parameters: &windows_core::BSTR, windowstate: &windows_core::BSTR) -> windows_core::Result<()>; fn Frame(&self) -> windows_core::Result; fn Close(&self) -> windows_core::Result<()>; - fn ScopeTreeVisible(&self) -> windows_core::Result; - fn SetScopeTreeVisible(&self, visible: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ScopeTreeVisible(&self) -> windows_core::Result; + fn SetScopeTreeVisible(&self, visible: windows_core::BOOL) -> windows_core::Result<()>; fn Back(&self) -> windows_core::Result<()>; fn Forward(&self) -> windows_core::Result<()>; fn SetStatusBarText(&self, statusbartext: &windows_core::BSTR) -> windows_core::Result<()>; @@ -7066,7 +7066,7 @@ impl View_Vtbl { View_Impl::Deselect(this, core::mem::transmute_copy(&node)).into() } } - unsafe extern "system" fn IsSelected(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, isselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsSelected(this: *mut core::ffi::c_void, node: *mut core::ffi::c_void, isselected: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::IsSelected(this, core::mem::transmute_copy(&node)) { @@ -7198,7 +7198,7 @@ impl View_Vtbl { View_Impl::Close(this).into() } } - unsafe extern "system" fn ScopeTreeVisible(this: *mut core::ffi::c_void, visible: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ScopeTreeVisible(this: *mut core::ffi::c_void, visible: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match View_Impl::ScopeTreeVisible(this) { @@ -7210,7 +7210,7 @@ impl View_Vtbl { } } } - unsafe extern "system" fn SetScopeTreeVisible(this: *mut core::ffi::c_void, visible: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetScopeTreeVisible(this: *mut core::ffi::c_void, visible: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); View_Impl::SetScopeTreeVisible(this, core::mem::transmute_copy(&visible)).into() @@ -7574,7 +7574,7 @@ impl _AppEvents { pub struct _AppEvents_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub OnQuit: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub OnDocumentOpen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnDocumentOpen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub OnDocumentClose: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub OnSnapInAdded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub OnSnapInRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -7589,7 +7589,7 @@ pub struct _AppEvents_Vtbl { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait _AppEvents_Impl: super::Com::IDispatch_Impl { fn OnQuit(&self, application: windows_core::Ref<_Application>) -> windows_core::Result<()>; - fn OnDocumentOpen(&self, document: windows_core::Ref, new: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnDocumentOpen(&self, document: windows_core::Ref, new: windows_core::BOOL) -> windows_core::Result<()>; fn OnDocumentClose(&self, document: windows_core::Ref) -> windows_core::Result<()>; fn OnSnapInAdded(&self, document: windows_core::Ref, snapin: windows_core::Ref) -> windows_core::Result<()>; fn OnSnapInRemoved(&self, document: windows_core::Ref, snapin: windows_core::Ref) -> windows_core::Result<()>; @@ -7610,7 +7610,7 @@ impl _AppEvents_Vtbl { _AppEvents_Impl::OnQuit(this, core::mem::transmute_copy(&application)).into() } } - unsafe extern "system" fn OnDocumentOpen(this: *mut core::ffi::c_void, document: *mut core::ffi::c_void, new: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnDocumentOpen(this: *mut core::ffi::c_void, document: *mut core::ffi::c_void, new: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _AppEvents_Impl::OnDocumentOpen(this, core::mem::transmute_copy(&document), core::mem::transmute_copy(&new)).into() @@ -7732,7 +7732,7 @@ impl _Application { (windows_core::Interface::vtable(self).Frame)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn Visible(&self) -> windows_core::Result { + pub unsafe fn Visible(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Visible)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7744,7 +7744,7 @@ impl _Application { pub unsafe fn Hide(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Hide)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn UserControl(&self) -> windows_core::Result { + pub unsafe fn UserControl(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).UserControl)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7775,11 +7775,11 @@ pub struct _Application_Vtbl { pub Document: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Load: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Frame: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Visible: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Visible: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Show: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Hide: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub UserControl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetUserControl: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub UserControl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetUserControl: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub VersionMajor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub VersionMinor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, } @@ -7790,11 +7790,11 @@ pub trait _Application_Impl: super::Com::IDispatch_Impl { fn Document(&self) -> windows_core::Result; fn Load(&self, filename: &windows_core::BSTR) -> windows_core::Result<()>; fn Frame(&self) -> windows_core::Result; - fn Visible(&self) -> windows_core::Result; + fn Visible(&self) -> windows_core::Result; fn Show(&self) -> windows_core::Result<()>; fn Hide(&self) -> windows_core::Result<()>; - fn UserControl(&self) -> windows_core::Result; - fn SetUserControl(&self, usercontrol: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn UserControl(&self) -> windows_core::Result; + fn SetUserControl(&self, usercontrol: windows_core::BOOL) -> windows_core::Result<()>; fn VersionMajor(&self) -> windows_core::Result; fn VersionMinor(&self) -> windows_core::Result; } @@ -7843,7 +7843,7 @@ impl _Application_Vtbl { } } } - unsafe extern "system" fn Visible(this: *mut core::ffi::c_void, visible: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Visible(this: *mut core::ffi::c_void, visible: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _Application_Impl::Visible(this) { @@ -7867,7 +7867,7 @@ impl _Application_Vtbl { _Application_Impl::Hide(this).into() } } - unsafe extern "system" fn UserControl(this: *mut core::ffi::c_void, usercontrol: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn UserControl(this: *mut core::ffi::c_void, usercontrol: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match _Application_Impl::UserControl(this) { @@ -7879,7 +7879,7 @@ impl _Application_Vtbl { } } } - unsafe extern "system" fn SetUserControl(this: *mut core::ffi::c_void, usercontrol: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetUserControl(this: *mut core::ffi::c_void, usercontrol: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); _Application_Impl::SetUserControl(this, core::mem::transmute_copy(&usercontrol)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs index 52deb12d16..e5886d9c84 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs @@ -195,8 +195,8 @@ pub unsafe fn HRGN_UserUnmarshal64(param0: *const u32, param1: *const u8, param2 } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn IsAccelerator(haccel: super::super::UI::WindowsAndMessaging::HACCEL, caccelentries: i32, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG, lpwcmd: *mut u16) -> super::super::Foundation::BOOL { - windows_targets::link!("ole32.dll" "system" fn IsAccelerator(haccel : super::super::UI::WindowsAndMessaging:: HACCEL, caccelentries : i32, lpmsg : *const super::super::UI::WindowsAndMessaging:: MSG, lpwcmd : *mut u16) -> super::super::Foundation:: BOOL); +pub unsafe fn IsAccelerator(haccel: super::super::UI::WindowsAndMessaging::HACCEL, caccelentries: i32, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG, lpwcmd: *mut u16) -> windows_core::BOOL { + windows_targets::link!("ole32.dll" "system" fn IsAccelerator(haccel : super::super::UI::WindowsAndMessaging:: HACCEL, caccelentries : i32, lpmsg : *const super::super::UI::WindowsAndMessaging:: MSG, lpwcmd : *mut u16) -> windows_core::BOOL); unsafe { IsAccelerator(haccel, caccelentries, lpmsg, lpwcmd as _) } } #[cfg(feature = "Win32_System_Com")] @@ -455,7 +455,7 @@ pub unsafe fn OleCreatePictureIndirect(lppictdesc: *const PICTDESC, fown: boo where 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); + windows_targets::link!("oleaut32.dll" "system" fn OleCreatePictureIndirect(lppictdesc : *const PICTDESC, riid : *const windows_core::GUID, fown : windows_core::BOOL, lplpvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); let mut result__ = core::ptr::null_mut(); unsafe { OleCreatePictureIndirect(lppictdesc, &T::IID, fown.into(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } @@ -548,7 +548,7 @@ pub unsafe fn OleGetIconOfClass(rclsid: *const windows_core::GUID, lpszlabel where P1: windows_core::Param, { - windows_targets::link!("ole32.dll" "system" fn OleGetIconOfClass(rclsid : *const windows_core::GUID, lpszlabel : windows_core::PCWSTR, fusetypeaslabel : super::super::Foundation:: BOOL) -> super::super::Foundation:: HGLOBAL); + windows_targets::link!("ole32.dll" "system" fn OleGetIconOfClass(rclsid : *const windows_core::GUID, lpszlabel : windows_core::PCWSTR, fusetypeaslabel : windows_core::BOOL) -> super::super::Foundation:: HGLOBAL); unsafe { OleGetIconOfClass(rclsid, lpszlabel.param().abi(), fusetypeaslabel.into()) } } #[inline] @@ -556,7 +556,7 @@ pub unsafe fn OleGetIconOfFile(lpszpath: P0, fusefileaslabel: bool) -> super where P0: windows_core::Param, { - windows_targets::link!("ole32.dll" "system" fn OleGetIconOfFile(lpszpath : windows_core::PCWSTR, fusefileaslabel : super::super::Foundation:: BOOL) -> super::super::Foundation:: HGLOBAL); + windows_targets::link!("ole32.dll" "system" fn OleGetIconOfFile(lpszpath : windows_core::PCWSTR, fusefileaslabel : windows_core::BOOL) -> super::super::Foundation:: HGLOBAL); unsafe { OleGetIconOfFile(lpszpath.param().abi(), fusefileaslabel.into()) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -580,11 +580,11 @@ where unsafe { OleIsCurrentClipboard(pdataobj.param().abi()).ok() } } #[inline] -pub unsafe fn OleIsRunning(pobject: P0) -> super::super::Foundation::BOOL +pub unsafe fn OleIsRunning(pobject: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("ole32.dll" "system" fn OleIsRunning(pobject : * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("ole32.dll" "system" fn OleIsRunning(pobject : * mut core::ffi::c_void) -> windows_core::BOOL); unsafe { OleIsRunning(pobject.param().abi()) } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -612,7 +612,7 @@ pub unsafe fn OleLoadPicture(lpstream: P0, lsize: i32, frunmode: bool, riid: where P0: windows_core::Param, { - windows_targets::link!("oleaut32.dll" "system" fn OleLoadPicture(lpstream : * mut core::ffi::c_void, lsize : i32, frunmode : super::super::Foundation:: BOOL, riid : *const windows_core::GUID, lplpvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("oleaut32.dll" "system" fn OleLoadPicture(lpstream : * mut core::ffi::c_void, lsize : i32, frunmode : windows_core::BOOL, riid : *const windows_core::GUID, lplpvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { OleLoadPicture(lpstream.param().abi(), lsize, frunmode.into(), riid, lplpvobj as _).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -621,7 +621,7 @@ pub unsafe fn OleLoadPictureEx(lpstream: P0, lsize: i32, frunmode: bool, rii where P0: windows_core::Param, { - windows_targets::link!("oleaut32.dll" "system" fn OleLoadPictureEx(lpstream : * mut core::ffi::c_void, lsize : i32, frunmode : super::super::Foundation:: BOOL, riid : *const windows_core::GUID, xsizedesired : u32, ysizedesired : u32, dwflags : LOAD_PICTURE_FLAGS, lplpvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("oleaut32.dll" "system" fn OleLoadPictureEx(lpstream : * mut core::ffi::c_void, lsize : i32, frunmode : windows_core::BOOL, riid : *const windows_core::GUID, xsizedesired : u32, ysizedesired : u32, dwflags : LOAD_PICTURE_FLAGS, lplpvobj : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { OleLoadPictureEx(lpstream.param().abi(), lsize, frunmode.into(), riid, xsizedesired, ysizedesired, dwflags, lplpvobj as _).ok() } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] @@ -656,7 +656,7 @@ pub unsafe fn OleLockRunning(punknown: P0, flock: bool, flastunlockcloses: b where P0: windows_core::Param, { - windows_targets::link!("ole32.dll" "system" fn OleLockRunning(punknown : * mut core::ffi::c_void, flock : super::super::Foundation:: BOOL, flastunlockcloses : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("ole32.dll" "system" fn OleLockRunning(punknown : * mut core::ffi::c_void, flock : windows_core::BOOL, flastunlockcloses : windows_core::BOOL) -> windows_core::HRESULT); unsafe { OleLockRunning(punknown.param().abi(), flock.into(), flastunlockcloses.into()).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -675,7 +675,7 @@ pub unsafe fn OleNoteObjectVisible(punknown: P0, fvisible: bool) -> windows_ where P0: windows_core::Param, { - windows_targets::link!("ole32.dll" "system" fn OleNoteObjectVisible(punknown : * mut core::ffi::c_void, fvisible : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("ole32.dll" "system" fn OleNoteObjectVisible(punknown : * mut core::ffi::c_void, fvisible : windows_core::BOOL) -> windows_core::HRESULT); unsafe { OleNoteObjectVisible(punknown.param().abi(), fvisible.into()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -744,7 +744,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("ole32.dll" "system" fn OleSave(pps : * mut core::ffi::c_void, pstg : * mut core::ffi::c_void, fsameasload : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("ole32.dll" "system" fn OleSave(pps : * mut core::ffi::c_void, pstg : * mut core::ffi::c_void, fsameasload : windows_core::BOOL) -> windows_core::HRESULT); unsafe { OleSave(pps.param().abi(), pstg.param().abi(), fsameasload.into()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -785,7 +785,7 @@ pub unsafe fn OleSetContainedObject(punknown: P0, fcontained: bool) -> windo where P0: windows_core::Param, { - windows_targets::link!("ole32.dll" "system" fn OleSetContainedObject(punknown : * mut core::ffi::c_void, fcontained : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("ole32.dll" "system" fn OleSetContainedObject(punknown : * mut core::ffi::c_void, fcontained : windows_core::BOOL) -> windows_core::HRESULT); unsafe { OleSetContainedObject(punknown.param().abi(), fcontained.into()).ok() } } #[inline] @@ -817,22 +817,22 @@ pub unsafe fn OleTranslateColor(clr: u32, hpal: super::super::Graphics::Gdi::HPA } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn OleUIAddVerbMenuA(lpoleobj: P0, lpszshorttype: P1, hmenu: super::super::UI::WindowsAndMessaging::HMENU, upos: u32, uidverbmin: u32, uidverbmax: u32, baddconvert: bool, idconvert: u32, lphmenu: *mut super::super::UI::WindowsAndMessaging::HMENU) -> super::super::Foundation::BOOL +pub unsafe fn OleUIAddVerbMenuA(lpoleobj: P0, lpszshorttype: P1, hmenu: super::super::UI::WindowsAndMessaging::HMENU, upos: u32, uidverbmin: u32, uidverbmax: u32, baddconvert: bool, idconvert: u32, lphmenu: *mut super::super::UI::WindowsAndMessaging::HMENU) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("oledlg.dll" "system" fn OleUIAddVerbMenuA(lpoleobj : * mut core::ffi::c_void, lpszshorttype : windows_core::PCSTR, hmenu : super::super::UI::WindowsAndMessaging:: HMENU, upos : u32, uidverbmin : u32, uidverbmax : u32, baddconvert : super::super::Foundation:: BOOL, idconvert : u32, lphmenu : *mut super::super::UI::WindowsAndMessaging:: HMENU) -> super::super::Foundation:: BOOL); + windows_targets::link!("oledlg.dll" "system" fn OleUIAddVerbMenuA(lpoleobj : * mut core::ffi::c_void, lpszshorttype : windows_core::PCSTR, hmenu : super::super::UI::WindowsAndMessaging:: HMENU, upos : u32, uidverbmin : u32, uidverbmax : u32, baddconvert : windows_core::BOOL, idconvert : u32, lphmenu : *mut super::super::UI::WindowsAndMessaging:: HMENU) -> windows_core::BOOL); unsafe { OleUIAddVerbMenuA(lpoleobj.param().abi(), lpszshorttype.param().abi(), hmenu, upos, uidverbmin, uidverbmax, baddconvert.into(), idconvert, lphmenu as _) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn OleUIAddVerbMenuW(lpoleobj: P0, lpszshorttype: P1, hmenu: super::super::UI::WindowsAndMessaging::HMENU, upos: u32, uidverbmin: u32, uidverbmax: u32, baddconvert: bool, idconvert: u32, lphmenu: *mut super::super::UI::WindowsAndMessaging::HMENU) -> super::super::Foundation::BOOL +pub unsafe fn OleUIAddVerbMenuW(lpoleobj: P0, lpszshorttype: P1, hmenu: super::super::UI::WindowsAndMessaging::HMENU, upos: u32, uidverbmin: u32, uidverbmax: u32, baddconvert: bool, idconvert: u32, lphmenu: *mut super::super::UI::WindowsAndMessaging::HMENU) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("oledlg.dll" "system" fn OleUIAddVerbMenuW(lpoleobj : * mut core::ffi::c_void, lpszshorttype : windows_core::PCWSTR, hmenu : super::super::UI::WindowsAndMessaging:: HMENU, upos : u32, uidverbmin : u32, uidverbmax : u32, baddconvert : super::super::Foundation:: BOOL, idconvert : u32, lphmenu : *mut super::super::UI::WindowsAndMessaging:: HMENU) -> super::super::Foundation:: BOOL); + windows_targets::link!("oledlg.dll" "system" fn OleUIAddVerbMenuW(lpoleobj : * mut core::ffi::c_void, lpszshorttype : windows_core::PCWSTR, hmenu : super::super::UI::WindowsAndMessaging:: HMENU, upos : u32, uidverbmin : u32, uidverbmax : u32, baddconvert : windows_core::BOOL, idconvert : u32, lphmenu : *mut super::super::UI::WindowsAndMessaging:: HMENU) -> windows_core::BOOL); unsafe { OleUIAddVerbMenuW(lpoleobj.param().abi(), lpszshorttype.param().abi(), hmenu, upos, uidverbmin, uidverbmax, baddconvert.into(), idconvert, lphmenu as _) } } #[cfg(feature = "Win32_Media")] @@ -848,8 +848,8 @@ pub unsafe fn OleUIBusyW(param0: *const OLEUIBUSYW) -> u32 { unsafe { OleUIBusyW(param0) } } #[inline] -pub unsafe fn OleUICanConvertOrActivateAs(rclsid: *const windows_core::GUID, fislinkedobject: bool, wformat: u16) -> super::super::Foundation::BOOL { - windows_targets::link!("oledlg.dll" "system" fn OleUICanConvertOrActivateAs(rclsid : *const windows_core::GUID, fislinkedobject : super::super::Foundation:: BOOL, wformat : u16) -> super::super::Foundation:: BOOL); +pub unsafe fn OleUICanConvertOrActivateAs(rclsid: *const windows_core::GUID, fislinkedobject: bool, wformat: u16) -> windows_core::BOOL { + windows_targets::link!("oledlg.dll" "system" fn OleUICanConvertOrActivateAs(rclsid : *const windows_core::GUID, fislinkedobject : windows_core::BOOL, wformat : u16) -> windows_core::BOOL); unsafe { OleUICanConvertOrActivateAs(rclsid, fislinkedobject.into(), wformat) } } #[inline] @@ -941,21 +941,21 @@ pub unsafe fn OleUIPromptUserW(ntemplate: i32, hwndparent: super::super::Foundat unsafe { OleUIPromptUserW(ntemplate, hwndparent) } } #[inline] -pub unsafe fn OleUIUpdateLinksA(lpoleuilinkcntr: P0, hwndparent: super::super::Foundation::HWND, lpsztitle: P2, clinks: i32) -> super::super::Foundation::BOOL +pub unsafe fn OleUIUpdateLinksA(lpoleuilinkcntr: P0, hwndparent: super::super::Foundation::HWND, lpsztitle: P2, clinks: i32) -> windows_core::BOOL where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("oledlg.dll" "system" fn OleUIUpdateLinksA(lpoleuilinkcntr : * mut core::ffi::c_void, hwndparent : super::super::Foundation:: HWND, lpsztitle : windows_core::PCSTR, clinks : i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("oledlg.dll" "system" fn OleUIUpdateLinksA(lpoleuilinkcntr : * mut core::ffi::c_void, hwndparent : super::super::Foundation:: HWND, lpsztitle : windows_core::PCSTR, clinks : i32) -> windows_core::BOOL); unsafe { OleUIUpdateLinksA(lpoleuilinkcntr.param().abi(), hwndparent, lpsztitle.param().abi(), clinks) } } #[inline] -pub unsafe fn OleUIUpdateLinksW(lpoleuilinkcntr: P0, hwndparent: super::super::Foundation::HWND, lpsztitle: P2, clinks: i32) -> super::super::Foundation::BOOL +pub unsafe fn OleUIUpdateLinksW(lpoleuilinkcntr: P0, hwndparent: super::super::Foundation::HWND, lpsztitle: P2, clinks: i32) -> windows_core::BOOL where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("oledlg.dll" "system" fn OleUIUpdateLinksW(lpoleuilinkcntr : * mut core::ffi::c_void, hwndparent : super::super::Foundation:: HWND, lpsztitle : windows_core::PCWSTR, clinks : i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("oledlg.dll" "system" fn OleUIUpdateLinksW(lpoleuilinkcntr : * mut core::ffi::c_void, hwndparent : super::super::Foundation:: HWND, lpsztitle : windows_core::PCWSTR, clinks : i32) -> windows_core::BOOL); unsafe { OleUIUpdateLinksW(lpoleuilinkcntr.param().abi(), hwndparent, lpsztitle.param().abi(), clinks) } } #[inline] @@ -4283,9 +4283,9 @@ pub struct FONTDESC { pub cySize: super::Com::CY, pub sWeight: i16, pub sCharset: i16, - pub fItalic: super::super::Foundation::BOOL, - pub fUnderline: super::super::Foundation::BOOL, - pub fStrikethrough: super::super::Foundation::BOOL, + pub fItalic: windows_core::BOOL, + pub fUnderline: windows_core::BOOL, + pub fStrikethrough: windows_core::BOOL, } #[cfg(feature = "Win32_System_Com")] impl Default for FONTDESC { @@ -5978,20 +5978,20 @@ impl IDropSource { pub struct IDropSource_Vtbl { pub base__: windows_core::IUnknown_Vtbl, #[cfg(feature = "Win32_System_SystemServices")] - pub QueryContinueDrag: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, super::SystemServices::MODIFIERKEYS_FLAGS) -> windows_core::HRESULT, + pub QueryContinueDrag: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, super::SystemServices::MODIFIERKEYS_FLAGS) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_SystemServices"))] QueryContinueDrag: usize, pub GiveFeedback: unsafe extern "system" fn(*mut core::ffi::c_void, DROPEFFECT) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_SystemServices")] pub trait IDropSource_Impl: windows_core::IUnknownImpl { - fn QueryContinueDrag(&self, fescapepressed: super::super::Foundation::BOOL, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS) -> windows_core::HRESULT; + fn QueryContinueDrag(&self, fescapepressed: windows_core::BOOL, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS) -> windows_core::HRESULT; fn GiveFeedback(&self, dweffect: DROPEFFECT) -> windows_core::HRESULT; } #[cfg(feature = "Win32_System_SystemServices")] impl IDropSource_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn QueryContinueDrag(this: *mut core::ffi::c_void, fescapepressed: super::super::Foundation::BOOL, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS) -> windows_core::HRESULT { + unsafe extern "system" fn QueryContinueDrag(this: *mut core::ffi::c_void, fescapepressed: windows_core::BOOL, grfkeystate: super::SystemServices::MODIFIERKEYS_FLAGS) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDropSource_Impl::QueryContinueDrag(this, core::mem::transmute_copy(&fescapepressed), core::mem::transmute_copy(&grfkeystate)) @@ -6159,7 +6159,7 @@ impl IEnterpriseDropTarget { { unsafe { (windows_core::Interface::vtable(self).SetDropSourceEnterpriseId)(windows_core::Interface::as_raw(self), identity.param().abi()).ok() } } - pub unsafe fn IsEvaluatingEdpPolicy(&self) -> windows_core::Result { + pub unsafe fn IsEvaluatingEdpPolicy(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsEvaluatingEdpPolicy)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6170,11 +6170,11 @@ impl IEnterpriseDropTarget { pub struct IEnterpriseDropTarget_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetDropSourceEnterpriseId: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, - pub IsEvaluatingEdpPolicy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsEvaluatingEdpPolicy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IEnterpriseDropTarget_Impl: windows_core::IUnknownImpl { fn SetDropSourceEnterpriseId(&self, identity: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn IsEvaluatingEdpPolicy(&self) -> windows_core::Result; + fn IsEvaluatingEdpPolicy(&self) -> windows_core::Result; } impl IEnterpriseDropTarget_Vtbl { pub const fn new() -> Self { @@ -6184,7 +6184,7 @@ impl IEnterpriseDropTarget_Vtbl { IEnterpriseDropTarget_Impl::SetDropSourceEnterpriseId(this, core::mem::transmute(&identity)).into() } } - unsafe extern "system" fn IsEvaluatingEdpPolicy(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsEvaluatingEdpPolicy(this: *mut core::ffi::c_void, value: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEnterpriseDropTarget_Impl::IsEvaluatingEdpPolicy(this) { @@ -6556,7 +6556,7 @@ impl IFont { pub unsafe fn SetSize(&self, size: super::Com::CY) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetSize)(windows_core::Interface::as_raw(self), core::mem::transmute(size)).ok() } } - pub unsafe fn Bold(&self) -> windows_core::Result { + pub unsafe fn Bold(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Bold)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6565,7 +6565,7 @@ impl IFont { pub unsafe fn SetBold(&self, bold: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBold)(windows_core::Interface::as_raw(self), bold.into()).ok() } } - pub unsafe fn Italic(&self) -> windows_core::Result { + pub unsafe fn Italic(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Italic)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6574,7 +6574,7 @@ impl IFont { pub unsafe fn SetItalic(&self, italic: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetItalic)(windows_core::Interface::as_raw(self), italic.into()).ok() } } - pub unsafe fn Underline(&self) -> windows_core::Result { + pub unsafe fn Underline(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Underline)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6583,7 +6583,7 @@ impl IFont { pub unsafe fn SetUnderline(&self, underline: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetUnderline)(windows_core::Interface::as_raw(self), underline.into()).ok() } } - pub unsafe fn Strikethrough(&self) -> windows_core::Result { + pub unsafe fn Strikethrough(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Strikethrough)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6662,14 +6662,14 @@ pub struct IFont_Vtbl { pub SetSize: unsafe extern "system" fn(*mut core::ffi::c_void, super::Com::CY) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SetSize: usize, - pub Bold: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetBold: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub Italic: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetItalic: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub Underline: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetUnderline: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub Strikethrough: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetStrikethrough: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Bold: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetBold: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub Italic: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetItalic: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub Underline: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetUnderline: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub Strikethrough: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetStrikethrough: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub Weight: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i16) -> windows_core::HRESULT, pub SetWeight: unsafe extern "system" fn(*mut core::ffi::c_void, i16) -> windows_core::HRESULT, pub Charset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i16) -> windows_core::HRESULT, @@ -6704,14 +6704,14 @@ pub trait IFont_Impl: windows_core::IUnknownImpl { fn SetName(&self, name: &windows_core::BSTR) -> windows_core::Result<()>; fn Size(&self) -> windows_core::Result; fn SetSize(&self, size: &super::Com::CY) -> windows_core::Result<()>; - fn Bold(&self) -> windows_core::Result; - fn SetBold(&self, bold: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn Italic(&self) -> windows_core::Result; - fn SetItalic(&self, italic: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn Underline(&self) -> windows_core::Result; - fn SetUnderline(&self, underline: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn Strikethrough(&self) -> windows_core::Result; - fn SetStrikethrough(&self, strikethrough: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Bold(&self) -> windows_core::Result; + fn SetBold(&self, bold: windows_core::BOOL) -> windows_core::Result<()>; + fn Italic(&self) -> windows_core::Result; + fn SetItalic(&self, italic: windows_core::BOOL) -> windows_core::Result<()>; + fn Underline(&self) -> windows_core::Result; + fn SetUnderline(&self, underline: windows_core::BOOL) -> windows_core::Result<()>; + fn Strikethrough(&self) -> windows_core::Result; + fn SetStrikethrough(&self, strikethrough: windows_core::BOOL) -> windows_core::Result<()>; fn Weight(&self) -> windows_core::Result; fn SetWeight(&self, weight: i16) -> windows_core::Result<()>; fn Charset(&self) -> windows_core::Result; @@ -6764,7 +6764,7 @@ impl IFont_Vtbl { IFont_Impl::SetSize(this, core::mem::transmute(&size)).into() } } - unsafe extern "system" fn Bold(this: *mut core::ffi::c_void, pbold: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Bold(this: *mut core::ffi::c_void, pbold: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFont_Impl::Bold(this) { @@ -6776,13 +6776,13 @@ impl IFont_Vtbl { } } } - unsafe extern "system" fn SetBold(this: *mut core::ffi::c_void, bold: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBold(this: *mut core::ffi::c_void, bold: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFont_Impl::SetBold(this, core::mem::transmute_copy(&bold)).into() } } - unsafe extern "system" fn Italic(this: *mut core::ffi::c_void, pitalic: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Italic(this: *mut core::ffi::c_void, pitalic: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFont_Impl::Italic(this) { @@ -6794,13 +6794,13 @@ impl IFont_Vtbl { } } } - unsafe extern "system" fn SetItalic(this: *mut core::ffi::c_void, italic: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetItalic(this: *mut core::ffi::c_void, italic: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFont_Impl::SetItalic(this, core::mem::transmute_copy(&italic)).into() } } - unsafe extern "system" fn Underline(this: *mut core::ffi::c_void, punderline: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Underline(this: *mut core::ffi::c_void, punderline: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFont_Impl::Underline(this) { @@ -6812,13 +6812,13 @@ impl IFont_Vtbl { } } } - unsafe extern "system" fn SetUnderline(this: *mut core::ffi::c_void, underline: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetUnderline(this: *mut core::ffi::c_void, underline: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFont_Impl::SetUnderline(this, core::mem::transmute_copy(&underline)).into() } } - unsafe extern "system" fn Strikethrough(this: *mut core::ffi::c_void, pstrikethrough: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Strikethrough(this: *mut core::ffi::c_void, pstrikethrough: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFont_Impl::Strikethrough(this) { @@ -6830,7 +6830,7 @@ impl IFont_Vtbl { } } } - unsafe extern "system" fn SetStrikethrough(this: *mut core::ffi::c_void, strikethrough: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetStrikethrough(this: *mut core::ffi::c_void, strikethrough: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFont_Impl::SetStrikethrough(this, core::mem::transmute_copy(&strikethrough)).into() @@ -7417,7 +7417,7 @@ pub struct IOleCache_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] InitCache: usize, #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] - pub SetData: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::Com::FORMATETC, *const super::Com::STGMEDIUM, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetData: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::Com::FORMATETC, *const super::Com::STGMEDIUM, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage")))] SetData: usize, } @@ -7427,7 +7427,7 @@ pub trait IOleCache_Impl: windows_core::IUnknownImpl { fn Uncache(&self, dwconnection: u32) -> windows_core::Result<()>; fn EnumCache(&self) -> windows_core::Result; fn InitCache(&self, pdataobject: windows_core::Ref) -> windows_core::Result<()>; - fn SetData(&self, pformatetc: *const super::Com::FORMATETC, pmedium: *const super::Com::STGMEDIUM, frelease: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetData(&self, pformatetc: *const super::Com::FORMATETC, pmedium: *const super::Com::STGMEDIUM, frelease: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] impl IOleCache_Vtbl { @@ -7468,7 +7468,7 @@ impl IOleCache_Vtbl { IOleCache_Impl::InitCache(this, core::mem::transmute_copy(&pdataobject)).into() } } - unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, pformatetc: *const super::Com::FORMATETC, pmedium: *const super::Com::STGMEDIUM, frelease: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetData(this: *mut core::ffi::c_void, pformatetc: *const super::Com::FORMATETC, pmedium: *const super::Com::STGMEDIUM, frelease: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleCache_Impl::SetData(this, core::mem::transmute_copy(&pformatetc), core::mem::transmute_copy(&pmedium), core::mem::transmute_copy(&frelease)).into() @@ -7636,7 +7636,7 @@ pub struct IOleClientSite_Vtbl { GetMoniker: usize, pub GetContainer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ShowObject: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub OnShowWindow: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnShowWindow: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub RequestNewObjectLayout: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] @@ -7645,7 +7645,7 @@ pub trait IOleClientSite_Impl: windows_core::IUnknownImpl { fn GetMoniker(&self, dwassign: &OLEGETMONIKER, dwwhichmoniker: &OLEWHICHMK) -> windows_core::Result; fn GetContainer(&self) -> windows_core::Result; fn ShowObject(&self) -> windows_core::Result<()>; - fn OnShowWindow(&self, fshow: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnShowWindow(&self, fshow: windows_core::BOOL) -> windows_core::Result<()>; fn RequestNewObjectLayout(&self) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] @@ -7687,7 +7687,7 @@ impl IOleClientSite_Vtbl { IOleClientSite_Impl::ShowObject(this).into() } } - unsafe extern "system" fn OnShowWindow(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnShowWindow(this: *mut core::ffi::c_void, fshow: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleClientSite_Impl::OnShowWindow(this, core::mem::transmute_copy(&fshow)).into() @@ -7790,12 +7790,12 @@ pub struct IOleContainer_Vtbl { pub EnumObjects: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] EnumObjects: usize, - pub LockContainer: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub LockContainer: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait IOleContainer_Impl: IParseDisplayName_Impl { fn EnumObjects(&self, grfflags: &OLECONTF) -> windows_core::Result; - fn LockContainer(&self, flock: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn LockContainer(&self, flock: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl IOleContainer_Vtbl { @@ -7812,7 +7812,7 @@ impl IOleContainer_Vtbl { } } } - unsafe extern "system" fn LockContainer(this: *mut core::ffi::c_void, flock: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn LockContainer(this: *mut core::ffi::c_void, flock: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleContainer_Impl::LockContainer(this, core::mem::transmute_copy(&flock)).into() @@ -7860,14 +7860,14 @@ pub struct IOleControl_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] OnMnemonic: usize, pub OnAmbientPropertyChange: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, - pub FreezeEvents: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub FreezeEvents: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub trait IOleControl_Impl: windows_core::IUnknownImpl { fn GetControlInfo(&self, pci: *mut CONTROLINFO) -> windows_core::Result<()>; fn OnMnemonic(&self, pmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::Result<()>; fn OnAmbientPropertyChange(&self, dispid: i32) -> windows_core::Result<()>; - fn FreezeEvents(&self, bfreeze: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn FreezeEvents(&self, bfreeze: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IOleControl_Vtbl { @@ -7890,7 +7890,7 @@ impl IOleControl_Vtbl { IOleControl_Impl::OnAmbientPropertyChange(this, core::mem::transmute_copy(&dispid)).into() } } - unsafe extern "system" fn FreezeEvents(this: *mut core::ffi::c_void, bfreeze: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn FreezeEvents(this: *mut core::ffi::c_void, bfreeze: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleControl_Impl::FreezeEvents(this, core::mem::transmute_copy(&bfreeze)).into() @@ -7944,7 +7944,7 @@ impl IOleControlSite { pub struct IOleControlSite_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub OnControlInfoChanged: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub LockInPlaceActive: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub LockInPlaceActive: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetExtendedControl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -7954,17 +7954,17 @@ pub struct IOleControlSite_Vtbl { pub TranslateAccelerator: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::UI::WindowsAndMessaging::MSG, KEYMODIFIERS) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] TranslateAccelerator: usize, - pub OnFocus: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnFocus: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub ShowPropertyFrame: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] pub trait IOleControlSite_Impl: windows_core::IUnknownImpl { fn OnControlInfoChanged(&self) -> windows_core::Result<()>; - fn LockInPlaceActive(&self, flock: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn LockInPlaceActive(&self, flock: windows_core::BOOL) -> windows_core::Result<()>; fn GetExtendedControl(&self) -> windows_core::Result; fn TransformCoords(&self, pptlhimetric: *mut super::super::Foundation::POINTL, pptfcontainer: *mut POINTF, dwflags: &XFORMCOORDS) -> windows_core::Result<()>; fn TranslateAccelerator(&self, pmsg: *const super::super::UI::WindowsAndMessaging::MSG, grfmodifiers: KEYMODIFIERS) -> windows_core::Result<()>; - fn OnFocus(&self, fgotfocus: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnFocus(&self, fgotfocus: windows_core::BOOL) -> windows_core::Result<()>; fn ShowPropertyFrame(&self) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] @@ -7976,7 +7976,7 @@ impl IOleControlSite_Vtbl { IOleControlSite_Impl::OnControlInfoChanged(this).into() } } - unsafe extern "system" fn LockInPlaceActive(this: *mut core::ffi::c_void, flock: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn LockInPlaceActive(this: *mut core::ffi::c_void, flock: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleControlSite_Impl::LockInPlaceActive(this, core::mem::transmute_copy(&flock)).into() @@ -8006,7 +8006,7 @@ impl IOleControlSite_Vtbl { IOleControlSite_Impl::TranslateAccelerator(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&grfmodifiers)).into() } } - unsafe extern "system" fn OnFocus(this: *mut core::ffi::c_void, fgotfocus: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnFocus(this: *mut core::ffi::c_void, fgotfocus: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleControlSite_Impl::OnFocus(this, core::mem::transmute_copy(&fgotfocus)).into() @@ -8232,8 +8232,8 @@ pub struct IOleDocumentView_Vtbl { pub SetRect: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT) -> windows_core::HRESULT, pub GetRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::RECT) -> windows_core::HRESULT, pub SetRectComplex: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, *const super::super::Foundation::RECT, *const super::super::Foundation::RECT, *const super::super::Foundation::RECT) -> windows_core::HRESULT, - pub Show: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub UIActivate: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Show: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub UIActivate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub Open: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub CloseView: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -8254,8 +8254,8 @@ pub trait IOleDocumentView_Impl: windows_core::IUnknownImpl { fn SetRect(&self, prcview: *const super::super::Foundation::RECT) -> windows_core::Result<()>; fn GetRect(&self) -> windows_core::Result; fn SetRectComplex(&self, prcview: *const super::super::Foundation::RECT, prchscroll: *const super::super::Foundation::RECT, prcvscroll: *const super::super::Foundation::RECT, prcsizebox: *const super::super::Foundation::RECT) -> windows_core::Result<()>; - fn Show(&self, fshow: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn UIActivate(&self, fuiactivate: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Show(&self, fshow: windows_core::BOOL) -> windows_core::Result<()>; + fn UIActivate(&self, fuiactivate: windows_core::BOOL) -> windows_core::Result<()>; fn Open(&self) -> windows_core::Result<()>; fn CloseView(&self, dwreserved: u32) -> windows_core::Result<()>; fn SaveViewState(&self, pstm: windows_core::Ref) -> windows_core::Result<()>; @@ -8319,13 +8319,13 @@ impl IOleDocumentView_Vtbl { IOleDocumentView_Impl::SetRectComplex(this, core::mem::transmute_copy(&prcview), core::mem::transmute_copy(&prchscroll), core::mem::transmute_copy(&prcvscroll), core::mem::transmute_copy(&prcsizebox)).into() } } - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, fshow: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleDocumentView_Impl::Show(this, core::mem::transmute_copy(&fshow)).into() } } - unsafe extern "system" fn UIActivate(this: *mut core::ffi::c_void, fuiactivate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn UIActivate(this: *mut core::ffi::c_void, fuiactivate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleDocumentView_Impl::UIActivate(this, core::mem::transmute_copy(&fuiactivate)).into() @@ -8426,18 +8426,18 @@ pub struct IOleInPlaceActiveObject_Vtbl { pub TranslateAccelerator: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] TranslateAccelerator: usize, - pub OnFrameWindowActivate: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OnDocWindowActivate: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub ResizeBorder: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub EnableModeless: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnFrameWindowActivate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub OnDocWindowActivate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub ResizeBorder: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub EnableModeless: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub trait IOleInPlaceActiveObject_Impl: IOleWindow_Impl { fn TranslateAccelerator(&self, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG) -> windows_core::Result<()>; - fn OnFrameWindowActivate(&self, factivate: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OnDocWindowActivate(&self, factivate: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn ResizeBorder(&self, prcborder: *const super::super::Foundation::RECT, puiwindow: windows_core::Ref, fframewindow: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn EnableModeless(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnFrameWindowActivate(&self, factivate: windows_core::BOOL) -> windows_core::Result<()>; + fn OnDocWindowActivate(&self, factivate: windows_core::BOOL) -> windows_core::Result<()>; + fn ResizeBorder(&self, prcborder: *const super::super::Foundation::RECT, puiwindow: windows_core::Ref, fframewindow: windows_core::BOOL) -> windows_core::Result<()>; + fn EnableModeless(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IOleInPlaceActiveObject_Vtbl { @@ -8448,25 +8448,25 @@ impl IOleInPlaceActiveObject_Vtbl { IOleInPlaceActiveObject_Impl::TranslateAccelerator(this, core::mem::transmute_copy(&lpmsg)).into() } } - unsafe extern "system" fn OnFrameWindowActivate(this: *mut core::ffi::c_void, factivate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnFrameWindowActivate(this: *mut core::ffi::c_void, factivate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceActiveObject_Impl::OnFrameWindowActivate(this, core::mem::transmute_copy(&factivate)).into() } } - unsafe extern "system" fn OnDocWindowActivate(this: *mut core::ffi::c_void, factivate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnDocWindowActivate(this: *mut core::ffi::c_void, factivate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceActiveObject_Impl::OnDocWindowActivate(this, core::mem::transmute_copy(&factivate)).into() } } - unsafe extern "system" fn ResizeBorder(this: *mut core::ffi::c_void, prcborder: *const super::super::Foundation::RECT, puiwindow: *mut core::ffi::c_void, fframewindow: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ResizeBorder(this: *mut core::ffi::c_void, prcborder: *const super::super::Foundation::RECT, puiwindow: *mut core::ffi::c_void, fframewindow: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceActiveObject_Impl::ResizeBorder(this, core::mem::transmute_copy(&prcborder), core::mem::transmute_copy(&puiwindow), core::mem::transmute_copy(&fframewindow)).into() } } - unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceActiveObject_Impl::EnableModeless(this, core::mem::transmute_copy(&fenable)).into() @@ -8538,7 +8538,7 @@ pub struct IOleInPlaceFrame_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] RemoveMenus: usize, pub SetStatusText: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, - pub EnableModeless: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableModeless: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub TranslateAccelerator: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::UI::WindowsAndMessaging::MSG, u16) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] @@ -8550,7 +8550,7 @@ pub trait IOleInPlaceFrame_Impl: IOleInPlaceUIWindow_Impl { fn SetMenu(&self, hmenushared: super::super::UI::WindowsAndMessaging::HMENU, holemenu: isize, hwndactiveobject: super::super::Foundation::HWND) -> windows_core::Result<()>; fn RemoveMenus(&self, hmenushared: super::super::UI::WindowsAndMessaging::HMENU) -> windows_core::Result<()>; fn SetStatusText(&self, pszstatustext: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn EnableModeless(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EnableModeless(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; fn TranslateAccelerator(&self, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG, wid: u16) -> windows_core::Result<()>; } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -8580,7 +8580,7 @@ impl IOleInPlaceFrame_Vtbl { IOleInPlaceFrame_Impl::SetStatusText(this, core::mem::transmute(&pszstatustext)).into() } } - unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceFrame_Impl::EnableModeless(this, core::mem::transmute_copy(&fenable)).into() @@ -8804,7 +8804,7 @@ pub struct IOleInPlaceSite_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] GetWindowContext: usize, pub Scroll: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::SIZE) -> windows_core::HRESULT, - pub OnUIDeactivate: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnUIDeactivate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub OnInPlaceDeactivate: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub DiscardUndoState: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub DeactivateAndUndo: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -8817,7 +8817,7 @@ pub trait IOleInPlaceSite_Impl: IOleWindow_Impl { fn OnUIActivate(&self) -> windows_core::Result<()>; fn GetWindowContext(&self, ppframe: windows_core::OutRef<'_, IOleInPlaceFrame>, ppdoc: windows_core::OutRef<'_, IOleInPlaceUIWindow>, lprcposrect: *mut super::super::Foundation::RECT, lprccliprect: *mut super::super::Foundation::RECT, lpframeinfo: *mut OLEINPLACEFRAMEINFO) -> windows_core::Result<()>; fn Scroll(&self, scrollextant: &super::super::Foundation::SIZE) -> windows_core::Result<()>; - fn OnUIDeactivate(&self, fundoable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnUIDeactivate(&self, fundoable: windows_core::BOOL) -> windows_core::Result<()>; fn OnInPlaceDeactivate(&self) -> windows_core::Result<()>; fn DiscardUndoState(&self) -> windows_core::Result<()>; fn DeactivateAndUndo(&self) -> windows_core::Result<()>; @@ -8856,7 +8856,7 @@ impl IOleInPlaceSite_Vtbl { IOleInPlaceSite_Impl::Scroll(this, core::mem::transmute(&scrollextant)).into() } } - unsafe extern "system" fn OnUIDeactivate(this: *mut core::ffi::c_void, fundoable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnUIDeactivate(this: *mut core::ffi::c_void, fundoable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSite_Impl::OnUIDeactivate(this, core::mem::transmute_copy(&fundoable)).into() @@ -8915,7 +8915,7 @@ impl core::ops::Deref for IOleInPlaceSiteEx { } windows_core::imp::interface_hierarchy!(IOleInPlaceSiteEx, windows_core::IUnknown, IOleWindow, IOleInPlaceSite); impl IOleInPlaceSiteEx { - pub unsafe fn OnInPlaceActivateEx(&self, pfnoredraw: *mut super::super::Foundation::BOOL, dwflags: u32) -> windows_core::Result<()> { + pub unsafe fn OnInPlaceActivateEx(&self, pfnoredraw: *mut windows_core::BOOL, dwflags: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).OnInPlaceActivateEx)(windows_core::Interface::as_raw(self), pfnoredraw as _, dwflags).ok() } } pub unsafe fn OnInPlaceDeactivateEx(&self, fnoredraw: bool) -> windows_core::Result<()> { @@ -8928,26 +8928,26 @@ impl IOleInPlaceSiteEx { #[repr(C)] pub struct IOleInPlaceSiteEx_Vtbl { pub base__: IOleInPlaceSite_Vtbl, - pub OnInPlaceActivateEx: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, u32) -> windows_core::HRESULT, - pub OnInPlaceDeactivateEx: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnInPlaceActivateEx: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, u32) -> windows_core::HRESULT, + pub OnInPlaceDeactivateEx: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub RequestUIActivate: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub trait IOleInPlaceSiteEx_Impl: IOleInPlaceSite_Impl { - fn OnInPlaceActivateEx(&self, pfnoredraw: *mut super::super::Foundation::BOOL, dwflags: u32) -> windows_core::Result<()>; - fn OnInPlaceDeactivateEx(&self, fnoredraw: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnInPlaceActivateEx(&self, pfnoredraw: *mut windows_core::BOOL, dwflags: u32) -> windows_core::Result<()>; + fn OnInPlaceDeactivateEx(&self, fnoredraw: windows_core::BOOL) -> windows_core::Result<()>; fn RequestUIActivate(&self) -> windows_core::Result<()>; } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IOleInPlaceSiteEx_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnInPlaceActivateEx(this: *mut core::ffi::c_void, pfnoredraw: *mut super::super::Foundation::BOOL, dwflags: u32) -> windows_core::HRESULT { + unsafe extern "system" fn OnInPlaceActivateEx(this: *mut core::ffi::c_void, pfnoredraw: *mut windows_core::BOOL, dwflags: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteEx_Impl::OnInPlaceActivateEx(this, core::mem::transmute_copy(&pfnoredraw), core::mem::transmute_copy(&dwflags)).into() } } - unsafe extern "system" fn OnInPlaceDeactivateEx(this: *mut core::ffi::c_void, fnoredraw: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnInPlaceDeactivateEx(this: *mut core::ffi::c_void, fnoredraw: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteEx_Impl::OnInPlaceDeactivateEx(this, core::mem::transmute_copy(&fnoredraw)).into() @@ -9032,9 +9032,9 @@ pub struct IOleInPlaceSiteWindowless_Vtbl { pub base__: IOleInPlaceSiteEx_Vtbl, pub CanWindowlessActivate: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetCapture: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetCapture: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetCapture: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetFocus: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetFocus: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetFocus: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_Graphics_Gdi")] pub GetDC: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, u32, *mut super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] @@ -9043,9 +9043,9 @@ pub struct IOleInPlaceSiteWindowless_Vtbl { pub ReleaseDC: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Graphics::Gdi::HDC) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] ReleaseDC: usize, - pub InvalidateRect: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub InvalidateRect: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_Graphics_Gdi")] - pub InvalidateRgn: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Graphics::Gdi::HRGN, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub InvalidateRgn: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Graphics::Gdi::HRGN, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] InvalidateRgn: usize, pub ScrollRect: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, *const super::super::Foundation::RECT, *const super::super::Foundation::RECT) -> windows_core::HRESULT, @@ -9056,13 +9056,13 @@ pub struct IOleInPlaceSiteWindowless_Vtbl { pub trait IOleInPlaceSiteWindowless_Impl: IOleInPlaceSiteEx_Impl { fn CanWindowlessActivate(&self) -> windows_core::Result<()>; fn GetCapture(&self) -> windows_core::Result<()>; - fn SetCapture(&self, fcapture: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetCapture(&self, fcapture: windows_core::BOOL) -> windows_core::Result<()>; fn GetFocus(&self) -> windows_core::Result<()>; - fn SetFocus(&self, ffocus: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetFocus(&self, ffocus: windows_core::BOOL) -> windows_core::Result<()>; fn GetDC(&self, prect: *const super::super::Foundation::RECT, grfflags: u32) -> windows_core::Result; fn ReleaseDC(&self, hdc: super::super::Graphics::Gdi::HDC) -> windows_core::Result<()>; - fn InvalidateRect(&self, prect: *const super::super::Foundation::RECT, ferase: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn InvalidateRgn(&self, hrgn: super::super::Graphics::Gdi::HRGN, ferase: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn InvalidateRect(&self, prect: *const super::super::Foundation::RECT, ferase: windows_core::BOOL) -> windows_core::Result<()>; + fn InvalidateRgn(&self, hrgn: super::super::Graphics::Gdi::HRGN, ferase: windows_core::BOOL) -> windows_core::Result<()>; fn ScrollRect(&self, dx: i32, dy: i32, prectscroll: *const super::super::Foundation::RECT, prectclip: *const super::super::Foundation::RECT) -> windows_core::Result<()>; fn AdjustRect(&self, prc: *mut super::super::Foundation::RECT) -> windows_core::Result<()>; fn OnDefWindowMessage(&self, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; @@ -9082,7 +9082,7 @@ impl IOleInPlaceSiteWindowless_Vtbl { IOleInPlaceSiteWindowless_Impl::GetCapture(this).into() } } - unsafe extern "system" fn SetCapture(this: *mut core::ffi::c_void, fcapture: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetCapture(this: *mut core::ffi::c_void, fcapture: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteWindowless_Impl::SetCapture(this, core::mem::transmute_copy(&fcapture)).into() @@ -9094,7 +9094,7 @@ impl IOleInPlaceSiteWindowless_Vtbl { IOleInPlaceSiteWindowless_Impl::GetFocus(this).into() } } - unsafe extern "system" fn SetFocus(this: *mut core::ffi::c_void, ffocus: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetFocus(this: *mut core::ffi::c_void, ffocus: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteWindowless_Impl::SetFocus(this, core::mem::transmute_copy(&ffocus)).into() @@ -9118,13 +9118,13 @@ impl IOleInPlaceSiteWindowless_Vtbl { IOleInPlaceSiteWindowless_Impl::ReleaseDC(this, core::mem::transmute_copy(&hdc)).into() } } - unsafe extern "system" fn InvalidateRect(this: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT, ferase: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn InvalidateRect(this: *mut core::ffi::c_void, prect: *const super::super::Foundation::RECT, ferase: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteWindowless_Impl::InvalidateRect(this, core::mem::transmute_copy(&prect), core::mem::transmute_copy(&ferase)).into() } } - unsafe extern "system" fn InvalidateRgn(this: *mut core::ffi::c_void, hrgn: super::super::Graphics::Gdi::HRGN, ferase: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn InvalidateRgn(this: *mut core::ffi::c_void, hrgn: super::super::Graphics::Gdi::HRGN, ferase: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleInPlaceSiteWindowless_Impl::InvalidateRgn(this, core::mem::transmute_copy(&hrgn), core::mem::transmute_copy(&ferase)).into() @@ -9716,7 +9716,7 @@ pub struct IOleObject_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetMoniker: usize, #[cfg(feature = "Win32_System_Com")] - pub InitFromData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, u32) -> windows_core::HRESULT, + pub InitFromData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, u32) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] InitFromData: usize, #[cfg(feature = "Win32_System_Com")] @@ -9766,7 +9766,7 @@ pub trait IOleObject_Impl: windows_core::IUnknownImpl { fn Close(&self, dwsaveoption: &OLECLOSE) -> windows_core::Result<()>; fn SetMoniker(&self, dwwhichmoniker: &OLEWHICHMK, pmk: windows_core::Ref) -> windows_core::Result<()>; fn GetMoniker(&self, dwassign: &OLEGETMONIKER, dwwhichmoniker: &OLEWHICHMK) -> windows_core::Result; - fn InitFromData(&self, pdataobject: windows_core::Ref, fcreation: super::super::Foundation::BOOL, dwreserved: u32) -> windows_core::Result<()>; + fn InitFromData(&self, pdataobject: windows_core::Ref, fcreation: windows_core::BOOL, dwreserved: u32) -> windows_core::Result<()>; fn GetClipboardData(&self, dwreserved: u32) -> windows_core::Result; fn DoVerb(&self, iverb: i32, lpmsg: *const super::super::UI::WindowsAndMessaging::MSG, pactivesite: windows_core::Ref, lindex: i32, hwndparent: super::super::Foundation::HWND, lprcposrect: *const super::super::Foundation::RECT) -> windows_core::Result<()>; fn EnumVerbs(&self) -> windows_core::Result; @@ -9833,7 +9833,7 @@ impl IOleObject_Vtbl { } } } - unsafe extern "system" fn InitFromData(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void, fcreation: super::super::Foundation::BOOL, dwreserved: u32) -> windows_core::HRESULT { + unsafe extern "system" fn InitFromData(this: *mut core::ffi::c_void, pdataobject: *mut core::ffi::c_void, fcreation: windows_core::BOOL, dwreserved: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleObject_Impl::InitFromData(this, core::mem::transmute_copy(&pdataobject), core::mem::transmute_copy(&fcreation), core::mem::transmute_copy(&dwreserved)).into() @@ -10046,14 +10046,14 @@ impl IOleParentUndoUnit { pub struct IOleParentUndoUnit_Vtbl { pub base__: IOleUndoUnit_Vtbl, pub Open: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Close: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Close: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub Add: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub FindUnit: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetParentState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } pub trait IOleParentUndoUnit_Impl: IOleUndoUnit_Impl { fn Open(&self, ppuu: windows_core::Ref) -> windows_core::Result<()>; - fn Close(&self, ppuu: windows_core::Ref, fcommit: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Close(&self, ppuu: windows_core::Ref, fcommit: windows_core::BOOL) -> windows_core::Result<()>; fn Add(&self, puu: windows_core::Ref) -> windows_core::Result<()>; fn FindUnit(&self, puu: windows_core::Ref) -> windows_core::Result<()>; fn GetParentState(&self) -> windows_core::Result; @@ -10066,7 +10066,7 @@ impl IOleParentUndoUnit_Vtbl { IOleParentUndoUnit_Impl::Open(this, core::mem::transmute_copy(&ppuu)).into() } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void, ppuu: *mut core::ffi::c_void, fcommit: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void, ppuu: *mut core::ffi::c_void, fcommit: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleParentUndoUnit_Impl::Close(this, core::mem::transmute_copy(&ppuu), core::mem::transmute_copy(&fcommit)).into() @@ -10131,7 +10131,7 @@ impl IOleUILinkContainerA { { unsafe { (windows_core::Interface::vtable(self).SetLinkSource)(windows_core::Interface::as_raw(self), dwlink, lpszdisplayname.param().abi(), lenfilename, pcheaten as _, fvalidatesource.into()).ok() } } - pub unsafe fn GetLinkSource(&self, dwlink: u32, lplpszdisplayname: Option<*mut windows_core::PSTR>, lplenfilename: *mut u32, lplpszfulllinktype: Option<*mut windows_core::PSTR>, lplpszshortlinktype: Option<*mut windows_core::PSTR>, lpfsourceavailable: *mut super::super::Foundation::BOOL, lpfisselected: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetLinkSource(&self, dwlink: u32, lplpszdisplayname: Option<*mut windows_core::PSTR>, lplenfilename: *mut u32, lplpszfulllinktype: Option<*mut windows_core::PSTR>, lplpszshortlinktype: Option<*mut windows_core::PSTR>, lpfsourceavailable: *mut windows_core::BOOL, lpfisselected: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetLinkSource)(windows_core::Interface::as_raw(self), dwlink, lplpszdisplayname.unwrap_or(core::mem::zeroed()) as _, lplenfilename as _, lplpszfulllinktype.unwrap_or(core::mem::zeroed()) as _, lplpszshortlinktype.unwrap_or(core::mem::zeroed()) as _, lpfsourceavailable as _, lpfisselected as _).ok() } } pub unsafe fn OpenLinkSource(&self, dwlink: u32) -> windows_core::Result<()> { @@ -10150,20 +10150,20 @@ pub struct IOleUILinkContainerA_Vtbl { pub GetNextLink: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> u32, pub SetLinkUpdateOptions: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, pub GetLinkUpdateOptions: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, - pub SetLinkSource: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCSTR, u32, *mut u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetLinkSource: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::PSTR, *mut u32, *mut windows_core::PSTR, *mut windows_core::PSTR, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetLinkSource: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCSTR, u32, *mut u32, windows_core::BOOL) -> windows_core::HRESULT, + pub GetLinkSource: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::PSTR, *mut u32, *mut windows_core::PSTR, *mut windows_core::PSTR, *mut windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, pub OpenLinkSource: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub UpdateLink: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub UpdateLink: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, pub CancelLink: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, } pub trait IOleUILinkContainerA_Impl: windows_core::IUnknownImpl { fn GetNextLink(&self, dwlink: u32) -> u32; fn SetLinkUpdateOptions(&self, dwlink: u32, dwupdateopt: u32) -> windows_core::Result<()>; fn GetLinkUpdateOptions(&self, dwlink: u32) -> windows_core::Result; - fn SetLinkSource(&self, dwlink: u32, lpszdisplayname: &windows_core::PCSTR, lenfilename: u32, pcheaten: *mut u32, fvalidatesource: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetLinkSource(&self, dwlink: u32, lplpszdisplayname: *mut windows_core::PSTR, lplenfilename: *mut u32, lplpszfulllinktype: *mut windows_core::PSTR, lplpszshortlinktype: *mut windows_core::PSTR, lpfsourceavailable: *mut super::super::Foundation::BOOL, lpfisselected: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetLinkSource(&self, dwlink: u32, lpszdisplayname: &windows_core::PCSTR, lenfilename: u32, pcheaten: *mut u32, fvalidatesource: windows_core::BOOL) -> windows_core::Result<()>; + fn GetLinkSource(&self, dwlink: u32, lplpszdisplayname: *mut windows_core::PSTR, lplenfilename: *mut u32, lplpszfulllinktype: *mut windows_core::PSTR, lplpszshortlinktype: *mut windows_core::PSTR, lpfsourceavailable: *mut windows_core::BOOL, lpfisselected: *mut windows_core::BOOL) -> windows_core::Result<()>; fn OpenLinkSource(&self, dwlink: u32) -> windows_core::Result<()>; - fn UpdateLink(&self, dwlink: u32, ferrormessage: super::super::Foundation::BOOL, freserved: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn UpdateLink(&self, dwlink: u32, ferrormessage: windows_core::BOOL, freserved: windows_core::BOOL) -> windows_core::Result<()>; fn CancelLink(&self, dwlink: u32) -> windows_core::Result<()>; } impl IOleUILinkContainerA_Vtbl { @@ -10192,13 +10192,13 @@ impl IOleUILinkContainerA_Vtbl { } } } - unsafe extern "system" fn SetLinkSource(this: *mut core::ffi::c_void, dwlink: u32, lpszdisplayname: windows_core::PCSTR, lenfilename: u32, pcheaten: *mut u32, fvalidatesource: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetLinkSource(this: *mut core::ffi::c_void, dwlink: u32, lpszdisplayname: windows_core::PCSTR, lenfilename: u32, pcheaten: *mut u32, fvalidatesource: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerA_Impl::SetLinkSource(this, core::mem::transmute_copy(&dwlink), core::mem::transmute(&lpszdisplayname), core::mem::transmute_copy(&lenfilename), core::mem::transmute_copy(&pcheaten), core::mem::transmute_copy(&fvalidatesource)).into() } } - unsafe extern "system" fn GetLinkSource(this: *mut core::ffi::c_void, dwlink: u32, lplpszdisplayname: *mut windows_core::PSTR, lplenfilename: *mut u32, lplpszfulllinktype: *mut windows_core::PSTR, lplpszshortlinktype: *mut windows_core::PSTR, lpfsourceavailable: *mut super::super::Foundation::BOOL, lpfisselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetLinkSource(this: *mut core::ffi::c_void, dwlink: u32, lplpszdisplayname: *mut windows_core::PSTR, lplenfilename: *mut u32, lplpszfulllinktype: *mut windows_core::PSTR, lplpszshortlinktype: *mut windows_core::PSTR, lpfsourceavailable: *mut windows_core::BOOL, lpfisselected: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerA_Impl::GetLinkSource(this, core::mem::transmute_copy(&dwlink), core::mem::transmute_copy(&lplpszdisplayname), core::mem::transmute_copy(&lplenfilename), core::mem::transmute_copy(&lplpszfulllinktype), core::mem::transmute_copy(&lplpszshortlinktype), core::mem::transmute_copy(&lpfsourceavailable), core::mem::transmute_copy(&lpfisselected)).into() @@ -10210,7 +10210,7 @@ impl IOleUILinkContainerA_Vtbl { IOleUILinkContainerA_Impl::OpenLinkSource(this, core::mem::transmute_copy(&dwlink)).into() } } - unsafe extern "system" fn UpdateLink(this: *mut core::ffi::c_void, dwlink: u32, ferrormessage: super::super::Foundation::BOOL, freserved: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn UpdateLink(this: *mut core::ffi::c_void, dwlink: u32, ferrormessage: windows_core::BOOL, freserved: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerA_Impl::UpdateLink(this, core::mem::transmute_copy(&dwlink), core::mem::transmute_copy(&ferrormessage), core::mem::transmute_copy(&freserved)).into() @@ -10260,7 +10260,7 @@ impl IOleUILinkContainerW { { unsafe { (windows_core::Interface::vtable(self).SetLinkSource)(windows_core::Interface::as_raw(self), dwlink, lpszdisplayname.param().abi(), lenfilename, pcheaten as _, fvalidatesource.into()).ok() } } - pub unsafe fn GetLinkSource(&self, dwlink: u32, lplpszdisplayname: Option<*mut windows_core::PWSTR>, lplenfilename: *mut u32, lplpszfulllinktype: Option<*mut windows_core::PWSTR>, lplpszshortlinktype: Option<*mut windows_core::PWSTR>, lpfsourceavailable: *mut super::super::Foundation::BOOL, lpfisselected: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetLinkSource(&self, dwlink: u32, lplpszdisplayname: Option<*mut windows_core::PWSTR>, lplenfilename: *mut u32, lplpszfulllinktype: Option<*mut windows_core::PWSTR>, lplpszshortlinktype: Option<*mut windows_core::PWSTR>, lpfsourceavailable: *mut windows_core::BOOL, lpfisselected: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetLinkSource)(windows_core::Interface::as_raw(self), dwlink, lplpszdisplayname.unwrap_or(core::mem::zeroed()) as _, lplenfilename as _, lplpszfulllinktype.unwrap_or(core::mem::zeroed()) as _, lplpszshortlinktype.unwrap_or(core::mem::zeroed()) as _, lpfsourceavailable as _, lpfisselected as _).ok() } } pub unsafe fn OpenLinkSource(&self, dwlink: u32) -> windows_core::Result<()> { @@ -10279,20 +10279,20 @@ pub struct IOleUILinkContainerW_Vtbl { pub GetNextLink: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> u32, pub SetLinkUpdateOptions: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, pub GetLinkUpdateOptions: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, - pub SetLinkSource: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, u32, *mut u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetLinkSource: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::PWSTR, *mut u32, *mut windows_core::PWSTR, *mut windows_core::PWSTR, *mut super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetLinkSource: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, u32, *mut u32, windows_core::BOOL) -> windows_core::HRESULT, + pub GetLinkSource: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::PWSTR, *mut u32, *mut windows_core::PWSTR, *mut windows_core::PWSTR, *mut windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, pub OpenLinkSource: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub UpdateLink: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub UpdateLink: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, pub CancelLink: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, } pub trait IOleUILinkContainerW_Impl: windows_core::IUnknownImpl { fn GetNextLink(&self, dwlink: u32) -> u32; fn SetLinkUpdateOptions(&self, dwlink: u32, dwupdateopt: u32) -> windows_core::Result<()>; fn GetLinkUpdateOptions(&self, dwlink: u32) -> windows_core::Result; - fn SetLinkSource(&self, dwlink: u32, lpszdisplayname: &windows_core::PCWSTR, lenfilename: u32, pcheaten: *mut u32, fvalidatesource: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetLinkSource(&self, dwlink: u32, lplpszdisplayname: *mut windows_core::PWSTR, lplenfilename: *mut u32, lplpszfulllinktype: *mut windows_core::PWSTR, lplpszshortlinktype: *mut windows_core::PWSTR, lpfsourceavailable: *mut super::super::Foundation::BOOL, lpfisselected: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetLinkSource(&self, dwlink: u32, lpszdisplayname: &windows_core::PCWSTR, lenfilename: u32, pcheaten: *mut u32, fvalidatesource: windows_core::BOOL) -> windows_core::Result<()>; + fn GetLinkSource(&self, dwlink: u32, lplpszdisplayname: *mut windows_core::PWSTR, lplenfilename: *mut u32, lplpszfulllinktype: *mut windows_core::PWSTR, lplpszshortlinktype: *mut windows_core::PWSTR, lpfsourceavailable: *mut windows_core::BOOL, lpfisselected: *mut windows_core::BOOL) -> windows_core::Result<()>; fn OpenLinkSource(&self, dwlink: u32) -> windows_core::Result<()>; - fn UpdateLink(&self, dwlink: u32, ferrormessage: super::super::Foundation::BOOL, freserved: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn UpdateLink(&self, dwlink: u32, ferrormessage: windows_core::BOOL, freserved: windows_core::BOOL) -> windows_core::Result<()>; fn CancelLink(&self, dwlink: u32) -> windows_core::Result<()>; } impl IOleUILinkContainerW_Vtbl { @@ -10321,13 +10321,13 @@ impl IOleUILinkContainerW_Vtbl { } } } - unsafe extern "system" fn SetLinkSource(this: *mut core::ffi::c_void, dwlink: u32, lpszdisplayname: windows_core::PCWSTR, lenfilename: u32, pcheaten: *mut u32, fvalidatesource: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetLinkSource(this: *mut core::ffi::c_void, dwlink: u32, lpszdisplayname: windows_core::PCWSTR, lenfilename: u32, pcheaten: *mut u32, fvalidatesource: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerW_Impl::SetLinkSource(this, core::mem::transmute_copy(&dwlink), core::mem::transmute(&lpszdisplayname), core::mem::transmute_copy(&lenfilename), core::mem::transmute_copy(&pcheaten), core::mem::transmute_copy(&fvalidatesource)).into() } } - unsafe extern "system" fn GetLinkSource(this: *mut core::ffi::c_void, dwlink: u32, lplpszdisplayname: *mut windows_core::PWSTR, lplenfilename: *mut u32, lplpszfulllinktype: *mut windows_core::PWSTR, lplpszshortlinktype: *mut windows_core::PWSTR, lpfsourceavailable: *mut super::super::Foundation::BOOL, lpfisselected: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetLinkSource(this: *mut core::ffi::c_void, dwlink: u32, lplpszdisplayname: *mut windows_core::PWSTR, lplenfilename: *mut u32, lplpszfulllinktype: *mut windows_core::PWSTR, lplpszshortlinktype: *mut windows_core::PWSTR, lpfsourceavailable: *mut windows_core::BOOL, lpfisselected: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerW_Impl::GetLinkSource(this, core::mem::transmute_copy(&dwlink), core::mem::transmute_copy(&lplpszdisplayname), core::mem::transmute_copy(&lplenfilename), core::mem::transmute_copy(&lplpszfulllinktype), core::mem::transmute_copy(&lplpszshortlinktype), core::mem::transmute_copy(&lpfsourceavailable), core::mem::transmute_copy(&lpfisselected)).into() @@ -10339,7 +10339,7 @@ impl IOleUILinkContainerW_Vtbl { IOleUILinkContainerW_Impl::OpenLinkSource(this, core::mem::transmute_copy(&dwlink)).into() } } - unsafe extern "system" fn UpdateLink(this: *mut core::ffi::c_void, dwlink: u32, ferrormessage: super::super::Foundation::BOOL, freserved: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn UpdateLink(this: *mut core::ffi::c_void, dwlink: u32, ferrormessage: windows_core::BOOL, freserved: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUILinkContainerW_Impl::UpdateLink(this, core::mem::transmute_copy(&dwlink), core::mem::transmute_copy(&ferrormessage), core::mem::transmute_copy(&freserved)).into() @@ -10484,14 +10484,14 @@ pub struct IOleUIObjInfoA_Vtbl { pub GetConvertInfo: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::GUID, *mut u16, *mut windows_core::GUID, *mut *mut windows_core::GUID, *mut u32) -> windows_core::HRESULT, pub ConvertObject: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_core::GUID) -> windows_core::HRESULT, pub GetViewInfo: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::super::Foundation::HGLOBAL, *const u32, *const i32) -> windows_core::HRESULT, - pub SetViewInfo: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::HGLOBAL, u32, i32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetViewInfo: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::HGLOBAL, u32, i32, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IOleUIObjInfoA_Impl: windows_core::IUnknownImpl { fn GetObjectInfo(&self, dwobject: u32, lpdwobjsize: *mut u32, lplpszlabel: *mut windows_core::PSTR, lplpsztype: *mut windows_core::PSTR, lplpszshorttype: *mut windows_core::PSTR, lplpszlocation: *mut windows_core::PSTR) -> windows_core::Result<()>; fn GetConvertInfo(&self, dwobject: u32, lpclassid: *mut windows_core::GUID, lpwformat: *mut u16, lpconvertdefaultclassid: *mut windows_core::GUID, lplpclsidexclude: *mut *mut windows_core::GUID, lpcclsidexclude: *mut u32) -> windows_core::Result<()>; fn ConvertObject(&self, dwobject: u32, clsidnew: *const windows_core::GUID) -> windows_core::Result<()>; fn GetViewInfo(&self, dwobject: u32, phmetapict: *const super::super::Foundation::HGLOBAL, pdvaspect: *const u32, pncurrentscale: *const i32) -> windows_core::Result<()>; - fn SetViewInfo(&self, dwobject: u32, hmetapict: super::super::Foundation::HGLOBAL, dvaspect: u32, ncurrentscale: i32, brelativetoorig: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetViewInfo(&self, dwobject: u32, hmetapict: super::super::Foundation::HGLOBAL, dvaspect: u32, ncurrentscale: i32, brelativetoorig: windows_core::BOOL) -> windows_core::Result<()>; } impl IOleUIObjInfoA_Vtbl { pub const fn new() -> Self { @@ -10519,7 +10519,7 @@ impl IOleUIObjInfoA_Vtbl { IOleUIObjInfoA_Impl::GetViewInfo(this, core::mem::transmute_copy(&dwobject), core::mem::transmute_copy(&phmetapict), core::mem::transmute_copy(&pdvaspect), core::mem::transmute_copy(&pncurrentscale)).into() } } - unsafe extern "system" fn SetViewInfo(this: *mut core::ffi::c_void, dwobject: u32, hmetapict: super::super::Foundation::HGLOBAL, dvaspect: u32, ncurrentscale: i32, brelativetoorig: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetViewInfo(this: *mut core::ffi::c_void, dwobject: u32, hmetapict: super::super::Foundation::HGLOBAL, dvaspect: u32, ncurrentscale: i32, brelativetoorig: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUIObjInfoA_Impl::SetViewInfo(this, core::mem::transmute_copy(&dwobject), core::mem::transmute_copy(&hmetapict), core::mem::transmute_copy(&dvaspect), core::mem::transmute_copy(&ncurrentscale), core::mem::transmute_copy(&brelativetoorig)).into() @@ -10565,14 +10565,14 @@ pub struct IOleUIObjInfoW_Vtbl { pub GetConvertInfo: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::GUID, *mut u16, *mut windows_core::GUID, *mut *mut windows_core::GUID, *mut u32) -> windows_core::HRESULT, pub ConvertObject: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_core::GUID) -> windows_core::HRESULT, pub GetViewInfo: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::super::Foundation::HGLOBAL, *const u32, *const i32) -> windows_core::HRESULT, - pub SetViewInfo: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::HGLOBAL, u32, i32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetViewInfo: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::HGLOBAL, u32, i32, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IOleUIObjInfoW_Impl: windows_core::IUnknownImpl { fn GetObjectInfo(&self, dwobject: u32, lpdwobjsize: *mut u32, lplpszlabel: *mut windows_core::PWSTR, lplpsztype: *mut windows_core::PWSTR, lplpszshorttype: *mut windows_core::PWSTR, lplpszlocation: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn GetConvertInfo(&self, dwobject: u32, lpclassid: *mut windows_core::GUID, lpwformat: *mut u16, lpconvertdefaultclassid: *mut windows_core::GUID, lplpclsidexclude: *mut *mut windows_core::GUID, lpcclsidexclude: *mut u32) -> windows_core::Result<()>; fn ConvertObject(&self, dwobject: u32, clsidnew: *const windows_core::GUID) -> windows_core::Result<()>; fn GetViewInfo(&self, dwobject: u32, phmetapict: *const super::super::Foundation::HGLOBAL, pdvaspect: *const u32, pncurrentscale: *const i32) -> windows_core::Result<()>; - fn SetViewInfo(&self, dwobject: u32, hmetapict: super::super::Foundation::HGLOBAL, dvaspect: u32, ncurrentscale: i32, brelativetoorig: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetViewInfo(&self, dwobject: u32, hmetapict: super::super::Foundation::HGLOBAL, dvaspect: u32, ncurrentscale: i32, brelativetoorig: windows_core::BOOL) -> windows_core::Result<()>; } impl IOleUIObjInfoW_Vtbl { pub const fn new() -> Self { @@ -10600,7 +10600,7 @@ impl IOleUIObjInfoW_Vtbl { IOleUIObjInfoW_Impl::GetViewInfo(this, core::mem::transmute_copy(&dwobject), core::mem::transmute_copy(&phmetapict), core::mem::transmute_copy(&pdvaspect), core::mem::transmute_copy(&pncurrentscale)).into() } } - unsafe extern "system" fn SetViewInfo(this: *mut core::ffi::c_void, dwobject: u32, hmetapict: super::super::Foundation::HGLOBAL, dvaspect: u32, ncurrentscale: i32, brelativetoorig: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetViewInfo(this: *mut core::ffi::c_void, dwobject: u32, hmetapict: super::super::Foundation::HGLOBAL, dvaspect: u32, ncurrentscale: i32, brelativetoorig: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUIObjInfoW_Impl::SetViewInfo(this, core::mem::transmute_copy(&dwobject), core::mem::transmute_copy(&hmetapict), core::mem::transmute_copy(&dvaspect), core::mem::transmute_copy(&ncurrentscale), core::mem::transmute_copy(&brelativetoorig)).into() @@ -10697,7 +10697,7 @@ impl IOleUndoManager { pub struct IOleUndoManager_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Open: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Close: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Close: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub Add: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetOpenParentState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub DiscardFrom: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -10707,11 +10707,11 @@ pub struct IOleUndoManager_Vtbl { pub EnumRedoable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetLastUndoDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetLastRedoDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IOleUndoManager_Impl: windows_core::IUnknownImpl { fn Open(&self, ppuu: windows_core::Ref) -> windows_core::Result<()>; - fn Close(&self, ppuu: windows_core::Ref, fcommit: super::super::Foundation::BOOL) -> windows_core::HRESULT; + fn Close(&self, ppuu: windows_core::Ref, fcommit: windows_core::BOOL) -> windows_core::HRESULT; fn Add(&self, puu: windows_core::Ref) -> windows_core::Result<()>; fn GetOpenParentState(&self) -> windows_core::Result; fn DiscardFrom(&self, puu: windows_core::Ref) -> windows_core::Result<()>; @@ -10721,7 +10721,7 @@ pub trait IOleUndoManager_Impl: windows_core::IUnknownImpl { fn EnumRedoable(&self) -> windows_core::Result; fn GetLastUndoDescription(&self) -> windows_core::Result; fn GetLastRedoDescription(&self) -> windows_core::Result; - fn Enable(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Enable(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; } impl IOleUndoManager_Vtbl { pub const fn new() -> Self { @@ -10731,7 +10731,7 @@ impl IOleUndoManager_Vtbl { IOleUndoManager_Impl::Open(this, core::mem::transmute_copy(&ppuu)).into() } } - unsafe extern "system" fn Close(this: *mut core::ffi::c_void, ppuu: *mut core::ffi::c_void, fcommit: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Close(this: *mut core::ffi::c_void, ppuu: *mut core::ffi::c_void, fcommit: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUndoManager_Impl::Close(this, core::mem::transmute_copy(&ppuu), core::mem::transmute_copy(&fcommit)) @@ -10821,7 +10821,7 @@ impl IOleUndoManager_Vtbl { } } } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleUndoManager_Impl::Enable(this, core::mem::transmute_copy(&fenable)).into() @@ -10946,11 +10946,11 @@ impl IOleWindow { pub struct IOleWindow_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetWindow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::HWND) -> windows_core::HRESULT, - pub ContextSensitiveHelp: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ContextSensitiveHelp: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IOleWindow_Impl: windows_core::IUnknownImpl { fn GetWindow(&self) -> windows_core::Result; - fn ContextSensitiveHelp(&self, fentermode: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ContextSensitiveHelp(&self, fentermode: windows_core::BOOL) -> windows_core::Result<()>; } impl IOleWindow_Vtbl { pub const fn new() -> Self { @@ -10966,7 +10966,7 @@ impl IOleWindow_Vtbl { } } } - unsafe extern "system" fn ContextSensitiveHelp(this: *mut core::ffi::c_void, fentermode: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ContextSensitiveHelp(this: *mut core::ffi::c_void, fentermode: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOleWindow_Impl::ContextSensitiveHelp(this, core::mem::transmute_copy(&fentermode)).into() @@ -11169,7 +11169,7 @@ pub struct IPersistPropertyBag_Vtbl { #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] Load: usize, #[cfg(feature = "Win32_System_Com_StructuredStorage")] - pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] Save: usize, } @@ -11177,7 +11177,7 @@ pub struct IPersistPropertyBag_Vtbl { pub trait IPersistPropertyBag_Impl: super::Com::IPersist_Impl { fn InitNew(&self) -> windows_core::Result<()>; fn Load(&self, ppropbag: windows_core::Ref, perrorlog: windows_core::Ref) -> windows_core::Result<()>; - fn Save(&self, ppropbag: windows_core::Ref, fcleardirty: super::super::Foundation::BOOL, fsaveallproperties: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Save(&self, ppropbag: windows_core::Ref, fcleardirty: windows_core::BOOL, fsaveallproperties: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IPersistPropertyBag_Vtbl { @@ -11194,7 +11194,7 @@ impl IPersistPropertyBag_Vtbl { IPersistPropertyBag_Impl::Load(this, core::mem::transmute_copy(&ppropbag), core::mem::transmute_copy(&perrorlog)).into() } } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, ppropbag: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL, fsaveallproperties: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, ppropbag: *mut core::ffi::c_void, fcleardirty: windows_core::BOOL, fsaveallproperties: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistPropertyBag_Impl::Save(this, core::mem::transmute_copy(&ppropbag), core::mem::transmute_copy(&fcleardirty), core::mem::transmute_copy(&fsaveallproperties)).into() @@ -11258,7 +11258,7 @@ pub struct IPersistPropertyBag2_Vtbl { #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] Load: usize, #[cfg(feature = "Win32_System_Com_StructuredStorage")] - pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] Save: usize, pub IsDirty: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -11267,7 +11267,7 @@ pub struct IPersistPropertyBag2_Vtbl { pub trait IPersistPropertyBag2_Impl: super::Com::IPersist_Impl { fn InitNew(&self) -> windows_core::Result<()>; fn Load(&self, ppropbag: windows_core::Ref, perrlog: windows_core::Ref) -> windows_core::Result<()>; - fn Save(&self, ppropbag: windows_core::Ref, fcleardirty: super::super::Foundation::BOOL, fsaveallproperties: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Save(&self, ppropbag: windows_core::Ref, fcleardirty: windows_core::BOOL, fsaveallproperties: windows_core::BOOL) -> windows_core::Result<()>; fn IsDirty(&self) -> windows_core::HRESULT; } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -11285,7 +11285,7 @@ impl IPersistPropertyBag2_Vtbl { IPersistPropertyBag2_Impl::Load(this, core::mem::transmute_copy(&ppropbag), core::mem::transmute_copy(&perrlog)).into() } } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, ppropbag: *mut core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL, fsaveallproperties: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, ppropbag: *mut core::ffi::c_void, fcleardirty: windows_core::BOOL, fsaveallproperties: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPersistPropertyBag2_Impl::Save(this, core::mem::transmute_copy(&ppropbag), core::mem::transmute_copy(&fcleardirty), core::mem::transmute_copy(&fsaveallproperties)).into() @@ -11362,7 +11362,7 @@ impl IPicture { pub unsafe fn SelectPicture(&self, hdcin: super::super::Graphics::Gdi::HDC, phdcout: *mut super::super::Graphics::Gdi::HDC, phbmpout: *mut OLE_HANDLE) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SelectPicture)(windows_core::Interface::as_raw(self), hdcin, phdcout as _, phbmpout as _).ok() } } - pub unsafe fn KeepOriginalFormat(&self) -> windows_core::Result { + pub unsafe fn KeepOriginalFormat(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).KeepOriginalFormat)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -11412,11 +11412,11 @@ pub struct IPicture_Vtbl { pub SelectPicture: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Graphics::Gdi::HDC, *mut super::super::Graphics::Gdi::HDC, *mut OLE_HANDLE) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] SelectPicture: usize, - pub KeepOriginalFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetKeepOriginalFormat: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub KeepOriginalFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetKeepOriginalFormat: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub PictureChanged: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub SaveAsFile: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut i32) -> windows_core::HRESULT, + pub SaveAsFile: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut i32) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SaveAsFile: usize, pub Attributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -11432,10 +11432,10 @@ pub trait IPicture_Impl: windows_core::IUnknownImpl { fn set_hPal(&self, hpal: OLE_HANDLE) -> windows_core::Result<()>; fn CurDC(&self) -> windows_core::Result; fn SelectPicture(&self, hdcin: super::super::Graphics::Gdi::HDC, phdcout: *mut super::super::Graphics::Gdi::HDC, phbmpout: *mut OLE_HANDLE) -> windows_core::Result<()>; - fn KeepOriginalFormat(&self) -> windows_core::Result; - fn SetKeepOriginalFormat(&self, keep: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn KeepOriginalFormat(&self) -> windows_core::Result; + fn SetKeepOriginalFormat(&self, keep: windows_core::BOOL) -> windows_core::Result<()>; fn PictureChanged(&self) -> windows_core::Result<()>; - fn SaveAsFile(&self, pstream: windows_core::Ref, fsavememcopy: super::super::Foundation::BOOL) -> windows_core::Result; + fn SaveAsFile(&self, pstream: windows_core::Ref, fsavememcopy: windows_core::BOOL) -> windows_core::Result; fn Attributes(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] @@ -11531,7 +11531,7 @@ impl IPicture_Vtbl { IPicture_Impl::SelectPicture(this, core::mem::transmute_copy(&hdcin), core::mem::transmute_copy(&phdcout), core::mem::transmute_copy(&phbmpout)).into() } } - unsafe extern "system" fn KeepOriginalFormat(this: *mut core::ffi::c_void, pkeep: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn KeepOriginalFormat(this: *mut core::ffi::c_void, pkeep: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture_Impl::KeepOriginalFormat(this) { @@ -11543,7 +11543,7 @@ impl IPicture_Vtbl { } } } - unsafe extern "system" fn SetKeepOriginalFormat(this: *mut core::ffi::c_void, keep: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetKeepOriginalFormat(this: *mut core::ffi::c_void, keep: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPicture_Impl::SetKeepOriginalFormat(this, core::mem::transmute_copy(&keep)).into() @@ -11555,7 +11555,7 @@ impl IPicture_Vtbl { IPicture_Impl::PictureChanged(this).into() } } - unsafe extern "system" fn SaveAsFile(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, fsavememcopy: super::super::Foundation::BOOL, pcbsize: *mut i32) -> windows_core::HRESULT { + unsafe extern "system" fn SaveAsFile(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, fsavememcopy: windows_core::BOOL, pcbsize: *mut i32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture_Impl::SaveAsFile(this, core::mem::transmute_copy(&pstream), core::mem::transmute_copy(&fsavememcopy)) { @@ -11654,7 +11654,7 @@ impl IPicture2 { pub unsafe fn SelectPicture(&self, hdcin: super::super::Graphics::Gdi::HDC, phdcout: *mut super::super::Graphics::Gdi::HDC, phbmpout: *mut usize) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SelectPicture)(windows_core::Interface::as_raw(self), hdcin, phdcout as _, phbmpout as _).ok() } } - pub unsafe fn KeepOriginalFormat(&self) -> windows_core::Result { + pub unsafe fn KeepOriginalFormat(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).KeepOriginalFormat)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -11704,11 +11704,11 @@ pub struct IPicture2_Vtbl { pub SelectPicture: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Graphics::Gdi::HDC, *mut super::super::Graphics::Gdi::HDC, *mut usize) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] SelectPicture: usize, - pub KeepOriginalFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetKeepOriginalFormat: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub KeepOriginalFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetKeepOriginalFormat: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub PictureChanged: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub SaveAsFile: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut i32) -> windows_core::HRESULT, + pub SaveAsFile: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut i32) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SaveAsFile: usize, pub Attributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -11724,10 +11724,10 @@ pub trait IPicture2_Impl: windows_core::IUnknownImpl { fn set_hPal(&self, hpal: usize) -> windows_core::Result<()>; fn CurDC(&self) -> windows_core::Result; fn SelectPicture(&self, hdcin: super::super::Graphics::Gdi::HDC, phdcout: *mut super::super::Graphics::Gdi::HDC, phbmpout: *mut usize) -> windows_core::Result<()>; - fn KeepOriginalFormat(&self) -> windows_core::Result; - fn SetKeepOriginalFormat(&self, keep: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn KeepOriginalFormat(&self) -> windows_core::Result; + fn SetKeepOriginalFormat(&self, keep: windows_core::BOOL) -> windows_core::Result<()>; fn PictureChanged(&self) -> windows_core::Result<()>; - fn SaveAsFile(&self, pstream: windows_core::Ref, fsavememcopy: super::super::Foundation::BOOL) -> windows_core::Result; + fn SaveAsFile(&self, pstream: windows_core::Ref, fsavememcopy: windows_core::BOOL) -> windows_core::Result; fn Attributes(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] @@ -11823,7 +11823,7 @@ impl IPicture2_Vtbl { IPicture2_Impl::SelectPicture(this, core::mem::transmute_copy(&hdcin), core::mem::transmute_copy(&phdcout), core::mem::transmute_copy(&phbmpout)).into() } } - unsafe extern "system" fn KeepOriginalFormat(this: *mut core::ffi::c_void, pkeep: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn KeepOriginalFormat(this: *mut core::ffi::c_void, pkeep: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture2_Impl::KeepOriginalFormat(this) { @@ -11835,7 +11835,7 @@ impl IPicture2_Vtbl { } } } - unsafe extern "system" fn SetKeepOriginalFormat(this: *mut core::ffi::c_void, keep: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetKeepOriginalFormat(this: *mut core::ffi::c_void, keep: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPicture2_Impl::SetKeepOriginalFormat(this, core::mem::transmute_copy(&keep)).into() @@ -11847,7 +11847,7 @@ impl IPicture2_Vtbl { IPicture2_Impl::PictureChanged(this).into() } } - unsafe extern "system" fn SaveAsFile(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, fsavememcopy: super::super::Foundation::BOOL, pcbsize: *mut i32) -> windows_core::HRESULT { + unsafe extern "system" fn SaveAsFile(this: *mut core::ffi::c_void, pstream: *mut core::ffi::c_void, fsavememcopy: windows_core::BOOL, pcbsize: *mut i32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPicture2_Impl::SaveAsFile(this, core::mem::transmute_copy(&pstream), core::mem::transmute_copy(&fsavememcopy)) { @@ -11945,12 +11945,12 @@ pub struct IPointerInactive_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetActivationPolicy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut POINTERINACTIVE) -> windows_core::HRESULT, pub OnInactiveMouseMove: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, i32, i32, u32) -> windows_core::HRESULT, - pub OnInactiveSetCursor: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, i32, i32, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnInactiveSetCursor: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, i32, i32, u32, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IPointerInactive_Impl: windows_core::IUnknownImpl { fn GetActivationPolicy(&self) -> windows_core::Result; fn OnInactiveMouseMove(&self, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, grfkeystate: u32) -> windows_core::Result<()>; - fn OnInactiveSetCursor(&self, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, dwmousemsg: u32, fsetalways: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnInactiveSetCursor(&self, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, dwmousemsg: u32, fsetalways: windows_core::BOOL) -> windows_core::Result<()>; } impl IPointerInactive_Vtbl { pub const fn new() -> Self { @@ -11972,7 +11972,7 @@ impl IPointerInactive_Vtbl { IPointerInactive_Impl::OnInactiveMouseMove(this, core::mem::transmute_copy(&prectbounds), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&grfkeystate)).into() } } - unsafe extern "system" fn OnInactiveSetCursor(this: *mut core::ffi::c_void, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, dwmousemsg: u32, fsetalways: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnInactiveSetCursor(this: *mut core::ffi::c_void, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, dwmousemsg: u32, fsetalways: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPointerInactive_Impl::OnInactiveSetCursor(this, core::mem::transmute_copy(&prectbounds), core::mem::transmute_copy(&x), core::mem::transmute_copy(&y), core::mem::transmute_copy(&dwmousemsg), core::mem::transmute_copy(&fsetalways)).into() @@ -12150,7 +12150,7 @@ impl IPropertyPage { pub struct IPropertyPage_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetPageSite: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Activate: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *const super::super::Foundation::RECT, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Activate: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *const super::super::Foundation::RECT, windows_core::BOOL) -> windows_core::HRESULT, pub Deactivate: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetPageInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PROPPAGEINFO) -> windows_core::HRESULT, pub SetObjects: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -12167,7 +12167,7 @@ pub struct IPropertyPage_Vtbl { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub trait IPropertyPage_Impl: windows_core::IUnknownImpl { fn SetPageSite(&self, ppagesite: windows_core::Ref) -> windows_core::Result<()>; - fn Activate(&self, hwndparent: super::super::Foundation::HWND, prect: *const super::super::Foundation::RECT, bmodal: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Activate(&self, hwndparent: super::super::Foundation::HWND, prect: *const super::super::Foundation::RECT, bmodal: windows_core::BOOL) -> windows_core::Result<()>; fn Deactivate(&self) -> windows_core::Result<()>; fn GetPageInfo(&self, ppageinfo: *mut PROPPAGEINFO) -> windows_core::Result<()>; fn SetObjects(&self, cobjects: u32, ppunk: *const Option) -> windows_core::Result<()>; @@ -12187,7 +12187,7 @@ impl IPropertyPage_Vtbl { IPropertyPage_Impl::SetPageSite(this, core::mem::transmute_copy(&ppagesite)).into() } } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, prect: *const super::super::Foundation::RECT, bmodal: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, hwndparent: super::super::Foundation::HWND, prect: *const super::super::Foundation::RECT, bmodal: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IPropertyPage_Impl::Activate(this, core::mem::transmute_copy(&hwndparent), core::mem::transmute_copy(&prect), core::mem::transmute_copy(&bmodal)).into() @@ -12404,7 +12404,7 @@ impl windows_core::RuntimeName for IPropertyPageSite {} windows_core::imp::define_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 { + pub unsafe fn AllowFocusChange(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AllowFocusChange)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -12414,14 +12414,14 @@ impl IProtectFocus { #[repr(C)] pub struct IProtectFocus_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub AllowFocusChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AllowFocusChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IProtectFocus_Impl: windows_core::IUnknownImpl { - fn AllowFocusChange(&self) -> windows_core::Result; + fn AllowFocusChange(&self) -> windows_core::Result; } impl IProtectFocus_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn AllowFocusChange(this: *mut core::ffi::c_void, pfallow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AllowFocusChange(this: *mut core::ffi::c_void, pfallow: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProtectFocus_Impl::AllowFocusChange(this) { @@ -12881,7 +12881,7 @@ impl IRecordInfo { pub unsafe fn GetFieldNames(&self, pcnames: *mut u32, rgbstrnames: *mut windows_core::BSTR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetFieldNames)(windows_core::Interface::as_raw(self), pcnames as _, core::mem::transmute(rgbstrnames)).ok() } } - pub unsafe fn IsMatchingType(&self, precordinfo: P0) -> super::super::Foundation::BOOL + pub unsafe fn IsMatchingType(&self, precordinfo: P0) -> windows_core::BOOL where P0: windows_core::Param, { @@ -12927,7 +12927,7 @@ pub struct IRecordInfo_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Variant")))] PutFieldNoCopy: usize, pub GetFieldNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsMatchingType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsMatchingType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::BOOL, pub RecordCreate: unsafe extern "system" fn(*mut core::ffi::c_void) -> *mut core::ffi::c_void, pub RecordCreateCopy: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RecordDestroy: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void) -> windows_core::HRESULT, @@ -12946,7 +12946,7 @@ pub trait IRecordInfo_Impl: windows_core::IUnknownImpl { fn PutField(&self, wflags: u32, pvdata: *mut core::ffi::c_void, szfieldname: &windows_core::PCWSTR, pvarfield: *const super::Variant::VARIANT) -> windows_core::Result<()>; fn PutFieldNoCopy(&self, wflags: u32, pvdata: *mut core::ffi::c_void, szfieldname: &windows_core::PCWSTR, pvarfield: *const super::Variant::VARIANT) -> windows_core::Result<()>; fn GetFieldNames(&self, pcnames: *mut u32, rgbstrnames: *mut windows_core::BSTR) -> windows_core::Result<()>; - fn IsMatchingType(&self, precordinfo: windows_core::Ref) -> super::super::Foundation::BOOL; + fn IsMatchingType(&self, precordinfo: windows_core::Ref) -> windows_core::BOOL; fn RecordCreate(&self) -> *mut core::ffi::c_void; fn RecordCreateCopy(&self, pvsource: *const core::ffi::c_void, ppvdest: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn RecordDestroy(&self, pvrecord: *const core::ffi::c_void) -> windows_core::Result<()>; @@ -13056,7 +13056,7 @@ impl IRecordInfo_Vtbl { IRecordInfo_Impl::GetFieldNames(this, core::mem::transmute_copy(&pcnames), core::mem::transmute_copy(&rgbstrnames)).into() } } - unsafe extern "system" fn IsMatchingType(this: *mut core::ffi::c_void, precordinfo: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsMatchingType(this: *mut core::ffi::c_void, precordinfo: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRecordInfo_Impl::IsMatchingType(this, core::mem::transmute_copy(&precordinfo)) @@ -13900,8 +13900,8 @@ pub const LIBFLAG_FRESTRICTED: LIBFLAGS = LIBFLAGS(1i32); #[derive(Clone, Copy, Debug, PartialEq)] pub struct LICINFO { pub cbLicInfo: i32, - pub fRuntimeKeyAvail: super::super::Foundation::BOOL, - pub fLicVerified: super::super::Foundation::BOOL, + pub fRuntimeKeyAvail: windows_core::BOOL, + pub fLicVerified: windows_core::BOOL, } impl Default for LICINFO { fn default() -> Self { @@ -14414,7 +14414,7 @@ pub const OLEGETMONIKER_UNASSIGN: OLEGETMONIKER = OLEGETMONIKER(3i32); #[derive(Clone, Copy, Debug, PartialEq)] pub struct OLEINPLACEFRAMEINFO { pub cb: u32, - pub fMDIApp: super::super::Foundation::BOOL, + pub fMDIApp: windows_core::BOOL, pub hwndFrame: super::super::Foundation::HWND, pub haccel: super::super::UI::WindowsAndMessaging::HACCEL, pub cAccelEntries: u32, @@ -14648,10 +14648,10 @@ pub struct OLEUICONVERTA { pub clsidNew: windows_core::GUID, pub dvAspect: u32, pub wFormat: u16, - pub fIsLinkedObject: super::super::Foundation::BOOL, + pub fIsLinkedObject: windows_core::BOOL, pub hMetaPict: super::super::Foundation::HGLOBAL, pub lpszUserType: windows_core::PSTR, - pub fObjectsIconChanged: super::super::Foundation::BOOL, + pub fObjectsIconChanged: windows_core::BOOL, pub lpszDefLabel: windows_core::PSTR, pub cClsidExclude: u32, pub lpClsidExclude: *mut windows_core::GUID, @@ -14679,10 +14679,10 @@ pub struct OLEUICONVERTW { pub clsidNew: windows_core::GUID, pub dvAspect: u32, pub wFormat: u16, - pub fIsLinkedObject: super::super::Foundation::BOOL, + pub fIsLinkedObject: windows_core::BOOL, pub hMetaPict: super::super::Foundation::HGLOBAL, pub lpszUserType: windows_core::PWSTR, - pub fObjectsIconChanged: super::super::Foundation::BOOL, + pub fObjectsIconChanged: windows_core::BOOL, pub lpszDefLabel: windows_core::PWSTR, pub cClsidExclude: u32, pub lpClsidExclude: *mut windows_core::GUID, @@ -14966,7 +14966,7 @@ pub struct OLEUIPASTESPECIALA { pub cClsidExclude: u32, pub lpClsidExclude: *mut windows_core::GUID, pub nSelectedIndex: i32, - pub fLink: super::super::Foundation::BOOL, + pub fLink: windows_core::BOOL, pub hMetaPict: super::super::Foundation::HGLOBAL, pub sizel: super::super::Foundation::SIZE, } @@ -14997,7 +14997,7 @@ pub struct OLEUIPASTESPECIALW { pub cClsidExclude: u32, pub lpClsidExclude: *mut windows_core::GUID, pub nSelectedIndex: i32, - pub fLink: super::super::Foundation::BOOL, + pub fLink: windows_core::BOOL, pub hMetaPict: super::super::Foundation::HGLOBAL, pub sizel: super::super::Foundation::SIZE, } @@ -15214,8 +15214,8 @@ impl Default for PAGERANGE { #[derive(Clone, Copy, Debug, PartialEq)] pub struct PAGESET { pub cbStruct: u32, - pub fOddPages: super::super::Foundation::BOOL, - pub fEvenPages: super::super::Foundation::BOOL, + pub fOddPages: windows_core::BOOL, + pub fEvenPages: windows_core::BOOL, pub cPageRange: u32, pub rgPages: [PAGERANGE; 1], } 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 673b4e242e..b7a76e0d25 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ParentalControls/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ParentalControls/mod.rs @@ -194,7 +194,7 @@ impl windows_core::RuntimeName for IWPCProviderSupport {} windows_core::imp::define_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 { + pub unsafe fn IsLoggingRequired(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsLoggingRequired)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -216,18 +216,18 @@ impl IWPCSettings { #[repr(C)] pub struct IWPCSettings_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsLoggingRequired: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsLoggingRequired: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetLastSettingsChangeTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::SYSTEMTIME) -> windows_core::HRESULT, pub GetRestrictions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WPCFLAG_RESTRICTION) -> windows_core::HRESULT, } pub trait IWPCSettings_Impl: windows_core::IUnknownImpl { - fn IsLoggingRequired(&self) -> windows_core::Result; + fn IsLoggingRequired(&self) -> windows_core::Result; fn GetLastSettingsChangeTime(&self) -> windows_core::Result; fn GetRestrictions(&self) -> windows_core::Result; } impl IWPCSettings_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsLoggingRequired(this: *mut core::ffi::c_void, pfrequired: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsLoggingRequired(this: *mut core::ffi::c_void, pfrequired: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWPCSettings_Impl::IsLoggingRequired(this) { @@ -290,7 +290,7 @@ impl IWPCWebSettings { (windows_core::Interface::vtable(self).GetSettings)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn RequestURLOverride(&self, hwnd: Option, pcszurl: P1, ppcszsuburls: Option<&[windows_core::PCWSTR]>) -> windows_core::Result + pub unsafe fn RequestURLOverride(&self, hwnd: Option, pcszurl: P1, ppcszsuburls: Option<&[windows_core::PCWSTR]>) -> windows_core::Result where P1: windows_core::Param, { @@ -304,11 +304,11 @@ impl IWPCWebSettings { pub struct IWPCWebSettings_Vtbl { pub base__: IWPCSettings_Vtbl, pub GetSettings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WPCFLAG_WEB_SETTING) -> windows_core::HRESULT, - pub RequestURLOverride: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, windows_core::PCWSTR, u32, *const windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub RequestURLOverride: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, windows_core::PCWSTR, u32, *const windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWPCWebSettings_Impl: IWPCSettings_Impl { fn GetSettings(&self) -> windows_core::Result; - fn RequestURLOverride(&self, hwnd: super::super::Foundation::HWND, pcszurl: &windows_core::PCWSTR, curls: u32, ppcszsuburls: *const windows_core::PCWSTR) -> windows_core::Result; + fn RequestURLOverride(&self, hwnd: super::super::Foundation::HWND, pcszurl: &windows_core::PCWSTR, curls: u32, ppcszsuburls: *const windows_core::PCWSTR) -> windows_core::Result; } impl IWPCWebSettings_Vtbl { pub const fn new() -> Self { @@ -324,7 +324,7 @@ impl IWPCWebSettings_Vtbl { } } } - unsafe extern "system" fn RequestURLOverride(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pcszurl: windows_core::PCWSTR, curls: u32, ppcszsuburls: *const windows_core::PCWSTR, pfchanged: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RequestURLOverride(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, pcszurl: windows_core::PCWSTR, curls: u32, ppcszsuburls: *const windows_core::PCWSTR, pfchanged: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWPCWebSettings_Impl::RequestURLOverride(this, core::mem::transmute_copy(&hwnd), core::mem::transmute(&pcszurl), core::mem::transmute_copy(&curls), core::mem::transmute_copy(&ppcszsuburls)) { 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 be24c4d32c..0c56b3cce9 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs @@ -32,7 +32,7 @@ pub unsafe fn LoadPerfCounterTextStringsA(lpcommandline: P0, bquietmodearg: where P0: windows_core::Param, { - windows_targets::link!("loadperf.dll" "system" fn LoadPerfCounterTextStringsA(lpcommandline : windows_core::PCSTR, bquietmodearg : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("loadperf.dll" "system" fn LoadPerfCounterTextStringsA(lpcommandline : windows_core::PCSTR, bquietmodearg : windows_core::BOOL) -> u32); unsafe { LoadPerfCounterTextStringsA(lpcommandline.param().abi(), bquietmodearg.into()) } } #[inline] @@ -40,7 +40,7 @@ pub unsafe fn LoadPerfCounterTextStringsW(lpcommandline: P0, bquietmodearg: where P0: windows_core::Param, { - windows_targets::link!("loadperf.dll" "system" fn LoadPerfCounterTextStringsW(lpcommandline : windows_core::PCWSTR, bquietmodearg : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("loadperf.dll" "system" fn LoadPerfCounterTextStringsW(lpcommandline : windows_core::PCWSTR, bquietmodearg : windows_core::BOOL) -> u32); unsafe { LoadPerfCounterTextStringsW(lpcommandline.param().abi(), bquietmodearg.into()) } } #[inline] @@ -264,7 +264,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectsA(szdatasource : windows_core::PCSTR, szmachinename : windows_core::PCSTR, mszobjectlist : windows_core::PSTR, pcchbuffersize : *mut u32, dwdetaillevel : PERF_DETAIL, brefresh : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectsA(szdatasource : windows_core::PCSTR, szmachinename : windows_core::PCSTR, mszobjectlist : windows_core::PSTR, pcchbuffersize : *mut u32, dwdetaillevel : PERF_DETAIL, brefresh : windows_core::BOOL) -> u32); unsafe { PdhEnumObjectsA(szdatasource.param().abi(), szmachinename.param().abi(), mszobjectlist.unwrap_or(core::mem::zeroed()) as _, pcchbuffersize as _, dwdetaillevel, brefresh.into()) } } #[inline] @@ -272,7 +272,7 @@ pub unsafe fn PdhEnumObjectsHA(hdatasource: Option, szmachinename: where P1: windows_core::Param, { - windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectsHA(hdatasource : PDH_HLOG, szmachinename : windows_core::PCSTR, mszobjectlist : windows_core::PSTR, pcchbuffersize : *mut u32, dwdetaillevel : PERF_DETAIL, brefresh : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectsHA(hdatasource : PDH_HLOG, szmachinename : windows_core::PCSTR, mszobjectlist : windows_core::PSTR, pcchbuffersize : *mut u32, dwdetaillevel : PERF_DETAIL, brefresh : windows_core::BOOL) -> u32); unsafe { PdhEnumObjectsHA(hdatasource.unwrap_or(core::mem::zeroed()) as _, szmachinename.param().abi(), mszobjectlist.unwrap_or(core::mem::zeroed()) as _, pcchbuffersize as _, dwdetaillevel, brefresh.into()) } } #[inline] @@ -280,7 +280,7 @@ pub unsafe fn PdhEnumObjectsHW(hdatasource: Option, szmachinename: where P1: windows_core::Param, { - windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectsHW(hdatasource : PDH_HLOG, szmachinename : windows_core::PCWSTR, mszobjectlist : windows_core::PWSTR, pcchbuffersize : *mut u32, dwdetaillevel : PERF_DETAIL, brefresh : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectsHW(hdatasource : PDH_HLOG, szmachinename : windows_core::PCWSTR, mszobjectlist : windows_core::PWSTR, pcchbuffersize : *mut u32, dwdetaillevel : PERF_DETAIL, brefresh : windows_core::BOOL) -> u32); unsafe { PdhEnumObjectsHW(hdatasource.unwrap_or(core::mem::zeroed()) as _, szmachinename.param().abi(), mszobjectlist.unwrap_or(core::mem::zeroed()) as _, pcchbuffersize as _, dwdetaillevel, brefresh.into()) } } #[inline] @@ -289,7 +289,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectsW(szdatasource : windows_core::PCWSTR, szmachinename : windows_core::PCWSTR, mszobjectlist : windows_core::PWSTR, pcchbuffersize : *mut u32, dwdetaillevel : PERF_DETAIL, brefresh : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("pdh.dll" "system" fn PdhEnumObjectsW(szdatasource : windows_core::PCWSTR, szmachinename : windows_core::PCWSTR, mszobjectlist : windows_core::PWSTR, pcchbuffersize : *mut u32, dwdetaillevel : PERF_DETAIL, brefresh : windows_core::BOOL) -> u32); unsafe { PdhEnumObjectsW(szdatasource.param().abi(), szmachinename.param().abi(), mszobjectlist.unwrap_or(core::mem::zeroed()) as _, pcchbuffersize as _, dwdetaillevel, brefresh.into()) } } #[inline] @@ -501,8 +501,8 @@ pub unsafe fn PdhGetRawCounterValue(hcounter: PDH_HCOUNTER, lpdwtype: Option<*mu unsafe { PdhGetRawCounterValue(hcounter, lpdwtype.unwrap_or(core::mem::zeroed()) as _, pvalue as _) } } #[inline] -pub unsafe fn PdhIsRealTimeQuery(hquery: PDH_HQUERY) -> super::super::Foundation::BOOL { - windows_targets::link!("pdh.dll" "system" fn PdhIsRealTimeQuery(hquery : PDH_HQUERY) -> super::super::Foundation:: BOOL); +pub unsafe fn PdhIsRealTimeQuery(hquery: PDH_HQUERY) -> windows_core::BOOL { + windows_targets::link!("pdh.dll" "system" fn PdhIsRealTimeQuery(hquery : PDH_HQUERY) -> windows_core::BOOL); unsafe { PdhIsRealTimeQuery(hquery) } } #[inline] @@ -864,12 +864,12 @@ pub unsafe fn PerfStopProvider(providerhandle: super::super::Foundation::HANDLE) } #[inline] pub unsafe fn QueryPerformanceCounter(lpperformancecount: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn QueryPerformanceCounter(lpperformancecount : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn QueryPerformanceCounter(lpperformancecount : *mut i64) -> windows_core::BOOL); unsafe { QueryPerformanceCounter(lpperformancecount as _).ok() } } #[inline] pub unsafe fn QueryPerformanceFrequency(lpfrequency: *mut i64) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn QueryPerformanceFrequency(lpfrequency : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn QueryPerformanceFrequency(lpfrequency : *mut i64) -> windows_core::BOOL); unsafe { QueryPerformanceFrequency(lpfrequency as _).ok() } } #[inline] @@ -904,7 +904,7 @@ pub unsafe fn UnloadPerfCounterTextStringsA(lpcommandline: P0, bquietmodearg where P0: windows_core::Param, { - windows_targets::link!("loadperf.dll" "system" fn UnloadPerfCounterTextStringsA(lpcommandline : windows_core::PCSTR, bquietmodearg : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("loadperf.dll" "system" fn UnloadPerfCounterTextStringsA(lpcommandline : windows_core::PCSTR, bquietmodearg : windows_core::BOOL) -> u32); unsafe { UnloadPerfCounterTextStringsA(lpcommandline.param().abi(), bquietmodearg.into()) } } #[inline] @@ -912,7 +912,7 @@ pub unsafe fn UnloadPerfCounterTextStringsW(lpcommandline: P0, bquietmodearg where P0: windows_core::Param, { - windows_targets::link!("loadperf.dll" "system" fn UnloadPerfCounterTextStringsW(lpcommandline : windows_core::PCWSTR, bquietmodearg : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("loadperf.dll" "system" fn UnloadPerfCounterTextStringsW(lpcommandline : windows_core::PCWSTR, bquietmodearg : windows_core::BOOL) -> u32); unsafe { UnloadPerfCounterTextStringsW(lpcommandline.param().abi(), bquietmodearg.into()) } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/System/Pipes/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Pipes/mod.rs index 407ca5cf36..546196ab25 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Pipes/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Pipes/mod.rs @@ -3,21 +3,21 @@ pub unsafe fn CallNamedPipeA(lpnamedpipename: P0, lpinbuffer: Option<*const where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CallNamedPipeA(lpnamedpipename : windows_core::PCSTR, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesread : *mut u32, ntimeout : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CallNamedPipeA(lpnamedpipename : windows_core::PCSTR, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesread : *mut u32, ntimeout : u32) -> windows_core::BOOL); unsafe { CallNamedPipeA(lpnamedpipename.param().abi(), lpinbuffer.unwrap_or(core::mem::zeroed()) as _, ninbuffersize, lpoutbuffer.unwrap_or(core::mem::zeroed()) as _, noutbuffersize, lpbytesread as _, ntimeout).ok() } } #[inline] -pub unsafe fn CallNamedPipeW(lpnamedpipename: P0, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesread: *mut u32, ntimeout: u32) -> super::super::Foundation::BOOL +pub unsafe fn CallNamedPipeW(lpnamedpipename: P0, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesread: *mut u32, ntimeout: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CallNamedPipeW(lpnamedpipename : windows_core::PCWSTR, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesread : *mut u32, ntimeout : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CallNamedPipeW(lpnamedpipename : windows_core::PCWSTR, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesread : *mut u32, ntimeout : u32) -> windows_core::BOOL); unsafe { CallNamedPipeW(lpnamedpipename.param().abi(), lpinbuffer.unwrap_or(core::mem::zeroed()) as _, ninbuffersize, lpoutbuffer.unwrap_or(core::mem::zeroed()) as _, noutbuffersize, lpbytesread as _, ntimeout) } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn ConnectNamedPipe(hnamedpipe: super::super::Foundation::HANDLE, lpoverlapped: Option<*mut super::IO::OVERLAPPED>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ConnectNamedPipe(hnamedpipe : super::super::Foundation:: HANDLE, lpoverlapped : *mut super::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ConnectNamedPipe(hnamedpipe : super::super::Foundation:: HANDLE, lpoverlapped : *mut super::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { ConnectNamedPipe(hnamedpipe, lpoverlapped.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(all(feature = "Win32_Security", feature = "Win32_Storage_FileSystem"))] @@ -42,78 +42,78 @@ where #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn CreatePipe(hreadpipe: *mut super::super::Foundation::HANDLE, hwritepipe: *mut super::super::Foundation::HANDLE, lppipeattributes: Option<*const super::super::Security::SECURITY_ATTRIBUTES>, nsize: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn CreatePipe(hreadpipe : *mut super::super::Foundation:: HANDLE, hwritepipe : *mut super::super::Foundation:: HANDLE, lppipeattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, nsize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CreatePipe(hreadpipe : *mut super::super::Foundation:: HANDLE, hwritepipe : *mut super::super::Foundation:: HANDLE, lppipeattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, nsize : u32) -> windows_core::BOOL); unsafe { CreatePipe(hreadpipe as _, hwritepipe as _, lppipeattributes.unwrap_or(core::mem::zeroed()) as _, nsize).ok() } } #[inline] pub unsafe fn DisconnectNamedPipe(hnamedpipe: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn DisconnectNamedPipe(hnamedpipe : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DisconnectNamedPipe(hnamedpipe : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { DisconnectNamedPipe(hnamedpipe).ok() } } #[inline] pub unsafe fn GetNamedPipeClientComputerNameA(pipe: super::super::Foundation::HANDLE, clientcomputername: &mut [u8]) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeClientComputerNameA(pipe : super::super::Foundation:: HANDLE, clientcomputername : windows_core::PSTR, clientcomputernamelength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeClientComputerNameA(pipe : super::super::Foundation:: HANDLE, clientcomputername : windows_core::PSTR, clientcomputernamelength : u32) -> windows_core::BOOL); unsafe { GetNamedPipeClientComputerNameA(pipe, core::mem::transmute(clientcomputername.as_ptr()), clientcomputername.len().try_into().unwrap()).ok() } } #[inline] -pub unsafe fn GetNamedPipeClientComputerNameW(pipe: super::super::Foundation::HANDLE, clientcomputername: windows_core::PWSTR, clientcomputernamelength: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeClientComputerNameW(pipe : super::super::Foundation:: HANDLE, clientcomputername : windows_core::PWSTR, clientcomputernamelength : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetNamedPipeClientComputerNameW(pipe: super::super::Foundation::HANDLE, clientcomputername: windows_core::PWSTR, clientcomputernamelength: u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeClientComputerNameW(pipe : super::super::Foundation:: HANDLE, clientcomputername : windows_core::PWSTR, clientcomputernamelength : u32) -> windows_core::BOOL); unsafe { GetNamedPipeClientComputerNameW(pipe, core::mem::transmute(clientcomputername), clientcomputernamelength) } } #[inline] pub unsafe fn GetNamedPipeClientProcessId(pipe: super::super::Foundation::HANDLE, clientprocessid: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeClientProcessId(pipe : super::super::Foundation:: HANDLE, clientprocessid : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeClientProcessId(pipe : super::super::Foundation:: HANDLE, clientprocessid : *mut u32) -> windows_core::BOOL); unsafe { GetNamedPipeClientProcessId(pipe, clientprocessid as _).ok() } } #[inline] pub unsafe fn GetNamedPipeClientSessionId(pipe: super::super::Foundation::HANDLE, clientsessionid: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeClientSessionId(pipe : super::super::Foundation:: HANDLE, clientsessionid : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeClientSessionId(pipe : super::super::Foundation:: HANDLE, clientsessionid : *mut u32) -> windows_core::BOOL); unsafe { GetNamedPipeClientSessionId(pipe, clientsessionid as _).ok() } } #[inline] pub unsafe fn GetNamedPipeHandleStateA(hnamedpipe: super::super::Foundation::HANDLE, lpstate: Option<*mut NAMED_PIPE_MODE>, lpcurinstances: Option<*mut u32>, lpmaxcollectioncount: Option<*mut u32>, lpcollectdatatimeout: Option<*mut u32>, lpusername: Option<&mut [u8]>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeHandleStateA(hnamedpipe : super::super::Foundation:: HANDLE, lpstate : *mut NAMED_PIPE_MODE, lpcurinstances : *mut u32, lpmaxcollectioncount : *mut u32, lpcollectdatatimeout : *mut u32, lpusername : windows_core::PSTR, nmaxusernamesize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeHandleStateA(hnamedpipe : super::super::Foundation:: HANDLE, lpstate : *mut NAMED_PIPE_MODE, lpcurinstances : *mut u32, lpmaxcollectioncount : *mut u32, lpcollectdatatimeout : *mut u32, lpusername : windows_core::PSTR, nmaxusernamesize : u32) -> windows_core::BOOL); unsafe { GetNamedPipeHandleStateA(hnamedpipe, lpstate.unwrap_or(core::mem::zeroed()) as _, lpcurinstances.unwrap_or(core::mem::zeroed()) as _, lpmaxcollectioncount.unwrap_or(core::mem::zeroed()) as _, lpcollectdatatimeout.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(lpusername.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpusername.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } } #[inline] -pub unsafe fn GetNamedPipeHandleStateW(hnamedpipe: super::super::Foundation::HANDLE, lpstate: Option<*mut NAMED_PIPE_MODE>, lpcurinstances: Option<*mut u32>, lpmaxcollectioncount: Option<*mut u32>, lpcollectdatatimeout: Option<*mut u32>, lpusername: Option<&mut [u16]>) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeHandleStateW(hnamedpipe : super::super::Foundation:: HANDLE, lpstate : *mut NAMED_PIPE_MODE, lpcurinstances : *mut u32, lpmaxcollectioncount : *mut u32, lpcollectdatatimeout : *mut u32, lpusername : windows_core::PWSTR, nmaxusernamesize : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetNamedPipeHandleStateW(hnamedpipe: super::super::Foundation::HANDLE, lpstate: Option<*mut NAMED_PIPE_MODE>, lpcurinstances: Option<*mut u32>, lpmaxcollectioncount: Option<*mut u32>, lpcollectdatatimeout: Option<*mut u32>, lpusername: Option<&mut [u16]>) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeHandleStateW(hnamedpipe : super::super::Foundation:: HANDLE, lpstate : *mut NAMED_PIPE_MODE, lpcurinstances : *mut u32, lpmaxcollectioncount : *mut u32, lpcollectdatatimeout : *mut u32, lpusername : windows_core::PWSTR, nmaxusernamesize : u32) -> windows_core::BOOL); unsafe { GetNamedPipeHandleStateW(hnamedpipe, lpstate.unwrap_or(core::mem::zeroed()) as _, lpcurinstances.unwrap_or(core::mem::zeroed()) as _, lpmaxcollectioncount.unwrap_or(core::mem::zeroed()) as _, lpcollectdatatimeout.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(lpusername.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpusername.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } } #[inline] pub unsafe fn GetNamedPipeInfo(hnamedpipe: super::super::Foundation::HANDLE, lpflags: Option<*mut NAMED_PIPE_MODE>, lpoutbuffersize: Option<*mut u32>, lpinbuffersize: Option<*mut u32>, lpmaxinstances: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeInfo(hnamedpipe : super::super::Foundation:: HANDLE, lpflags : *mut NAMED_PIPE_MODE, lpoutbuffersize : *mut u32, lpinbuffersize : *mut u32, lpmaxinstances : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeInfo(hnamedpipe : super::super::Foundation:: HANDLE, lpflags : *mut NAMED_PIPE_MODE, lpoutbuffersize : *mut u32, lpinbuffersize : *mut u32, lpmaxinstances : *mut u32) -> windows_core::BOOL); unsafe { GetNamedPipeInfo(hnamedpipe, lpflags.unwrap_or(core::mem::zeroed()) as _, lpoutbuffersize.unwrap_or(core::mem::zeroed()) as _, lpinbuffersize.unwrap_or(core::mem::zeroed()) as _, lpmaxinstances.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn GetNamedPipeServerProcessId(pipe: super::super::Foundation::HANDLE, serverprocessid: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeServerProcessId(pipe : super::super::Foundation:: HANDLE, serverprocessid : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeServerProcessId(pipe : super::super::Foundation:: HANDLE, serverprocessid : *mut u32) -> windows_core::BOOL); unsafe { GetNamedPipeServerProcessId(pipe, serverprocessid as _).ok() } } #[inline] pub unsafe fn GetNamedPipeServerSessionId(pipe: super::super::Foundation::HANDLE, serversessionid: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeServerSessionId(pipe : super::super::Foundation:: HANDLE, serversessionid : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNamedPipeServerSessionId(pipe : super::super::Foundation:: HANDLE, serversessionid : *mut u32) -> windows_core::BOOL); unsafe { GetNamedPipeServerSessionId(pipe, serversessionid as _).ok() } } #[inline] pub unsafe fn ImpersonateNamedPipeClient(hnamedpipe: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ImpersonateNamedPipeClient(hnamedpipe : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ImpersonateNamedPipeClient(hnamedpipe : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { ImpersonateNamedPipeClient(hnamedpipe).ok() } } #[inline] pub unsafe fn PeekNamedPipe(hnamedpipe: super::super::Foundation::HANDLE, lpbuffer: Option<*mut core::ffi::c_void>, nbuffersize: u32, lpbytesread: Option<*mut u32>, lptotalbytesavail: Option<*mut u32>, lpbytesleftthismessage: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn PeekNamedPipe(hnamedpipe : super::super::Foundation:: HANDLE, lpbuffer : *mut core::ffi::c_void, nbuffersize : u32, lpbytesread : *mut u32, lptotalbytesavail : *mut u32, lpbytesleftthismessage : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn PeekNamedPipe(hnamedpipe : super::super::Foundation:: HANDLE, lpbuffer : *mut core::ffi::c_void, nbuffersize : u32, lpbytesread : *mut u32, lptotalbytesavail : *mut u32, lpbytesleftthismessage : *mut u32) -> windows_core::BOOL); unsafe { PeekNamedPipe(hnamedpipe, lpbuffer.unwrap_or(core::mem::zeroed()) as _, nbuffersize, lpbytesread.unwrap_or(core::mem::zeroed()) as _, lptotalbytesavail.unwrap_or(core::mem::zeroed()) as _, lpbytesleftthismessage.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetNamedPipeHandleState(hnamedpipe: super::super::Foundation::HANDLE, lpmode: Option<*const NAMED_PIPE_MODE>, lpmaxcollectioncount: Option<*const u32>, lpcollectdatatimeout: Option<*const u32>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetNamedPipeHandleState(hnamedpipe : super::super::Foundation:: HANDLE, lpmode : *const NAMED_PIPE_MODE, lpmaxcollectioncount : *const u32, lpcollectdatatimeout : *const u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetNamedPipeHandleState(hnamedpipe : super::super::Foundation:: HANDLE, lpmode : *const NAMED_PIPE_MODE, lpmaxcollectioncount : *const u32, lpcollectdatatimeout : *const u32) -> windows_core::BOOL); unsafe { SetNamedPipeHandleState(hnamedpipe, lpmode.unwrap_or(core::mem::zeroed()) as _, lpmaxcollectioncount.unwrap_or(core::mem::zeroed()) as _, lpcollectdatatimeout.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn TransactNamedPipe(hnamedpipe: super::super::Foundation::HANDLE, lpinbuffer: Option<*const core::ffi::c_void>, ninbuffersize: u32, lpoutbuffer: Option<*mut core::ffi::c_void>, noutbuffersize: u32, lpbytesread: *mut u32, lpoverlapped: Option<*mut super::IO::OVERLAPPED>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn TransactNamedPipe(hnamedpipe : super::super::Foundation:: HANDLE, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesread : *mut u32, lpoverlapped : *mut super::IO:: OVERLAPPED) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn TransactNamedPipe(hnamedpipe : super::super::Foundation:: HANDLE, lpinbuffer : *const core::ffi::c_void, ninbuffersize : u32, lpoutbuffer : *mut core::ffi::c_void, noutbuffersize : u32, lpbytesread : *mut u32, lpoverlapped : *mut super::IO:: OVERLAPPED) -> windows_core::BOOL); unsafe { TransactNamedPipe(hnamedpipe, lpinbuffer.unwrap_or(core::mem::zeroed()) as _, ninbuffersize, lpoutbuffer.unwrap_or(core::mem::zeroed()) as _, noutbuffersize, lpbytesread as _, lpoverlapped.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -121,15 +121,15 @@ pub unsafe fn WaitNamedPipeA(lpnamedpipename: P0, ntimeout: u32) -> windows_ where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn WaitNamedPipeA(lpnamedpipename : windows_core::PCSTR, ntimeout : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WaitNamedPipeA(lpnamedpipename : windows_core::PCSTR, ntimeout : u32) -> windows_core::BOOL); unsafe { WaitNamedPipeA(lpnamedpipename.param().abi(), ntimeout).ok() } } #[inline] -pub unsafe fn WaitNamedPipeW(lpnamedpipename: P0, ntimeout: u32) -> super::super::Foundation::BOOL +pub unsafe fn WaitNamedPipeW(lpnamedpipename: P0, ntimeout: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn WaitNamedPipeW(lpnamedpipename : windows_core::PCWSTR, ntimeout : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WaitNamedPipeW(lpnamedpipename : windows_core::PCWSTR, ntimeout : u32) -> windows_core::BOOL); unsafe { WaitNamedPipeW(lpnamedpipename.param().abi(), ntimeout) } } #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Power/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Power/mod.rs index ab744852fc..c14685bcb3 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Power/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Power/mod.rs @@ -52,8 +52,8 @@ pub unsafe fn GetCurrentPowerPolicies(pglobalpowerpolicy: *mut GLOBAL_POWER_POLI unsafe { GetCurrentPowerPolicies(pglobalpowerpolicy as _, ppowerpolicy as _) } } #[inline] -pub unsafe fn GetDevicePowerState(hdevice: super::super::Foundation::HANDLE, pfon: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetDevicePowerState(hdevice : super::super::Foundation:: HANDLE, pfon : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn GetDevicePowerState(hdevice: super::super::Foundation::HANDLE, pfon: *mut windows_core::BOOL) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetDevicePowerState(hdevice : super::super::Foundation:: HANDLE, pfon : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { GetDevicePowerState(hdevice, pfon as _) } } #[inline] @@ -68,7 +68,7 @@ pub unsafe fn GetPwrDiskSpindownRange(puimax: *mut u32, puimin: *mut u32) -> boo } #[inline] pub unsafe fn GetSystemPowerStatus(lpsystempowerstatus: *mut SYSTEM_POWER_STATUS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetSystemPowerStatus(lpsystempowerstatus : *mut SYSTEM_POWER_STATUS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetSystemPowerStatus(lpsystempowerstatus : *mut SYSTEM_POWER_STATUS) -> windows_core::BOOL); unsafe { GetSystemPowerStatus(lpsystempowerstatus as _).ok() } } #[inline] @@ -92,8 +92,8 @@ pub unsafe fn IsPwrSuspendAllowed() -> bool { unsafe { IsPwrSuspendAllowed() } } #[inline] -pub unsafe fn IsSystemResumeAutomatic() -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn IsSystemResumeAutomatic() -> super::super::Foundation:: BOOL); +pub unsafe fn IsSystemResumeAutomatic() -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn IsSystemResumeAutomatic() -> windows_core::BOOL); unsafe { IsSystemResumeAutomatic() } } #[inline] @@ -103,7 +103,7 @@ pub unsafe fn PowerCanRestoreIndividualDefaultPowerScheme(schemeguid: *const win } #[inline] pub unsafe fn PowerClearRequest(powerrequest: super::super::Foundation::HANDLE, requesttype: POWER_REQUEST_TYPE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn PowerClearRequest(powerrequest : super::super::Foundation:: HANDLE, requesttype : POWER_REQUEST_TYPE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn PowerClearRequest(powerrequest : super::super::Foundation:: HANDLE, requesttype : POWER_REQUEST_TYPE) -> windows_core::BOOL); unsafe { PowerClearRequest(powerrequest, requesttype).ok() } } #[cfg(feature = "Win32_System_Registry")] @@ -176,13 +176,13 @@ pub unsafe fn PowerIsSettingRangeDefined(subkeyguid: Option<*const windows_core: #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerOpenSystemPowerKey(phsystempowerkey: *mut super::Registry::HKEY, access: u32, openexisting: bool) -> u32 { - windows_targets::link!("powrprof.dll" "system" fn PowerOpenSystemPowerKey(phsystempowerkey : *mut super::Registry:: HKEY, access : u32, openexisting : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("powrprof.dll" "system" fn PowerOpenSystemPowerKey(phsystempowerkey : *mut super::Registry:: HKEY, access : u32, openexisting : windows_core::BOOL) -> u32); unsafe { PowerOpenSystemPowerKey(phsystempowerkey as _, access, openexisting.into()) } } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn PowerOpenUserPowerKey(phuserpowerkey: *mut super::Registry::HKEY, access: u32, openexisting: bool) -> u32 { - windows_targets::link!("powrprof.dll" "system" fn PowerOpenUserPowerKey(phuserpowerkey : *mut super::Registry:: HKEY, access : u32, openexisting : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("powrprof.dll" "system" fn PowerOpenUserPowerKey(phuserpowerkey : *mut super::Registry:: HKEY, access : u32, openexisting : windows_core::BOOL) -> u32); unsafe { PowerOpenUserPowerKey(phuserpowerkey as _, access, openexisting.into()) } } #[cfg(feature = "Win32_System_Registry")] @@ -330,7 +330,7 @@ pub unsafe fn PowerSetActiveScheme(userrootpowerkey: Option windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn PowerSetRequest(powerrequest : super::super::Foundation:: HANDLE, requesttype : POWER_REQUEST_TYPE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn PowerSetRequest(powerrequest : super::super::Foundation:: HANDLE, requesttype : POWER_REQUEST_TYPE) -> windows_core::BOOL); unsafe { PowerSetRequest(powerrequest, requesttype).ok() } } #[inline] @@ -484,8 +484,8 @@ pub unsafe fn RegisterSuspendResumeNotification(hrecipient: super::super::Founda (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] -pub unsafe fn RequestWakeupLatency(latency: LATENCY_TIME) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn RequestWakeupLatency(latency : LATENCY_TIME) -> super::super::Foundation:: BOOL); +pub unsafe fn RequestWakeupLatency(latency: LATENCY_TIME) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn RequestWakeupLatency(latency : LATENCY_TIME) -> windows_core::BOOL); unsafe { RequestWakeupLatency(latency) } } #[inline] @@ -500,7 +500,7 @@ pub unsafe fn SetSuspendState(bhibernate: bool, bforce: bool, bwakeupeventsdisab } #[inline] pub unsafe fn SetSystemPowerState(fsuspend: bool, fforce: bool) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetSystemPowerState(fsuspend : super::super::Foundation:: BOOL, fforce : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetSystemPowerState(fsuspend : windows_core::BOOL, fforce : windows_core::BOOL) -> windows_core::BOOL); unsafe { SetSystemPowerState(fsuspend.into(), fforce.into()).ok() } } #[inline] @@ -510,12 +510,12 @@ pub unsafe fn SetThreadExecutionState(esflags: EXECUTION_STATE) -> EXECUTION_STA } #[inline] pub unsafe fn UnregisterPowerSettingNotification(handle: HPOWERNOTIFY) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn UnregisterPowerSettingNotification(handle : HPOWERNOTIFY) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn UnregisterPowerSettingNotification(handle : HPOWERNOTIFY) -> windows_core::BOOL); unsafe { UnregisterPowerSettingNotification(handle).ok() } } #[inline] pub unsafe fn UnregisterSuspendResumeNotification(handle: HPOWERNOTIFY) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn UnregisterSuspendResumeNotification(handle : HPOWERNOTIFY) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn UnregisterSuspendResumeNotification(handle : HPOWERNOTIFY) -> windows_core::BOOL); unsafe { UnregisterSuspendResumeNotification(handle).ok() } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/System/ProcessStatus/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ProcessStatus/mod.rs index 3b78f51d63..82b6e86ba6 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ProcessStatus/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ProcessStatus/mod.rs @@ -1,36 +1,36 @@ #[inline] pub unsafe fn EmptyWorkingSet(hprocess: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("psapi.dll" "system" fn EmptyWorkingSet(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("psapi.dll" "system" fn EmptyWorkingSet(hprocess : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { EmptyWorkingSet(hprocess).ok() } } #[inline] pub unsafe fn EnumDeviceDrivers(lpimagebase: *mut *mut core::ffi::c_void, cb: u32, lpcbneeded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("psapi.dll" "system" fn EnumDeviceDrivers(lpimagebase : *mut *mut core::ffi::c_void, cb : u32, lpcbneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("psapi.dll" "system" fn EnumDeviceDrivers(lpimagebase : *mut *mut core::ffi::c_void, cb : u32, lpcbneeded : *mut u32) -> windows_core::BOOL); unsafe { EnumDeviceDrivers(lpimagebase as _, cb, lpcbneeded as _).ok() } } #[inline] pub unsafe fn EnumPageFilesA(pcallbackroutine: PENUM_PAGE_FILE_CALLBACKA, pcontext: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("psapi.dll" "system" fn EnumPageFilesA(pcallbackroutine : PENUM_PAGE_FILE_CALLBACKA, pcontext : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("psapi.dll" "system" fn EnumPageFilesA(pcallbackroutine : PENUM_PAGE_FILE_CALLBACKA, pcontext : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { EnumPageFilesA(pcallbackroutine, pcontext as _).ok() } } #[inline] pub unsafe fn EnumPageFilesW(pcallbackroutine: PENUM_PAGE_FILE_CALLBACKW, pcontext: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("psapi.dll" "system" fn EnumPageFilesW(pcallbackroutine : PENUM_PAGE_FILE_CALLBACKW, pcontext : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("psapi.dll" "system" fn EnumPageFilesW(pcallbackroutine : PENUM_PAGE_FILE_CALLBACKW, pcontext : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { EnumPageFilesW(pcallbackroutine, pcontext as _).ok() } } #[inline] pub unsafe fn EnumProcessModules(hprocess: super::super::Foundation::HANDLE, lphmodule: *mut super::super::Foundation::HMODULE, cb: u32, lpcbneeded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("psapi.dll" "system" fn EnumProcessModules(hprocess : super::super::Foundation:: HANDLE, lphmodule : *mut super::super::Foundation:: HMODULE, cb : u32, lpcbneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("psapi.dll" "system" fn EnumProcessModules(hprocess : super::super::Foundation:: HANDLE, lphmodule : *mut super::super::Foundation:: HMODULE, cb : u32, lpcbneeded : *mut u32) -> windows_core::BOOL); unsafe { EnumProcessModules(hprocess, lphmodule as _, cb, lpcbneeded as _).ok() } } #[inline] pub unsafe fn EnumProcessModulesEx(hprocess: super::super::Foundation::HANDLE, lphmodule: *mut super::super::Foundation::HMODULE, cb: u32, lpcbneeded: *mut u32, dwfilterflag: ENUM_PROCESS_MODULES_EX_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("psapi.dll" "system" fn EnumProcessModulesEx(hprocess : super::super::Foundation:: HANDLE, lphmodule : *mut super::super::Foundation:: HMODULE, cb : u32, lpcbneeded : *mut u32, dwfilterflag : ENUM_PROCESS_MODULES_EX_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("psapi.dll" "system" fn EnumProcessModulesEx(hprocess : super::super::Foundation:: HANDLE, lphmodule : *mut super::super::Foundation:: HMODULE, cb : u32, lpcbneeded : *mut u32, dwfilterflag : ENUM_PROCESS_MODULES_EX_FLAGS) -> windows_core::BOOL); unsafe { EnumProcessModulesEx(hprocess, lphmodule as _, cb, lpcbneeded as _, dwfilterflag).ok() } } #[inline] pub unsafe fn EnumProcesses(lpidprocess: *mut u32, cb: u32, lpcbneeded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("psapi.dll" "system" fn EnumProcesses(lpidprocess : *mut u32, cb : u32, lpcbneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("psapi.dll" "system" fn EnumProcesses(lpidprocess : *mut u32, cb : u32, lpcbneeded : *mut u32) -> windows_core::BOOL); unsafe { EnumProcesses(lpidprocess as _, cb, lpcbneeded as _).ok() } } #[inline] @@ -85,12 +85,12 @@ pub unsafe fn GetModuleFileNameExW(hprocess: Option windows_core::Result<()> { - windows_targets::link!("psapi.dll" "system" fn GetModuleInformation(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpmodinfo : *mut MODULEINFO, cb : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("psapi.dll" "system" fn GetModuleInformation(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpmodinfo : *mut MODULEINFO, cb : u32) -> windows_core::BOOL); unsafe { GetModuleInformation(hprocess, hmodule, lpmodinfo as _, cb).ok() } } #[inline] pub unsafe fn GetPerformanceInfo(pperformanceinformation: *mut PERFORMANCE_INFORMATION, cb: u32) -> windows_core::Result<()> { - windows_targets::link!("psapi.dll" "system" fn GetPerformanceInfo(pperformanceinformation : *mut PERFORMANCE_INFORMATION, cb : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("psapi.dll" "system" fn GetPerformanceInfo(pperformanceinformation : *mut PERFORMANCE_INFORMATION, cb : u32) -> windows_core::BOOL); unsafe { GetPerformanceInfo(pperformanceinformation as _, cb).ok() } } #[inline] @@ -105,57 +105,57 @@ pub unsafe fn GetProcessImageFileNameW(hprocess: super::super::Foundation::HANDL } #[inline] pub unsafe fn GetProcessMemoryInfo(process: super::super::Foundation::HANDLE, ppsmemcounters: *mut PROCESS_MEMORY_COUNTERS, cb: u32) -> windows_core::Result<()> { - windows_targets::link!("psapi.dll" "system" fn GetProcessMemoryInfo(process : super::super::Foundation:: HANDLE, ppsmemcounters : *mut PROCESS_MEMORY_COUNTERS, cb : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("psapi.dll" "system" fn GetProcessMemoryInfo(process : super::super::Foundation:: HANDLE, ppsmemcounters : *mut PROCESS_MEMORY_COUNTERS, cb : u32) -> windows_core::BOOL); unsafe { GetProcessMemoryInfo(process, ppsmemcounters as _, cb).ok() } } #[inline] pub unsafe fn GetWsChanges(hprocess: super::super::Foundation::HANDLE, lpwatchinfo: *mut PSAPI_WS_WATCH_INFORMATION, cb: u32) -> windows_core::Result<()> { - windows_targets::link!("psapi.dll" "system" fn GetWsChanges(hprocess : super::super::Foundation:: HANDLE, lpwatchinfo : *mut PSAPI_WS_WATCH_INFORMATION, cb : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("psapi.dll" "system" fn GetWsChanges(hprocess : super::super::Foundation:: HANDLE, lpwatchinfo : *mut PSAPI_WS_WATCH_INFORMATION, cb : u32) -> windows_core::BOOL); unsafe { GetWsChanges(hprocess, lpwatchinfo as _, cb).ok() } } #[inline] pub unsafe fn GetWsChangesEx(hprocess: super::super::Foundation::HANDLE, lpwatchinfoex: *mut PSAPI_WS_WATCH_INFORMATION_EX, cb: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("psapi.dll" "system" fn GetWsChangesEx(hprocess : super::super::Foundation:: HANDLE, lpwatchinfoex : *mut PSAPI_WS_WATCH_INFORMATION_EX, cb : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("psapi.dll" "system" fn GetWsChangesEx(hprocess : super::super::Foundation:: HANDLE, lpwatchinfoex : *mut PSAPI_WS_WATCH_INFORMATION_EX, cb : *mut u32) -> windows_core::BOOL); unsafe { GetWsChangesEx(hprocess, lpwatchinfoex as _, cb as _).ok() } } #[inline] pub unsafe fn InitializeProcessForWsWatch(hprocess: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("psapi.dll" "system" fn InitializeProcessForWsWatch(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("psapi.dll" "system" fn InitializeProcessForWsWatch(hprocess : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { InitializeProcessForWsWatch(hprocess).ok() } } #[inline] -pub unsafe fn K32EmptyWorkingSet(hprocess: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn K32EmptyWorkingSet(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn K32EmptyWorkingSet(hprocess: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn K32EmptyWorkingSet(hprocess : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { K32EmptyWorkingSet(hprocess) } } #[inline] -pub unsafe fn K32EnumDeviceDrivers(lpimagebase: *mut *mut core::ffi::c_void, cb: u32, lpcbneeded: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn K32EnumDeviceDrivers(lpimagebase : *mut *mut core::ffi::c_void, cb : u32, lpcbneeded : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn K32EnumDeviceDrivers(lpimagebase: *mut *mut core::ffi::c_void, cb: u32, lpcbneeded: *mut u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn K32EnumDeviceDrivers(lpimagebase : *mut *mut core::ffi::c_void, cb : u32, lpcbneeded : *mut u32) -> windows_core::BOOL); unsafe { K32EnumDeviceDrivers(lpimagebase as _, cb, lpcbneeded as _) } } #[inline] -pub unsafe fn K32EnumPageFilesA(pcallbackroutine: PENUM_PAGE_FILE_CALLBACKA, pcontext: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn K32EnumPageFilesA(pcallbackroutine : PENUM_PAGE_FILE_CALLBACKA, pcontext : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn K32EnumPageFilesA(pcallbackroutine: PENUM_PAGE_FILE_CALLBACKA, pcontext: *mut core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn K32EnumPageFilesA(pcallbackroutine : PENUM_PAGE_FILE_CALLBACKA, pcontext : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { K32EnumPageFilesA(pcallbackroutine, pcontext as _) } } #[inline] -pub unsafe fn K32EnumPageFilesW(pcallbackroutine: PENUM_PAGE_FILE_CALLBACKW, pcontext: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn K32EnumPageFilesW(pcallbackroutine : PENUM_PAGE_FILE_CALLBACKW, pcontext : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn K32EnumPageFilesW(pcallbackroutine: PENUM_PAGE_FILE_CALLBACKW, pcontext: *mut core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn K32EnumPageFilesW(pcallbackroutine : PENUM_PAGE_FILE_CALLBACKW, pcontext : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { K32EnumPageFilesW(pcallbackroutine, pcontext as _) } } #[inline] -pub unsafe fn K32EnumProcessModules(hprocess: super::super::Foundation::HANDLE, lphmodule: *mut super::super::Foundation::HMODULE, cb: u32, lpcbneeded: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn K32EnumProcessModules(hprocess : super::super::Foundation:: HANDLE, lphmodule : *mut super::super::Foundation:: HMODULE, cb : u32, lpcbneeded : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn K32EnumProcessModules(hprocess: super::super::Foundation::HANDLE, lphmodule: *mut super::super::Foundation::HMODULE, cb: u32, lpcbneeded: *mut u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn K32EnumProcessModules(hprocess : super::super::Foundation:: HANDLE, lphmodule : *mut super::super::Foundation:: HMODULE, cb : u32, lpcbneeded : *mut u32) -> windows_core::BOOL); unsafe { K32EnumProcessModules(hprocess, lphmodule as _, cb, lpcbneeded as _) } } #[inline] -pub unsafe fn K32EnumProcessModulesEx(hprocess: super::super::Foundation::HANDLE, lphmodule: *mut super::super::Foundation::HMODULE, cb: u32, lpcbneeded: *mut u32, dwfilterflag: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn K32EnumProcessModulesEx(hprocess : super::super::Foundation:: HANDLE, lphmodule : *mut super::super::Foundation:: HMODULE, cb : u32, lpcbneeded : *mut u32, dwfilterflag : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn K32EnumProcessModulesEx(hprocess: super::super::Foundation::HANDLE, lphmodule: *mut super::super::Foundation::HMODULE, cb: u32, lpcbneeded: *mut u32, dwfilterflag: u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn K32EnumProcessModulesEx(hprocess : super::super::Foundation:: HANDLE, lphmodule : *mut super::super::Foundation:: HMODULE, cb : u32, lpcbneeded : *mut u32, dwfilterflag : u32) -> windows_core::BOOL); unsafe { K32EnumProcessModulesEx(hprocess, lphmodule as _, cb, lpcbneeded as _, dwfilterflag) } } #[inline] -pub unsafe fn K32EnumProcesses(lpidprocess: *mut u32, cb: u32, lpcbneeded: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn K32EnumProcesses(lpidprocess : *mut u32, cb : u32, lpcbneeded : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn K32EnumProcesses(lpidprocess: *mut u32, cb: u32, lpcbneeded: *mut u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn K32EnumProcesses(lpidprocess : *mut u32, cb : u32, lpcbneeded : *mut u32) -> windows_core::BOOL); unsafe { K32EnumProcesses(lpidprocess as _, cb, lpcbneeded as _) } } #[inline] @@ -209,13 +209,13 @@ pub unsafe fn K32GetModuleFileNameExW(hprocess: Option super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn K32GetModuleInformation(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpmodinfo : *mut MODULEINFO, cb : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn K32GetModuleInformation(hprocess: super::super::Foundation::HANDLE, hmodule: super::super::Foundation::HMODULE, lpmodinfo: *mut MODULEINFO, cb: u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn K32GetModuleInformation(hprocess : super::super::Foundation:: HANDLE, hmodule : super::super::Foundation:: HMODULE, lpmodinfo : *mut MODULEINFO, cb : u32) -> windows_core::BOOL); unsafe { K32GetModuleInformation(hprocess, hmodule, lpmodinfo as _, cb) } } #[inline] -pub unsafe fn K32GetPerformanceInfo(pperformanceinformation: *mut PERFORMANCE_INFORMATION, cb: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn K32GetPerformanceInfo(pperformanceinformation : *mut PERFORMANCE_INFORMATION, cb : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn K32GetPerformanceInfo(pperformanceinformation: *mut PERFORMANCE_INFORMATION, cb: u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn K32GetPerformanceInfo(pperformanceinformation : *mut PERFORMANCE_INFORMATION, cb : u32) -> windows_core::BOOL); unsafe { K32GetPerformanceInfo(pperformanceinformation as _, cb) } } #[inline] @@ -229,43 +229,43 @@ pub unsafe fn K32GetProcessImageFileNameW(hprocess: super::super::Foundation::HA unsafe { K32GetProcessImageFileNameW(hprocess, core::mem::transmute(lpimagefilename.as_ptr()), lpimagefilename.len().try_into().unwrap()) } } #[inline] -pub unsafe fn K32GetProcessMemoryInfo(process: super::super::Foundation::HANDLE, ppsmemcounters: *mut PROCESS_MEMORY_COUNTERS, cb: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn K32GetProcessMemoryInfo(process : super::super::Foundation:: HANDLE, ppsmemcounters : *mut PROCESS_MEMORY_COUNTERS, cb : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn K32GetProcessMemoryInfo(process: super::super::Foundation::HANDLE, ppsmemcounters: *mut PROCESS_MEMORY_COUNTERS, cb: u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn K32GetProcessMemoryInfo(process : super::super::Foundation:: HANDLE, ppsmemcounters : *mut PROCESS_MEMORY_COUNTERS, cb : u32) -> windows_core::BOOL); unsafe { K32GetProcessMemoryInfo(process, ppsmemcounters as _, cb) } } #[inline] -pub unsafe fn K32GetWsChanges(hprocess: super::super::Foundation::HANDLE, lpwatchinfo: *mut PSAPI_WS_WATCH_INFORMATION, cb: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn K32GetWsChanges(hprocess : super::super::Foundation:: HANDLE, lpwatchinfo : *mut PSAPI_WS_WATCH_INFORMATION, cb : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn K32GetWsChanges(hprocess: super::super::Foundation::HANDLE, lpwatchinfo: *mut PSAPI_WS_WATCH_INFORMATION, cb: u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn K32GetWsChanges(hprocess : super::super::Foundation:: HANDLE, lpwatchinfo : *mut PSAPI_WS_WATCH_INFORMATION, cb : u32) -> windows_core::BOOL); unsafe { K32GetWsChanges(hprocess, lpwatchinfo as _, cb) } } #[inline] -pub unsafe fn K32GetWsChangesEx(hprocess: super::super::Foundation::HANDLE, lpwatchinfoex: *mut PSAPI_WS_WATCH_INFORMATION_EX, cb: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn K32GetWsChangesEx(hprocess : super::super::Foundation:: HANDLE, lpwatchinfoex : *mut PSAPI_WS_WATCH_INFORMATION_EX, cb : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn K32GetWsChangesEx(hprocess: super::super::Foundation::HANDLE, lpwatchinfoex: *mut PSAPI_WS_WATCH_INFORMATION_EX, cb: *mut u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn K32GetWsChangesEx(hprocess : super::super::Foundation:: HANDLE, lpwatchinfoex : *mut PSAPI_WS_WATCH_INFORMATION_EX, cb : *mut u32) -> windows_core::BOOL); unsafe { K32GetWsChangesEx(hprocess, lpwatchinfoex as _, cb as _) } } #[inline] -pub unsafe fn K32InitializeProcessForWsWatch(hprocess: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn K32InitializeProcessForWsWatch(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn K32InitializeProcessForWsWatch(hprocess: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn K32InitializeProcessForWsWatch(hprocess : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { K32InitializeProcessForWsWatch(hprocess) } } #[inline] -pub unsafe fn K32QueryWorkingSet(hprocess: super::super::Foundation::HANDLE, pv: *mut core::ffi::c_void, cb: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn K32QueryWorkingSet(hprocess : super::super::Foundation:: HANDLE, pv : *mut core::ffi::c_void, cb : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn K32QueryWorkingSet(hprocess: super::super::Foundation::HANDLE, pv: *mut core::ffi::c_void, cb: u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn K32QueryWorkingSet(hprocess : super::super::Foundation:: HANDLE, pv : *mut core::ffi::c_void, cb : u32) -> windows_core::BOOL); unsafe { K32QueryWorkingSet(hprocess, pv as _, cb) } } #[inline] -pub unsafe fn K32QueryWorkingSetEx(hprocess: super::super::Foundation::HANDLE, pv: *mut core::ffi::c_void, cb: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn K32QueryWorkingSetEx(hprocess : super::super::Foundation:: HANDLE, pv : *mut core::ffi::c_void, cb : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn K32QueryWorkingSetEx(hprocess: super::super::Foundation::HANDLE, pv: *mut core::ffi::c_void, cb: u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn K32QueryWorkingSetEx(hprocess : super::super::Foundation:: HANDLE, pv : *mut core::ffi::c_void, cb : u32) -> windows_core::BOOL); unsafe { K32QueryWorkingSetEx(hprocess, pv as _, cb) } } #[inline] pub unsafe fn QueryWorkingSet(hprocess: super::super::Foundation::HANDLE, pv: *mut core::ffi::c_void, cb: u32) -> windows_core::Result<()> { - windows_targets::link!("psapi.dll" "system" fn QueryWorkingSet(hprocess : super::super::Foundation:: HANDLE, pv : *mut core::ffi::c_void, cb : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("psapi.dll" "system" fn QueryWorkingSet(hprocess : super::super::Foundation:: HANDLE, pv : *mut core::ffi::c_void, cb : u32) -> windows_core::BOOL); unsafe { QueryWorkingSet(hprocess, pv as _, cb).ok() } } #[inline] pub unsafe fn QueryWorkingSetEx(hprocess: super::super::Foundation::HANDLE, pv: *mut core::ffi::c_void, cb: u32) -> windows_core::Result<()> { - windows_targets::link!("psapi.dll" "system" fn QueryWorkingSetEx(hprocess : super::super::Foundation:: HANDLE, pv : *mut core::ffi::c_void, cb : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("psapi.dll" "system" fn QueryWorkingSetEx(hprocess : super::super::Foundation:: HANDLE, pv : *mut core::ffi::c_void, cb : u32) -> windows_core::BOOL); unsafe { QueryWorkingSetEx(hprocess, pv as _, cb).ok() } } #[repr(C)] @@ -301,8 +301,8 @@ impl Default for MODULEINFO { unsafe { core::mem::zeroed() } } } -pub type PENUM_PAGE_FILE_CALLBACKA = Option super::super::Foundation::BOOL>; -pub type PENUM_PAGE_FILE_CALLBACKW = Option super::super::Foundation::BOOL>; +pub type PENUM_PAGE_FILE_CALLBACKA = Option windows_core::BOOL>; +pub type PENUM_PAGE_FILE_CALLBACKW = Option windows_core::BOOL>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct PERFORMANCE_INFORMATION { diff --git a/crates/libs/windows/src/Windows/Win32/System/Recovery/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Recovery/mod.rs index 077bff9439..a9d9a0bf36 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Recovery/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Recovery/mod.rs @@ -1,11 +1,11 @@ #[inline] pub unsafe fn ApplicationRecoveryFinished(bsuccess: bool) { - windows_targets::link!("kernel32.dll" "system" fn ApplicationRecoveryFinished(bsuccess : super::super::Foundation:: BOOL)); + windows_targets::link!("kernel32.dll" "system" fn ApplicationRecoveryFinished(bsuccess : windows_core::BOOL)); unsafe { ApplicationRecoveryFinished(bsuccess.into()) } } #[inline] -pub unsafe fn ApplicationRecoveryInProgress() -> windows_core::Result { - windows_targets::link!("kernel32.dll" "system" fn ApplicationRecoveryInProgress(pbcancelled : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn ApplicationRecoveryInProgress() -> windows_core::Result { + windows_targets::link!("kernel32.dll" "system" fn ApplicationRecoveryInProgress(pbcancelled : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); ApplicationRecoveryInProgress(&mut result__).map(|| core::mem::transmute(result__)) diff --git a/crates/libs/windows/src/Windows/Win32/System/Registry/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Registry/mod.rs index a06a0282ea..bd96457337 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Registry/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Registry/mod.rs @@ -348,7 +348,7 @@ where } #[inline] pub unsafe fn RegNotifyChangeKeyValue(hkey: HKEY, bwatchsubtree: bool, dwnotifyfilter: REG_NOTIFY_FILTER, hevent: Option, fasynchronous: bool) -> super::super::Foundation::WIN32_ERROR { - windows_targets::link!("advapi32.dll" "system" fn RegNotifyChangeKeyValue(hkey : HKEY, bwatchsubtree : super::super::Foundation:: BOOL, dwnotifyfilter : REG_NOTIFY_FILTER, hevent : super::super::Foundation:: HANDLE, fasynchronous : super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); + windows_targets::link!("advapi32.dll" "system" fn RegNotifyChangeKeyValue(hkey : HKEY, bwatchsubtree : windows_core::BOOL, dwnotifyfilter : REG_NOTIFY_FILTER, hevent : super::super::Foundation:: HANDLE, fasynchronous : windows_core::BOOL) -> super::super::Foundation:: WIN32_ERROR); unsafe { RegNotifyChangeKeyValue(hkey, bwatchsubtree.into(), dwnotifyfilter, hevent.unwrap_or(core::mem::zeroed()) as _, fasynchronous.into()) } } #[inline] @@ -465,8 +465,8 @@ pub unsafe fn RegQueryMultipleValuesW(hkey: HKEY, val_list: &mut [VALENTW], lpva unsafe { RegQueryMultipleValuesW(hkey, core::mem::transmute(val_list.as_ptr()), val_list.len().try_into().unwrap(), lpvaluebuf.unwrap_or(core::mem::zeroed()) as _, ldwtotsize.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn RegQueryReflectionKey(hbase: HKEY, bisreflectiondisabled: *mut super::super::Foundation::BOOL) -> super::super::Foundation::WIN32_ERROR { - windows_targets::link!("advapi32.dll" "system" fn RegQueryReflectionKey(hbase : HKEY, bisreflectiondisabled : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); +pub unsafe fn RegQueryReflectionKey(hbase: HKEY, bisreflectiondisabled: *mut windows_core::BOOL) -> super::super::Foundation::WIN32_ERROR { + windows_targets::link!("advapi32.dll" "system" fn RegQueryReflectionKey(hbase : HKEY, bisreflectiondisabled : *mut windows_core::BOOL) -> super::super::Foundation:: WIN32_ERROR); unsafe { RegQueryReflectionKey(hbase, bisreflectiondisabled as _) } } #[inline] 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 7879f28304..f141f67885 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs @@ -1,6 +1,6 @@ #[inline] pub unsafe fn ProcessIdToSessionId(dwprocessid: u32, psessionid: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ProcessIdToSessionId(dwprocessid : u32, psessionid : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ProcessIdToSessionId(dwprocessid : u32, psessionid : *mut u32) -> windows_core::BOOL); unsafe { ProcessIdToSessionId(dwprocessid, psessionid as _).ok() } } #[inline] @@ -13,7 +13,7 @@ pub unsafe fn WTSConnectSessionA(logonid: u32, targetlogonid: u32, ppassword where P2: windows_core::Param, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSConnectSessionA(logonid : u32, targetlogonid : u32, ppassword : windows_core::PCSTR, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSConnectSessionA(logonid : u32, targetlogonid : u32, ppassword : windows_core::PCSTR, bwait : windows_core::BOOL) -> windows_core::BOOL); unsafe { WTSConnectSessionA(logonid, targetlogonid, ppassword.param().abi(), bwait.into()).ok() } } #[inline] @@ -21,7 +21,7 @@ pub unsafe fn WTSConnectSessionW(logonid: u32, targetlogonid: u32, ppassword where P2: windows_core::Param, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSConnectSessionW(logonid : u32, targetlogonid : u32, ppassword : windows_core::PCWSTR, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSConnectSessionW(logonid : u32, targetlogonid : u32, ppassword : windows_core::PCWSTR, bwait : windows_core::BOOL) -> windows_core::BOOL); unsafe { WTSConnectSessionW(logonid, targetlogonid, ppassword.param().abi(), bwait.into()).ok() } } #[inline] @@ -29,7 +29,7 @@ pub unsafe fn WTSCreateListenerA(hserver: Option, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSCreateListenerA(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCSTR, pbuffer : *const WTSLISTENERCONFIGA, flag : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSCreateListenerA(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCSTR, pbuffer : *const WTSLISTENERCONFIGA, flag : u32) -> windows_core::BOOL); unsafe { WTSCreateListenerA(hserver.unwrap_or(core::mem::zeroed()) as _, preserved, reserved, plistenername.param().abi(), pbuffer, flag).ok() } } #[inline] @@ -37,49 +37,49 @@ pub unsafe fn WTSCreateListenerW(hserver: Option, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSCreateListenerW(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCWSTR, pbuffer : *const WTSLISTENERCONFIGW, flag : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSCreateListenerW(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCWSTR, pbuffer : *const WTSLISTENERCONFIGW, flag : u32) -> windows_core::BOOL); unsafe { WTSCreateListenerW(hserver.unwrap_or(core::mem::zeroed()) as _, preserved, reserved, plistenername.param().abi(), pbuffer, flag).ok() } } #[inline] pub unsafe fn WTSDisconnectSession(hserver: Option, sessionid: u32, bwait: bool) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSDisconnectSession(hserver : super::super::Foundation:: HANDLE, sessionid : u32, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSDisconnectSession(hserver : super::super::Foundation:: HANDLE, sessionid : u32, bwait : windows_core::BOOL) -> windows_core::BOOL); unsafe { WTSDisconnectSession(hserver.unwrap_or(core::mem::zeroed()) as _, sessionid, bwait.into()).ok() } } #[inline] -pub unsafe fn WTSEnableChildSessions(benable: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("wtsapi32.dll" "system" fn WTSEnableChildSessions(benable : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn WTSEnableChildSessions(benable: bool) -> windows_core::BOOL { + windows_targets::link!("wtsapi32.dll" "system" fn WTSEnableChildSessions(benable : windows_core::BOOL) -> windows_core::BOOL); unsafe { WTSEnableChildSessions(benable.into()) } } #[inline] pub unsafe fn WTSEnumerateListenersA(hserver: Option, preserved: *const core::ffi::c_void, reserved: u32, plisteners: Option<*mut *mut i8>, pcount: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateListenersA(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plisteners : *mut *mut i8, pcount : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateListenersA(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plisteners : *mut *mut i8, pcount : *mut u32) -> windows_core::BOOL); unsafe { WTSEnumerateListenersA(hserver.unwrap_or(core::mem::zeroed()) as _, preserved, reserved, plisteners.unwrap_or(core::mem::zeroed()) as _, pcount as _).ok() } } #[inline] pub unsafe fn WTSEnumerateListenersW(hserver: Option, preserved: *const core::ffi::c_void, reserved: u32, plisteners: Option<*mut *mut u16>, pcount: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateListenersW(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plisteners : *mut *mut u16, pcount : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateListenersW(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plisteners : *mut *mut u16, pcount : *mut u32) -> windows_core::BOOL); unsafe { WTSEnumerateListenersW(hserver.unwrap_or(core::mem::zeroed()) as _, preserved, reserved, plisteners.unwrap_or(core::mem::zeroed()) as _, pcount as _).ok() } } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn WTSEnumerateProcessesA(hserver: Option, reserved: u32, version: u32, ppprocessinfo: *mut *mut WTS_PROCESS_INFOA, pcount: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateProcessesA(hserver : super::super::Foundation:: HANDLE, reserved : u32, version : u32, ppprocessinfo : *mut *mut WTS_PROCESS_INFOA, pcount : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateProcessesA(hserver : super::super::Foundation:: HANDLE, reserved : u32, version : u32, ppprocessinfo : *mut *mut WTS_PROCESS_INFOA, pcount : *mut u32) -> windows_core::BOOL); unsafe { WTSEnumerateProcessesA(hserver.unwrap_or(core::mem::zeroed()) as _, reserved, version, ppprocessinfo as _, pcount as _).ok() } } #[inline] pub unsafe fn WTSEnumerateProcessesExA(hserver: Option, plevel: *mut u32, sessionid: u32, ppprocessinfo: *mut windows_core::PSTR, pcount: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateProcessesExA(hserver : super::super::Foundation:: HANDLE, plevel : *mut u32, sessionid : u32, ppprocessinfo : *mut windows_core::PSTR, pcount : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateProcessesExA(hserver : super::super::Foundation:: HANDLE, plevel : *mut u32, sessionid : u32, ppprocessinfo : *mut windows_core::PSTR, pcount : *mut u32) -> windows_core::BOOL); unsafe { WTSEnumerateProcessesExA(hserver.unwrap_or(core::mem::zeroed()) as _, plevel as _, sessionid, ppprocessinfo as _, pcount as _).ok() } } #[inline] pub unsafe fn WTSEnumerateProcessesExW(hserver: Option, plevel: *mut u32, sessionid: u32, ppprocessinfo: *mut windows_core::PWSTR, pcount: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateProcessesExW(hserver : super::super::Foundation:: HANDLE, plevel : *mut u32, sessionid : u32, ppprocessinfo : *mut windows_core::PWSTR, pcount : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateProcessesExW(hserver : super::super::Foundation:: HANDLE, plevel : *mut u32, sessionid : u32, ppprocessinfo : *mut windows_core::PWSTR, pcount : *mut u32) -> windows_core::BOOL); unsafe { WTSEnumerateProcessesExW(hserver.unwrap_or(core::mem::zeroed()) as _, plevel as _, sessionid, ppprocessinfo as _, pcount as _).ok() } } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn WTSEnumerateProcessesW(hserver: Option, reserved: u32, version: u32, ppprocessinfo: *mut *mut WTS_PROCESS_INFOW, pcount: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateProcessesW(hserver : super::super::Foundation:: HANDLE, reserved : u32, version : u32, ppprocessinfo : *mut *mut WTS_PROCESS_INFOW, pcount : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateProcessesW(hserver : super::super::Foundation:: HANDLE, reserved : u32, version : u32, ppprocessinfo : *mut *mut WTS_PROCESS_INFOW, pcount : *mut u32) -> windows_core::BOOL); unsafe { WTSEnumerateProcessesW(hserver.unwrap_or(core::mem::zeroed()) as _, reserved, version, ppprocessinfo as _, pcount as _).ok() } } #[inline] @@ -87,7 +87,7 @@ pub unsafe fn WTSEnumerateServersA(pdomainname: P0, reserved: u32, version: where P0: windows_core::Param, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateServersA(pdomainname : windows_core::PCSTR, reserved : u32, version : u32, ppserverinfo : *mut *mut WTS_SERVER_INFOA, pcount : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateServersA(pdomainname : windows_core::PCSTR, reserved : u32, version : u32, ppserverinfo : *mut *mut WTS_SERVER_INFOA, pcount : *mut u32) -> windows_core::BOOL); unsafe { WTSEnumerateServersA(pdomainname.param().abi(), reserved, version, ppserverinfo as _, pcount as _).ok() } } #[inline] @@ -95,27 +95,27 @@ pub unsafe fn WTSEnumerateServersW(pdomainname: P0, reserved: u32, version: where P0: windows_core::Param, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateServersW(pdomainname : windows_core::PCWSTR, reserved : u32, version : u32, ppserverinfo : *mut *mut WTS_SERVER_INFOW, pcount : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateServersW(pdomainname : windows_core::PCWSTR, reserved : u32, version : u32, ppserverinfo : *mut *mut WTS_SERVER_INFOW, pcount : *mut u32) -> windows_core::BOOL); unsafe { WTSEnumerateServersW(pdomainname.param().abi(), reserved, version, ppserverinfo as _, pcount as _).ok() } } #[inline] pub unsafe fn WTSEnumerateSessionsA(hserver: Option, reserved: u32, version: u32, ppsessioninfo: *mut *mut WTS_SESSION_INFOA, pcount: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateSessionsA(hserver : super::super::Foundation:: HANDLE, reserved : u32, version : u32, ppsessioninfo : *mut *mut WTS_SESSION_INFOA, pcount : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateSessionsA(hserver : super::super::Foundation:: HANDLE, reserved : u32, version : u32, ppsessioninfo : *mut *mut WTS_SESSION_INFOA, pcount : *mut u32) -> windows_core::BOOL); unsafe { WTSEnumerateSessionsA(hserver.unwrap_or(core::mem::zeroed()) as _, reserved, version, ppsessioninfo as _, pcount as _).ok() } } #[inline] pub unsafe fn WTSEnumerateSessionsExA(hserver: Option, plevel: *mut u32, filter: u32, ppsessioninfo: *mut *mut WTS_SESSION_INFO_1A, pcount: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateSessionsExA(hserver : super::super::Foundation:: HANDLE, plevel : *mut u32, filter : u32, ppsessioninfo : *mut *mut WTS_SESSION_INFO_1A, pcount : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateSessionsExA(hserver : super::super::Foundation:: HANDLE, plevel : *mut u32, filter : u32, ppsessioninfo : *mut *mut WTS_SESSION_INFO_1A, pcount : *mut u32) -> windows_core::BOOL); unsafe { WTSEnumerateSessionsExA(hserver.unwrap_or(core::mem::zeroed()) as _, plevel as _, filter, ppsessioninfo as _, pcount as _).ok() } } #[inline] pub unsafe fn WTSEnumerateSessionsExW(hserver: Option, plevel: *mut u32, filter: u32, ppsessioninfo: *mut *mut WTS_SESSION_INFO_1W, pcount: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateSessionsExW(hserver : super::super::Foundation:: HANDLE, plevel : *mut u32, filter : u32, ppsessioninfo : *mut *mut WTS_SESSION_INFO_1W, pcount : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateSessionsExW(hserver : super::super::Foundation:: HANDLE, plevel : *mut u32, filter : u32, ppsessioninfo : *mut *mut WTS_SESSION_INFO_1W, pcount : *mut u32) -> windows_core::BOOL); unsafe { WTSEnumerateSessionsExW(hserver.unwrap_or(core::mem::zeroed()) as _, plevel as _, filter, ppsessioninfo as _, pcount as _).ok() } } #[inline] pub unsafe fn WTSEnumerateSessionsW(hserver: Option, reserved: u32, version: u32, ppsessioninfo: *mut *mut WTS_SESSION_INFOW, pcount: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateSessionsW(hserver : super::super::Foundation:: HANDLE, reserved : u32, version : u32, ppsessioninfo : *mut *mut WTS_SESSION_INFOW, pcount : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSEnumerateSessionsW(hserver : super::super::Foundation:: HANDLE, reserved : u32, version : u32, ppsessioninfo : *mut *mut WTS_SESSION_INFOW, pcount : *mut u32) -> windows_core::BOOL); unsafe { WTSEnumerateSessionsW(hserver.unwrap_or(core::mem::zeroed()) as _, reserved, version, ppsessioninfo as _, pcount as _).ok() } } #[inline] @@ -125,12 +125,12 @@ pub unsafe fn WTSFreeMemory(pmemory: *mut core::ffi::c_void) { } #[inline] pub unsafe fn WTSFreeMemoryExA(wtstypeclass: WTS_TYPE_CLASS, pmemory: *const core::ffi::c_void, numberofentries: u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSFreeMemoryExA(wtstypeclass : WTS_TYPE_CLASS, pmemory : *const core::ffi::c_void, numberofentries : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSFreeMemoryExA(wtstypeclass : WTS_TYPE_CLASS, pmemory : *const core::ffi::c_void, numberofentries : u32) -> windows_core::BOOL); unsafe { WTSFreeMemoryExA(wtstypeclass, pmemory, numberofentries).ok() } } #[inline] pub unsafe fn WTSFreeMemoryExW(wtstypeclass: WTS_TYPE_CLASS, pmemory: *const core::ffi::c_void, numberofentries: u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSFreeMemoryExW(wtstypeclass : WTS_TYPE_CLASS, pmemory : *const core::ffi::c_void, numberofentries : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSFreeMemoryExW(wtstypeclass : WTS_TYPE_CLASS, pmemory : *const core::ffi::c_void, numberofentries : u32) -> windows_core::BOOL); unsafe { WTSFreeMemoryExW(wtstypeclass, pmemory, numberofentries).ok() } } #[inline] @@ -139,8 +139,8 @@ pub unsafe fn WTSGetActiveConsoleSessionId() -> u32 { unsafe { WTSGetActiveConsoleSessionId() } } #[inline] -pub unsafe fn WTSGetChildSessionId(psessionid: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("wtsapi32.dll" "system" fn WTSGetChildSessionId(psessionid : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn WTSGetChildSessionId(psessionid: *mut u32) -> windows_core::BOOL { + windows_targets::link!("wtsapi32.dll" "system" fn WTSGetChildSessionId(psessionid : *mut u32) -> windows_core::BOOL); unsafe { WTSGetChildSessionId(psessionid as _) } } #[cfg(feature = "Win32_Security")] @@ -149,7 +149,7 @@ pub unsafe fn WTSGetListenerSecurityA(hserver: Option, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSGetListenerSecurityA(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCSTR, securityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSGetListenerSecurityA(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCSTR, securityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> windows_core::BOOL); unsafe { WTSGetListenerSecurityA(hserver.unwrap_or(core::mem::zeroed()) as _, preserved, reserved, plistenername.param().abi(), securityinformation, psecuritydescriptor.unwrap_or(core::mem::zeroed()) as _, nlength, lpnlengthneeded as _).ok() } } #[cfg(feature = "Win32_Security")] @@ -158,17 +158,17 @@ pub unsafe fn WTSGetListenerSecurityW(hserver: Option, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSGetListenerSecurityW(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCWSTR, securityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSGetListenerSecurityW(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCWSTR, securityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, nlength : u32, lpnlengthneeded : *mut u32) -> windows_core::BOOL); unsafe { WTSGetListenerSecurityW(hserver.unwrap_or(core::mem::zeroed()) as _, preserved, reserved, plistenername.param().abi(), securityinformation, psecuritydescriptor.unwrap_or(core::mem::zeroed()) as _, nlength, lpnlengthneeded as _).ok() } } #[inline] -pub unsafe fn WTSIsChildSessionsEnabled(pbenabled: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { - windows_targets::link!("wtsapi32.dll" "system" fn WTSIsChildSessionsEnabled(pbenabled : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn WTSIsChildSessionsEnabled(pbenabled: *mut windows_core::BOOL) -> windows_core::BOOL { + windows_targets::link!("wtsapi32.dll" "system" fn WTSIsChildSessionsEnabled(pbenabled : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { WTSIsChildSessionsEnabled(pbenabled as _) } } #[inline] pub unsafe fn WTSLogoffSession(hserver: Option, sessionid: u32, bwait: bool) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSLogoffSession(hserver : super::super::Foundation:: HANDLE, sessionid : u32, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSLogoffSession(hserver : super::super::Foundation:: HANDLE, sessionid : u32, bwait : windows_core::BOOL) -> windows_core::BOOL); unsafe { WTSLogoffSession(hserver.unwrap_or(core::mem::zeroed()) as _, sessionid, bwait.into()).ok() } } #[inline] @@ -208,7 +208,7 @@ pub unsafe fn WTSQueryListenerConfigA(hserver: Option, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSQueryListenerConfigA(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCSTR, pbuffer : *mut WTSLISTENERCONFIGA) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSQueryListenerConfigA(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCSTR, pbuffer : *mut WTSLISTENERCONFIGA) -> windows_core::BOOL); unsafe { WTSQueryListenerConfigA(hserver.unwrap_or(core::mem::zeroed()) as _, preserved, reserved, plistenername.param().abi(), pbuffer as _).ok() } } #[inline] @@ -216,17 +216,17 @@ pub unsafe fn WTSQueryListenerConfigW(hserver: Option, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSQueryListenerConfigW(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCWSTR, pbuffer : *mut WTSLISTENERCONFIGW) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSQueryListenerConfigW(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCWSTR, pbuffer : *mut WTSLISTENERCONFIGW) -> windows_core::BOOL); unsafe { WTSQueryListenerConfigW(hserver.unwrap_or(core::mem::zeroed()) as _, preserved, reserved, plistenername.param().abi(), pbuffer as _).ok() } } #[inline] pub unsafe fn WTSQuerySessionInformationA(hserver: Option, sessionid: u32, wtsinfoclass: WTS_INFO_CLASS, ppbuffer: *mut windows_core::PSTR, pbytesreturned: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSQuerySessionInformationA(hserver : super::super::Foundation:: HANDLE, sessionid : u32, wtsinfoclass : WTS_INFO_CLASS, ppbuffer : *mut windows_core::PSTR, pbytesreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSQuerySessionInformationA(hserver : super::super::Foundation:: HANDLE, sessionid : u32, wtsinfoclass : WTS_INFO_CLASS, ppbuffer : *mut windows_core::PSTR, pbytesreturned : *mut u32) -> windows_core::BOOL); unsafe { WTSQuerySessionInformationA(hserver.unwrap_or(core::mem::zeroed()) as _, sessionid, wtsinfoclass, ppbuffer as _, pbytesreturned as _).ok() } } #[inline] pub unsafe fn WTSQuerySessionInformationW(hserver: Option, sessionid: u32, wtsinfoclass: WTS_INFO_CLASS, ppbuffer: *mut windows_core::PWSTR, pbytesreturned: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSQuerySessionInformationW(hserver : super::super::Foundation:: HANDLE, sessionid : u32, wtsinfoclass : WTS_INFO_CLASS, ppbuffer : *mut windows_core::PWSTR, pbytesreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSQuerySessionInformationW(hserver : super::super::Foundation:: HANDLE, sessionid : u32, wtsinfoclass : WTS_INFO_CLASS, ppbuffer : *mut windows_core::PWSTR, pbytesreturned : *mut u32) -> windows_core::BOOL); unsafe { WTSQuerySessionInformationW(hserver.unwrap_or(core::mem::zeroed()) as _, sessionid, wtsinfoclass, ppbuffer as _, pbytesreturned as _).ok() } } #[inline] @@ -235,7 +235,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSQueryUserConfigA(pservername : windows_core::PCSTR, pusername : windows_core::PCSTR, wtsconfigclass : WTS_CONFIG_CLASS, ppbuffer : *mut windows_core::PSTR, pbytesreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSQueryUserConfigA(pservername : windows_core::PCSTR, pusername : windows_core::PCSTR, wtsconfigclass : WTS_CONFIG_CLASS, ppbuffer : *mut windows_core::PSTR, pbytesreturned : *mut u32) -> windows_core::BOOL); unsafe { WTSQueryUserConfigA(pservername.param().abi(), pusername.param().abi(), wtsconfigclass, ppbuffer as _, pbytesreturned as _).ok() } } #[inline] @@ -244,28 +244,28 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSQueryUserConfigW(pservername : windows_core::PCWSTR, pusername : windows_core::PCWSTR, wtsconfigclass : WTS_CONFIG_CLASS, ppbuffer : *mut windows_core::PWSTR, pbytesreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSQueryUserConfigW(pservername : windows_core::PCWSTR, pusername : windows_core::PCWSTR, wtsconfigclass : WTS_CONFIG_CLASS, ppbuffer : *mut windows_core::PWSTR, pbytesreturned : *mut u32) -> windows_core::BOOL); unsafe { WTSQueryUserConfigW(pservername.param().abi(), pusername.param().abi(), wtsconfigclass, ppbuffer as _, pbytesreturned as _).ok() } } #[inline] pub unsafe fn WTSQueryUserToken(sessionid: u32, phtoken: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSQueryUserToken(sessionid : u32, phtoken : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSQueryUserToken(sessionid : u32, phtoken : *mut super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { WTSQueryUserToken(sessionid, phtoken as _).ok() } } #[inline] pub unsafe fn WTSRegisterSessionNotification(hwnd: super::super::Foundation::HWND, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSRegisterSessionNotification(hwnd : super::super::Foundation:: HWND, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSRegisterSessionNotification(hwnd : super::super::Foundation:: HWND, dwflags : u32) -> windows_core::BOOL); unsafe { WTSRegisterSessionNotification(hwnd, dwflags).ok() } } #[inline] pub unsafe fn WTSRegisterSessionNotificationEx(hserver: Option, hwnd: super::super::Foundation::HWND, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSRegisterSessionNotificationEx(hserver : super::super::Foundation:: HANDLE, hwnd : super::super::Foundation:: HWND, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSRegisterSessionNotificationEx(hserver : super::super::Foundation:: HANDLE, hwnd : super::super::Foundation:: HWND, dwflags : u32) -> windows_core::BOOL); unsafe { WTSRegisterSessionNotificationEx(hserver.unwrap_or(core::mem::zeroed()) as _, hwnd, dwflags).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn WTSSendMessageA(hserver: Option, sessionid: u32, ptitle: &[u8], pmessage: &[u8], style: super::super::UI::WindowsAndMessaging::MESSAGEBOX_STYLE, timeout: u32, presponse: *mut super::super::UI::WindowsAndMessaging::MESSAGEBOX_RESULT, bwait: bool) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSSendMessageA(hserver : super::super::Foundation:: HANDLE, sessionid : u32, ptitle : windows_core::PCSTR, titlelength : u32, pmessage : windows_core::PCSTR, messagelength : u32, style : super::super::UI::WindowsAndMessaging:: MESSAGEBOX_STYLE, timeout : u32, presponse : *mut super::super::UI::WindowsAndMessaging:: MESSAGEBOX_RESULT, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSSendMessageA(hserver : super::super::Foundation:: HANDLE, sessionid : u32, ptitle : windows_core::PCSTR, titlelength : u32, pmessage : windows_core::PCSTR, messagelength : u32, style : super::super::UI::WindowsAndMessaging:: MESSAGEBOX_STYLE, timeout : u32, presponse : *mut super::super::UI::WindowsAndMessaging:: MESSAGEBOX_RESULT, bwait : windows_core::BOOL) -> windows_core::BOOL); unsafe { WTSSendMessageA(hserver.unwrap_or(core::mem::zeroed()) as _, sessionid, core::mem::transmute(ptitle.as_ptr()), ptitle.len().try_into().unwrap(), core::mem::transmute(pmessage.as_ptr()), pmessage.len().try_into().unwrap(), style, timeout, presponse as _, bwait.into()).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -275,7 +275,7 @@ where P2: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSSendMessageW(hserver : super::super::Foundation:: HANDLE, sessionid : u32, ptitle : windows_core::PCWSTR, titlelength : u32, pmessage : windows_core::PCWSTR, messagelength : u32, style : super::super::UI::WindowsAndMessaging:: MESSAGEBOX_STYLE, timeout : u32, presponse : *mut super::super::UI::WindowsAndMessaging:: MESSAGEBOX_RESULT, bwait : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSSendMessageW(hserver : super::super::Foundation:: HANDLE, sessionid : u32, ptitle : windows_core::PCWSTR, titlelength : u32, pmessage : windows_core::PCWSTR, messagelength : u32, style : super::super::UI::WindowsAndMessaging:: MESSAGEBOX_STYLE, timeout : u32, presponse : *mut super::super::UI::WindowsAndMessaging:: MESSAGEBOX_RESULT, bwait : windows_core::BOOL) -> windows_core::BOOL); unsafe { WTSSendMessageW(hserver.unwrap_or(core::mem::zeroed()) as _, sessionid, ptitle.param().abi(), titlelength, pmessage.param().abi(), messagelength, style, timeout, presponse as _, bwait.into()).ok() } } #[cfg(feature = "Win32_Security")] @@ -284,7 +284,7 @@ pub unsafe fn WTSSetListenerSecurityA(hserver: Option, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSSetListenerSecurityA(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCSTR, securityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSSetListenerSecurityA(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCSTR, securityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR) -> windows_core::BOOL); unsafe { WTSSetListenerSecurityA(hserver.unwrap_or(core::mem::zeroed()) as _, preserved, reserved, plistenername.param().abi(), securityinformation, psecuritydescriptor).ok() } } #[cfg(feature = "Win32_Security")] @@ -293,7 +293,7 @@ pub unsafe fn WTSSetListenerSecurityW(hserver: Option, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSSetListenerSecurityW(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCWSTR, securityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSSetListenerSecurityW(hserver : super::super::Foundation:: HANDLE, preserved : *const core::ffi::c_void, reserved : u32, plistenername : windows_core::PCWSTR, securityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, psecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR) -> windows_core::BOOL); unsafe { WTSSetListenerSecurityW(hserver.unwrap_or(core::mem::zeroed()) as _, preserved, reserved, plistenername.param().abi(), securityinformation, psecuritydescriptor).ok() } } #[inline] @@ -307,7 +307,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSSetUserConfigA(pservername : windows_core::PCSTR, pusername : windows_core::PCSTR, wtsconfigclass : WTS_CONFIG_CLASS, pbuffer : windows_core::PCSTR, datalength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSSetUserConfigA(pservername : windows_core::PCSTR, pusername : windows_core::PCSTR, wtsconfigclass : WTS_CONFIG_CLASS, pbuffer : windows_core::PCSTR, datalength : u32) -> windows_core::BOOL); unsafe { WTSSetUserConfigA(pservername.param().abi(), pusername.param().abi(), wtsconfigclass, core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap()).ok() } } #[inline] @@ -317,12 +317,12 @@ where P1: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSSetUserConfigW(pservername : windows_core::PCWSTR, pusername : windows_core::PCWSTR, wtsconfigclass : WTS_CONFIG_CLASS, pbuffer : windows_core::PCWSTR, datalength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSSetUserConfigW(pservername : windows_core::PCWSTR, pusername : windows_core::PCWSTR, wtsconfigclass : WTS_CONFIG_CLASS, pbuffer : windows_core::PCWSTR, datalength : u32) -> windows_core::BOOL); unsafe { WTSSetUserConfigW(pservername.param().abi(), pusername.param().abi(), wtsconfigclass, pbuffer.param().abi(), datalength).ok() } } #[inline] pub unsafe fn WTSShutdownSystem(hserver: Option, shutdownflag: u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSShutdownSystem(hserver : super::super::Foundation:: HANDLE, shutdownflag : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSShutdownSystem(hserver : super::super::Foundation:: HANDLE, shutdownflag : u32) -> windows_core::BOOL); unsafe { WTSShutdownSystem(hserver.unwrap_or(core::mem::zeroed()) as _, shutdownflag).ok() } } #[inline] @@ -330,7 +330,7 @@ pub unsafe fn WTSStartRemoteControlSessionA(ptargetservername: P0, targetlog where P0: windows_core::Param, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSStartRemoteControlSessionA(ptargetservername : windows_core::PCSTR, targetlogonid : u32, hotkeyvk : u8, hotkeymodifiers : u16) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSStartRemoteControlSessionA(ptargetservername : windows_core::PCSTR, targetlogonid : u32, hotkeyvk : u8, hotkeymodifiers : u16) -> windows_core::BOOL); unsafe { WTSStartRemoteControlSessionA(ptargetservername.param().abi(), targetlogonid, hotkeyvk, hotkeymodifiers).ok() } } #[inline] @@ -338,32 +338,32 @@ pub unsafe fn WTSStartRemoteControlSessionW(ptargetservername: P0, targetlog where P0: windows_core::Param, { - windows_targets::link!("wtsapi32.dll" "system" fn WTSStartRemoteControlSessionW(ptargetservername : windows_core::PCWSTR, targetlogonid : u32, hotkeyvk : u8, hotkeymodifiers : u16) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSStartRemoteControlSessionW(ptargetservername : windows_core::PCWSTR, targetlogonid : u32, hotkeyvk : u8, hotkeymodifiers : u16) -> windows_core::BOOL); unsafe { WTSStartRemoteControlSessionW(ptargetservername.param().abi(), targetlogonid, hotkeyvk, hotkeymodifiers).ok() } } #[inline] pub unsafe fn WTSStopRemoteControlSession(logonid: u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSStopRemoteControlSession(logonid : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSStopRemoteControlSession(logonid : u32) -> windows_core::BOOL); unsafe { WTSStopRemoteControlSession(logonid).ok() } } #[inline] pub unsafe fn WTSTerminateProcess(hserver: Option, processid: u32, exitcode: u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSTerminateProcess(hserver : super::super::Foundation:: HANDLE, processid : u32, exitcode : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSTerminateProcess(hserver : super::super::Foundation:: HANDLE, processid : u32, exitcode : u32) -> windows_core::BOOL); unsafe { WTSTerminateProcess(hserver.unwrap_or(core::mem::zeroed()) as _, processid, exitcode).ok() } } #[inline] pub unsafe fn WTSUnRegisterSessionNotification(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSUnRegisterSessionNotification(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSUnRegisterSessionNotification(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { WTSUnRegisterSessionNotification(hwnd).ok() } } #[inline] pub unsafe fn WTSUnRegisterSessionNotificationEx(hserver: Option, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSUnRegisterSessionNotificationEx(hserver : super::super::Foundation:: HANDLE, hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSUnRegisterSessionNotificationEx(hserver : super::super::Foundation:: HANDLE, hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { WTSUnRegisterSessionNotificationEx(hserver.unwrap_or(core::mem::zeroed()) as _, hwnd).ok() } } #[inline] pub unsafe fn WTSVirtualChannelClose(hchannelhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelClose(hchannelhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelClose(hchannelhandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { WTSVirtualChannelClose(hchannelhandle).ok() } } #[inline] @@ -386,32 +386,32 @@ where } #[inline] pub unsafe fn WTSVirtualChannelPurgeInput(hchannelhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelPurgeInput(hchannelhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelPurgeInput(hchannelhandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { WTSVirtualChannelPurgeInput(hchannelhandle).ok() } } #[inline] pub unsafe fn WTSVirtualChannelPurgeOutput(hchannelhandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelPurgeOutput(hchannelhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelPurgeOutput(hchannelhandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { WTSVirtualChannelPurgeOutput(hchannelhandle).ok() } } #[inline] pub unsafe fn WTSVirtualChannelQuery(hchannelhandle: super::super::Foundation::HANDLE, param1: WTS_VIRTUAL_CLASS, ppbuffer: *mut *mut core::ffi::c_void, pbytesreturned: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelQuery(hchannelhandle : super::super::Foundation:: HANDLE, param1 : WTS_VIRTUAL_CLASS, ppbuffer : *mut *mut core::ffi::c_void, pbytesreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelQuery(hchannelhandle : super::super::Foundation:: HANDLE, param1 : WTS_VIRTUAL_CLASS, ppbuffer : *mut *mut core::ffi::c_void, pbytesreturned : *mut u32) -> windows_core::BOOL); unsafe { WTSVirtualChannelQuery(hchannelhandle, param1, ppbuffer as _, pbytesreturned as _).ok() } } #[inline] pub unsafe fn WTSVirtualChannelRead(hchannelhandle: super::super::Foundation::HANDLE, timeout: u32, buffer: &mut [u8], pbytesread: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelRead(hchannelhandle : super::super::Foundation:: HANDLE, timeout : u32, buffer : windows_core::PSTR, buffersize : u32, pbytesread : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelRead(hchannelhandle : super::super::Foundation:: HANDLE, timeout : u32, buffer : windows_core::PSTR, buffersize : u32, pbytesread : *mut u32) -> windows_core::BOOL); unsafe { WTSVirtualChannelRead(hchannelhandle, timeout, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), pbytesread as _).ok() } } #[inline] pub unsafe fn WTSVirtualChannelWrite(hchannelhandle: super::super::Foundation::HANDLE, buffer: &[u8], pbyteswritten: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelWrite(hchannelhandle : super::super::Foundation:: HANDLE, buffer : windows_core::PCSTR, length : u32, pbyteswritten : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSVirtualChannelWrite(hchannelhandle : super::super::Foundation:: HANDLE, buffer : windows_core::PCSTR, length : u32, pbyteswritten : *mut u32) -> windows_core::BOOL); unsafe { WTSVirtualChannelWrite(hchannelhandle, core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap(), pbyteswritten as _).ok() } } #[inline] pub unsafe fn WTSWaitSystemEvent(hserver: Option, eventmask: u32, peventflags: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("wtsapi32.dll" "system" fn WTSWaitSystemEvent(hserver : super::super::Foundation:: HANDLE, eventmask : u32, peventflags : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("wtsapi32.dll" "system" fn WTSWaitSystemEvent(hserver : super::super::Foundation:: HANDLE, eventmask : u32, peventflags : *mut u32) -> windows_core::BOOL); unsafe { WTSWaitSystemEvent(hserver.unwrap_or(core::mem::zeroed()) as _, eventmask, peventflags as _).ok() } } #[repr(C)] @@ -1193,13 +1193,13 @@ impl IAudioDeviceEndpoint { pub unsafe fn SetBuffer(&self, maxperiod: i64, u32latencycoefficient: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetBuffer)(windows_core::Interface::as_raw(self), maxperiod, u32latencycoefficient).ok() } } - pub unsafe fn GetRTCaps(&self) -> windows_core::Result { + pub unsafe fn GetRTCaps(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetRTCaps)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetEventDrivenCapable(&self) -> windows_core::Result { + pub unsafe fn GetEventDrivenCapable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetEventDrivenCapable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1213,14 +1213,14 @@ impl IAudioDeviceEndpoint { pub struct IAudioDeviceEndpoint_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, i64, u32) -> windows_core::HRESULT, - pub GetRTCaps: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetEventDrivenCapable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetRTCaps: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub GetEventDrivenCapable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub WriteExclusiveModeParametersToSharedMemory: unsafe extern "system" fn(*mut core::ffi::c_void, usize, i64, i64, u32, *mut u32, *mut usize) -> windows_core::HRESULT, } pub trait IAudioDeviceEndpoint_Impl: windows_core::IUnknownImpl { fn SetBuffer(&self, maxperiod: i64, u32latencycoefficient: u32) -> windows_core::Result<()>; - fn GetRTCaps(&self) -> windows_core::Result; - fn GetEventDrivenCapable(&self) -> windows_core::Result; + fn GetRTCaps(&self) -> windows_core::Result; + fn GetEventDrivenCapable(&self) -> windows_core::Result; fn WriteExclusiveModeParametersToSharedMemory(&self, htargetprocess: usize, hnsperiod: i64, hnsbufferduration: i64, u32latencycoefficient: u32, pu32sharedmemorysize: *mut u32, phsharedmemory: *mut usize) -> windows_core::Result<()>; } impl IAudioDeviceEndpoint_Vtbl { @@ -1231,7 +1231,7 @@ impl IAudioDeviceEndpoint_Vtbl { IAudioDeviceEndpoint_Impl::SetBuffer(this, core::mem::transmute_copy(&maxperiod), core::mem::transmute_copy(&u32latencycoefficient)).into() } } - unsafe extern "system" fn GetRTCaps(this: *mut core::ffi::c_void, pbisrtcapable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetRTCaps(this: *mut core::ffi::c_void, pbisrtcapable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioDeviceEndpoint_Impl::GetRTCaps(this) { @@ -1243,7 +1243,7 @@ impl IAudioDeviceEndpoint_Vtbl { } } } - unsafe extern "system" fn GetEventDrivenCapable(this: *mut core::ffi::c_void, pbiseventcapable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetEventDrivenCapable(this: *mut core::ffi::c_void, pbiseventcapable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAudioDeviceEndpoint_Impl::GetEventDrivenCapable(this) { @@ -2425,7 +2425,7 @@ impl ITSGPolicyEngine { pub unsafe fn Refresh(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Refresh)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn IsQuarantineEnabled(&self) -> windows_core::Result { + pub unsafe fn IsQuarantineEnabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsQuarantineEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2438,13 +2438,13 @@ pub struct ITSGPolicyEngine_Vtbl { pub AuthorizeConnection: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut core::ffi::c_void, AAAuthSchemes, *mut core::ffi::c_void, *mut core::ffi::c_void, *const u8, u32, *const u8, u32, super::super::Foundation::HANDLE_PTR, *mut core::ffi::c_void) -> windows_core::HRESULT, pub AuthorizeResource: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, i32, *mut core::ffi::c_void, *const *mut core::ffi::c_void, u32, *const *mut core::ffi::c_void, u32, u32, *mut core::ffi::c_void, *const u8, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Refresh: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsQuarantineEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsQuarantineEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITSGPolicyEngine_Impl: windows_core::IUnknownImpl { fn AuthorizeConnection(&self, mainsessionid: &windows_core::GUID, username: &windows_core::BSTR, authtype: AAAuthSchemes, clientmachineip: &windows_core::BSTR, clientmachinename: &windows_core::BSTR, sohdata: *const u8, numsohbytes: u32, cookiedata: *const u8, numcookiebytes: u32, usertoken: super::super::Foundation::HANDLE_PTR, psink: windows_core::Ref) -> windows_core::Result<()>; fn AuthorizeResource(&self, mainsessionid: &windows_core::GUID, subsessionid: i32, username: &windows_core::BSTR, resourcenames: *const windows_core::BSTR, numresources: u32, alternateresourcenames: *const windows_core::BSTR, numalternateresourcename: u32, portnumber: u32, operation: &windows_core::BSTR, cookie: *const u8, numbytesincookie: u32, psink: windows_core::Ref) -> windows_core::Result<()>; fn Refresh(&self) -> windows_core::Result<()>; - fn IsQuarantineEnabled(&self) -> windows_core::Result; + fn IsQuarantineEnabled(&self) -> windows_core::Result; } impl ITSGPolicyEngine_Vtbl { pub const fn new() -> Self { @@ -2481,7 +2481,7 @@ impl ITSGPolicyEngine_Vtbl { ITSGPolicyEngine_Impl::Refresh(this).into() } } - unsafe extern "system" fn IsQuarantineEnabled(this: *mut core::ffi::c_void, quarantineenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsQuarantineEnabled(this: *mut core::ffi::c_void, quarantineenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITSGPolicyEngine_Impl::IsQuarantineEnabled(this) { @@ -2617,7 +2617,7 @@ impl ITsSbClientConnection { (windows_core::Interface::vtable(self).ClientConnectionPropertySet)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn IsFirstAssignment(&self) -> windows_core::Result { + pub unsafe fn IsFirstAssignment(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsFirstAssignment)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2665,7 +2665,7 @@ pub struct ITsSbClientConnection_Vtbl { pub ClientConnectionPropertySet: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] ClientConnectionPropertySet: usize, - pub IsFirstAssignment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsFirstAssignment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub RdFarmType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut RD_FARM_TYPE) -> windows_core::HRESULT, pub UserSidString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut i8) -> windows_core::HRESULT, pub GetDisconnectedSession: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2683,7 +2683,7 @@ pub trait ITsSbClientConnection_Impl: windows_core::IUnknownImpl { fn get_ConnectionError(&self) -> windows_core::Result<()>; fn SamUserAccount(&self) -> windows_core::Result; fn ClientConnectionPropertySet(&self) -> windows_core::Result; - fn IsFirstAssignment(&self) -> windows_core::Result; + fn IsFirstAssignment(&self) -> windows_core::Result; fn RdFarmType(&self) -> windows_core::Result; fn UserSidString(&self) -> windows_core::Result<*mut i8>; fn GetDisconnectedSession(&self) -> windows_core::Result; @@ -2811,7 +2811,7 @@ impl ITsSbClientConnection_Vtbl { } } } - unsafe extern "system" fn IsFirstAssignment(this: *mut core::ffi::c_void, ppval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsFirstAssignment(this: *mut core::ffi::c_void, ppval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITsSbClientConnection_Impl::IsFirstAssignment(this) { @@ -3421,14 +3421,14 @@ impl ITsSbLoadBalancingNotifySink { #[repr(C)] pub struct ITsSbLoadBalancingNotifySink_Vtbl { pub base__: ITsSbBaseNotifySink_Vtbl, - pub OnGetMostSuitableTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnGetMostSuitableTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITsSbLoadBalancingNotifySink_Impl: ITsSbBaseNotifySink_Impl { - fn OnGetMostSuitableTarget(&self, plbresult: windows_core::Ref, fisnewconnection: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnGetMostSuitableTarget(&self, plbresult: windows_core::Ref, fisnewconnection: windows_core::BOOL) -> windows_core::Result<()>; } impl ITsSbLoadBalancingNotifySink_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnGetMostSuitableTarget(this: *mut core::ffi::c_void, plbresult: *mut core::ffi::c_void, fisnewconnection: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnGetMostSuitableTarget(this: *mut core::ffi::c_void, plbresult: *mut core::ffi::c_void, fisnewconnection: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbLoadBalancingNotifySink_Impl::OnGetMostSuitableTarget(this, core::mem::transmute_copy(&plbresult), core::mem::transmute_copy(&fisnewconnection)).into() @@ -4525,15 +4525,15 @@ pub struct ITsSbResourcePluginStore_Vtbl { pub AddTargetToStore: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub AddSessionToStore: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub AddEnvironmentToStore: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub RemoveEnvironmentFromStore: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub RemoveEnvironmentFromStore: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub EnumerateFarms: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut super::Com::SAFEARRAY) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] EnumerateFarms: usize, pub QueryEnvironment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub EnumerateEnvironments: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SaveTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SaveEnvironment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SaveTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub SaveEnvironment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SaveSession: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub SetTargetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *const super::Variant::VARIANT) -> windows_core::HRESULT, @@ -4574,12 +4574,12 @@ pub trait ITsSbResourcePluginStore_Impl: windows_core::IUnknownImpl { fn AddTargetToStore(&self, ptarget: windows_core::Ref) -> windows_core::Result<()>; fn AddSessionToStore(&self, psession: windows_core::Ref) -> windows_core::Result<()>; fn AddEnvironmentToStore(&self, penvironment: windows_core::Ref) -> windows_core::Result<()>; - fn RemoveEnvironmentFromStore(&self, environmentname: &windows_core::BSTR, bignoreowner: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn RemoveEnvironmentFromStore(&self, environmentname: &windows_core::BSTR, bignoreowner: windows_core::BOOL) -> windows_core::Result<()>; fn EnumerateFarms(&self, pdwcount: *mut u32, pval: *mut *mut super::Com::SAFEARRAY) -> windows_core::Result<()>; fn QueryEnvironment(&self, environmentname: &windows_core::BSTR) -> windows_core::Result; fn EnumerateEnvironments(&self, pdwcount: *mut u32, pval: *mut *mut Option) -> windows_core::Result<()>; - fn SaveTarget(&self, ptarget: windows_core::Ref, bforcewrite: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SaveEnvironment(&self, penvironment: windows_core::Ref, bforcewrite: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SaveTarget(&self, ptarget: windows_core::Ref, bforcewrite: windows_core::BOOL) -> windows_core::Result<()>; + fn SaveEnvironment(&self, penvironment: windows_core::Ref, bforcewrite: windows_core::BOOL) -> windows_core::Result<()>; fn SaveSession(&self, psession: windows_core::Ref) -> windows_core::Result<()>; fn SetTargetProperty(&self, targetname: &windows_core::BSTR, propertyname: &windows_core::BSTR, pproperty: *const super::Variant::VARIANT) -> windows_core::Result<()>; fn SetEnvironmentProperty(&self, environmentname: &windows_core::BSTR, propertyname: &windows_core::BSTR, pproperty: *const super::Variant::VARIANT) -> windows_core::Result<()>; @@ -4643,7 +4643,7 @@ impl ITsSbResourcePluginStore_Vtbl { ITsSbResourcePluginStore_Impl::AddEnvironmentToStore(this, core::mem::transmute_copy(&penvironment)).into() } } - unsafe extern "system" fn RemoveEnvironmentFromStore(this: *mut core::ffi::c_void, environmentname: *mut core::ffi::c_void, bignoreowner: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RemoveEnvironmentFromStore(this: *mut core::ffi::c_void, environmentname: *mut core::ffi::c_void, bignoreowner: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::RemoveEnvironmentFromStore(this, core::mem::transmute(&environmentname), core::mem::transmute_copy(&bignoreowner)).into() @@ -4673,13 +4673,13 @@ impl ITsSbResourcePluginStore_Vtbl { ITsSbResourcePluginStore_Impl::EnumerateEnvironments(this, core::mem::transmute_copy(&pdwcount), core::mem::transmute_copy(&pval)).into() } } - unsafe extern "system" fn SaveTarget(this: *mut core::ffi::c_void, ptarget: *mut core::ffi::c_void, bforcewrite: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SaveTarget(this: *mut core::ffi::c_void, ptarget: *mut core::ffi::c_void, bforcewrite: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::SaveTarget(this, core::mem::transmute_copy(&ptarget), core::mem::transmute_copy(&bforcewrite)).into() } } - unsafe extern "system" fn SaveEnvironment(this: *mut core::ffi::c_void, penvironment: *mut core::ffi::c_void, bforcewrite: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SaveEnvironment(this: *mut core::ffi::c_void, penvironment: *mut core::ffi::c_void, bforcewrite: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITsSbResourcePluginStore_Impl::SaveEnvironment(this, core::mem::transmute_copy(&penvironment), core::mem::transmute_copy(&bforcewrite)).into() @@ -6084,14 +6084,14 @@ pub struct IWRdsGraphicsChannelEvents_Vtbl { pub OnDataReceived: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const u8) -> windows_core::HRESULT, pub OnClose: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub OnChannelOpened: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::HRESULT, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub OnDataSent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *const u8, u32) -> windows_core::HRESULT, + pub OnDataSent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *const u8, u32) -> windows_core::HRESULT, pub OnMetricsUpdate: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, u64) -> windows_core::HRESULT, } pub trait IWRdsGraphicsChannelEvents_Impl: windows_core::IUnknownImpl { fn OnDataReceived(&self, cbsize: u32, pbuffer: *const u8) -> windows_core::Result<()>; fn OnClose(&self) -> windows_core::Result<()>; fn OnChannelOpened(&self, openresult: windows_core::HRESULT, popencontext: windows_core::Ref) -> windows_core::Result<()>; - fn OnDataSent(&self, pwritecontext: windows_core::Ref, bcancelled: super::super::Foundation::BOOL, pbuffer: *const u8, cbbuffer: u32) -> windows_core::Result<()>; + fn OnDataSent(&self, pwritecontext: windows_core::Ref, bcancelled: windows_core::BOOL, pbuffer: *const u8, cbbuffer: u32) -> windows_core::Result<()>; fn OnMetricsUpdate(&self, bandwidth: u32, rtt: u32, lastsentbyteindex: u64) -> windows_core::Result<()>; } impl IWRdsGraphicsChannelEvents_Vtbl { @@ -6114,7 +6114,7 @@ impl IWRdsGraphicsChannelEvents_Vtbl { IWRdsGraphicsChannelEvents_Impl::OnChannelOpened(this, core::mem::transmute_copy(&openresult), core::mem::transmute_copy(&popencontext)).into() } } - unsafe extern "system" fn OnDataSent(this: *mut core::ffi::c_void, pwritecontext: *mut core::ffi::c_void, bcancelled: super::super::Foundation::BOOL, pbuffer: *const u8, cbbuffer: u32) -> windows_core::HRESULT { + unsafe extern "system" fn OnDataSent(this: *mut core::ffi::c_void, pwritecontext: *mut core::ffi::c_void, bcancelled: windows_core::BOOL, pbuffer: *const u8, cbbuffer: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsGraphicsChannelEvents_Impl::OnDataSent(this, core::mem::transmute_copy(&pwritecontext), core::mem::transmute_copy(&bcancelled), core::mem::transmute_copy(&pbuffer), core::mem::transmute_copy(&cbbuffer)).into() @@ -6299,7 +6299,7 @@ pub struct IWRdsProtocolConnection_Vtbl { pub GetVideoHandle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT, pub ConnectNotify: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub IsUserAllowedToLogon: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::HANDLE_PTR, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, - pub SessionArbitrationEnumeration: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE_PTR, super::super::Foundation::BOOL, *mut u32, *mut u32) -> windows_core::HRESULT, + pub SessionArbitrationEnumeration: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE_PTR, windows_core::BOOL, *mut u32, *mut u32) -> windows_core::HRESULT, pub LogonNotify: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE_PTR, windows_core::PCWSTR, windows_core::PCWSTR, *const WTS_SESSION_ID, *mut WRDS_CONNECTION_SETTINGS) -> windows_core::HRESULT, pub PreDisconnect: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub DisconnectNotify: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -6307,7 +6307,7 @@ pub struct IWRdsProtocolConnection_Vtbl { pub GetProtocolStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WTS_PROTOCOL_STATUS) -> windows_core::HRESULT, pub GetLastInputTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub SetErrorInfo: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub CreateVirtualChannel: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, super::super::Foundation::BOOL, u32, *mut usize) -> windows_core::HRESULT, + pub CreateVirtualChannel: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, windows_core::BOOL, u32, *mut usize) -> windows_core::HRESULT, pub QueryProperty: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, u32, u32, *const WTS_PROPERTY_VALUE, *mut WTS_PROPERTY_VALUE) -> windows_core::HRESULT, pub GetShadowConnection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub NotifyCommandProcessCreated: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -6325,7 +6325,7 @@ pub trait IWRdsProtocolConnection_Impl: windows_core::IUnknownImpl { fn GetVideoHandle(&self) -> windows_core::Result; fn ConnectNotify(&self, sessionid: u32) -> windows_core::Result<()>; fn IsUserAllowedToLogon(&self, sessionid: u32, usertoken: super::super::Foundation::HANDLE_PTR, pdomainname: &windows_core::PCWSTR, pusername: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn SessionArbitrationEnumeration(&self, husertoken: super::super::Foundation::HANDLE_PTR, bsinglesessionperuserenabled: super::super::Foundation::BOOL, psessionidarray: *mut u32, pdwsessionidentifiercount: *mut u32) -> windows_core::Result<()>; + fn SessionArbitrationEnumeration(&self, husertoken: super::super::Foundation::HANDLE_PTR, bsinglesessionperuserenabled: windows_core::BOOL, psessionidarray: *mut u32, pdwsessionidentifiercount: *mut u32) -> windows_core::Result<()>; fn LogonNotify(&self, hclienttoken: super::super::Foundation::HANDLE_PTR, wszusername: &windows_core::PCWSTR, wszdomainname: &windows_core::PCWSTR, sessionid: *const WTS_SESSION_ID, pwrdsconnectionsettings: *mut WRDS_CONNECTION_SETTINGS) -> windows_core::Result<()>; fn PreDisconnect(&self, disconnectreason: u32) -> windows_core::Result<()>; fn DisconnectNotify(&self) -> windows_core::Result<()>; @@ -6333,7 +6333,7 @@ pub trait IWRdsProtocolConnection_Impl: windows_core::IUnknownImpl { fn GetProtocolStatus(&self, pprotocolstatus: *mut WTS_PROTOCOL_STATUS) -> windows_core::Result<()>; fn GetLastInputTime(&self) -> windows_core::Result; fn SetErrorInfo(&self, ulerror: u32) -> windows_core::Result<()>; - fn CreateVirtualChannel(&self, szendpointname: &windows_core::PCSTR, bstatic: super::super::Foundation::BOOL, requestedpriority: u32) -> windows_core::Result; + fn CreateVirtualChannel(&self, szendpointname: &windows_core::PCSTR, bstatic: windows_core::BOOL, requestedpriority: u32) -> windows_core::Result; fn QueryProperty(&self, querytype: &windows_core::GUID, ulnumentriesin: u32, ulnumentriesout: u32, ppropertyentriesin: *const WTS_PROPERTY_VALUE, ppropertyentriesout: *mut WTS_PROPERTY_VALUE) -> windows_core::Result<()>; fn GetShadowConnection(&self) -> windows_core::Result; fn NotifyCommandProcessCreated(&self, sessionid: u32) -> windows_core::Result<()>; @@ -6430,7 +6430,7 @@ impl IWRdsProtocolConnection_Vtbl { IWRdsProtocolConnection_Impl::IsUserAllowedToLogon(this, core::mem::transmute_copy(&sessionid), core::mem::transmute_copy(&usertoken), core::mem::transmute(&pdomainname), core::mem::transmute(&pusername)).into() } } - unsafe extern "system" fn SessionArbitrationEnumeration(this: *mut core::ffi::c_void, husertoken: super::super::Foundation::HANDLE_PTR, bsinglesessionperuserenabled: super::super::Foundation::BOOL, psessionidarray: *mut u32, pdwsessionidentifiercount: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn SessionArbitrationEnumeration(this: *mut core::ffi::c_void, husertoken: super::super::Foundation::HANDLE_PTR, bsinglesessionperuserenabled: windows_core::BOOL, psessionidarray: *mut u32, pdwsessionidentifiercount: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsProtocolConnection_Impl::SessionArbitrationEnumeration(this, core::mem::transmute_copy(&husertoken), core::mem::transmute_copy(&bsinglesessionperuserenabled), core::mem::transmute_copy(&psessionidarray), core::mem::transmute_copy(&pdwsessionidentifiercount)).into() @@ -6484,7 +6484,7 @@ impl IWRdsProtocolConnection_Vtbl { IWRdsProtocolConnection_Impl::SetErrorInfo(this, core::mem::transmute_copy(&ulerror)).into() } } - unsafe extern "system" fn CreateVirtualChannel(this: *mut core::ffi::c_void, szendpointname: windows_core::PCSTR, bstatic: super::super::Foundation::BOOL, requestedpriority: u32, phchannel: *mut usize) -> windows_core::HRESULT { + unsafe extern "system" fn CreateVirtualChannel(this: *mut core::ffi::c_void, szendpointname: windows_core::PCSTR, bstatic: windows_core::BOOL, requestedpriority: u32, phchannel: *mut usize) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWRdsProtocolConnection_Impl::CreateVirtualChannel(this, core::mem::transmute(&szendpointname), core::mem::transmute_copy(&bstatic), core::mem::transmute_copy(&requestedpriority)) { @@ -7287,13 +7287,13 @@ pub struct IWRdsWddmIddProps_Vtbl { pub GetHardwareId: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32) -> windows_core::HRESULT, pub OnDriverLoad: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT, pub OnDriverUnload: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub EnableWddmIdd: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableWddmIdd: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWRdsWddmIddProps_Impl: windows_core::IUnknownImpl { fn GetHardwareId(&self, pdisplaydriverhardwareid: &windows_core::PCWSTR, count: u32) -> windows_core::Result<()>; fn OnDriverLoad(&self, sessionid: u32, driverhandle: super::super::Foundation::HANDLE_PTR) -> windows_core::Result<()>; fn OnDriverUnload(&self, sessionid: u32) -> windows_core::Result<()>; - fn EnableWddmIdd(&self, enabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EnableWddmIdd(&self, enabled: windows_core::BOOL) -> windows_core::Result<()>; } impl IWRdsWddmIddProps_Vtbl { pub const fn new() -> Self { @@ -7315,7 +7315,7 @@ impl IWRdsWddmIddProps_Vtbl { IWRdsWddmIddProps_Impl::OnDriverUnload(this, core::mem::transmute_copy(&sessionid)).into() } } - unsafe extern "system" fn EnableWddmIdd(this: *mut core::ffi::c_void, enabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableWddmIdd(this: *mut core::ffi::c_void, enabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWRdsWddmIddProps_Impl::EnableWddmIdd(this, core::mem::transmute_copy(&enabled)).into() @@ -7581,7 +7581,7 @@ impl windows_core::RuntimeName for IWTSListener {} windows_core::imp::define_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: &windows_core::BSTR, pbaccept: *mut super::super::Foundation::BOOL, ppcallback: *mut Option) -> windows_core::Result<()> + pub unsafe fn OnNewChannelConnection(&self, pchannel: P0, data: &windows_core::BSTR, pbaccept: *mut windows_core::BOOL, ppcallback: *mut Option) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -7591,14 +7591,14 @@ impl IWTSListenerCallback { #[repr(C)] pub struct IWTSListenerCallback_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnNewChannelConnection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub OnNewChannelConnection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IWTSListenerCallback_Impl: windows_core::IUnknownImpl { - fn OnNewChannelConnection(&self, pchannel: windows_core::Ref, data: &windows_core::BSTR, pbaccept: *mut super::super::Foundation::BOOL, ppcallback: windows_core::OutRef<'_, IWTSVirtualChannelCallback>) -> windows_core::Result<()>; + fn OnNewChannelConnection(&self, pchannel: windows_core::Ref, data: &windows_core::BSTR, pbaccept: *mut windows_core::BOOL, ppcallback: windows_core::OutRef<'_, IWTSVirtualChannelCallback>) -> windows_core::Result<()>; } impl IWTSListenerCallback_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnNewChannelConnection(this: *mut core::ffi::c_void, pchannel: *mut core::ffi::c_void, data: *mut core::ffi::c_void, pbaccept: *mut super::super::Foundation::BOOL, ppcallback: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn OnNewChannelConnection(this: *mut core::ffi::c_void, pchannel: *mut core::ffi::c_void, data: *mut core::ffi::c_void, pbaccept: *mut windows_core::BOOL, ppcallback: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSListenerCallback_Impl::OnNewChannelConnection(this, core::mem::transmute_copy(&pchannel), core::mem::transmute(&data), core::mem::transmute_copy(&pbaccept), core::mem::transmute_copy(&ppcallback)).into() @@ -7835,7 +7835,7 @@ pub struct IWTSProtocolConnection_Vtbl { pub GetProtocolHandles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::HANDLE_PTR, *mut super::super::Foundation::HANDLE_PTR, *mut super::super::Foundation::HANDLE_PTR, *mut super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT, pub ConnectNotify: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub IsUserAllowedToLogon: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::HANDLE_PTR, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, - pub SessionArbitrationEnumeration: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE_PTR, super::super::Foundation::BOOL, *mut u32, *mut u32) -> windows_core::HRESULT, + pub SessionArbitrationEnumeration: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE_PTR, windows_core::BOOL, *mut u32, *mut u32) -> windows_core::HRESULT, pub LogonNotify: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE_PTR, windows_core::PCWSTR, windows_core::PCWSTR, *const WTS_SESSION_ID) -> windows_core::HRESULT, pub GetUserData: unsafe extern "system" fn(*mut core::ffi::c_void, *const WTS_POLICY_DATA, *mut WTS_USER_DATA) -> windows_core::HRESULT, pub DisconnectNotify: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -7844,7 +7844,7 @@ pub struct IWTSProtocolConnection_Vtbl { pub GetLastInputTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub SetErrorInfo: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub SendBeep: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, - pub CreateVirtualChannel: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, super::super::Foundation::BOOL, u32, *mut usize) -> windows_core::HRESULT, + pub CreateVirtualChannel: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, windows_core::BOOL, u32, *mut usize) -> windows_core::HRESULT, pub QueryProperty: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, u32, u32, *const WTS_PROPERTY_VALUE, *mut WTS_PROPERTY_VALUE) -> windows_core::HRESULT, pub GetShadowConnection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -7860,7 +7860,7 @@ pub trait IWTSProtocolConnection_Impl: windows_core::IUnknownImpl { fn GetProtocolHandles(&self, pkeyboardhandle: *mut super::super::Foundation::HANDLE_PTR, pmousehandle: *mut super::super::Foundation::HANDLE_PTR, pbeephandle: *mut super::super::Foundation::HANDLE_PTR, pvideohandle: *mut super::super::Foundation::HANDLE_PTR) -> windows_core::Result<()>; fn ConnectNotify(&self, sessionid: u32) -> windows_core::Result<()>; fn IsUserAllowedToLogon(&self, sessionid: u32, usertoken: super::super::Foundation::HANDLE_PTR, pdomainname: &windows_core::PCWSTR, pusername: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn SessionArbitrationEnumeration(&self, husertoken: super::super::Foundation::HANDLE_PTR, bsinglesessionperuserenabled: super::super::Foundation::BOOL, psessionidarray: *mut u32, pdwsessionidentifiercount: *mut u32) -> windows_core::Result<()>; + fn SessionArbitrationEnumeration(&self, husertoken: super::super::Foundation::HANDLE_PTR, bsinglesessionperuserenabled: windows_core::BOOL, psessionidarray: *mut u32, pdwsessionidentifiercount: *mut u32) -> windows_core::Result<()>; fn LogonNotify(&self, hclienttoken: super::super::Foundation::HANDLE_PTR, wszusername: &windows_core::PCWSTR, wszdomainname: &windows_core::PCWSTR, sessionid: *const WTS_SESSION_ID) -> windows_core::Result<()>; fn GetUserData(&self, ppolicydata: *const WTS_POLICY_DATA, pclientdata: *mut WTS_USER_DATA) -> windows_core::Result<()>; fn DisconnectNotify(&self) -> windows_core::Result<()>; @@ -7869,7 +7869,7 @@ pub trait IWTSProtocolConnection_Impl: windows_core::IUnknownImpl { fn GetLastInputTime(&self) -> windows_core::Result; fn SetErrorInfo(&self, ulerror: u32) -> windows_core::Result<()>; fn SendBeep(&self, frequency: u32, duration: u32) -> windows_core::Result<()>; - fn CreateVirtualChannel(&self, szendpointname: &windows_core::PCSTR, bstatic: super::super::Foundation::BOOL, requestedpriority: u32) -> windows_core::Result; + fn CreateVirtualChannel(&self, szendpointname: &windows_core::PCSTR, bstatic: windows_core::BOOL, requestedpriority: u32) -> windows_core::Result; fn QueryProperty(&self, querytype: &windows_core::GUID, ulnumentriesin: u32, ulnumentriesout: u32, ppropertyentriesin: *const WTS_PROPERTY_VALUE, ppropertyentriesout: *mut WTS_PROPERTY_VALUE) -> windows_core::Result<()>; fn GetShadowConnection(&self) -> windows_core::Result; } @@ -7953,7 +7953,7 @@ impl IWTSProtocolConnection_Vtbl { IWTSProtocolConnection_Impl::IsUserAllowedToLogon(this, core::mem::transmute_copy(&sessionid), core::mem::transmute_copy(&usertoken), core::mem::transmute(&pdomainname), core::mem::transmute(&pusername)).into() } } - unsafe extern "system" fn SessionArbitrationEnumeration(this: *mut core::ffi::c_void, husertoken: super::super::Foundation::HANDLE_PTR, bsinglesessionperuserenabled: super::super::Foundation::BOOL, psessionidarray: *mut u32, pdwsessionidentifiercount: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn SessionArbitrationEnumeration(this: *mut core::ffi::c_void, husertoken: super::super::Foundation::HANDLE_PTR, bsinglesessionperuserenabled: windows_core::BOOL, psessionidarray: *mut u32, pdwsessionidentifiercount: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWTSProtocolConnection_Impl::SessionArbitrationEnumeration(this, core::mem::transmute_copy(&husertoken), core::mem::transmute_copy(&bsinglesessionperuserenabled), core::mem::transmute_copy(&psessionidarray), core::mem::transmute_copy(&pdwsessionidentifiercount)).into() @@ -8013,7 +8013,7 @@ impl IWTSProtocolConnection_Vtbl { IWTSProtocolConnection_Impl::SendBeep(this, core::mem::transmute_copy(&frequency), core::mem::transmute_copy(&duration)).into() } } - unsafe extern "system" fn CreateVirtualChannel(this: *mut core::ffi::c_void, szendpointname: windows_core::PCSTR, bstatic: super::super::Foundation::BOOL, requestedpriority: u32, phchannel: *mut usize) -> windows_core::HRESULT { + unsafe extern "system" fn CreateVirtualChannel(this: *mut core::ffi::c_void, szendpointname: windows_core::PCSTR, bstatic: windows_core::BOOL, requestedpriority: u32, phchannel: *mut usize) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWTSProtocolConnection_Impl::CreateVirtualChannel(this, core::mem::transmute(&szendpointname), core::mem::transmute_copy(&bstatic), core::mem::transmute_copy(&requestedpriority)) { @@ -9960,7 +9960,7 @@ pub const PROPERTY_TYPE_GET_FAST_RECONNECT: windows_core::GUID = windows_core::G pub const PROPERTY_TYPE_GET_FAST_RECONNECT_USER_SID: windows_core::GUID = windows_core::GUID::from_u128(0x197c427a_0135_4b6d_9c5e_e6579a0ab625); pub const PROVISIONING_PLUGIN: PLUGIN_TYPE = PLUGIN_TYPE(32i32); pub type PVIRTUALCHANNELCLOSE = Option u32>; -pub type PVIRTUALCHANNELENTRY = Option super::super::Foundation::BOOL>; +pub type PVIRTUALCHANNELENTRY = Option windows_core::BOOL>; pub type PVIRTUALCHANNELINIT = Option u32>; pub type PVIRTUALCHANNELOPEN = Option u32>; pub type PVIRTUALCHANNELWRITE = Option u32>; @@ -10019,7 +10019,7 @@ pub struct RFX_GFX_MONITOR_INFO { pub physicalWidth: u32, pub physicalHeight: u32, pub orientation: u32, - pub primary: super::super::Foundation::BOOL, + pub primary: windows_core::BOOL, } impl Default for RFX_GFX_MONITOR_INFO { fn default() -> Self { @@ -11216,14 +11216,14 @@ pub struct WTS_CLIENT_DATA { pub fDoubleClickDetect: bool, pub fEnableWindowsKey: bool, pub fHideTitleBar: bool, - pub fInheritAutoLogon: super::super::Foundation::BOOL, + pub fInheritAutoLogon: windows_core::BOOL, pub fPromptForPassword: bool, pub fUsingSavedCreds: bool, pub Domain: [u16; 256], pub UserName: [u16; 256], pub Password: [u16; 256], pub fPasswordIsScPin: bool, - pub fInheritInitialProgram: super::super::Foundation::BOOL, + pub fInheritInitialProgram: windows_core::BOOL, pub WorkDirectory: [u16; 257], pub InitialProgram: [u16; 257], pub fMaximizeShell: bool, @@ -11231,7 +11231,7 @@ pub struct WTS_CLIENT_DATA { pub PerformanceFlags: u32, pub ProtocolName: [u16; 9], pub ProtocolType: u16, - pub fInheritColorDepth: super::super::Foundation::BOOL, + pub fInheritColorDepth: windows_core::BOOL, pub HRes: u16, pub VRes: u16, pub ColorDepth: u16, @@ -11343,7 +11343,7 @@ pub const WTS_KEY_EXCHANGE_ALG_RSA: u32 = 1u32; pub struct WTS_LICENSE_CAPABILITIES { pub KeyExchangeAlg: u32, pub ProtocolVer: u32, - pub fAuthenticateServer: super::super::Foundation::BOOL, + pub fAuthenticateServer: windows_core::BOOL, pub CertType: WTS_CERT_TYPE, pub cbClientName: u32, pub rgbClientName: [u8; 42], 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 3ee971705e..0d14f3c3a9 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/mod.rs @@ -130,7 +130,7 @@ pub unsafe fn WSManPluginAuthzUserComplete(senderdetails: *const WSMAN_SENDE where P6: windows_core::Param, { - windows_targets::link!("wsmsvc.dll" "system" fn WSManPluginAuthzUserComplete(senderdetails : *const WSMAN_SENDER_DETAILS, flags : u32, userauthorizationcontext : *const core::ffi::c_void, impersonationtoken : super::super::Foundation:: HANDLE, userisadministrator : super::super::Foundation:: BOOL, errorcode : u32, extendederrorinformation : windows_core::PCWSTR) -> u32); + windows_targets::link!("wsmsvc.dll" "system" fn WSManPluginAuthzUserComplete(senderdetails : *const WSMAN_SENDER_DETAILS, flags : u32, userauthorizationcontext : *const core::ffi::c_void, impersonationtoken : super::super::Foundation:: HANDLE, userisadministrator : windows_core::BOOL, errorcode : u32, extendederrorinformation : windows_core::PCWSTR) -> u32); unsafe { WSManPluginAuthzUserComplete(senderdetails, flags, userauthorizationcontext.unwrap_or(core::mem::zeroed()) as _, impersonationtoken.unwrap_or(core::mem::zeroed()) as _, userisadministrator.into(), errorcode, extendederrorinformation.param().abi()) } } #[inline] @@ -224,7 +224,7 @@ pub unsafe fn WSManSendShellInput(shell: WSMAN_SHELL_HANDLE, command: Option where P3: windows_core::Param, { - windows_targets::link!("wsmsvc.dll" "system" fn WSManSendShellInput(shell : WSMAN_SHELL_HANDLE, command : WSMAN_COMMAND_HANDLE, flags : u32, streamid : windows_core::PCWSTR, streamdata : *const WSMAN_DATA, endofstream : super::super::Foundation:: BOOL, r#async : *const WSMAN_SHELL_ASYNC, sendoperation : *mut WSMAN_OPERATION_HANDLE)); + windows_targets::link!("wsmsvc.dll" "system" fn WSManSendShellInput(shell : WSMAN_SHELL_HANDLE, command : WSMAN_COMMAND_HANDLE, flags : u32, streamid : windows_core::PCWSTR, streamdata : *const WSMAN_DATA, endofstream : windows_core::BOOL, r#async : *const WSMAN_SHELL_ASYNC, sendoperation : *mut WSMAN_OPERATION_HANDLE)); unsafe { let mut result__ = core::mem::zeroed(); WSManSendShellInput(shell, command.unwrap_or(core::mem::zeroed()) as _, flags, streamid.param().abi(), streamdata, endofstream.into(), r#async, &mut result__); @@ -2126,7 +2126,7 @@ impl IWSManResourceLocator { pub unsafe fn SetMustUnderstandOptions(&self, mustunderstand: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetMustUnderstandOptions)(windows_core::Interface::as_raw(self), mustunderstand.into()).ok() } } - pub unsafe fn MustUnderstandOptions(&self) -> windows_core::Result { + pub unsafe fn MustUnderstandOptions(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MustUnderstandOptions)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2158,11 +2158,11 @@ pub struct IWSManResourceLocator_Vtbl { pub FragmentDialect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetFragmentDialect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] - pub AddOption: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::Variant::VARIANT, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AddOption: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::Variant::VARIANT, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] AddOption: usize, - pub SetMustUnderstandOptions: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub MustUnderstandOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetMustUnderstandOptions: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub MustUnderstandOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub ClearOptions: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Error: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -2176,9 +2176,9 @@ pub trait IWSManResourceLocator_Impl: super::Com::IDispatch_Impl { fn SetFragmentPath(&self, text: &windows_core::BSTR) -> windows_core::Result<()>; fn FragmentDialect(&self) -> windows_core::Result; fn SetFragmentDialect(&self, text: &windows_core::BSTR) -> windows_core::Result<()>; - fn AddOption(&self, optionname: &windows_core::BSTR, optionvalue: &super::Variant::VARIANT, mustcomply: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetMustUnderstandOptions(&self, mustunderstand: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn MustUnderstandOptions(&self) -> windows_core::Result; + fn AddOption(&self, optionname: &windows_core::BSTR, optionvalue: &super::Variant::VARIANT, mustcomply: windows_core::BOOL) -> windows_core::Result<()>; + fn SetMustUnderstandOptions(&self, mustunderstand: windows_core::BOOL) -> windows_core::Result<()>; + fn MustUnderstandOptions(&self) -> windows_core::Result; fn ClearOptions(&self) -> windows_core::Result<()>; fn Error(&self) -> windows_core::Result; } @@ -2251,19 +2251,19 @@ impl IWSManResourceLocator_Vtbl { IWSManResourceLocator_Impl::SetFragmentDialect(this, core::mem::transmute(&text)).into() } } - unsafe extern "system" fn AddOption(this: *mut core::ffi::c_void, optionname: *mut core::ffi::c_void, optionvalue: super::Variant::VARIANT, mustcomply: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AddOption(this: *mut core::ffi::c_void, optionname: *mut core::ffi::c_void, optionvalue: super::Variant::VARIANT, mustcomply: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSManResourceLocator_Impl::AddOption(this, core::mem::transmute(&optionname), core::mem::transmute(&optionvalue), core::mem::transmute_copy(&mustcomply)).into() } } - unsafe extern "system" fn SetMustUnderstandOptions(this: *mut core::ffi::c_void, mustunderstand: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetMustUnderstandOptions(this: *mut core::ffi::c_void, mustunderstand: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWSManResourceLocator_Impl::SetMustUnderstandOptions(this, core::mem::transmute_copy(&mustunderstand)).into() } } - unsafe extern "system" fn MustUnderstandOptions(this: *mut core::ffi::c_void, mustunderstand: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MustUnderstandOptions(this: *mut core::ffi::c_void, mustunderstand: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWSManResourceLocator_Impl::MustUnderstandOptions(this) { @@ -2893,7 +2893,7 @@ pub const WSMAN_OPERATION_INFOV2: u32 = 2864434397u32; pub struct WSMAN_OPTION { pub name: windows_core::PCWSTR, pub value: windows_core::PCWSTR, - pub mustComply: super::super::Foundation::BOOL, + pub mustComply: windows_core::BOOL, } impl Default for WSMAN_OPTION { fn default() -> Self { @@ -2917,7 +2917,7 @@ pub const WSMAN_OPTION_REDIRECT_LOCATION: WSManSessionOption = WSManSessionOptio pub struct WSMAN_OPTION_SET { pub optionsCount: u32, pub options: *mut WSMAN_OPTION, - pub optionsMustUnderstand: super::super::Foundation::BOOL, + pub optionsMustUnderstand: windows_core::BOOL, } impl Default for WSMAN_OPTION_SET { fn default() -> Self { @@ -2929,7 +2929,7 @@ impl Default for WSMAN_OPTION_SET { pub struct WSMAN_OPTION_SETEX { pub optionsCount: u32, pub options: *mut WSMAN_OPTION, - pub optionsMustUnderstand: super::super::Foundation::BOOL, + pub optionsMustUnderstand: windows_core::BOOL, pub optionTypes: *const windows_core::PCWSTR, } impl Default for WSMAN_OPTION_SETEX { @@ -2979,7 +2979,7 @@ pub struct WSMAN_PLUGIN_REQUEST { pub locale: windows_core::PCWSTR, pub resourceUri: windows_core::PCWSTR, pub operationInfo: *mut WSMAN_OPERATION_INFO, - pub shutdownNotification: super::super::Foundation::BOOL, + pub shutdownNotification: windows_core::BOOL, pub shutdownNotificationHandle: super::super::Foundation::HANDLE, pub dataLocale: windows_core::PCWSTR, } diff --git a/crates/libs/windows/src/Windows/Win32/System/RestartManager/mod.rs b/crates/libs/windows/src/Windows/Win32/System/RestartManager/mod.rs index 268f9f10b5..2059490a8c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RestartManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RestartManager/mod.rs @@ -125,7 +125,7 @@ pub struct RM_PROCESS_INFO { pub ApplicationType: RM_APP_TYPE, pub AppStatus: u32, pub TSSessionId: u32, - pub bRestartable: super::super::Foundation::BOOL, + pub bRestartable: windows_core::BOOL, } impl Default for RM_PROCESS_INFO { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/System/Restore/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Restore/mod.rs index d70b0876f2..295ab4ea59 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Restore/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Restore/mod.rs @@ -4,13 +4,13 @@ pub unsafe fn SRRemoveRestorePoint(dwrpnum: u32) -> u32 { unsafe { SRRemoveRestorePoint(dwrpnum) } } #[inline] -pub unsafe fn SRSetRestorePointA(prestoreptspec: *const RESTOREPOINTINFOA, psmgrstatus: *mut STATEMGRSTATUS) -> super::super::Foundation::BOOL { - windows_targets::link!("sfc.dll" "system" fn SRSetRestorePointA(prestoreptspec : *const RESTOREPOINTINFOA, psmgrstatus : *mut STATEMGRSTATUS) -> super::super::Foundation:: BOOL); +pub unsafe fn SRSetRestorePointA(prestoreptspec: *const RESTOREPOINTINFOA, psmgrstatus: *mut STATEMGRSTATUS) -> windows_core::BOOL { + windows_targets::link!("sfc.dll" "system" fn SRSetRestorePointA(prestoreptspec : *const RESTOREPOINTINFOA, psmgrstatus : *mut STATEMGRSTATUS) -> windows_core::BOOL); unsafe { SRSetRestorePointA(prestoreptspec, psmgrstatus as _) } } #[inline] -pub unsafe fn SRSetRestorePointW(prestoreptspec: *const RESTOREPOINTINFOW, psmgrstatus: *mut STATEMGRSTATUS) -> super::super::Foundation::BOOL { - windows_targets::link!("sfc.dll" "system" fn SRSetRestorePointW(prestoreptspec : *const RESTOREPOINTINFOW, psmgrstatus : *mut STATEMGRSTATUS) -> super::super::Foundation:: BOOL); +pub unsafe fn SRSetRestorePointW(prestoreptspec: *const RESTOREPOINTINFOW, psmgrstatus: *mut STATEMGRSTATUS) -> windows_core::BOOL { + windows_targets::link!("sfc.dll" "system" fn SRSetRestorePointW(prestoreptspec : *const RESTOREPOINTINFOW, psmgrstatus : *mut STATEMGRSTATUS) -> windows_core::BOOL); unsafe { SRSetRestorePointW(prestoreptspec, psmgrstatus as _) } } pub const ACCESSIBILITY_SETTING: u32 = 3u32; diff --git a/crates/libs/windows/src/Windows/Win32/System/Rpc/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Rpc/mod.rs index 590d5ff271..4a7ede2e34 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Rpc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Rpc/mod.rs @@ -1556,7 +1556,7 @@ pub unsafe fn RpcAsyncAbortCall(pasync: *mut RPC_ASYNC_STATE, exceptioncode: u32 #[cfg(feature = "Win32_System_IO")] #[inline] pub unsafe fn RpcAsyncCancelCall(pasync: *mut RPC_ASYNC_STATE, fabort: bool) -> RPC_STATUS { - windows_targets::link!("rpcrt4.dll" "system" fn RpcAsyncCancelCall(pasync : *mut RPC_ASYNC_STATE, fabort : super::super::Foundation:: BOOL) -> RPC_STATUS); + windows_targets::link!("rpcrt4.dll" "system" fn RpcAsyncCancelCall(pasync : *mut RPC_ASYNC_STATE, fabort : windows_core::BOOL) -> RPC_STATUS); unsafe { RpcAsyncCancelCall(pasync as _, fabort.into()) } } #[cfg(feature = "Win32_System_IO")] @@ -1839,7 +1839,7 @@ pub unsafe fn RpcErrorEndEnumeration(enumhandle: *mut RPC_ERROR_ENUM_HANDLE) -> } #[inline] pub unsafe fn RpcErrorGetNextRecord(enumhandle: *const RPC_ERROR_ENUM_HANDLE, copystrings: bool, errorinfo: *mut RPC_EXTENDED_ERROR_INFO) -> RPC_STATUS { - windows_targets::link!("rpcrt4.dll" "system" fn RpcErrorGetNextRecord(enumhandle : *const RPC_ERROR_ENUM_HANDLE, copystrings : super::super::Foundation:: BOOL, errorinfo : *mut RPC_EXTENDED_ERROR_INFO) -> RPC_STATUS); + windows_targets::link!("rpcrt4.dll" "system" fn RpcErrorGetNextRecord(enumhandle : *const RPC_ERROR_ENUM_HANDLE, copystrings : windows_core::BOOL, errorinfo : *mut RPC_EXTENDED_ERROR_INFO) -> RPC_STATUS); unsafe { RpcErrorGetNextRecord(enumhandle, copystrings.into(), errorinfo as _) } } #[inline] @@ -1879,7 +1879,7 @@ pub unsafe fn RpcFreeAuthorizationContext(pauthzclientcontext: *mut *mut core::f } #[inline] pub unsafe fn RpcGetAuthorizationContextForClient(clientbinding: Option<*const core::ffi::c_void>, impersonateonreturn: bool, reserved1: Option<*const core::ffi::c_void>, pexpirationtime: Option<*const i64>, reserved2: super::super::Foundation::LUID, reserved3: u32, reserved4: Option<*const core::ffi::c_void>, pauthzclientcontext: *mut *mut core::ffi::c_void) -> RPC_STATUS { - windows_targets::link!("rpcrt4.dll" "system" fn RpcGetAuthorizationContextForClient(clientbinding : *const core::ffi::c_void, impersonateonreturn : super::super::Foundation:: BOOL, reserved1 : *const core::ffi::c_void, pexpirationtime : *const i64, reserved2 : super::super::Foundation:: LUID, reserved3 : u32, reserved4 : *const core::ffi::c_void, pauthzclientcontext : *mut *mut core::ffi::c_void) -> RPC_STATUS); + windows_targets::link!("rpcrt4.dll" "system" fn RpcGetAuthorizationContextForClient(clientbinding : *const core::ffi::c_void, impersonateonreturn : windows_core::BOOL, reserved1 : *const core::ffi::c_void, pexpirationtime : *const i64, reserved2 : super::super::Foundation:: LUID, reserved3 : u32, reserved4 : *const core::ffi::c_void, pauthzclientcontext : *mut *mut core::ffi::c_void) -> RPC_STATUS); unsafe { RpcGetAuthorizationContextForClient(clientbinding.unwrap_or(core::mem::zeroed()) as _, impersonateonreturn.into(), reserved1.unwrap_or(core::mem::zeroed()) as _, pexpirationtime.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(reserved2), reserved3, reserved4.unwrap_or(core::mem::zeroed()) as _, pauthzclientcontext as _) } } #[inline] @@ -4716,7 +4716,7 @@ pub struct RPC_CALL_ATTRIBUTES_V1_A { pub ClientPrincipalName: *mut u8, pub AuthenticationLevel: u32, pub AuthenticationService: u32, - pub NullSession: super::super::Foundation::BOOL, + pub NullSession: windows_core::BOOL, } impl Default for RPC_CALL_ATTRIBUTES_V1_A { fn default() -> Self { @@ -4734,7 +4734,7 @@ pub struct RPC_CALL_ATTRIBUTES_V1_W { pub ClientPrincipalName: *mut u16, pub AuthenticationLevel: u32, pub AuthenticationService: u32, - pub NullSession: super::super::Foundation::BOOL, + pub NullSession: windows_core::BOOL, } impl Default for RPC_CALL_ATTRIBUTES_V1_W { fn default() -> Self { @@ -4752,8 +4752,8 @@ pub struct RPC_CALL_ATTRIBUTES_V2_A { pub ClientPrincipalName: *mut u8, pub AuthenticationLevel: u32, pub AuthenticationService: u32, - pub NullSession: super::super::Foundation::BOOL, - pub KernelModeCaller: super::super::Foundation::BOOL, + pub NullSession: windows_core::BOOL, + pub KernelModeCaller: windows_core::BOOL, pub ProtocolSequence: u32, pub IsClientLocal: u32, pub ClientPID: super::super::Foundation::HANDLE, @@ -4779,8 +4779,8 @@ pub struct RPC_CALL_ATTRIBUTES_V2_W { pub ClientPrincipalName: *mut u16, pub AuthenticationLevel: u32, pub AuthenticationService: u32, - pub NullSession: super::super::Foundation::BOOL, - pub KernelModeCaller: super::super::Foundation::BOOL, + pub NullSession: windows_core::BOOL, + pub KernelModeCaller: windows_core::BOOL, pub ProtocolSequence: u32, pub IsClientLocal: RpcCallClientLocality, pub ClientPID: super::super::Foundation::HANDLE, @@ -4806,8 +4806,8 @@ pub struct RPC_CALL_ATTRIBUTES_V3_A { pub ClientPrincipalName: *mut u8, pub AuthenticationLevel: u32, pub AuthenticationService: u32, - pub NullSession: super::super::Foundation::BOOL, - pub KernelModeCaller: super::super::Foundation::BOOL, + pub NullSession: windows_core::BOOL, + pub KernelModeCaller: windows_core::BOOL, pub ProtocolSequence: u32, pub IsClientLocal: u32, pub ClientPID: super::super::Foundation::HANDLE, @@ -4835,8 +4835,8 @@ pub struct RPC_CALL_ATTRIBUTES_V3_W { pub ClientPrincipalName: *mut u16, pub AuthenticationLevel: u32, pub AuthenticationService: u32, - pub NullSession: super::super::Foundation::BOOL, - pub KernelModeCaller: super::super::Foundation::BOOL, + pub NullSession: windows_core::BOOL, + pub KernelModeCaller: windows_core::BOOL, pub ProtocolSequence: u32, pub IsClientLocal: RpcCallClientLocality, pub ClientPID: super::super::Foundation::HANDLE, 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 190173d643..56b7e2681d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs @@ -6,8 +6,8 @@ pub unsafe fn ODBCGetTryWaitValue() -> u32 { unsafe { ODBCGetTryWaitValue() } } #[inline] -pub unsafe fn ODBCSetTryWaitValue(dwvalue: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("odbc32.dll" "system" fn ODBCSetTryWaitValue(dwvalue : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn ODBCSetTryWaitValue(dwvalue: u32) -> windows_core::BOOL { + windows_targets::link!("odbc32.dll" "system" fn ODBCSetTryWaitValue(dwvalue : u32) -> windows_core::BOOL); unsafe { ODBCSetTryWaitValue(dwvalue) } } #[inline] @@ -2665,7 +2665,7 @@ pub struct DBLITERALINFO { pub pwszInvalidChars: windows_core::PWSTR, pub pwszInvalidStartingChars: windows_core::PWSTR, pub lt: u32, - pub fSupported: super::super::Foundation::BOOL, + pub fSupported: windows_core::BOOL, pub cchMaxLen: u32, } #[cfg(target_arch = "x86")] @@ -2682,7 +2682,7 @@ pub struct DBLITERALINFO { pub pwszInvalidChars: windows_core::PWSTR, pub pwszInvalidStartingChars: windows_core::PWSTR, pub lt: u32, - pub fSupported: super::super::Foundation::BOOL, + pub fSupported: windows_core::BOOL, pub cchMaxLen: u32, } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] @@ -6533,15 +6533,15 @@ impl IConditionFactory { pub struct IConditionFactory_Vtbl { pub base__: windows_core::IUnknown_Vtbl, #[cfg(feature = "Win32_System_Com")] - pub MakeNot: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub MakeNot: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] MakeNot: usize, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common"))] - pub MakeAndOr: unsafe extern "system" fn(*mut core::ffi::c_void, Common::CONDITION_TYPE, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub MakeAndOr: unsafe extern "system" fn(*mut core::ffi::c_void, Common::CONDITION_TYPE, *mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common")))] MakeAndOr: usize, #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Search_Common", feature = "Win32_System_Variant"))] - pub MakeLeaf: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, Common::CONDITION_OPERATION, windows_core::PCWSTR, *const super::Com::StructuredStorage::PROPVARIANT, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub MakeLeaf: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, Common::CONDITION_OPERATION, windows_core::PCWSTR, *const super::Com::StructuredStorage::PROPVARIANT, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Search_Common", feature = "Win32_System_Variant")))] MakeLeaf: usize, #[cfg(feature = "Win32_System_Com")] @@ -6551,15 +6551,15 @@ pub struct IConditionFactory_Vtbl { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Search_Common", feature = "Win32_System_Variant"))] pub trait IConditionFactory_Impl: windows_core::IUnknownImpl { - fn MakeNot(&self, pcsub: windows_core::Ref, fsimplify: super::super::Foundation::BOOL) -> windows_core::Result; - fn MakeAndOr(&self, ct: Common::CONDITION_TYPE, peusubs: windows_core::Ref, fsimplify: super::super::Foundation::BOOL) -> windows_core::Result; - fn MakeLeaf(&self, pszpropertyname: &windows_core::PCWSTR, cop: Common::CONDITION_OPERATION, pszvaluetype: &windows_core::PCWSTR, ppropvar: *const super::Com::StructuredStorage::PROPVARIANT, ppropertynameterm: windows_core::Ref, poperationterm: windows_core::Ref, pvalueterm: windows_core::Ref, fexpand: super::super::Foundation::BOOL) -> windows_core::Result; + fn MakeNot(&self, pcsub: windows_core::Ref, fsimplify: windows_core::BOOL) -> windows_core::Result; + fn MakeAndOr(&self, ct: Common::CONDITION_TYPE, peusubs: windows_core::Ref, fsimplify: windows_core::BOOL) -> windows_core::Result; + fn MakeLeaf(&self, pszpropertyname: &windows_core::PCWSTR, cop: Common::CONDITION_OPERATION, pszvaluetype: &windows_core::PCWSTR, ppropvar: *const super::Com::StructuredStorage::PROPVARIANT, ppropertynameterm: windows_core::Ref, poperationterm: windows_core::Ref, pvalueterm: windows_core::Ref, fexpand: windows_core::BOOL) -> windows_core::Result; fn Resolve(&self, pc: windows_core::Ref, sqro: STRUCTURED_QUERY_RESOLVE_OPTION, pstreferencetime: *const super::super::Foundation::SYSTEMTIME) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Search_Common", feature = "Win32_System_Variant"))] impl IConditionFactory_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn MakeNot(this: *mut core::ffi::c_void, pcsub: *mut core::ffi::c_void, fsimplify: super::super::Foundation::BOOL, ppcresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn MakeNot(this: *mut core::ffi::c_void, pcsub: *mut core::ffi::c_void, fsimplify: windows_core::BOOL, ppcresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConditionFactory_Impl::MakeNot(this, core::mem::transmute_copy(&pcsub), core::mem::transmute_copy(&fsimplify)) { @@ -6571,7 +6571,7 @@ impl IConditionFactory_Vtbl { } } } - unsafe extern "system" fn MakeAndOr(this: *mut core::ffi::c_void, ct: Common::CONDITION_TYPE, peusubs: *mut core::ffi::c_void, fsimplify: super::super::Foundation::BOOL, ppcresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn MakeAndOr(this: *mut core::ffi::c_void, ct: Common::CONDITION_TYPE, peusubs: *mut core::ffi::c_void, fsimplify: windows_core::BOOL, ppcresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConditionFactory_Impl::MakeAndOr(this, core::mem::transmute_copy(&ct), core::mem::transmute_copy(&peusubs), core::mem::transmute_copy(&fsimplify)) { @@ -6583,7 +6583,7 @@ impl IConditionFactory_Vtbl { } } } - unsafe extern "system" fn MakeLeaf(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, cop: Common::CONDITION_OPERATION, pszvaluetype: windows_core::PCWSTR, ppropvar: *const super::Com::StructuredStorage::PROPVARIANT, ppropertynameterm: *mut core::ffi::c_void, poperationterm: *mut core::ffi::c_void, pvalueterm: *mut core::ffi::c_void, fexpand: super::super::Foundation::BOOL, ppcresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn MakeLeaf(this: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, cop: Common::CONDITION_OPERATION, pszvaluetype: windows_core::PCWSTR, ppropvar: *const super::Com::StructuredStorage::PROPVARIANT, ppropertynameterm: *mut core::ffi::c_void, poperationterm: *mut core::ffi::c_void, pvalueterm: *mut core::ffi::c_void, fexpand: windows_core::BOOL, ppcresult: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConditionFactory_Impl::MakeLeaf(this, core::mem::transmute(&pszpropertyname), core::mem::transmute_copy(&cop), core::mem::transmute(&pszvaluetype), core::mem::transmute_copy(&ppropvar), core::mem::transmute_copy(&ppropertynameterm), core::mem::transmute_copy(&poperationterm), core::mem::transmute_copy(&pvalueterm), core::mem::transmute_copy(&fexpand)) { @@ -6715,7 +6715,7 @@ impl IConditionFactory2 { #[repr(C)] pub struct IConditionFactory2_Vtbl { pub base__: IConditionFactory_Vtbl, - pub CreateTrueFalse: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, CONDITION_CREATION_OPTIONS, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateTrueFalse: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, CONDITION_CREATION_OPTIONS, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub CreateNegation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, CONDITION_CREATION_OPTIONS, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -6737,7 +6737,7 @@ pub struct IConditionFactory2_Vtbl { #[cfg(not(feature = "Win32_System_Search_Common"))] CreateIntegerLeaf: usize, #[cfg(feature = "Win32_System_Search_Common")] - pub CreateBooleanLeaf: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, Common::CONDITION_OPERATION, super::super::Foundation::BOOL, CONDITION_CREATION_OPTIONS, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateBooleanLeaf: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, Common::CONDITION_OPERATION, windows_core::BOOL, CONDITION_CREATION_OPTIONS, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Search_Common"))] CreateBooleanLeaf: usize, #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Search_Common", feature = "Win32_System_Variant"))] @@ -6751,20 +6751,20 @@ pub struct IConditionFactory2_Vtbl { } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Search_Common", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_Common"))] pub trait IConditionFactory2_Impl: IConditionFactory_Impl { - fn CreateTrueFalse(&self, fval: super::super::Foundation::BOOL, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; + fn CreateTrueFalse(&self, fval: windows_core::BOOL, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn CreateNegation(&self, pcsub: windows_core::Ref, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn CreateCompoundFromObjectArray(&self, ct: Common::CONDITION_TYPE, poasubs: windows_core::Ref, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn CreateCompoundFromArray(&self, ct: Common::CONDITION_TYPE, ppcondsubs: *const Option, csubs: u32, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn CreateStringLeaf(&self, propkey: *const super::super::Foundation::PROPERTYKEY, cop: Common::CONDITION_OPERATION, pszvalue: &windows_core::PCWSTR, pszlocalename: &windows_core::PCWSTR, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn CreateIntegerLeaf(&self, propkey: *const super::super::Foundation::PROPERTYKEY, cop: Common::CONDITION_OPERATION, lvalue: i32, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; - fn CreateBooleanLeaf(&self, propkey: *const super::super::Foundation::PROPERTYKEY, cop: Common::CONDITION_OPERATION, fvalue: super::super::Foundation::BOOL, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; + fn CreateBooleanLeaf(&self, propkey: *const super::super::Foundation::PROPERTYKEY, cop: Common::CONDITION_OPERATION, fvalue: windows_core::BOOL, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn CreateLeaf(&self, propkey: *const super::super::Foundation::PROPERTYKEY, cop: Common::CONDITION_OPERATION, propvar: *const super::Com::StructuredStorage::PROPVARIANT, pszsemantictype: &windows_core::PCWSTR, pszlocalename: &windows_core::PCWSTR, ppropertynameterm: windows_core::Ref, poperationterm: windows_core::Ref, pvalueterm: windows_core::Ref, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn ResolveCondition(&self, pc: windows_core::Ref, sqro: STRUCTURED_QUERY_RESOLVE_OPTION, pstreferencetime: *const super::super::Foundation::SYSTEMTIME, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Search_Common", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_Common"))] impl IConditionFactory2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CreateTrueFalse(this: *mut core::ffi::c_void, fval: super::super::Foundation::BOOL, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateTrueFalse(this: *mut core::ffi::c_void, fval: windows_core::BOOL, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConditionFactory2_Impl::CreateTrueFalse(this, core::mem::transmute_copy(&fval), core::mem::transmute_copy(&cco), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() @@ -6800,7 +6800,7 @@ impl IConditionFactory2_Vtbl { IConditionFactory2_Impl::CreateIntegerLeaf(this, core::mem::transmute_copy(&propkey), core::mem::transmute_copy(&cop), core::mem::transmute_copy(&lvalue), core::mem::transmute_copy(&cco), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } } - unsafe extern "system" fn CreateBooleanLeaf(this: *mut core::ffi::c_void, propkey: *const super::super::Foundation::PROPERTYKEY, cop: Common::CONDITION_OPERATION, fvalue: super::super::Foundation::BOOL, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateBooleanLeaf(this: *mut core::ffi::c_void, propkey: *const super::super::Foundation::PROPERTYKEY, cop: Common::CONDITION_OPERATION, fvalue: windows_core::BOOL, cco: CONDITION_CREATION_OPTIONS, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConditionFactory2_Impl::CreateBooleanLeaf(this, core::mem::transmute_copy(&propkey), core::mem::transmute_copy(&cop), core::mem::transmute_copy(&fvalue), core::mem::transmute_copy(&cco), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() @@ -6855,7 +6855,7 @@ impl IConditionGenerator { unsafe { (windows_core::Interface::vtable(self).RecognizeNamedEntities)(windows_core::Interface::as_raw(self), pszinputstring.param().abi(), lciduserlocale, ptokencollection.param().abi(), pnamedentities.param().abi()).ok() } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common"))] - pub unsafe fn GenerateForLeaf(&self, pconditionfactory: P0, pszpropertyname: P1, cop: Common::CONDITION_OPERATION, pszvaluetype: P3, pszvalue: P4, pszvalue2: P5, ppropertynameterm: P6, poperationterm: P7, pvalueterm: P8, automaticwildcard: bool, pnostringquery: *mut super::super::Foundation::BOOL) -> windows_core::Result + pub unsafe fn GenerateForLeaf(&self, pconditionfactory: P0, pszpropertyname: P1, cop: Common::CONDITION_OPERATION, pszvaluetype: P3, pszvalue: P4, pszvalue2: P5, ppropertynameterm: P6, poperationterm: P7, pvalueterm: P8, automaticwildcard: bool, pnostringquery: *mut windows_core::BOOL) -> windows_core::Result where P0: windows_core::Param, P1: windows_core::Param, @@ -6885,11 +6885,11 @@ pub struct IConditionGenerator_Vtbl { pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub RecognizeNamedEntities: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common"))] - pub GenerateForLeaf: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::PCWSTR, Common::CONDITION_OPERATION, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GenerateForLeaf: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::PCWSTR, Common::CONDITION_OPERATION, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common")))] GenerateForLeaf: usize, #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] - pub DefaultPhrase: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const super::Com::StructuredStorage::PROPVARIANT, super::super::Foundation::BOOL, *mut windows_core::PWSTR) -> windows_core::HRESULT, + pub DefaultPhrase: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const super::Com::StructuredStorage::PROPVARIANT, windows_core::BOOL, *mut windows_core::PWSTR) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] DefaultPhrase: usize, } @@ -6897,8 +6897,8 @@ pub struct IConditionGenerator_Vtbl { pub trait IConditionGenerator_Impl: windows_core::IUnknownImpl { fn Initialize(&self, pschemaprovider: windows_core::Ref) -> windows_core::Result<()>; fn RecognizeNamedEntities(&self, pszinputstring: &windows_core::PCWSTR, lciduserlocale: u32, ptokencollection: windows_core::Ref, pnamedentities: windows_core::Ref) -> windows_core::Result<()>; - fn GenerateForLeaf(&self, pconditionfactory: windows_core::Ref, pszpropertyname: &windows_core::PCWSTR, cop: Common::CONDITION_OPERATION, pszvaluetype: &windows_core::PCWSTR, pszvalue: &windows_core::PCWSTR, pszvalue2: &windows_core::PCWSTR, ppropertynameterm: windows_core::Ref, poperationterm: windows_core::Ref, pvalueterm: windows_core::Ref, automaticwildcard: super::super::Foundation::BOOL, pnostringquery: *mut super::super::Foundation::BOOL) -> windows_core::Result; - fn DefaultPhrase(&self, pszvaluetype: &windows_core::PCWSTR, ppropvar: *const super::Com::StructuredStorage::PROPVARIANT, fuseenglish: super::super::Foundation::BOOL, ppszphrase: *mut windows_core::PWSTR) -> windows_core::Result<()>; + fn GenerateForLeaf(&self, pconditionfactory: windows_core::Ref, pszpropertyname: &windows_core::PCWSTR, cop: Common::CONDITION_OPERATION, pszvaluetype: &windows_core::PCWSTR, pszvalue: &windows_core::PCWSTR, pszvalue2: &windows_core::PCWSTR, ppropertynameterm: windows_core::Ref, poperationterm: windows_core::Ref, pvalueterm: windows_core::Ref, automaticwildcard: windows_core::BOOL, pnostringquery: *mut windows_core::BOOL) -> windows_core::Result; + fn DefaultPhrase(&self, pszvaluetype: &windows_core::PCWSTR, ppropvar: *const super::Com::StructuredStorage::PROPVARIANT, fuseenglish: windows_core::BOOL, ppszphrase: *mut windows_core::PWSTR) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Search_Common", feature = "Win32_System_Variant"))] impl IConditionGenerator_Vtbl { @@ -6915,7 +6915,7 @@ impl IConditionGenerator_Vtbl { IConditionGenerator_Impl::RecognizeNamedEntities(this, core::mem::transmute(&pszinputstring), core::mem::transmute_copy(&lciduserlocale), core::mem::transmute_copy(&ptokencollection), core::mem::transmute_copy(&pnamedentities)).into() } } - unsafe extern "system" fn GenerateForLeaf(this: *mut core::ffi::c_void, pconditionfactory: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, cop: Common::CONDITION_OPERATION, pszvaluetype: windows_core::PCWSTR, pszvalue: windows_core::PCWSTR, pszvalue2: windows_core::PCWSTR, ppropertynameterm: *mut core::ffi::c_void, poperationterm: *mut core::ffi::c_void, pvalueterm: *mut core::ffi::c_void, automaticwildcard: super::super::Foundation::BOOL, pnostringquery: *mut super::super::Foundation::BOOL, ppqueryexpression: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GenerateForLeaf(this: *mut core::ffi::c_void, pconditionfactory: *mut core::ffi::c_void, pszpropertyname: windows_core::PCWSTR, cop: Common::CONDITION_OPERATION, pszvaluetype: windows_core::PCWSTR, pszvalue: windows_core::PCWSTR, pszvalue2: windows_core::PCWSTR, ppropertynameterm: *mut core::ffi::c_void, poperationterm: *mut core::ffi::c_void, pvalueterm: *mut core::ffi::c_void, automaticwildcard: windows_core::BOOL, pnostringquery: *mut windows_core::BOOL, ppqueryexpression: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IConditionGenerator_Impl::GenerateForLeaf(this, core::mem::transmute_copy(&pconditionfactory), core::mem::transmute(&pszpropertyname), core::mem::transmute_copy(&cop), core::mem::transmute(&pszvaluetype), core::mem::transmute(&pszvalue), core::mem::transmute(&pszvalue2), core::mem::transmute_copy(&ppropertynameterm), core::mem::transmute_copy(&poperationterm), core::mem::transmute_copy(&pvalueterm), core::mem::transmute_copy(&automaticwildcard), core::mem::transmute_copy(&pnostringquery)) { @@ -6927,7 +6927,7 @@ impl IConditionGenerator_Vtbl { } } } - unsafe extern "system" fn DefaultPhrase(this: *mut core::ffi::c_void, pszvaluetype: windows_core::PCWSTR, ppropvar: *const super::Com::StructuredStorage::PROPVARIANT, fuseenglish: super::super::Foundation::BOOL, ppszphrase: *mut windows_core::PWSTR) -> windows_core::HRESULT { + unsafe extern "system" fn DefaultPhrase(this: *mut core::ffi::c_void, pszvaluetype: windows_core::PCWSTR, ppropvar: *const super::Com::StructuredStorage::PROPVARIANT, fuseenglish: windows_core::BOOL, ppszphrase: *mut windows_core::PWSTR) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IConditionGenerator_Impl::DefaultPhrase(this, core::mem::transmute(&pszvaluetype), core::mem::transmute_copy(&ppropvar), core::mem::transmute_copy(&fuseenglish), core::mem::transmute_copy(&ppszphrase)).into() @@ -9142,40 +9142,40 @@ impl ILoadFilter { pub struct ILoadFilter_Vtbl { pub base__: windows_core::IUnknown_Vtbl, #[cfg(feature = "Win32_Storage_IndexServer")] - pub LoadIFilter: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const FILTERED_DATA_SOURCES, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut windows_core::GUID, *mut i32, *mut *mut u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub LoadIFilter: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const FILTERED_DATA_SOURCES, *mut core::ffi::c_void, windows_core::BOOL, *mut windows_core::GUID, *mut i32, *mut *mut u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Storage_IndexServer"))] LoadIFilter: usize, #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com_StructuredStorage"))] - pub LoadIFilterFromStorage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL, *mut windows_core::GUID, *mut i32, *mut *mut u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub LoadIFilterFromStorage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL, *mut windows_core::GUID, *mut i32, *mut *mut u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com_StructuredStorage")))] LoadIFilterFromStorage: usize, #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] - pub LoadIFilterFromStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const FILTERED_DATA_SOURCES, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut windows_core::GUID, *mut i32, *mut *mut u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub LoadIFilterFromStream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const FILTERED_DATA_SOURCES, *mut core::ffi::c_void, windows_core::BOOL, *mut windows_core::GUID, *mut i32, *mut *mut u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com")))] LoadIFilterFromStream: usize, } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com_StructuredStorage"))] pub trait ILoadFilter_Impl: windows_core::IUnknownImpl { - fn LoadIFilter(&self, pwcspath: &windows_core::PCWSTR, pfilteredsources: *const FILTERED_DATA_SOURCES, punkouter: windows_core::Ref, fusedefault: super::super::Foundation::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: windows_core::OutRef<'_, super::super::Storage::IndexServer::IFilter>) -> windows_core::Result<()>; - fn LoadIFilterFromStorage(&self, pstg: windows_core::Ref, punkouter: windows_core::Ref, pwcsoverride: &windows_core::PCWSTR, fusedefault: super::super::Foundation::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: windows_core::OutRef<'_, super::super::Storage::IndexServer::IFilter>) -> windows_core::Result<()>; - fn LoadIFilterFromStream(&self, pstm: windows_core::Ref, pfilteredsources: *const FILTERED_DATA_SOURCES, punkouter: windows_core::Ref, fusedefault: super::super::Foundation::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: windows_core::OutRef<'_, super::super::Storage::IndexServer::IFilter>) -> windows_core::Result<()>; + fn LoadIFilter(&self, pwcspath: &windows_core::PCWSTR, pfilteredsources: *const FILTERED_DATA_SOURCES, punkouter: windows_core::Ref, fusedefault: windows_core::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: windows_core::OutRef<'_, super::super::Storage::IndexServer::IFilter>) -> windows_core::Result<()>; + fn LoadIFilterFromStorage(&self, pstg: windows_core::Ref, punkouter: windows_core::Ref, pwcsoverride: &windows_core::PCWSTR, fusedefault: windows_core::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: windows_core::OutRef<'_, super::super::Storage::IndexServer::IFilter>) -> windows_core::Result<()>; + fn LoadIFilterFromStream(&self, pstm: windows_core::Ref, pfilteredsources: *const FILTERED_DATA_SOURCES, punkouter: windows_core::Ref, fusedefault: windows_core::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: windows_core::OutRef<'_, super::super::Storage::IndexServer::IFilter>) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com_StructuredStorage"))] impl ILoadFilter_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn LoadIFilter(this: *mut core::ffi::c_void, pwcspath: windows_core::PCWSTR, pfilteredsources: *const FILTERED_DATA_SOURCES, punkouter: *mut core::ffi::c_void, fusedefault: super::super::Foundation::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn LoadIFilter(this: *mut core::ffi::c_void, pwcspath: windows_core::PCWSTR, pfilteredsources: *const FILTERED_DATA_SOURCES, punkouter: *mut core::ffi::c_void, fusedefault: windows_core::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoadFilter_Impl::LoadIFilter(this, core::mem::transmute(&pwcspath), core::mem::transmute_copy(&pfilteredsources), core::mem::transmute_copy(&punkouter), core::mem::transmute_copy(&fusedefault), core::mem::transmute_copy(&pfilterclsid), core::mem::transmute_copy(&searchdecsize), core::mem::transmute_copy(&pwcssearchdesc), core::mem::transmute_copy(&ppifilt)).into() } } - unsafe extern "system" fn LoadIFilterFromStorage(this: *mut core::ffi::c_void, pstg: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, pwcsoverride: windows_core::PCWSTR, fusedefault: super::super::Foundation::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn LoadIFilterFromStorage(this: *mut core::ffi::c_void, pstg: *mut core::ffi::c_void, punkouter: *mut core::ffi::c_void, pwcsoverride: windows_core::PCWSTR, fusedefault: windows_core::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoadFilter_Impl::LoadIFilterFromStorage(this, core::mem::transmute_copy(&pstg), core::mem::transmute_copy(&punkouter), core::mem::transmute(&pwcsoverride), core::mem::transmute_copy(&fusedefault), core::mem::transmute_copy(&pfilterclsid), core::mem::transmute_copy(&searchdecsize), core::mem::transmute_copy(&pwcssearchdesc), core::mem::transmute_copy(&ppifilt)).into() } } - unsafe extern "system" fn LoadIFilterFromStream(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, pfilteredsources: *const FILTERED_DATA_SOURCES, punkouter: *mut core::ffi::c_void, fusedefault: super::super::Foundation::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn LoadIFilterFromStream(this: *mut core::ffi::c_void, pstm: *mut core::ffi::c_void, pfilteredsources: *const FILTERED_DATA_SOURCES, punkouter: *mut core::ffi::c_void, fusedefault: windows_core::BOOL, pfilterclsid: *mut windows_core::GUID, searchdecsize: *mut i32, pwcssearchdesc: *mut *mut u16, ppifilt: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoadFilter_Impl::LoadIFilterFromStream(this, core::mem::transmute_copy(&pstm), core::mem::transmute_copy(&pfilteredsources), core::mem::transmute_copy(&punkouter), core::mem::transmute_copy(&fusedefault), core::mem::transmute_copy(&pfilterclsid), core::mem::transmute_copy(&searchdecsize), core::mem::transmute_copy(&pwcssearchdesc), core::mem::transmute_copy(&ppifilt)).into() @@ -9204,7 +9204,7 @@ impl core::ops::Deref for ILoadFilterWithPrivateComActivation { windows_core::imp::interface_hierarchy!(ILoadFilterWithPrivateComActivation, windows_core::IUnknown, ILoadFilter); impl ILoadFilterWithPrivateComActivation { #[cfg(feature = "Win32_Storage_IndexServer")] - pub unsafe fn LoadIFilterWithPrivateComActivation(&self, filteredsources: *const FILTERED_DATA_SOURCES, usedefault: bool, filterclsid: *mut windows_core::GUID, isfilterprivatecomactivated: *mut super::super::Foundation::BOOL, filterobj: *mut Option) -> windows_core::Result<()> { + pub unsafe fn LoadIFilterWithPrivateComActivation(&self, filteredsources: *const FILTERED_DATA_SOURCES, usedefault: bool, filterclsid: *mut windows_core::GUID, isfilterprivatecomactivated: *mut windows_core::BOOL, filterobj: *mut Option) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).LoadIFilterWithPrivateComActivation)(windows_core::Interface::as_raw(self), filteredsources, usedefault.into(), filterclsid as _, isfilterprivatecomactivated as _, core::mem::transmute(filterobj)).ok() } } } @@ -9212,18 +9212,18 @@ impl ILoadFilterWithPrivateComActivation { pub struct ILoadFilterWithPrivateComActivation_Vtbl { pub base__: ILoadFilter_Vtbl, #[cfg(feature = "Win32_Storage_IndexServer")] - pub LoadIFilterWithPrivateComActivation: unsafe extern "system" fn(*mut core::ffi::c_void, *const FILTERED_DATA_SOURCES, super::super::Foundation::BOOL, *mut windows_core::GUID, *mut super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub LoadIFilterWithPrivateComActivation: unsafe extern "system" fn(*mut core::ffi::c_void, *const FILTERED_DATA_SOURCES, windows_core::BOOL, *mut windows_core::GUID, *mut windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Storage_IndexServer"))] LoadIFilterWithPrivateComActivation: usize, } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com_StructuredStorage"))] pub trait ILoadFilterWithPrivateComActivation_Impl: ILoadFilter_Impl { - fn LoadIFilterWithPrivateComActivation(&self, filteredsources: *const FILTERED_DATA_SOURCES, usedefault: super::super::Foundation::BOOL, filterclsid: *mut windows_core::GUID, isfilterprivatecomactivated: *mut super::super::Foundation::BOOL, filterobj: windows_core::OutRef<'_, super::super::Storage::IndexServer::IFilter>) -> windows_core::Result<()>; + fn LoadIFilterWithPrivateComActivation(&self, filteredsources: *const FILTERED_DATA_SOURCES, usedefault: windows_core::BOOL, filterclsid: *mut windows_core::GUID, isfilterprivatecomactivated: *mut windows_core::BOOL, filterobj: windows_core::OutRef<'_, super::super::Storage::IndexServer::IFilter>) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com_StructuredStorage"))] impl ILoadFilterWithPrivateComActivation_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn LoadIFilterWithPrivateComActivation(this: *mut core::ffi::c_void, filteredsources: *const FILTERED_DATA_SOURCES, usedefault: super::super::Foundation::BOOL, filterclsid: *mut windows_core::GUID, isfilterprivatecomactivated: *mut super::super::Foundation::BOOL, filterobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn LoadIFilterWithPrivateComActivation(this: *mut core::ffi::c_void, filteredsources: *const FILTERED_DATA_SOURCES, usedefault: windows_core::BOOL, filterclsid: *mut windows_core::GUID, isfilterprivatecomactivated: *mut windows_core::BOOL, filterobj: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ILoadFilterWithPrivateComActivation_Impl::LoadIFilterWithPrivateComActivation(this, core::mem::transmute_copy(&filteredsources), core::mem::transmute_copy(&usedefault), core::mem::transmute_copy(&filterclsid), core::mem::transmute_copy(&isfilterprivatecomactivated), core::mem::transmute_copy(&filterobj)).into() @@ -9629,7 +9629,7 @@ impl IObjectAccessControl { } } #[cfg(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer"))] - pub unsafe fn IsObjectAccessAllowed(&self, pobject: *const SEC_OBJECT, paccessentry: *const super::super::Security::Authorization::EXPLICIT_ACCESS_W) -> windows_core::Result { + pub unsafe fn IsObjectAccessAllowed(&self, pobject: *const SEC_OBJECT, paccessentry: *const super::super::Security::Authorization::EXPLICIT_ACCESS_W) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsObjectAccessAllowed)(windows_core::Interface::as_raw(self), pobject, paccessentry, &mut result__).map(|| result__) @@ -9656,7 +9656,7 @@ pub struct IObjectAccessControl_Vtbl { #[cfg(not(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer")))] GetObjectOwner: usize, #[cfg(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer"))] - pub IsObjectAccessAllowed: unsafe extern "system" fn(*mut core::ffi::c_void, *const SEC_OBJECT, *const super::super::Security::Authorization::EXPLICIT_ACCESS_W, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsObjectAccessAllowed: unsafe extern "system" fn(*mut core::ffi::c_void, *const SEC_OBJECT, *const super::super::Security::Authorization::EXPLICIT_ACCESS_W, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer")))] IsObjectAccessAllowed: usize, #[cfg(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer"))] @@ -9672,7 +9672,7 @@ pub struct IObjectAccessControl_Vtbl { pub trait IObjectAccessControl_Impl: windows_core::IUnknownImpl { fn GetObjectAccessRights(&self, pobject: *const SEC_OBJECT, pcaccessentries: *mut u32, prgaccessentries: *mut *mut super::super::Security::Authorization::EXPLICIT_ACCESS_W) -> windows_core::Result<()>; fn GetObjectOwner(&self, pobject: *const SEC_OBJECT) -> windows_core::Result<*mut super::super::Security::Authorization::TRUSTEE_W>; - fn IsObjectAccessAllowed(&self, pobject: *const SEC_OBJECT, paccessentry: *const super::super::Security::Authorization::EXPLICIT_ACCESS_W) -> windows_core::Result; + fn IsObjectAccessAllowed(&self, pobject: *const SEC_OBJECT, paccessentry: *const super::super::Security::Authorization::EXPLICIT_ACCESS_W) -> windows_core::Result; fn SetObjectAccessRights(&self, pobject: *const SEC_OBJECT, caccessentries: u32, prgaccessentries: *mut super::super::Security::Authorization::EXPLICIT_ACCESS_W) -> windows_core::Result<()>; fn SetObjectOwner(&self, pobject: *const SEC_OBJECT, powner: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result<()>; } @@ -9697,7 +9697,7 @@ impl IObjectAccessControl_Vtbl { } } } - unsafe extern "system" fn IsObjectAccessAllowed(this: *mut core::ffi::c_void, pobject: *const SEC_OBJECT, paccessentry: *const super::super::Security::Authorization::EXPLICIT_ACCESS_W, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsObjectAccessAllowed(this: *mut core::ffi::c_void, pobject: *const SEC_OBJECT, paccessentry: *const super::super::Security::Authorization::EXPLICIT_ACCESS_W, pfresult: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IObjectAccessControl_Impl::IsObjectAccessAllowed(this, core::mem::transmute_copy(&pobject), core::mem::transmute_copy(&paccessentry)) { @@ -9739,13 +9739,13 @@ impl windows_core::RuntimeName for IObjectAccessControl {} windows_core::imp::define_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 { + pub unsafe fn IsOplockValid(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsOplockValid)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsOplockBroken(&self) -> windows_core::Result { + pub unsafe fn IsOplockBroken(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsOplockBroken)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9761,18 +9761,18 @@ impl IOpLockStatus { #[repr(C)] pub struct IOpLockStatus_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsOplockValid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsOplockBroken: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsOplockValid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsOplockBroken: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetOplockEventHandle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::HANDLE) -> windows_core::HRESULT, } pub trait IOpLockStatus_Impl: windows_core::IUnknownImpl { - fn IsOplockValid(&self) -> windows_core::Result; - fn IsOplockBroken(&self) -> windows_core::Result; + fn IsOplockValid(&self) -> windows_core::Result; + fn IsOplockBroken(&self) -> windows_core::Result; fn GetOplockEventHandle(&self) -> windows_core::Result; } impl IOpLockStatus_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsOplockValid(this: *mut core::ffi::c_void, pfisoplockvalid: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsOplockValid(this: *mut core::ffi::c_void, pfisoplockvalid: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpLockStatus_Impl::IsOplockValid(this) { @@ -9784,7 +9784,7 @@ impl IOpLockStatus_Vtbl { } } } - unsafe extern "system" fn IsOplockBroken(this: *mut core::ffi::c_void, pfisoplockbroken: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsOplockBroken(this: *mut core::ffi::c_void, pfisoplockbroken: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpLockStatus_Impl::IsOplockBroken(this) { @@ -10085,12 +10085,12 @@ pub struct IQueryParser_Vtbl { SetMultiOption: usize, pub GetSchemaProvider: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub RestateToString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut windows_core::PWSTR) -> windows_core::HRESULT, + pub RestateToString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut windows_core::PWSTR) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] RestateToString: usize, pub ParsePropertyValue: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub RestatePropertyValueToString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut windows_core::PWSTR, *mut windows_core::PWSTR) -> windows_core::HRESULT, + pub RestatePropertyValueToString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut windows_core::PWSTR, *mut windows_core::PWSTR) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] RestatePropertyValueToString: usize, } @@ -10101,9 +10101,9 @@ pub trait IQueryParser_Impl: windows_core::IUnknownImpl { fn GetOption(&self, option: STRUCTURED_QUERY_SINGLE_OPTION) -> windows_core::Result; fn SetMultiOption(&self, option: STRUCTURED_QUERY_MULTIOPTION, pszoptionkey: &windows_core::PCWSTR, poptionvalue: *const super::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()>; fn GetSchemaProvider(&self) -> windows_core::Result; - fn RestateToString(&self, pcondition: windows_core::Ref, fuseenglish: super::super::Foundation::BOOL) -> windows_core::Result; + fn RestateToString(&self, pcondition: windows_core::Ref, fuseenglish: windows_core::BOOL) -> windows_core::Result; fn ParsePropertyValue(&self, pszpropertyname: &windows_core::PCWSTR, pszinputstring: &windows_core::PCWSTR) -> windows_core::Result; - fn RestatePropertyValueToString(&self, pcondition: windows_core::Ref, fuseenglish: super::super::Foundation::BOOL, ppszpropertyname: *mut windows_core::PWSTR, ppszquerystring: *mut windows_core::PWSTR) -> windows_core::Result<()>; + fn RestatePropertyValueToString(&self, pcondition: windows_core::Ref, fuseenglish: windows_core::BOOL, ppszpropertyname: *mut windows_core::PWSTR, ppszquerystring: *mut windows_core::PWSTR) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] impl IQueryParser_Vtbl { @@ -10156,7 +10156,7 @@ impl IQueryParser_Vtbl { } } } - unsafe extern "system" fn RestateToString(this: *mut core::ffi::c_void, pcondition: *mut core::ffi::c_void, fuseenglish: super::super::Foundation::BOOL, ppszquerystring: *mut windows_core::PWSTR) -> windows_core::HRESULT { + unsafe extern "system" fn RestateToString(this: *mut core::ffi::c_void, pcondition: *mut core::ffi::c_void, fuseenglish: windows_core::BOOL, ppszquerystring: *mut windows_core::PWSTR) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IQueryParser_Impl::RestateToString(this, core::mem::transmute_copy(&pcondition), core::mem::transmute_copy(&fuseenglish)) { @@ -10180,7 +10180,7 @@ impl IQueryParser_Vtbl { } } } - unsafe extern "system" fn RestatePropertyValueToString(this: *mut core::ffi::c_void, pcondition: *mut core::ffi::c_void, fuseenglish: super::super::Foundation::BOOL, ppszpropertyname: *mut windows_core::PWSTR, ppszquerystring: *mut windows_core::PWSTR) -> windows_core::HRESULT { + unsafe extern "system" fn RestatePropertyValueToString(this: *mut core::ffi::c_void, pcondition: *mut core::ffi::c_void, fuseenglish: windows_core::BOOL, ppszpropertyname: *mut windows_core::PWSTR, ppszquerystring: *mut windows_core::PWSTR) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryParser_Impl::RestatePropertyValueToString(this, core::mem::transmute_copy(&pcondition), core::mem::transmute_copy(&fuseenglish), core::mem::transmute_copy(&ppszpropertyname), core::mem::transmute_copy(&ppszquerystring)).into() @@ -10230,7 +10230,7 @@ impl IQueryParserManager { pub struct IQueryParserManager_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub CreateLoadedParser: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u16, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub InitializeOptions: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub InitializeOptions: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub SetOption: unsafe extern "system" fn(*mut core::ffi::c_void, QUERY_PARSER_MANAGER_OPTION, *const super::Com::StructuredStorage::PROPVARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] @@ -10239,7 +10239,7 @@ pub struct IQueryParserManager_Vtbl { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub trait IQueryParserManager_Impl: windows_core::IUnknownImpl { fn CreateLoadedParser(&self, pszcatalog: &windows_core::PCWSTR, langidforkeywords: u16, riid: *const windows_core::GUID, ppqueryparser: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; - fn InitializeOptions(&self, funderstandnqs: super::super::Foundation::BOOL, fautowildcard: super::super::Foundation::BOOL, pqueryparser: windows_core::Ref) -> windows_core::Result<()>; + fn InitializeOptions(&self, funderstandnqs: windows_core::BOOL, fautowildcard: windows_core::BOOL, pqueryparser: windows_core::Ref) -> windows_core::Result<()>; fn SetOption(&self, option: QUERY_PARSER_MANAGER_OPTION, poptionvalue: *const super::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -10251,7 +10251,7 @@ impl IQueryParserManager_Vtbl { IQueryParserManager_Impl::CreateLoadedParser(this, core::mem::transmute(&pszcatalog), core::mem::transmute_copy(&langidforkeywords), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppqueryparser)).into() } } - unsafe extern "system" fn InitializeOptions(this: *mut core::ffi::c_void, funderstandnqs: super::super::Foundation::BOOL, fautowildcard: super::super::Foundation::BOOL, pqueryparser: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn InitializeOptions(this: *mut core::ffi::c_void, funderstandnqs: windows_core::BOOL, fautowildcard: windows_core::BOOL, pqueryparser: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IQueryParserManager_Impl::InitializeOptions(this, core::mem::transmute_copy(&funderstandnqs), core::mem::transmute_copy(&fautowildcard), core::mem::transmute_copy(&pqueryparser)).into() @@ -10476,7 +10476,7 @@ impl IRelationship { pub unsafe fn Name(&self, ppszname: Option<*mut windows_core::PWSTR>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Name)(windows_core::Interface::as_raw(self), ppszname.unwrap_or(core::mem::zeroed()) as _).ok() } } - pub unsafe fn IsReal(&self) -> windows_core::Result { + pub unsafe fn IsReal(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsReal)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -10503,14 +10503,14 @@ impl IRelationship { pub struct IRelationship_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub IsReal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsReal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Destination: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub MetaData: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DefaultPhrase: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, } pub trait IRelationship_Impl: windows_core::IUnknownImpl { fn Name(&self, ppszname: *mut windows_core::PWSTR) -> windows_core::Result<()>; - fn IsReal(&self) -> windows_core::Result; + fn IsReal(&self) -> windows_core::Result; fn Destination(&self) -> windows_core::Result; fn MetaData(&self, riid: *const windows_core::GUID, pmetadata: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn DefaultPhrase(&self, ppszphrase: *mut windows_core::PWSTR) -> windows_core::Result<()>; @@ -10523,7 +10523,7 @@ impl IRelationship_Vtbl { IRelationship_Impl::Name(this, core::mem::transmute_copy(&ppszname)).into() } } - unsafe extern "system" fn IsReal(this: *mut core::ffi::c_void, pisreal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsReal(this: *mut core::ffi::c_void, pisreal: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRelationship_Impl::IsReal(this) { @@ -10821,14 +10821,14 @@ impl IRowPositionChange { #[repr(C)] pub struct IRowPositionChange_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnRowPositionChange: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnRowPositionChange: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IRowPositionChange_Impl: windows_core::IUnknownImpl { - fn OnRowPositionChange(&self, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnRowPositionChange(&self, ereason: u32, ephase: u32, fcantdeny: windows_core::BOOL) -> windows_core::Result<()>; } impl IRowPositionChange_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnRowPositionChange(this: *mut core::ffi::c_void, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnRowPositionChange(this: *mut core::ffi::c_void, ereason: u32, ephase: u32, fcantdeny: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowPositionChange_Impl::OnRowPositionChange(this, core::mem::transmute_copy(&ereason), core::mem::transmute_copy(&ephase), core::mem::transmute_copy(&fcantdeny)).into() @@ -10983,7 +10983,7 @@ impl windows_core::RuntimeName for IRowset {} windows_core::imp::define_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<()> { + pub unsafe fn RatioFinished(&self, puldenominator: *mut usize, pulnumerator: *mut usize, pcrows: *mut usize, pfnewrows: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).RatioFinished)(windows_core::Interface::as_raw(self), puldenominator as _, pulnumerator as _, pcrows as _, pfnewrows as _).ok() } } pub unsafe fn Stop(&self) -> windows_core::Result<()> { @@ -10993,16 +10993,16 @@ impl IRowsetAsynch { #[repr(C)] pub struct IRowsetAsynch_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub RatioFinished: unsafe extern "system" fn(*mut core::ffi::c_void, *mut usize, *mut usize, *mut usize, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub RatioFinished: unsafe extern "system" fn(*mut core::ffi::c_void, *mut usize, *mut usize, *mut usize, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Stop: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IRowsetAsynch_Impl: windows_core::IUnknownImpl { - fn RatioFinished(&self, puldenominator: *mut usize, pulnumerator: *mut usize, pcrows: *mut usize, pfnewrows: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn RatioFinished(&self, puldenominator: *mut usize, pulnumerator: *mut usize, pcrows: *mut usize, pfnewrows: *mut windows_core::BOOL) -> windows_core::Result<()>; fn Stop(&self) -> windows_core::Result<()>; } impl IRowsetAsynch_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn RatioFinished(this: *mut core::ffi::c_void, puldenominator: *mut usize, pulnumerator: *mut usize, pcrows: *mut usize, pfnewrows: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RatioFinished(this: *mut core::ffi::c_void, puldenominator: *mut usize, pulnumerator: *mut usize, pcrows: *mut usize, pfnewrows: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetAsynch_Impl::RatioFinished(this, core::mem::transmute_copy(&puldenominator), core::mem::transmute_copy(&pulnumerator), core::mem::transmute_copy(&pcrows), core::mem::transmute_copy(&pfnewrows)).into() @@ -11487,11 +11487,11 @@ impl IRowsetFastLoad { pub struct IRowsetFastLoad_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub InsertRow: unsafe extern "system" fn(*mut core::ffi::c_void, HACCESSOR, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Commit: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Commit: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IRowsetFastLoad_Impl: windows_core::IUnknownImpl { fn InsertRow(&self, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::Result<()>; - fn Commit(&self, fdone: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Commit(&self, fdone: windows_core::BOOL) -> windows_core::Result<()>; } impl IRowsetFastLoad_Vtbl { pub const fn new() -> Self { @@ -11501,7 +11501,7 @@ impl IRowsetFastLoad_Vtbl { IRowsetFastLoad_Impl::InsertRow(this, core::mem::transmute_copy(&haccessor), core::mem::transmute_copy(&pdata)).into() } } - unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, fdone: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Commit(this: *mut core::ffi::c_void, fdone: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetFastLoad_Impl::Commit(this, core::mem::transmute_copy(&fdone)).into() @@ -11940,30 +11940,30 @@ impl IRowsetNotify { #[repr(C)] pub struct IRowsetNotify_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnFieldChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, usize, usize, *const usize, u32, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OnRowChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, usize, *const usize, u32, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OnRowsetChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnFieldChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, usize, usize, *const usize, u32, u32, windows_core::BOOL) -> windows_core::HRESULT, + pub OnRowChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, usize, *const usize, u32, u32, windows_core::BOOL) -> windows_core::HRESULT, + pub OnRowsetChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IRowsetNotify_Impl: windows_core::IUnknownImpl { - fn OnFieldChange(&self, prowset: windows_core::Ref, hrow: usize, ccolumns: usize, rgcolumns: *const usize, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OnRowChange(&self, prowset: windows_core::Ref, crows: usize, rghrows: *const usize, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OnRowsetChange(&self, prowset: windows_core::Ref, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnFieldChange(&self, prowset: windows_core::Ref, hrow: usize, ccolumns: usize, rgcolumns: *const usize, ereason: u32, ephase: u32, fcantdeny: windows_core::BOOL) -> windows_core::Result<()>; + fn OnRowChange(&self, prowset: windows_core::Ref, crows: usize, rghrows: *const usize, ereason: u32, ephase: u32, fcantdeny: windows_core::BOOL) -> windows_core::Result<()>; + fn OnRowsetChange(&self, prowset: windows_core::Ref, ereason: u32, ephase: u32, fcantdeny: windows_core::BOOL) -> windows_core::Result<()>; } impl IRowsetNotify_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnFieldChange(this: *mut core::ffi::c_void, prowset: *mut core::ffi::c_void, hrow: usize, ccolumns: usize, rgcolumns: *const usize, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnFieldChange(this: *mut core::ffi::c_void, prowset: *mut core::ffi::c_void, hrow: usize, ccolumns: usize, rgcolumns: *const usize, ereason: u32, ephase: u32, fcantdeny: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetNotify_Impl::OnFieldChange(this, core::mem::transmute_copy(&prowset), core::mem::transmute_copy(&hrow), core::mem::transmute_copy(&ccolumns), core::mem::transmute_copy(&rgcolumns), core::mem::transmute_copy(&ereason), core::mem::transmute_copy(&ephase), core::mem::transmute_copy(&fcantdeny)).into() } } - unsafe extern "system" fn OnRowChange(this: *mut core::ffi::c_void, prowset: *mut core::ffi::c_void, crows: usize, rghrows: *const usize, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnRowChange(this: *mut core::ffi::c_void, prowset: *mut core::ffi::c_void, crows: usize, rghrows: *const usize, ereason: u32, ephase: u32, fcantdeny: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetNotify_Impl::OnRowChange(this, core::mem::transmute_copy(&prowset), core::mem::transmute_copy(&crows), core::mem::transmute_copy(&rghrows), core::mem::transmute_copy(&ereason), core::mem::transmute_copy(&ephase), core::mem::transmute_copy(&fcantdeny)).into() } } - unsafe extern "system" fn OnRowsetChange(this: *mut core::ffi::c_void, prowset: *mut core::ffi::c_void, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnRowsetChange(this: *mut core::ffi::c_void, prowset: *mut core::ffi::c_void, ereason: u32, ephase: u32, fcantdeny: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetNotify_Impl::OnRowsetChange(this, core::mem::transmute_copy(&prowset), core::mem::transmute_copy(&ereason), core::mem::transmute_copy(&ephase), core::mem::transmute_copy(&fcantdeny)).into() @@ -12096,16 +12096,16 @@ impl IRowsetRefresh { #[repr(C)] pub struct IRowsetRefresh_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub RefreshVisibleData: unsafe extern "system" fn(*mut core::ffi::c_void, usize, usize, *const usize, super::super::Foundation::BOOL, *mut usize, *mut *mut usize, *mut *mut u32) -> windows_core::HRESULT, + pub RefreshVisibleData: unsafe extern "system" fn(*mut core::ffi::c_void, usize, usize, *const usize, windows_core::BOOL, *mut usize, *mut *mut usize, *mut *mut u32) -> windows_core::HRESULT, pub GetLastVisibleData: unsafe extern "system" fn(*mut core::ffi::c_void, usize, HACCESSOR, *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IRowsetRefresh_Impl: windows_core::IUnknownImpl { - fn RefreshVisibleData(&self, hchapter: usize, crows: usize, rghrows: *const usize, foverwrite: super::super::Foundation::BOOL, pcrowsrefreshed: *mut usize, prghrowsrefreshed: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::Result<()>; + fn RefreshVisibleData(&self, hchapter: usize, crows: usize, rghrows: *const usize, foverwrite: windows_core::BOOL, pcrowsrefreshed: *mut usize, prghrowsrefreshed: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::Result<()>; fn GetLastVisibleData(&self, hrow: usize, haccessor: HACCESSOR, pdata: *mut core::ffi::c_void) -> windows_core::Result<()>; } impl IRowsetRefresh_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn RefreshVisibleData(this: *mut core::ffi::c_void, hchapter: usize, crows: usize, rghrows: *const usize, foverwrite: super::super::Foundation::BOOL, pcrowsrefreshed: *mut usize, prghrowsrefreshed: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn RefreshVisibleData(this: *mut core::ffi::c_void, hchapter: usize, crows: usize, rghrows: *const usize, foverwrite: windows_core::BOOL, pcrowsrefreshed: *mut usize, prghrowsrefreshed: *mut *mut usize, prgrowstatus: *mut *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRowsetRefresh_Impl::RefreshVisibleData(this, core::mem::transmute_copy(&hchapter), core::mem::transmute_copy(&crows), core::mem::transmute_copy(&rghrows), core::mem::transmute_copy(&foverwrite), core::mem::transmute_copy(&pcrowsrefreshed), core::mem::transmute_copy(&prghrowsrefreshed), core::mem::transmute_copy(&prgrowstatus)).into() @@ -13224,7 +13224,7 @@ impl ISearchCatalogManager { pub unsafe fn SetDiacriticSensitivity(&self, fdiacriticsensitive: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetDiacriticSensitivity)(windows_core::Interface::as_raw(self), fdiacriticsensitive.into()).ok() } } - pub unsafe fn DiacriticSensitivity(&self) -> windows_core::Result { + pub unsafe fn DiacriticSensitivity(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DiacriticSensitivity)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -13266,14 +13266,14 @@ pub struct ISearchCatalogManager_Vtbl { pub RegisterViewForNotification: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetItemsChangedSink: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void, *mut windows_core::GUID, *mut windows_core::GUID, *mut u32) -> windows_core::HRESULT, pub UnregisterViewForNotification: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub SetExtensionClusion: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetExtensionClusion: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub EnumerateExcludedExtensions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] EnumerateExcludedExtensions: usize, pub GetQueryHelper: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetDiacriticSensitivity: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub DiacriticSensitivity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetDiacriticSensitivity: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub DiacriticSensitivity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetCrawlScopeManager: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -13298,11 +13298,11 @@ pub trait ISearchCatalogManager_Impl: windows_core::IUnknownImpl { fn RegisterViewForNotification(&self, pszview: &windows_core::PCWSTR, pviewchangedsink: windows_core::Ref) -> windows_core::Result; fn GetItemsChangedSink(&self, pisearchnotifyinlinesite: windows_core::Ref, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void, pguidcatalogresetsignature: *mut windows_core::GUID, pguidcheckpointsignature: *mut windows_core::GUID, pdwlastcheckpointnumber: *mut u32) -> windows_core::Result<()>; fn UnregisterViewForNotification(&self, dwcookie: u32) -> windows_core::Result<()>; - fn SetExtensionClusion(&self, pszextension: &windows_core::PCWSTR, fexclude: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetExtensionClusion(&self, pszextension: &windows_core::PCWSTR, fexclude: windows_core::BOOL) -> windows_core::Result<()>; fn EnumerateExcludedExtensions(&self) -> windows_core::Result; fn GetQueryHelper(&self) -> windows_core::Result; - fn SetDiacriticSensitivity(&self, fdiacriticsensitive: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn DiacriticSensitivity(&self) -> windows_core::Result; + fn SetDiacriticSensitivity(&self, fdiacriticsensitive: windows_core::BOOL) -> windows_core::Result<()>; + fn DiacriticSensitivity(&self) -> windows_core::Result; fn GetCrawlScopeManager(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -13482,7 +13482,7 @@ impl ISearchCatalogManager_Vtbl { ISearchCatalogManager_Impl::UnregisterViewForNotification(this, core::mem::transmute_copy(&dwcookie)).into() } } - unsafe extern "system" fn SetExtensionClusion(this: *mut core::ffi::c_void, pszextension: windows_core::PCWSTR, fexclude: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetExtensionClusion(this: *mut core::ffi::c_void, pszextension: windows_core::PCWSTR, fexclude: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCatalogManager_Impl::SetExtensionClusion(this, core::mem::transmute(&pszextension), core::mem::transmute_copy(&fexclude)).into() @@ -13512,13 +13512,13 @@ impl ISearchCatalogManager_Vtbl { } } } - unsafe extern "system" fn SetDiacriticSensitivity(this: *mut core::ffi::c_void, fdiacriticsensitive: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetDiacriticSensitivity(this: *mut core::ffi::c_void, fdiacriticsensitive: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCatalogManager_Impl::SetDiacriticSensitivity(this, core::mem::transmute_copy(&fdiacriticsensitive)).into() } } - unsafe extern "system" fn DiacriticSensitivity(this: *mut core::ffi::c_void, pfdiacriticsensitive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DiacriticSensitivity(this: *mut core::ffi::c_void, pfdiacriticsensitive: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCatalogManager_Impl::DiacriticSensitivity(this) { @@ -13671,7 +13671,7 @@ impl ISearchCrawlScopeManager { (windows_core::Interface::vtable(self).EnumerateScopeRules)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn HasParentScopeRule(&self, pszurl: P0) -> windows_core::Result + pub unsafe fn HasParentScopeRule(&self, pszurl: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -13680,7 +13680,7 @@ impl ISearchCrawlScopeManager { (windows_core::Interface::vtable(self).HasParentScopeRule)(windows_core::Interface::as_raw(self), pszurl.param().abi(), &mut result__).map(|| result__) } } - pub unsafe fn HasChildScopeRule(&self, pszurl: P0) -> windows_core::Result + pub unsafe fn HasChildScopeRule(&self, pszurl: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -13689,7 +13689,7 @@ impl ISearchCrawlScopeManager { (windows_core::Interface::vtable(self).HasChildScopeRule)(windows_core::Interface::as_raw(self), pszurl.param().abi(), &mut result__).map(|| result__) } } - pub unsafe fn IncludedInCrawlScope(&self, pszurl: P0) -> windows_core::Result + pub unsafe fn IncludedInCrawlScope(&self, pszurl: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -13698,7 +13698,7 @@ impl ISearchCrawlScopeManager { (windows_core::Interface::vtable(self).IncludedInCrawlScope)(windows_core::Interface::as_raw(self), pszurl.param().abi(), &mut result__).map(|| result__) } } - pub unsafe fn IncludedInCrawlScopeEx(&self, pszurl: P0, pfisincluded: *mut super::super::Foundation::BOOL, preason: *mut CLUSION_REASON) -> windows_core::Result<()> + pub unsafe fn IncludedInCrawlScopeEx(&self, pszurl: P0, pfisincluded: *mut windows_core::BOOL, preason: *mut CLUSION_REASON) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -13729,36 +13729,36 @@ impl ISearchCrawlScopeManager { #[repr(C)] pub struct ISearchCrawlScopeManager_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub AddDefaultScopeRule: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL, u32) -> windows_core::HRESULT, + pub AddDefaultScopeRule: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL, u32) -> windows_core::HRESULT, pub AddRoot: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveRoot: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub EnumerateRoots: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub AddHierarchicalScope: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub AddUserScopeRule: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL, super::super::Foundation::BOOL, u32) -> windows_core::HRESULT, + pub AddHierarchicalScope: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, + pub AddUserScopeRule: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL, windows_core::BOOL, u32) -> windows_core::HRESULT, pub RemoveScopeRule: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub EnumerateScopeRules: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub HasParentScopeRule: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub HasChildScopeRule: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IncludedInCrawlScope: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IncludedInCrawlScopeEx: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL, *mut CLUSION_REASON) -> windows_core::HRESULT, + pub HasParentScopeRule: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub HasChildScopeRule: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IncludedInCrawlScope: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IncludedInCrawlScopeEx: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL, *mut CLUSION_REASON) -> windows_core::HRESULT, pub RevertToDefaultScopes: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SaveAll: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetParentScopeVersionId: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut i32) -> windows_core::HRESULT, pub RemoveDefaultScopeRule: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, } pub trait ISearchCrawlScopeManager_Impl: windows_core::IUnknownImpl { - fn AddDefaultScopeRule(&self, pszurl: &windows_core::PCWSTR, finclude: super::super::Foundation::BOOL, ffollowflags: u32) -> windows_core::Result<()>; + fn AddDefaultScopeRule(&self, pszurl: &windows_core::PCWSTR, finclude: windows_core::BOOL, ffollowflags: u32) -> windows_core::Result<()>; fn AddRoot(&self, psearchroot: windows_core::Ref) -> windows_core::Result<()>; fn RemoveRoot(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result<()>; fn EnumerateRoots(&self) -> windows_core::Result; - fn AddHierarchicalScope(&self, pszurl: &windows_core::PCWSTR, finclude: super::super::Foundation::BOOL, fdefault: super::super::Foundation::BOOL, foverridechildren: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn AddUserScopeRule(&self, pszurl: &windows_core::PCWSTR, finclude: super::super::Foundation::BOOL, foverridechildren: super::super::Foundation::BOOL, ffollowflags: u32) -> windows_core::Result<()>; + fn AddHierarchicalScope(&self, pszurl: &windows_core::PCWSTR, finclude: windows_core::BOOL, fdefault: windows_core::BOOL, foverridechildren: windows_core::BOOL) -> windows_core::Result<()>; + fn AddUserScopeRule(&self, pszurl: &windows_core::PCWSTR, finclude: windows_core::BOOL, foverridechildren: windows_core::BOOL, ffollowflags: u32) -> windows_core::Result<()>; fn RemoveScopeRule(&self, pszrule: &windows_core::PCWSTR) -> windows_core::Result<()>; fn EnumerateScopeRules(&self) -> windows_core::Result; - fn HasParentScopeRule(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result; - fn HasChildScopeRule(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result; - fn IncludedInCrawlScope(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result; - fn IncludedInCrawlScopeEx(&self, pszurl: &windows_core::PCWSTR, pfisincluded: *mut super::super::Foundation::BOOL, preason: *mut CLUSION_REASON) -> windows_core::Result<()>; + fn HasParentScopeRule(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result; + fn HasChildScopeRule(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result; + fn IncludedInCrawlScope(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result; + fn IncludedInCrawlScopeEx(&self, pszurl: &windows_core::PCWSTR, pfisincluded: *mut windows_core::BOOL, preason: *mut CLUSION_REASON) -> windows_core::Result<()>; fn RevertToDefaultScopes(&self) -> windows_core::Result<()>; fn SaveAll(&self) -> windows_core::Result<()>; fn GetParentScopeVersionId(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result; @@ -13766,7 +13766,7 @@ pub trait ISearchCrawlScopeManager_Impl: windows_core::IUnknownImpl { } impl ISearchCrawlScopeManager_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn AddDefaultScopeRule(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, finclude: super::super::Foundation::BOOL, ffollowflags: u32) -> windows_core::HRESULT { + unsafe extern "system" fn AddDefaultScopeRule(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, finclude: windows_core::BOOL, ffollowflags: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCrawlScopeManager_Impl::AddDefaultScopeRule(this, core::mem::transmute(&pszurl), core::mem::transmute_copy(&finclude), core::mem::transmute_copy(&ffollowflags)).into() @@ -13796,13 +13796,13 @@ impl ISearchCrawlScopeManager_Vtbl { } } } - unsafe extern "system" fn AddHierarchicalScope(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, finclude: super::super::Foundation::BOOL, fdefault: super::super::Foundation::BOOL, foverridechildren: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AddHierarchicalScope(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, finclude: windows_core::BOOL, fdefault: windows_core::BOOL, foverridechildren: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCrawlScopeManager_Impl::AddHierarchicalScope(this, core::mem::transmute(&pszurl), core::mem::transmute_copy(&finclude), core::mem::transmute_copy(&fdefault), core::mem::transmute_copy(&foverridechildren)).into() } } - unsafe extern "system" fn AddUserScopeRule(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, finclude: super::super::Foundation::BOOL, foverridechildren: super::super::Foundation::BOOL, ffollowflags: u32) -> windows_core::HRESULT { + unsafe extern "system" fn AddUserScopeRule(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, finclude: windows_core::BOOL, foverridechildren: windows_core::BOOL, ffollowflags: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCrawlScopeManager_Impl::AddUserScopeRule(this, core::mem::transmute(&pszurl), core::mem::transmute_copy(&finclude), core::mem::transmute_copy(&foverridechildren), core::mem::transmute_copy(&ffollowflags)).into() @@ -13826,7 +13826,7 @@ impl ISearchCrawlScopeManager_Vtbl { } } } - unsafe extern "system" fn HasParentScopeRule(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfhasparentrule: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn HasParentScopeRule(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfhasparentrule: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCrawlScopeManager_Impl::HasParentScopeRule(this, core::mem::transmute(&pszurl)) { @@ -13838,7 +13838,7 @@ impl ISearchCrawlScopeManager_Vtbl { } } } - unsafe extern "system" fn HasChildScopeRule(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfhaschildrule: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn HasChildScopeRule(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfhaschildrule: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCrawlScopeManager_Impl::HasChildScopeRule(this, core::mem::transmute(&pszurl)) { @@ -13850,7 +13850,7 @@ impl ISearchCrawlScopeManager_Vtbl { } } } - unsafe extern "system" fn IncludedInCrawlScope(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfisincluded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IncludedInCrawlScope(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfisincluded: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchCrawlScopeManager_Impl::IncludedInCrawlScope(this, core::mem::transmute(&pszurl)) { @@ -13862,7 +13862,7 @@ impl ISearchCrawlScopeManager_Vtbl { } } } - unsafe extern "system" fn IncludedInCrawlScopeEx(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfisincluded: *mut super::super::Foundation::BOOL, preason: *mut CLUSION_REASON) -> windows_core::HRESULT { + unsafe extern "system" fn IncludedInCrawlScopeEx(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pfisincluded: *mut windows_core::BOOL, preason: *mut CLUSION_REASON) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchCrawlScopeManager_Impl::IncludedInCrawlScopeEx(this, core::mem::transmute(&pszurl), core::mem::transmute_copy(&pfisincluded), core::mem::transmute_copy(&preason)).into() @@ -14035,7 +14035,7 @@ impl ISearchLanguageSupport { pub unsafe fn SetDiacriticSensitivity(&self, fdiacriticsensitive: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetDiacriticSensitivity)(windows_core::Interface::as_raw(self), fdiacriticsensitive.into()).ok() } } - pub unsafe fn GetDiacriticSensitivity(&self) -> windows_core::Result { + pub unsafe fn GetDiacriticSensitivity(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetDiacriticSensitivity)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -14065,28 +14065,28 @@ impl ISearchLanguageSupport { #[repr(C)] pub struct ISearchLanguageSupport_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetDiacriticSensitivity: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetDiacriticSensitivity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetDiacriticSensitivity: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetDiacriticSensitivity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub LoadWordBreaker: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_core::GUID, *mut *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub LoadStemmer: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_core::GUID, *mut *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub IsPrefixNormalized: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, windows_core::PCWSTR, u32, *mut u32) -> windows_core::HRESULT, } pub trait ISearchLanguageSupport_Impl: windows_core::IUnknownImpl { - fn SetDiacriticSensitivity(&self, fdiacriticsensitive: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetDiacriticSensitivity(&self) -> windows_core::Result; + fn SetDiacriticSensitivity(&self, fdiacriticsensitive: windows_core::BOOL) -> windows_core::Result<()>; + fn GetDiacriticSensitivity(&self) -> windows_core::Result; fn LoadWordBreaker(&self, lcid: u32, riid: *const windows_core::GUID, ppwordbreaker: *mut *mut core::ffi::c_void, plcidused: *mut u32) -> windows_core::Result<()>; fn LoadStemmer(&self, lcid: u32, riid: *const windows_core::GUID, ppstemmer: *mut *mut core::ffi::c_void, plcidused: *mut u32) -> windows_core::Result<()>; fn IsPrefixNormalized(&self, pwcsquerytoken: &windows_core::PCWSTR, cwcquerytoken: u32, pwcsdocumenttoken: &windows_core::PCWSTR, cwcdocumenttoken: u32) -> windows_core::Result; } impl ISearchLanguageSupport_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetDiacriticSensitivity(this: *mut core::ffi::c_void, fdiacriticsensitive: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetDiacriticSensitivity(this: *mut core::ffi::c_void, fdiacriticsensitive: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchLanguageSupport_Impl::SetDiacriticSensitivity(this, core::mem::transmute_copy(&fdiacriticsensitive)).into() } } - unsafe extern "system" fn GetDiacriticSensitivity(this: *mut core::ffi::c_void, pfdiacriticsensitive: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetDiacriticSensitivity(this: *mut core::ffi::c_void, pfdiacriticsensitive: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchLanguageSupport_Impl::GetDiacriticSensitivity(this) { @@ -14211,7 +14211,7 @@ impl ISearchManager { (windows_core::Interface::vtable(self).UseProxy)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn LocalBypass(&self) -> windows_core::Result { + pub unsafe fn LocalBypass(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).LocalBypass)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -14239,12 +14239,12 @@ pub struct ISearchManager_Vtbl { SetParameter: usize, pub ProxyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub BypassList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub SetProxy: unsafe extern "system" fn(*mut core::ffi::c_void, PROXY_ACCESS, super::super::Foundation::BOOL, u32, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, + pub SetProxy: unsafe extern "system" fn(*mut core::ffi::c_void, PROXY_ACCESS, windows_core::BOOL, u32, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, pub GetCatalog: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub UserAgent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub SetUserAgent: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub UseProxy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PROXY_ACCESS) -> windows_core::HRESULT, - pub LocalBypass: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub LocalBypass: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub PortNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -14255,12 +14255,12 @@ pub trait ISearchManager_Impl: windows_core::IUnknownImpl { fn SetParameter(&self, pszname: &windows_core::PCWSTR, pvalue: *const super::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()>; fn ProxyName(&self) -> windows_core::Result; fn BypassList(&self) -> windows_core::Result; - fn SetProxy(&self, suseproxy: PROXY_ACCESS, flocalbypassproxy: super::super::Foundation::BOOL, dwportnumber: u32, pszproxyname: &windows_core::PCWSTR, pszbypasslist: &windows_core::PCWSTR) -> windows_core::Result<()>; + fn SetProxy(&self, suseproxy: PROXY_ACCESS, flocalbypassproxy: windows_core::BOOL, dwportnumber: u32, pszproxyname: &windows_core::PCWSTR, pszbypasslist: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetCatalog(&self, pszcatalog: &windows_core::PCWSTR) -> windows_core::Result; fn UserAgent(&self) -> windows_core::Result; fn SetUserAgent(&self, pszuseragent: &windows_core::PCWSTR) -> windows_core::Result<()>; fn UseProxy(&self) -> windows_core::Result; - fn LocalBypass(&self) -> windows_core::Result; + fn LocalBypass(&self) -> windows_core::Result; fn PortNumber(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -14326,7 +14326,7 @@ impl ISearchManager_Vtbl { } } } - unsafe extern "system" fn SetProxy(this: *mut core::ffi::c_void, suseproxy: PROXY_ACCESS, flocalbypassproxy: super::super::Foundation::BOOL, dwportnumber: u32, pszproxyname: windows_core::PCWSTR, pszbypasslist: windows_core::PCWSTR) -> windows_core::HRESULT { + unsafe extern "system" fn SetProxy(this: *mut core::ffi::c_void, suseproxy: PROXY_ACCESS, flocalbypassproxy: windows_core::BOOL, dwportnumber: u32, pszproxyname: windows_core::PCWSTR, pszbypasslist: windows_core::PCWSTR) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchManager_Impl::SetProxy(this, core::mem::transmute_copy(&suseproxy), core::mem::transmute_copy(&flocalbypassproxy), core::mem::transmute_copy(&dwportnumber), core::mem::transmute(&pszproxyname), core::mem::transmute(&pszbypasslist)).into() @@ -14374,7 +14374,7 @@ impl ISearchManager_Vtbl { } } } - unsafe extern "system" fn LocalBypass(this: *mut core::ffi::c_void, pflocalbypass: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn LocalBypass(this: *mut core::ffi::c_void, pflocalbypass: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchManager_Impl::LocalBypass(this) { @@ -15296,7 +15296,7 @@ impl ISearchRoot { pub unsafe fn SetIsHierarchical(&self, fishierarchical: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetIsHierarchical)(windows_core::Interface::as_raw(self), fishierarchical.into()).ok() } } - pub unsafe fn IsHierarchical(&self) -> windows_core::Result { + pub unsafe fn IsHierarchical(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsHierarchical)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -15305,7 +15305,7 @@ impl ISearchRoot { pub unsafe fn SetProvidesNotifications(&self, fprovidesnotifications: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetProvidesNotifications)(windows_core::Interface::as_raw(self), fprovidesnotifications.into()).ok() } } - pub unsafe fn ProvidesNotifications(&self) -> windows_core::Result { + pub unsafe fn ProvidesNotifications(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ProvidesNotifications)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -15314,7 +15314,7 @@ impl ISearchRoot { pub unsafe fn SetUseNotificationsOnly(&self, fusenotificationsonly: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetUseNotificationsOnly)(windows_core::Interface::as_raw(self), fusenotificationsonly.into()).ok() } } - pub unsafe fn UseNotificationsOnly(&self) -> windows_core::Result { + pub unsafe fn UseNotificationsOnly(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).UseNotificationsOnly)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -15341,7 +15341,7 @@ impl ISearchRoot { pub unsafe fn SetFollowDirectories(&self, ffollowdirectories: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetFollowDirectories)(windows_core::Interface::as_raw(self), ffollowdirectories.into()).ok() } } - pub unsafe fn FollowDirectories(&self) -> windows_core::Result { + pub unsafe fn FollowDirectories(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FollowDirectories)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -15388,18 +15388,18 @@ pub struct ISearchRoot_Vtbl { pub Schedule: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub SetRootURL: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub RootURL: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub SetIsHierarchical: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsHierarchical: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetProvidesNotifications: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub ProvidesNotifications: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetUseNotificationsOnly: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub UseNotificationsOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetIsHierarchical: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub IsHierarchical: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetProvidesNotifications: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub ProvidesNotifications: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetUseNotificationsOnly: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub UseNotificationsOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetEnumerationDepth: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub EnumerationDepth: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetHostDepth: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub HostDepth: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub SetFollowDirectories: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub FollowDirectories: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetFollowDirectories: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub FollowDirectories: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetAuthenticationType: unsafe extern "system" fn(*mut core::ffi::c_void, AUTH_TYPE) -> windows_core::HRESULT, pub AuthenticationType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AUTH_TYPE) -> windows_core::HRESULT, pub SetUser: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, @@ -15412,18 +15412,18 @@ pub trait ISearchRoot_Impl: windows_core::IUnknownImpl { fn Schedule(&self) -> windows_core::Result; fn SetRootURL(&self, pszurl: &windows_core::PCWSTR) -> windows_core::Result<()>; fn RootURL(&self) -> windows_core::Result; - fn SetIsHierarchical(&self, fishierarchical: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn IsHierarchical(&self) -> windows_core::Result; - fn SetProvidesNotifications(&self, fprovidesnotifications: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn ProvidesNotifications(&self) -> windows_core::Result; - fn SetUseNotificationsOnly(&self, fusenotificationsonly: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn UseNotificationsOnly(&self) -> windows_core::Result; + fn SetIsHierarchical(&self, fishierarchical: windows_core::BOOL) -> windows_core::Result<()>; + fn IsHierarchical(&self) -> windows_core::Result; + fn SetProvidesNotifications(&self, fprovidesnotifications: windows_core::BOOL) -> windows_core::Result<()>; + fn ProvidesNotifications(&self) -> windows_core::Result; + fn SetUseNotificationsOnly(&self, fusenotificationsonly: windows_core::BOOL) -> windows_core::Result<()>; + fn UseNotificationsOnly(&self) -> windows_core::Result; fn SetEnumerationDepth(&self, dwdepth: u32) -> windows_core::Result<()>; fn EnumerationDepth(&self) -> windows_core::Result; fn SetHostDepth(&self, dwdepth: u32) -> windows_core::Result<()>; fn HostDepth(&self) -> windows_core::Result; - fn SetFollowDirectories(&self, ffollowdirectories: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn FollowDirectories(&self) -> windows_core::Result; + fn SetFollowDirectories(&self, ffollowdirectories: windows_core::BOOL) -> windows_core::Result<()>; + fn FollowDirectories(&self) -> windows_core::Result; fn SetAuthenticationType(&self, authtype: AUTH_TYPE) -> windows_core::Result<()>; fn AuthenticationType(&self) -> windows_core::Result; fn SetUser(&self, pszuser: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -15469,13 +15469,13 @@ impl ISearchRoot_Vtbl { } } } - unsafe extern "system" fn SetIsHierarchical(this: *mut core::ffi::c_void, fishierarchical: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetIsHierarchical(this: *mut core::ffi::c_void, fishierarchical: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchRoot_Impl::SetIsHierarchical(this, core::mem::transmute_copy(&fishierarchical)).into() } } - unsafe extern "system" fn IsHierarchical(this: *mut core::ffi::c_void, pfishierarchical: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsHierarchical(this: *mut core::ffi::c_void, pfishierarchical: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchRoot_Impl::IsHierarchical(this) { @@ -15487,13 +15487,13 @@ impl ISearchRoot_Vtbl { } } } - unsafe extern "system" fn SetProvidesNotifications(this: *mut core::ffi::c_void, fprovidesnotifications: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetProvidesNotifications(this: *mut core::ffi::c_void, fprovidesnotifications: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchRoot_Impl::SetProvidesNotifications(this, core::mem::transmute_copy(&fprovidesnotifications)).into() } } - unsafe extern "system" fn ProvidesNotifications(this: *mut core::ffi::c_void, pfprovidesnotifications: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ProvidesNotifications(this: *mut core::ffi::c_void, pfprovidesnotifications: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchRoot_Impl::ProvidesNotifications(this) { @@ -15505,13 +15505,13 @@ impl ISearchRoot_Vtbl { } } } - unsafe extern "system" fn SetUseNotificationsOnly(this: *mut core::ffi::c_void, fusenotificationsonly: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetUseNotificationsOnly(this: *mut core::ffi::c_void, fusenotificationsonly: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchRoot_Impl::SetUseNotificationsOnly(this, core::mem::transmute_copy(&fusenotificationsonly)).into() } } - unsafe extern "system" fn UseNotificationsOnly(this: *mut core::ffi::c_void, pfusenotificationsonly: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn UseNotificationsOnly(this: *mut core::ffi::c_void, pfusenotificationsonly: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchRoot_Impl::UseNotificationsOnly(this) { @@ -15559,13 +15559,13 @@ impl ISearchRoot_Vtbl { } } } - unsafe extern "system" fn SetFollowDirectories(this: *mut core::ffi::c_void, ffollowdirectories: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetFollowDirectories(this: *mut core::ffi::c_void, ffollowdirectories: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchRoot_Impl::SetFollowDirectories(this, core::mem::transmute_copy(&ffollowdirectories)).into() } } - unsafe extern "system" fn FollowDirectories(this: *mut core::ffi::c_void, pffollowdirectories: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn FollowDirectories(this: *mut core::ffi::c_void, pffollowdirectories: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchRoot_Impl::FollowDirectories(this) { @@ -15671,13 +15671,13 @@ impl ISearchScopeRule { (windows_core::Interface::vtable(self).PatternOrURL)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsIncluded(&self) -> windows_core::Result { + pub unsafe fn IsIncluded(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsIncluded)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsDefault(&self) -> windows_core::Result { + pub unsafe fn IsDefault(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsDefault)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -15694,14 +15694,14 @@ impl ISearchScopeRule { pub struct ISearchScopeRule_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub PatternOrURL: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub IsIncluded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsDefault: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsIncluded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsDefault: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub FollowFlags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } pub trait ISearchScopeRule_Impl: windows_core::IUnknownImpl { fn PatternOrURL(&self) -> windows_core::Result; - fn IsIncluded(&self) -> windows_core::Result; - fn IsDefault(&self) -> windows_core::Result; + fn IsIncluded(&self) -> windows_core::Result; + fn IsDefault(&self) -> windows_core::Result; fn FollowFlags(&self) -> windows_core::Result; } impl ISearchScopeRule_Vtbl { @@ -15718,7 +15718,7 @@ impl ISearchScopeRule_Vtbl { } } } - unsafe extern "system" fn IsIncluded(this: *mut core::ffi::c_void, pfisincluded: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsIncluded(this: *mut core::ffi::c_void, pfisincluded: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchScopeRule_Impl::IsIncluded(this) { @@ -15730,7 +15730,7 @@ impl ISearchScopeRule_Vtbl { } } } - unsafe extern "system" fn IsDefault(this: *mut core::ffi::c_void, pfisdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsDefault(this: *mut core::ffi::c_void, pfisdefault: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISearchScopeRule_Impl::IsDefault(this) { @@ -15771,7 +15771,7 @@ windows_core::imp::define_interface!(ISearchViewChangedSink, ISearchViewChangedS windows_core::imp::interface_hierarchy!(ISearchViewChangedSink, windows_core::IUnknown); impl ISearchViewChangedSink { #[cfg(feature = "Win32_System_Com")] - pub unsafe fn OnChange(&self, pdwdocid: *const i32, pchange: *const SEARCH_ITEM_CHANGE, pfinview: *const super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn OnChange(&self, pdwdocid: *const i32, pchange: *const SEARCH_ITEM_CHANGE, pfinview: *const windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).OnChange)(windows_core::Interface::as_raw(self), pdwdocid, pchange, pfinview).ok() } } } @@ -15779,18 +15779,18 @@ impl ISearchViewChangedSink { pub struct ISearchViewChangedSink_Vtbl { pub base__: windows_core::IUnknown_Vtbl, #[cfg(feature = "Win32_System_Com")] - pub OnChange: unsafe extern "system" fn(*mut core::ffi::c_void, *const i32, *const SEARCH_ITEM_CHANGE, *const super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnChange: unsafe extern "system" fn(*mut core::ffi::c_void, *const i32, *const SEARCH_ITEM_CHANGE, *const windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] OnChange: usize, } #[cfg(feature = "Win32_System_Com")] pub trait ISearchViewChangedSink_Impl: windows_core::IUnknownImpl { - fn OnChange(&self, pdwdocid: *const i32, pchange: *const SEARCH_ITEM_CHANGE, pfinview: *const super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnChange(&self, pdwdocid: *const i32, pchange: *const SEARCH_ITEM_CHANGE, pfinview: *const windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl ISearchViewChangedSink_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnChange(this: *mut core::ffi::c_void, pdwdocid: *const i32, pchange: *const SEARCH_ITEM_CHANGE, pfinview: *const super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnChange(this: *mut core::ffi::c_void, pdwdocid: *const i32, pchange: *const SEARCH_ITEM_CHANGE, pfinview: *const windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISearchViewChangedSink_Impl::OnChange(this, core::mem::transmute_copy(&pdwdocid), core::mem::transmute_copy(&pchange), core::mem::transmute_copy(&pfinview)).into() @@ -16085,7 +16085,7 @@ impl windows_core::RuntimeName for ISourcesRowset {} windows_core::imp::define_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<()> { + pub unsafe fn Init(&self, ulmaxtokensize: u32, pflicense: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), ulmaxtokensize, pflicense as _).ok() } } pub unsafe fn GenerateWordForms(&self, pwcinbuf: P0, cwc: u32, pstemsink: P2) -> windows_core::Result<()> @@ -16102,18 +16102,18 @@ impl IStemmer { #[repr(C)] pub struct IStemmer_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Init: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Init: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GenerateWordForms: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetLicenseToUse: unsafe extern "system" fn(*mut core::ffi::c_void, *const *const u16) -> windows_core::HRESULT, } pub trait IStemmer_Impl: windows_core::IUnknownImpl { - fn Init(&self, ulmaxtokensize: u32, pflicense: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Init(&self, ulmaxtokensize: u32, pflicense: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GenerateWordForms(&self, pwcinbuf: &windows_core::PCWSTR, cwc: u32, pstemsink: windows_core::Ref) -> windows_core::Result<()>; fn GetLicenseToUse(&self, ppwcslicense: *const *const u16) -> windows_core::Result<()>; } impl IStemmer_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, ulmaxtokensize: u32, pflicense: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, ulmaxtokensize: u32, pflicense: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStemmer_Impl::Init(this, core::mem::transmute_copy(&ulmaxtokensize), core::mem::transmute_copy(&pflicense)).into() @@ -16295,7 +16295,7 @@ impl ISubscriptionMgr { pub unsafe fn UpdateAll(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).UpdateAll)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn IsSubscribed(&self, pwszurl: P0) -> windows_core::Result + pub unsafe fn IsSubscribed(&self, pwszurl: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -16333,7 +16333,7 @@ pub struct ISubscriptionMgr_Vtbl { pub DeleteSubscription: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::HWND) -> windows_core::HRESULT, pub UpdateSubscription: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub UpdateAll: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsSubscribed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsSubscribed: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetSubscriptionInfo: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut SUBSCRIPTIONINFO) -> windows_core::HRESULT, pub GetDefaultInfo: unsafe extern "system" fn(*mut core::ffi::c_void, SUBSCRIPTIONTYPE, *mut SUBSCRIPTIONINFO) -> windows_core::HRESULT, pub ShowSubscriptionProperties: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::HWND) -> windows_core::HRESULT, @@ -16343,7 +16343,7 @@ pub trait ISubscriptionMgr_Impl: windows_core::IUnknownImpl { fn DeleteSubscription(&self, pwszurl: &windows_core::PCWSTR, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; fn UpdateSubscription(&self, pwszurl: &windows_core::PCWSTR) -> windows_core::Result<()>; fn UpdateAll(&self) -> windows_core::Result<()>; - fn IsSubscribed(&self, pwszurl: &windows_core::PCWSTR) -> windows_core::Result; + fn IsSubscribed(&self, pwszurl: &windows_core::PCWSTR) -> windows_core::Result; fn GetSubscriptionInfo(&self, pwszurl: &windows_core::PCWSTR, pinfo: *mut SUBSCRIPTIONINFO) -> windows_core::Result<()>; fn GetDefaultInfo(&self, subtype: SUBSCRIPTIONTYPE, pinfo: *mut SUBSCRIPTIONINFO) -> windows_core::Result<()>; fn ShowSubscriptionProperties(&self, pwszurl: &windows_core::PCWSTR, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; @@ -16369,7 +16369,7 @@ impl ISubscriptionMgr_Vtbl { ISubscriptionMgr_Impl::UpdateAll(this).into() } } - unsafe extern "system" fn IsSubscribed(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pfsubscribed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsSubscribed(this: *mut core::ffi::c_void, pwszurl: windows_core::PCWSTR, pfsubscribed: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISubscriptionMgr_Impl::IsSubscribed(this, core::mem::transmute(&pwszurl)) { @@ -17227,7 +17227,7 @@ impl ITrusteeGroupAdmin { unsafe { (windows_core::Interface::vtable(self).DeleteMember)(windows_core::Interface::as_raw(self), pmembershiptrustee, pmembertrustee).ok() } } #[cfg(feature = "Win32_Security_Authorization")] - pub unsafe fn IsMember(&self, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result { + pub unsafe fn IsMember(&self, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsMember)(windows_core::Interface::as_raw(self), pmembershiptrustee, pmembertrustee, &mut result__).map(|| result__) @@ -17254,7 +17254,7 @@ pub struct ITrusteeGroupAdmin_Vtbl { #[cfg(not(feature = "Win32_Security_Authorization"))] DeleteMember: usize, #[cfg(feature = "Win32_Security_Authorization")] - pub IsMember: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Security::Authorization::TRUSTEE_W, *const super::super::Security::Authorization::TRUSTEE_W, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsMember: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Security::Authorization::TRUSTEE_W, *const super::super::Security::Authorization::TRUSTEE_W, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Security_Authorization"))] IsMember: usize, #[cfg(feature = "Win32_Security_Authorization")] @@ -17270,7 +17270,7 @@ pub struct ITrusteeGroupAdmin_Vtbl { pub trait ITrusteeGroupAdmin_Impl: windows_core::IUnknownImpl { fn AddMember(&self, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result<()>; fn DeleteMember(&self, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result<()>; - fn IsMember(&self, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result; + fn IsMember(&self, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result; fn GetMembers(&self, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pcmembers: *mut u32, prgmembers: *mut *mut super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result<()>; fn GetMemberships(&self, ptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pcmemberships: *mut u32, prgmemberships: *mut *mut super::super::Security::Authorization::TRUSTEE_W) -> windows_core::Result<()>; } @@ -17289,7 +17289,7 @@ impl ITrusteeGroupAdmin_Vtbl { ITrusteeGroupAdmin_Impl::DeleteMember(this, core::mem::transmute_copy(&pmembershiptrustee), core::mem::transmute_copy(&pmembertrustee)).into() } } - unsafe extern "system" fn IsMember(this: *mut core::ffi::c_void, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W, pfstatus: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsMember(this: *mut core::ffi::c_void, pmembershiptrustee: *const super::super::Security::Authorization::TRUSTEE_W, pmembertrustee: *const super::super::Security::Authorization::TRUSTEE_W, pfstatus: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITrusteeGroupAdmin_Impl::IsMember(this, core::mem::transmute_copy(&pmembershiptrustee), core::mem::transmute_copy(&pmembertrustee)) { @@ -17342,7 +17342,7 @@ impl IUMS { pub unsafe fn SqlUmsSwitchNonPremptive(&self) { unsafe { (windows_core::Interface::vtable(self).SqlUmsSwitchNonPremptive)(windows_core::Interface::as_raw(self)) } } - pub unsafe fn SqlUmsFIsPremptive(&self) -> super::super::Foundation::BOOL { + pub unsafe fn SqlUmsFIsPremptive(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).SqlUmsFIsPremptive)(windows_core::Interface::as_raw(self)) } } } @@ -17352,14 +17352,14 @@ pub struct IUMS_Vtbl { pub SqlUmsYield: unsafe extern "system" fn(*mut core::ffi::c_void, u32), pub SqlUmsSwitchPremptive: unsafe extern "system" fn(*mut core::ffi::c_void), pub SqlUmsSwitchNonPremptive: unsafe extern "system" fn(*mut core::ffi::c_void), - pub SqlUmsFIsPremptive: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub SqlUmsFIsPremptive: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } pub trait IUMS_Impl { fn SqlUmsSuspend(&self, ticks: u32); fn SqlUmsYield(&self, ticks: u32); fn SqlUmsSwitchPremptive(&self); fn SqlUmsSwitchNonPremptive(&self); - fn SqlUmsFIsPremptive(&self) -> super::super::Foundation::BOOL; + fn SqlUmsFIsPremptive(&self) -> windows_core::BOOL; } impl IUMS_Vtbl { pub const fn new() -> Self { @@ -17391,7 +17391,7 @@ impl IUMS_Vtbl { IUMS_Impl::SqlUmsSwitchNonPremptive(this) } } - unsafe extern "system" fn SqlUmsFIsPremptive(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn SqlUmsFIsPremptive(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this = (this as *mut *mut core::ffi::c_void) as *const windows_core::ScopedHeap; let this = &*((*this).this as *const Identity); @@ -17815,13 +17815,13 @@ impl core::ops::Deref for IUrlAccessor4 { } windows_core::imp::interface_hierarchy!(IUrlAccessor4, windows_core::IUnknown, IUrlAccessor, IUrlAccessor2, IUrlAccessor3); impl IUrlAccessor4 { - pub unsafe fn ShouldIndexItemContent(&self) -> windows_core::Result { + pub unsafe fn ShouldIndexItemContent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShouldIndexItemContent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn ShouldIndexProperty(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { + pub unsafe fn ShouldIndexProperty(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShouldIndexProperty)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) @@ -17831,18 +17831,18 @@ impl IUrlAccessor4 { #[repr(C)] pub struct IUrlAccessor4_Vtbl { pub base__: IUrlAccessor3_Vtbl, - pub ShouldIndexItemContent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub ShouldIndexProperty: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ShouldIndexItemContent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub ShouldIndexProperty: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub trait IUrlAccessor4_Impl: IUrlAccessor3_Impl { - fn ShouldIndexItemContent(&self) -> windows_core::Result; - fn ShouldIndexProperty(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result; + fn ShouldIndexItemContent(&self) -> windows_core::Result; + fn ShouldIndexProperty(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result; } #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] impl IUrlAccessor4_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn ShouldIndexItemContent(this: *mut core::ffi::c_void, pfindexcontent: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ShouldIndexItemContent(this: *mut core::ffi::c_void, pfindexcontent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUrlAccessor4_Impl::ShouldIndexItemContent(this) { @@ -17854,7 +17854,7 @@ impl IUrlAccessor4_Vtbl { } } } - unsafe extern "system" fn ShouldIndexProperty(this: *mut core::ffi::c_void, key: *const super::super::Foundation::PROPERTYKEY, pfindexproperty: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ShouldIndexProperty(this: *mut core::ffi::c_void, key: *const super::super::Foundation::PROPERTYKEY, pfindexproperty: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUrlAccessor4_Impl::ShouldIndexProperty(this, core::mem::transmute_copy(&key)) { @@ -18110,7 +18110,7 @@ impl windows_core::RuntimeName for IViewSort {} windows_core::imp::define_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: bool, ulmaxtokensize: u32, pflicense: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn Init(&self, fquery: bool, ulmaxtokensize: u32, pflicense: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Init)(windows_core::Interface::as_raw(self), fquery.into(), ulmaxtokensize, pflicense as _).ok() } } #[cfg(feature = "Win32_Storage_IndexServer")] @@ -18136,7 +18136,7 @@ impl IWordBreaker { #[repr(C)] pub struct IWordBreaker_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Init: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Init: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_Storage_IndexServer")] pub BreakText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut TEXT_SOURCE, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Storage_IndexServer"))] @@ -18146,7 +18146,7 @@ pub struct IWordBreaker_Vtbl { } #[cfg(feature = "Win32_Storage_IndexServer")] pub trait IWordBreaker_Impl: windows_core::IUnknownImpl { - fn Init(&self, fquery: super::super::Foundation::BOOL, ulmaxtokensize: u32, pflicense: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Init(&self, fquery: windows_core::BOOL, ulmaxtokensize: u32, pflicense: *mut windows_core::BOOL) -> windows_core::Result<()>; fn BreakText(&self, ptextsource: *mut TEXT_SOURCE, pwordsink: windows_core::Ref, pphrasesink: windows_core::Ref) -> windows_core::Result<()>; fn ComposePhrase(&self, pwcnoun: &windows_core::PCWSTR, cwcnoun: u32, pwcmodifier: &windows_core::PCWSTR, cwcmodifier: u32, ulattachmenttype: u32, pwcphrase: &windows_core::PCWSTR, pcwcphrase: *mut u32) -> windows_core::Result<()>; fn GetLicenseToUse(&self, ppwcslicense: *const *const u16) -> windows_core::Result<()>; @@ -18154,7 +18154,7 @@ pub trait IWordBreaker_Impl: windows_core::IUnknownImpl { #[cfg(feature = "Win32_Storage_IndexServer")] impl IWordBreaker_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Init(this: *mut core::ffi::c_void, fquery: super::super::Foundation::BOOL, ulmaxtokensize: u32, pflicense: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Init(this: *mut core::ffi::c_void, fquery: windows_core::BOOL, ulmaxtokensize: u32, pflicense: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWordBreaker_Impl::Init(this, core::mem::transmute_copy(&fquery), core::mem::transmute_copy(&ulmaxtokensize), core::mem::transmute_copy(&pflicense)).into() @@ -18900,7 +18900,7 @@ impl OLEDBSimpleProvider { { unsafe { (windows_core::Interface::vtable(self).removeOLEDBSimpleProviderListener)(windows_core::Interface::as_raw(self), pospilistener.param().abi()).ok() } } - pub unsafe fn isAsync(&self) -> windows_core::Result { + pub unsafe fn isAsync(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).isAsync)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -18939,7 +18939,7 @@ pub struct OLEDBSimpleProvider_Vtbl { find: usize, pub addOLEDBSimpleProviderListener: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub removeOLEDBSimpleProviderListener: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub isAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub isAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub getEstimatedRows: unsafe extern "system" fn(*mut core::ffi::c_void, *mut isize) -> windows_core::HRESULT, pub stopTransfer: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -18956,7 +18956,7 @@ pub trait OLEDBSimpleProvider_Impl: windows_core::IUnknownImpl { fn find(&self, irowstart: isize, icolumn: isize, val: &super::Variant::VARIANT, findflags: OSPFIND, comptype: OSPCOMP) -> windows_core::Result; fn addOLEDBSimpleProviderListener(&self, pospilistener: windows_core::Ref) -> windows_core::Result<()>; fn removeOLEDBSimpleProviderListener(&self, pospilistener: windows_core::Ref) -> windows_core::Result<()>; - fn isAsync(&self) -> windows_core::Result; + fn isAsync(&self) -> windows_core::Result; fn getEstimatedRows(&self) -> windows_core::Result; fn stopTransfer(&self) -> windows_core::Result<()>; } @@ -19077,7 +19077,7 @@ impl OLEDBSimpleProvider_Vtbl { OLEDBSimpleProvider_Impl::removeOLEDBSimpleProviderListener(this, core::mem::transmute_copy(&pospilistener)).into() } } - unsafe extern "system" fn isAsync(this: *mut core::ffi::c_void, pbasynch: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn isAsync(this: *mut core::ffi::c_void, pbasynch: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match OLEDBSimpleProvider_Impl::isAsync(this) { @@ -19376,7 +19376,7 @@ pub struct PROXY_INFO { pub dwSize: u32, pub pcwszUserAgent: windows_core::PCWSTR, pub paUseProxy: PROXY_ACCESS, - pub fLocalBypass: super::super::Foundation::BOOL, + pub fLocalBypass: windows_core::BOOL, pub dwPortNumber: u32, pub pcwszProxyName: windows_core::PCWSTR, pub pcwszBypassList: windows_core::PCWSTR, @@ -20089,7 +20089,7 @@ pub const SQL_ASYNC_ENABLE_OFF: u32 = 0u32; pub const SQL_ASYNC_ENABLE_ON: u32 = 1u32; pub const SQL_ASYNC_MODE: u32 = 10021u32; pub const SQL_ASYNC_NOTIFICATION: u32 = 10025u32; -pub type SQL_ASYNC_NOTIFICATION_CALLBACK = Option i16>; +pub type SQL_ASYNC_NOTIFICATION_CALLBACK = Option i16>; pub const SQL_ASYNC_NOTIFICATION_CAPABLE: i32 = 1i32; pub const SQL_ASYNC_NOTIFICATION_NOT_CAPABLE: i32 = 0i32; pub const SQL_ATTR_ACCESS_MODE: u32 = 101u32; @@ -21971,10 +21971,10 @@ pub struct SUBSCRIPTIONINFO { pub pTrigger: *mut core::ffi::c_void, pub dwRecurseLevels: u32, pub fWebcrawlerFlags: u32, - pub bMailNotification: super::super::Foundation::BOOL, - pub bGleam: super::super::Foundation::BOOL, - pub bChangesOnly: super::super::Foundation::BOOL, - pub bNeedPassword: super::super::Foundation::BOOL, + pub bMailNotification: windows_core::BOOL, + pub bGleam: windows_core::BOOL, + pub bChangesOnly: windows_core::BOOL, + pub bNeedPassword: windows_core::BOOL, pub fChannelFlags: u32, pub bstrUserName: core::mem::ManuallyDrop, pub bstrPassword: core::mem::ManuallyDrop, 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 377a43c8dd..9b85704cd4 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/mod.rs @@ -214,7 +214,7 @@ impl IWscProduct { (windows_core::Interface::vtable(self).ProductGuid)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn ProductIsDefault(&self) -> windows_core::Result { + pub unsafe fn ProductIsDefault(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ProductIsDefault)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -231,7 +231,7 @@ pub struct IWscProduct_Vtbl { pub RemediationPath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ProductStateTimestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ProductGuid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub ProductIsDefault: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ProductIsDefault: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IWscProduct_Impl: super::Com::IDispatch_Impl { @@ -241,7 +241,7 @@ pub trait IWscProduct_Impl: super::Com::IDispatch_Impl { fn RemediationPath(&self) -> windows_core::Result; fn ProductStateTimestamp(&self) -> windows_core::Result; fn ProductGuid(&self) -> windows_core::Result; - fn ProductIsDefault(&self) -> windows_core::Result; + fn ProductIsDefault(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IWscProduct_Vtbl { @@ -318,7 +318,7 @@ impl IWscProduct_Vtbl { } } } - unsafe extern "system" fn ProductIsDefault(this: *mut core::ffi::c_void, pval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ProductIsDefault(this: *mut core::ffi::c_void, pval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWscProduct_Impl::ProductIsDefault(this) { diff --git a/crates/libs/windows/src/Windows/Win32/System/Services/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Services/mod.rs index 7d6cb8c479..ea569676d0 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Services/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Services/mod.rs @@ -1,11 +1,11 @@ #[inline] pub unsafe fn ChangeServiceConfig2A(hservice: SC_HANDLE, dwinfolevel: SERVICE_CONFIG, lpinfo: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ChangeServiceConfig2A(hservice : SC_HANDLE, dwinfolevel : SERVICE_CONFIG, lpinfo : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ChangeServiceConfig2A(hservice : SC_HANDLE, dwinfolevel : SERVICE_CONFIG, lpinfo : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { ChangeServiceConfig2A(hservice, dwinfolevel, lpinfo.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn ChangeServiceConfig2W(hservice: SC_HANDLE, dwinfolevel: SERVICE_CONFIG, lpinfo: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ChangeServiceConfig2W(hservice : SC_HANDLE, dwinfolevel : SERVICE_CONFIG, lpinfo : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ChangeServiceConfig2W(hservice : SC_HANDLE, dwinfolevel : SERVICE_CONFIG, lpinfo : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { ChangeServiceConfig2W(hservice, dwinfolevel, lpinfo.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -18,7 +18,7 @@ where P9: windows_core::Param, P10: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn ChangeServiceConfigA(hservice : SC_HANDLE, dwservicetype : ENUM_SERVICE_TYPE, dwstarttype : SERVICE_START_TYPE, dwerrorcontrol : SERVICE_ERROR, lpbinarypathname : windows_core::PCSTR, lploadordergroup : windows_core::PCSTR, lpdwtagid : *mut u32, lpdependencies : windows_core::PCSTR, lpservicestartname : windows_core::PCSTR, lppassword : windows_core::PCSTR, lpdisplayname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ChangeServiceConfigA(hservice : SC_HANDLE, dwservicetype : ENUM_SERVICE_TYPE, dwstarttype : SERVICE_START_TYPE, dwerrorcontrol : SERVICE_ERROR, lpbinarypathname : windows_core::PCSTR, lploadordergroup : windows_core::PCSTR, lpdwtagid : *mut u32, lpdependencies : windows_core::PCSTR, lpservicestartname : windows_core::PCSTR, lppassword : windows_core::PCSTR, lpdisplayname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { ChangeServiceConfigA(hservice, dwservicetype, dwstarttype, dwerrorcontrol, lpbinarypathname.param().abi(), lploadordergroup.param().abi(), lpdwtagid.unwrap_or(core::mem::zeroed()) as _, lpdependencies.param().abi(), lpservicestartname.param().abi(), lppassword.param().abi(), lpdisplayname.param().abi()).ok() } } #[inline] @@ -31,27 +31,27 @@ where P9: windows_core::Param, P10: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn ChangeServiceConfigW(hservice : SC_HANDLE, dwservicetype : ENUM_SERVICE_TYPE, dwstarttype : SERVICE_START_TYPE, dwerrorcontrol : SERVICE_ERROR, lpbinarypathname : windows_core::PCWSTR, lploadordergroup : windows_core::PCWSTR, lpdwtagid : *mut u32, lpdependencies : windows_core::PCWSTR, lpservicestartname : windows_core::PCWSTR, lppassword : windows_core::PCWSTR, lpdisplayname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ChangeServiceConfigW(hservice : SC_HANDLE, dwservicetype : ENUM_SERVICE_TYPE, dwstarttype : SERVICE_START_TYPE, dwerrorcontrol : SERVICE_ERROR, lpbinarypathname : windows_core::PCWSTR, lploadordergroup : windows_core::PCWSTR, lpdwtagid : *mut u32, lpdependencies : windows_core::PCWSTR, lpservicestartname : windows_core::PCWSTR, lppassword : windows_core::PCWSTR, lpdisplayname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { ChangeServiceConfigW(hservice, dwservicetype, dwstarttype, dwerrorcontrol, lpbinarypathname.param().abi(), lploadordergroup.param().abi(), lpdwtagid.unwrap_or(core::mem::zeroed()) as _, lpdependencies.param().abi(), lpservicestartname.param().abi(), lppassword.param().abi(), lpdisplayname.param().abi()).ok() } } #[inline] pub unsafe fn CloseServiceHandle(hscobject: SC_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn CloseServiceHandle(hscobject : SC_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CloseServiceHandle(hscobject : SC_HANDLE) -> windows_core::BOOL); unsafe { CloseServiceHandle(hscobject).ok() } } #[inline] pub unsafe fn ControlService(hservice: SC_HANDLE, dwcontrol: u32, lpservicestatus: *mut SERVICE_STATUS) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ControlService(hservice : SC_HANDLE, dwcontrol : u32, lpservicestatus : *mut SERVICE_STATUS) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ControlService(hservice : SC_HANDLE, dwcontrol : u32, lpservicestatus : *mut SERVICE_STATUS) -> windows_core::BOOL); unsafe { ControlService(hservice, dwcontrol, lpservicestatus as _).ok() } } #[inline] pub unsafe fn ControlServiceExA(hservice: SC_HANDLE, dwcontrol: u32, dwinfolevel: u32, pcontrolparams: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ControlServiceExA(hservice : SC_HANDLE, dwcontrol : u32, dwinfolevel : u32, pcontrolparams : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ControlServiceExA(hservice : SC_HANDLE, dwcontrol : u32, dwinfolevel : u32, pcontrolparams : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { ControlServiceExA(hservice, dwcontrol, dwinfolevel, pcontrolparams as _).ok() } } #[inline] pub unsafe fn ControlServiceExW(hservice: SC_HANDLE, dwcontrol: u32, dwinfolevel: u32, pcontrolparams: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn ControlServiceExW(hservice : SC_HANDLE, dwcontrol : u32, dwinfolevel : u32, pcontrolparams : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn ControlServiceExW(hservice : SC_HANDLE, dwcontrol : u32, dwinfolevel : u32, pcontrolparams : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { ControlServiceExW(hservice, dwcontrol, dwinfolevel, pcontrolparams as _).ok() } } #[inline] @@ -86,22 +86,22 @@ where } #[inline] pub unsafe fn DeleteService(hservice: SC_HANDLE) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn DeleteService(hservice : SC_HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn DeleteService(hservice : SC_HANDLE) -> windows_core::BOOL); unsafe { DeleteService(hservice).ok() } } #[inline] pub unsafe fn EnumDependentServicesA(hservice: SC_HANDLE, dwservicestate: ENUM_SERVICE_STATE, lpservices: Option<*mut ENUM_SERVICE_STATUSA>, cbbufsize: u32, pcbbytesneeded: *mut u32, lpservicesreturned: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn EnumDependentServicesA(hservice : SC_HANDLE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut ENUM_SERVICE_STATUSA, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn EnumDependentServicesA(hservice : SC_HANDLE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut ENUM_SERVICE_STATUSA, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32) -> windows_core::BOOL); unsafe { EnumDependentServicesA(hservice, dwservicestate, lpservices.unwrap_or(core::mem::zeroed()) as _, cbbufsize, pcbbytesneeded as _, lpservicesreturned as _).ok() } } #[inline] pub unsafe fn EnumDependentServicesW(hservice: SC_HANDLE, dwservicestate: ENUM_SERVICE_STATE, lpservices: Option<*mut ENUM_SERVICE_STATUSW>, cbbufsize: u32, pcbbytesneeded: *mut u32, lpservicesreturned: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn EnumDependentServicesW(hservice : SC_HANDLE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut ENUM_SERVICE_STATUSW, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn EnumDependentServicesW(hservice : SC_HANDLE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut ENUM_SERVICE_STATUSW, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32) -> windows_core::BOOL); unsafe { EnumDependentServicesW(hservice, dwservicestate, lpservices.unwrap_or(core::mem::zeroed()) as _, cbbufsize, pcbbytesneeded as _, lpservicesreturned as _).ok() } } #[inline] pub unsafe fn EnumServicesStatusA(hscmanager: SC_HANDLE, dwservicetype: ENUM_SERVICE_TYPE, dwservicestate: ENUM_SERVICE_STATE, lpservices: Option<*mut ENUM_SERVICE_STATUSA>, cbbufsize: u32, pcbbytesneeded: *mut u32, lpservicesreturned: *mut u32, lpresumehandle: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn EnumServicesStatusA(hscmanager : SC_HANDLE, dwservicetype : ENUM_SERVICE_TYPE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut ENUM_SERVICE_STATUSA, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32, lpresumehandle : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn EnumServicesStatusA(hscmanager : SC_HANDLE, dwservicetype : ENUM_SERVICE_TYPE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut ENUM_SERVICE_STATUSA, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32, lpresumehandle : *mut u32) -> windows_core::BOOL); unsafe { EnumServicesStatusA(hscmanager, dwservicetype, dwservicestate, lpservices.unwrap_or(core::mem::zeroed()) as _, cbbufsize, pcbbytesneeded as _, lpservicesreturned as _, lpresumehandle.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -109,7 +109,7 @@ pub unsafe fn EnumServicesStatusExA(hscmanager: SC_HANDLE, infolevel: SC_ENU where P9: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn EnumServicesStatusExA(hscmanager : SC_HANDLE, infolevel : SC_ENUM_TYPE, dwservicetype : ENUM_SERVICE_TYPE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut u8, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32, lpresumehandle : *mut u32, pszgroupname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn EnumServicesStatusExA(hscmanager : SC_HANDLE, infolevel : SC_ENUM_TYPE, dwservicetype : ENUM_SERVICE_TYPE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut u8, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32, lpresumehandle : *mut u32, pszgroupname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { EnumServicesStatusExA(hscmanager, infolevel, dwservicetype, dwservicestate, core::mem::transmute(lpservices.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpservices.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbbytesneeded as _, lpservicesreturned as _, lpresumehandle.unwrap_or(core::mem::zeroed()) as _, pszgroupname.param().abi()).ok() } } #[inline] @@ -117,12 +117,12 @@ pub unsafe fn EnumServicesStatusExW(hscmanager: SC_HANDLE, infolevel: SC_ENU where P9: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn EnumServicesStatusExW(hscmanager : SC_HANDLE, infolevel : SC_ENUM_TYPE, dwservicetype : ENUM_SERVICE_TYPE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut u8, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32, lpresumehandle : *mut u32, pszgroupname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn EnumServicesStatusExW(hscmanager : SC_HANDLE, infolevel : SC_ENUM_TYPE, dwservicetype : ENUM_SERVICE_TYPE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut u8, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32, lpresumehandle : *mut u32, pszgroupname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { EnumServicesStatusExW(hscmanager, infolevel, dwservicetype, dwservicestate, core::mem::transmute(lpservices.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpservices.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbbytesneeded as _, lpservicesreturned as _, lpresumehandle.unwrap_or(core::mem::zeroed()) as _, pszgroupname.param().abi()).ok() } } #[inline] pub unsafe fn EnumServicesStatusW(hscmanager: SC_HANDLE, dwservicetype: ENUM_SERVICE_TYPE, dwservicestate: ENUM_SERVICE_STATE, lpservices: Option<*mut ENUM_SERVICE_STATUSW>, cbbufsize: u32, pcbbytesneeded: *mut u32, lpservicesreturned: *mut u32, lpresumehandle: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn EnumServicesStatusW(hscmanager : SC_HANDLE, dwservicetype : ENUM_SERVICE_TYPE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut ENUM_SERVICE_STATUSW, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32, lpresumehandle : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn EnumServicesStatusW(hscmanager : SC_HANDLE, dwservicetype : ENUM_SERVICE_TYPE, dwservicestate : ENUM_SERVICE_STATE, lpservices : *mut ENUM_SERVICE_STATUSW, cbbufsize : u32, pcbbytesneeded : *mut u32, lpservicesreturned : *mut u32, lpresumehandle : *mut u32) -> windows_core::BOOL); unsafe { EnumServicesStatusW(hscmanager, dwservicetype, dwservicestate, lpservices.unwrap_or(core::mem::zeroed()) as _, cbbufsize, pcbbytesneeded as _, lpservicesreturned as _, lpresumehandle.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -135,7 +135,7 @@ pub unsafe fn GetServiceDisplayNameA(hscmanager: SC_HANDLE, lpservicename: P where P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn GetServiceDisplayNameA(hscmanager : SC_HANDLE, lpservicename : windows_core::PCSTR, lpdisplayname : windows_core::PSTR, lpcchbuffer : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetServiceDisplayNameA(hscmanager : SC_HANDLE, lpservicename : windows_core::PCSTR, lpdisplayname : windows_core::PSTR, lpcchbuffer : *mut u32) -> windows_core::BOOL); unsafe { GetServiceDisplayNameA(hscmanager, lpservicename.param().abi(), lpdisplayname.unwrap_or(core::mem::zeroed()) as _, lpcchbuffer as _).ok() } } #[inline] @@ -143,7 +143,7 @@ pub unsafe fn GetServiceDisplayNameW(hscmanager: SC_HANDLE, lpservicename: P where P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn GetServiceDisplayNameW(hscmanager : SC_HANDLE, lpservicename : windows_core::PCWSTR, lpdisplayname : windows_core::PWSTR, lpcchbuffer : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetServiceDisplayNameW(hscmanager : SC_HANDLE, lpservicename : windows_core::PCWSTR, lpdisplayname : windows_core::PWSTR, lpcchbuffer : *mut u32) -> windows_core::BOOL); unsafe { GetServiceDisplayNameW(hscmanager, lpservicename.param().abi(), lpdisplayname.unwrap_or(core::mem::zeroed()) as _, lpcchbuffer as _).ok() } } #[inline] @@ -151,7 +151,7 @@ pub unsafe fn GetServiceKeyNameA(hscmanager: SC_HANDLE, lpdisplayname: P1, l where P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn GetServiceKeyNameA(hscmanager : SC_HANDLE, lpdisplayname : windows_core::PCSTR, lpservicename : windows_core::PSTR, lpcchbuffer : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetServiceKeyNameA(hscmanager : SC_HANDLE, lpdisplayname : windows_core::PCSTR, lpservicename : windows_core::PSTR, lpcchbuffer : *mut u32) -> windows_core::BOOL); unsafe { GetServiceKeyNameA(hscmanager, lpdisplayname.param().abi(), lpservicename.unwrap_or(core::mem::zeroed()) as _, lpcchbuffer as _).ok() } } #[inline] @@ -159,7 +159,7 @@ pub unsafe fn GetServiceKeyNameW(hscmanager: SC_HANDLE, lpdisplayname: P1, l where P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn GetServiceKeyNameW(hscmanager : SC_HANDLE, lpdisplayname : windows_core::PCWSTR, lpservicename : windows_core::PWSTR, lpcchbuffer : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetServiceKeyNameW(hscmanager : SC_HANDLE, lpdisplayname : windows_core::PCWSTR, lpservicename : windows_core::PWSTR, lpcchbuffer : *mut u32) -> windows_core::BOOL); unsafe { GetServiceKeyNameW(hscmanager, lpdisplayname.param().abi(), lpservicename.unwrap_or(core::mem::zeroed()) as _, lpcchbuffer as _).ok() } } #[cfg(feature = "Win32_System_Registry")] @@ -186,7 +186,7 @@ pub unsafe fn LockServiceDatabase(hscmanager: SC_HANDLE) -> *mut core::ffi::c_vo } #[inline] pub unsafe fn NotifyBootConfigStatus(bootacceptable: bool) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn NotifyBootConfigStatus(bootacceptable : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn NotifyBootConfigStatus(bootacceptable : windows_core::BOOL) -> windows_core::BOOL); unsafe { NotifyBootConfigStatus(bootacceptable.into()).ok() } } #[inline] @@ -239,53 +239,53 @@ where } #[inline] pub unsafe fn QueryServiceConfig2A(hservice: SC_HANDLE, dwinfolevel: SERVICE_CONFIG, lpbuffer: Option<&mut [u8]>, pcbbytesneeded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn QueryServiceConfig2A(hservice : SC_HANDLE, dwinfolevel : SERVICE_CONFIG, lpbuffer : *mut u8, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn QueryServiceConfig2A(hservice : SC_HANDLE, dwinfolevel : SERVICE_CONFIG, lpbuffer : *mut u8, cbbufsize : u32, pcbbytesneeded : *mut u32) -> windows_core::BOOL); unsafe { QueryServiceConfig2A(hservice, dwinfolevel, core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbbytesneeded as _).ok() } } #[inline] pub unsafe fn QueryServiceConfig2W(hservice: SC_HANDLE, dwinfolevel: SERVICE_CONFIG, lpbuffer: Option<&mut [u8]>, pcbbytesneeded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn QueryServiceConfig2W(hservice : SC_HANDLE, dwinfolevel : SERVICE_CONFIG, lpbuffer : *mut u8, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn QueryServiceConfig2W(hservice : SC_HANDLE, dwinfolevel : SERVICE_CONFIG, lpbuffer : *mut u8, cbbufsize : u32, pcbbytesneeded : *mut u32) -> windows_core::BOOL); unsafe { QueryServiceConfig2W(hservice, dwinfolevel, core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbbytesneeded as _).ok() } } #[inline] pub unsafe fn QueryServiceConfigA(hservice: SC_HANDLE, lpserviceconfig: Option<*mut QUERY_SERVICE_CONFIGA>, cbbufsize: u32, pcbbytesneeded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn QueryServiceConfigA(hservice : SC_HANDLE, lpserviceconfig : *mut QUERY_SERVICE_CONFIGA, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn QueryServiceConfigA(hservice : SC_HANDLE, lpserviceconfig : *mut QUERY_SERVICE_CONFIGA, cbbufsize : u32, pcbbytesneeded : *mut u32) -> windows_core::BOOL); unsafe { QueryServiceConfigA(hservice, lpserviceconfig.unwrap_or(core::mem::zeroed()) as _, cbbufsize, pcbbytesneeded as _).ok() } } #[inline] pub unsafe fn QueryServiceConfigW(hservice: SC_HANDLE, lpserviceconfig: Option<*mut QUERY_SERVICE_CONFIGW>, cbbufsize: u32, pcbbytesneeded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn QueryServiceConfigW(hservice : SC_HANDLE, lpserviceconfig : *mut QUERY_SERVICE_CONFIGW, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn QueryServiceConfigW(hservice : SC_HANDLE, lpserviceconfig : *mut QUERY_SERVICE_CONFIGW, cbbufsize : u32, pcbbytesneeded : *mut u32) -> windows_core::BOOL); unsafe { QueryServiceConfigW(hservice, lpserviceconfig.unwrap_or(core::mem::zeroed()) as _, cbbufsize, pcbbytesneeded as _).ok() } } #[inline] pub unsafe fn QueryServiceDynamicInformation(hservicestatus: SERVICE_STATUS_HANDLE, dwinfolevel: u32, ppdynamicinfo: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn QueryServiceDynamicInformation(hservicestatus : SERVICE_STATUS_HANDLE, dwinfolevel : u32, ppdynamicinfo : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn QueryServiceDynamicInformation(hservicestatus : SERVICE_STATUS_HANDLE, dwinfolevel : u32, ppdynamicinfo : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { QueryServiceDynamicInformation(hservicestatus, dwinfolevel, ppdynamicinfo as _).ok() } } #[inline] pub unsafe fn QueryServiceLockStatusA(hscmanager: SC_HANDLE, lplockstatus: Option<*mut QUERY_SERVICE_LOCK_STATUSA>, cbbufsize: u32, pcbbytesneeded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn QueryServiceLockStatusA(hscmanager : SC_HANDLE, lplockstatus : *mut QUERY_SERVICE_LOCK_STATUSA, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn QueryServiceLockStatusA(hscmanager : SC_HANDLE, lplockstatus : *mut QUERY_SERVICE_LOCK_STATUSA, cbbufsize : u32, pcbbytesneeded : *mut u32) -> windows_core::BOOL); unsafe { QueryServiceLockStatusA(hscmanager, lplockstatus.unwrap_or(core::mem::zeroed()) as _, cbbufsize, pcbbytesneeded as _).ok() } } #[inline] pub unsafe fn QueryServiceLockStatusW(hscmanager: SC_HANDLE, lplockstatus: Option<*mut QUERY_SERVICE_LOCK_STATUSW>, cbbufsize: u32, pcbbytesneeded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn QueryServiceLockStatusW(hscmanager : SC_HANDLE, lplockstatus : *mut QUERY_SERVICE_LOCK_STATUSW, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn QueryServiceLockStatusW(hscmanager : SC_HANDLE, lplockstatus : *mut QUERY_SERVICE_LOCK_STATUSW, cbbufsize : u32, pcbbytesneeded : *mut u32) -> windows_core::BOOL); unsafe { QueryServiceLockStatusW(hscmanager, lplockstatus.unwrap_or(core::mem::zeroed()) as _, cbbufsize, pcbbytesneeded as _).ok() } } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn QueryServiceObjectSecurity(hservice: SC_HANDLE, dwsecurityinformation: u32, lpsecuritydescriptor: Option, cbbufsize: u32, pcbbytesneeded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn QueryServiceObjectSecurity(hservice : SC_HANDLE, dwsecurityinformation : u32, lpsecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn QueryServiceObjectSecurity(hservice : SC_HANDLE, dwsecurityinformation : u32, lpsecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR, cbbufsize : u32, pcbbytesneeded : *mut u32) -> windows_core::BOOL); unsafe { QueryServiceObjectSecurity(hservice, dwsecurityinformation, lpsecuritydescriptor.unwrap_or(core::mem::zeroed()) as _, cbbufsize, pcbbytesneeded as _).ok() } } #[inline] pub unsafe fn QueryServiceStatus(hservice: SC_HANDLE, lpservicestatus: *mut SERVICE_STATUS) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn QueryServiceStatus(hservice : SC_HANDLE, lpservicestatus : *mut SERVICE_STATUS) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn QueryServiceStatus(hservice : SC_HANDLE, lpservicestatus : *mut SERVICE_STATUS) -> windows_core::BOOL); unsafe { QueryServiceStatus(hservice, lpservicestatus as _).ok() } } #[inline] pub unsafe fn QueryServiceStatusEx(hservice: SC_HANDLE, infolevel: SC_STATUS_TYPE, lpbuffer: Option<&mut [u8]>, pcbbytesneeded: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn QueryServiceStatusEx(hservice : SC_HANDLE, infolevel : SC_STATUS_TYPE, lpbuffer : *mut u8, cbbufsize : u32, pcbbytesneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn QueryServiceStatusEx(hservice : SC_HANDLE, infolevel : SC_STATUS_TYPE, lpbuffer : *mut u8, cbbufsize : u32, pcbbytesneeded : *mut u32) -> windows_core::BOOL); unsafe { QueryServiceStatusEx(hservice, infolevel, core::mem::transmute(lpbuffer.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbbytesneeded as _).ok() } } #[inline] @@ -326,38 +326,38 @@ where } #[inline] pub unsafe fn SetServiceBits(hservicestatus: SERVICE_STATUS_HANDLE, dwservicebits: u32, bsetbitson: bool, bupdateimmediately: bool) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SetServiceBits(hservicestatus : SERVICE_STATUS_HANDLE, dwservicebits : u32, bsetbitson : super::super::Foundation:: BOOL, bupdateimmediately : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SetServiceBits(hservicestatus : SERVICE_STATUS_HANDLE, dwservicebits : u32, bsetbitson : windows_core::BOOL, bupdateimmediately : windows_core::BOOL) -> windows_core::BOOL); unsafe { SetServiceBits(hservicestatus, dwservicebits, bsetbitson.into(), bupdateimmediately.into()).ok() } } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn SetServiceObjectSecurity(hservice: SC_HANDLE, dwsecurityinformation: super::super::Security::OBJECT_SECURITY_INFORMATION, lpsecuritydescriptor: super::super::Security::PSECURITY_DESCRIPTOR) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SetServiceObjectSecurity(hservice : SC_HANDLE, dwsecurityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, lpsecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SetServiceObjectSecurity(hservice : SC_HANDLE, dwsecurityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION, lpsecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR) -> windows_core::BOOL); unsafe { SetServiceObjectSecurity(hservice, dwsecurityinformation, lpsecuritydescriptor).ok() } } #[inline] pub unsafe fn SetServiceStatus(hservicestatus: SERVICE_STATUS_HANDLE, lpservicestatus: *const SERVICE_STATUS) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SetServiceStatus(hservicestatus : SERVICE_STATUS_HANDLE, lpservicestatus : *const SERVICE_STATUS) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SetServiceStatus(hservicestatus : SERVICE_STATUS_HANDLE, lpservicestatus : *const SERVICE_STATUS) -> windows_core::BOOL); unsafe { SetServiceStatus(hservicestatus, lpservicestatus).ok() } } #[inline] pub unsafe fn StartServiceA(hservice: SC_HANDLE, lpserviceargvectors: Option<&[windows_core::PCSTR]>) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn StartServiceA(hservice : SC_HANDLE, dwnumserviceargs : u32, lpserviceargvectors : *const windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn StartServiceA(hservice : SC_HANDLE, dwnumserviceargs : u32, lpserviceargvectors : *const windows_core::PCSTR) -> windows_core::BOOL); unsafe { StartServiceA(hservice, lpserviceargvectors.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpserviceargvectors.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } } #[inline] pub unsafe fn StartServiceCtrlDispatcherA(lpservicestarttable: *const SERVICE_TABLE_ENTRYA) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn StartServiceCtrlDispatcherA(lpservicestarttable : *const SERVICE_TABLE_ENTRYA) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn StartServiceCtrlDispatcherA(lpservicestarttable : *const SERVICE_TABLE_ENTRYA) -> windows_core::BOOL); unsafe { StartServiceCtrlDispatcherA(lpservicestarttable).ok() } } #[inline] pub unsafe fn StartServiceCtrlDispatcherW(lpservicestarttable: *const SERVICE_TABLE_ENTRYW) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn StartServiceCtrlDispatcherW(lpservicestarttable : *const SERVICE_TABLE_ENTRYW) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn StartServiceCtrlDispatcherW(lpservicestarttable : *const SERVICE_TABLE_ENTRYW) -> windows_core::BOOL); unsafe { StartServiceCtrlDispatcherW(lpservicestarttable).ok() } } #[inline] pub unsafe fn StartServiceW(hservice: SC_HANDLE, lpserviceargvectors: Option<&[windows_core::PCWSTR]>) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn StartServiceW(hservice : SC_HANDLE, dwnumserviceargs : u32, lpserviceargvectors : *const windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn StartServiceW(hservice : SC_HANDLE, dwnumserviceargs : u32, lpserviceargvectors : *const windows_core::PCWSTR) -> windows_core::BOOL); unsafe { StartServiceW(hservice, lpserviceargvectors.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpserviceargvectors.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))).ok() } } #[inline] @@ -367,7 +367,7 @@ pub unsafe fn SubscribeServiceChangeNotifications(hservice: SC_HANDLE, eeventtyp } #[inline] pub unsafe fn UnlockServiceDatabase(sclock: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn UnlockServiceDatabase(sclock : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn UnlockServiceDatabase(sclock : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { UnlockServiceDatabase(sclock).ok() } } #[inline] @@ -733,7 +733,7 @@ impl Default for SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0_0 { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVICE_DELAYED_AUTO_START_INFO { - pub fDelayedAutostart: super::super::Foundation::BOOL, + pub fDelayedAutostart: windows_core::BOOL, } impl Default for SERVICE_DELAYED_AUTO_START_INFO { fn default() -> Self { @@ -806,7 +806,7 @@ impl Default for SERVICE_FAILURE_ACTIONSW { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SERVICE_FAILURE_ACTIONS_FLAG { - pub fFailureActionsOnNonCrashFailures: super::super::Foundation::BOOL, + pub fFailureActionsOnNonCrashFailures: windows_core::BOOL, } impl Default for SERVICE_FAILURE_ACTIONS_FLAG { fn default() -> Self { 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 d2912b75b5..8d7ef0c392 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/mod.rs @@ -9,7 +9,7 @@ impl IItemEnumerator { (windows_core::Interface::vtable(self).Current)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn MoveNext(&self) -> windows_core::Result { + pub unsafe fn MoveNext(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -26,13 +26,13 @@ pub struct IItemEnumerator_Vtbl { pub Current: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Current: usize, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Reset: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IItemEnumerator_Impl: windows_core::IUnknownImpl { fn Current(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; fn Reset(&self) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -50,7 +50,7 @@ impl IItemEnumerator_Vtbl { } } } - unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, itemvalid: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MoveNext(this: *mut core::ffi::c_void, itemvalid: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IItemEnumerator_Impl::MoveNext(this) { @@ -355,10 +355,10 @@ pub struct ISettingsEngine_Vtbl { pub LoadStore: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub UnloadStore: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] - pub RegisterNamespace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut super::Variant::VARIANT) -> windows_core::HRESULT, + pub RegisterNamespace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut super::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] RegisterNamespace: usize, - pub UnregisterNamespace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub UnregisterNamespace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub CreateTargetInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetTargetInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetTargetInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -376,8 +376,8 @@ pub trait ISettingsEngine_Impl: windows_core::IUnknownImpl { fn GetStoreStatus(&self, reserved: *const core::ffi::c_void) -> windows_core::Result; fn LoadStore(&self, flags: u32) -> windows_core::Result<()>; fn UnloadStore(&self, reserved: *const core::ffi::c_void) -> windows_core::Result<()>; - fn RegisterNamespace(&self, settingsid: windows_core::Ref, stream: windows_core::Ref, pushsettings: super::super::Foundation::BOOL) -> windows_core::Result; - fn UnregisterNamespace(&self, settingsid: windows_core::Ref, removesettings: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn RegisterNamespace(&self, settingsid: windows_core::Ref, stream: windows_core::Ref, pushsettings: windows_core::BOOL) -> windows_core::Result; + fn UnregisterNamespace(&self, settingsid: windows_core::Ref, removesettings: windows_core::BOOL) -> windows_core::Result<()>; fn CreateTargetInfo(&self) -> windows_core::Result; fn GetTargetInfo(&self) -> windows_core::Result; fn SetTargetInfo(&self, target: windows_core::Ref) -> windows_core::Result<()>; @@ -461,7 +461,7 @@ impl ISettingsEngine_Vtbl { ISettingsEngine_Impl::UnloadStore(this, core::mem::transmute_copy(&reserved)).into() } } - unsafe extern "system" fn RegisterNamespace(this: *mut core::ffi::c_void, settingsid: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, pushsettings: super::super::Foundation::BOOL, results: *mut super::Variant::VARIANT) -> windows_core::HRESULT { + unsafe extern "system" fn RegisterNamespace(this: *mut core::ffi::c_void, settingsid: *mut core::ffi::c_void, stream: *mut core::ffi::c_void, pushsettings: windows_core::BOOL, results: *mut super::Variant::VARIANT) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsEngine_Impl::RegisterNamespace(this, core::mem::transmute_copy(&settingsid), core::mem::transmute_copy(&stream), core::mem::transmute_copy(&pushsettings)) { @@ -473,7 +473,7 @@ impl ISettingsEngine_Vtbl { } } } - unsafe extern "system" fn UnregisterNamespace(this: *mut core::ffi::c_void, settingsid: *mut core::ffi::c_void, removesettings: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn UnregisterNamespace(this: *mut core::ffi::c_void, settingsid: *mut core::ffi::c_void, removesettings: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISettingsEngine_Impl::UnregisterNamespace(this, core::mem::transmute_copy(&settingsid), core::mem::transmute_copy(&removesettings)).into() @@ -712,7 +712,7 @@ impl ISettingsItem { pub unsafe fn SetValueRaw(&self, datatype: i32, data: &[u8]) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetValueRaw)(windows_core::Interface::as_raw(self), datatype, core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() } } - pub unsafe fn HasChild(&self) -> windows_core::Result { + pub unsafe fn HasChild(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HasChild)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -835,7 +835,7 @@ pub struct ISettingsItem_Vtbl { pub GetDataType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WcmDataType) -> windows_core::HRESULT, pub GetValueRaw: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut u8, *mut u32) -> windows_core::HRESULT, pub SetValueRaw: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *const u8, u32) -> windows_core::HRESULT, - pub HasChild: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub HasChild: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Children: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetChild: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSettingByPath: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -872,7 +872,7 @@ pub trait ISettingsItem_Impl: windows_core::IUnknownImpl { fn GetDataType(&self) -> windows_core::Result; fn GetValueRaw(&self, data: *mut *mut u8) -> windows_core::Result; fn SetValueRaw(&self, datatype: i32, data: *const u8, datasize: u32) -> windows_core::Result<()>; - fn HasChild(&self) -> windows_core::Result; + fn HasChild(&self) -> windows_core::Result; fn Children(&self) -> windows_core::Result; fn GetChild(&self, name: &windows_core::PCWSTR) -> windows_core::Result; fn GetSettingByPath(&self, path: &windows_core::PCWSTR) -> windows_core::Result; @@ -963,7 +963,7 @@ impl ISettingsItem_Vtbl { ISettingsItem_Impl::SetValueRaw(this, core::mem::transmute_copy(&datatype), core::mem::transmute_copy(&data), core::mem::transmute_copy(&datasize)).into() } } - unsafe extern "system" fn HasChild(this: *mut core::ffi::c_void, itemhaschild: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn HasChild(this: *mut core::ffi::c_void, itemhaschild: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsItem_Impl::HasChild(this) { @@ -1224,7 +1224,7 @@ pub struct ISettingsNamespace_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetIdentity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Settings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub Save: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSettingByPath: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateSettingByPath: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveSettingByPath: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, @@ -1237,7 +1237,7 @@ pub struct ISettingsNamespace_Vtbl { pub trait ISettingsNamespace_Impl: windows_core::IUnknownImpl { fn GetIdentity(&self) -> windows_core::Result; fn Settings(&self) -> windows_core::Result; - fn Save(&self, pushsettings: super::super::Foundation::BOOL) -> windows_core::Result; + fn Save(&self, pushsettings: windows_core::BOOL) -> windows_core::Result; fn GetSettingByPath(&self, path: &windows_core::PCWSTR) -> windows_core::Result; fn CreateSettingByPath(&self, path: &windows_core::PCWSTR) -> windows_core::Result; fn RemoveSettingByPath(&self, path: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -1270,7 +1270,7 @@ impl ISettingsNamespace_Vtbl { } } } - unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pushsettings: super::super::Foundation::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn Save(this: *mut core::ffi::c_void, pushsettings: windows_core::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISettingsNamespace_Impl::Save(this, core::mem::transmute_copy(&pushsettings)) { @@ -1641,11 +1641,11 @@ pub struct ITargetInfo_Vtbl { pub SetTargetID: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> windows_core::HRESULT, pub GetTargetProcessorArchitecture: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetTargetProcessorArchitecture: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, - pub GetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, + pub GetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub SetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, pub GetEnumerator: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub ExpandTarget: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub ExpandTargetPath: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub ExpandTarget: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub ExpandTargetPath: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetModulePath: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, pub LoadModule: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::HMODULE) -> windows_core::HRESULT, pub SetWow64Context: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const u8) -> windows_core::HRESULT, @@ -1664,11 +1664,11 @@ pub trait ITargetInfo_Impl: windows_core::IUnknownImpl { fn SetTargetID(&self, targetid: &windows_core::GUID) -> windows_core::Result<()>; fn GetTargetProcessorArchitecture(&self) -> windows_core::Result; fn SetTargetProcessorArchitecture(&self, processorarchitecture: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn GetProperty(&self, offline: super::super::Foundation::BOOL, property: &windows_core::PCWSTR) -> windows_core::Result; - fn SetProperty(&self, offline: super::super::Foundation::BOOL, property: &windows_core::PCWSTR, value: &windows_core::PCWSTR) -> windows_core::Result<()>; + fn GetProperty(&self, offline: windows_core::BOOL, property: &windows_core::PCWSTR) -> windows_core::Result; + fn SetProperty(&self, offline: windows_core::BOOL, property: &windows_core::PCWSTR, value: &windows_core::PCWSTR) -> windows_core::Result<()>; fn GetEnumerator(&self) -> windows_core::Result; - fn ExpandTarget(&self, offline: super::super::Foundation::BOOL, location: &windows_core::PCWSTR) -> windows_core::Result; - fn ExpandTargetPath(&self, offline: super::super::Foundation::BOOL, location: &windows_core::PCWSTR) -> windows_core::Result; + fn ExpandTarget(&self, offline: windows_core::BOOL, location: &windows_core::PCWSTR) -> windows_core::Result; + fn ExpandTargetPath(&self, offline: windows_core::BOOL, location: &windows_core::PCWSTR) -> windows_core::Result; fn SetModulePath(&self, module: &windows_core::PCWSTR, path: &windows_core::PCWSTR) -> windows_core::Result<()>; fn LoadModule(&self, module: &windows_core::PCWSTR) -> windows_core::Result; fn SetWow64Context(&self, installermodule: &windows_core::PCWSTR, wow64context: *const u8) -> windows_core::Result<()>; @@ -1752,7 +1752,7 @@ impl ITargetInfo_Vtbl { ITargetInfo_Impl::SetTargetProcessorArchitecture(this, core::mem::transmute(&processorarchitecture)).into() } } - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, offline: super::super::Foundation::BOOL, property: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, offline: windows_core::BOOL, property: windows_core::PCWSTR, value: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetInfo_Impl::GetProperty(this, core::mem::transmute_copy(&offline), core::mem::transmute(&property)) { @@ -1764,7 +1764,7 @@ impl ITargetInfo_Vtbl { } } } - unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, offline: super::super::Foundation::BOOL, property: windows_core::PCWSTR, value: windows_core::PCWSTR) -> windows_core::HRESULT { + unsafe extern "system" fn SetProperty(this: *mut core::ffi::c_void, offline: windows_core::BOOL, property: windows_core::PCWSTR, value: windows_core::PCWSTR) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITargetInfo_Impl::SetProperty(this, core::mem::transmute_copy(&offline), core::mem::transmute(&property), core::mem::transmute(&value)).into() @@ -1782,7 +1782,7 @@ impl ITargetInfo_Vtbl { } } } - unsafe extern "system" fn ExpandTarget(this: *mut core::ffi::c_void, offline: super::super::Foundation::BOOL, location: windows_core::PCWSTR, expandedlocation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn ExpandTarget(this: *mut core::ffi::c_void, offline: windows_core::BOOL, location: windows_core::PCWSTR, expandedlocation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetInfo_Impl::ExpandTarget(this, core::mem::transmute_copy(&offline), core::mem::transmute(&location)) { @@ -1794,7 +1794,7 @@ impl ITargetInfo_Vtbl { } } } - unsafe extern "system" fn ExpandTargetPath(this: *mut core::ffi::c_void, offline: super::super::Foundation::BOOL, location: windows_core::PCWSTR, expandedlocation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn ExpandTargetPath(this: *mut core::ffi::c_void, offline: windows_core::BOOL, location: windows_core::PCWSTR, expandedlocation: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITargetInfo_Impl::ExpandTargetPath(this, core::mem::transmute_copy(&offline), core::mem::transmute(&location)) { diff --git a/crates/libs/windows/src/Windows/Win32/System/SetupAndMigration/mod.rs b/crates/libs/windows/src/Windows/Win32/System/SetupAndMigration/mod.rs index c8cd68a433..bfe8f31072 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SetupAndMigration/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SetupAndMigration/mod.rs @@ -1,16 +1,16 @@ #[inline] -pub unsafe fn OOBEComplete(isoobecomplete: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn OOBEComplete(isoobecomplete : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn OOBEComplete(isoobecomplete: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("kernel32.dll" "system" fn OOBEComplete(isoobecomplete : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { OOBEComplete(isoobecomplete as _).ok() } } #[inline] pub unsafe fn RegisterWaitUntilOOBECompleted(oobecompletedcallback: OOBE_COMPLETED_CALLBACK, callbackcontext: Option<*const core::ffi::c_void>, waithandle: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn RegisterWaitUntilOOBECompleted(oobecompletedcallback : OOBE_COMPLETED_CALLBACK, callbackcontext : *const core::ffi::c_void, waithandle : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn RegisterWaitUntilOOBECompleted(oobecompletedcallback : OOBE_COMPLETED_CALLBACK, callbackcontext : *const core::ffi::c_void, waithandle : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { RegisterWaitUntilOOBECompleted(oobecompletedcallback, callbackcontext.unwrap_or(core::mem::zeroed()) as _, waithandle as _).ok() } } #[inline] pub unsafe fn UnregisterWaitUntilOOBECompleted(waithandle: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn UnregisterWaitUntilOOBECompleted(waithandle : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn UnregisterWaitUntilOOBECompleted(waithandle : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { UnregisterWaitUntilOOBECompleted(waithandle).ok() } } pub type OOBE_COMPLETED_CALLBACK = Option; diff --git a/crates/libs/windows/src/Windows/Win32/System/Shutdown/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Shutdown/mod.rs index 6588e2bfb8..49a3fbd5fd 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Shutdown/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Shutdown/mod.rs @@ -3,7 +3,7 @@ pub unsafe fn AbortSystemShutdownA(lpmachinename: P0) -> windows_core::Resul where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn AbortSystemShutdownA(lpmachinename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AbortSystemShutdownA(lpmachinename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { AbortSystemShutdownA(lpmachinename.param().abi()).ok() } } #[inline] @@ -11,7 +11,7 @@ pub unsafe fn AbortSystemShutdownW(lpmachinename: P0) -> windows_core::Resul where P0: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn AbortSystemShutdownW(lpmachinename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn AbortSystemShutdownW(lpmachinename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { AbortSystemShutdownW(lpmachinename.param().abi()).ok() } } #[inline] @@ -21,7 +21,7 @@ pub unsafe fn CheckForHiberboot(phiberboot: *mut bool, bclearflag: bool) -> u32 } #[inline] pub unsafe fn ExitWindowsEx(uflags: EXIT_WINDOWS_FLAGS, dwreason: SHUTDOWN_REASON) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn ExitWindowsEx(uflags : EXIT_WINDOWS_FLAGS, dwreason : SHUTDOWN_REASON) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn ExitWindowsEx(uflags : EXIT_WINDOWS_FLAGS, dwreason : SHUTDOWN_REASON) -> windows_core::BOOL); unsafe { ExitWindowsEx(uflags, dwreason).ok() } } #[inline] @@ -48,7 +48,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn InitiateSystemShutdownA(lpmachinename : windows_core::PCSTR, lpmessage : windows_core::PCSTR, dwtimeout : u32, bforceappsclosed : super::super::Foundation:: BOOL, brebootaftershutdown : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn InitiateSystemShutdownA(lpmachinename : windows_core::PCSTR, lpmessage : windows_core::PCSTR, dwtimeout : u32, bforceappsclosed : windows_core::BOOL, brebootaftershutdown : windows_core::BOOL) -> windows_core::BOOL); unsafe { InitiateSystemShutdownA(lpmachinename.param().abi(), lpmessage.param().abi(), dwtimeout, bforceappsclosed.into(), brebootaftershutdown.into()).ok() } } #[inline] @@ -57,7 +57,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn InitiateSystemShutdownExA(lpmachinename : windows_core::PCSTR, lpmessage : windows_core::PCSTR, dwtimeout : u32, bforceappsclosed : super::super::Foundation:: BOOL, brebootaftershutdown : super::super::Foundation:: BOOL, dwreason : SHUTDOWN_REASON) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn InitiateSystemShutdownExA(lpmachinename : windows_core::PCSTR, lpmessage : windows_core::PCSTR, dwtimeout : u32, bforceappsclosed : windows_core::BOOL, brebootaftershutdown : windows_core::BOOL, dwreason : SHUTDOWN_REASON) -> windows_core::BOOL); unsafe { InitiateSystemShutdownExA(lpmachinename.param().abi(), lpmessage.param().abi(), dwtimeout, bforceappsclosed.into(), brebootaftershutdown.into(), dwreason).ok() } } #[inline] @@ -66,7 +66,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn InitiateSystemShutdownExW(lpmachinename : windows_core::PCWSTR, lpmessage : windows_core::PCWSTR, dwtimeout : u32, bforceappsclosed : super::super::Foundation:: BOOL, brebootaftershutdown : super::super::Foundation:: BOOL, dwreason : SHUTDOWN_REASON) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn InitiateSystemShutdownExW(lpmachinename : windows_core::PCWSTR, lpmessage : windows_core::PCWSTR, dwtimeout : u32, bforceappsclosed : windows_core::BOOL, brebootaftershutdown : windows_core::BOOL, dwreason : SHUTDOWN_REASON) -> windows_core::BOOL); unsafe { InitiateSystemShutdownExW(lpmachinename.param().abi(), lpmessage.param().abi(), dwtimeout, bforceappsclosed.into(), brebootaftershutdown.into(), dwreason).ok() } } #[inline] @@ -75,12 +75,12 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn InitiateSystemShutdownW(lpmachinename : windows_core::PCWSTR, lpmessage : windows_core::PCWSTR, dwtimeout : u32, bforceappsclosed : super::super::Foundation:: BOOL, brebootaftershutdown : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn InitiateSystemShutdownW(lpmachinename : windows_core::PCWSTR, lpmessage : windows_core::PCWSTR, dwtimeout : u32, bforceappsclosed : windows_core::BOOL, brebootaftershutdown : windows_core::BOOL) -> windows_core::BOOL); unsafe { InitiateSystemShutdownW(lpmachinename.param().abi(), lpmessage.param().abi(), dwtimeout, bforceappsclosed.into(), brebootaftershutdown.into()).ok() } } #[inline] pub unsafe fn LockWorkStation() -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn LockWorkStation() -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn LockWorkStation() -> windows_core::BOOL); unsafe { LockWorkStation().ok() } } #[inline] @@ -88,17 +88,17 @@ pub unsafe fn ShutdownBlockReasonCreate(hwnd: super::super::Foundation::HWND where P1: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn ShutdownBlockReasonCreate(hwnd : super::super::Foundation:: HWND, pwszreason : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn ShutdownBlockReasonCreate(hwnd : super::super::Foundation:: HWND, pwszreason : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { ShutdownBlockReasonCreate(hwnd, pwszreason.param().abi()).ok() } } #[inline] pub unsafe fn ShutdownBlockReasonDestroy(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn ShutdownBlockReasonDestroy(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn ShutdownBlockReasonDestroy(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { ShutdownBlockReasonDestroy(hwnd).ok() } } #[inline] pub unsafe fn ShutdownBlockReasonQuery(hwnd: super::super::Foundation::HWND, pwszbuff: Option, pcchbuff: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn ShutdownBlockReasonQuery(hwnd : super::super::Foundation:: HWND, pwszbuff : windows_core::PWSTR, pcchbuff : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn ShutdownBlockReasonQuery(hwnd : super::super::Foundation:: HWND, pwszbuff : windows_core::PWSTR, pcchbuff : *mut u32) -> windows_core::BOOL); unsafe { ShutdownBlockReasonQuery(hwnd, pwszbuff.unwrap_or(core::mem::zeroed()) as _, pcchbuff as _).ok() } } pub const EWX_ARSO: EXIT_WINDOWS_FLAGS = EXIT_WINDOWS_FLAGS(67108864u32); 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 6988944b20..c6159c9076 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SideShow/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SideShow/mod.rs @@ -206,7 +206,7 @@ impl ISideShowContent { (windows_core::Interface::vtable(self).ContentId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn DifferentiateContent(&self) -> windows_core::Result { + pub unsafe fn DifferentiateContent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DifferentiateContent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -218,12 +218,12 @@ pub struct ISideShowContent_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetContent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u32, *mut *mut u8) -> windows_core::HRESULT, pub ContentId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub DifferentiateContent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub DifferentiateContent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ISideShowContent_Impl: windows_core::IUnknownImpl { fn GetContent(&self, in_picapabilities: windows_core::Ref, out_pdwsize: *mut u32, out_ppbdata: *mut *mut u8) -> windows_core::Result<()>; fn ContentId(&self) -> windows_core::Result; - fn DifferentiateContent(&self) -> windows_core::Result; + fn DifferentiateContent(&self) -> windows_core::Result; } impl ISideShowContent_Vtbl { pub const fn new() -> Self { @@ -245,7 +245,7 @@ impl ISideShowContent_Vtbl { } } } - unsafe extern "system" fn DifferentiateContent(this: *mut core::ffi::c_void, out_pfdifferentiatecontent: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DifferentiateContent(this: *mut core::ffi::c_void, out_pfdifferentiatecontent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISideShowContent_Impl::DifferentiateContent(this) { diff --git a/crates/libs/windows/src/Windows/Win32/System/StationsAndDesktops/mod.rs b/crates/libs/windows/src/Windows/Win32/System/StationsAndDesktops/mod.rs index e7e15e7aab..8c90cd8169 100644 --- a/crates/libs/windows/src/Windows/Win32/System/StationsAndDesktops/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/StationsAndDesktops/mod.rs @@ -20,12 +20,12 @@ pub unsafe fn BroadcastSystemMessageW(flags: BROADCAST_SYSTEM_MESSAGE_FLAGS, lpi } #[inline] pub unsafe fn CloseDesktop(hdesktop: HDESK) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn CloseDesktop(hdesktop : HDESK) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn CloseDesktop(hdesktop : HDESK) -> windows_core::BOOL); unsafe { CloseDesktop(hdesktop).ok() } } #[inline] pub unsafe fn CloseWindowStation(hwinsta: HWINSTA) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn CloseWindowStation(hwinsta : HWINSTA) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn CloseWindowStation(hwinsta : HWINSTA) -> windows_core::BOOL); unsafe { CloseWindowStation(hwinsta).ok() } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))] @@ -95,27 +95,27 @@ where #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn EnumDesktopWindows(hdesktop: Option, lpfn: super::super::UI::WindowsAndMessaging::WNDENUMPROC, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn EnumDesktopWindows(hdesktop : HDESK, lpfn : super::super::UI::WindowsAndMessaging:: WNDENUMPROC, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EnumDesktopWindows(hdesktop : HDESK, lpfn : super::super::UI::WindowsAndMessaging:: WNDENUMPROC, lparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { EnumDesktopWindows(hdesktop.unwrap_or(core::mem::zeroed()) as _, lpfn, lparam).ok() } } #[inline] pub unsafe fn EnumDesktopsA(hwinsta: Option, lpenumfunc: DESKTOPENUMPROCA, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn EnumDesktopsA(hwinsta : HWINSTA, lpenumfunc : DESKTOPENUMPROCA, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EnumDesktopsA(hwinsta : HWINSTA, lpenumfunc : DESKTOPENUMPROCA, lparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { EnumDesktopsA(hwinsta.unwrap_or(core::mem::zeroed()) as _, lpenumfunc, lparam).ok() } } #[inline] pub unsafe fn EnumDesktopsW(hwinsta: Option, lpenumfunc: DESKTOPENUMPROCW, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn EnumDesktopsW(hwinsta : HWINSTA, lpenumfunc : DESKTOPENUMPROCW, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EnumDesktopsW(hwinsta : HWINSTA, lpenumfunc : DESKTOPENUMPROCW, lparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { EnumDesktopsW(hwinsta.unwrap_or(core::mem::zeroed()) as _, lpenumfunc, lparam).ok() } } #[inline] pub unsafe fn EnumWindowStationsA(lpenumfunc: WINSTAENUMPROCA, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn EnumWindowStationsA(lpenumfunc : WINSTAENUMPROCA, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EnumWindowStationsA(lpenumfunc : WINSTAENUMPROCA, lparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { EnumWindowStationsA(lpenumfunc, lparam).ok() } } #[inline] pub unsafe fn EnumWindowStationsW(lpenumfunc: WINSTAENUMPROCW, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn EnumWindowStationsW(lpenumfunc : WINSTAENUMPROCW, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EnumWindowStationsW(lpenumfunc : WINSTAENUMPROCW, lparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { EnumWindowStationsW(lpenumfunc, lparam).ok() } } #[inline] @@ -132,12 +132,12 @@ pub unsafe fn GetThreadDesktop(dwthreadid: u32) -> windows_core::Result { } #[inline] pub unsafe fn GetUserObjectInformationA(hobj: super::super::Foundation::HANDLE, nindex: USER_OBJECT_INFORMATION_INDEX, pvinfo: Option<*mut core::ffi::c_void>, nlength: u32, lpnlengthneeded: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetUserObjectInformationA(hobj : super::super::Foundation:: HANDLE, nindex : USER_OBJECT_INFORMATION_INDEX, pvinfo : *mut core::ffi::c_void, nlength : u32, lpnlengthneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetUserObjectInformationA(hobj : super::super::Foundation:: HANDLE, nindex : USER_OBJECT_INFORMATION_INDEX, pvinfo : *mut core::ffi::c_void, nlength : u32, lpnlengthneeded : *mut u32) -> windows_core::BOOL); unsafe { GetUserObjectInformationA(hobj, nindex, pvinfo.unwrap_or(core::mem::zeroed()) as _, nlength, lpnlengthneeded.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn GetUserObjectInformationW(hobj: super::super::Foundation::HANDLE, nindex: USER_OBJECT_INFORMATION_INDEX, pvinfo: Option<*mut core::ffi::c_void>, nlength: u32, lpnlengthneeded: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetUserObjectInformationW(hobj : super::super::Foundation:: HANDLE, nindex : USER_OBJECT_INFORMATION_INDEX, pvinfo : *mut core::ffi::c_void, nlength : u32, lpnlengthneeded : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetUserObjectInformationW(hobj : super::super::Foundation:: HANDLE, nindex : USER_OBJECT_INFORMATION_INDEX, pvinfo : *mut core::ffi::c_void, nlength : u32, lpnlengthneeded : *mut u32) -> windows_core::BOOL); unsafe { GetUserObjectInformationW(hobj, nindex, pvinfo.unwrap_or(core::mem::zeroed()) as _, nlength, lpnlengthneeded.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -145,7 +145,7 @@ pub unsafe fn OpenDesktopA(lpszdesktop: P0, dwflags: DESKTOP_CONTROL_FLAGS, where P0: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn OpenDesktopA(lpszdesktop : windows_core::PCSTR, dwflags : DESKTOP_CONTROL_FLAGS, finherit : super::super::Foundation:: BOOL, dwdesiredaccess : u32) -> HDESK); + windows_targets::link!("user32.dll" "system" fn OpenDesktopA(lpszdesktop : windows_core::PCSTR, dwflags : DESKTOP_CONTROL_FLAGS, finherit : windows_core::BOOL, dwdesiredaccess : u32) -> HDESK); let result__ = unsafe { OpenDesktopA(lpszdesktop.param().abi(), dwflags, finherit.into(), dwdesiredaccess) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -154,13 +154,13 @@ pub unsafe fn OpenDesktopW(lpszdesktop: P0, dwflags: DESKTOP_CONTROL_FLAGS, where P0: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn OpenDesktopW(lpszdesktop : windows_core::PCWSTR, dwflags : DESKTOP_CONTROL_FLAGS, finherit : super::super::Foundation:: BOOL, dwdesiredaccess : u32) -> HDESK); + windows_targets::link!("user32.dll" "system" fn OpenDesktopW(lpszdesktop : windows_core::PCWSTR, dwflags : DESKTOP_CONTROL_FLAGS, finherit : windows_core::BOOL, dwdesiredaccess : u32) -> HDESK); let result__ = unsafe { OpenDesktopW(lpszdesktop.param().abi(), dwflags, finherit.into(), dwdesiredaccess) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenInputDesktop(dwflags: DESKTOP_CONTROL_FLAGS, finherit: bool, dwdesiredaccess: DESKTOP_ACCESS_FLAGS) -> windows_core::Result { - windows_targets::link!("user32.dll" "system" fn OpenInputDesktop(dwflags : DESKTOP_CONTROL_FLAGS, finherit : super::super::Foundation:: BOOL, dwdesiredaccess : DESKTOP_ACCESS_FLAGS) -> HDESK); + windows_targets::link!("user32.dll" "system" fn OpenInputDesktop(dwflags : DESKTOP_CONTROL_FLAGS, finherit : windows_core::BOOL, dwdesiredaccess : DESKTOP_ACCESS_FLAGS) -> HDESK); let result__ = unsafe { OpenInputDesktop(dwflags, finherit.into(), dwdesiredaccess) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -169,7 +169,7 @@ pub unsafe fn OpenWindowStationA(lpszwinsta: P0, finherit: bool, dwdesiredac where P0: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn OpenWindowStationA(lpszwinsta : windows_core::PCSTR, finherit : super::super::Foundation:: BOOL, dwdesiredaccess : u32) -> HWINSTA); + windows_targets::link!("user32.dll" "system" fn OpenWindowStationA(lpszwinsta : windows_core::PCSTR, finherit : windows_core::BOOL, dwdesiredaccess : u32) -> HWINSTA); let result__ = unsafe { OpenWindowStationA(lpszwinsta.param().abi(), finherit.into(), dwdesiredaccess) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -178,33 +178,33 @@ pub unsafe fn OpenWindowStationW(lpszwinsta: P0, finherit: bool, dwdesiredac where P0: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn OpenWindowStationW(lpszwinsta : windows_core::PCWSTR, finherit : super::super::Foundation:: BOOL, dwdesiredaccess : u32) -> HWINSTA); + windows_targets::link!("user32.dll" "system" fn OpenWindowStationW(lpszwinsta : windows_core::PCWSTR, finherit : windows_core::BOOL, dwdesiredaccess : u32) -> HWINSTA); let result__ = unsafe { OpenWindowStationW(lpszwinsta.param().abi(), finherit.into(), dwdesiredaccess) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn SetProcessWindowStation(hwinsta: HWINSTA) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetProcessWindowStation(hwinsta : HWINSTA) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetProcessWindowStation(hwinsta : HWINSTA) -> windows_core::BOOL); unsafe { SetProcessWindowStation(hwinsta).ok() } } #[inline] pub unsafe fn SetThreadDesktop(hdesktop: HDESK) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetThreadDesktop(hdesktop : HDESK) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetThreadDesktop(hdesktop : HDESK) -> windows_core::BOOL); unsafe { SetThreadDesktop(hdesktop).ok() } } #[inline] pub unsafe fn SetUserObjectInformationA(hobj: super::super::Foundation::HANDLE, nindex: i32, pvinfo: *const core::ffi::c_void, nlength: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetUserObjectInformationA(hobj : super::super::Foundation:: HANDLE, nindex : i32, pvinfo : *const core::ffi::c_void, nlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetUserObjectInformationA(hobj : super::super::Foundation:: HANDLE, nindex : i32, pvinfo : *const core::ffi::c_void, nlength : u32) -> windows_core::BOOL); unsafe { SetUserObjectInformationA(hobj, nindex, pvinfo, nlength).ok() } } #[inline] pub unsafe fn SetUserObjectInformationW(hobj: super::super::Foundation::HANDLE, nindex: i32, pvinfo: *const core::ffi::c_void, nlength: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetUserObjectInformationW(hobj : super::super::Foundation:: HANDLE, nindex : i32, pvinfo : *const core::ffi::c_void, nlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetUserObjectInformationW(hobj : super::super::Foundation:: HANDLE, nindex : i32, pvinfo : *const core::ffi::c_void, nlength : u32) -> windows_core::BOOL); unsafe { SetUserObjectInformationW(hobj, nindex, pvinfo, nlength).ok() } } #[inline] pub unsafe fn SwitchDesktop(hdesktop: HDESK) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SwitchDesktop(hdesktop : HDESK) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SwitchDesktop(hdesktop : HDESK) -> windows_core::BOOL); unsafe { SwitchDesktop(hdesktop).ok() } } #[repr(transparent)] @@ -306,8 +306,8 @@ impl Default for BSMINFO { pub const BSM_ALLCOMPONENTS: BROADCAST_SYSTEM_MESSAGE_INFO = BROADCAST_SYSTEM_MESSAGE_INFO(0u32); pub const BSM_ALLDESKTOPS: BROADCAST_SYSTEM_MESSAGE_INFO = BROADCAST_SYSTEM_MESSAGE_INFO(16u32); pub const BSM_APPLICATIONS: BROADCAST_SYSTEM_MESSAGE_INFO = BROADCAST_SYSTEM_MESSAGE_INFO(8u32); -pub type DESKTOPENUMPROCA = Option super::super::Foundation::BOOL>; -pub type DESKTOPENUMPROCW = Option super::super::Foundation::BOOL>; +pub type DESKTOPENUMPROCA = Option windows_core::BOOL>; +pub type DESKTOPENUMPROCW = Option windows_core::BOOL>; #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct DESKTOP_ACCESS_FLAGS(pub u32); @@ -386,8 +386,8 @@ pub const UOI_USER_SID: USER_OBJECT_INFORMATION_INDEX = USER_OBJECT_INFORMATION_ #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct USEROBJECTFLAGS { - pub fInherit: super::super::Foundation::BOOL, - pub fReserved: super::super::Foundation::BOOL, + pub fInherit: windows_core::BOOL, + pub fReserved: windows_core::BOOL, pub dwFlags: u32, } impl Default for USEROBJECTFLAGS { @@ -398,5 +398,5 @@ impl Default for USEROBJECTFLAGS { #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct USER_OBJECT_INFORMATION_INDEX(pub i32); -pub type WINSTAENUMPROCA = Option super::super::Foundation::BOOL>; -pub type WINSTAENUMPROCW = Option super::super::Foundation::BOOL>; +pub type WINSTAENUMPROCA = Option windows_core::BOOL>; +pub type WINSTAENUMPROCW = Option windows_core::BOOL>; diff --git a/crates/libs/windows/src/Windows/Win32/System/SubsystemForLinux/mod.rs b/crates/libs/windows/src/Windows/Win32/System/SubsystemForLinux/mod.rs index be3d9c2057..9ec5bf952f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SubsystemForLinux/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SubsystemForLinux/mod.rs @@ -15,11 +15,11 @@ where unsafe { WslGetDistributionConfiguration(distributionname.param().abi(), distributionversion as _, defaultuid as _, wsldistributionflags as _, defaultenvironmentvariables as _, defaultenvironmentvariablecount as _).ok() } } #[inline] -pub unsafe fn WslIsDistributionRegistered(distributionname: P0) -> super::super::Foundation::BOOL +pub unsafe fn WslIsDistributionRegistered(distributionname: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("api-ms-win-wsl-api-l1-1-0.dll" "system" fn WslIsDistributionRegistered(distributionname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-wsl-api-l1-1-0.dll" "system" fn WslIsDistributionRegistered(distributionname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { WslIsDistributionRegistered(distributionname.param().abi()) } } #[inline] @@ -28,7 +28,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("api-ms-win-wsl-api-l1-1-0.dll" "system" fn WslLaunch(distributionname : windows_core::PCWSTR, command : windows_core::PCWSTR, usecurrentworkingdirectory : super::super::Foundation:: BOOL, stdin : super::super::Foundation:: HANDLE, stdout : super::super::Foundation:: HANDLE, stderr : super::super::Foundation:: HANDLE, process : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); + windows_targets::link!("api-ms-win-wsl-api-l1-1-0.dll" "system" fn WslLaunch(distributionname : windows_core::PCWSTR, command : windows_core::PCWSTR, usecurrentworkingdirectory : windows_core::BOOL, stdin : super::super::Foundation:: HANDLE, stdout : super::super::Foundation:: HANDLE, stderr : super::super::Foundation:: HANDLE, process : *mut super::super::Foundation:: HANDLE) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); WslLaunch(distributionname.param().abi(), command.param().abi(), usecurrentworkingdirectory.into(), stdin, stdout, stderr, &mut result__).map(|| core::mem::transmute(result__)) @@ -40,7 +40,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("api-ms-win-wsl-api-l1-1-0.dll" "system" fn WslLaunchInteractive(distributionname : windows_core::PCWSTR, command : windows_core::PCWSTR, usecurrentworkingdirectory : super::super::Foundation:: BOOL, exitcode : *mut u32) -> windows_core::HRESULT); + windows_targets::link!("api-ms-win-wsl-api-l1-1-0.dll" "system" fn WslLaunchInteractive(distributionname : windows_core::PCWSTR, command : windows_core::PCWSTR, usecurrentworkingdirectory : windows_core::BOOL, exitcode : *mut u32) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); WslLaunchInteractive(distributionname.param().abi(), command.param().abi(), usecurrentworkingdirectory.into(), &mut result__).map(|| core::mem::transmute(result__)) diff --git a/crates/libs/windows/src/Windows/Win32/System/SystemInformation/mod.rs b/crates/libs/windows/src/Windows/Win32/System/SystemInformation/mod.rs index ea5f078d47..b757402dfe 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SystemInformation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SystemInformation/mod.rs @@ -1,9 +1,9 @@ #[inline] -pub unsafe fn DnsHostnameToComputerNameExW(hostname: P0, computername: Option, nsize: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn DnsHostnameToComputerNameExW(hostname: P0, computername: Option, nsize: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn DnsHostnameToComputerNameExW(hostname : windows_core::PCWSTR, computername : windows_core::PWSTR, nsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DnsHostnameToComputerNameExW(hostname : windows_core::PCWSTR, computername : windows_core::PWSTR, nsize : *mut u32) -> windows_core::BOOL); unsafe { DnsHostnameToComputerNameExW(hostname.param().abi(), computername.unwrap_or(core::mem::zeroed()) as _, nsize as _) } } #[inline] @@ -13,12 +13,12 @@ pub unsafe fn EnumSystemFirmwareTables(firmwaretableprovidersignature: FIRMWARE_ } #[inline] pub unsafe fn GetComputerNameExA(nametype: COMPUTER_NAME_FORMAT, lpbuffer: Option, nsize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetComputerNameExA(nametype : COMPUTER_NAME_FORMAT, lpbuffer : windows_core::PSTR, nsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetComputerNameExA(nametype : COMPUTER_NAME_FORMAT, lpbuffer : windows_core::PSTR, nsize : *mut u32) -> windows_core::BOOL); unsafe { GetComputerNameExA(nametype, lpbuffer.unwrap_or(core::mem::zeroed()) as _, nsize as _).ok() } } #[inline] pub unsafe fn GetComputerNameExW(nametype: COMPUTER_NAME_FORMAT, lpbuffer: Option, nsize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetComputerNameExW(nametype : COMPUTER_NAME_FORMAT, lpbuffer : windows_core::PWSTR, nsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetComputerNameExW(nametype : COMPUTER_NAME_FORMAT, lpbuffer : windows_core::PWSTR, nsize : *mut u32) -> windows_core::BOOL); unsafe { GetComputerNameExW(nametype, lpbuffer.unwrap_or(core::mem::zeroed()) as _, nsize as _).ok() } } #[inline] @@ -28,7 +28,7 @@ pub unsafe fn GetDeveloperDriveEnablementState() -> DEVELOPER_DRIVE_ENABLEMENT_S } #[inline] pub unsafe fn GetFirmwareType(firmwaretype: *mut FIRMWARE_TYPE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetFirmwareType(firmwaretype : *mut FIRMWARE_TYPE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetFirmwareType(firmwaretype : *mut FIRMWARE_TYPE) -> windows_core::BOOL); unsafe { GetFirmwareType(firmwaretype as _).ok() } } #[inline] @@ -50,12 +50,12 @@ pub unsafe fn GetLocalTime() -> super::super::Foundation::SYSTEMTIME { } #[inline] pub unsafe fn GetLogicalProcessorInformation(buffer: Option<*mut SYSTEM_LOGICAL_PROCESSOR_INFORMATION>, returnedlength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetLogicalProcessorInformation(buffer : *mut SYSTEM_LOGICAL_PROCESSOR_INFORMATION, returnedlength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetLogicalProcessorInformation(buffer : *mut SYSTEM_LOGICAL_PROCESSOR_INFORMATION, returnedlength : *mut u32) -> windows_core::BOOL); unsafe { GetLogicalProcessorInformation(buffer.unwrap_or(core::mem::zeroed()) as _, returnedlength as _).ok() } } #[inline] pub unsafe fn GetLogicalProcessorInformationEx(relationshiptype: LOGICAL_PROCESSOR_RELATIONSHIP, buffer: Option<*mut SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX>, returnedlength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetLogicalProcessorInformationEx(relationshiptype : LOGICAL_PROCESSOR_RELATIONSHIP, buffer : *mut SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, returnedlength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetLogicalProcessorInformationEx(relationshiptype : LOGICAL_PROCESSOR_RELATIONSHIP, buffer : *mut SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, returnedlength : *mut u32) -> windows_core::BOOL); unsafe { GetLogicalProcessorInformationEx(relationshiptype, buffer.unwrap_or(core::mem::zeroed()) as _, returnedlength as _).ok() } } #[inline] @@ -64,33 +64,33 @@ pub unsafe fn GetNativeSystemInfo(lpsysteminfo: *mut SYSTEM_INFO) { unsafe { GetNativeSystemInfo(lpsysteminfo as _) } } #[inline] -pub unsafe fn GetOsManufacturingMode(pbenabled: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { - windows_targets::link!("api-ms-win-core-sysinfo-l1-2-3.dll" "system" fn GetOsManufacturingMode(pbenabled : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn GetOsManufacturingMode(pbenabled: *mut windows_core::BOOL) -> windows_core::BOOL { + windows_targets::link!("api-ms-win-core-sysinfo-l1-2-3.dll" "system" fn GetOsManufacturingMode(pbenabled : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { GetOsManufacturingMode(pbenabled as _) } } #[inline] -pub unsafe fn GetOsSafeBootMode(flags: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("api-ms-win-core-sysinfo-l1-2-0.dll" "system" fn GetOsSafeBootMode(flags : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetOsSafeBootMode(flags: *mut u32) -> windows_core::BOOL { + windows_targets::link!("api-ms-win-core-sysinfo-l1-2-0.dll" "system" fn GetOsSafeBootMode(flags : *mut u32) -> windows_core::BOOL); unsafe { GetOsSafeBootMode(flags as _) } } #[inline] pub unsafe fn GetPhysicallyInstalledSystemMemory(totalmemoryinkilobytes: *mut u64) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetPhysicallyInstalledSystemMemory(totalmemoryinkilobytes : *mut u64) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetPhysicallyInstalledSystemMemory(totalmemoryinkilobytes : *mut u64) -> windows_core::BOOL); unsafe { GetPhysicallyInstalledSystemMemory(totalmemoryinkilobytes as _).ok() } } #[inline] pub unsafe fn GetProcessorSystemCycleTime(group: u16, buffer: Option<*mut SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION>, returnedlength: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetProcessorSystemCycleTime(group : u16, buffer : *mut SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION, returnedlength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetProcessorSystemCycleTime(group : u16, buffer : *mut SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION, returnedlength : *mut u32) -> windows_core::BOOL); unsafe { GetProcessorSystemCycleTime(group, buffer.unwrap_or(core::mem::zeroed()) as _, returnedlength as _).ok() } } #[inline] -pub unsafe fn GetProductInfo(dwosmajorversion: u32, dwosminorversion: u32, dwspmajorversion: u32, dwspminorversion: u32, pdwreturnedproducttype: *mut OS_PRODUCT_TYPE) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetProductInfo(dwosmajorversion : u32, dwosminorversion : u32, dwspmajorversion : u32, dwspminorversion : u32, pdwreturnedproducttype : *mut OS_PRODUCT_TYPE) -> super::super::Foundation:: BOOL); +pub unsafe fn GetProductInfo(dwosmajorversion: u32, dwosminorversion: u32, dwspmajorversion: u32, dwspminorversion: u32, pdwreturnedproducttype: *mut OS_PRODUCT_TYPE) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetProductInfo(dwosmajorversion : u32, dwosminorversion : u32, dwspmajorversion : u32, dwspminorversion : u32, pdwreturnedproducttype : *mut OS_PRODUCT_TYPE) -> windows_core::BOOL); unsafe { GetProductInfo(dwosmajorversion, dwosminorversion, dwspmajorversion, dwspminorversion, pdwreturnedproducttype as _) } } #[inline] -pub unsafe fn GetSystemCpuSetInformation(information: Option<*mut SYSTEM_CPU_SET_INFORMATION>, bufferlength: u32, returnedlength: *mut u32, process: Option, flags: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetSystemCpuSetInformation(information : *mut SYSTEM_CPU_SET_INFORMATION, bufferlength : u32, returnedlength : *mut u32, process : super::super::Foundation:: HANDLE, flags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetSystemCpuSetInformation(information: Option<*mut SYSTEM_CPU_SET_INFORMATION>, bufferlength: u32, returnedlength: *mut u32, process: Option, flags: Option) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetSystemCpuSetInformation(information : *mut SYSTEM_CPU_SET_INFORMATION, bufferlength : u32, returnedlength : *mut u32, process : super::super::Foundation:: HANDLE, flags : u32) -> windows_core::BOOL); unsafe { GetSystemCpuSetInformation(information.unwrap_or(core::mem::zeroed()) as _, bufferlength, returnedlength as _, process.unwrap_or(core::mem::zeroed()) as _, flags.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -119,8 +119,8 @@ pub unsafe fn GetSystemInfo(lpsysteminfo: *mut SYSTEM_INFO) { unsafe { GetSystemInfo(lpsysteminfo as _) } } #[inline] -pub unsafe fn GetSystemLeapSecondInformation(enabled: *mut super::super::Foundation::BOOL, flags: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetSystemLeapSecondInformation(enabled : *mut super::super::Foundation:: BOOL, flags : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetSystemLeapSecondInformation(enabled: *mut windows_core::BOOL, flags: *mut u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetSystemLeapSecondInformation(enabled : *mut windows_core::BOOL, flags : *mut u32) -> windows_core::BOOL); unsafe { GetSystemLeapSecondInformation(enabled as _, flags as _) } } #[inline] @@ -133,13 +133,13 @@ pub unsafe fn GetSystemTime() -> super::super::Foundation::SYSTEMTIME { } } #[inline] -pub unsafe fn GetSystemTimeAdjustment(lptimeadjustment: *mut u32, lptimeincrement: *mut u32, lptimeadjustmentdisabled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetSystemTimeAdjustment(lptimeadjustment : *mut u32, lptimeincrement : *mut u32, lptimeadjustmentdisabled : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn GetSystemTimeAdjustment(lptimeadjustment: *mut u32, lptimeincrement: *mut u32, lptimeadjustmentdisabled: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("kernel32.dll" "system" fn GetSystemTimeAdjustment(lptimeadjustment : *mut u32, lptimeincrement : *mut u32, lptimeadjustmentdisabled : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { GetSystemTimeAdjustment(lptimeadjustment as _, lptimeincrement as _, lptimeadjustmentdisabled as _).ok() } } #[inline] -pub unsafe fn GetSystemTimeAdjustmentPrecise(lptimeadjustment: *mut u64, lptimeincrement: *mut u64, lptimeadjustmentdisabled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("api-ms-win-core-sysinfo-l1-2-4.dll" "system" fn GetSystemTimeAdjustmentPrecise(lptimeadjustment : *mut u64, lptimeincrement : *mut u64, lptimeadjustmentdisabled : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn GetSystemTimeAdjustmentPrecise(lptimeadjustment: *mut u64, lptimeincrement: *mut u64, lptimeadjustmentdisabled: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("api-ms-win-core-sysinfo-l1-2-4.dll" "system" fn GetSystemTimeAdjustmentPrecise(lptimeadjustment : *mut u64, lptimeincrement : *mut u64, lptimeadjustmentdisabled : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { GetSystemTimeAdjustmentPrecise(lptimeadjustment as _, lptimeincrement as _, lptimeadjustmentdisabled as _).ok() } } #[inline] @@ -207,12 +207,12 @@ pub unsafe fn GetVersion() -> u32 { } #[inline] pub unsafe fn GetVersionExA(lpversioninformation: *mut OSVERSIONINFOA) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetVersionExA(lpversioninformation : *mut OSVERSIONINFOA) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetVersionExA(lpversioninformation : *mut OSVERSIONINFOA) -> windows_core::BOOL); unsafe { GetVersionExA(lpversioninformation as _).ok() } } #[inline] pub unsafe fn GetVersionExW(lpversioninformation: *mut OSVERSIONINFOW) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetVersionExW(lpversioninformation : *mut OSVERSIONINFOW) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetVersionExW(lpversioninformation : *mut OSVERSIONINFOW) -> windows_core::BOOL); unsafe { GetVersionExW(lpversioninformation as _).ok() } } #[inline] @@ -232,17 +232,17 @@ pub unsafe fn GlobalMemoryStatus(lpbuffer: *mut MEMORYSTATUS) { } #[inline] pub unsafe fn GlobalMemoryStatusEx(lpbuffer: *mut MEMORYSTATUSEX) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GlobalMemoryStatusEx(lpbuffer : *mut MEMORYSTATUSEX) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GlobalMemoryStatusEx(lpbuffer : *mut MEMORYSTATUSEX) -> windows_core::BOOL); unsafe { GlobalMemoryStatusEx(lpbuffer as _).ok() } } #[inline] -pub unsafe fn IsUserCetAvailableInEnvironment(usercetenvironment: USER_CET_ENVIRONMENT) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn IsUserCetAvailableInEnvironment(usercetenvironment : USER_CET_ENVIRONMENT) -> super::super::Foundation:: BOOL); +pub unsafe fn IsUserCetAvailableInEnvironment(usercetenvironment: USER_CET_ENVIRONMENT) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn IsUserCetAvailableInEnvironment(usercetenvironment : USER_CET_ENVIRONMENT) -> windows_core::BOOL); unsafe { IsUserCetAvailableInEnvironment(usercetenvironment) } } #[inline] -pub unsafe fn IsWow64GuestMachineSupported(wowguestmachine: IMAGE_FILE_MACHINE) -> windows_core::Result { - windows_targets::link!("kernel32.dll" "system" fn IsWow64GuestMachineSupported(wowguestmachine : IMAGE_FILE_MACHINE, machineissupported : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn IsWow64GuestMachineSupported(wowguestmachine: IMAGE_FILE_MACHINE) -> windows_core::Result { + windows_targets::link!("kernel32.dll" "system" fn IsWow64GuestMachineSupported(wowguestmachine : IMAGE_FILE_MACHINE, machineissupported : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); IsWow64GuestMachineSupported(wowguestmachine, &mut result__).map(|| core::mem::transmute(result__)) @@ -283,15 +283,15 @@ pub unsafe fn SetComputerNameA(lpcomputername: P0) -> windows_core::Result<( where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetComputerNameA(lpcomputername : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetComputerNameA(lpcomputername : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetComputerNameA(lpcomputername.param().abi()).ok() } } #[inline] -pub unsafe fn SetComputerNameEx2W(nametype: COMPUTER_NAME_FORMAT, flags: u32, lpbuffer: P2) -> super::super::Foundation::BOOL +pub unsafe fn SetComputerNameEx2W(nametype: COMPUTER_NAME_FORMAT, flags: u32, lpbuffer: P2) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetComputerNameEx2W(nametype : COMPUTER_NAME_FORMAT, flags : u32, lpbuffer : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetComputerNameEx2W(nametype : COMPUTER_NAME_FORMAT, flags : u32, lpbuffer : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetComputerNameEx2W(nametype, flags, lpbuffer.param().abi()) } } #[inline] @@ -299,7 +299,7 @@ pub unsafe fn SetComputerNameExA(nametype: COMPUTER_NAME_FORMAT, lpbuffer: P where P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetComputerNameExA(nametype : COMPUTER_NAME_FORMAT, lpbuffer : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetComputerNameExA(nametype : COMPUTER_NAME_FORMAT, lpbuffer : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetComputerNameExA(nametype, lpbuffer.param().abi()).ok() } } #[inline] @@ -307,7 +307,7 @@ pub unsafe fn SetComputerNameExW(nametype: COMPUTER_NAME_FORMAT, lpbuffer: P where P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetComputerNameExW(nametype : COMPUTER_NAME_FORMAT, lpbuffer : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetComputerNameExW(nametype : COMPUTER_NAME_FORMAT, lpbuffer : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetComputerNameExW(nametype, lpbuffer.param().abi()).ok() } } #[inline] @@ -315,27 +315,27 @@ pub unsafe fn SetComputerNameW(lpcomputername: P0) -> windows_core::Result<( where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetComputerNameW(lpcomputername : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetComputerNameW(lpcomputername : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetComputerNameW(lpcomputername.param().abi()).ok() } } #[inline] pub unsafe fn SetLocalTime(lpsystemtime: *const super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetLocalTime(lpsystemtime : *const super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetLocalTime(lpsystemtime : *const super::super::Foundation:: SYSTEMTIME) -> windows_core::BOOL); unsafe { SetLocalTime(lpsystemtime).ok() } } #[inline] pub unsafe fn SetSystemTime(lpsystemtime: *const super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetSystemTime(lpsystemtime : *const super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetSystemTime(lpsystemtime : *const super::super::Foundation:: SYSTEMTIME) -> windows_core::BOOL); unsafe { SetSystemTime(lpsystemtime).ok() } } #[inline] pub unsafe fn SetSystemTimeAdjustment(dwtimeadjustment: u32, btimeadjustmentdisabled: bool) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetSystemTimeAdjustment(dwtimeadjustment : u32, btimeadjustmentdisabled : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetSystemTimeAdjustment(dwtimeadjustment : u32, btimeadjustmentdisabled : windows_core::BOOL) -> windows_core::BOOL); unsafe { SetSystemTimeAdjustment(dwtimeadjustment, btimeadjustmentdisabled.into()).ok() } } #[inline] pub unsafe fn SetSystemTimeAdjustmentPrecise(dwtimeadjustment: u64, btimeadjustmentdisabled: bool) -> windows_core::Result<()> { - windows_targets::link!("api-ms-win-core-sysinfo-l1-2-4.dll" "system" fn SetSystemTimeAdjustmentPrecise(dwtimeadjustment : u64, btimeadjustmentdisabled : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-sysinfo-l1-2-4.dll" "system" fn SetSystemTimeAdjustmentPrecise(dwtimeadjustment : u64, btimeadjustmentdisabled : windows_core::BOOL) -> windows_core::BOOL); unsafe { SetSystemTimeAdjustmentPrecise(dwtimeadjustment, btimeadjustmentdisabled.into()).ok() } } #[inline] @@ -345,12 +345,12 @@ pub unsafe fn VerSetConditionMask(conditionmask: u64, typemask: VER_FLAGS, condi } #[inline] pub unsafe fn VerifyVersionInfoA(lpversioninformation: *mut OSVERSIONINFOEXA, dwtypemask: VER_FLAGS, dwlconditionmask: u64) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn VerifyVersionInfoA(lpversioninformation : *mut OSVERSIONINFOEXA, dwtypemask : VER_FLAGS, dwlconditionmask : u64) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn VerifyVersionInfoA(lpversioninformation : *mut OSVERSIONINFOEXA, dwtypemask : VER_FLAGS, dwlconditionmask : u64) -> windows_core::BOOL); unsafe { VerifyVersionInfoA(lpversioninformation as _, dwtypemask, dwlconditionmask).ok() } } #[inline] pub unsafe fn VerifyVersionInfoW(lpversioninformation: *mut OSVERSIONINFOEXW, dwtypemask: VER_FLAGS, dwlconditionmask: u64) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn VerifyVersionInfoW(lpversioninformation : *mut OSVERSIONINFOEXW, dwtypemask : VER_FLAGS, dwlconditionmask : u64) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn VerifyVersionInfoW(lpversioninformation : *mut OSVERSIONINFOEXW, dwtypemask : VER_FLAGS, dwlconditionmask : u64) -> windows_core::BOOL); unsafe { VerifyVersionInfoW(lpversioninformation as _, dwtypemask, dwlconditionmask).ok() } } pub const ACPI: FIRMWARE_TABLE_PROVIDER = FIRMWARE_TABLE_PROVIDER(1094930505u32); 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 408a905022..cde744ae12 100644 --- a/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/mod.rs @@ -2146,18 +2146,18 @@ impl IProvideTaskPage { pub struct IProvideTaskPage_Vtbl { pub base__: windows_core::IUnknown_Vtbl, #[cfg(feature = "Win32_UI_Controls")] - pub GetPage: unsafe extern "system" fn(*mut core::ffi::c_void, TASKPAGE, super::super::Foundation::BOOL, *mut super::super::UI::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT, + pub GetPage: unsafe extern "system" fn(*mut core::ffi::c_void, TASKPAGE, windows_core::BOOL, *mut super::super::UI::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_Controls"))] GetPage: usize, } #[cfg(feature = "Win32_UI_Controls")] pub trait IProvideTaskPage_Impl: windows_core::IUnknownImpl { - fn GetPage(&self, tptype: TASKPAGE, fpersistchanges: super::super::Foundation::BOOL) -> windows_core::Result; + fn GetPage(&self, tptype: TASKPAGE, fpersistchanges: windows_core::BOOL) -> windows_core::Result; } #[cfg(feature = "Win32_UI_Controls")] impl IProvideTaskPage_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetPage(this: *mut core::ffi::c_void, tptype: TASKPAGE, fpersistchanges: super::super::Foundation::BOOL, phpage: *mut super::super::UI::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT { + unsafe extern "system" fn GetPage(this: *mut core::ffi::c_void, tptype: TASKPAGE, fpersistchanges: windows_core::BOOL, phpage: *mut super::super::UI::Controls::HPROPSHEETPAGE) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IProvideTaskPage_Impl::GetPage(this, core::mem::transmute_copy(&tptype), core::mem::transmute_copy(&fpersistchanges)) { 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 91d61e32bc..9c334910d2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs @@ -11,33 +11,33 @@ pub unsafe fn AcquireSRWLockShared(srwlock: *mut SRWLOCK) { #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn AddIntegrityLabelToBoundaryDescriptor(boundarydescriptor: *mut super::super::Foundation::HANDLE, integritylabel: super::super::Security::PSID) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn AddIntegrityLabelToBoundaryDescriptor(boundarydescriptor : *mut super::super::Foundation:: HANDLE, integritylabel : super::super::Security:: PSID) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn AddIntegrityLabelToBoundaryDescriptor(boundarydescriptor : *mut super::super::Foundation:: HANDLE, integritylabel : super::super::Security:: PSID) -> windows_core::BOOL); unsafe { AddIntegrityLabelToBoundaryDescriptor(boundarydescriptor as _, integritylabel).ok() } } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn AddSIDToBoundaryDescriptor(boundarydescriptor: *mut super::super::Foundation::HANDLE, requiredsid: super::super::Security::PSID) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn AddSIDToBoundaryDescriptor(boundarydescriptor : *mut super::super::Foundation:: HANDLE, requiredsid : super::super::Security:: PSID) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn AddSIDToBoundaryDescriptor(boundarydescriptor : *mut super::super::Foundation:: HANDLE, requiredsid : super::super::Security:: PSID) -> windows_core::BOOL); unsafe { AddSIDToBoundaryDescriptor(boundarydescriptor as _, requiredsid).ok() } } #[inline] -pub unsafe fn AttachThreadInput(idattach: u32, idattachto: u32, fattach: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn AttachThreadInput(idattach : u32, idattachto : u32, fattach : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn AttachThreadInput(idattach: u32, idattachto: u32, fattach: bool) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn AttachThreadInput(idattach : u32, idattachto : u32, fattach : windows_core::BOOL) -> windows_core::BOOL); unsafe { AttachThreadInput(idattach, idattachto, fattach.into()) } } #[inline] pub unsafe fn AvQuerySystemResponsiveness(avrthandle: super::super::Foundation::HANDLE, systemresponsivenessvalue: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("avrt.dll" "system" fn AvQuerySystemResponsiveness(avrthandle : super::super::Foundation:: HANDLE, systemresponsivenessvalue : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("avrt.dll" "system" fn AvQuerySystemResponsiveness(avrthandle : super::super::Foundation:: HANDLE, systemresponsivenessvalue : *mut u32) -> windows_core::BOOL); unsafe { AvQuerySystemResponsiveness(avrthandle, systemresponsivenessvalue as _).ok() } } #[inline] pub unsafe fn AvRevertMmThreadCharacteristics(avrthandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("avrt.dll" "system" fn AvRevertMmThreadCharacteristics(avrthandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("avrt.dll" "system" fn AvRevertMmThreadCharacteristics(avrthandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { AvRevertMmThreadCharacteristics(avrthandle).ok() } } #[inline] pub unsafe fn AvRtCreateThreadOrderingGroup(context: *mut super::super::Foundation::HANDLE, period: *const i64, threadorderingguid: *mut windows_core::GUID, timeout: Option<*const i64>) -> windows_core::Result<()> { - windows_targets::link!("avrt.dll" "system" fn AvRtCreateThreadOrderingGroup(context : *mut super::super::Foundation:: HANDLE, period : *const i64, threadorderingguid : *mut windows_core::GUID, timeout : *const i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("avrt.dll" "system" fn AvRtCreateThreadOrderingGroup(context : *mut super::super::Foundation:: HANDLE, period : *const i64, threadorderingguid : *mut windows_core::GUID, timeout : *const i64) -> windows_core::BOOL); unsafe { AvRtCreateThreadOrderingGroup(context as _, period, threadorderingguid as _, timeout.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -45,7 +45,7 @@ pub unsafe fn AvRtCreateThreadOrderingGroupExA(context: *mut super::super::F where P4: windows_core::Param, { - windows_targets::link!("avrt.dll" "system" fn AvRtCreateThreadOrderingGroupExA(context : *mut super::super::Foundation:: HANDLE, period : *const i64, threadorderingguid : *mut windows_core::GUID, timeout : *const i64, taskname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("avrt.dll" "system" fn AvRtCreateThreadOrderingGroupExA(context : *mut super::super::Foundation:: HANDLE, period : *const i64, threadorderingguid : *mut windows_core::GUID, timeout : *const i64, taskname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { AvRtCreateThreadOrderingGroupExA(context as _, period, threadorderingguid as _, timeout.unwrap_or(core::mem::zeroed()) as _, taskname.param().abi()).ok() } } #[inline] @@ -53,27 +53,27 @@ pub unsafe fn AvRtCreateThreadOrderingGroupExW(context: *mut super::super::F where P4: windows_core::Param, { - windows_targets::link!("avrt.dll" "system" fn AvRtCreateThreadOrderingGroupExW(context : *mut super::super::Foundation:: HANDLE, period : *const i64, threadorderingguid : *mut windows_core::GUID, timeout : *const i64, taskname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("avrt.dll" "system" fn AvRtCreateThreadOrderingGroupExW(context : *mut super::super::Foundation:: HANDLE, period : *const i64, threadorderingguid : *mut windows_core::GUID, timeout : *const i64, taskname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { AvRtCreateThreadOrderingGroupExW(context as _, period, threadorderingguid as _, timeout.unwrap_or(core::mem::zeroed()) as _, taskname.param().abi()).ok() } } #[inline] pub unsafe fn AvRtDeleteThreadOrderingGroup(context: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("avrt.dll" "system" fn AvRtDeleteThreadOrderingGroup(context : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("avrt.dll" "system" fn AvRtDeleteThreadOrderingGroup(context : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { AvRtDeleteThreadOrderingGroup(context).ok() } } #[inline] pub unsafe fn AvRtJoinThreadOrderingGroup(context: *mut super::super::Foundation::HANDLE, threadorderingguid: *const windows_core::GUID, before: bool) -> windows_core::Result<()> { - windows_targets::link!("avrt.dll" "system" fn AvRtJoinThreadOrderingGroup(context : *mut super::super::Foundation:: HANDLE, threadorderingguid : *const windows_core::GUID, before : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("avrt.dll" "system" fn AvRtJoinThreadOrderingGroup(context : *mut super::super::Foundation:: HANDLE, threadorderingguid : *const windows_core::GUID, before : windows_core::BOOL) -> windows_core::BOOL); unsafe { AvRtJoinThreadOrderingGroup(context as _, threadorderingguid, before.into()).ok() } } #[inline] pub unsafe fn AvRtLeaveThreadOrderingGroup(context: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("avrt.dll" "system" fn AvRtLeaveThreadOrderingGroup(context : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("avrt.dll" "system" fn AvRtLeaveThreadOrderingGroup(context : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { AvRtLeaveThreadOrderingGroup(context).ok() } } #[inline] pub unsafe fn AvRtWaitOnThreadOrderingGroup(context: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("avrt.dll" "system" fn AvRtWaitOnThreadOrderingGroup(context : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("avrt.dll" "system" fn AvRtWaitOnThreadOrderingGroup(context : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { AvRtWaitOnThreadOrderingGroup(context).ok() } } #[inline] @@ -116,12 +116,12 @@ where } #[inline] pub unsafe fn AvSetMmThreadPriority(avrthandle: super::super::Foundation::HANDLE, priority: AVRT_PRIORITY) -> windows_core::Result<()> { - windows_targets::link!("avrt.dll" "system" fn AvSetMmThreadPriority(avrthandle : super::super::Foundation:: HANDLE, priority : AVRT_PRIORITY) -> super::super::Foundation:: BOOL); + windows_targets::link!("avrt.dll" "system" fn AvSetMmThreadPriority(avrthandle : super::super::Foundation:: HANDLE, priority : AVRT_PRIORITY) -> windows_core::BOOL); unsafe { AvSetMmThreadPriority(avrthandle, priority).ok() } } #[inline] -pub unsafe fn CallbackMayRunLong(pci: PTP_CALLBACK_INSTANCE) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn CallbackMayRunLong(pci : PTP_CALLBACK_INSTANCE) -> super::super::Foundation:: BOOL); +pub unsafe fn CallbackMayRunLong(pci: PTP_CALLBACK_INSTANCE) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn CallbackMayRunLong(pci : PTP_CALLBACK_INSTANCE) -> windows_core::BOOL); unsafe { CallbackMayRunLong(pci) } } #[inline] @@ -130,18 +130,18 @@ pub unsafe fn CancelThreadpoolIo(pio: PTP_IO) { unsafe { CancelThreadpoolIo(pio) } } #[inline] -pub unsafe fn CancelTimerQueueTimer(timerqueue: Option, timer: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn CancelTimerQueueTimer(timerqueue : super::super::Foundation:: HANDLE, timer : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn CancelTimerQueueTimer(timerqueue: Option, timer: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn CancelTimerQueueTimer(timerqueue : super::super::Foundation:: HANDLE, timer : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CancelTimerQueueTimer(timerqueue.unwrap_or(core::mem::zeroed()) as _, timer) } } #[inline] pub unsafe fn CancelWaitableTimer(htimer: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn CancelWaitableTimer(htimer : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CancelWaitableTimer(htimer : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CancelWaitableTimer(htimer).ok() } } #[inline] pub unsafe fn ChangeTimerQueueTimer(timerqueue: Option, timer: super::super::Foundation::HANDLE, duetime: u32, period: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ChangeTimerQueueTimer(timerqueue : super::super::Foundation:: HANDLE, timer : super::super::Foundation:: HANDLE, duetime : u32, period : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ChangeTimerQueueTimer(timerqueue : super::super::Foundation:: HANDLE, timer : super::super::Foundation:: HANDLE, duetime : u32, period : u32) -> windows_core::BOOL); unsafe { ChangeTimerQueueTimer(timerqueue.unwrap_or(core::mem::zeroed()) as _, timer as _, duetime, period).ok() } } #[inline] @@ -161,7 +161,7 @@ pub unsafe fn CloseThreadpoolCleanupGroup(ptpcg: PTP_CLEANUP_GROUP) { } #[inline] pub unsafe fn CloseThreadpoolCleanupGroupMembers(ptpcg: PTP_CLEANUP_GROUP, fcancelpendingcallbacks: bool, pvcleanupcontext: Option<*mut core::ffi::c_void>) { - windows_targets::link!("kernel32.dll" "system" fn CloseThreadpoolCleanupGroupMembers(ptpcg : PTP_CLEANUP_GROUP, fcancelpendingcallbacks : super::super::Foundation:: BOOL, pvcleanupcontext : *mut core::ffi::c_void)); + windows_targets::link!("kernel32.dll" "system" fn CloseThreadpoolCleanupGroupMembers(ptpcg : PTP_CLEANUP_GROUP, fcancelpendingcallbacks : windows_core::BOOL, pvcleanupcontext : *mut core::ffi::c_void)); unsafe { CloseThreadpoolCleanupGroupMembers(ptpcg, fcancelpendingcallbacks.into(), pvcleanupcontext.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -186,7 +186,7 @@ pub unsafe fn CloseThreadpoolWork(pwk: PTP_WORK) { } #[inline] pub unsafe fn ConvertFiberToThread() -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ConvertFiberToThread() -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ConvertFiberToThread() -> windows_core::BOOL); unsafe { ConvertFiberToThread().ok() } } #[inline] @@ -222,7 +222,7 @@ pub unsafe fn CreateEventA(lpeventattributes: Option<*const super::super::Se where P3: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateEventA(lpeventattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, bmanualreset : super::super::Foundation:: BOOL, binitialstate : super::super::Foundation:: BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn CreateEventA(lpeventattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, bmanualreset : windows_core::BOOL, binitialstate : windows_core::BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); let result__ = unsafe { CreateEventA(lpeventattributes.unwrap_or(core::mem::zeroed()) as _, bmanualreset.into(), binitialstate.into(), lpname.param().abi()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -252,7 +252,7 @@ pub unsafe fn CreateEventW(lpeventattributes: Option<*const super::super::Se where P3: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateEventW(lpeventattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, bmanualreset : super::super::Foundation:: BOOL, binitialstate : super::super::Foundation:: BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn CreateEventW(lpeventattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, bmanualreset : windows_core::BOOL, binitialstate : windows_core::BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); let result__ = unsafe { CreateEventW(lpeventattributes.unwrap_or(core::mem::zeroed()) as _, bmanualreset.into(), binitialstate.into(), lpname.param().abi()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -272,7 +272,7 @@ pub unsafe fn CreateMutexA(lpmutexattributes: Option<*const super::super::Se where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateMutexA(lpmutexattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, binitialowner : super::super::Foundation:: BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn CreateMutexA(lpmutexattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, binitialowner : windows_core::BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); let result__ = unsafe { CreateMutexA(lpmutexattributes.unwrap_or(core::mem::zeroed()) as _, binitialowner.into(), lpname.param().abi()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -302,7 +302,7 @@ pub unsafe fn CreateMutexW(lpmutexattributes: Option<*const super::super::Se where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateMutexW(lpmutexattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, binitialowner : super::super::Foundation:: BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn CreateMutexW(lpmutexattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, binitialowner : windows_core::BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); let result__ = unsafe { CreateMutexW(lpmutexattributes.unwrap_or(core::mem::zeroed()) as _, binitialowner.into(), lpname.param().abi()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -332,7 +332,7 @@ where P0: windows_core::Param, P7: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateProcessA(lpapplicationname : windows_core::PCSTR, lpcommandline : windows_core::PSTR, lpprocessattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, binherithandles : super::super::Foundation:: BOOL, dwcreationflags : PROCESS_CREATION_FLAGS, lpenvironment : *const core::ffi::c_void, lpcurrentdirectory : windows_core::PCSTR, lpstartupinfo : *const STARTUPINFOA, lpprocessinformation : *mut PROCESS_INFORMATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CreateProcessA(lpapplicationname : windows_core::PCSTR, lpcommandline : windows_core::PSTR, lpprocessattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, binherithandles : windows_core::BOOL, dwcreationflags : PROCESS_CREATION_FLAGS, lpenvironment : *const core::ffi::c_void, lpcurrentdirectory : windows_core::PCSTR, lpstartupinfo : *const STARTUPINFOA, lpprocessinformation : *mut PROCESS_INFORMATION) -> windows_core::BOOL); unsafe { CreateProcessA(lpapplicationname.param().abi(), lpcommandline.unwrap_or(core::mem::zeroed()) as _, lpprocessattributes.unwrap_or(core::mem::zeroed()) as _, lpthreadattributes.unwrap_or(core::mem::zeroed()) as _, binherithandles.into(), dwcreationflags, lpenvironment.unwrap_or(core::mem::zeroed()) as _, lpcurrentdirectory.param().abi(), lpstartupinfo, lpprocessinformation as _).ok() } } #[cfg(feature = "Win32_Security")] @@ -342,7 +342,7 @@ where P1: windows_core::Param, P8: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CreateProcessAsUserA(htoken : super::super::Foundation:: HANDLE, lpapplicationname : windows_core::PCSTR, lpcommandline : windows_core::PSTR, lpprocessattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, binherithandles : super::super::Foundation:: BOOL, dwcreationflags : PROCESS_CREATION_FLAGS, lpenvironment : *const core::ffi::c_void, lpcurrentdirectory : windows_core::PCSTR, lpstartupinfo : *const STARTUPINFOA, lpprocessinformation : *mut PROCESS_INFORMATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CreateProcessAsUserA(htoken : super::super::Foundation:: HANDLE, lpapplicationname : windows_core::PCSTR, lpcommandline : windows_core::PSTR, lpprocessattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, binherithandles : windows_core::BOOL, dwcreationflags : PROCESS_CREATION_FLAGS, lpenvironment : *const core::ffi::c_void, lpcurrentdirectory : windows_core::PCSTR, lpstartupinfo : *const STARTUPINFOA, lpprocessinformation : *mut PROCESS_INFORMATION) -> windows_core::BOOL); unsafe { CreateProcessAsUserA(htoken.unwrap_or(core::mem::zeroed()) as _, lpapplicationname.param().abi(), lpcommandline.unwrap_or(core::mem::zeroed()) as _, lpprocessattributes.unwrap_or(core::mem::zeroed()) as _, lpthreadattributes.unwrap_or(core::mem::zeroed()) as _, binherithandles.into(), dwcreationflags, lpenvironment.unwrap_or(core::mem::zeroed()) as _, lpcurrentdirectory.param().abi(), lpstartupinfo, lpprocessinformation as _).ok() } } #[cfg(feature = "Win32_Security")] @@ -352,7 +352,7 @@ where P1: windows_core::Param, P8: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CreateProcessAsUserW(htoken : super::super::Foundation:: HANDLE, lpapplicationname : windows_core::PCWSTR, lpcommandline : windows_core::PWSTR, lpprocessattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, binherithandles : super::super::Foundation:: BOOL, dwcreationflags : PROCESS_CREATION_FLAGS, lpenvironment : *const core::ffi::c_void, lpcurrentdirectory : windows_core::PCWSTR, lpstartupinfo : *const STARTUPINFOW, lpprocessinformation : *mut PROCESS_INFORMATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CreateProcessAsUserW(htoken : super::super::Foundation:: HANDLE, lpapplicationname : windows_core::PCWSTR, lpcommandline : windows_core::PWSTR, lpprocessattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, binherithandles : windows_core::BOOL, dwcreationflags : PROCESS_CREATION_FLAGS, lpenvironment : *const core::ffi::c_void, lpcurrentdirectory : windows_core::PCWSTR, lpstartupinfo : *const STARTUPINFOW, lpprocessinformation : *mut PROCESS_INFORMATION) -> windows_core::BOOL); unsafe { CreateProcessAsUserW(htoken.unwrap_or(core::mem::zeroed()) as _, lpapplicationname.param().abi(), lpcommandline.unwrap_or(core::mem::zeroed()) as _, lpprocessattributes.unwrap_or(core::mem::zeroed()) as _, lpthreadattributes.unwrap_or(core::mem::zeroed()) as _, binherithandles.into(), dwcreationflags, lpenvironment.unwrap_or(core::mem::zeroed()) as _, lpcurrentdirectory.param().abi(), lpstartupinfo, lpprocessinformation as _).ok() } } #[cfg(feature = "Win32_Security")] @@ -362,7 +362,7 @@ where P0: windows_core::Param, P7: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateProcessW(lpapplicationname : windows_core::PCWSTR, lpcommandline : windows_core::PWSTR, lpprocessattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, binherithandles : super::super::Foundation:: BOOL, dwcreationflags : PROCESS_CREATION_FLAGS, lpenvironment : *const core::ffi::c_void, lpcurrentdirectory : windows_core::PCWSTR, lpstartupinfo : *const STARTUPINFOW, lpprocessinformation : *mut PROCESS_INFORMATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CreateProcessW(lpapplicationname : windows_core::PCWSTR, lpcommandline : windows_core::PWSTR, lpprocessattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, lpthreadattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, binherithandles : windows_core::BOOL, dwcreationflags : PROCESS_CREATION_FLAGS, lpenvironment : *const core::ffi::c_void, lpcurrentdirectory : windows_core::PCWSTR, lpstartupinfo : *const STARTUPINFOW, lpprocessinformation : *mut PROCESS_INFORMATION) -> windows_core::BOOL); unsafe { CreateProcessW(lpapplicationname.param().abi(), lpcommandline.unwrap_or(core::mem::zeroed()) as _, lpprocessattributes.unwrap_or(core::mem::zeroed()) as _, lpthreadattributes.unwrap_or(core::mem::zeroed()) as _, binherithandles.into(), dwcreationflags, lpenvironment.unwrap_or(core::mem::zeroed()) as _, lpcurrentdirectory.param().abi(), lpstartupinfo, lpprocessinformation as _).ok() } } #[inline] @@ -374,7 +374,7 @@ where P4: windows_core::Param, P8: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CreateProcessWithLogonW(lpusername : windows_core::PCWSTR, lpdomain : windows_core::PCWSTR, lppassword : windows_core::PCWSTR, dwlogonflags : CREATE_PROCESS_LOGON_FLAGS, lpapplicationname : windows_core::PCWSTR, lpcommandline : windows_core::PWSTR, dwcreationflags : PROCESS_CREATION_FLAGS, lpenvironment : *const core::ffi::c_void, lpcurrentdirectory : windows_core::PCWSTR, lpstartupinfo : *const STARTUPINFOW, lpprocessinformation : *mut PROCESS_INFORMATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CreateProcessWithLogonW(lpusername : windows_core::PCWSTR, lpdomain : windows_core::PCWSTR, lppassword : windows_core::PCWSTR, dwlogonflags : CREATE_PROCESS_LOGON_FLAGS, lpapplicationname : windows_core::PCWSTR, lpcommandline : windows_core::PWSTR, dwcreationflags : PROCESS_CREATION_FLAGS, lpenvironment : *const core::ffi::c_void, lpcurrentdirectory : windows_core::PCWSTR, lpstartupinfo : *const STARTUPINFOW, lpprocessinformation : *mut PROCESS_INFORMATION) -> windows_core::BOOL); unsafe { CreateProcessWithLogonW(lpusername.param().abi(), lpdomain.param().abi(), lppassword.param().abi(), dwlogonflags, lpapplicationname.param().abi(), lpcommandline.unwrap_or(core::mem::zeroed()) as _, dwcreationflags, lpenvironment.unwrap_or(core::mem::zeroed()) as _, lpcurrentdirectory.param().abi(), lpstartupinfo, lpprocessinformation as _).ok() } } #[inline] @@ -383,7 +383,7 @@ where P2: windows_core::Param, P6: windows_core::Param, { - windows_targets::link!("advapi32.dll" "system" fn CreateProcessWithTokenW(htoken : super::super::Foundation:: HANDLE, dwlogonflags : CREATE_PROCESS_LOGON_FLAGS, lpapplicationname : windows_core::PCWSTR, lpcommandline : windows_core::PWSTR, dwcreationflags : PROCESS_CREATION_FLAGS, lpenvironment : *const core::ffi::c_void, lpcurrentdirectory : windows_core::PCWSTR, lpstartupinfo : *const STARTUPINFOW, lpprocessinformation : *mut PROCESS_INFORMATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn CreateProcessWithTokenW(htoken : super::super::Foundation:: HANDLE, dwlogonflags : CREATE_PROCESS_LOGON_FLAGS, lpapplicationname : windows_core::PCWSTR, lpcommandline : windows_core::PWSTR, dwcreationflags : PROCESS_CREATION_FLAGS, lpenvironment : *const core::ffi::c_void, lpcurrentdirectory : windows_core::PCWSTR, lpstartupinfo : *const STARTUPINFOW, lpprocessinformation : *mut PROCESS_INFORMATION) -> windows_core::BOOL); unsafe { CreateProcessWithTokenW(htoken, dwlogonflags, lpapplicationname.param().abi(), lpcommandline.unwrap_or(core::mem::zeroed()) as _, dwcreationflags, lpenvironment.unwrap_or(core::mem::zeroed()) as _, lpcurrentdirectory.param().abi(), lpstartupinfo, lpprocessinformation as _).ok() } } #[cfg(feature = "Win32_Security")] @@ -491,17 +491,17 @@ pub unsafe fn CreateTimerQueue() -> windows_core::Result, callback: WAITORTIMERCALLBACK, parameter: Option<*const core::ffi::c_void>, duetime: u32, period: u32, flags: WORKER_THREAD_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn CreateTimerQueueTimer(phnewtimer : *mut super::super::Foundation:: HANDLE, timerqueue : super::super::Foundation:: HANDLE, callback : WAITORTIMERCALLBACK, parameter : *const core::ffi::c_void, duetime : u32, period : u32, flags : WORKER_THREAD_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CreateTimerQueueTimer(phnewtimer : *mut super::super::Foundation:: HANDLE, timerqueue : super::super::Foundation:: HANDLE, callback : WAITORTIMERCALLBACK, parameter : *const core::ffi::c_void, duetime : u32, period : u32, flags : WORKER_THREAD_FLAGS) -> windows_core::BOOL); unsafe { CreateTimerQueueTimer(phnewtimer as _, timerqueue.unwrap_or(core::mem::zeroed()) as _, callback, parameter.unwrap_or(core::mem::zeroed()) as _, duetime, period, flags).ok() } } #[inline] pub unsafe fn CreateUmsCompletionList(umscompletionlist: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn CreateUmsCompletionList(umscompletionlist : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CreateUmsCompletionList(umscompletionlist : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { CreateUmsCompletionList(umscompletionlist as _).ok() } } #[inline] pub unsafe fn CreateUmsThreadContext(lpumsthread: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn CreateUmsThreadContext(lpumsthread : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn CreateUmsThreadContext(lpumsthread : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { CreateUmsThreadContext(lpumsthread as _).ok() } } #[cfg(feature = "Win32_Security")] @@ -510,7 +510,7 @@ pub unsafe fn CreateWaitableTimerA(lptimerattributes: Option<*const super::s where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateWaitableTimerA(lptimerattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, bmanualreset : super::super::Foundation:: BOOL, lptimername : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn CreateWaitableTimerA(lptimerattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, bmanualreset : windows_core::BOOL, lptimername : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); unsafe { CreateWaitableTimerA(lptimerattributes.unwrap_or(core::mem::zeroed()) as _, bmanualreset.into(), lptimername.param().abi()) } } #[cfg(feature = "Win32_Security")] @@ -538,7 +538,7 @@ pub unsafe fn CreateWaitableTimerW(lptimerattributes: Option<*const super::s where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn CreateWaitableTimerW(lptimerattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, bmanualreset : super::super::Foundation:: BOOL, lptimername : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn CreateWaitableTimerW(lptimerattributes : *const super::super::Security:: SECURITY_ATTRIBUTES, bmanualreset : windows_core::BOOL, lptimername : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); let result__ = unsafe { CreateWaitableTimerW(lptimerattributes.unwrap_or(core::mem::zeroed()) as _, bmanualreset.into(), lptimername.param().abi()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -564,38 +564,38 @@ pub unsafe fn DeleteProcThreadAttributeList(lpattributelist: LPPROC_THREAD_ATTRI unsafe { DeleteProcThreadAttributeList(lpattributelist as _) } } #[inline] -pub unsafe fn DeleteSynchronizationBarrier(lpbarrier: *mut SYNCHRONIZATION_BARRIER) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn DeleteSynchronizationBarrier(lpbarrier : *mut SYNCHRONIZATION_BARRIER) -> super::super::Foundation:: BOOL); +pub unsafe fn DeleteSynchronizationBarrier(lpbarrier: *mut SYNCHRONIZATION_BARRIER) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn DeleteSynchronizationBarrier(lpbarrier : *mut SYNCHRONIZATION_BARRIER) -> windows_core::BOOL); unsafe { DeleteSynchronizationBarrier(lpbarrier as _) } } #[inline] pub unsafe fn DeleteTimerQueue(timerqueue: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn DeleteTimerQueue(timerqueue : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DeleteTimerQueue(timerqueue : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { DeleteTimerQueue(timerqueue).ok() } } #[inline] pub unsafe fn DeleteTimerQueueEx(timerqueue: super::super::Foundation::HANDLE, completionevent: Option) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn DeleteTimerQueueEx(timerqueue : super::super::Foundation:: HANDLE, completionevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DeleteTimerQueueEx(timerqueue : super::super::Foundation:: HANDLE, completionevent : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { DeleteTimerQueueEx(timerqueue, completionevent.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn DeleteTimerQueueTimer(timerqueue: Option, timer: super::super::Foundation::HANDLE, completionevent: Option) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn DeleteTimerQueueTimer(timerqueue : super::super::Foundation:: HANDLE, timer : super::super::Foundation:: HANDLE, completionevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DeleteTimerQueueTimer(timerqueue : super::super::Foundation:: HANDLE, timer : super::super::Foundation:: HANDLE, completionevent : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { DeleteTimerQueueTimer(timerqueue.unwrap_or(core::mem::zeroed()) as _, timer, completionevent.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn DeleteUmsCompletionList(umscompletionlist: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn DeleteUmsCompletionList(umscompletionlist : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DeleteUmsCompletionList(umscompletionlist : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { DeleteUmsCompletionList(umscompletionlist).ok() } } #[inline] pub unsafe fn DeleteUmsThreadContext(umsthread: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn DeleteUmsThreadContext(umsthread : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DeleteUmsThreadContext(umsthread : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { DeleteUmsThreadContext(umsthread).ok() } } #[inline] pub unsafe fn DequeueUmsCompletionListItems(umscompletionlist: *const core::ffi::c_void, waittimeout: u32, umsthreadlist: *mut *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn DequeueUmsCompletionListItems(umscompletionlist : *const core::ffi::c_void, waittimeout : u32, umsthreadlist : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DequeueUmsCompletionListItems(umscompletionlist : *const core::ffi::c_void, waittimeout : u32, umsthreadlist : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { DequeueUmsCompletionListItems(umscompletionlist, waittimeout, umsthreadlist as _).ok() } } #[inline] @@ -610,19 +610,19 @@ pub unsafe fn EnterCriticalSection(lpcriticalsection: *mut CRITICAL_SECTION) { unsafe { EnterCriticalSection(lpcriticalsection as _) } } #[inline] -pub unsafe fn EnterSynchronizationBarrier(lpbarrier: *mut SYNCHRONIZATION_BARRIER, dwflags: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn EnterSynchronizationBarrier(lpbarrier : *mut SYNCHRONIZATION_BARRIER, dwflags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn EnterSynchronizationBarrier(lpbarrier: *mut SYNCHRONIZATION_BARRIER, dwflags: u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn EnterSynchronizationBarrier(lpbarrier : *mut SYNCHRONIZATION_BARRIER, dwflags : u32) -> windows_core::BOOL); unsafe { EnterSynchronizationBarrier(lpbarrier as _, dwflags) } } #[cfg(feature = "Win32_System_SystemServices")] #[inline] pub unsafe fn EnterUmsSchedulingMode(schedulerstartupinfo: *const UMS_SCHEDULER_STARTUP_INFO) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn EnterUmsSchedulingMode(schedulerstartupinfo : *const UMS_SCHEDULER_STARTUP_INFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn EnterUmsSchedulingMode(schedulerstartupinfo : *const UMS_SCHEDULER_STARTUP_INFO) -> windows_core::BOOL); unsafe { EnterUmsSchedulingMode(schedulerstartupinfo).ok() } } #[inline] pub unsafe fn ExecuteUmsThread(umsthread: *mut core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ExecuteUmsThread(umsthread : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ExecuteUmsThread(umsthread : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { ExecuteUmsThread(umsthread as _).ok() } } #[inline] @@ -642,7 +642,7 @@ pub unsafe fn FlsAlloc(lpcallback: Option) -> u32 { } #[inline] pub unsafe fn FlsFree(dwflsindex: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FlsFree(dwflsindex : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FlsFree(dwflsindex : u32) -> windows_core::BOOL); unsafe { FlsFree(dwflsindex).ok() } } #[inline] @@ -652,7 +652,7 @@ pub unsafe fn FlsGetValue(dwflsindex: u32) -> *mut core::ffi::c_void { } #[inline] pub unsafe fn FlsSetValue(dwflsindex: u32, lpflsdata: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FlsSetValue(dwflsindex : u32, lpflsdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FlsSetValue(dwflsindex : u32, lpflsdata : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { FlsSetValue(dwflsindex, lpflsdata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -722,12 +722,12 @@ pub unsafe fn GetCurrentUmsThread() -> *mut core::ffi::c_void { } #[inline] pub unsafe fn GetExitCodeProcess(hprocess: super::super::Foundation::HANDLE, lpexitcode: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetExitCodeProcess(hprocess : super::super::Foundation:: HANDLE, lpexitcode : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetExitCodeProcess(hprocess : super::super::Foundation:: HANDLE, lpexitcode : *mut u32) -> windows_core::BOOL); unsafe { GetExitCodeProcess(hprocess, lpexitcode as _).ok() } } #[inline] pub unsafe fn GetExitCodeThread(hthread: super::super::Foundation::HANDLE, lpexitcode: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetExitCodeThread(hthread : super::super::Foundation:: HANDLE, lpexitcode : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetExitCodeThread(hthread : super::super::Foundation:: HANDLE, lpexitcode : *mut u32) -> windows_core::BOOL); unsafe { GetExitCodeThread(hthread, lpexitcode as _).ok() } } #[inline] @@ -760,60 +760,60 @@ pub unsafe fn GetNextUmsListItem(umscontext: *mut core::ffi::c_void) -> *mut cor } #[inline] pub unsafe fn GetNumaAvailableMemoryNode(node: u8, availablebytes: *mut u64) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetNumaAvailableMemoryNode(node : u8, availablebytes : *mut u64) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNumaAvailableMemoryNode(node : u8, availablebytes : *mut u64) -> windows_core::BOOL); unsafe { GetNumaAvailableMemoryNode(node, availablebytes as _).ok() } } #[inline] pub unsafe fn GetNumaAvailableMemoryNodeEx(node: u16, availablebytes: *mut u64) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetNumaAvailableMemoryNodeEx(node : u16, availablebytes : *mut u64) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNumaAvailableMemoryNodeEx(node : u16, availablebytes : *mut u64) -> windows_core::BOOL); unsafe { GetNumaAvailableMemoryNodeEx(node, availablebytes as _).ok() } } #[inline] pub unsafe fn GetNumaHighestNodeNumber(highestnodenumber: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetNumaHighestNodeNumber(highestnodenumber : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNumaHighestNodeNumber(highestnodenumber : *mut u32) -> windows_core::BOOL); unsafe { GetNumaHighestNodeNumber(highestnodenumber as _).ok() } } #[inline] pub unsafe fn GetNumaNodeNumberFromHandle(hfile: super::super::Foundation::HANDLE, nodenumber: *mut u16) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetNumaNodeNumberFromHandle(hfile : super::super::Foundation:: HANDLE, nodenumber : *mut u16) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNumaNodeNumberFromHandle(hfile : super::super::Foundation:: HANDLE, nodenumber : *mut u16) -> windows_core::BOOL); unsafe { GetNumaNodeNumberFromHandle(hfile, nodenumber as _).ok() } } #[inline] pub unsafe fn GetNumaNodeProcessorMask(node: u8, processormask: *mut u64) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetNumaNodeProcessorMask(node : u8, processormask : *mut u64) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNumaNodeProcessorMask(node : u8, processormask : *mut u64) -> windows_core::BOOL); unsafe { GetNumaNodeProcessorMask(node, processormask as _).ok() } } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] -pub unsafe fn GetNumaNodeProcessorMask2(nodenumber: u16, processormasks: Option<&mut [super::SystemInformation::GROUP_AFFINITY]>, requiredmaskcount: *mut u16) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetNumaNodeProcessorMask2(nodenumber : u16, processormasks : *mut super::SystemInformation:: GROUP_AFFINITY, processormaskcount : u16, requiredmaskcount : *mut u16) -> super::super::Foundation:: BOOL); +pub unsafe fn GetNumaNodeProcessorMask2(nodenumber: u16, processormasks: Option<&mut [super::SystemInformation::GROUP_AFFINITY]>, requiredmaskcount: *mut u16) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetNumaNodeProcessorMask2(nodenumber : u16, processormasks : *mut super::SystemInformation:: GROUP_AFFINITY, processormaskcount : u16, requiredmaskcount : *mut u16) -> windows_core::BOOL); unsafe { GetNumaNodeProcessorMask2(nodenumber, core::mem::transmute(processormasks.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), processormasks.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredmaskcount as _) } } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] -pub unsafe fn GetNumaNodeProcessorMaskEx(node: u16, processormask: *mut super::SystemInformation::GROUP_AFFINITY) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetNumaNodeProcessorMaskEx(node : u16, processormask : *mut super::SystemInformation:: GROUP_AFFINITY) -> super::super::Foundation:: BOOL); +pub unsafe fn GetNumaNodeProcessorMaskEx(node: u16, processormask: *mut super::SystemInformation::GROUP_AFFINITY) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetNumaNodeProcessorMaskEx(node : u16, processormask : *mut super::SystemInformation:: GROUP_AFFINITY) -> windows_core::BOOL); unsafe { GetNumaNodeProcessorMaskEx(node, processormask as _) } } #[inline] pub unsafe fn GetNumaProcessorNode(processor: u8, nodenumber: *mut u8) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetNumaProcessorNode(processor : u8, nodenumber : *mut u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNumaProcessorNode(processor : u8, nodenumber : *mut u8) -> windows_core::BOOL); unsafe { GetNumaProcessorNode(processor, nodenumber as _).ok() } } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn GetNumaProcessorNodeEx(processor: *const super::Kernel::PROCESSOR_NUMBER, nodenumber: *mut u16) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetNumaProcessorNodeEx(processor : *const super::Kernel:: PROCESSOR_NUMBER, nodenumber : *mut u16) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNumaProcessorNodeEx(processor : *const super::Kernel:: PROCESSOR_NUMBER, nodenumber : *mut u16) -> windows_core::BOOL); unsafe { GetNumaProcessorNodeEx(processor, nodenumber as _).ok() } } #[inline] pub unsafe fn GetNumaProximityNode(proximityid: u32, nodenumber: *mut u8) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetNumaProximityNode(proximityid : u32, nodenumber : *mut u8) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetNumaProximityNode(proximityid : u32, nodenumber : *mut u8) -> windows_core::BOOL); unsafe { GetNumaProximityNode(proximityid, nodenumber as _).ok() } } #[inline] -pub unsafe fn GetNumaProximityNodeEx(proximityid: u32, nodenumber: *mut u16) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetNumaProximityNodeEx(proximityid : u32, nodenumber : *mut u16) -> super::super::Foundation:: BOOL); +pub unsafe fn GetNumaProximityNodeEx(proximityid: u32, nodenumber: *mut u16) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetNumaProximityNodeEx(proximityid : u32, nodenumber : *mut u16) -> windows_core::BOOL); unsafe { GetNumaProximityNodeEx(proximityid, nodenumber as _) } } #[inline] @@ -823,33 +823,33 @@ pub unsafe fn GetPriorityClass(hprocess: super::super::Foundation::HANDLE) -> u3 } #[inline] pub unsafe fn GetProcessAffinityMask(hprocess: super::super::Foundation::HANDLE, lpprocessaffinitymask: *mut usize, lpsystemaffinitymask: *mut usize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetProcessAffinityMask(hprocess : super::super::Foundation:: HANDLE, lpprocessaffinitymask : *mut usize, lpsystemaffinitymask : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetProcessAffinityMask(hprocess : super::super::Foundation:: HANDLE, lpprocessaffinitymask : *mut usize, lpsystemaffinitymask : *mut usize) -> windows_core::BOOL); unsafe { GetProcessAffinityMask(hprocess, lpprocessaffinitymask as _, lpsystemaffinitymask as _).ok() } } #[inline] -pub unsafe fn GetProcessDEPPolicy(hprocess: super::super::Foundation::HANDLE, lpflags: *mut u32, lppermanent: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetProcessDEPPolicy(hprocess : super::super::Foundation:: HANDLE, lpflags : *mut u32, lppermanent : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn GetProcessDEPPolicy(hprocess: super::super::Foundation::HANDLE, lpflags: *mut u32, lppermanent: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("kernel32.dll" "system" fn GetProcessDEPPolicy(hprocess : super::super::Foundation:: HANDLE, lpflags : *mut u32, lppermanent : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { GetProcessDEPPolicy(hprocess, lpflags as _, lppermanent as _).ok() } } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] -pub unsafe fn GetProcessDefaultCpuSetMasks(process: super::super::Foundation::HANDLE, cpusetmasks: Option<&mut [super::SystemInformation::GROUP_AFFINITY]>, requiredmaskcount: *mut u16) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetProcessDefaultCpuSetMasks(process : super::super::Foundation:: HANDLE, cpusetmasks : *mut super::SystemInformation:: GROUP_AFFINITY, cpusetmaskcount : u16, requiredmaskcount : *mut u16) -> super::super::Foundation:: BOOL); +pub unsafe fn GetProcessDefaultCpuSetMasks(process: super::super::Foundation::HANDLE, cpusetmasks: Option<&mut [super::SystemInformation::GROUP_AFFINITY]>, requiredmaskcount: *mut u16) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetProcessDefaultCpuSetMasks(process : super::super::Foundation:: HANDLE, cpusetmasks : *mut super::SystemInformation:: GROUP_AFFINITY, cpusetmaskcount : u16, requiredmaskcount : *mut u16) -> windows_core::BOOL); unsafe { GetProcessDefaultCpuSetMasks(process, core::mem::transmute(cpusetmasks.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetmasks.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredmaskcount as _) } } #[inline] -pub unsafe fn GetProcessDefaultCpuSets(process: super::super::Foundation::HANDLE, cpusetids: Option<&mut [u32]>, requiredidcount: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetProcessDefaultCpuSets(process : super::super::Foundation:: HANDLE, cpusetids : *mut u32, cpusetidcount : u32, requiredidcount : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetProcessDefaultCpuSets(process: super::super::Foundation::HANDLE, cpusetids: Option<&mut [u32]>, requiredidcount: *mut u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetProcessDefaultCpuSets(process : super::super::Foundation:: HANDLE, cpusetids : *mut u32, cpusetidcount : u32, requiredidcount : *mut u32) -> windows_core::BOOL); unsafe { GetProcessDefaultCpuSets(process, core::mem::transmute(cpusetids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredidcount as _) } } #[inline] -pub unsafe fn GetProcessGroupAffinity(hprocess: super::super::Foundation::HANDLE, groupcount: *mut u16, grouparray: *mut u16) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetProcessGroupAffinity(hprocess : super::super::Foundation:: HANDLE, groupcount : *mut u16, grouparray : *mut u16) -> super::super::Foundation:: BOOL); +pub unsafe fn GetProcessGroupAffinity(hprocess: super::super::Foundation::HANDLE, groupcount: *mut u16, grouparray: *mut u16) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetProcessGroupAffinity(hprocess : super::super::Foundation:: HANDLE, groupcount : *mut u16, grouparray : *mut u16) -> windows_core::BOOL); unsafe { GetProcessGroupAffinity(hprocess, groupcount as _, grouparray as _) } } #[inline] pub unsafe fn GetProcessHandleCount(hprocess: super::super::Foundation::HANDLE, pdwhandlecount: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetProcessHandleCount(hprocess : super::super::Foundation:: HANDLE, pdwhandlecount : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetProcessHandleCount(hprocess : super::super::Foundation:: HANDLE, pdwhandlecount : *mut u32) -> windows_core::BOOL); unsafe { GetProcessHandleCount(hprocess, pdwhandlecount as _).ok() } } #[inline] @@ -869,32 +869,32 @@ pub unsafe fn GetProcessIdOfThread(thread: super::super::Foundation::HANDLE) -> } #[inline] pub unsafe fn GetProcessInformation(hprocess: super::super::Foundation::HANDLE, processinformationclass: PROCESS_INFORMATION_CLASS, processinformation: *mut core::ffi::c_void, processinformationsize: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetProcessInformation(hprocess : super::super::Foundation:: HANDLE, processinformationclass : PROCESS_INFORMATION_CLASS, processinformation : *mut core::ffi::c_void, processinformationsize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetProcessInformation(hprocess : super::super::Foundation:: HANDLE, processinformationclass : PROCESS_INFORMATION_CLASS, processinformation : *mut core::ffi::c_void, processinformationsize : u32) -> windows_core::BOOL); unsafe { GetProcessInformation(hprocess, processinformationclass, processinformation as _, processinformationsize).ok() } } #[inline] pub unsafe fn GetProcessIoCounters(hprocess: super::super::Foundation::HANDLE, lpiocounters: *mut IO_COUNTERS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetProcessIoCounters(hprocess : super::super::Foundation:: HANDLE, lpiocounters : *mut IO_COUNTERS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetProcessIoCounters(hprocess : super::super::Foundation:: HANDLE, lpiocounters : *mut IO_COUNTERS) -> windows_core::BOOL); unsafe { GetProcessIoCounters(hprocess, lpiocounters as _).ok() } } #[inline] pub unsafe fn GetProcessMitigationPolicy(hprocess: super::super::Foundation::HANDLE, mitigationpolicy: PROCESS_MITIGATION_POLICY, lpbuffer: *mut core::ffi::c_void, dwlength: usize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetProcessMitigationPolicy(hprocess : super::super::Foundation:: HANDLE, mitigationpolicy : PROCESS_MITIGATION_POLICY, lpbuffer : *mut core::ffi::c_void, dwlength : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetProcessMitigationPolicy(hprocess : super::super::Foundation:: HANDLE, mitigationpolicy : PROCESS_MITIGATION_POLICY, lpbuffer : *mut core::ffi::c_void, dwlength : usize) -> windows_core::BOOL); unsafe { GetProcessMitigationPolicy(hprocess, mitigationpolicy, lpbuffer as _, dwlength).ok() } } #[inline] -pub unsafe fn GetProcessPriorityBoost(hprocess: super::super::Foundation::HANDLE, pdisablepriorityboost: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetProcessPriorityBoost(hprocess : super::super::Foundation:: HANDLE, pdisablepriorityboost : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn GetProcessPriorityBoost(hprocess: super::super::Foundation::HANDLE, pdisablepriorityboost: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("kernel32.dll" "system" fn GetProcessPriorityBoost(hprocess : super::super::Foundation:: HANDLE, pdisablepriorityboost : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { GetProcessPriorityBoost(hprocess, pdisablepriorityboost as _).ok() } } #[inline] pub unsafe fn GetProcessShutdownParameters(lpdwlevel: *mut u32, lpdwflags: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetProcessShutdownParameters(lpdwlevel : *mut u32, lpdwflags : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetProcessShutdownParameters(lpdwlevel : *mut u32, lpdwflags : *mut u32) -> windows_core::BOOL); unsafe { GetProcessShutdownParameters(lpdwlevel as _, lpdwflags as _).ok() } } #[inline] pub unsafe fn GetProcessTimes(hprocess: super::super::Foundation::HANDLE, lpcreationtime: *mut super::super::Foundation::FILETIME, lpexittime: *mut super::super::Foundation::FILETIME, lpkerneltime: *mut super::super::Foundation::FILETIME, lpusertime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetProcessTimes(hprocess : super::super::Foundation:: HANDLE, lpcreationtime : *mut super::super::Foundation:: FILETIME, lpexittime : *mut super::super::Foundation:: FILETIME, lpkerneltime : *mut super::super::Foundation:: FILETIME, lpusertime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetProcessTimes(hprocess : super::super::Foundation:: HANDLE, lpcreationtime : *mut super::super::Foundation:: FILETIME, lpexittime : *mut super::super::Foundation:: FILETIME, lpkerneltime : *mut super::super::Foundation:: FILETIME, lpusertime : *mut super::super::Foundation:: FILETIME) -> windows_core::BOOL); unsafe { GetProcessTimes(hprocess, lpcreationtime as _, lpexittime as _, lpkerneltime as _, lpusertime as _).ok() } } #[inline] @@ -904,7 +904,7 @@ pub unsafe fn GetProcessVersion(processid: u32) -> u32 { } #[inline] pub unsafe fn GetProcessWorkingSetSize(hprocess: super::super::Foundation::HANDLE, lpminimumworkingsetsize: *mut usize, lpmaximumworkingsetsize: *mut usize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetProcessWorkingSetSize(hprocess : super::super::Foundation:: HANDLE, lpminimumworkingsetsize : *mut usize, lpmaximumworkingsetsize : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetProcessWorkingSetSize(hprocess : super::super::Foundation:: HANDLE, lpminimumworkingsetsize : *mut usize, lpmaximumworkingsetsize : *mut usize) -> windows_core::BOOL); unsafe { GetProcessWorkingSetSize(hprocess, lpminimumworkingsetsize as _, lpmaximumworkingsetsize as _).ok() } } #[inline] @@ -919,7 +919,7 @@ pub unsafe fn GetStartupInfoW(lpstartupinfo: *mut STARTUPINFOW) { } #[inline] pub unsafe fn GetSystemTimes(lpidletime: Option<*mut super::super::Foundation::FILETIME>, lpkerneltime: Option<*mut super::super::Foundation::FILETIME>, lpusertime: Option<*mut super::super::Foundation::FILETIME>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetSystemTimes(lpidletime : *mut super::super::Foundation:: FILETIME, lpkerneltime : *mut super::super::Foundation:: FILETIME, lpusertime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetSystemTimes(lpidletime : *mut super::super::Foundation:: FILETIME, lpkerneltime : *mut super::super::Foundation:: FILETIME, lpusertime : *mut super::super::Foundation:: FILETIME) -> windows_core::BOOL); unsafe { GetSystemTimes(lpidletime.unwrap_or(core::mem::zeroed()) as _, lpkerneltime.unwrap_or(core::mem::zeroed()) as _, lpusertime.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -932,13 +932,13 @@ pub unsafe fn GetThreadDescription(hthread: super::super::Foundation::HANDLE) -> } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] -pub unsafe fn GetThreadGroupAffinity(hthread: super::super::Foundation::HANDLE, groupaffinity: *mut super::SystemInformation::GROUP_AFFINITY) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetThreadGroupAffinity(hthread : super::super::Foundation:: HANDLE, groupaffinity : *mut super::SystemInformation:: GROUP_AFFINITY) -> super::super::Foundation:: BOOL); +pub unsafe fn GetThreadGroupAffinity(hthread: super::super::Foundation::HANDLE, groupaffinity: *mut super::SystemInformation::GROUP_AFFINITY) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetThreadGroupAffinity(hthread : super::super::Foundation:: HANDLE, groupaffinity : *mut super::SystemInformation:: GROUP_AFFINITY) -> windows_core::BOOL); unsafe { GetThreadGroupAffinity(hthread, groupaffinity as _) } } #[inline] -pub unsafe fn GetThreadIOPendingFlag(hthread: super::super::Foundation::HANDLE, lpioispending: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetThreadIOPendingFlag(hthread : super::super::Foundation:: HANDLE, lpioispending : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn GetThreadIOPendingFlag(hthread: super::super::Foundation::HANDLE, lpioispending: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("kernel32.dll" "system" fn GetThreadIOPendingFlag(hthread : super::super::Foundation:: HANDLE, lpioispending : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { GetThreadIOPendingFlag(hthread, lpioispending as _).ok() } } #[inline] @@ -949,12 +949,12 @@ pub unsafe fn GetThreadId(thread: super::super::Foundation::HANDLE) -> u32 { #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn GetThreadIdealProcessorEx(hthread: super::super::Foundation::HANDLE, lpidealprocessor: *mut super::Kernel::PROCESSOR_NUMBER) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetThreadIdealProcessorEx(hthread : super::super::Foundation:: HANDLE, lpidealprocessor : *mut super::Kernel:: PROCESSOR_NUMBER) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetThreadIdealProcessorEx(hthread : super::super::Foundation:: HANDLE, lpidealprocessor : *mut super::Kernel:: PROCESSOR_NUMBER) -> windows_core::BOOL); unsafe { GetThreadIdealProcessorEx(hthread, lpidealprocessor as _).ok() } } #[inline] pub unsafe fn GetThreadInformation(hthread: super::super::Foundation::HANDLE, threadinformationclass: THREAD_INFORMATION_CLASS, threadinformation: *mut core::ffi::c_void, threadinformationsize: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetThreadInformation(hthread : super::super::Foundation:: HANDLE, threadinformationclass : THREAD_INFORMATION_CLASS, threadinformation : *mut core::ffi::c_void, threadinformationsize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetThreadInformation(hthread : super::super::Foundation:: HANDLE, threadinformationclass : THREAD_INFORMATION_CLASS, threadinformation : *mut core::ffi::c_void, threadinformationsize : u32) -> windows_core::BOOL); unsafe { GetThreadInformation(hthread, threadinformationclass, threadinformation as _, threadinformationsize).ok() } } #[inline] @@ -963,49 +963,49 @@ pub unsafe fn GetThreadPriority(hthread: super::super::Foundation::HANDLE) -> i3 unsafe { GetThreadPriority(hthread) } } #[inline] -pub unsafe fn GetThreadPriorityBoost(hthread: super::super::Foundation::HANDLE, pdisablepriorityboost: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetThreadPriorityBoost(hthread : super::super::Foundation:: HANDLE, pdisablepriorityboost : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn GetThreadPriorityBoost(hthread: super::super::Foundation::HANDLE, pdisablepriorityboost: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("kernel32.dll" "system" fn GetThreadPriorityBoost(hthread : super::super::Foundation:: HANDLE, pdisablepriorityboost : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { GetThreadPriorityBoost(hthread, pdisablepriorityboost as _).ok() } } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] -pub unsafe fn GetThreadSelectedCpuSetMasks(thread: super::super::Foundation::HANDLE, cpusetmasks: Option<&mut [super::SystemInformation::GROUP_AFFINITY]>, requiredmaskcount: *mut u16) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetThreadSelectedCpuSetMasks(thread : super::super::Foundation:: HANDLE, cpusetmasks : *mut super::SystemInformation:: GROUP_AFFINITY, cpusetmaskcount : u16, requiredmaskcount : *mut u16) -> super::super::Foundation:: BOOL); +pub unsafe fn GetThreadSelectedCpuSetMasks(thread: super::super::Foundation::HANDLE, cpusetmasks: Option<&mut [super::SystemInformation::GROUP_AFFINITY]>, requiredmaskcount: *mut u16) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetThreadSelectedCpuSetMasks(thread : super::super::Foundation:: HANDLE, cpusetmasks : *mut super::SystemInformation:: GROUP_AFFINITY, cpusetmaskcount : u16, requiredmaskcount : *mut u16) -> windows_core::BOOL); unsafe { GetThreadSelectedCpuSetMasks(thread, core::mem::transmute(cpusetmasks.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetmasks.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredmaskcount as _) } } #[inline] -pub unsafe fn GetThreadSelectedCpuSets(thread: super::super::Foundation::HANDLE, cpusetids: Option<&mut [u32]>, requiredidcount: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetThreadSelectedCpuSets(thread : super::super::Foundation:: HANDLE, cpusetids : *mut u32, cpusetidcount : u32, requiredidcount : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetThreadSelectedCpuSets(thread: super::super::Foundation::HANDLE, cpusetids: Option<&mut [u32]>, requiredidcount: *mut u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetThreadSelectedCpuSets(thread : super::super::Foundation:: HANDLE, cpusetids : *mut u32, cpusetidcount : u32, requiredidcount : *mut u32) -> windows_core::BOOL); unsafe { GetThreadSelectedCpuSets(thread, core::mem::transmute(cpusetids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), requiredidcount as _) } } #[inline] pub unsafe fn GetThreadTimes(hthread: super::super::Foundation::HANDLE, lpcreationtime: *mut super::super::Foundation::FILETIME, lpexittime: *mut super::super::Foundation::FILETIME, lpkerneltime: *mut super::super::Foundation::FILETIME, lpusertime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetThreadTimes(hthread : super::super::Foundation:: HANDLE, lpcreationtime : *mut super::super::Foundation:: FILETIME, lpexittime : *mut super::super::Foundation:: FILETIME, lpkerneltime : *mut super::super::Foundation:: FILETIME, lpusertime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetThreadTimes(hthread : super::super::Foundation:: HANDLE, lpcreationtime : *mut super::super::Foundation:: FILETIME, lpexittime : *mut super::super::Foundation:: FILETIME, lpkerneltime : *mut super::super::Foundation:: FILETIME, lpusertime : *mut super::super::Foundation:: FILETIME) -> windows_core::BOOL); unsafe { GetThreadTimes(hthread, lpcreationtime as _, lpexittime as _, lpkerneltime as _, lpusertime as _).ok() } } #[inline] pub unsafe fn GetUmsCompletionListEvent(umscompletionlist: *const core::ffi::c_void, umscompletionevent: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetUmsCompletionListEvent(umscompletionlist : *const core::ffi::c_void, umscompletionevent : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetUmsCompletionListEvent(umscompletionlist : *const core::ffi::c_void, umscompletionevent : *mut super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { GetUmsCompletionListEvent(umscompletionlist, umscompletionevent as _).ok() } } #[inline] -pub unsafe fn GetUmsSystemThreadInformation(threadhandle: super::super::Foundation::HANDLE, systemthreadinfo: *mut UMS_SYSTEM_THREAD_INFORMATION) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GetUmsSystemThreadInformation(threadhandle : super::super::Foundation:: HANDLE, systemthreadinfo : *mut UMS_SYSTEM_THREAD_INFORMATION) -> super::super::Foundation:: BOOL); +pub unsafe fn GetUmsSystemThreadInformation(threadhandle: super::super::Foundation::HANDLE, systemthreadinfo: *mut UMS_SYSTEM_THREAD_INFORMATION) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GetUmsSystemThreadInformation(threadhandle : super::super::Foundation:: HANDLE, systemthreadinfo : *mut UMS_SYSTEM_THREAD_INFORMATION) -> windows_core::BOOL); unsafe { GetUmsSystemThreadInformation(threadhandle, systemthreadinfo as _) } } #[inline] -pub unsafe fn InitOnceBeginInitialize(lpinitonce: *mut INIT_ONCE, dwflags: u32, fpending: *mut super::super::Foundation::BOOL, lpcontext: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn InitOnceBeginInitialize(lpinitonce : *mut INIT_ONCE, dwflags : u32, fpending : *mut super::super::Foundation:: BOOL, lpcontext : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn InitOnceBeginInitialize(lpinitonce: *mut INIT_ONCE, dwflags: u32, fpending: *mut windows_core::BOOL, lpcontext: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> { + windows_targets::link!("kernel32.dll" "system" fn InitOnceBeginInitialize(lpinitonce : *mut INIT_ONCE, dwflags : u32, fpending : *mut windows_core::BOOL, lpcontext : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { InitOnceBeginInitialize(lpinitonce as _, dwflags, fpending as _, lpcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn InitOnceComplete(lpinitonce: *mut INIT_ONCE, dwflags: u32, lpcontext: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn InitOnceComplete(lpinitonce : *mut INIT_ONCE, dwflags : u32, lpcontext : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn InitOnceComplete(lpinitonce : *mut INIT_ONCE, dwflags : u32, lpcontext : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { InitOnceComplete(lpinitonce as _, dwflags, lpcontext.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn InitOnceExecuteOnce(initonce: *mut INIT_ONCE, initfn: PINIT_ONCE_FN, parameter: Option<*mut core::ffi::c_void>, context: Option<*mut *mut core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn InitOnceExecuteOnce(initonce : *mut INIT_ONCE, initfn : PINIT_ONCE_FN, parameter : *mut core::ffi::c_void, context : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn InitOnceExecuteOnce(initonce : *mut INIT_ONCE, initfn : PINIT_ONCE_FN, parameter : *mut core::ffi::c_void, context : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { InitOnceExecuteOnce(initonce as _, initfn, parameter.unwrap_or(core::mem::zeroed()) as _, context.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1035,18 +1035,18 @@ pub unsafe fn InitializeCriticalSection(lpcriticalsection: *mut CRITICAL_SECTION #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn InitializeCriticalSectionAndSpinCount(lpcriticalsection: *mut CRITICAL_SECTION, dwspincount: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn InitializeCriticalSectionAndSpinCount(lpcriticalsection : *mut CRITICAL_SECTION, dwspincount : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn InitializeCriticalSectionAndSpinCount(lpcriticalsection : *mut CRITICAL_SECTION, dwspincount : u32) -> windows_core::BOOL); unsafe { InitializeCriticalSectionAndSpinCount(lpcriticalsection as _, dwspincount).ok() } } #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn InitializeCriticalSectionEx(lpcriticalsection: *mut CRITICAL_SECTION, dwspincount: u32, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn InitializeCriticalSectionEx(lpcriticalsection : *mut CRITICAL_SECTION, dwspincount : u32, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn InitializeCriticalSectionEx(lpcriticalsection : *mut CRITICAL_SECTION, dwspincount : u32, flags : u32) -> windows_core::BOOL); unsafe { InitializeCriticalSectionEx(lpcriticalsection as _, dwspincount, flags).ok() } } #[inline] pub unsafe fn InitializeProcThreadAttributeList(lpattributelist: Option, dwattributecount: u32, dwflags: Option, lpsize: *mut usize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn InitializeProcThreadAttributeList(lpattributelist : LPPROC_THREAD_ATTRIBUTE_LIST, dwattributecount : u32, dwflags : u32, lpsize : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn InitializeProcThreadAttributeList(lpattributelist : LPPROC_THREAD_ATTRIBUTE_LIST, dwattributecount : u32, dwflags : u32, lpsize : *mut usize) -> windows_core::BOOL); unsafe { InitializeProcThreadAttributeList(lpattributelist.unwrap_or(core::mem::zeroed()) as _, dwattributecount, dwflags.unwrap_or(core::mem::zeroed()) as _, lpsize as _).ok() } } #[cfg(feature = "Win32_System_Kernel")] @@ -1070,7 +1070,7 @@ pub unsafe fn InitializeSRWLock() -> SRWLOCK { } #[inline] pub unsafe fn InitializeSynchronizationBarrier(lpbarrier: *mut SYNCHRONIZATION_BARRIER, ltotalthreads: i32, lspincount: i32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn InitializeSynchronizationBarrier(lpbarrier : *mut SYNCHRONIZATION_BARRIER, ltotalthreads : i32, lspincount : i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn InitializeSynchronizationBarrier(lpbarrier : *mut SYNCHRONIZATION_BARRIER, ltotalthreads : i32, lspincount : i32) -> windows_core::BOOL); unsafe { InitializeSynchronizationBarrier(lpbarrier as _, ltotalthreads, lspincount).ok() } } #[cfg(feature = "Win32_System_Kernel")] @@ -1099,38 +1099,38 @@ pub unsafe fn InterlockedPushListSListEx(listhead: *mut super::Kernel::SLIST_HEA } #[inline] pub unsafe fn IsImmersiveProcess(hprocess: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn IsImmersiveProcess(hprocess : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn IsImmersiveProcess(hprocess : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { IsImmersiveProcess(hprocess).ok() } } #[inline] -pub unsafe fn IsProcessCritical(hprocess: super::super::Foundation::HANDLE, critical: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn IsProcessCritical(hprocess : super::super::Foundation:: HANDLE, critical : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn IsProcessCritical(hprocess: super::super::Foundation::HANDLE, critical: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("kernel32.dll" "system" fn IsProcessCritical(hprocess : super::super::Foundation:: HANDLE, critical : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { IsProcessCritical(hprocess, critical as _).ok() } } #[inline] -pub unsafe fn IsProcessorFeaturePresent(processorfeature: PROCESSOR_FEATURE_ID) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn IsProcessorFeaturePresent(processorfeature : PROCESSOR_FEATURE_ID) -> super::super::Foundation:: BOOL); +pub unsafe fn IsProcessorFeaturePresent(processorfeature: PROCESSOR_FEATURE_ID) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn IsProcessorFeaturePresent(processorfeature : PROCESSOR_FEATURE_ID) -> windows_core::BOOL); unsafe { IsProcessorFeaturePresent(processorfeature) } } #[inline] -pub unsafe fn IsThreadAFiber() -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn IsThreadAFiber() -> super::super::Foundation:: BOOL); +pub unsafe fn IsThreadAFiber() -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn IsThreadAFiber() -> windows_core::BOOL); unsafe { IsThreadAFiber() } } #[inline] -pub unsafe fn IsThreadpoolTimerSet(pti: PTP_TIMER) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn IsThreadpoolTimerSet(pti : PTP_TIMER) -> super::super::Foundation:: BOOL); +pub unsafe fn IsThreadpoolTimerSet(pti: PTP_TIMER) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn IsThreadpoolTimerSet(pti : PTP_TIMER) -> windows_core::BOOL); unsafe { IsThreadpoolTimerSet(pti) } } #[inline] -pub unsafe fn IsWow64Process(hprocess: super::super::Foundation::HANDLE, wow64process: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn IsWow64Process(hprocess : super::super::Foundation:: HANDLE, wow64process : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn IsWow64Process(hprocess: super::super::Foundation::HANDLE, wow64process: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("kernel32.dll" "system" fn IsWow64Process(hprocess : super::super::Foundation:: HANDLE, wow64process : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { IsWow64Process(hprocess, wow64process as _).ok() } } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] pub unsafe fn IsWow64Process2(hprocess: super::super::Foundation::HANDLE, pprocessmachine: *mut super::SystemInformation::IMAGE_FILE_MACHINE, pnativemachine: Option<*mut super::SystemInformation::IMAGE_FILE_MACHINE>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn IsWow64Process2(hprocess : super::super::Foundation:: HANDLE, pprocessmachine : *mut super::SystemInformation:: IMAGE_FILE_MACHINE, pnativemachine : *mut super::SystemInformation:: IMAGE_FILE_MACHINE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn IsWow64Process2(hprocess : super::super::Foundation:: HANDLE, pprocessmachine : *mut super::SystemInformation:: IMAGE_FILE_MACHINE, pnativemachine : *mut super::SystemInformation:: IMAGE_FILE_MACHINE) -> windows_core::BOOL); unsafe { IsWow64Process2(hprocess, pprocessmachine as _, pnativemachine.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_System_Kernel")] @@ -1150,7 +1150,7 @@ pub unsafe fn OpenEventA(dwdesiredaccess: SYNCHRONIZATION_ACCESS_RIGHTS, bin where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn OpenEventA(dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn OpenEventA(dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle : windows_core::BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); let result__ = unsafe { OpenEventA(dwdesiredaccess, binherithandle.into(), lpname.param().abi()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -1159,7 +1159,7 @@ pub unsafe fn OpenEventW(dwdesiredaccess: SYNCHRONIZATION_ACCESS_RIGHTS, bin where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn OpenEventW(dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn OpenEventW(dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle : windows_core::BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); let result__ = unsafe { OpenEventW(dwdesiredaccess, binherithandle.into(), lpname.param().abi()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -1168,7 +1168,7 @@ pub unsafe fn OpenMutexW(dwdesiredaccess: SYNCHRONIZATION_ACCESS_RIGHTS, bin where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn OpenMutexW(dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn OpenMutexW(dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle : windows_core::BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); let result__ = unsafe { OpenMutexW(dwdesiredaccess, binherithandle.into(), lpname.param().abi()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -1190,14 +1190,14 @@ where } #[inline] pub unsafe fn OpenProcess(dwdesiredaccess: PROCESS_ACCESS_RIGHTS, binherithandle: bool, dwprocessid: u32) -> windows_core::Result { - windows_targets::link!("kernel32.dll" "system" fn OpenProcess(dwdesiredaccess : PROCESS_ACCESS_RIGHTS, binherithandle : super::super::Foundation:: BOOL, dwprocessid : u32) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn OpenProcess(dwdesiredaccess : PROCESS_ACCESS_RIGHTS, binherithandle : windows_core::BOOL, dwprocessid : u32) -> super::super::Foundation:: HANDLE); let result__ = unsafe { OpenProcess(dwdesiredaccess, binherithandle.into(), dwprocessid) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn OpenProcessToken(processhandle: super::super::Foundation::HANDLE, desiredaccess: super::super::Security::TOKEN_ACCESS_MASK, tokenhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn OpenProcessToken(processhandle : super::super::Foundation:: HANDLE, desiredaccess : super::super::Security:: TOKEN_ACCESS_MASK, tokenhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn OpenProcessToken(processhandle : super::super::Foundation:: HANDLE, desiredaccess : super::super::Security:: TOKEN_ACCESS_MASK, tokenhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { OpenProcessToken(processhandle, desiredaccess, tokenhandle as _).ok() } } #[inline] @@ -1205,20 +1205,20 @@ pub unsafe fn OpenSemaphoreW(dwdesiredaccess: SYNCHRONIZATION_ACCESS_RIGHTS, where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn OpenSemaphoreW(dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn OpenSemaphoreW(dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle : windows_core::BOOL, lpname : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); let result__ = unsafe { OpenSemaphoreW(dwdesiredaccess, binherithandle.into(), lpname.param().abi()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn OpenThread(dwdesiredaccess: THREAD_ACCESS_RIGHTS, binherithandle: bool, dwthreadid: u32) -> windows_core::Result { - windows_targets::link!("kernel32.dll" "system" fn OpenThread(dwdesiredaccess : THREAD_ACCESS_RIGHTS, binherithandle : super::super::Foundation:: BOOL, dwthreadid : u32) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn OpenThread(dwdesiredaccess : THREAD_ACCESS_RIGHTS, binherithandle : windows_core::BOOL, dwthreadid : u32) -> super::super::Foundation:: HANDLE); let result__ = unsafe { OpenThread(dwdesiredaccess, binherithandle.into(), dwthreadid) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[cfg(feature = "Win32_Security")] #[inline] pub unsafe fn OpenThreadToken(threadhandle: super::super::Foundation::HANDLE, desiredaccess: super::super::Security::TOKEN_ACCESS_MASK, openasself: bool, tokenhandle: *mut super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn OpenThreadToken(threadhandle : super::super::Foundation:: HANDLE, desiredaccess : super::super::Security:: TOKEN_ACCESS_MASK, openasself : super::super::Foundation:: BOOL, tokenhandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn OpenThreadToken(threadhandle : super::super::Foundation:: HANDLE, desiredaccess : super::super::Security:: TOKEN_ACCESS_MASK, openasself : windows_core::BOOL, tokenhandle : *mut super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { OpenThreadToken(threadhandle, desiredaccess, openasself.into(), tokenhandle as _).ok() } } #[inline] @@ -1226,7 +1226,7 @@ pub unsafe fn OpenWaitableTimerA(dwdesiredaccess: u32, binherithandle: bool, where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn OpenWaitableTimerA(dwdesiredaccess : u32, binherithandle : super::super::Foundation:: BOOL, lptimername : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn OpenWaitableTimerA(dwdesiredaccess : u32, binherithandle : windows_core::BOOL, lptimername : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); unsafe { OpenWaitableTimerA(dwdesiredaccess, binherithandle.into(), lptimername.param().abi()) } } #[inline] @@ -1234,13 +1234,13 @@ pub unsafe fn OpenWaitableTimerW(dwdesiredaccess: SYNCHRONIZATION_ACCESS_RIG where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn OpenWaitableTimerW(dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle : super::super::Foundation:: BOOL, lptimername : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn OpenWaitableTimerW(dwdesiredaccess : SYNCHRONIZATION_ACCESS_RIGHTS, binherithandle : windows_core::BOOL, lptimername : windows_core::PCWSTR) -> super::super::Foundation:: HANDLE); let result__ = unsafe { OpenWaitableTimerW(dwdesiredaccess, binherithandle.into(), lptimername.param().abi()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn PulseEvent(hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn PulseEvent(hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn PulseEvent(hevent : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { PulseEvent(hevent).ok() } } #[cfg(feature = "Win32_System_Kernel")] @@ -1251,32 +1251,32 @@ pub unsafe fn QueryDepthSList(listhead: *const super::Kernel::SLIST_HEADER) -> u } #[inline] pub unsafe fn QueryFullProcessImageNameA(hprocess: super::super::Foundation::HANDLE, dwflags: PROCESS_NAME_FORMAT, lpexename: windows_core::PSTR, lpdwsize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn QueryFullProcessImageNameA(hprocess : super::super::Foundation:: HANDLE, dwflags : PROCESS_NAME_FORMAT, lpexename : windows_core::PSTR, lpdwsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn QueryFullProcessImageNameA(hprocess : super::super::Foundation:: HANDLE, dwflags : PROCESS_NAME_FORMAT, lpexename : windows_core::PSTR, lpdwsize : *mut u32) -> windows_core::BOOL); unsafe { QueryFullProcessImageNameA(hprocess, dwflags, core::mem::transmute(lpexename), lpdwsize as _).ok() } } #[inline] pub unsafe fn QueryFullProcessImageNameW(hprocess: super::super::Foundation::HANDLE, dwflags: PROCESS_NAME_FORMAT, lpexename: windows_core::PWSTR, lpdwsize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn QueryFullProcessImageNameW(hprocess : super::super::Foundation:: HANDLE, dwflags : PROCESS_NAME_FORMAT, lpexename : windows_core::PWSTR, lpdwsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn QueryFullProcessImageNameW(hprocess : super::super::Foundation:: HANDLE, dwflags : PROCESS_NAME_FORMAT, lpexename : windows_core::PWSTR, lpdwsize : *mut u32) -> windows_core::BOOL); unsafe { QueryFullProcessImageNameW(hprocess, dwflags, core::mem::transmute(lpexename), lpdwsize as _).ok() } } #[inline] pub unsafe fn QueryProcessAffinityUpdateMode(hprocess: super::super::Foundation::HANDLE, lpdwflags: Option<*mut PROCESS_AFFINITY_AUTO_UPDATE_FLAGS>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn QueryProcessAffinityUpdateMode(hprocess : super::super::Foundation:: HANDLE, lpdwflags : *mut PROCESS_AFFINITY_AUTO_UPDATE_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn QueryProcessAffinityUpdateMode(hprocess : super::super::Foundation:: HANDLE, lpdwflags : *mut PROCESS_AFFINITY_AUTO_UPDATE_FLAGS) -> windows_core::BOOL); unsafe { QueryProcessAffinityUpdateMode(hprocess, lpdwflags.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn QueryProtectedPolicy(policyguid: *const windows_core::GUID, policyvalue: *mut usize) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn QueryProtectedPolicy(policyguid : *const windows_core::GUID, policyvalue : *mut usize) -> super::super::Foundation:: BOOL); +pub unsafe fn QueryProtectedPolicy(policyguid: *const windows_core::GUID, policyvalue: *mut usize) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn QueryProtectedPolicy(policyguid : *const windows_core::GUID, policyvalue : *mut usize) -> windows_core::BOOL); unsafe { QueryProtectedPolicy(policyguid, policyvalue as _) } } #[inline] pub unsafe fn QueryThreadpoolStackInformation(ptpp: PTP_POOL, ptpsi: *mut TP_POOL_STACK_INFORMATION) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn QueryThreadpoolStackInformation(ptpp : PTP_POOL, ptpsi : *mut TP_POOL_STACK_INFORMATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn QueryThreadpoolStackInformation(ptpp : PTP_POOL, ptpsi : *mut TP_POOL_STACK_INFORMATION) -> windows_core::BOOL); unsafe { QueryThreadpoolStackInformation(ptpp, ptpsi as _).ok() } } #[inline] pub unsafe fn QueryUmsThreadInformation(umsthread: *const core::ffi::c_void, umsthreadinfoclass: UMS_THREAD_INFO_CLASS, umsthreadinformation: *mut core::ffi::c_void, umsthreadinformationlength: u32, returnlength: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn QueryUmsThreadInformation(umsthread : *const core::ffi::c_void, umsthreadinfoclass : UMS_THREAD_INFO_CLASS, umsthreadinformation : *mut core::ffi::c_void, umsthreadinformationlength : u32, returnlength : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn QueryUmsThreadInformation(umsthread : *const core::ffi::c_void, umsthreadinfoclass : UMS_THREAD_INFO_CLASS, umsthreadinformation : *mut core::ffi::c_void, umsthreadinformationlength : u32, returnlength : *mut u32) -> windows_core::BOOL); unsafe { QueryUmsThreadInformation(umsthread, umsthreadinfoclass, umsthreadinformation as _, umsthreadinformationlength, returnlength.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1285,23 +1285,23 @@ pub unsafe fn QueueUserAPC(pfnapc: super::super::Foundation::PAPCFUNC, hthread: unsafe { QueueUserAPC(pfnapc, hthread, dwdata) } } #[inline] -pub unsafe fn QueueUserAPC2(apcroutine: super::super::Foundation::PAPCFUNC, thread: super::super::Foundation::HANDLE, data: usize, flags: QUEUE_USER_APC_FLAGS) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn QueueUserAPC2(apcroutine : super::super::Foundation:: PAPCFUNC, thread : super::super::Foundation:: HANDLE, data : usize, flags : QUEUE_USER_APC_FLAGS) -> super::super::Foundation:: BOOL); +pub unsafe fn QueueUserAPC2(apcroutine: super::super::Foundation::PAPCFUNC, thread: super::super::Foundation::HANDLE, data: usize, flags: QUEUE_USER_APC_FLAGS) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn QueueUserAPC2(apcroutine : super::super::Foundation:: PAPCFUNC, thread : super::super::Foundation:: HANDLE, data : usize, flags : QUEUE_USER_APC_FLAGS) -> windows_core::BOOL); unsafe { QueueUserAPC2(apcroutine, thread, data, flags) } } #[inline] pub unsafe fn QueueUserWorkItem(function: LPTHREAD_START_ROUTINE, context: Option<*const core::ffi::c_void>, flags: WORKER_THREAD_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn QueueUserWorkItem(function : LPTHREAD_START_ROUTINE, context : *const core::ffi::c_void, flags : WORKER_THREAD_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn QueueUserWorkItem(function : LPTHREAD_START_ROUTINE, context : *const core::ffi::c_void, flags : WORKER_THREAD_FLAGS) -> windows_core::BOOL); unsafe { QueueUserWorkItem(function, context.unwrap_or(core::mem::zeroed()) as _, flags).ok() } } #[inline] pub unsafe fn RegisterWaitForSingleObject(phnewwaitobject: *mut super::super::Foundation::HANDLE, hobject: super::super::Foundation::HANDLE, callback: WAITORTIMERCALLBACK, context: Option<*const core::ffi::c_void>, dwmilliseconds: u32, dwflags: WORKER_THREAD_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn RegisterWaitForSingleObject(phnewwaitobject : *mut super::super::Foundation:: HANDLE, hobject : super::super::Foundation:: HANDLE, callback : WAITORTIMERCALLBACK, context : *const core::ffi::c_void, dwmilliseconds : u32, dwflags : WORKER_THREAD_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn RegisterWaitForSingleObject(phnewwaitobject : *mut super::super::Foundation:: HANDLE, hobject : super::super::Foundation:: HANDLE, callback : WAITORTIMERCALLBACK, context : *const core::ffi::c_void, dwmilliseconds : u32, dwflags : WORKER_THREAD_FLAGS) -> windows_core::BOOL); unsafe { RegisterWaitForSingleObject(phnewwaitobject as _, hobject, callback, context.unwrap_or(core::mem::zeroed()) as _, dwmilliseconds, dwflags).ok() } } #[inline] pub unsafe fn ReleaseMutex(hmutex: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ReleaseMutex(hmutex : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReleaseMutex(hmutex : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { ReleaseMutex(hmutex).ok() } } #[inline] @@ -1321,7 +1321,7 @@ pub unsafe fn ReleaseSRWLockShared(srwlock: *mut SRWLOCK) { } #[inline] pub unsafe fn ReleaseSemaphore(hsemaphore: super::super::Foundation::HANDLE, lreleasecount: i32, lppreviouscount: Option<*mut i32>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ReleaseSemaphore(hsemaphore : super::super::Foundation:: HANDLE, lreleasecount : i32, lppreviouscount : *mut i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReleaseSemaphore(hsemaphore : super::super::Foundation:: HANDLE, lreleasecount : i32, lppreviouscount : *mut i32) -> windows_core::BOOL); unsafe { ReleaseSemaphore(hsemaphore, lreleasecount, lppreviouscount.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1331,7 +1331,7 @@ pub unsafe fn ReleaseSemaphoreWhenCallbackReturns(pci: PTP_CALLBACK_INSTANCE, se } #[inline] pub unsafe fn ResetEvent(hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn ResetEvent(hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ResetEvent(hevent : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { ResetEvent(hevent).ok() } } #[inline] @@ -1534,7 +1534,7 @@ pub unsafe fn RtwqSetDeadline2(workqueueid: u32, deadlineinhns: i64, predeadline } #[inline] pub unsafe fn RtwqSetLongRunning(workqueueid: u32, enable: bool) -> windows_core::Result<()> { - windows_targets::link!("rtworkq.dll" "system" fn RtwqSetLongRunning(workqueueid : u32, enable : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("rtworkq.dll" "system" fn RtwqSetLongRunning(workqueueid : u32, enable : windows_core::BOOL) -> windows_core::HRESULT); unsafe { RtwqSetLongRunning(workqueueid, enable.into()).ok() } } #[inline] @@ -1583,7 +1583,7 @@ pub unsafe fn SetCriticalSectionSpinCount(lpcriticalsection: *mut CRITICAL_SECTI } #[inline] pub unsafe fn SetEvent(hevent: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetEvent(hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetEvent(hevent : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SetEvent(hevent).ok() } } #[inline] @@ -1593,78 +1593,78 @@ pub unsafe fn SetEventWhenCallbackReturns(pci: PTP_CALLBACK_INSTANCE, evt: super } #[inline] pub unsafe fn SetPriorityClass(hprocess: super::super::Foundation::HANDLE, dwpriorityclass: PROCESS_CREATION_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetPriorityClass(hprocess : super::super::Foundation:: HANDLE, dwpriorityclass : PROCESS_CREATION_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetPriorityClass(hprocess : super::super::Foundation:: HANDLE, dwpriorityclass : PROCESS_CREATION_FLAGS) -> windows_core::BOOL); unsafe { SetPriorityClass(hprocess, dwpriorityclass).ok() } } #[inline] pub unsafe fn SetProcessAffinityMask(hprocess: super::super::Foundation::HANDLE, dwprocessaffinitymask: usize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetProcessAffinityMask(hprocess : super::super::Foundation:: HANDLE, dwprocessaffinitymask : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetProcessAffinityMask(hprocess : super::super::Foundation:: HANDLE, dwprocessaffinitymask : usize) -> windows_core::BOOL); unsafe { SetProcessAffinityMask(hprocess, dwprocessaffinitymask).ok() } } #[inline] pub unsafe fn SetProcessAffinityUpdateMode(hprocess: super::super::Foundation::HANDLE, dwflags: PROCESS_AFFINITY_AUTO_UPDATE_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetProcessAffinityUpdateMode(hprocess : super::super::Foundation:: HANDLE, dwflags : PROCESS_AFFINITY_AUTO_UPDATE_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetProcessAffinityUpdateMode(hprocess : super::super::Foundation:: HANDLE, dwflags : PROCESS_AFFINITY_AUTO_UPDATE_FLAGS) -> windows_core::BOOL); unsafe { SetProcessAffinityUpdateMode(hprocess, dwflags).ok() } } #[inline] pub unsafe fn SetProcessDEPPolicy(dwflags: PROCESS_DEP_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetProcessDEPPolicy(dwflags : PROCESS_DEP_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetProcessDEPPolicy(dwflags : PROCESS_DEP_FLAGS) -> windows_core::BOOL); unsafe { SetProcessDEPPolicy(dwflags).ok() } } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] -pub unsafe fn SetProcessDefaultCpuSetMasks(process: super::super::Foundation::HANDLE, cpusetmasks: Option<&[super::SystemInformation::GROUP_AFFINITY]>) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn SetProcessDefaultCpuSetMasks(process : super::super::Foundation:: HANDLE, cpusetmasks : *const super::SystemInformation:: GROUP_AFFINITY, cpusetmaskcount : u16) -> super::super::Foundation:: BOOL); +pub unsafe fn SetProcessDefaultCpuSetMasks(process: super::super::Foundation::HANDLE, cpusetmasks: Option<&[super::SystemInformation::GROUP_AFFINITY]>) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn SetProcessDefaultCpuSetMasks(process : super::super::Foundation:: HANDLE, cpusetmasks : *const super::SystemInformation:: GROUP_AFFINITY, cpusetmaskcount : u16) -> windows_core::BOOL); unsafe { SetProcessDefaultCpuSetMasks(process, core::mem::transmute(cpusetmasks.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetmasks.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } } #[inline] -pub unsafe fn SetProcessDefaultCpuSets(process: super::super::Foundation::HANDLE, cpusetids: Option<&[u32]>) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn SetProcessDefaultCpuSets(process : super::super::Foundation:: HANDLE, cpusetids : *const u32, cpusetidcount : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn SetProcessDefaultCpuSets(process: super::super::Foundation::HANDLE, cpusetids: Option<&[u32]>) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn SetProcessDefaultCpuSets(process : super::super::Foundation:: HANDLE, cpusetids : *const u32, cpusetidcount : u32) -> windows_core::BOOL); unsafe { SetProcessDefaultCpuSets(process, core::mem::transmute(cpusetids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } } #[inline] pub unsafe fn SetProcessDynamicEHContinuationTargets(process: super::super::Foundation::HANDLE, targets: &mut [PROCESS_DYNAMIC_EH_CONTINUATION_TARGET]) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetProcessDynamicEHContinuationTargets(process : super::super::Foundation:: HANDLE, numberoftargets : u16, targets : *mut PROCESS_DYNAMIC_EH_CONTINUATION_TARGET) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetProcessDynamicEHContinuationTargets(process : super::super::Foundation:: HANDLE, numberoftargets : u16, targets : *mut PROCESS_DYNAMIC_EH_CONTINUATION_TARGET) -> windows_core::BOOL); unsafe { SetProcessDynamicEHContinuationTargets(process, targets.len().try_into().unwrap(), core::mem::transmute(targets.as_ptr())).ok() } } #[inline] -pub unsafe fn SetProcessDynamicEnforcedCetCompatibleRanges(process: super::super::Foundation::HANDLE, ranges: &mut [PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE]) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn SetProcessDynamicEnforcedCetCompatibleRanges(process : super::super::Foundation:: HANDLE, numberofranges : u16, ranges : *mut PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE) -> super::super::Foundation:: BOOL); +pub unsafe fn SetProcessDynamicEnforcedCetCompatibleRanges(process: super::super::Foundation::HANDLE, ranges: &mut [PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE]) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn SetProcessDynamicEnforcedCetCompatibleRanges(process : super::super::Foundation:: HANDLE, numberofranges : u16, ranges : *mut PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE) -> windows_core::BOOL); unsafe { SetProcessDynamicEnforcedCetCompatibleRanges(process, ranges.len().try_into().unwrap(), core::mem::transmute(ranges.as_ptr())) } } #[inline] pub unsafe fn SetProcessInformation(hprocess: super::super::Foundation::HANDLE, processinformationclass: PROCESS_INFORMATION_CLASS, processinformation: *const core::ffi::c_void, processinformationsize: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetProcessInformation(hprocess : super::super::Foundation:: HANDLE, processinformationclass : PROCESS_INFORMATION_CLASS, processinformation : *const core::ffi::c_void, processinformationsize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetProcessInformation(hprocess : super::super::Foundation:: HANDLE, processinformationclass : PROCESS_INFORMATION_CLASS, processinformation : *const core::ffi::c_void, processinformationsize : u32) -> windows_core::BOOL); unsafe { SetProcessInformation(hprocess, processinformationclass, processinformation, processinformationsize).ok() } } #[inline] pub unsafe fn SetProcessMitigationPolicy(mitigationpolicy: PROCESS_MITIGATION_POLICY, lpbuffer: *const core::ffi::c_void, dwlength: usize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetProcessMitigationPolicy(mitigationpolicy : PROCESS_MITIGATION_POLICY, lpbuffer : *const core::ffi::c_void, dwlength : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetProcessMitigationPolicy(mitigationpolicy : PROCESS_MITIGATION_POLICY, lpbuffer : *const core::ffi::c_void, dwlength : usize) -> windows_core::BOOL); unsafe { SetProcessMitigationPolicy(mitigationpolicy, lpbuffer, dwlength).ok() } } #[inline] pub unsafe fn SetProcessPriorityBoost(hprocess: super::super::Foundation::HANDLE, bdisablepriorityboost: bool) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetProcessPriorityBoost(hprocess : super::super::Foundation:: HANDLE, bdisablepriorityboost : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetProcessPriorityBoost(hprocess : super::super::Foundation:: HANDLE, bdisablepriorityboost : windows_core::BOOL) -> windows_core::BOOL); unsafe { SetProcessPriorityBoost(hprocess, bdisablepriorityboost.into()).ok() } } #[inline] pub unsafe fn SetProcessRestrictionExemption(fenableexemption: bool) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetProcessRestrictionExemption(fenableexemption : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetProcessRestrictionExemption(fenableexemption : windows_core::BOOL) -> windows_core::BOOL); unsafe { SetProcessRestrictionExemption(fenableexemption.into()).ok() } } #[inline] pub unsafe fn SetProcessShutdownParameters(dwlevel: u32, dwflags: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetProcessShutdownParameters(dwlevel : u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetProcessShutdownParameters(dwlevel : u32, dwflags : u32) -> windows_core::BOOL); unsafe { SetProcessShutdownParameters(dwlevel, dwflags).ok() } } #[inline] pub unsafe fn SetProcessWorkingSetSize(hprocess: super::super::Foundation::HANDLE, dwminimumworkingsetsize: usize, dwmaximumworkingsetsize: usize) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetProcessWorkingSetSize(hprocess : super::super::Foundation:: HANDLE, dwminimumworkingsetsize : usize, dwmaximumworkingsetsize : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetProcessWorkingSetSize(hprocess : super::super::Foundation:: HANDLE, dwminimumworkingsetsize : usize, dwmaximumworkingsetsize : usize) -> windows_core::BOOL); unsafe { SetProcessWorkingSetSize(hprocess, dwminimumworkingsetsize, dwmaximumworkingsetsize).ok() } } #[inline] pub unsafe fn SetProtectedPolicy(policyguid: *const windows_core::GUID, policyvalue: usize, oldpolicyvalue: Option<*mut usize>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetProtectedPolicy(policyguid : *const windows_core::GUID, policyvalue : usize, oldpolicyvalue : *mut usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetProtectedPolicy(policyguid : *const windows_core::GUID, policyvalue : usize, oldpolicyvalue : *mut usize) -> windows_core::BOOL); unsafe { SetProtectedPolicy(policyguid, policyvalue, oldpolicyvalue.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1682,8 +1682,8 @@ where } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] -pub unsafe fn SetThreadGroupAffinity(hthread: super::super::Foundation::HANDLE, groupaffinity: *const super::SystemInformation::GROUP_AFFINITY, previousgroupaffinity: Option<*mut super::SystemInformation::GROUP_AFFINITY>) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn SetThreadGroupAffinity(hthread : super::super::Foundation:: HANDLE, groupaffinity : *const super::SystemInformation:: GROUP_AFFINITY, previousgroupaffinity : *mut super::SystemInformation:: GROUP_AFFINITY) -> super::super::Foundation:: BOOL); +pub unsafe fn SetThreadGroupAffinity(hthread: super::super::Foundation::HANDLE, groupaffinity: *const super::SystemInformation::GROUP_AFFINITY, previousgroupaffinity: Option<*mut super::SystemInformation::GROUP_AFFINITY>) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn SetThreadGroupAffinity(hthread : super::super::Foundation:: HANDLE, groupaffinity : *const super::SystemInformation:: GROUP_AFFINITY, previousgroupaffinity : *mut super::SystemInformation:: GROUP_AFFINITY) -> windows_core::BOOL); unsafe { SetThreadGroupAffinity(hthread, groupaffinity, previousgroupaffinity.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1694,48 +1694,48 @@ pub unsafe fn SetThreadIdealProcessor(hthread: super::super::Foundation::HANDLE, #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn SetThreadIdealProcessorEx(hthread: super::super::Foundation::HANDLE, lpidealprocessor: *const super::Kernel::PROCESSOR_NUMBER, lppreviousidealprocessor: Option<*mut super::Kernel::PROCESSOR_NUMBER>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetThreadIdealProcessorEx(hthread : super::super::Foundation:: HANDLE, lpidealprocessor : *const super::Kernel:: PROCESSOR_NUMBER, lppreviousidealprocessor : *mut super::Kernel:: PROCESSOR_NUMBER) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetThreadIdealProcessorEx(hthread : super::super::Foundation:: HANDLE, lpidealprocessor : *const super::Kernel:: PROCESSOR_NUMBER, lppreviousidealprocessor : *mut super::Kernel:: PROCESSOR_NUMBER) -> windows_core::BOOL); unsafe { SetThreadIdealProcessorEx(hthread, lpidealprocessor, lppreviousidealprocessor.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetThreadInformation(hthread: super::super::Foundation::HANDLE, threadinformationclass: THREAD_INFORMATION_CLASS, threadinformation: *const core::ffi::c_void, threadinformationsize: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetThreadInformation(hthread : super::super::Foundation:: HANDLE, threadinformationclass : THREAD_INFORMATION_CLASS, threadinformation : *const core::ffi::c_void, threadinformationsize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetThreadInformation(hthread : super::super::Foundation:: HANDLE, threadinformationclass : THREAD_INFORMATION_CLASS, threadinformation : *const core::ffi::c_void, threadinformationsize : u32) -> windows_core::BOOL); unsafe { SetThreadInformation(hthread, threadinformationclass, threadinformation, threadinformationsize).ok() } } #[inline] pub unsafe fn SetThreadPriority(hthread: super::super::Foundation::HANDLE, npriority: THREAD_PRIORITY) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetThreadPriority(hthread : super::super::Foundation:: HANDLE, npriority : THREAD_PRIORITY) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetThreadPriority(hthread : super::super::Foundation:: HANDLE, npriority : THREAD_PRIORITY) -> windows_core::BOOL); unsafe { SetThreadPriority(hthread, npriority).ok() } } #[inline] pub unsafe fn SetThreadPriorityBoost(hthread: super::super::Foundation::HANDLE, bdisablepriorityboost: bool) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetThreadPriorityBoost(hthread : super::super::Foundation:: HANDLE, bdisablepriorityboost : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetThreadPriorityBoost(hthread : super::super::Foundation:: HANDLE, bdisablepriorityboost : windows_core::BOOL) -> windows_core::BOOL); unsafe { SetThreadPriorityBoost(hthread, bdisablepriorityboost.into()).ok() } } #[cfg(feature = "Win32_System_SystemInformation")] #[inline] -pub unsafe fn SetThreadSelectedCpuSetMasks(thread: super::super::Foundation::HANDLE, cpusetmasks: Option<&[super::SystemInformation::GROUP_AFFINITY]>) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn SetThreadSelectedCpuSetMasks(thread : super::super::Foundation:: HANDLE, cpusetmasks : *const super::SystemInformation:: GROUP_AFFINITY, cpusetmaskcount : u16) -> super::super::Foundation:: BOOL); +pub unsafe fn SetThreadSelectedCpuSetMasks(thread: super::super::Foundation::HANDLE, cpusetmasks: Option<&[super::SystemInformation::GROUP_AFFINITY]>) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn SetThreadSelectedCpuSetMasks(thread : super::super::Foundation:: HANDLE, cpusetmasks : *const super::SystemInformation:: GROUP_AFFINITY, cpusetmaskcount : u16) -> windows_core::BOOL); unsafe { SetThreadSelectedCpuSetMasks(thread, core::mem::transmute(cpusetmasks.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), cpusetmasks.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } } #[inline] -pub unsafe fn SetThreadSelectedCpuSets(thread: super::super::Foundation::HANDLE, cpusetids: &[u32]) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn SetThreadSelectedCpuSets(thread : super::super::Foundation:: HANDLE, cpusetids : *const u32, cpusetidcount : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn SetThreadSelectedCpuSets(thread: super::super::Foundation::HANDLE, cpusetids: &[u32]) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn SetThreadSelectedCpuSets(thread : super::super::Foundation:: HANDLE, cpusetids : *const u32, cpusetidcount : u32) -> windows_core::BOOL); unsafe { SetThreadSelectedCpuSets(thread, core::mem::transmute(cpusetids.as_ptr()), cpusetids.len().try_into().unwrap()) } } #[inline] pub unsafe fn SetThreadStackGuarantee(stacksizeinbytes: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetThreadStackGuarantee(stacksizeinbytes : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetThreadStackGuarantee(stacksizeinbytes : *mut u32) -> windows_core::BOOL); unsafe { SetThreadStackGuarantee(stacksizeinbytes as _).ok() } } #[inline] pub unsafe fn SetThreadToken(thread: Option<*const super::super::Foundation::HANDLE>, token: Option) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn SetThreadToken(thread : *const super::super::Foundation:: HANDLE, token : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn SetThreadToken(thread : *const super::super::Foundation:: HANDLE, token : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SetThreadToken(thread.unwrap_or(core::mem::zeroed()) as _, token.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetThreadpoolStackInformation(ptpp: PTP_POOL, ptpsi: *const TP_POOL_STACK_INFORMATION) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolStackInformation(ptpp : PTP_POOL, ptpsi : *const TP_POOL_STACK_INFORMATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolStackInformation(ptpp : PTP_POOL, ptpsi : *const TP_POOL_STACK_INFORMATION) -> windows_core::BOOL); unsafe { SetThreadpoolStackInformation(ptpp, ptpsi).ok() } } #[inline] @@ -1745,7 +1745,7 @@ pub unsafe fn SetThreadpoolThreadMaximum(ptpp: PTP_POOL, cthrdmost: u32) { } #[inline] pub unsafe fn SetThreadpoolThreadMinimum(ptpp: PTP_POOL, cthrdmic: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolThreadMinimum(ptpp : PTP_POOL, cthrdmic : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolThreadMinimum(ptpp : PTP_POOL, cthrdmic : u32) -> windows_core::BOOL); unsafe { SetThreadpoolThreadMinimum(ptpp, cthrdmic).ok() } } #[inline] @@ -1754,8 +1754,8 @@ pub unsafe fn SetThreadpoolTimer(pti: PTP_TIMER, pftduetime: Option<*const super unsafe { SetThreadpoolTimer(pti, pftduetime.unwrap_or(core::mem::zeroed()) as _, msperiod, mswindowlength.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn SetThreadpoolTimerEx(pti: PTP_TIMER, pftduetime: Option<*const super::super::Foundation::FILETIME>, msperiod: u32, mswindowlength: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolTimerEx(pti : PTP_TIMER, pftduetime : *const super::super::Foundation:: FILETIME, msperiod : u32, mswindowlength : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn SetThreadpoolTimerEx(pti: PTP_TIMER, pftduetime: Option<*const super::super::Foundation::FILETIME>, msperiod: u32, mswindowlength: Option) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolTimerEx(pti : PTP_TIMER, pftduetime : *const super::super::Foundation:: FILETIME, msperiod : u32, mswindowlength : u32) -> windows_core::BOOL); unsafe { SetThreadpoolTimerEx(pti, pftduetime.unwrap_or(core::mem::zeroed()) as _, msperiod, mswindowlength.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1764,33 +1764,33 @@ pub unsafe fn SetThreadpoolWait(pwa: PTP_WAIT, h: Option, pfttimeout: Option<*const super::super::Foundation::FILETIME>, reserved: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolWaitEx(pwa : PTP_WAIT, h : super::super::Foundation:: HANDLE, pfttimeout : *const super::super::Foundation:: FILETIME, reserved : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn SetThreadpoolWaitEx(pwa: PTP_WAIT, h: Option, pfttimeout: Option<*const super::super::Foundation::FILETIME>, reserved: Option<*const core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn SetThreadpoolWaitEx(pwa : PTP_WAIT, h : super::super::Foundation:: HANDLE, pfttimeout : *const super::super::Foundation:: FILETIME, reserved : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetThreadpoolWaitEx(pwa, h.unwrap_or(core::mem::zeroed()) as _, pfttimeout.unwrap_or(core::mem::zeroed()) as _, reserved.unwrap_or(core::mem::zeroed()) as _) } } #[inline] pub unsafe fn SetTimerQueueTimer(timerqueue: Option, callback: WAITORTIMERCALLBACK, parameter: Option<*const core::ffi::c_void>, duetime: u32, period: u32, preferio: bool) -> super::super::Foundation::HANDLE { - windows_targets::link!("kernel32.dll" "system" fn SetTimerQueueTimer(timerqueue : super::super::Foundation:: HANDLE, callback : WAITORTIMERCALLBACK, parameter : *const core::ffi::c_void, duetime : u32, period : u32, preferio : super::super::Foundation:: BOOL) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn SetTimerQueueTimer(timerqueue : super::super::Foundation:: HANDLE, callback : WAITORTIMERCALLBACK, parameter : *const core::ffi::c_void, duetime : u32, period : u32, preferio : windows_core::BOOL) -> super::super::Foundation:: HANDLE); unsafe { SetTimerQueueTimer(timerqueue.unwrap_or(core::mem::zeroed()) as _, callback, parameter.unwrap_or(core::mem::zeroed()) as _, duetime, period, preferio.into()) } } #[inline] pub unsafe fn SetUmsThreadInformation(umsthread: *const core::ffi::c_void, umsthreadinfoclass: UMS_THREAD_INFO_CLASS, umsthreadinformation: *const core::ffi::c_void, umsthreadinformationlength: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetUmsThreadInformation(umsthread : *const core::ffi::c_void, umsthreadinfoclass : UMS_THREAD_INFO_CLASS, umsthreadinformation : *const core::ffi::c_void, umsthreadinformationlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetUmsThreadInformation(umsthread : *const core::ffi::c_void, umsthreadinfoclass : UMS_THREAD_INFO_CLASS, umsthreadinformation : *const core::ffi::c_void, umsthreadinformationlength : u32) -> windows_core::BOOL); unsafe { SetUmsThreadInformation(umsthread, umsthreadinfoclass, umsthreadinformation, umsthreadinformationlength).ok() } } #[inline] pub unsafe fn SetWaitableTimer(htimer: super::super::Foundation::HANDLE, lpduetime: *const i64, lperiod: i32, pfncompletionroutine: Option, lpargtocompletionroutine: Option<*const core::ffi::c_void>, fresume: bool) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetWaitableTimer(htimer : super::super::Foundation:: HANDLE, lpduetime : *const i64, lperiod : i32, pfncompletionroutine : PTIMERAPCROUTINE, lpargtocompletionroutine : *const core::ffi::c_void, fresume : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetWaitableTimer(htimer : super::super::Foundation:: HANDLE, lpduetime : *const i64, lperiod : i32, pfncompletionroutine : PTIMERAPCROUTINE, lpargtocompletionroutine : *const core::ffi::c_void, fresume : windows_core::BOOL) -> windows_core::BOOL); unsafe { SetWaitableTimer(htimer, lpduetime, lperiod, pfncompletionroutine.unwrap_or(core::mem::zeroed()) as _, lpargtocompletionroutine.unwrap_or(core::mem::zeroed()) as _, fresume.into()).ok() } } #[inline] pub unsafe fn SetWaitableTimerEx(htimer: super::super::Foundation::HANDLE, lpduetime: *const i64, lperiod: i32, pfncompletionroutine: Option, lpargtocompletionroutine: Option<*const core::ffi::c_void>, wakecontext: Option<*const REASON_CONTEXT>, tolerabledelay: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetWaitableTimerEx(htimer : super::super::Foundation:: HANDLE, lpduetime : *const i64, lperiod : i32, pfncompletionroutine : PTIMERAPCROUTINE, lpargtocompletionroutine : *const core::ffi::c_void, wakecontext : *const REASON_CONTEXT, tolerabledelay : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetWaitableTimerEx(htimer : super::super::Foundation:: HANDLE, lpduetime : *const i64, lperiod : i32, pfncompletionroutine : PTIMERAPCROUTINE, lpargtocompletionroutine : *const core::ffi::c_void, wakecontext : *const REASON_CONTEXT, tolerabledelay : u32) -> windows_core::BOOL); unsafe { SetWaitableTimerEx(htimer, lpduetime, lperiod, pfncompletionroutine.unwrap_or(core::mem::zeroed()) as _, lpargtocompletionroutine.unwrap_or(core::mem::zeroed()) as _, wakecontext.unwrap_or(core::mem::zeroed()) as _, tolerabledelay).ok() } } #[inline] pub unsafe fn SignalObjectAndWait(hobjecttosignal: super::super::Foundation::HANDLE, hobjecttowaiton: super::super::Foundation::HANDLE, dwmilliseconds: u32, balertable: bool) -> super::super::Foundation::WAIT_EVENT { - windows_targets::link!("kernel32.dll" "system" fn SignalObjectAndWait(hobjecttosignal : super::super::Foundation:: HANDLE, hobjecttowaiton : super::super::Foundation:: HANDLE, dwmilliseconds : u32, balertable : super::super::Foundation:: BOOL) -> super::super::Foundation:: WAIT_EVENT); + windows_targets::link!("kernel32.dll" "system" fn SignalObjectAndWait(hobjecttosignal : super::super::Foundation:: HANDLE, hobjecttowaiton : super::super::Foundation:: HANDLE, dwmilliseconds : u32, balertable : windows_core::BOOL) -> super::super::Foundation:: WAIT_EVENT); unsafe { SignalObjectAndWait(hobjecttosignal, hobjecttowaiton, dwmilliseconds, balertable.into()) } } #[inline] @@ -1801,17 +1801,17 @@ pub unsafe fn Sleep(dwmilliseconds: u32) { #[cfg(feature = "Win32_System_Kernel")] #[inline] pub unsafe fn SleepConditionVariableCS(conditionvariable: *mut CONDITION_VARIABLE, criticalsection: *mut CRITICAL_SECTION, dwmilliseconds: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SleepConditionVariableCS(conditionvariable : *mut CONDITION_VARIABLE, criticalsection : *mut CRITICAL_SECTION, dwmilliseconds : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SleepConditionVariableCS(conditionvariable : *mut CONDITION_VARIABLE, criticalsection : *mut CRITICAL_SECTION, dwmilliseconds : u32) -> windows_core::BOOL); unsafe { SleepConditionVariableCS(conditionvariable as _, criticalsection as _, dwmilliseconds).ok() } } #[inline] pub unsafe fn SleepConditionVariableSRW(conditionvariable: *mut CONDITION_VARIABLE, srwlock: *mut SRWLOCK, dwmilliseconds: u32, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SleepConditionVariableSRW(conditionvariable : *mut CONDITION_VARIABLE, srwlock : *mut SRWLOCK, dwmilliseconds : u32, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SleepConditionVariableSRW(conditionvariable : *mut CONDITION_VARIABLE, srwlock : *mut SRWLOCK, dwmilliseconds : u32, flags : u32) -> windows_core::BOOL); unsafe { SleepConditionVariableSRW(conditionvariable as _, srwlock as _, dwmilliseconds, flags).ok() } } #[inline] pub unsafe fn SleepEx(dwmilliseconds: u32, balertable: bool) -> u32 { - windows_targets::link!("kernel32.dll" "system" fn SleepEx(dwmilliseconds : u32, balertable : super::super::Foundation:: BOOL) -> u32); + windows_targets::link!("kernel32.dll" "system" fn SleepEx(dwmilliseconds : u32, balertable : windows_core::BOOL) -> u32); unsafe { SleepEx(dwmilliseconds, balertable.into()) } } #[inline] @@ -1835,18 +1835,18 @@ pub unsafe fn SwitchToFiber(lpfiber: *const core::ffi::c_void) { unsafe { SwitchToFiber(lpfiber) } } #[inline] -pub unsafe fn SwitchToThread() -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn SwitchToThread() -> super::super::Foundation:: BOOL); +pub unsafe fn SwitchToThread() -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn SwitchToThread() -> windows_core::BOOL); unsafe { SwitchToThread() } } #[inline] pub unsafe fn TerminateProcess(hprocess: super::super::Foundation::HANDLE, uexitcode: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn TerminateProcess(hprocess : super::super::Foundation:: HANDLE, uexitcode : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn TerminateProcess(hprocess : super::super::Foundation:: HANDLE, uexitcode : u32) -> windows_core::BOOL); unsafe { TerminateProcess(hprocess, uexitcode).ok() } } #[inline] pub unsafe fn TerminateThread(hthread: super::super::Foundation::HANDLE, dwexitcode: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn TerminateThread(hthread : super::super::Foundation:: HANDLE, dwexitcode : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn TerminateThread(hthread : super::super::Foundation:: HANDLE, dwexitcode : u32) -> windows_core::BOOL); unsafe { TerminateThread(hthread, dwexitcode).ok() } } #[inline] @@ -1856,7 +1856,7 @@ pub unsafe fn TlsAlloc() -> u32 { } #[inline] pub unsafe fn TlsFree(dwtlsindex: u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn TlsFree(dwtlsindex : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn TlsFree(dwtlsindex : u32) -> windows_core::BOOL); unsafe { TlsFree(dwtlsindex).ok() } } #[inline] @@ -1866,7 +1866,7 @@ pub unsafe fn TlsGetValue(dwtlsindex: u32) -> *mut core::ffi::c_void { } #[inline] pub unsafe fn TlsSetValue(dwtlsindex: u32, lptlsvalue: Option<*const core::ffi::c_void>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn TlsSetValue(dwtlsindex : u32, lptlsvalue : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn TlsSetValue(dwtlsindex : u32, lptlsvalue : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { TlsSetValue(dwtlsindex, lptlsvalue.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1881,33 +1881,33 @@ pub unsafe fn TryAcquireSRWLockShared(srwlock: *mut SRWLOCK) -> bool { } #[cfg(feature = "Win32_System_Kernel")] #[inline] -pub unsafe fn TryEnterCriticalSection(lpcriticalsection: *mut CRITICAL_SECTION) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn TryEnterCriticalSection(lpcriticalsection : *mut CRITICAL_SECTION) -> super::super::Foundation:: BOOL); +pub unsafe fn TryEnterCriticalSection(lpcriticalsection: *mut CRITICAL_SECTION) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn TryEnterCriticalSection(lpcriticalsection : *mut CRITICAL_SECTION) -> windows_core::BOOL); unsafe { TryEnterCriticalSection(lpcriticalsection as _) } } #[inline] pub unsafe fn TrySubmitThreadpoolCallback(pfns: PTP_SIMPLE_CALLBACK, pv: Option<*mut core::ffi::c_void>, pcbe: Option<*const TP_CALLBACK_ENVIRON_V3>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn TrySubmitThreadpoolCallback(pfns : PTP_SIMPLE_CALLBACK, pv : *mut core::ffi::c_void, pcbe : *const TP_CALLBACK_ENVIRON_V3) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn TrySubmitThreadpoolCallback(pfns : PTP_SIMPLE_CALLBACK, pv : *mut core::ffi::c_void, pcbe : *const TP_CALLBACK_ENVIRON_V3) -> windows_core::BOOL); unsafe { TrySubmitThreadpoolCallback(pfns, pv.unwrap_or(core::mem::zeroed()) as _, pcbe.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn UmsThreadYield(schedulerparam: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn UmsThreadYield(schedulerparam : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn UmsThreadYield(schedulerparam : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { UmsThreadYield(schedulerparam).ok() } } #[inline] pub unsafe fn UnregisterWait(waithandle: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn UnregisterWait(waithandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn UnregisterWait(waithandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { UnregisterWait(waithandle).ok() } } #[inline] pub unsafe fn UnregisterWaitEx(waithandle: super::super::Foundation::HANDLE, completionevent: Option) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn UnregisterWaitEx(waithandle : super::super::Foundation:: HANDLE, completionevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn UnregisterWaitEx(waithandle : super::super::Foundation:: HANDLE, completionevent : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { UnregisterWaitEx(waithandle, completionevent.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn UpdateProcThreadAttribute(lpattributelist: LPPROC_THREAD_ATTRIBUTE_LIST, dwflags: u32, attribute: usize, lpvalue: Option<*const core::ffi::c_void>, cbsize: usize, lppreviousvalue: Option<*mut core::ffi::c_void>, lpreturnsize: Option<*const usize>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn UpdateProcThreadAttribute(lpattributelist : LPPROC_THREAD_ATTRIBUTE_LIST, dwflags : u32, attribute : usize, lpvalue : *const core::ffi::c_void, cbsize : usize, lppreviousvalue : *mut core::ffi::c_void, lpreturnsize : *const usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn UpdateProcThreadAttribute(lpattributelist : LPPROC_THREAD_ATTRIBUTE_LIST, dwflags : u32, attribute : usize, lpvalue : *const core::ffi::c_void, cbsize : usize, lppreviousvalue : *mut core::ffi::c_void, lpreturnsize : *const usize) -> windows_core::BOOL); unsafe { UpdateProcThreadAttribute(lpattributelist as _, dwflags, attribute, lpvalue.unwrap_or(core::mem::zeroed()) as _, cbsize, lppreviousvalue.unwrap_or(core::mem::zeroed()) as _, lpreturnsize.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1917,12 +1917,12 @@ pub unsafe fn WaitForInputIdle(hprocess: super::super::Foundation::HANDLE, dwmil } #[inline] pub unsafe fn WaitForMultipleObjects(lphandles: &[super::super::Foundation::HANDLE], bwaitall: bool, dwmilliseconds: u32) -> super::super::Foundation::WAIT_EVENT { - windows_targets::link!("kernel32.dll" "system" fn WaitForMultipleObjects(ncount : u32, lphandles : *const super::super::Foundation:: HANDLE, bwaitall : super::super::Foundation:: BOOL, dwmilliseconds : u32) -> super::super::Foundation:: WAIT_EVENT); + windows_targets::link!("kernel32.dll" "system" fn WaitForMultipleObjects(ncount : u32, lphandles : *const super::super::Foundation:: HANDLE, bwaitall : windows_core::BOOL, dwmilliseconds : u32) -> super::super::Foundation:: WAIT_EVENT); unsafe { WaitForMultipleObjects(lphandles.len().try_into().unwrap(), core::mem::transmute(lphandles.as_ptr()), bwaitall.into(), dwmilliseconds) } } #[inline] pub unsafe fn WaitForMultipleObjectsEx(lphandles: &[super::super::Foundation::HANDLE], bwaitall: bool, dwmilliseconds: u32, balertable: bool) -> super::super::Foundation::WAIT_EVENT { - windows_targets::link!("kernel32.dll" "system" fn WaitForMultipleObjectsEx(ncount : u32, lphandles : *const super::super::Foundation:: HANDLE, bwaitall : super::super::Foundation:: BOOL, dwmilliseconds : u32, balertable : super::super::Foundation:: BOOL) -> super::super::Foundation:: WAIT_EVENT); + windows_targets::link!("kernel32.dll" "system" fn WaitForMultipleObjectsEx(ncount : u32, lphandles : *const super::super::Foundation:: HANDLE, bwaitall : windows_core::BOOL, dwmilliseconds : u32, balertable : windows_core::BOOL) -> super::super::Foundation:: WAIT_EVENT); unsafe { WaitForMultipleObjectsEx(lphandles.len().try_into().unwrap(), core::mem::transmute(lphandles.as_ptr()), bwaitall.into(), dwmilliseconds, balertable.into()) } } #[inline] @@ -1932,32 +1932,32 @@ pub unsafe fn WaitForSingleObject(hhandle: super::super::Foundation::HANDLE, dwm } #[inline] pub unsafe fn WaitForSingleObjectEx(hhandle: super::super::Foundation::HANDLE, dwmilliseconds: u32, balertable: bool) -> super::super::Foundation::WAIT_EVENT { - windows_targets::link!("kernel32.dll" "system" fn WaitForSingleObjectEx(hhandle : super::super::Foundation:: HANDLE, dwmilliseconds : u32, balertable : super::super::Foundation:: BOOL) -> super::super::Foundation:: WAIT_EVENT); + windows_targets::link!("kernel32.dll" "system" fn WaitForSingleObjectEx(hhandle : super::super::Foundation:: HANDLE, dwmilliseconds : u32, balertable : windows_core::BOOL) -> super::super::Foundation:: WAIT_EVENT); unsafe { WaitForSingleObjectEx(hhandle, dwmilliseconds, balertable.into()) } } #[inline] pub unsafe fn WaitForThreadpoolIoCallbacks(pio: PTP_IO, fcancelpendingcallbacks: bool) { - windows_targets::link!("kernel32.dll" "system" fn WaitForThreadpoolIoCallbacks(pio : PTP_IO, fcancelpendingcallbacks : super::super::Foundation:: BOOL)); + windows_targets::link!("kernel32.dll" "system" fn WaitForThreadpoolIoCallbacks(pio : PTP_IO, fcancelpendingcallbacks : windows_core::BOOL)); unsafe { WaitForThreadpoolIoCallbacks(pio, fcancelpendingcallbacks.into()) } } #[inline] pub unsafe fn WaitForThreadpoolTimerCallbacks(pti: PTP_TIMER, fcancelpendingcallbacks: bool) { - windows_targets::link!("kernel32.dll" "system" fn WaitForThreadpoolTimerCallbacks(pti : PTP_TIMER, fcancelpendingcallbacks : super::super::Foundation:: BOOL)); + windows_targets::link!("kernel32.dll" "system" fn WaitForThreadpoolTimerCallbacks(pti : PTP_TIMER, fcancelpendingcallbacks : windows_core::BOOL)); unsafe { WaitForThreadpoolTimerCallbacks(pti, fcancelpendingcallbacks.into()) } } #[inline] pub unsafe fn WaitForThreadpoolWaitCallbacks(pwa: PTP_WAIT, fcancelpendingcallbacks: bool) { - windows_targets::link!("kernel32.dll" "system" fn WaitForThreadpoolWaitCallbacks(pwa : PTP_WAIT, fcancelpendingcallbacks : super::super::Foundation:: BOOL)); + windows_targets::link!("kernel32.dll" "system" fn WaitForThreadpoolWaitCallbacks(pwa : PTP_WAIT, fcancelpendingcallbacks : windows_core::BOOL)); unsafe { WaitForThreadpoolWaitCallbacks(pwa, fcancelpendingcallbacks.into()) } } #[inline] pub unsafe fn WaitForThreadpoolWorkCallbacks(pwk: PTP_WORK, fcancelpendingcallbacks: bool) { - windows_targets::link!("kernel32.dll" "system" fn WaitForThreadpoolWorkCallbacks(pwk : PTP_WORK, fcancelpendingcallbacks : super::super::Foundation:: BOOL)); + windows_targets::link!("kernel32.dll" "system" fn WaitForThreadpoolWorkCallbacks(pwk : PTP_WORK, fcancelpendingcallbacks : windows_core::BOOL)); unsafe { WaitForThreadpoolWorkCallbacks(pwk, fcancelpendingcallbacks.into()) } } #[inline] pub unsafe fn WaitOnAddress(address: *const core::ffi::c_void, compareaddress: *const core::ffi::c_void, addresssize: usize, dwmilliseconds: Option) -> windows_core::Result<()> { - windows_targets::link!("api-ms-win-core-synch-l1-2-0.dll" "system" fn WaitOnAddress(address : *const core::ffi::c_void, compareaddress : *const core::ffi::c_void, addresssize : usize, dwmilliseconds : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-synch-l1-2-0.dll" "system" fn WaitOnAddress(address : *const core::ffi::c_void, compareaddress : *const core::ffi::c_void, addresssize : usize, dwmilliseconds : u32) -> windows_core::BOOL); unsafe { WaitOnAddress(address, compareaddress, addresssize, dwmilliseconds.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2572,7 +2572,7 @@ pub const PF_VIRT_FIRMWARE_ENABLED: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID( pub const PF_XMMI64_INSTRUCTIONS_AVAILABLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(10u32); pub const PF_XMMI_INSTRUCTIONS_AVAILABLE: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(6u32); pub const PF_XSAVE_ENABLED: PROCESSOR_FEATURE_ID = PROCESSOR_FEATURE_ID(17u32); -pub type PINIT_ONCE_FN = Option super::super::Foundation::BOOL>; +pub type PINIT_ONCE_FN = Option windows_core::BOOL>; pub const PMETypeFailFastOnCommitFailure: PROCESS_MEMORY_EXHAUSTION_TYPE = PROCESS_MEMORY_EXHAUSTION_TYPE(0i32); pub const PMETypeMax: PROCESS_MEMORY_EXHAUSTION_TYPE = PROCESS_MEMORY_EXHAUSTION_TYPE(1i32); pub const PME_CURRENT_VERSION: u32 = 1u32; diff --git a/crates/libs/windows/src/Windows/Win32/System/Time/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Time/mod.rs index b710c3c837..9eaeb4c4fd 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Time/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Time/mod.rs @@ -5,7 +5,7 @@ pub unsafe fn EnumDynamicTimeZoneInformation(dwindex: u32, lptimezoneinformation } #[inline] pub unsafe fn FileTimeToSystemTime(lpfiletime: *const super::super::Foundation::FILETIME, lpsystemtime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FileTimeToSystemTime(lpfiletime : *const super::super::Foundation:: FILETIME, lpsystemtime : *mut super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FileTimeToSystemTime(lpfiletime : *const super::super::Foundation:: FILETIME, lpsystemtime : *mut super::super::Foundation:: SYSTEMTIME) -> windows_core::BOOL); unsafe { FileTimeToSystemTime(lpfiletime, lpsystemtime as _).ok() } } #[inline] @@ -25,52 +25,52 @@ pub unsafe fn GetTimeZoneInformation(lptimezoneinformation: *mut TIME_ZONE_INFOR } #[inline] pub unsafe fn GetTimeZoneInformationForYear(wyear: u16, pdtzi: Option<*const DYNAMIC_TIME_ZONE_INFORMATION>, ptzi: *mut TIME_ZONE_INFORMATION) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetTimeZoneInformationForYear(wyear : u16, pdtzi : *const DYNAMIC_TIME_ZONE_INFORMATION, ptzi : *mut TIME_ZONE_INFORMATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetTimeZoneInformationForYear(wyear : u16, pdtzi : *const DYNAMIC_TIME_ZONE_INFORMATION, ptzi : *mut TIME_ZONE_INFORMATION) -> windows_core::BOOL); unsafe { GetTimeZoneInformationForYear(wyear, pdtzi.unwrap_or(core::mem::zeroed()) as _, ptzi as _).ok() } } #[inline] -pub unsafe fn LocalFileTimeToLocalSystemTime(timezoneinformation: Option<*const TIME_ZONE_INFORMATION>, localfiletime: *const super::super::Foundation::FILETIME, localsystemtime: *mut super::super::Foundation::SYSTEMTIME) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn LocalFileTimeToLocalSystemTime(timezoneinformation : *const TIME_ZONE_INFORMATION, localfiletime : *const super::super::Foundation:: FILETIME, localsystemtime : *mut super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); +pub unsafe fn LocalFileTimeToLocalSystemTime(timezoneinformation: Option<*const TIME_ZONE_INFORMATION>, localfiletime: *const super::super::Foundation::FILETIME, localsystemtime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn LocalFileTimeToLocalSystemTime(timezoneinformation : *const TIME_ZONE_INFORMATION, localfiletime : *const super::super::Foundation:: FILETIME, localsystemtime : *mut super::super::Foundation:: SYSTEMTIME) -> windows_core::BOOL); unsafe { LocalFileTimeToLocalSystemTime(timezoneinformation.unwrap_or(core::mem::zeroed()) as _, localfiletime, localsystemtime as _) } } #[inline] -pub unsafe fn LocalSystemTimeToLocalFileTime(timezoneinformation: Option<*const TIME_ZONE_INFORMATION>, localsystemtime: *const super::super::Foundation::SYSTEMTIME, localfiletime: *mut super::super::Foundation::FILETIME) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn LocalSystemTimeToLocalFileTime(timezoneinformation : *const TIME_ZONE_INFORMATION, localsystemtime : *const super::super::Foundation:: SYSTEMTIME, localfiletime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); +pub unsafe fn LocalSystemTimeToLocalFileTime(timezoneinformation: Option<*const TIME_ZONE_INFORMATION>, localsystemtime: *const super::super::Foundation::SYSTEMTIME, localfiletime: *mut super::super::Foundation::FILETIME) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn LocalSystemTimeToLocalFileTime(timezoneinformation : *const TIME_ZONE_INFORMATION, localsystemtime : *const super::super::Foundation:: SYSTEMTIME, localfiletime : *mut super::super::Foundation:: FILETIME) -> windows_core::BOOL); unsafe { LocalSystemTimeToLocalFileTime(timezoneinformation.unwrap_or(core::mem::zeroed()) as _, localsystemtime, localfiletime as _) } } #[inline] pub unsafe fn SetDynamicTimeZoneInformation(lptimezoneinformation: *const DYNAMIC_TIME_ZONE_INFORMATION) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetDynamicTimeZoneInformation(lptimezoneinformation : *const DYNAMIC_TIME_ZONE_INFORMATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetDynamicTimeZoneInformation(lptimezoneinformation : *const DYNAMIC_TIME_ZONE_INFORMATION) -> windows_core::BOOL); unsafe { SetDynamicTimeZoneInformation(lptimezoneinformation).ok() } } #[inline] pub unsafe fn SetTimeZoneInformation(lptimezoneinformation: *const TIME_ZONE_INFORMATION) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SetTimeZoneInformation(lptimezoneinformation : *const TIME_ZONE_INFORMATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetTimeZoneInformation(lptimezoneinformation : *const TIME_ZONE_INFORMATION) -> windows_core::BOOL); unsafe { SetTimeZoneInformation(lptimezoneinformation).ok() } } #[inline] pub unsafe fn SystemTimeToFileTime(lpsystemtime: *const super::super::Foundation::SYSTEMTIME, lpfiletime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SystemTimeToFileTime(lpsystemtime : *const super::super::Foundation:: SYSTEMTIME, lpfiletime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SystemTimeToFileTime(lpsystemtime : *const super::super::Foundation:: SYSTEMTIME, lpfiletime : *mut super::super::Foundation:: FILETIME) -> windows_core::BOOL); unsafe { SystemTimeToFileTime(lpsystemtime, lpfiletime as _).ok() } } #[inline] pub unsafe fn SystemTimeToTzSpecificLocalTime(lptimezoneinformation: Option<*const TIME_ZONE_INFORMATION>, lpuniversaltime: *const super::super::Foundation::SYSTEMTIME, lplocaltime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SystemTimeToTzSpecificLocalTime(lptimezoneinformation : *const TIME_ZONE_INFORMATION, lpuniversaltime : *const super::super::Foundation:: SYSTEMTIME, lplocaltime : *mut super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SystemTimeToTzSpecificLocalTime(lptimezoneinformation : *const TIME_ZONE_INFORMATION, lpuniversaltime : *const super::super::Foundation:: SYSTEMTIME, lplocaltime : *mut super::super::Foundation:: SYSTEMTIME) -> windows_core::BOOL); unsafe { SystemTimeToTzSpecificLocalTime(lptimezoneinformation.unwrap_or(core::mem::zeroed()) as _, lpuniversaltime, lplocaltime as _).ok() } } #[inline] pub unsafe fn SystemTimeToTzSpecificLocalTimeEx(lptimezoneinformation: Option<*const DYNAMIC_TIME_ZONE_INFORMATION>, lpuniversaltime: *const super::super::Foundation::SYSTEMTIME, lplocaltime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn SystemTimeToTzSpecificLocalTimeEx(lptimezoneinformation : *const DYNAMIC_TIME_ZONE_INFORMATION, lpuniversaltime : *const super::super::Foundation:: SYSTEMTIME, lplocaltime : *mut super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SystemTimeToTzSpecificLocalTimeEx(lptimezoneinformation : *const DYNAMIC_TIME_ZONE_INFORMATION, lpuniversaltime : *const super::super::Foundation:: SYSTEMTIME, lplocaltime : *mut super::super::Foundation:: SYSTEMTIME) -> windows_core::BOOL); unsafe { SystemTimeToTzSpecificLocalTimeEx(lptimezoneinformation.unwrap_or(core::mem::zeroed()) as _, lpuniversaltime, lplocaltime as _).ok() } } #[inline] pub unsafe fn TzSpecificLocalTimeToSystemTime(lptimezoneinformation: Option<*const TIME_ZONE_INFORMATION>, lplocaltime: *const super::super::Foundation::SYSTEMTIME, lpuniversaltime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn TzSpecificLocalTimeToSystemTime(lptimezoneinformation : *const TIME_ZONE_INFORMATION, lplocaltime : *const super::super::Foundation:: SYSTEMTIME, lpuniversaltime : *mut super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn TzSpecificLocalTimeToSystemTime(lptimezoneinformation : *const TIME_ZONE_INFORMATION, lplocaltime : *const super::super::Foundation:: SYSTEMTIME, lpuniversaltime : *mut super::super::Foundation:: SYSTEMTIME) -> windows_core::BOOL); unsafe { TzSpecificLocalTimeToSystemTime(lptimezoneinformation.unwrap_or(core::mem::zeroed()) as _, lplocaltime, lpuniversaltime as _).ok() } } #[inline] pub unsafe fn TzSpecificLocalTimeToSystemTimeEx(lptimezoneinformation: Option<*const DYNAMIC_TIME_ZONE_INFORMATION>, lplocaltime: *const super::super::Foundation::SYSTEMTIME, lpuniversaltime: *mut super::super::Foundation::SYSTEMTIME) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn TzSpecificLocalTimeToSystemTimeEx(lptimezoneinformation : *const DYNAMIC_TIME_ZONE_INFORMATION, lplocaltime : *const super::super::Foundation:: SYSTEMTIME, lpuniversaltime : *mut super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn TzSpecificLocalTimeToSystemTimeEx(lptimezoneinformation : *const DYNAMIC_TIME_ZONE_INFORMATION, lplocaltime : *const super::super::Foundation:: SYSTEMTIME, lpuniversaltime : *mut super::super::Foundation:: SYSTEMTIME) -> windows_core::BOOL); unsafe { TzSpecificLocalTimeToSystemTimeEx(lptimezoneinformation.unwrap_or(core::mem::zeroed()) as _, lplocaltime, lpuniversaltime as _).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/System/TpmBaseServices/mod.rs b/crates/libs/windows/src/Windows/Win32/System/TpmBaseServices/mod.rs index c21abfc141..01a8f9d0b6 100644 --- a/crates/libs/windows/src/Windows/Win32/System/TpmBaseServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/TpmBaseServices/mod.rs @@ -1,11 +1,11 @@ #[inline] -pub unsafe fn GetDeviceID(pbwindowsaik: Option<&mut [u8]>, pcbresult: *mut u32, pfprotectedbytpm: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { - windows_targets::link!("tbs.dll" "system" fn GetDeviceID(pbwindowsaik : *mut u8, cbwindowsaik : u32, pcbresult : *mut u32, pfprotectedbytpm : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn GetDeviceID(pbwindowsaik: Option<&mut [u8]>, pcbresult: *mut u32, pfprotectedbytpm: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { + windows_targets::link!("tbs.dll" "system" fn GetDeviceID(pbwindowsaik : *mut u8, cbwindowsaik : u32, pcbresult : *mut u32, pfprotectedbytpm : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { GetDeviceID(core::mem::transmute(pbwindowsaik.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pbwindowsaik.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcbresult as _, pfprotectedbytpm.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn GetDeviceIDString(pszwindowsaik: Option<&mut [u16]>, pcchresult: *mut u32, pfprotectedbytpm: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { - windows_targets::link!("tbs.dll" "system" fn GetDeviceIDString(pszwindowsaik : windows_core::PWSTR, cchwindowsaik : u32, pcchresult : *mut u32, pfprotectedbytpm : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn GetDeviceIDString(pszwindowsaik: Option<&mut [u16]>, pcchresult: *mut u32, pfprotectedbytpm: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { + windows_targets::link!("tbs.dll" "system" fn GetDeviceIDString(pszwindowsaik : windows_core::PWSTR, cchwindowsaik : u32, pcchresult : *mut u32, pfprotectedbytpm : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { GetDeviceIDString(core::mem::transmute(pszwindowsaik.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszwindowsaik.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pcchresult as _, pfprotectedbytpm.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -39,8 +39,8 @@ pub unsafe fn Tbsi_Get_TCG_Log_Ex(logtype: u32, pboutput: Option<*mut u8>, pcbou unsafe { Tbsi_Get_TCG_Log_Ex(logtype, pboutput.unwrap_or(core::mem::zeroed()) as _, pcboutput as _) } } #[inline] -pub unsafe fn Tbsi_Is_Tpm_Present() -> super::super::Foundation::BOOL { - windows_targets::link!("tbs.dll" "system" fn Tbsi_Is_Tpm_Present() -> super::super::Foundation:: BOOL); +pub unsafe fn Tbsi_Is_Tpm_Present() -> windows_core::BOOL { + windows_targets::link!("tbs.dll" "system" fn Tbsi_Is_Tpm_Present() -> windows_core::BOOL); unsafe { Tbsi_Is_Tpm_Present() } } #[inline] 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 63b9e20614..483f6f27b9 100644 --- a/crates/libs/windows/src/Windows/Win32/System/UpdateAssessment/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/UpdateAssessment/mod.rs @@ -40,7 +40,7 @@ impl windows_core::RuntimeName for IWaaSAssessor {} #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct OSUpdateAssessment { - pub isEndOfSupport: super::super::Foundation::BOOL, + pub isEndOfSupport: windows_core::BOOL, pub assessmentForCurrent: UpdateAssessment, pub assessmentForUpToDate: UpdateAssessment, pub securityStatus: UpdateAssessmentStatus, diff --git a/crates/libs/windows/src/Windows/Win32/System/Variant/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Variant/mod.rs index 1f13f876ad..025ea62e22 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Variant/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Variant/mod.rs @@ -11,8 +11,8 @@ pub unsafe fn DosDateTimeToVariantTime(wdosdate: u16, wdostime: u16, pvtime: *mu } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] -pub unsafe fn InitVariantFromBooleanArray(prgf: &[super::super::Foundation::BOOL]) -> windows_core::Result { - windows_targets::link!("propsys.dll" "system" fn InitVariantFromBooleanArray(prgf : *const super::super::Foundation:: BOOL, celems : u32, pvar : *mut VARIANT) -> windows_core::HRESULT); +pub unsafe fn InitVariantFromBooleanArray(prgf: &[windows_core::BOOL]) -> windows_core::Result { + windows_targets::link!("propsys.dll" "system" fn InitVariantFromBooleanArray(prgf : *const windows_core::BOOL, celems : u32, pvar : *mut VARIANT) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); InitVariantFromBooleanArray(core::mem::transmute(prgf.as_ptr()), prgf.len().try_into().unwrap(), &mut result__).map(|| core::mem::transmute(result__)) @@ -235,8 +235,8 @@ pub unsafe fn VariantCopyInd(pvardest: *mut VARIANT, pvargsrc: *const VARIANT) - } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] -pub unsafe fn VariantGetBooleanElem(var: *const VARIANT, ielem: u32) -> windows_core::Result { - windows_targets::link!("propsys.dll" "system" fn VariantGetBooleanElem(var : *const VARIANT, ielem : u32, pfval : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn VariantGetBooleanElem(var: *const VARIANT, ielem: u32) -> windows_core::Result { + windows_targets::link!("propsys.dll" "system" fn VariantGetBooleanElem(var : *const VARIANT, ielem : u32, pfval : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); VariantGetBooleanElem(core::mem::transmute(var), ielem, &mut result__).map(|| core::mem::transmute(result__)) @@ -342,8 +342,8 @@ pub unsafe fn VariantTimeToSystemTime(vtime: f64, lpsystemtime: *mut super::supe } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] -pub unsafe fn VariantToBoolean(varin: *const VARIANT) -> windows_core::Result { - windows_targets::link!("propsys.dll" "system" fn VariantToBoolean(varin : *const VARIANT, pfret : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn VariantToBoolean(varin: *const VARIANT) -> windows_core::Result { + windows_targets::link!("propsys.dll" "system" fn VariantToBoolean(varin : *const VARIANT, pfret : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); VariantToBoolean(core::mem::transmute(varin), &mut result__).map(|| core::mem::transmute(result__)) @@ -351,20 +351,20 @@ pub unsafe fn VariantToBoolean(varin: *const VARIANT) -> windows_core::Result windows_core::Result<()> { - windows_targets::link!("propsys.dll" "system" fn VariantToBooleanArray(var : *const VARIANT, prgf : *mut super::super::Foundation:: BOOL, crgn : u32, pcelem : *mut u32) -> windows_core::HRESULT); +pub unsafe fn VariantToBooleanArray(var: *const VARIANT, prgf: &mut [windows_core::BOOL], pcelem: *mut u32) -> windows_core::Result<()> { + windows_targets::link!("propsys.dll" "system" fn VariantToBooleanArray(var : *const VARIANT, prgf : *mut windows_core::BOOL, crgn : u32, pcelem : *mut u32) -> windows_core::HRESULT); unsafe { VariantToBooleanArray(core::mem::transmute(var), core::mem::transmute(prgf.as_ptr()), prgf.len().try_into().unwrap(), pcelem as _).ok() } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] -pub unsafe fn VariantToBooleanArrayAlloc(var: *const VARIANT, pprgf: *mut *mut super::super::Foundation::BOOL, pcelem: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("propsys.dll" "system" fn VariantToBooleanArrayAlloc(var : *const VARIANT, pprgf : *mut *mut super::super::Foundation:: BOOL, pcelem : *mut u32) -> windows_core::HRESULT); +pub unsafe fn VariantToBooleanArrayAlloc(var: *const VARIANT, pprgf: *mut *mut windows_core::BOOL, pcelem: *mut u32) -> windows_core::Result<()> { + windows_targets::link!("propsys.dll" "system" fn VariantToBooleanArrayAlloc(var : *const VARIANT, pprgf : *mut *mut windows_core::BOOL, pcelem : *mut u32) -> windows_core::HRESULT); unsafe { VariantToBooleanArrayAlloc(core::mem::transmute(var), pprgf as _, pcelem as _).ok() } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] #[inline] -pub unsafe fn VariantToBooleanWithDefault(varin: *const VARIANT, fdefault: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("propsys.dll" "system" fn VariantToBooleanWithDefault(varin : *const VARIANT, fdefault : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn VariantToBooleanWithDefault(varin: *const VARIANT, fdefault: bool) -> windows_core::BOOL { + windows_targets::link!("propsys.dll" "system" fn VariantToBooleanWithDefault(varin : *const VARIANT, fdefault : windows_core::BOOL) -> windows_core::BOOL); unsafe { VariantToBooleanWithDefault(core::mem::transmute(varin), fdefault.into()) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] diff --git a/crates/libs/windows/src/Windows/Win32/System/VirtualDosMachines/mod.rs b/crates/libs/windows/src/Windows/Win32/System/VirtualDosMachines/mod.rs index 73d314e186..51be35496a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/VirtualDosMachines/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/VirtualDosMachines/mod.rs @@ -48,7 +48,7 @@ pub struct GLOBALENTRY { pub wcLock: u16, pub wcPageLock: u16, pub wFlags: u16, - pub wHeapPresent: super::super::Foundation::BOOL, + pub wHeapPresent: windows_core::BOOL, pub hOwner: super::super::Foundation::HANDLE, pub wType: u16, pub wData: u16, @@ -104,7 +104,7 @@ impl Default for MODULEENTRY { unsafe { core::mem::zeroed() } } } -pub type PROCESSENUMPROC = Option super::super::Foundation::BOOL>; +pub type PROCESSENUMPROC = Option windows_core::BOOL>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SEGMENT_NOTE { @@ -125,14 +125,14 @@ pub const SN_CODE: u32 = 0u32; pub const SN_DATA: u32 = 1u32; pub const SN_V86: u32 = 2u32; pub const STATUS_VDM_EVENT: i32 = 1073741829i32; -pub type TASKENUMPROC = Option super::super::Foundation::BOOL>; -pub type TASKENUMPROCEX = Option super::super::Foundation::BOOL>; +pub type TASKENUMPROC = Option windows_core::BOOL>; +pub type TASKENUMPROCEX = Option windows_core::BOOL>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct TEMP_BP_NOTE { pub Seg: u16, pub Offset: u32, - pub bPM: super::super::Foundation::BOOL, + pub bPM: windows_core::BOOL, } impl Default for TEMP_BP_NOTE { fn default() -> Self { @@ -156,7 +156,7 @@ pub const V86FLAGS_ZERO: u32 = 64u32; pub const VDMADDR_PM16: u32 = 4u32; pub const VDMADDR_PM32: u32 = 16u32; pub const VDMADDR_V86: u32 = 2u32; -pub type VDMBREAKTHREADPROC = Option super::super::Foundation::BOOL>; +pub type VDMBREAKTHREADPROC = Option windows_core::BOOL>; #[repr(C)] #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_Kernel")] @@ -241,7 +241,7 @@ pub const VDMDBG_BREAK_WOWTASK: u32 = 2u32; pub const VDMDBG_INITIAL_FLAGS: u32 = 256u32; pub const VDMDBG_MAX_SYMBOL_BUFFER: u32 = 256u32; pub const VDMDBG_TRACE_HISTORY: u32 = 128u32; -pub type VDMDETECTWOWPROC = Option super::super::Foundation::BOOL>; +pub type VDMDETECTWOWPROC = Option windows_core::BOOL>; pub type VDMENUMPROCESSWOWPROC = Option i32>; pub type VDMENUMTASKWOWEXPROC = Option i32>; pub type VDMENUMTASKWOWPROC = Option i32>; @@ -251,30 +251,30 @@ pub const VDMEVENT_PE: u32 = 8192u32; pub const VDMEVENT_PM16: u32 = 2u32; pub const VDMEVENT_V86: u32 = 1u32; pub const VDMEVENT_VERBOSE: u32 = 16384u32; -pub type VDMGETADDREXPRESSIONPROC = Option super::super::Foundation::BOOL>; +pub type VDMGETADDREXPRESSIONPROC = Option windows_core::BOOL>; #[cfg(target_arch = "x86")] #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_Kernel"))] -pub type VDMGETCONTEXTPROC = Option super::super::Foundation::BOOL>; +pub type VDMGETCONTEXTPROC = Option windows_core::BOOL>; #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_Kernel")] -pub type VDMGETCONTEXTPROC = Option super::super::Foundation::BOOL>; +pub type VDMGETCONTEXTPROC = Option windows_core::BOOL>; pub type VDMGETDBGFLAGSPROC = Option u32>; -pub type VDMGETMODULESELECTORPROC = Option super::super::Foundation::BOOL>; -pub type VDMGETPOINTERPROC = Option u32>; -pub type VDMGETSEGMENTINFOPROC = Option super::super::Foundation::BOOL>; -pub type VDMGETSELECTORMODULEPROC = Option super::super::Foundation::BOOL>; -pub type VDMGETSYMBOLPROC = Option super::super::Foundation::BOOL>; +pub type VDMGETMODULESELECTORPROC = Option windows_core::BOOL>; +pub type VDMGETPOINTERPROC = Option u32>; +pub type VDMGETSEGMENTINFOPROC = Option windows_core::BOOL>; +pub type VDMGETSELECTORMODULEPROC = Option windows_core::BOOL>; +pub type VDMGETSYMBOLPROC = Option windows_core::BOOL>; #[cfg(target_arch = "x86")] #[cfg(feature = "Win32_System_Diagnostics_Debug")] -pub type VDMGETTHREADSELECTORENTRYPROC = Option super::super::Foundation::BOOL>; +pub type VDMGETTHREADSELECTORENTRYPROC = Option windows_core::BOOL>; #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] -pub type VDMGETTHREADSELECTORENTRYPROC = Option super::super::Foundation::BOOL>; +pub type VDMGETTHREADSELECTORENTRYPROC = Option windows_core::BOOL>; #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_Threading"))] -pub type VDMGLOBALFIRSTPROC = Option super::super::Foundation::BOOL>; +pub type VDMGLOBALFIRSTPROC = Option windows_core::BOOL>; #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_Threading"))] -pub type VDMGLOBALNEXTPROC = Option super::super::Foundation::BOOL>; -pub type VDMISMODULELOADEDPROC = Option super::super::Foundation::BOOL>; -pub type VDMKILLWOWPROC = Option super::super::Foundation::BOOL>; +pub type VDMGLOBALNEXTPROC = Option windows_core::BOOL>; +pub type VDMISMODULELOADEDPROC = Option windows_core::BOOL>; +pub type VDMKILLWOWPROC = Option windows_core::BOOL>; #[repr(C)] #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[derive(Clone, Copy)] @@ -330,20 +330,20 @@ impl Default for VDMLDT_ENTRY_0_0 { } } #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_Threading"))] -pub type VDMMODULEFIRSTPROC = Option super::super::Foundation::BOOL>; +pub type VDMMODULEFIRSTPROC = Option windows_core::BOOL>; #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_Threading"))] -pub type VDMMODULENEXTPROC = Option super::super::Foundation::BOOL>; +pub type VDMMODULENEXTPROC = Option windows_core::BOOL>; #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_Threading"))] -pub type VDMPROCESSEXCEPTIONPROC = Option super::super::Foundation::BOOL>; +pub type VDMPROCESSEXCEPTIONPROC = Option windows_core::BOOL>; #[cfg(target_arch = "x86")] #[cfg(all(feature = "Win32_System_Diagnostics_Debug", feature = "Win32_System_Kernel"))] -pub type VDMSETCONTEXTPROC = Option super::super::Foundation::BOOL>; +pub type VDMSETCONTEXTPROC = Option windows_core::BOOL>; #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] #[cfg(feature = "Win32_System_Kernel")] -pub type VDMSETCONTEXTPROC = Option super::super::Foundation::BOOL>; -pub type VDMSETDBGFLAGSPROC = Option super::super::Foundation::BOOL>; -pub type VDMSTARTTASKINWOWPROC = Option super::super::Foundation::BOOL>; -pub type VDMTERMINATETASKINWOWPROC = Option super::super::Foundation::BOOL>; +pub type VDMSETCONTEXTPROC = Option windows_core::BOOL>; +pub type VDMSETDBGFLAGSPROC = Option windows_core::BOOL>; +pub type VDMSTARTTASKINWOWPROC = Option windows_core::BOOL>; +pub type VDMTERMINATETASKINWOWPROC = Option windows_core::BOOL>; pub const VDM_KGDT_R3_CODE: u32 = 24u32; pub const VDM_MAXIMUM_SUPPORTED_EXTENSION: u32 = 512u32; #[repr(C)] 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 e0ec3afe93..438c4833c7 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 @@ -288,20 +288,20 @@ impl ICompositorDesktopInterop { pub struct ICompositorDesktopInterop_Vtbl { pub base__: windows_core::IUnknown_Vtbl, #[cfg(feature = "UI_Composition_Desktop")] - pub CreateDesktopWindowTarget: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::HWND, super::super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateDesktopWindowTarget: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::HWND, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "UI_Composition_Desktop"))] CreateDesktopWindowTarget: usize, pub EnsureOnThread: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, } #[cfg(feature = "UI_Composition_Desktop")] pub trait ICompositorDesktopInterop_Impl: windows_core::IUnknownImpl { - fn CreateDesktopWindowTarget(&self, hwndtarget: super::super::super::Foundation::HWND, istopmost: super::super::super::Foundation::BOOL) -> windows_core::Result; + fn CreateDesktopWindowTarget(&self, hwndtarget: super::super::super::Foundation::HWND, istopmost: windows_core::BOOL) -> windows_core::Result; fn EnsureOnThread(&self, threadid: u32) -> windows_core::Result<()>; } #[cfg(feature = "UI_Composition_Desktop")] impl ICompositorDesktopInterop_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CreateDesktopWindowTarget(this: *mut core::ffi::c_void, hwndtarget: super::super::super::Foundation::HWND, istopmost: super::super::super::Foundation::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateDesktopWindowTarget(this: *mut core::ffi::c_void, hwndtarget: super::super::super::Foundation::HWND, istopmost: windows_core::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICompositorDesktopInterop_Impl::CreateDesktopWindowTarget(this, core::mem::transmute_copy(&hwndtarget), core::mem::transmute_copy(&istopmost)) { @@ -439,7 +439,7 @@ impl windows_core::RuntimeName for ICompositorInterop {} windows_core::imp::define_interface!(ICompositorInterop2, ICompositorInterop2_Vtbl, 0xd3eef34c_0667_4afc_8d13_867607b0fe91); windows_core::imp::interface_hierarchy!(ICompositorInterop2, windows_core::IUnknown); impl ICompositorInterop2 { - pub unsafe fn CheckCompositionTextureSupport(&self, renderingdevice: P0) -> windows_core::Result + pub unsafe fn CheckCompositionTextureSupport(&self, renderingdevice: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -462,7 +462,7 @@ impl ICompositorInterop2 { #[repr(C)] pub struct ICompositorInterop2_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub CheckCompositionTextureSupport: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CheckCompositionTextureSupport: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "UI_Composition")] pub CreateCompositionTexture: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "UI_Composition"))] @@ -470,13 +470,13 @@ pub struct ICompositorInterop2_Vtbl { } #[cfg(feature = "UI_Composition")] pub trait ICompositorInterop2_Impl: windows_core::IUnknownImpl { - fn CheckCompositionTextureSupport(&self, renderingdevice: windows_core::Ref) -> windows_core::Result; + fn CheckCompositionTextureSupport(&self, renderingdevice: windows_core::Ref) -> windows_core::Result; fn CreateCompositionTexture(&self, d3dtexture: windows_core::Ref) -> windows_core::Result; } #[cfg(feature = "UI_Composition")] impl ICompositorInterop2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CheckCompositionTextureSupport(this: *mut core::ffi::c_void, renderingdevice: *mut core::ffi::c_void, supportscompositiontextures: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CheckCompositionTextureSupport(this: *mut core::ffi::c_void, renderingdevice: *mut core::ffi::c_void, supportscompositiontextures: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICompositorInterop2_Impl::CheckCompositionTextureSupport(this, core::mem::transmute_copy(&renderingdevice)) { 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 f60cd01957..bf2097ee4d 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 @@ -59,29 +59,29 @@ impl ISoftwareBitmapNativeFactory { pub struct ISoftwareBitmapNativeFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, #[cfg(feature = "Win32_Graphics_Imaging")] - pub CreateFromWICBitmap: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::super::Foundation::BOOL, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateFromWICBitmap: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Imaging"))] CreateFromWICBitmap: usize, #[cfg(feature = "Win32_Media_MediaFoundation")] - pub CreateFromMF2DBuffer2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, u32, u32, super::super::super::super::Foundation::BOOL, *const super::super::super::super::Media::MediaFoundation::MFVideoArea, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateFromMF2DBuffer2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, u32, u32, windows_core::BOOL, *const super::super::super::super::Media::MediaFoundation::MFVideoArea, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Media_MediaFoundation"))] CreateFromMF2DBuffer2: usize, } #[cfg(all(feature = "Win32_Graphics_Imaging", feature = "Win32_Media_MediaFoundation"))] pub trait ISoftwareBitmapNativeFactory_Impl: windows_core::IUnknownImpl { - fn CreateFromWICBitmap(&self, data: windows_core::Ref, forcereadonly: super::super::super::super::Foundation::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; - fn CreateFromMF2DBuffer2(&self, data: windows_core::Ref, subtype: *const windows_core::GUID, width: u32, height: u32, forcereadonly: super::super::super::super::Foundation::BOOL, mindisplayaperture: *const super::super::super::super::Media::MediaFoundation::MFVideoArea, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; + fn CreateFromWICBitmap(&self, data: windows_core::Ref, forcereadonly: windows_core::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; + fn CreateFromMF2DBuffer2(&self, data: windows_core::Ref, subtype: *const windows_core::GUID, width: u32, height: u32, forcereadonly: windows_core::BOOL, mindisplayaperture: *const super::super::super::super::Media::MediaFoundation::MFVideoArea, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Graphics_Imaging", feature = "Win32_Media_MediaFoundation"))] impl ISoftwareBitmapNativeFactory_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CreateFromWICBitmap(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, forcereadonly: super::super::super::super::Foundation::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateFromWICBitmap(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, forcereadonly: windows_core::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISoftwareBitmapNativeFactory_Impl::CreateFromWICBitmap(this, core::mem::transmute_copy(&data), core::mem::transmute_copy(&forcereadonly), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } } - unsafe extern "system" fn CreateFromMF2DBuffer2(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, subtype: *const windows_core::GUID, width: u32, height: u32, forcereadonly: super::super::super::super::Foundation::BOOL, mindisplayaperture: *const super::super::super::super::Media::MediaFoundation::MFVideoArea, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateFromMF2DBuffer2(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, subtype: *const windows_core::GUID, width: u32, height: u32, forcereadonly: windows_core::BOOL, mindisplayaperture: *const super::super::super::super::Media::MediaFoundation::MFVideoArea, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISoftwareBitmapNativeFactory_Impl::CreateFromMF2DBuffer2(this, core::mem::transmute_copy(&data), core::mem::transmute_copy(&subtype), core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&forcereadonly), core::mem::transmute_copy(&mindisplayaperture), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Media/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Media/mod.rs index 7999219403..dfd59785bf 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 @@ -51,18 +51,18 @@ impl IAudioFrameNativeFactory { pub struct IAudioFrameNativeFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, #[cfg(feature = "Win32_Media_MediaFoundation")] - pub CreateFromMFSample: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::BOOL, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateFromMFSample: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Media_MediaFoundation"))] CreateFromMFSample: usize, } #[cfg(feature = "Win32_Media_MediaFoundation")] pub trait IAudioFrameNativeFactory_Impl: windows_core::IUnknownImpl { - fn CreateFromMFSample(&self, data: windows_core::Ref, forcereadonly: super::super::super::Foundation::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; + fn CreateFromMFSample(&self, data: windows_core::Ref, forcereadonly: windows_core::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Media_MediaFoundation")] impl IAudioFrameNativeFactory_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CreateFromMFSample(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, forcereadonly: super::super::super::Foundation::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateFromMFSample(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, forcereadonly: windows_core::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAudioFrameNativeFactory_Impl::CreateFromMFSample(this, core::mem::transmute_copy(&data), core::mem::transmute_copy(&forcereadonly), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() @@ -150,18 +150,18 @@ impl IVideoFrameNativeFactory { pub struct IVideoFrameNativeFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, #[cfg(feature = "Win32_Media_MediaFoundation")] - pub CreateFromMFSample: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, u32, u32, super::super::super::Foundation::BOOL, *const super::super::super::Media::MediaFoundation::MFVideoArea, *mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateFromMFSample: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, u32, u32, windows_core::BOOL, *const super::super::super::Media::MediaFoundation::MFVideoArea, *mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Media_MediaFoundation"))] CreateFromMFSample: usize, } #[cfg(feature = "Win32_Media_MediaFoundation")] pub trait IVideoFrameNativeFactory_Impl: windows_core::IUnknownImpl { - fn CreateFromMFSample(&self, data: windows_core::Ref, subtype: *const windows_core::GUID, width: u32, height: u32, forcereadonly: super::super::super::Foundation::BOOL, mindisplayaperture: *const super::super::super::Media::MediaFoundation::MFVideoArea, device: windows_core::Ref, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; + fn CreateFromMFSample(&self, data: windows_core::Ref, subtype: *const windows_core::GUID, width: u32, height: u32, forcereadonly: windows_core::BOOL, mindisplayaperture: *const super::super::super::Media::MediaFoundation::MFVideoArea, device: windows_core::Ref, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Media_MediaFoundation")] impl IVideoFrameNativeFactory_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CreateFromMFSample(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, subtype: *const windows_core::GUID, width: u32, height: u32, forcereadonly: super::super::super::Foundation::BOOL, mindisplayaperture: *const super::super::super::Media::MediaFoundation::MFVideoArea, device: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateFromMFSample(this: *mut core::ffi::c_void, data: *mut core::ffi::c_void, subtype: *const windows_core::GUID, width: u32, height: u32, forcereadonly: windows_core::BOOL, mindisplayaperture: *const super::super::super::Media::MediaFoundation::MFVideoArea, device: *mut core::ffi::c_void, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVideoFrameNativeFactory_Impl::CreateFromMFSample(this, core::mem::transmute_copy(&data), core::mem::transmute_copy(&subtype), core::mem::transmute_copy(&width), core::mem::transmute_copy(&height), core::mem::transmute_copy(&forcereadonly), core::mem::transmute_copy(&mindisplayaperture), core::mem::transmute_copy(&device), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() 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 3ccbfc6997..d9d9d3ab5f 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 @@ -43,22 +43,22 @@ where unsafe { RoGetParameterizedTypeInstanceIID(nameelements.len().try_into().unwrap(), core::mem::transmute(nameelements.as_ptr()), metadatalocator.param().abi(), iid as _, pextra.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn RoIsApiContractMajorVersionPresent(name: P0, majorversion: u16) -> windows_core::Result +pub unsafe fn RoIsApiContractMajorVersionPresent(name: P0, majorversion: u16) -> windows_core::Result where P0: windows_core::Param, { - windows_targets::link!("api-ms-win-ro-typeresolution-l1-1-1.dll" "system" fn RoIsApiContractMajorVersionPresent(name : windows_core::PCWSTR, majorversion : u16, present : *mut super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("api-ms-win-ro-typeresolution-l1-1-1.dll" "system" fn RoIsApiContractMajorVersionPresent(name : windows_core::PCWSTR, majorversion : u16, present : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); RoIsApiContractMajorVersionPresent(name.param().abi(), majorversion, &mut result__).map(|| core::mem::transmute(result__)) } } #[inline] -pub unsafe fn RoIsApiContractPresent(name: P0, majorversion: u16, minorversion: u16) -> windows_core::Result +pub unsafe fn RoIsApiContractPresent(name: P0, majorversion: u16, minorversion: u16) -> windows_core::Result where P0: windows_core::Param, { - windows_targets::link!("api-ms-win-ro-typeresolution-l1-1-1.dll" "system" fn RoIsApiContractPresent(name : windows_core::PCWSTR, majorversion : u16, minorversion : u16, present : *mut super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("api-ms-win-ro-typeresolution-l1-1-1.dll" "system" fn RoIsApiContractPresent(name : windows_core::PCWSTR, majorversion : u16, minorversion : u16, present : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); RoIsApiContractPresent(name.param().abi(), majorversion, minorversion, &mut result__).map(|| core::mem::transmute(result__)) @@ -2409,7 +2409,7 @@ impl IMetaDataFilter { pub unsafe fn MarkToken(&self, tk: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).MarkToken)(windows_core::Interface::as_raw(self), tk).ok() } } - pub unsafe fn IsTokenMarked(&self, tk: u32, pismarked: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn IsTokenMarked(&self, tk: u32, pismarked: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsTokenMarked)(windows_core::Interface::as_raw(self), tk, pismarked as _).ok() } } } @@ -2418,12 +2418,12 @@ pub struct IMetaDataFilter_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub UnmarkAll: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub MarkToken: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub IsTokenMarked: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsTokenMarked: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IMetaDataFilter_Impl: windows_core::IUnknownImpl { fn UnmarkAll(&self) -> windows_core::Result<()>; fn MarkToken(&self, tk: u32) -> windows_core::Result<()>; - fn IsTokenMarked(&self, tk: u32, pismarked: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsTokenMarked(&self, tk: u32, pismarked: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IMetaDataFilter_Vtbl { pub const fn new() -> Self { @@ -2439,7 +2439,7 @@ impl IMetaDataFilter_Vtbl { IMetaDataFilter_Impl::MarkToken(this, core::mem::transmute_copy(&tk)).into() } } - unsafe extern "system" fn IsTokenMarked(this: *mut core::ffi::c_void, tk: u32, pismarked: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsTokenMarked(this: *mut core::ffi::c_void, tk: u32, pismarked: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataFilter_Impl::IsTokenMarked(this, core::mem::transmute_copy(&tk), core::mem::transmute_copy(&pismarked)).into() @@ -2670,7 +2670,7 @@ impl IMetaDataImport { { unsafe { (windows_core::Interface::vtable(self).GetCustomAttributeByName)(windows_core::Interface::as_raw(self), tkobj, szname.param().abi(), ppdata, pcbdata as _).ok() } } - pub unsafe fn IsValidToken(&self, tk: u32) -> super::super::super::Foundation::BOOL { + pub unsafe fn IsValidToken(&self, tk: u32) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsValidToken)(windows_core::Interface::as_raw(self), tk) } } pub unsafe fn GetNestedClassProps(&self, tdnestedclass: u32, ptdenclosingclass: *mut u32) -> windows_core::Result<()> { @@ -2744,7 +2744,7 @@ pub struct IMetaDataImport_Vtbl { pub GetPropertyProps: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32, windows_core::PCWSTR, u32, *mut u32, *mut u32, *mut *mut u8, *mut u32, *mut u32, *mut *mut core::ffi::c_void, *mut u32, *mut u32, *mut u32, *mut u32, u32, *mut u32) -> windows_core::HRESULT, pub GetParamProps: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32, *mut u32, windows_core::PWSTR, u32, *mut u32, *mut u32, *mut u32, *mut *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetCustomAttributeByName: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, *const *const core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub IsValidToken: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> super::super::super::Foundation::BOOL, + pub IsValidToken: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::BOOL, pub GetNestedClassProps: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, pub GetNativeCallConvFromSig: unsafe extern "system" fn(*mut core::ffi::c_void, *const core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, pub IsGlobal: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut i32) -> windows_core::HRESULT, @@ -2808,7 +2808,7 @@ pub trait IMetaDataImport_Impl: windows_core::IUnknownImpl { fn GetPropertyProps(&self, prop: u32, pclass: *mut u32, szproperty: &windows_core::PCWSTR, cchproperty: u32, pchproperty: *mut u32, pdwpropflags: *mut u32, ppvsig: *mut *mut u8, pbsig: *mut u32, pdwcplustypeflag: *mut u32, ppdefaultvalue: *mut *mut core::ffi::c_void, pcchdefaultvalue: *mut u32, pmdsetter: *mut u32, pmdgetter: *mut u32, rmdothermethod: *mut u32, cmax: u32, pcothermethod: *mut u32) -> windows_core::Result<()>; fn GetParamProps(&self, tk: u32, pmd: *mut u32, pulsequence: *mut u32, szname: windows_core::PWSTR, cchname: u32, pchname: *mut u32, pdwattr: *mut u32, pdwcplustypeflag: *mut u32, ppvalue: *mut *mut core::ffi::c_void, pcchvalue: *mut u32) -> windows_core::Result<()>; fn GetCustomAttributeByName(&self, tkobj: u32, szname: &windows_core::PCWSTR, ppdata: *const *const core::ffi::c_void, pcbdata: *mut u32) -> windows_core::Result<()>; - fn IsValidToken(&self, tk: u32) -> super::super::super::Foundation::BOOL; + fn IsValidToken(&self, tk: u32) -> windows_core::BOOL; fn GetNestedClassProps(&self, tdnestedclass: u32, ptdenclosingclass: *mut u32) -> windows_core::Result<()>; fn GetNativeCallConvFromSig(&self, pvsig: *const core::ffi::c_void, cbsig: u32, pcallconv: *mut u32) -> windows_core::Result<()>; fn IsGlobal(&self, pd: u32, pbglobal: *mut i32) -> windows_core::Result<()>; @@ -3214,7 +3214,7 @@ impl IMetaDataImport_Vtbl { IMetaDataImport_Impl::GetCustomAttributeByName(this, core::mem::transmute_copy(&tkobj), core::mem::transmute(&szname), core::mem::transmute_copy(&ppdata), core::mem::transmute_copy(&pcbdata)).into() } } - unsafe extern "system" fn IsValidToken(this: *mut core::ffi::c_void, tk: u32) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn IsValidToken(this: *mut core::ffi::c_void, tk: u32) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMetaDataImport_Impl::IsValidToken(this, core::mem::transmute_copy(&tk)) 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 7a6e4f2786..15f0bf8a7a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs @@ -144,8 +144,8 @@ pub unsafe fn HSTRING_UserUnmarshal64(param0: *const u32, param1: *const u8, par unsafe { HSTRING_UserUnmarshal64(param0, param1, core::mem::transmute(param2)) } } #[inline] -pub unsafe fn IsErrorPropagationEnabled() -> super::super::Foundation::BOOL { - windows_targets::link!("api-ms-win-core-winrt-error-l1-1-1.dll" "system" fn IsErrorPropagationEnabled() -> super::super::Foundation:: BOOL); +pub unsafe fn IsErrorPropagationEnabled() -> windows_core::BOOL { + windows_targets::link!("api-ms-win-core-winrt-error-l1-1-1.dll" "system" fn IsErrorPropagationEnabled() -> windows_core::BOOL); unsafe { IsErrorPropagationEnabled() } } #[inline] @@ -248,21 +248,21 @@ pub unsafe fn RoInspectThreadErrorInfo(targettebaddress: usize, machine: u16, re } } #[inline] -pub unsafe fn RoOriginateError(error: windows_core::HRESULT, message: &windows_core::HSTRING) -> super::super::Foundation::BOOL { - windows_targets::link!("api-ms-win-core-winrt-error-l1-1-0.dll" "system" fn RoOriginateError(error : windows_core::HRESULT, message : * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn RoOriginateError(error: windows_core::HRESULT, message: &windows_core::HSTRING) -> windows_core::BOOL { + windows_targets::link!("api-ms-win-core-winrt-error-l1-1-0.dll" "system" fn RoOriginateError(error : windows_core::HRESULT, message : * mut core::ffi::c_void) -> windows_core::BOOL); unsafe { RoOriginateError(error, core::mem::transmute_copy(message)) } } #[inline] -pub unsafe fn RoOriginateErrorW(error: windows_core::HRESULT, cchmax: u32, message: Option<&[u16; 512]>) -> super::super::Foundation::BOOL { - windows_targets::link!("api-ms-win-core-winrt-error-l1-1-0.dll" "system" fn RoOriginateErrorW(error : windows_core::HRESULT, cchmax : u32, message : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn RoOriginateErrorW(error: windows_core::HRESULT, cchmax: u32, message: Option<&[u16; 512]>) -> windows_core::BOOL { + windows_targets::link!("api-ms-win-core-winrt-error-l1-1-0.dll" "system" fn RoOriginateErrorW(error : windows_core::HRESULT, cchmax : u32, message : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { RoOriginateErrorW(error, cchmax, core::mem::transmute(message.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } } #[inline] -pub unsafe fn RoOriginateLanguageException(error: windows_core::HRESULT, message: &windows_core::HSTRING, languageexception: P2) -> super::super::Foundation::BOOL +pub unsafe fn RoOriginateLanguageException(error: windows_core::HRESULT, message: &windows_core::HSTRING, languageexception: P2) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("api-ms-win-core-winrt-error-l1-1-1.dll" "system" fn RoOriginateLanguageException(error : windows_core::HRESULT, message : * mut core::ffi::c_void, languageexception : * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-winrt-error-l1-1-1.dll" "system" fn RoOriginateLanguageException(error : windows_core::HRESULT, message : * mut core::ffi::c_void, languageexception : * mut core::ffi::c_void) -> windows_core::BOOL); unsafe { RoOriginateLanguageException(error, core::mem::transmute_copy(message), languageexception.param().abi()) } } #[inline] @@ -320,13 +320,13 @@ pub unsafe fn RoSetErrorReportingFlags(flags: u32) -> windows_core::Result<()> { unsafe { RoSetErrorReportingFlags(flags).ok() } } #[inline] -pub unsafe fn RoTransformError(olderror: windows_core::HRESULT, newerror: windows_core::HRESULT, message: &windows_core::HSTRING) -> super::super::Foundation::BOOL { - windows_targets::link!("api-ms-win-core-winrt-error-l1-1-0.dll" "system" fn RoTransformError(olderror : windows_core::HRESULT, newerror : windows_core::HRESULT, message : * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn RoTransformError(olderror: windows_core::HRESULT, newerror: windows_core::HRESULT, message: &windows_core::HSTRING) -> windows_core::BOOL { + windows_targets::link!("api-ms-win-core-winrt-error-l1-1-0.dll" "system" fn RoTransformError(olderror : windows_core::HRESULT, newerror : windows_core::HRESULT, message : * mut core::ffi::c_void) -> windows_core::BOOL); unsafe { RoTransformError(olderror, newerror, core::mem::transmute_copy(message)) } } #[inline] -pub unsafe fn RoTransformErrorW(olderror: windows_core::HRESULT, newerror: windows_core::HRESULT, cchmax: u32, message: Option<&[u16; 512]>) -> super::super::Foundation::BOOL { - windows_targets::link!("api-ms-win-core-winrt-error-l1-1-0.dll" "system" fn RoTransformErrorW(olderror : windows_core::HRESULT, newerror : windows_core::HRESULT, cchmax : u32, message : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn RoTransformErrorW(olderror: windows_core::HRESULT, newerror: windows_core::HRESULT, cchmax: u32, message: Option<&[u16; 512]>) -> windows_core::BOOL { + windows_targets::link!("api-ms-win-core-winrt-error-l1-1-0.dll" "system" fn RoTransformErrorW(olderror : windows_core::HRESULT, newerror : windows_core::HRESULT, cchmax : u32, message : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { RoTransformErrorW(olderror, newerror, cchmax, core::mem::transmute(message.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } } #[inline] @@ -418,8 +418,8 @@ pub unsafe fn WindowsInspectString2(targethstring: u64, machine: u16, callback: unsafe { WindowsInspectString2(targethstring, machine, callback, context.unwrap_or(core::mem::zeroed()) as _, length as _, targetstringaddress as _).ok() } } #[inline] -pub unsafe fn WindowsIsStringEmpty(string: &windows_core::HSTRING) -> super::super::Foundation::BOOL { - windows_targets::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn WindowsIsStringEmpty(string : * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn WindowsIsStringEmpty(string: &windows_core::HSTRING) -> windows_core::BOOL { + windows_targets::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn WindowsIsStringEmpty(string : * mut core::ffi::c_void) -> windows_core::BOOL); unsafe { WindowsIsStringEmpty(core::mem::transmute_copy(string)) } } #[inline] @@ -444,8 +444,8 @@ pub unsafe fn WindowsReplaceString(string: &windows_core::HSTRING, stringreplace } } #[inline] -pub unsafe fn WindowsStringHasEmbeddedNull(string: &windows_core::HSTRING) -> windows_core::Result { - windows_targets::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn WindowsStringHasEmbeddedNull(string : * mut core::ffi::c_void, hasembednull : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn WindowsStringHasEmbeddedNull(string: &windows_core::HSTRING) -> windows_core::Result { + windows_targets::link!("api-ms-win-core-winrt-string-l1-1-0.dll" "system" fn WindowsStringHasEmbeddedNull(string : * mut core::ffi::c_void, hasembednull : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); WindowsStringHasEmbeddedNull(core::mem::transmute_copy(string), &mut result__).map(|| core::mem::transmute(result__)) 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 2bd45a953a..4556e91803 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs @@ -41,13 +41,13 @@ where unsafe { AdvInstallFileW(hwnd, lpszsourcedir.param().abi(), lpszsourcefile.param().abi(), lpszdestdir.param().abi(), lpszdestfile.param().abi(), dwflags, dwreserved).ok() } } #[inline] -pub unsafe fn ApphelpCheckShellObject(objectclsid: *const windows_core::GUID, bshimifnecessary: bool, pullflags: *mut u64) -> super::super::Foundation::BOOL { - windows_targets::link!("apphelp.dll" "system" fn ApphelpCheckShellObject(objectclsid : *const windows_core::GUID, bshimifnecessary : super::super::Foundation:: BOOL, pullflags : *mut u64) -> super::super::Foundation:: BOOL); +pub unsafe fn ApphelpCheckShellObject(objectclsid: *const windows_core::GUID, bshimifnecessary: bool, pullflags: *mut u64) -> windows_core::BOOL { + windows_targets::link!("apphelp.dll" "system" fn ApphelpCheckShellObject(objectclsid : *const windows_core::GUID, bshimifnecessary : windows_core::BOOL, pullflags : *mut u64) -> windows_core::BOOL); unsafe { ApphelpCheckShellObject(objectclsid, bshimifnecessary.into(), pullflags as _) } } #[inline] -pub unsafe fn CancelDeviceWakeupRequest(hdevice: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn CancelDeviceWakeupRequest(hdevice : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn CancelDeviceWakeupRequest(hdevice: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn CancelDeviceWakeupRequest(hdevice : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { CancelDeviceWakeupRequest(hdevice) } } #[inline] @@ -164,7 +164,7 @@ pub unsafe fn DnsHostnameToComputerNameA(hostname: P0, computername: Option< where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn DnsHostnameToComputerNameA(hostname : windows_core::PCSTR, computername : windows_core::PSTR, nsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DnsHostnameToComputerNameA(hostname : windows_core::PCSTR, computername : windows_core::PSTR, nsize : *mut u32) -> windows_core::BOOL); unsafe { DnsHostnameToComputerNameA(hostname.param().abi(), computername.unwrap_or(core::mem::zeroed()) as _, nsize as _).ok() } } #[inline] @@ -172,18 +172,18 @@ pub unsafe fn DnsHostnameToComputerNameW(hostname: P0, computername: Option< where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn DnsHostnameToComputerNameW(hostname : windows_core::PCWSTR, computername : windows_core::PWSTR, nsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DnsHostnameToComputerNameW(hostname : windows_core::PCWSTR, computername : windows_core::PWSTR, nsize : *mut u32) -> windows_core::BOOL); unsafe { DnsHostnameToComputerNameW(hostname.param().abi(), computername.unwrap_or(core::mem::zeroed()) as _, nsize as _).ok() } } #[inline] pub unsafe fn DosDateTimeToFileTime(wfatdate: u16, wfattime: u16, lpfiletime: *mut super::super::Foundation::FILETIME) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn DosDateTimeToFileTime(wfatdate : u16, wfattime : u16, lpfiletime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn DosDateTimeToFileTime(wfatdate : u16, wfattime : u16, lpfiletime : *mut super::super::Foundation:: FILETIME) -> windows_core::BOOL); unsafe { DosDateTimeToFileTime(wfatdate, wfattime, lpfiletime as _).ok() } } #[cfg(any(target_arch = "arm64ec", target_arch = "x86", target_arch = "x86_64"))] #[inline] -pub unsafe fn EnableProcessOptionalXStateFeatures(features: u64) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn EnableProcessOptionalXStateFeatures(features : u64) -> super::super::Foundation:: BOOL); +pub unsafe fn EnableProcessOptionalXStateFeatures(features: u64) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn EnableProcessOptionalXStateFeatures(features : u64) -> windows_core::BOOL); unsafe { EnableProcessOptionalXStateFeatures(features) } } #[inline] @@ -272,7 +272,7 @@ where } #[inline] pub unsafe fn FileTimeToDosDateTime(lpfiletime: *const super::super::Foundation::FILETIME, lpfatdate: *mut u16, lpfattime: *mut u16) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn FileTimeToDosDateTime(lpfiletime : *const super::super::Foundation:: FILETIME, lpfatdate : *mut u16, lpfattime : *mut u16) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn FileTimeToDosDateTime(lpfiletime : *const super::super::Foundation:: FILETIME, lpfatdate : *mut u16, lpfattime : *mut u16) -> windows_core::BOOL); unsafe { FileTimeToDosDateTime(lpfiletime, lpfatdate as _, lpfattime as _).ok() } } #[inline] @@ -282,22 +282,22 @@ pub unsafe fn GdiEntry13() -> u32 { } #[inline] pub unsafe fn GetComputerNameA(lpbuffer: Option, nsize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetComputerNameA(lpbuffer : windows_core::PSTR, nsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetComputerNameA(lpbuffer : windows_core::PSTR, nsize : *mut u32) -> windows_core::BOOL); unsafe { GetComputerNameA(lpbuffer.unwrap_or(core::mem::zeroed()) as _, nsize as _).ok() } } #[inline] pub unsafe fn GetComputerNameW(lpbuffer: Option, nsize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetComputerNameW(lpbuffer : windows_core::PWSTR, nsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetComputerNameW(lpbuffer : windows_core::PWSTR, nsize : *mut u32) -> windows_core::BOOL); unsafe { GetComputerNameW(lpbuffer.unwrap_or(core::mem::zeroed()) as _, nsize as _).ok() } } #[inline] pub unsafe fn GetCurrentHwProfileA(lphwprofileinfo: *mut HW_PROFILE_INFOA) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetCurrentHwProfileA(lphwprofileinfo : *mut HW_PROFILE_INFOA) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetCurrentHwProfileA(lphwprofileinfo : *mut HW_PROFILE_INFOA) -> windows_core::BOOL); unsafe { GetCurrentHwProfileA(lphwprofileinfo as _).ok() } } #[inline] pub unsafe fn GetCurrentHwProfileW(lphwprofileinfo: *mut HW_PROFILE_INFOW) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetCurrentHwProfileW(lphwprofileinfo : *mut HW_PROFILE_INFOW) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetCurrentHwProfileW(lphwprofileinfo : *mut HW_PROFILE_INFOW) -> windows_core::BOOL); unsafe { GetCurrentHwProfileW(lphwprofileinfo as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -312,8 +312,8 @@ pub unsafe fn GetFeatureEnabledState(featureid: u32, changetime: FEATURE_CHANGE_ unsafe { GetFeatureEnabledState(featureid, changetime) } } #[inline] -pub unsafe fn GetFeatureVariant(featureid: u32, changetime: FEATURE_CHANGE_TIME, payloadid: *mut u32, hasnotification: *mut super::super::Foundation::BOOL) -> u32 { - windows_targets::link!("api-ms-win-core-featurestaging-l1-1-1.dll" "system" fn GetFeatureVariant(featureid : u32, changetime : FEATURE_CHANGE_TIME, payloadid : *mut u32, hasnotification : *mut super::super::Foundation:: BOOL) -> u32); +pub unsafe fn GetFeatureVariant(featureid: u32, changetime: FEATURE_CHANGE_TIME, payloadid: *mut u32, hasnotification: *mut windows_core::BOOL) -> u32 { + windows_targets::link!("api-ms-win-core-featurestaging-l1-1-1.dll" "system" fn GetFeatureVariant(featureid : u32, changetime : FEATURE_CHANGE_TIME, payloadid : *mut u32, hasnotification : *mut windows_core::BOOL) -> u32); unsafe { GetFeatureVariant(featureid, changetime, payloadid as _, hasnotification as _) } } #[inline] @@ -429,23 +429,23 @@ where unsafe { GetPrivateProfileStringW(lpappname.param().abi(), lpkeyname.param().abi(), lpdefault.param().abi(), core::mem::transmute(lpreturnedstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpreturnedstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), lpfilename.param().abi()) } } #[inline] -pub unsafe fn GetPrivateProfileStructA(lpszsection: P0, lpszkey: P1, lpstruct: Option<*mut core::ffi::c_void>, usizestruct: u32, szfile: P4) -> super::super::Foundation::BOOL +pub unsafe fn GetPrivateProfileStructA(lpszsection: P0, lpszkey: P1, lpstruct: Option<*mut core::ffi::c_void>, usizestruct: u32, szfile: P4) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetPrivateProfileStructA(lpszsection : windows_core::PCSTR, lpszkey : windows_core::PCSTR, lpstruct : *mut core::ffi::c_void, usizestruct : u32, szfile : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetPrivateProfileStructA(lpszsection : windows_core::PCSTR, lpszkey : windows_core::PCSTR, lpstruct : *mut core::ffi::c_void, usizestruct : u32, szfile : windows_core::PCSTR) -> windows_core::BOOL); unsafe { GetPrivateProfileStructA(lpszsection.param().abi(), lpszkey.param().abi(), lpstruct.unwrap_or(core::mem::zeroed()) as _, usizestruct, szfile.param().abi()) } } #[inline] -pub unsafe fn GetPrivateProfileStructW(lpszsection: P0, lpszkey: P1, lpstruct: Option<*mut core::ffi::c_void>, usizestruct: u32, szfile: P4) -> super::super::Foundation::BOOL +pub unsafe fn GetPrivateProfileStructW(lpszsection: P0, lpszkey: P1, lpstruct: Option<*mut core::ffi::c_void>, usizestruct: u32, szfile: P4) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn GetPrivateProfileStructW(lpszsection : windows_core::PCWSTR, lpszkey : windows_core::PCWSTR, lpstruct : *mut core::ffi::c_void, usizestruct : u32, szfile : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetPrivateProfileStructW(lpszsection : windows_core::PCWSTR, lpszkey : windows_core::PCWSTR, lpstruct : *mut core::ffi::c_void, usizestruct : u32, szfile : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { GetPrivateProfileStructW(lpszsection.param().abi(), lpszkey.param().abi(), lpstruct.unwrap_or(core::mem::zeroed()) as _, usizestruct, szfile.param().abi()) } } #[inline] @@ -504,7 +504,7 @@ where } #[inline] pub unsafe fn GetSystemRegistryQuota(pdwquotaallowed: Option<*mut u32>, pdwquotaused: Option<*mut u32>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn GetSystemRegistryQuota(pdwquotaallowed : *mut u32, pdwquotaused : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn GetSystemRegistryQuota(pdwquotaallowed : *mut u32, pdwquotaused : *mut u32) -> windows_core::BOOL); unsafe { GetSystemRegistryQuota(pdwquotaallowed.unwrap_or(core::mem::zeroed()) as _, pdwquotaused.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(any(target_arch = "arm64ec", target_arch = "x86", target_arch = "x86_64"))] @@ -515,12 +515,12 @@ pub unsafe fn GetThreadEnabledXStateFeatures() -> u64 { } #[inline] pub unsafe fn GetUserNameA(lpbuffer: Option, pcbbuffer: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetUserNameA(lpbuffer : windows_core::PSTR, pcbbuffer : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetUserNameA(lpbuffer : windows_core::PSTR, pcbbuffer : *mut u32) -> windows_core::BOOL); unsafe { GetUserNameA(lpbuffer.unwrap_or(core::mem::zeroed()) as _, pcbbuffer as _).ok() } } #[inline] pub unsafe fn GetUserNameW(lpbuffer: Option, pcbbuffer: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("advapi32.dll" "system" fn GetUserNameW(lpbuffer : windows_core::PWSTR, pcbbuffer : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("advapi32.dll" "system" fn GetUserNameW(lpbuffer : windows_core::PWSTR, pcbbuffer : *mut u32) -> windows_core::BOOL); unsafe { GetUserNameW(lpbuffer.unwrap_or(core::mem::zeroed()) as _, pcbbuffer as _).ok() } } #[inline] @@ -528,7 +528,7 @@ pub unsafe fn GetVersionFromFileA(lpszfilename: P0, pdwmsver: *mut u32, pdwl where P0: windows_core::Param, { - windows_targets::link!("advpack.dll" "system" fn GetVersionFromFileA(lpszfilename : windows_core::PCSTR, pdwmsver : *mut u32, pdwlsver : *mut u32, bversion : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("advpack.dll" "system" fn GetVersionFromFileA(lpszfilename : windows_core::PCSTR, pdwmsver : *mut u32, pdwlsver : *mut u32, bversion : windows_core::BOOL) -> windows_core::HRESULT); unsafe { GetVersionFromFileA(lpszfilename.param().abi(), pdwmsver as _, pdwlsver as _, bversion.into()).ok() } } #[inline] @@ -536,7 +536,7 @@ pub unsafe fn GetVersionFromFileExA(lpszfilename: P0, pdwmsver: *mut u32, pd where P0: windows_core::Param, { - windows_targets::link!("advpack.dll" "system" fn GetVersionFromFileExA(lpszfilename : windows_core::PCSTR, pdwmsver : *mut u32, pdwlsver : *mut u32, bversion : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("advpack.dll" "system" fn GetVersionFromFileExA(lpszfilename : windows_core::PCSTR, pdwmsver : *mut u32, pdwlsver : *mut u32, bversion : windows_core::BOOL) -> windows_core::HRESULT); unsafe { GetVersionFromFileExA(lpszfilename.param().abi(), pdwmsver as _, pdwlsver as _, bversion.into()).ok() } } #[inline] @@ -544,7 +544,7 @@ pub unsafe fn GetVersionFromFileExW(lpszfilename: P0, pdwmsver: *mut u32, pd where P0: windows_core::Param, { - windows_targets::link!("advpack.dll" "system" fn GetVersionFromFileExW(lpszfilename : windows_core::PCWSTR, pdwmsver : *mut u32, pdwlsver : *mut u32, bversion : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("advpack.dll" "system" fn GetVersionFromFileExW(lpszfilename : windows_core::PCWSTR, pdwmsver : *mut u32, pdwlsver : *mut u32, bversion : windows_core::BOOL) -> windows_core::HRESULT); unsafe { GetVersionFromFileExW(lpszfilename.param().abi(), pdwmsver as _, pdwlsver as _, bversion.into()).ok() } } #[inline] @@ -552,7 +552,7 @@ pub unsafe fn GetVersionFromFileW(lpszfilename: P0, pdwmsver: *mut u32, pdwl where P0: windows_core::Param, { - windows_targets::link!("advpack.dll" "system" fn GetVersionFromFileW(lpszfilename : windows_core::PCWSTR, pdwmsver : *mut u32, pdwlsver : *mut u32, bversion : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("advpack.dll" "system" fn GetVersionFromFileW(lpszfilename : windows_core::PCWSTR, pdwmsver : *mut u32, pdwlsver : *mut u32, bversion : windows_core::BOOL) -> windows_core::HRESULT); unsafe { GetVersionFromFileW(lpszfilename.param().abi(), pdwmsver as _, pdwlsver as _, bversion.into()).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -572,8 +572,8 @@ pub unsafe fn GlobalFix(hmem: super::super::Foundation::HGLOBAL) { unsafe { GlobalFix(hmem) } } #[inline] -pub unsafe fn GlobalUnWire(hmem: super::super::Foundation::HGLOBAL) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn GlobalUnWire(hmem : super::super::Foundation:: HGLOBAL) -> super::super::Foundation:: BOOL); +pub unsafe fn GlobalUnWire(hmem: super::super::Foundation::HGLOBAL) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn GlobalUnWire(hmem : super::super::Foundation:: HGLOBAL) -> windows_core::BOOL); unsafe { GlobalUnWire(hmem) } } #[inline] @@ -587,66 +587,66 @@ pub unsafe fn GlobalWire(hmem: super::super::Foundation::HGLOBAL) -> *mut core:: unsafe { GlobalWire(hmem) } } #[inline] -pub unsafe fn IMPGetIMEA(param0: super::super::Foundation::HWND, param1: *mut IMEPROA) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IMPGetIMEA(param0 : super::super::Foundation:: HWND, param1 : *mut IMEPROA) -> super::super::Foundation:: BOOL); +pub unsafe fn IMPGetIMEA(param0: super::super::Foundation::HWND, param1: *mut IMEPROA) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IMPGetIMEA(param0 : super::super::Foundation:: HWND, param1 : *mut IMEPROA) -> windows_core::BOOL); unsafe { IMPGetIMEA(param0, param1 as _) } } #[inline] -pub unsafe fn IMPGetIMEW(param0: super::super::Foundation::HWND, param1: *mut IMEPROW) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IMPGetIMEW(param0 : super::super::Foundation:: HWND, param1 : *mut IMEPROW) -> super::super::Foundation:: BOOL); +pub unsafe fn IMPGetIMEW(param0: super::super::Foundation::HWND, param1: *mut IMEPROW) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IMPGetIMEW(param0 : super::super::Foundation:: HWND, param1 : *mut IMEPROW) -> windows_core::BOOL); unsafe { IMPGetIMEW(param0, param1 as _) } } #[inline] -pub unsafe fn IMPQueryIMEA(param0: *mut IMEPROA) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IMPQueryIMEA(param0 : *mut IMEPROA) -> super::super::Foundation:: BOOL); +pub unsafe fn IMPQueryIMEA(param0: *mut IMEPROA) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IMPQueryIMEA(param0 : *mut IMEPROA) -> windows_core::BOOL); unsafe { IMPQueryIMEA(param0 as _) } } #[inline] -pub unsafe fn IMPQueryIMEW(param0: *mut IMEPROW) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IMPQueryIMEW(param0 : *mut IMEPROW) -> super::super::Foundation:: BOOL); +pub unsafe fn IMPQueryIMEW(param0: *mut IMEPROW) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IMPQueryIMEW(param0 : *mut IMEPROW) -> windows_core::BOOL); unsafe { IMPQueryIMEW(param0 as _) } } #[inline] -pub unsafe fn IMPSetIMEA(param0: super::super::Foundation::HWND, param1: *mut IMEPROA) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IMPSetIMEA(param0 : super::super::Foundation:: HWND, param1 : *mut IMEPROA) -> super::super::Foundation:: BOOL); +pub unsafe fn IMPSetIMEA(param0: super::super::Foundation::HWND, param1: *mut IMEPROA) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IMPSetIMEA(param0 : super::super::Foundation:: HWND, param1 : *mut IMEPROA) -> windows_core::BOOL); unsafe { IMPSetIMEA(param0, param1 as _) } } #[inline] -pub unsafe fn IMPSetIMEW(param0: super::super::Foundation::HWND, param1: *mut IMEPROW) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IMPSetIMEW(param0 : super::super::Foundation:: HWND, param1 : *mut IMEPROW) -> super::super::Foundation:: BOOL); +pub unsafe fn IMPSetIMEW(param0: super::super::Foundation::HWND, param1: *mut IMEPROW) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IMPSetIMEW(param0 : super::super::Foundation:: HWND, param1 : *mut IMEPROW) -> windows_core::BOOL); unsafe { IMPSetIMEW(param0, param1 as _) } } #[inline] -pub unsafe fn IsApiSetImplemented(contract: P0) -> super::super::Foundation::BOOL +pub unsafe fn IsApiSetImplemented(contract: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("api-ms-win-core-apiquery-l2-1-0.dll" "system" fn IsApiSetImplemented(contract : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-apiquery-l2-1-0.dll" "system" fn IsApiSetImplemented(contract : windows_core::PCSTR) -> windows_core::BOOL); unsafe { IsApiSetImplemented(contract.param().abi()) } } #[inline] -pub unsafe fn IsBadHugeReadPtr(lp: Option<*const core::ffi::c_void>, ucb: usize) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn IsBadHugeReadPtr(lp : *const core::ffi::c_void, ucb : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn IsBadHugeReadPtr(lp: Option<*const core::ffi::c_void>, ucb: usize) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn IsBadHugeReadPtr(lp : *const core::ffi::c_void, ucb : usize) -> windows_core::BOOL); unsafe { IsBadHugeReadPtr(lp.unwrap_or(core::mem::zeroed()) as _, ucb) } } #[inline] -pub unsafe fn IsBadHugeWritePtr(lp: Option<*const core::ffi::c_void>, ucb: usize) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn IsBadHugeWritePtr(lp : *const core::ffi::c_void, ucb : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn IsBadHugeWritePtr(lp: Option<*const core::ffi::c_void>, ucb: usize) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn IsBadHugeWritePtr(lp : *const core::ffi::c_void, ucb : usize) -> windows_core::BOOL); unsafe { IsBadHugeWritePtr(lp.unwrap_or(core::mem::zeroed()) as _, ucb) } } #[inline] -pub unsafe fn IsNTAdmin(dwreserved: u32, lpdwreserved: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("advpack.dll" "system" fn IsNTAdmin(dwreserved : u32, lpdwreserved : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn IsNTAdmin(dwreserved: u32, lpdwreserved: *mut u32) -> windows_core::BOOL { + windows_targets::link!("advpack.dll" "system" fn IsNTAdmin(dwreserved : u32, lpdwreserved : *mut u32) -> windows_core::BOOL); unsafe { IsNTAdmin(dwreserved, lpdwreserved as _) } } #[inline] -pub unsafe fn IsNativeVhdBoot(nativevhdboot: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn IsNativeVhdBoot(nativevhdboot : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn IsNativeVhdBoot(nativevhdboot: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("kernel32.dll" "system" fn IsNativeVhdBoot(nativevhdboot : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { IsNativeVhdBoot(nativevhdboot as _).ok() } } #[inline] -pub unsafe fn IsTokenUntrusted(tokenhandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("advapi32.dll" "system" fn IsTokenUntrusted(tokenhandle : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn IsTokenUntrusted(tokenhandle: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("advapi32.dll" "system" fn IsTokenUntrusted(tokenhandle : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { IsTokenUntrusted(tokenhandle) } } #[inline] @@ -678,8 +678,8 @@ pub unsafe fn MulDiv(nnumber: i32, nnumerator: i32, ndenominator: i32) -> i32 { unsafe { MulDiv(nnumber, nnumerator, ndenominator) } } #[inline] -pub unsafe fn NeedReboot(dwrebootcheck: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("advpack.dll" "system" fn NeedReboot(dwrebootcheck : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn NeedReboot(dwrebootcheck: u32) -> windows_core::BOOL { + windows_targets::link!("advpack.dll" "system" fn NeedReboot(dwrebootcheck : u32) -> windows_core::BOOL); unsafe { NeedReboot(dwrebootcheck) } } #[inline] @@ -710,7 +710,7 @@ pub unsafe fn OpenMutexA(dwdesiredaccess: u32, binherithandle: bool, lpname: where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn OpenMutexA(dwdesiredaccess : u32, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn OpenMutexA(dwdesiredaccess : u32, binherithandle : windows_core::BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); unsafe { OpenMutexA(dwdesiredaccess, binherithandle.into(), lpname.param().abi()) } } #[inline] @@ -718,7 +718,7 @@ pub unsafe fn OpenSemaphoreA(dwdesiredaccess: u32, binherithandle: bool, lpn where P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn OpenSemaphoreA(dwdesiredaccess : u32, binherithandle : super::super::Foundation:: BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); + windows_targets::link!("kernel32.dll" "system" fn OpenSemaphoreA(dwdesiredaccess : u32, binherithandle : windows_core::BOOL, lpname : windows_core::PCSTR) -> super::super::Foundation:: HANDLE); unsafe { OpenSemaphoreA(dwdesiredaccess, binherithandle.into(), lpname.param().abi()) } } #[inline] @@ -731,12 +731,12 @@ pub unsafe fn QueryAuxiliaryCounterFrequency() -> windows_core::Result { } #[inline] pub unsafe fn QueryIdleProcessorCycleTime(bufferlength: *mut u32, processoridlecycletime: Option<*mut u64>) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn QueryIdleProcessorCycleTime(bufferlength : *mut u32, processoridlecycletime : *mut u64) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn QueryIdleProcessorCycleTime(bufferlength : *mut u32, processoridlecycletime : *mut u64) -> windows_core::BOOL); unsafe { QueryIdleProcessorCycleTime(bufferlength as _, processoridlecycletime.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn QueryIdleProcessorCycleTimeEx(group: u16, bufferlength: *mut u32, processoridlecycletime: Option<*mut u64>) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn QueryIdleProcessorCycleTimeEx(group : u16, bufferlength : *mut u32, processoridlecycletime : *mut u64) -> super::super::Foundation:: BOOL); +pub unsafe fn QueryIdleProcessorCycleTimeEx(group: u16, bufferlength: *mut u32, processoridlecycletime: Option<*mut u64>) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn QueryIdleProcessorCycleTimeEx(group : u16, bufferlength : *mut u32, processoridlecycletime : *mut u64) -> windows_core::BOOL); unsafe { QueryIdleProcessorCycleTimeEx(group, bufferlength as _, processoridlecycletime.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -759,17 +759,17 @@ pub unsafe fn QueryInterruptTimePrecise() -> u64 { } #[inline] pub unsafe fn QueryProcessCycleTime(processhandle: super::super::Foundation::HANDLE, cycletime: *mut u64) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn QueryProcessCycleTime(processhandle : super::super::Foundation:: HANDLE, cycletime : *mut u64) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn QueryProcessCycleTime(processhandle : super::super::Foundation:: HANDLE, cycletime : *mut u64) -> windows_core::BOOL); unsafe { QueryProcessCycleTime(processhandle, cycletime as _).ok() } } #[inline] pub unsafe fn QueryThreadCycleTime(threadhandle: super::super::Foundation::HANDLE, cycletime: *mut u64) -> windows_core::Result<()> { - windows_targets::link!("kernel32.dll" "system" fn QueryThreadCycleTime(threadhandle : super::super::Foundation:: HANDLE, cycletime : *mut u64) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn QueryThreadCycleTime(threadhandle : super::super::Foundation:: HANDLE, cycletime : *mut u64) -> windows_core::BOOL); unsafe { QueryThreadCycleTime(threadhandle, cycletime as _).ok() } } #[inline] -pub unsafe fn QueryUnbiasedInterruptTime(unbiasedtime: *mut u64) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn QueryUnbiasedInterruptTime(unbiasedtime : *mut u64) -> super::super::Foundation:: BOOL); +pub unsafe fn QueryUnbiasedInterruptTime(unbiasedtime: *mut u64) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn QueryUnbiasedInterruptTime(unbiasedtime : *mut u64) -> windows_core::BOOL); unsafe { QueryUnbiasedInterruptTime(unbiasedtime as _) } } #[inline] @@ -898,17 +898,17 @@ where unsafe { RegSaveRestoreW(hwnd, psztitlestring.param().abi(), hkbckupkey, pcszrootkey.param().abi(), pcszsubkey.param().abi(), pcszvaluename.param().abi(), dwflags).ok() } } #[inline] -pub unsafe fn ReplacePartitionUnit(targetpartition: P0, sparepartition: P1, flags: u32) -> super::super::Foundation::BOOL +pub unsafe fn ReplacePartitionUnit(targetpartition: P0, sparepartition: P1, flags: u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn ReplacePartitionUnit(targetpartition : windows_core::PCWSTR, sparepartition : windows_core::PCWSTR, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn ReplacePartitionUnit(targetpartition : windows_core::PCWSTR, sparepartition : windows_core::PCWSTR, flags : u32) -> windows_core::BOOL); unsafe { ReplacePartitionUnit(targetpartition.param().abi(), sparepartition.param().abi(), flags) } } #[inline] -pub unsafe fn RequestDeviceWakeup(hdevice: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn RequestDeviceWakeup(hdevice : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn RequestDeviceWakeup(hdevice: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn RequestDeviceWakeup(hdevice : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { RequestDeviceWakeup(hdevice) } } #[cfg(feature = "Win32_System_Kernel")] @@ -1055,11 +1055,11 @@ pub unsafe fn SendIMEMessageExW(param0: super::super::Foundation::HWND, param1: unsafe { SendIMEMessageExW(param0, param1) } } #[inline] -pub unsafe fn SetEnvironmentStringsA(newenvironment: P0) -> super::super::Foundation::BOOL +pub unsafe fn SetEnvironmentStringsA(newenvironment: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetEnvironmentStringsA(newenvironment : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetEnvironmentStringsA(newenvironment : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetEnvironmentStringsA(newenvironment.param().abi()) } } #[inline] @@ -1068,7 +1068,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetFirmwareEnvironmentVariableA(lpname : windows_core::PCSTR, lpguid : windows_core::PCSTR, pvalue : *const core::ffi::c_void, nsize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetFirmwareEnvironmentVariableA(lpname : windows_core::PCSTR, lpguid : windows_core::PCSTR, pvalue : *const core::ffi::c_void, nsize : u32) -> windows_core::BOOL); unsafe { SetFirmwareEnvironmentVariableA(lpname.param().abi(), lpguid.param().abi(), pvalue.unwrap_or(core::mem::zeroed()) as _, nsize).ok() } } #[inline] @@ -1077,7 +1077,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetFirmwareEnvironmentVariableExA(lpname : windows_core::PCSTR, lpguid : windows_core::PCSTR, pvalue : *const core::ffi::c_void, nsize : u32, dwattributes : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetFirmwareEnvironmentVariableExA(lpname : windows_core::PCSTR, lpguid : windows_core::PCSTR, pvalue : *const core::ffi::c_void, nsize : u32, dwattributes : u32) -> windows_core::BOOL); unsafe { SetFirmwareEnvironmentVariableExA(lpname.param().abi(), lpguid.param().abi(), pvalue.unwrap_or(core::mem::zeroed()) as _, nsize, dwattributes).ok() } } #[inline] @@ -1086,7 +1086,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetFirmwareEnvironmentVariableExW(lpname : windows_core::PCWSTR, lpguid : windows_core::PCWSTR, pvalue : *const core::ffi::c_void, nsize : u32, dwattributes : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetFirmwareEnvironmentVariableExW(lpname : windows_core::PCWSTR, lpguid : windows_core::PCWSTR, pvalue : *const core::ffi::c_void, nsize : u32, dwattributes : u32) -> windows_core::BOOL); unsafe { SetFirmwareEnvironmentVariableExW(lpname.param().abi(), lpguid.param().abi(), pvalue.unwrap_or(core::mem::zeroed()) as _, nsize, dwattributes).ok() } } #[inline] @@ -1095,7 +1095,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn SetFirmwareEnvironmentVariableW(lpname : windows_core::PCWSTR, lpguid : windows_core::PCWSTR, pvalue : *const core::ffi::c_void, nsize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn SetFirmwareEnvironmentVariableW(lpname : windows_core::PCWSTR, lpguid : windows_core::PCWSTR, pvalue : *const core::ffi::c_void, nsize : u32) -> windows_core::BOOL); unsafe { SetFirmwareEnvironmentVariableW(lpname.param().abi(), lpguid.param().abi(), pvalue.unwrap_or(core::mem::zeroed()) as _, nsize).ok() } } #[inline] @@ -1104,8 +1104,8 @@ pub unsafe fn SetHandleCount(unumber: u32) -> u32 { unsafe { SetHandleCount(unumber) } } #[inline] -pub unsafe fn SetMessageWaitingIndicator(hmsgindicator: super::super::Foundation::HANDLE, ulmsgcount: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("kernel32.dll" "system" fn SetMessageWaitingIndicator(hmsgindicator : super::super::Foundation:: HANDLE, ulmsgcount : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn SetMessageWaitingIndicator(hmsgindicator: super::super::Foundation::HANDLE, ulmsgcount: u32) -> windows_core::BOOL { + windows_targets::link!("kernel32.dll" "system" fn SetMessageWaitingIndicator(hmsgindicator : super::super::Foundation:: HANDLE, ulmsgcount : u32) -> windows_core::BOOL); unsafe { SetMessageWaitingIndicator(hmsgindicator, ulmsgcount) } } #[inline] @@ -1203,13 +1203,13 @@ where unsafe { UserUnInstStubWrapperW(hwnd, hinstance, pszparms.param().abi(), nshow).ok() } } #[inline] -pub unsafe fn WINNLSEnableIME(param0: super::super::Foundation::HWND, param1: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn WINNLSEnableIME(param0 : super::super::Foundation:: HWND, param1 : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn WINNLSEnableIME(param0: super::super::Foundation::HWND, param1: bool) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn WINNLSEnableIME(param0 : super::super::Foundation:: HWND, param1 : windows_core::BOOL) -> windows_core::BOOL); unsafe { WINNLSEnableIME(param0, param1.into()) } } #[inline] -pub unsafe fn WINNLSGetEnableStatus(param0: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn WINNLSGetEnableStatus(param0 : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn WINNLSGetEnableStatus(param0: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn WINNLSGetEnableStatus(param0 : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { WINNLSGetEnableStatus(param0) } } #[inline] @@ -1223,8 +1223,8 @@ pub unsafe fn WinWatchClose(hww: HWINWATCH) { unsafe { WinWatchClose(hww) } } #[inline] -pub unsafe fn WinWatchDidStatusChange(hww: HWINWATCH) -> super::super::Foundation::BOOL { - windows_targets::link!("dciman32.dll" "system" fn WinWatchDidStatusChange(hww : HWINWATCH) -> super::super::Foundation:: BOOL); +pub unsafe fn WinWatchDidStatusChange(hww: HWINWATCH) -> windows_core::BOOL { + windows_targets::link!("dciman32.dll" "system" fn WinWatchDidStatusChange(hww : HWINWATCH) -> windows_core::BOOL); unsafe { WinWatchDidStatusChange(hww) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -1234,8 +1234,8 @@ pub unsafe fn WinWatchGetClipList(hww: HWINWATCH, prc: *mut super::super::Founda unsafe { WinWatchGetClipList(hww, prc as _, size, prd as _) } } #[inline] -pub unsafe fn WinWatchNotify(hww: HWINWATCH, notifycallback: WINWATCHNOTIFYPROC, notifyparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { - windows_targets::link!("dciman32.dll" "system" fn WinWatchNotify(hww : HWINWATCH, notifycallback : WINWATCHNOTIFYPROC, notifyparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); +pub unsafe fn WinWatchNotify(hww: HWINWATCH, notifycallback: WINWATCHNOTIFYPROC, notifyparam: super::super::Foundation::LPARAM) -> windows_core::BOOL { + windows_targets::link!("dciman32.dll" "system" fn WinWatchNotify(hww : HWINWATCH, notifycallback : WINWATCHNOTIFYPROC, notifyparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { WinWatchNotify(hww, notifycallback, notifyparam) } } #[inline] @@ -1284,13 +1284,13 @@ pub unsafe fn WldpGetLockdownPolicy(hostinformation: Option<*const WLDP_HOST_INF unsafe { WldpGetLockdownPolicy(hostinformation.unwrap_or(core::mem::zeroed()) as _, lockdownstate as _, lockdownflags).ok() } } #[inline] -pub unsafe fn WldpIsClassInApprovedList(classid: *const windows_core::GUID, hostinformation: *const WLDP_HOST_INFORMATION, isapproved: *mut super::super::Foundation::BOOL, optionalflags: u32) -> windows_core::Result<()> { - windows_targets::link!("wldp.dll" "system" fn WldpIsClassInApprovedList(classid : *const windows_core::GUID, hostinformation : *const WLDP_HOST_INFORMATION, isapproved : *mut super::super::Foundation:: BOOL, optionalflags : u32) -> windows_core::HRESULT); +pub unsafe fn WldpIsClassInApprovedList(classid: *const windows_core::GUID, hostinformation: *const WLDP_HOST_INFORMATION, isapproved: *mut windows_core::BOOL, optionalflags: u32) -> windows_core::Result<()> { + windows_targets::link!("wldp.dll" "system" fn WldpIsClassInApprovedList(classid : *const windows_core::GUID, hostinformation : *const WLDP_HOST_INFORMATION, isapproved : *mut windows_core::BOOL, optionalflags : u32) -> windows_core::HRESULT); unsafe { WldpIsClassInApprovedList(classid, hostinformation, isapproved as _, optionalflags).ok() } } #[inline] -pub unsafe fn WldpIsDynamicCodePolicyEnabled() -> windows_core::Result { - windows_targets::link!("wldp.dll" "system" fn WldpIsDynamicCodePolicyEnabled(isenabled : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn WldpIsDynamicCodePolicyEnabled() -> windows_core::Result { + windows_targets::link!("wldp.dll" "system" fn WldpIsDynamicCodePolicyEnabled(isenabled : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); WldpIsDynamicCodePolicyEnabled(&mut result__).map(|| core::mem::transmute(result__)) @@ -1318,7 +1318,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn WritePrivateProfileSectionA(lpappname : windows_core::PCSTR, lpstring : windows_core::PCSTR, lpfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WritePrivateProfileSectionA(lpappname : windows_core::PCSTR, lpstring : windows_core::PCSTR, lpfilename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { WritePrivateProfileSectionA(lpappname.param().abi(), lpstring.param().abi(), lpfilename.param().abi()).ok() } } #[inline] @@ -1328,7 +1328,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn WritePrivateProfileSectionW(lpappname : windows_core::PCWSTR, lpstring : windows_core::PCWSTR, lpfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WritePrivateProfileSectionW(lpappname : windows_core::PCWSTR, lpstring : windows_core::PCWSTR, lpfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { WritePrivateProfileSectionW(lpappname.param().abi(), lpstring.param().abi(), lpfilename.param().abi()).ok() } } #[inline] @@ -1339,7 +1339,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn WritePrivateProfileStringA(lpappname : windows_core::PCSTR, lpkeyname : windows_core::PCSTR, lpstring : windows_core::PCSTR, lpfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WritePrivateProfileStringA(lpappname : windows_core::PCSTR, lpkeyname : windows_core::PCSTR, lpstring : windows_core::PCSTR, lpfilename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { WritePrivateProfileStringA(lpappname.param().abi(), lpkeyname.param().abi(), lpstring.param().abi(), lpfilename.param().abi()).ok() } } #[inline] @@ -1350,7 +1350,7 @@ where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn WritePrivateProfileStringW(lpappname : windows_core::PCWSTR, lpkeyname : windows_core::PCWSTR, lpstring : windows_core::PCWSTR, lpfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WritePrivateProfileStringW(lpappname : windows_core::PCWSTR, lpkeyname : windows_core::PCWSTR, lpstring : windows_core::PCWSTR, lpfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { WritePrivateProfileStringW(lpappname.param().abi(), lpkeyname.param().abi(), lpstring.param().abi(), lpfilename.param().abi()).ok() } } #[inline] @@ -1360,7 +1360,7 @@ where P1: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn WritePrivateProfileStructA(lpszsection : windows_core::PCSTR, lpszkey : windows_core::PCSTR, lpstruct : *const core::ffi::c_void, usizestruct : u32, szfile : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WritePrivateProfileStructA(lpszsection : windows_core::PCSTR, lpszkey : windows_core::PCSTR, lpstruct : *const core::ffi::c_void, usizestruct : u32, szfile : windows_core::PCSTR) -> windows_core::BOOL); unsafe { WritePrivateProfileStructA(lpszsection.param().abi(), lpszkey.param().abi(), lpstruct.unwrap_or(core::mem::zeroed()) as _, usizestruct, szfile.param().abi()).ok() } } #[inline] @@ -1370,7 +1370,7 @@ where P1: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn WritePrivateProfileStructW(lpszsection : windows_core::PCWSTR, lpszkey : windows_core::PCWSTR, lpstruct : *const core::ffi::c_void, usizestruct : u32, szfile : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WritePrivateProfileStructW(lpszsection : windows_core::PCWSTR, lpszkey : windows_core::PCWSTR, lpstruct : *const core::ffi::c_void, usizestruct : u32, szfile : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { WritePrivateProfileStructW(lpszsection.param().abi(), lpszkey.param().abi(), lpstruct.unwrap_or(core::mem::zeroed()) as _, usizestruct, szfile.param().abi()).ok() } } #[inline] @@ -1379,7 +1379,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn WriteProfileSectionA(lpappname : windows_core::PCSTR, lpstring : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WriteProfileSectionA(lpappname : windows_core::PCSTR, lpstring : windows_core::PCSTR) -> windows_core::BOOL); unsafe { WriteProfileSectionA(lpappname.param().abi(), lpstring.param().abi()).ok() } } #[inline] @@ -1388,7 +1388,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn WriteProfileSectionW(lpappname : windows_core::PCWSTR, lpstring : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WriteProfileSectionW(lpappname : windows_core::PCWSTR, lpstring : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { WriteProfileSectionW(lpappname.param().abi(), lpstring.param().abi()).ok() } } #[inline] @@ -1398,7 +1398,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn WriteProfileStringA(lpappname : windows_core::PCSTR, lpkeyname : windows_core::PCSTR, lpstring : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WriteProfileStringA(lpappname : windows_core::PCSTR, lpkeyname : windows_core::PCSTR, lpstring : windows_core::PCSTR) -> windows_core::BOOL); unsafe { WriteProfileStringA(lpappname.param().abi(), lpkeyname.param().abi(), lpstring.param().abi()).ok() } } #[inline] @@ -1408,7 +1408,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("kernel32.dll" "system" fn WriteProfileStringW(lpappname : windows_core::PCWSTR, lpkeyname : windows_core::PCWSTR, lpstring : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("kernel32.dll" "system" fn WriteProfileStringW(lpappname : windows_core::PCWSTR, lpkeyname : windows_core::PCWSTR, lpstring : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { WriteProfileStringW(lpappname.param().abi(), lpkeyname.param().abi(), lpstring.param().abi()).ok() } } #[inline] @@ -2238,7 +2238,7 @@ impl ICameraUIControl { pub unsafe fn Close(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn Suspend(&self) -> windows_core::Result { + pub unsafe fn Suspend(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Suspend)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2273,9 +2273,9 @@ impl ICameraUIControl { #[repr(C)] pub struct ICameraUIControl_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Show: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, CameraUIControlMode, CameraUIControlLinearSelectionMode, CameraUIControlCaptureMode, CameraUIControlPhotoFormat, CameraUIControlVideoFormat, super::super::Foundation::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub Show: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, CameraUIControlMode, CameraUIControlLinearSelectionMode, CameraUIControlCaptureMode, CameraUIControlPhotoFormat, CameraUIControlVideoFormat, windows_core::BOOL, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Close: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub Suspend: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Suspend: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Resume: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetCurrentViewType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CameraUIControlViewType) -> windows_core::HRESULT, pub GetActiveItem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2287,9 +2287,9 @@ pub struct ICameraUIControl_Vtbl { } #[cfg(feature = "Win32_System_Com")] pub trait ICameraUIControl_Impl: windows_core::IUnknownImpl { - fn Show(&self, pwindow: windows_core::Ref, mode: CameraUIControlMode, selectionmode: CameraUIControlLinearSelectionMode, capturemode: CameraUIControlCaptureMode, photoformat: CameraUIControlPhotoFormat, videoformat: CameraUIControlVideoFormat, bhasclosebutton: super::super::Foundation::BOOL, peventcallback: windows_core::Ref) -> windows_core::Result<()>; + fn Show(&self, pwindow: windows_core::Ref, mode: CameraUIControlMode, selectionmode: CameraUIControlLinearSelectionMode, capturemode: CameraUIControlCaptureMode, photoformat: CameraUIControlPhotoFormat, videoformat: CameraUIControlVideoFormat, bhasclosebutton: windows_core::BOOL, peventcallback: windows_core::Ref) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; - fn Suspend(&self) -> windows_core::Result; + fn Suspend(&self) -> windows_core::Result; fn Resume(&self) -> windows_core::Result<()>; fn GetCurrentViewType(&self) -> windows_core::Result; fn GetActiveItem(&self, pbstractiveitempath: *mut windows_core::BSTR) -> windows_core::Result<()>; @@ -2299,7 +2299,7 @@ pub trait ICameraUIControl_Impl: windows_core::IUnknownImpl { #[cfg(feature = "Win32_System_Com")] impl ICameraUIControl_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, pwindow: *mut core::ffi::c_void, mode: CameraUIControlMode, selectionmode: CameraUIControlLinearSelectionMode, capturemode: CameraUIControlCaptureMode, photoformat: CameraUIControlPhotoFormat, videoformat: CameraUIControlVideoFormat, bhasclosebutton: super::super::Foundation::BOOL, peventcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, pwindow: *mut core::ffi::c_void, mode: CameraUIControlMode, selectionmode: CameraUIControlLinearSelectionMode, capturemode: CameraUIControlCaptureMode, photoformat: CameraUIControlPhotoFormat, videoformat: CameraUIControlVideoFormat, bhasclosebutton: windows_core::BOOL, peventcallback: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICameraUIControl_Impl::Show(this, core::mem::transmute_copy(&pwindow), core::mem::transmute_copy(&mode), core::mem::transmute_copy(&selectionmode), core::mem::transmute_copy(&capturemode), core::mem::transmute_copy(&photoformat), core::mem::transmute_copy(&videoformat), core::mem::transmute_copy(&bhasclosebutton), core::mem::transmute_copy(&peventcallback)).into() @@ -2311,7 +2311,7 @@ impl ICameraUIControl_Vtbl { ICameraUIControl_Impl::Close(this).into() } } - unsafe extern "system" fn Suspend(this: *mut core::ffi::c_void, pbdeferralrequired: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Suspend(this: *mut core::ffi::c_void, pbdeferralrequired: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICameraUIControl_Impl::Suspend(this) { @@ -2542,21 +2542,21 @@ impl windows_core::RuntimeName for IContainerActivationHelper {} windows_core::imp::define_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 { + pub unsafe fn IsEnabled(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).IsEnabled)(windows_core::Interface::as_raw(self)) } } } #[repr(C)] pub struct IDefaultBrowserSyncSettings_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub IsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, } pub trait IDefaultBrowserSyncSettings_Impl: windows_core::IUnknownImpl { - fn IsEnabled(&self) -> super::super::Foundation::BOOL; + fn IsEnabled(&self) -> windows_core::BOOL; } impl IDefaultBrowserSyncSettings_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDefaultBrowserSyncSettings_Impl::IsEnabled(this) @@ -2699,7 +2699,7 @@ impl windows_core::RuntimeName for IEditionUpgradeBroker {} windows_core::imp::define_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 { + pub unsafe fn CanUpgrade(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanUpgrade)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2720,7 +2720,7 @@ impl IEditionUpgradeHelper { (windows_core::Interface::vtable(self).GetOsProductContentId)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetGenuineLocalStatus(&self) -> windows_core::Result { + pub unsafe fn GetGenuineLocalStatus(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetGenuineLocalStatus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2730,22 +2730,22 @@ impl IEditionUpgradeHelper { #[repr(C)] pub struct IEditionUpgradeHelper_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub CanUpgrade: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CanUpgrade: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub UpdateOperatingSystem: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub ShowProductKeyUI: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetOsProductContentId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub GetGenuineLocalStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetGenuineLocalStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IEditionUpgradeHelper_Impl: windows_core::IUnknownImpl { - fn CanUpgrade(&self) -> windows_core::Result; + fn CanUpgrade(&self) -> windows_core::Result; fn UpdateOperatingSystem(&self, contentid: &windows_core::PCWSTR) -> windows_core::Result<()>; fn ShowProductKeyUI(&self) -> windows_core::Result<()>; fn GetOsProductContentId(&self) -> windows_core::Result; - fn GetGenuineLocalStatus(&self) -> windows_core::Result; + fn GetGenuineLocalStatus(&self) -> windows_core::Result; } impl IEditionUpgradeHelper_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CanUpgrade(this: *mut core::ffi::c_void, isallowed: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanUpgrade(this: *mut core::ffi::c_void, isallowed: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEditionUpgradeHelper_Impl::CanUpgrade(this) { @@ -2781,7 +2781,7 @@ impl IEditionUpgradeHelper_Vtbl { } } } - unsafe extern "system" fn GetGenuineLocalStatus(this: *mut core::ffi::c_void, isgenuine: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetGenuineLocalStatus(this: *mut core::ffi::c_void, isgenuine: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IEditionUpgradeHelper_Impl::GetGenuineLocalStatus(this) { @@ -3038,7 +3038,7 @@ pub const IR_UNDETERMINE: u32 = 368u32; windows_core::imp::define_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 { + pub unsafe fn GetSMode(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetSMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3048,14 +3048,14 @@ impl IWindowsLockModeHelper { #[repr(C)] pub struct IWindowsLockModeHelper_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetSMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetSMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWindowsLockModeHelper_Impl: windows_core::IUnknownImpl { - fn GetSMode(&self) -> windows_core::Result; + fn GetSMode(&self) -> windows_core::Result; } impl IWindowsLockModeHelper_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetSMode(this: *mut core::ffi::c_void, issmode: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetSMode(this: *mut core::ffi::c_void, issmode: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowsLockModeHelper_Impl::GetSMode(this) { @@ -3079,8 +3079,8 @@ impl windows_core::RuntimeName for IWindowsLockModeHelper {} pub struct JAVA_TRUST { pub cbSize: u32, pub flag: u32, - pub fAllActiveXPermissions: super::super::Foundation::BOOL, - pub fAllPermissions: super::super::Foundation::BOOL, + pub fAllActiveXPermissions: windows_core::BOOL, + pub fAllPermissions: windows_core::BOOL, pub dwEncodingType: u32, pub pbJavaPermissions: *mut u8, pub cbJavaPermissions: u32, @@ -3190,7 +3190,7 @@ pub struct PERUSERSECTIONA { pub szVersion: [i8; 32], pub szCompID: [i8; 128], pub dwIsInstalled: u32, - pub bRollback: super::super::Foundation::BOOL, + pub bRollback: windows_core::BOOL, } impl Default for PERUSERSECTIONA { fn default() -> Self { @@ -3207,7 +3207,7 @@ pub struct PERUSERSECTIONW { pub szVersion: [u16; 32], pub szCompID: [u16; 128], pub dwIsInstalled: u32, - pub bRollback: super::super::Foundation::BOOL, + pub bRollback: windows_core::BOOL, } impl Default for PERUSERSECTIONW { fn default() -> Self { @@ -3216,7 +3216,7 @@ impl Default for PERUSERSECTIONW { } pub type PFEATURE_STATE_CHANGE_CALLBACK = Option; pub type PFIBER_CALLOUT_ROUTINE = Option *mut core::ffi::c_void>; -pub type PQUERYACTCTXW_FUNC = Option super::super::Foundation::BOOL>; +pub type PQUERYACTCTXW_FUNC = Option windows_core::BOOL>; pub const PROCESS_CREATION_ALL_APPLICATION_PACKAGES_OPT_OUT: u32 = 1u32; pub const PROCESS_CREATION_CHILD_PROCESS_OVERRIDE: u32 = 2u32; pub const PROCESS_CREATION_CHILD_PROCESS_RESTRICTED: u32 = 1u32; @@ -3276,13 +3276,13 @@ pub type PWLDP_CANEXECUTEFILE_API = Option, auditinfo: windows_core::PCWSTR, result: *mut WLDP_EXECUTION_POLICY) -> windows_core::HRESULT>; pub type PWLDP_ISAPPAPPROVEDBYPOLICY_API = Option windows_core::HRESULT>; -pub type PWLDP_ISDYNAMICCODEPOLICYENABLED_API = Option windows_core::HRESULT>; -pub type PWLDP_ISPRODUCTIONCONFIGURATION_API = Option windows_core::HRESULT>; -pub type PWLDP_ISWCOSPRODUCTIONCONFIGURATION_API = Option windows_core::HRESULT>; +pub type PWLDP_ISDYNAMICCODEPOLICYENABLED_API = Option windows_core::HRESULT>; +pub type PWLDP_ISPRODUCTIONCONFIGURATION_API = Option windows_core::HRESULT>; +pub type PWLDP_ISWCOSPRODUCTIONCONFIGURATION_API = Option windows_core::HRESULT>; pub type PWLDP_QUERYDEVICESECURITYINFORMATION_API = Option windows_core::HRESULT>; pub type PWLDP_QUERYDYNAMICODETRUST_API = Option windows_core::HRESULT>; -pub type PWLDP_QUERYPOLICYSETTINGENABLED2_API = Option windows_core::HRESULT>; -pub type PWLDP_QUERYPOLICYSETTINGENABLED_API = Option windows_core::HRESULT>; +pub type PWLDP_QUERYPOLICYSETTINGENABLED2_API = Option windows_core::HRESULT>; +pub type PWLDP_QUERYPOLICYSETTINGENABLED_API = Option windows_core::HRESULT>; pub type PWLDP_QUERYWINDOWSLOCKDOWNMODE_API = Option windows_core::HRESULT>; pub type PWLDP_QUERYWINDOWSLOCKDOWNRESTRICTION_API = Option windows_core::HRESULT>; pub type PWLDP_RESETPRODUCTIONCONFIGURATION_API = Option windows_core::HRESULT>; 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 145bc65450..8eb4fd0874 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WindowsSync/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WindowsSync/mod.rs @@ -982,7 +982,7 @@ impl Default for ID_PARAMETERS { #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct ID_PARAMETER_PAIR { - pub fIsVariable: super::super::Foundation::BOOL, + pub fIsVariable: windows_core::BOOL, pub cbIdSize: u16, } impl Default for ID_PARAMETER_PAIR { @@ -1796,7 +1796,7 @@ impl IFeedClockVector { pub unsafe fn GetUpdateCount(&self, pdwupdatecount: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetUpdateCount)(windows_core::Interface::as_raw(self), pdwupdatecount as _).ok() } } - pub unsafe fn IsNoConflictsSpecified(&self, pfisnoconflictsspecified: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn IsNoConflictsSpecified(&self, pfisnoconflictsspecified: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsNoConflictsSpecified)(windows_core::Interface::as_raw(self), pfisnoconflictsspecified as _).ok() } } } @@ -1804,11 +1804,11 @@ impl IFeedClockVector { pub struct IFeedClockVector_Vtbl { pub base__: IClockVector_Vtbl, pub GetUpdateCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub IsNoConflictsSpecified: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsNoConflictsSpecified: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IFeedClockVector_Impl: IClockVector_Impl { fn GetUpdateCount(&self, pdwupdatecount: *mut u32) -> windows_core::Result<()>; - fn IsNoConflictsSpecified(&self, pfisnoconflictsspecified: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsNoConflictsSpecified(&self, pfisnoconflictsspecified: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl IFeedClockVector_Vtbl { pub const fn new() -> Self { @@ -1818,7 +1818,7 @@ impl IFeedClockVector_Vtbl { IFeedClockVector_Impl::GetUpdateCount(this, core::mem::transmute_copy(&pdwupdatecount)).into() } } - unsafe extern "system" fn IsNoConflictsSpecified(this: *mut core::ffi::c_void, pfisnoconflictsspecified: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsNoConflictsSpecified(this: *mut core::ffi::c_void, pfisnoconflictsspecified: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFeedClockVector_Impl::IsNoConflictsSpecified(this, core::mem::transmute_copy(&pfisnoconflictsspecified)).into() @@ -3254,12 +3254,12 @@ impl ISyncChangeBatch { pub struct ISyncChangeBatch_Vtbl { pub base__: ISyncChangeBatchBase_Vtbl, pub BeginUnorderedGroup: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub EndUnorderedGroup: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EndUnorderedGroup: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub AddLoggedConflict: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, *const u8, *const SYNC_VERSION, *const SYNC_VERSION, u32, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ISyncChangeBatch_Impl: ISyncChangeBatchBase_Impl { fn BeginUnorderedGroup(&self) -> windows_core::Result<()>; - fn EndUnorderedGroup(&self, pmadewithknowledge: windows_core::Ref, fallchangesforknowledge: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EndUnorderedGroup(&self, pmadewithknowledge: windows_core::Ref, fallchangesforknowledge: windows_core::BOOL) -> windows_core::Result<()>; fn AddLoggedConflict(&self, pbownerreplicaid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwflags: u32, dwworkforchange: u32, pconflictknowledge: windows_core::Ref) -> windows_core::Result; } impl ISyncChangeBatch_Vtbl { @@ -3270,7 +3270,7 @@ impl ISyncChangeBatch_Vtbl { ISyncChangeBatch_Impl::BeginUnorderedGroup(this).into() } } - unsafe extern "system" fn EndUnorderedGroup(this: *mut core::ffi::c_void, pmadewithknowledge: *mut core::ffi::c_void, fallchangesforknowledge: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EndUnorderedGroup(this: *mut core::ffi::c_void, pmadewithknowledge: *mut core::ffi::c_void, fallchangesforknowledge: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatch_Impl::EndUnorderedGroup(this, core::mem::transmute_copy(&pmadewithknowledge), core::mem::transmute_copy(&fallchangesforknowledge)).into() @@ -3390,7 +3390,7 @@ impl ISyncChangeBatchAdvanced { pub unsafe fn GetUpperBoundItemId(&self, pbitemid: *mut u8, pcbidsize: *mut u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetUpperBoundItemId)(windows_core::Interface::as_raw(self), pbitemid as _, pcbidsize as _).ok() } } - pub unsafe fn GetBatchLevelKnowledgeShouldBeApplied(&self, pfbatchknowledgeshouldbeapplied: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetBatchLevelKnowledgeShouldBeApplied(&self, pfbatchknowledgeshouldbeapplied: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetBatchLevelKnowledgeShouldBeApplied)(windows_core::Interface::as_raw(self), pfbatchknowledgeshouldbeapplied as _).ok() } } } @@ -3400,13 +3400,13 @@ pub struct ISyncChangeBatchAdvanced_Vtbl { pub GetFilterInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ConvertFullEnumerationChangeBatchToRegularChangeBatch: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetUpperBoundItemId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8, *mut u32) -> windows_core::HRESULT, - pub GetBatchLevelKnowledgeShouldBeApplied: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetBatchLevelKnowledgeShouldBeApplied: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ISyncChangeBatchAdvanced_Impl: windows_core::IUnknownImpl { fn GetFilterInfo(&self) -> windows_core::Result; fn ConvertFullEnumerationChangeBatchToRegularChangeBatch(&self) -> windows_core::Result; fn GetUpperBoundItemId(&self, pbitemid: *mut u8, pcbidsize: *mut u32) -> windows_core::Result<()>; - fn GetBatchLevelKnowledgeShouldBeApplied(&self, pfbatchknowledgeshouldbeapplied: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetBatchLevelKnowledgeShouldBeApplied(&self, pfbatchknowledgeshouldbeapplied: *mut windows_core::BOOL) -> windows_core::Result<()>; } impl ISyncChangeBatchAdvanced_Vtbl { pub const fn new() -> Self { @@ -3440,7 +3440,7 @@ impl ISyncChangeBatchAdvanced_Vtbl { ISyncChangeBatchAdvanced_Impl::GetUpperBoundItemId(this, core::mem::transmute_copy(&pbitemid), core::mem::transmute_copy(&pcbidsize)).into() } } - unsafe extern "system" fn GetBatchLevelKnowledgeShouldBeApplied(this: *mut core::ffi::c_void, pfbatchknowledgeshouldbeapplied: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetBatchLevelKnowledgeShouldBeApplied(this: *mut core::ffi::c_void, pfbatchknowledgeshouldbeapplied: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatchAdvanced_Impl::GetBatchLevelKnowledgeShouldBeApplied(this, core::mem::transmute_copy(&pfbatchknowledgeshouldbeapplied)).into() @@ -3468,7 +3468,7 @@ impl ISyncChangeBatchBase { (windows_core::Interface::vtable(self).GetChangeEnumerator)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetIsLastBatch(&self, pflastbatch: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetIsLastBatch(&self, pflastbatch: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetIsLastBatch)(windows_core::Interface::as_raw(self), pflastbatch as _).ok() } } pub unsafe fn GetWorkEstimateForBatch(&self, pdwworkforbatch: *mut u32) -> windows_core::Result<()> { @@ -3527,7 +3527,7 @@ impl ISyncChangeBatchBase { pub struct ISyncChangeBatchBase_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetChangeEnumerator: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetIsLastBatch: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetIsLastBatch: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetWorkEstimateForBatch: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetRemainingWorkEstimateForSession: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub BeginOrderedGroup: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8) -> windows_core::HRESULT, @@ -3543,7 +3543,7 @@ pub struct ISyncChangeBatchBase_Vtbl { } pub trait ISyncChangeBatchBase_Impl: windows_core::IUnknownImpl { fn GetChangeEnumerator(&self) -> windows_core::Result; - fn GetIsLastBatch(&self, pflastbatch: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetIsLastBatch(&self, pflastbatch: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetWorkEstimateForBatch(&self, pdwworkforbatch: *mut u32) -> windows_core::Result<()>; fn GetRemainingWorkEstimateForSession(&self, pdwremainingworkforsession: *mut u32) -> windows_core::Result<()>; fn BeginOrderedGroup(&self, pblowerbound: *const u8) -> windows_core::Result<()>; @@ -3571,7 +3571,7 @@ impl ISyncChangeBatchBase_Vtbl { } } } - unsafe extern "system" fn GetIsLastBatch(this: *mut core::ffi::c_void, pflastbatch: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetIsLastBatch(this: *mut core::ffi::c_void, pflastbatch: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeBatchBase_Impl::GetIsLastBatch(this, core::mem::transmute_copy(&pflastbatch)).into() @@ -4121,7 +4121,7 @@ impl ISyncChangeWithFilterKeyMap { pub unsafe fn GetFilterChange(&self, dwfilterkey: u32, pfilterchange: *mut SYNC_FILTER_CHANGE) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetFilterChange)(windows_core::Interface::as_raw(self), dwfilterkey, pfilterchange as _).ok() } } - pub unsafe fn GetAllChangeUnitsPresentFlag(&self, pfallchangeunitspresent: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetAllChangeUnitsPresentFlag(&self, pfallchangeunitspresent: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetAllChangeUnitsPresentFlag)(windows_core::Interface::as_raw(self), pfallchangeunitspresent as _).ok() } } pub unsafe fn GetFilterForgottenKnowledge(&self, dwfilterkey: u32) -> windows_core::Result { @@ -4186,7 +4186,7 @@ pub struct ISyncChangeWithFilterKeyMap_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetFilterCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetFilterChange: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut SYNC_FILTER_CHANGE) -> windows_core::HRESULT, - pub GetAllChangeUnitsPresentFlag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetAllChangeUnitsPresentFlag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetFilterForgottenKnowledge: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetFilteredReplicaLearnedKnowledge: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetLearnedFilterForgottenKnowledge: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -4197,7 +4197,7 @@ pub struct ISyncChangeWithFilterKeyMap_Vtbl { pub trait ISyncChangeWithFilterKeyMap_Impl: windows_core::IUnknownImpl { fn GetFilterCount(&self, pdwfiltercount: *mut u32) -> windows_core::Result<()>; fn GetFilterChange(&self, dwfilterkey: u32, pfilterchange: *mut SYNC_FILTER_CHANGE) -> windows_core::Result<()>; - fn GetAllChangeUnitsPresentFlag(&self, pfallchangeunitspresent: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetAllChangeUnitsPresentFlag(&self, pfallchangeunitspresent: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetFilterForgottenKnowledge(&self, dwfilterkey: u32) -> windows_core::Result; fn GetFilteredReplicaLearnedKnowledge(&self, pdestinationknowledge: windows_core::Ref, pnewmoveins: windows_core::Ref) -> windows_core::Result; fn GetLearnedFilterForgottenKnowledge(&self, pdestinationknowledge: windows_core::Ref, pnewmoveins: windows_core::Ref, dwfilterkey: u32) -> windows_core::Result; @@ -4219,7 +4219,7 @@ impl ISyncChangeWithFilterKeyMap_Vtbl { ISyncChangeWithFilterKeyMap_Impl::GetFilterChange(this, core::mem::transmute_copy(&dwfilterkey), core::mem::transmute_copy(&pfilterchange)).into() } } - unsafe extern "system" fn GetAllChangeUnitsPresentFlag(this: *mut core::ffi::c_void, pfallchangeunitspresent: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetAllChangeUnitsPresentFlag(this: *mut core::ffi::c_void, pfallchangeunitspresent: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncChangeWithFilterKeyMap_Impl::GetAllChangeUnitsPresentFlag(this, core::mem::transmute_copy(&pfallchangeunitspresent)).into() @@ -4981,7 +4981,7 @@ impl ISyncKnowledge { pub struct ISyncKnowledge_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetOwnerReplicaId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8, *mut u32) -> windows_core::HRESULT, - pub Serialize: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut u8, *mut u32) -> windows_core::HRESULT, + pub Serialize: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut u8, *mut u32) -> windows_core::HRESULT, pub SetLocalTickCount: unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, pub ContainsChange: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, *const u8, *const SYNC_VERSION) -> windows_core::HRESULT, pub ContainsChangeUnit: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, *const u8, *const u8, *const SYNC_VERSION) -> windows_core::HRESULT, @@ -5007,7 +5007,7 @@ pub struct ISyncKnowledge_Vtbl { } pub trait ISyncKnowledge_Impl: windows_core::IUnknownImpl { fn GetOwnerReplicaId(&self, pbreplicaid: *mut u8, pcbidsize: *mut u32) -> windows_core::Result<()>; - fn Serialize(&self, fserializereplicakeymap: super::super::Foundation::BOOL, pbknowledge: *mut u8, pcbknowledge: *mut u32) -> windows_core::Result<()>; + fn Serialize(&self, fserializereplicakeymap: windows_core::BOOL, pbknowledge: *mut u8, pcbknowledge: *mut u32) -> windows_core::Result<()>; fn SetLocalTickCount(&self, ulltickcount: u64) -> windows_core::Result<()>; fn ContainsChange(&self, pbversionownerreplicaid: *const u8, pgiditemid: *const u8, psyncversion: *const SYNC_VERSION) -> windows_core::Result<()>; fn ContainsChangeUnit(&self, pbversionownerreplicaid: *const u8, pbitemid: *const u8, pbchangeunitid: *const u8, psyncversion: *const SYNC_VERSION) -> windows_core::Result<()>; @@ -5039,7 +5039,7 @@ impl ISyncKnowledge_Vtbl { ISyncKnowledge_Impl::GetOwnerReplicaId(this, core::mem::transmute_copy(&pbreplicaid), core::mem::transmute_copy(&pcbidsize)).into() } } - unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, fserializereplicakeymap: super::super::Foundation::BOOL, pbknowledge: *mut u8, pcbknowledge: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn Serialize(this: *mut core::ffi::c_void, fserializereplicakeymap: windows_core::BOOL, pbknowledge: *mut u8, pcbknowledge: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncKnowledge_Impl::Serialize(this, core::mem::transmute_copy(&fserializereplicakeymap), core::mem::transmute_copy(&pbknowledge), core::mem::transmute_copy(&pcbknowledge)).into() @@ -6227,7 +6227,7 @@ impl windows_core::RuntimeName for ISyncSessionExtendedErrorInfo {} windows_core::imp::define_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<()> { + pub unsafe fn IsCanceled(&self, pfiscanceled: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).IsCanceled)(windows_core::Interface::as_raw(self), pfiscanceled as _).ok() } } pub unsafe fn GetInfoForChangeApplication(&self, pbchangeapplierinfo: *mut u8, pcbchangeapplierinfo: *mut u32) -> windows_core::Result<()> { @@ -6252,7 +6252,7 @@ impl ISyncSessionState { #[repr(C)] pub struct ISyncSessionState_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsCanceled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsCanceled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetInfoForChangeApplication: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8, *mut u32) -> windows_core::HRESULT, pub LoadInfoFromChangeApplication: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, u32) -> windows_core::HRESULT, pub GetForgottenKnowledgeRecoveryRangeStart: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8, *mut u32) -> windows_core::HRESULT, @@ -6261,7 +6261,7 @@ pub struct ISyncSessionState_Vtbl { pub OnProgress: unsafe extern "system" fn(*mut core::ffi::c_void, SYNC_PROVIDER_ROLE, SYNC_PROGRESS_STAGE, u32, u32) -> windows_core::HRESULT, } pub trait ISyncSessionState_Impl: windows_core::IUnknownImpl { - fn IsCanceled(&self, pfiscanceled: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsCanceled(&self, pfiscanceled: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetInfoForChangeApplication(&self, pbchangeapplierinfo: *mut u8, pcbchangeapplierinfo: *mut u32) -> windows_core::Result<()>; fn LoadInfoFromChangeApplication(&self, pbchangeapplierinfo: *const u8, cbchangeapplierinfo: u32) -> windows_core::Result<()>; fn GetForgottenKnowledgeRecoveryRangeStart(&self, pbrangestart: *mut u8, pcbrangestart: *mut u32) -> windows_core::Result<()>; @@ -6271,7 +6271,7 @@ pub trait ISyncSessionState_Impl: windows_core::IUnknownImpl { } impl ISyncSessionState_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsCanceled(this: *mut core::ffi::c_void, pfiscanceled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsCanceled(this: *mut core::ffi::c_void, pfiscanceled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncSessionState_Impl::IsCanceled(this, core::mem::transmute_copy(&pfiscanceled)).into() @@ -6348,16 +6348,16 @@ impl ISyncSessionState2 { #[repr(C)] pub struct ISyncSessionState2_Vtbl { pub base__: ISyncSessionState_Vtbl, - pub SetProviderWithError: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetProviderWithError: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetSessionErrorStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, } pub trait ISyncSessionState2_Impl: ISyncSessionState_Impl { - fn SetProviderWithError(&self, fself: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetProviderWithError(&self, fself: windows_core::BOOL) -> windows_core::Result<()>; fn GetSessionErrorStatus(&self, phrsessionerror: *mut windows_core::HRESULT) -> windows_core::Result<()>; } impl ISyncSessionState2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetProviderWithError(this: *mut core::ffi::c_void, fself: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetProviderWithError(this: *mut core::ffi::c_void, fself: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncSessionState2_Impl::SetProviderWithError(this, core::mem::transmute_copy(&fself)).into() @@ -6511,7 +6511,7 @@ pub struct SYNC_CONSTRAINT_RESOLVE_ACTION(pub i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct SYNC_FILTER_CHANGE { - pub fMoveIn: super::super::Foundation::BOOL, + pub fMoveIn: windows_core::BOOL, pub moveVersion: SYNC_VERSION, } impl Default for SYNC_FILTER_CHANGE { @@ -6608,7 +6608,7 @@ pub struct SyncProviderConfigUIConfiguration { pub guidContentType: windows_core::GUID, pub dwCapabilities: u32, pub dwSupportedArchitecture: u32, - pub fIsGlobal: super::super::Foundation::BOOL, + pub fIsGlobal: windows_core::BOOL, } impl Default for SyncProviderConfigUIConfiguration { fn default() -> Self { 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 98d4db4d8e..9039714254 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs @@ -7476,27 +7476,27 @@ impl IWbemPath { pub unsafe fn DeleteClassPart(&self, lflags: i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).DeleteClassPart)(windows_core::Interface::as_raw(self), lflags).ok() } } - pub unsafe fn IsRelative(&self, wszmachine: P0, wsznamespace: P1) -> super::super::Foundation::BOOL + pub unsafe fn IsRelative(&self, wszmachine: P0, wsznamespace: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).IsRelative)(windows_core::Interface::as_raw(self), wszmachine.param().abi(), wsznamespace.param().abi()) } } - pub unsafe fn IsRelativeOrChild(&self, wszmachine: P0, wsznamespace: P1, lflags: i32) -> super::super::Foundation::BOOL + pub unsafe fn IsRelativeOrChild(&self, wszmachine: P0, wsznamespace: P1, lflags: i32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).IsRelativeOrChild)(windows_core::Interface::as_raw(self), wszmachine.param().abi(), wsznamespace.param().abi(), lflags) } } - pub unsafe fn IsLocal(&self, wszmachine: P0) -> super::super::Foundation::BOOL + pub unsafe fn IsLocal(&self, wszmachine: P0) -> windows_core::BOOL where P0: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).IsLocal)(windows_core::Interface::as_raw(self), wszmachine.param().abi()) } } - pub unsafe fn IsSameClassName(&self, wszclass: P0) -> super::super::Foundation::BOOL + pub unsafe fn IsSameClassName(&self, wszclass: P0) -> windows_core::BOOL where P0: windows_core::Param, { @@ -7528,10 +7528,10 @@ pub struct IWbemPath_Vtbl { pub GetKeyList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateClassPart: unsafe extern "system" fn(*mut core::ffi::c_void, i32, windows_core::PCWSTR) -> windows_core::HRESULT, pub DeleteClassPart: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, - pub IsRelative: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR) -> super::super::Foundation::BOOL, - pub IsRelativeOrChild: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, i32) -> super::super::Foundation::BOOL, - pub IsLocal: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> super::super::Foundation::BOOL, - pub IsSameClassName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> super::super::Foundation::BOOL, + pub IsRelative: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::BOOL, + pub IsRelativeOrChild: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, i32) -> windows_core::BOOL, + pub IsLocal: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::BOOL, + pub IsSameClassName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::BOOL, } pub trait IWbemPath_Impl: windows_core::IUnknownImpl { fn SetText(&self, umode: u32, pszpath: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -7556,10 +7556,10 @@ pub trait IWbemPath_Impl: windows_core::IUnknownImpl { fn GetKeyList(&self) -> windows_core::Result; fn CreateClassPart(&self, lflags: i32, name: &windows_core::PCWSTR) -> windows_core::Result<()>; fn DeleteClassPart(&self, lflags: i32) -> windows_core::Result<()>; - fn IsRelative(&self, wszmachine: &windows_core::PCWSTR, wsznamespace: &windows_core::PCWSTR) -> super::super::Foundation::BOOL; - fn IsRelativeOrChild(&self, wszmachine: &windows_core::PCWSTR, wsznamespace: &windows_core::PCWSTR, lflags: i32) -> super::super::Foundation::BOOL; - fn IsLocal(&self, wszmachine: &windows_core::PCWSTR) -> super::super::Foundation::BOOL; - fn IsSameClassName(&self, wszclass: &windows_core::PCWSTR) -> super::super::Foundation::BOOL; + fn IsRelative(&self, wszmachine: &windows_core::PCWSTR, wsznamespace: &windows_core::PCWSTR) -> windows_core::BOOL; + fn IsRelativeOrChild(&self, wszmachine: &windows_core::PCWSTR, wsznamespace: &windows_core::PCWSTR, lflags: i32) -> windows_core::BOOL; + fn IsLocal(&self, wszmachine: &windows_core::PCWSTR) -> windows_core::BOOL; + fn IsSameClassName(&self, wszclass: &windows_core::PCWSTR) -> windows_core::BOOL; } impl IWbemPath_Vtbl { pub const fn new() -> Self { @@ -7719,25 +7719,25 @@ impl IWbemPath_Vtbl { IWbemPath_Impl::DeleteClassPart(this, core::mem::transmute_copy(&lflags)).into() } } - unsafe extern "system" fn IsRelative(this: *mut core::ffi::c_void, wszmachine: windows_core::PCWSTR, wsznamespace: windows_core::PCWSTR) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsRelative(this: *mut core::ffi::c_void, wszmachine: windows_core::PCWSTR, wsznamespace: windows_core::PCWSTR) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::IsRelative(this, core::mem::transmute(&wszmachine), core::mem::transmute(&wsznamespace)) } } - unsafe extern "system" fn IsRelativeOrChild(this: *mut core::ffi::c_void, wszmachine: windows_core::PCWSTR, wsznamespace: windows_core::PCWSTR, lflags: i32) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsRelativeOrChild(this: *mut core::ffi::c_void, wszmachine: windows_core::PCWSTR, wsznamespace: windows_core::PCWSTR, lflags: i32) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::IsRelativeOrChild(this, core::mem::transmute(&wszmachine), core::mem::transmute(&wsznamespace), core::mem::transmute_copy(&lflags)) } } - unsafe extern "system" fn IsLocal(this: *mut core::ffi::c_void, wszmachine: windows_core::PCWSTR) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsLocal(this: *mut core::ffi::c_void, wszmachine: windows_core::PCWSTR) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::IsLocal(this, core::mem::transmute(&wszmachine)) } } - unsafe extern "system" fn IsSameClassName(this: *mut core::ffi::c_void, wszclass: windows_core::PCWSTR) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsSameClassName(this: *mut core::ffi::c_void, wszclass: windows_core::PCWSTR) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IWbemPath_Impl::IsSameClassName(this, core::mem::transmute(&wszclass)) @@ -11356,7 +11356,7 @@ pub struct SWbemAnalysisMatrix { pub m_uPropertyType: u32, pub m_uEntries: u32, pub m_pValues: *mut *mut core::ffi::c_void, - pub m_pbTruthTable: *mut super::super::Foundation::BOOL, + pub m_pbTruthTable: *mut windows_core::BOOL, } impl Default for SWbemAnalysisMatrix { fn default() -> Self { @@ -11422,8 +11422,8 @@ pub struct SWbemQueryQualifiedName { pub m_uTokenType: u32, pub m_uNameListSize: u32, pub m_ppszNameList: *const windows_core::PCWSTR, - pub m_bArraysUsed: super::super::Foundation::BOOL, - pub m_pbArrayElUsed: *mut super::super::Foundation::BOOL, + pub m_bArraysUsed: windows_core::BOOL, + pub m_pbArrayElUsed: *mut windows_core::BOOL, pub m_puArrayIndex: *mut u32, } impl Default for SWbemQueryQualifiedName { @@ -11437,7 +11437,7 @@ pub const SWbemRefresher: windows_core::GUID = windows_core::GUID::from_u128(0xd #[derive(Clone, Copy)] pub union SWbemRpnConst { pub m_pszStrVal: windows_core::PCWSTR, - pub m_bBoolVal: super::super::Foundation::BOOL, + pub m_bBoolVal: windows_core::BOOL, pub m_lLongVal: i32, pub m_uLongVal: u32, pub m_dblVal: f64, 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 5f82cc9f94..2580b30c98 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Accessibility/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Accessibility/mod.rs @@ -106,8 +106,8 @@ pub unsafe fn InvokePattern_Invoke(hobj: HUIAPATTERNOBJECT) -> windows_core::Res unsafe { InvokePattern_Invoke(hobj).ok() } } #[inline] -pub unsafe fn IsWinEventHookInstalled(event: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsWinEventHookInstalled(event : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn IsWinEventHookInstalled(event: u32) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsWinEventHookInstalled(event : u32) -> windows_core::BOOL); unsafe { IsWinEventHookInstalled(event) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -179,13 +179,13 @@ pub unsafe fn RangeValuePattern_SetValue(hobj: HUIAPATTERNOBJECT, val: f64) -> w #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn RegisterPointerInputTarget(hwnd: super::super::Foundation::HWND, pointertype: super::WindowsAndMessaging::POINTER_INPUT_TYPE) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn RegisterPointerInputTarget(hwnd : super::super::Foundation:: HWND, pointertype : super::WindowsAndMessaging:: POINTER_INPUT_TYPE) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn RegisterPointerInputTarget(hwnd : super::super::Foundation:: HWND, pointertype : super::WindowsAndMessaging:: POINTER_INPUT_TYPE) -> windows_core::BOOL); unsafe { RegisterPointerInputTarget(hwnd, pointertype).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn RegisterPointerInputTargetEx(hwnd: super::super::Foundation::HWND, pointertype: super::WindowsAndMessaging::POINTER_INPUT_TYPE, fobserve: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn RegisterPointerInputTargetEx(hwnd : super::super::Foundation:: HWND, pointertype : super::WindowsAndMessaging:: POINTER_INPUT_TYPE, fobserve : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn RegisterPointerInputTargetEx(hwnd: super::super::Foundation::HWND, pointertype: super::WindowsAndMessaging::POINTER_INPUT_TYPE, fobserve: bool) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn RegisterPointerInputTargetEx(hwnd : super::super::Foundation:: HWND, pointertype : super::WindowsAndMessaging:: POINTER_INPUT_TYPE, fobserve : windows_core::BOOL) -> windows_core::BOOL); unsafe { RegisterPointerInputTargetEx(hwnd, pointertype, fobserve.into()) } } #[inline] @@ -276,8 +276,8 @@ pub unsafe fn TextRange_Clone(hobj: HUIATEXTRANGE, pretval: *mut HUIATEXTRANGE) unsafe { TextRange_Clone(hobj, pretval as _).ok() } } #[inline] -pub unsafe fn TextRange_Compare(hobj: HUIATEXTRANGE, range: HUIATEXTRANGE, pretval: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_Compare(hobj : HUIATEXTRANGE, range : HUIATEXTRANGE, pretval : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn TextRange_Compare(hobj: HUIATEXTRANGE, range: HUIATEXTRANGE, pretval: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_Compare(hobj : HUIATEXTRANGE, range : HUIATEXTRANGE, pretval : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { TextRange_Compare(hobj, range, pretval as _).ok() } } #[inline] @@ -293,12 +293,12 @@ pub unsafe fn TextRange_ExpandToEnclosingUnit(hobj: HUIATEXTRANGE, unit: TextUni #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] #[inline] pub unsafe fn TextRange_FindAttribute(hobj: HUIATEXTRANGE, attributeid: i32, val: &super::super::System::Variant::VARIANT, backward: bool, pretval: *mut HUIATEXTRANGE) -> windows_core::Result<()> { - windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_FindAttribute(hobj : HUIATEXTRANGE, attributeid : i32, val : super::super::System::Variant:: VARIANT, backward : super::super::Foundation:: BOOL, pretval : *mut HUIATEXTRANGE) -> windows_core::HRESULT); + windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_FindAttribute(hobj : HUIATEXTRANGE, attributeid : i32, val : super::super::System::Variant:: VARIANT, backward : windows_core::BOOL, pretval : *mut HUIATEXTRANGE) -> windows_core::HRESULT); unsafe { TextRange_FindAttribute(hobj, attributeid, core::mem::transmute_copy(val), backward.into(), pretval as _).ok() } } #[inline] pub unsafe fn TextRange_FindText(hobj: HUIATEXTRANGE, text: &windows_core::BSTR, backward: bool, ignorecase: bool, pretval: *mut HUIATEXTRANGE) -> windows_core::Result<()> { - windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_FindText(hobj : HUIATEXTRANGE, text : * mut core::ffi::c_void, backward : super::super::Foundation:: BOOL, ignorecase : super::super::Foundation:: BOOL, pretval : *mut HUIATEXTRANGE) -> windows_core::HRESULT); + windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_FindText(hobj : HUIATEXTRANGE, text : * mut core::ffi::c_void, backward : windows_core::BOOL, ignorecase : windows_core::BOOL, pretval : *mut HUIATEXTRANGE) -> windows_core::HRESULT); unsafe { TextRange_FindText(hobj, core::mem::transmute_copy(text), backward.into(), ignorecase.into(), pretval as _).ok() } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -351,7 +351,7 @@ pub unsafe fn TextRange_RemoveFromSelection(hobj: HUIATEXTRANGE) -> windows_core } #[inline] pub unsafe fn TextRange_ScrollIntoView(hobj: HUIATEXTRANGE, aligntotop: bool) -> windows_core::Result<()> { - windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_ScrollIntoView(hobj : HUIATEXTRANGE, aligntotop : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("uiautomationcore.dll" "system" fn TextRange_ScrollIntoView(hobj : HUIATEXTRANGE, aligntotop : windows_core::BOOL) -> windows_core::HRESULT); unsafe { TextRange_ScrollIntoView(hobj, aligntotop.into()).ok() } } #[inline] @@ -386,8 +386,8 @@ pub unsafe fn UiaAddEvent(hnode: HUIANODE, eventid: i32, pcallback: *mut UiaEven unsafe { UiaAddEvent(hnode, eventid, pcallback as _, scope, pproperties as _, cproperties, prequest as _, phevent as _).ok() } } #[inline] -pub unsafe fn UiaClientsAreListening() -> super::super::Foundation::BOOL { - windows_targets::link!("uiautomationcore.dll" "system" fn UiaClientsAreListening() -> super::super::Foundation:: BOOL); +pub unsafe fn UiaClientsAreListening() -> windows_core::BOOL { + windows_targets::link!("uiautomationcore.dll" "system" fn UiaClientsAreListening() -> windows_core::BOOL); unsafe { UiaClientsAreListening() } } #[inline] @@ -420,8 +420,8 @@ pub unsafe fn UiaFind(hnode: HUIANODE, pparams: *mut UiaFindParams, prequest: *m unsafe { UiaFind(hnode, pparams as _, prequest as _, pprequesteddata as _, ppoffsets as _, pptreestructures as _).ok() } } #[inline] -pub unsafe fn UiaGetErrorDescription(pdescription: *mut windows_core::BSTR) -> super::super::Foundation::BOOL { - windows_targets::link!("uiautomationcore.dll" "system" fn UiaGetErrorDescription(pdescription : *mut * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn UiaGetErrorDescription(pdescription: *mut windows_core::BSTR) -> windows_core::BOOL { + windows_targets::link!("uiautomationcore.dll" "system" fn UiaGetErrorDescription(pdescription : *mut * mut core::ffi::c_void) -> windows_core::BOOL); unsafe { UiaGetErrorDescription(core::mem::transmute(pdescription)) } } #[inline] @@ -487,8 +487,8 @@ pub unsafe fn UiaHUiaNodeFromVariant(pvar: *mut super::super::System::Variant::V unsafe { UiaHUiaNodeFromVariant(core::mem::transmute(pvar), phnode as _).ok() } } #[inline] -pub unsafe fn UiaHasServerSideProvider(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("uiautomationcore.dll" "system" fn UiaHasServerSideProvider(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn UiaHasServerSideProvider(hwnd: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("uiautomationcore.dll" "system" fn UiaHasServerSideProvider(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { UiaHasServerSideProvider(hwnd) } } #[inline] @@ -545,13 +545,13 @@ where unsafe { UiaNodeFromProvider(pprovider.param().abi(), phnode as _).ok() } } #[inline] -pub unsafe fn UiaNodeRelease(hnode: HUIANODE) -> super::super::Foundation::BOOL { - windows_targets::link!("uiautomationcore.dll" "system" fn UiaNodeRelease(hnode : HUIANODE) -> super::super::Foundation:: BOOL); +pub unsafe fn UiaNodeRelease(hnode: HUIANODE) -> windows_core::BOOL { + windows_targets::link!("uiautomationcore.dll" "system" fn UiaNodeRelease(hnode : HUIANODE) -> windows_core::BOOL); unsafe { UiaNodeRelease(hnode) } } #[inline] -pub unsafe fn UiaPatternRelease(hobj: HUIAPATTERNOBJECT) -> super::super::Foundation::BOOL { - windows_targets::link!("uiautomationcore.dll" "system" fn UiaPatternRelease(hobj : HUIAPATTERNOBJECT) -> super::super::Foundation:: BOOL); +pub unsafe fn UiaPatternRelease(hobj: HUIAPATTERNOBJECT) -> windows_core::BOOL { + windows_targets::link!("uiautomationcore.dll" "system" fn UiaPatternRelease(hobj : HUIAPATTERNOBJECT) -> windows_core::BOOL); unsafe { UiaPatternRelease(hobj) } } #[inline] @@ -667,25 +667,25 @@ pub unsafe fn UiaSetFocus(hnode: HUIANODE) -> windows_core::Result<()> { unsafe { UiaSetFocus(hnode).ok() } } #[inline] -pub unsafe fn UiaTextRangeRelease(hobj: HUIATEXTRANGE) -> super::super::Foundation::BOOL { - windows_targets::link!("uiautomationcore.dll" "system" fn UiaTextRangeRelease(hobj : HUIATEXTRANGE) -> super::super::Foundation:: BOOL); +pub unsafe fn UiaTextRangeRelease(hobj: HUIATEXTRANGE) -> windows_core::BOOL { + windows_targets::link!("uiautomationcore.dll" "system" fn UiaTextRangeRelease(hobj : HUIATEXTRANGE) -> windows_core::BOOL); unsafe { UiaTextRangeRelease(hobj) } } #[inline] -pub unsafe fn UnhookWinEvent(hwineventhook: HWINEVENTHOOK) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn UnhookWinEvent(hwineventhook : HWINEVENTHOOK) -> super::super::Foundation:: BOOL); +pub unsafe fn UnhookWinEvent(hwineventhook: HWINEVENTHOOK) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn UnhookWinEvent(hwineventhook : HWINEVENTHOOK) -> windows_core::BOOL); unsafe { UnhookWinEvent(hwineventhook) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn UnregisterPointerInputTarget(hwnd: super::super::Foundation::HWND, pointertype: super::WindowsAndMessaging::POINTER_INPUT_TYPE) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn UnregisterPointerInputTarget(hwnd : super::super::Foundation:: HWND, pointertype : super::WindowsAndMessaging:: POINTER_INPUT_TYPE) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn UnregisterPointerInputTarget(hwnd : super::super::Foundation:: HWND, pointertype : super::WindowsAndMessaging:: POINTER_INPUT_TYPE) -> windows_core::BOOL); unsafe { UnregisterPointerInputTarget(hwnd, pointertype).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn UnregisterPointerInputTargetEx(hwnd: super::super::Foundation::HWND, pointertype: super::WindowsAndMessaging::POINTER_INPUT_TYPE) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn UnregisterPointerInputTargetEx(hwnd : super::super::Foundation:: HWND, pointertype : super::WindowsAndMessaging:: POINTER_INPUT_TYPE) -> super::super::Foundation:: BOOL); +pub unsafe fn UnregisterPointerInputTargetEx(hwnd: super::super::Foundation::HWND, pointertype: super::WindowsAndMessaging::POINTER_INPUT_TYPE) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn UnregisterPointerInputTargetEx(hwnd : super::super::Foundation:: HWND, pointertype : super::WindowsAndMessaging:: POINTER_INPUT_TYPE) -> windows_core::BOOL); unsafe { UnregisterPointerInputTargetEx(hwnd, pointertype) } } #[inline] @@ -721,8 +721,8 @@ pub unsafe fn WindowPattern_SetWindowVisualState(hobj: HUIAPATTERNOBJECT, state: unsafe { WindowPattern_SetWindowVisualState(hobj, state).ok() } } #[inline] -pub unsafe fn WindowPattern_WaitForInputIdle(hobj: HUIAPATTERNOBJECT, milliseconds: i32, presult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("uiautomationcore.dll" "system" fn WindowPattern_WaitForInputIdle(hobj : HUIAPATTERNOBJECT, milliseconds : i32, presult : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn WindowPattern_WaitForInputIdle(hobj: HUIAPATTERNOBJECT, milliseconds: i32, presult: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("uiautomationcore.dll" "system" fn WindowPattern_WaitForInputIdle(hobj : HUIAPATTERNOBJECT, milliseconds : i32, presult : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { WindowPattern_WaitForInputIdle(hobj, milliseconds, presult as _).ok() } } #[repr(C)] @@ -1337,7 +1337,7 @@ windows_core::imp::define_interface!(IAccPropServer, IAccPropServer_Vtbl, 0x76c0 windows_core::imp::interface_hierarchy!(IAccPropServer, windows_core::IUnknown); impl IAccPropServer { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] - pub unsafe fn GetPropValue(&self, pidstring: &[u8], idprop: windows_core::GUID, pvarvalue: *mut super::super::System::Variant::VARIANT, pfhasprop: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetPropValue(&self, pidstring: &[u8], idprop: windows_core::GUID, pvarvalue: *mut super::super::System::Variant::VARIANT, pfhasprop: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (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), core::mem::transmute(pvarvalue), pfhasprop as _).ok() } } } @@ -1345,18 +1345,18 @@ impl IAccPropServer { pub struct IAccPropServer_Vtbl { pub base__: windows_core::IUnknown_Vtbl, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] - pub GetPropValue: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, u32, windows_core::GUID, *mut super::super::System::Variant::VARIANT, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetPropValue: unsafe extern "system" fn(*mut core::ffi::c_void, *const u8, u32, windows_core::GUID, *mut super::super::System::Variant::VARIANT, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetPropValue: usize, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IAccPropServer_Impl: windows_core::IUnknownImpl { - fn GetPropValue(&self, pidstring: *const u8, dwidstringlen: u32, idprop: &windows_core::GUID, pvarvalue: *mut super::super::System::Variant::VARIANT, pfhasprop: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetPropValue(&self, pidstring: *const u8, dwidstringlen: u32, idprop: &windows_core::GUID, pvarvalue: *mut super::super::System::Variant::VARIANT, pfhasprop: *mut windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IAccPropServer_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetPropValue(this: *mut core::ffi::c_void, pidstring: *const u8, dwidstringlen: u32, idprop: windows_core::GUID, pvarvalue: *mut super::super::System::Variant::VARIANT, pfhasprop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetPropValue(this: *mut core::ffi::c_void, pidstring: *const u8, dwidstringlen: u32, idprop: windows_core::GUID, pvarvalue: *mut super::super::System::Variant::VARIANT, pfhasprop: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAccPropServer_Impl::GetPropValue(this, core::mem::transmute_copy(&pidstring), core::mem::transmute_copy(&dwidstringlen), core::mem::transmute(&idprop), core::mem::transmute_copy(&pvarvalue), core::mem::transmute_copy(&pfhasprop)).into() @@ -2695,7 +2695,7 @@ impl windows_core::RuntimeName for IDockProvider {} windows_core::imp::define_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 { + pub unsafe fn IsGrabbed(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsGrabbed)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -2725,7 +2725,7 @@ impl IDragProvider { #[repr(C)] pub struct IDragProvider_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsGrabbed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsGrabbed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub DropEffect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub DropEffects: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT, @@ -2738,7 +2738,7 @@ pub struct IDragProvider_Vtbl { } #[cfg(feature = "Win32_System_Com")] pub trait IDragProvider_Impl: windows_core::IUnknownImpl { - fn IsGrabbed(&self) -> windows_core::Result; + fn IsGrabbed(&self) -> windows_core::Result; fn DropEffect(&self) -> windows_core::Result; fn DropEffects(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; fn GetGrabbedItems(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; @@ -2746,7 +2746,7 @@ pub trait IDragProvider_Impl: windows_core::IUnknownImpl { #[cfg(feature = "Win32_System_Com")] impl IDragProvider_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsGrabbed(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsGrabbed(this: *mut core::ffi::c_void, pretval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDragProvider_Impl::IsGrabbed(this) { @@ -3801,7 +3801,7 @@ impl IRangeValueProvider { (windows_core::Interface::vtable(self).Value)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsReadOnly(&self) -> windows_core::Result { + pub unsafe fn IsReadOnly(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsReadOnly)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3837,7 +3837,7 @@ pub struct IRangeValueProvider_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetValue: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, pub Value: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, - pub IsReadOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsReadOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Maximum: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub Minimum: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub LargeChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, @@ -3846,7 +3846,7 @@ pub struct IRangeValueProvider_Vtbl { pub trait IRangeValueProvider_Impl: windows_core::IUnknownImpl { fn SetValue(&self, val: f64) -> windows_core::Result<()>; fn Value(&self) -> windows_core::Result; - fn IsReadOnly(&self) -> windows_core::Result; + fn IsReadOnly(&self) -> windows_core::Result; fn Maximum(&self) -> windows_core::Result; fn Minimum(&self) -> windows_core::Result; fn LargeChange(&self) -> windows_core::Result; @@ -3872,7 +3872,7 @@ impl IRangeValueProvider_Vtbl { } } } - unsafe extern "system" fn IsReadOnly(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsReadOnly(this: *mut core::ffi::c_void, pretval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRangeValueProvider_Impl::IsReadOnly(this) { @@ -4724,13 +4724,13 @@ impl IScrollProvider { (windows_core::Interface::vtable(self).VerticalViewSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn HorizontallyScrollable(&self) -> windows_core::Result { + pub unsafe fn HorizontallyScrollable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HorizontallyScrollable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn VerticallyScrollable(&self) -> windows_core::Result { + pub unsafe fn VerticallyScrollable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).VerticallyScrollable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4746,8 +4746,8 @@ pub struct IScrollProvider_Vtbl { pub VerticalScrollPercent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub HorizontalViewSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub VerticalViewSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, - pub HorizontallyScrollable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub VerticallyScrollable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub HorizontallyScrollable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub VerticallyScrollable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IScrollProvider_Impl: windows_core::IUnknownImpl { fn Scroll(&self, horizontalamount: ScrollAmount, verticalamount: ScrollAmount) -> windows_core::Result<()>; @@ -4756,8 +4756,8 @@ pub trait IScrollProvider_Impl: windows_core::IUnknownImpl { fn VerticalScrollPercent(&self) -> windows_core::Result; fn HorizontalViewSize(&self) -> windows_core::Result; fn VerticalViewSize(&self) -> windows_core::Result; - fn HorizontallyScrollable(&self) -> windows_core::Result; - fn VerticallyScrollable(&self) -> windows_core::Result; + fn HorizontallyScrollable(&self) -> windows_core::Result; + fn VerticallyScrollable(&self) -> windows_core::Result; } impl IScrollProvider_Vtbl { pub const fn new() -> Self { @@ -4821,7 +4821,7 @@ impl IScrollProvider_Vtbl { } } } - unsafe extern "system" fn HorizontallyScrollable(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn HorizontallyScrollable(this: *mut core::ffi::c_void, pretval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScrollProvider_Impl::HorizontallyScrollable(this) { @@ -4833,7 +4833,7 @@ impl IScrollProvider_Vtbl { } } } - unsafe extern "system" fn VerticallyScrollable(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn VerticallyScrollable(this: *mut core::ffi::c_void, pretval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScrollProvider_Impl::VerticallyScrollable(this) { @@ -4874,7 +4874,7 @@ impl ISelectionItemProvider { pub unsafe fn RemoveFromSelection(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).RemoveFromSelection)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn IsSelected(&self) -> windows_core::Result { + pub unsafe fn IsSelected(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsSelected)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4893,14 +4893,14 @@ pub struct ISelectionItemProvider_Vtbl { pub Select: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub AddToSelection: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveFromSelection: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsSelected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsSelected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SelectionContainer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ISelectionItemProvider_Impl: windows_core::IUnknownImpl { fn Select(&self) -> windows_core::Result<()>; fn AddToSelection(&self) -> windows_core::Result<()>; fn RemoveFromSelection(&self) -> windows_core::Result<()>; - fn IsSelected(&self) -> windows_core::Result; + fn IsSelected(&self) -> windows_core::Result; fn SelectionContainer(&self) -> windows_core::Result; } impl ISelectionItemProvider_Vtbl { @@ -4923,7 +4923,7 @@ impl ISelectionItemProvider_Vtbl { ISelectionItemProvider_Impl::RemoveFromSelection(this).into() } } - unsafe extern "system" fn IsSelected(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsSelected(this: *mut core::ffi::c_void, pretval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISelectionItemProvider_Impl::IsSelected(this) { @@ -4971,13 +4971,13 @@ impl ISelectionProvider { (windows_core::Interface::vtable(self).GetSelection)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CanSelectMultiple(&self) -> windows_core::Result { + pub unsafe fn CanSelectMultiple(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanSelectMultiple)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsSelectionRequired(&self) -> windows_core::Result { + pub unsafe fn IsSelectionRequired(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsSelectionRequired)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4991,14 +4991,14 @@ pub struct ISelectionProvider_Vtbl { pub GetSelection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetSelection: usize, - pub CanSelectMultiple: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsSelectionRequired: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CanSelectMultiple: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsSelectionRequired: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait ISelectionProvider_Impl: windows_core::IUnknownImpl { fn GetSelection(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; - fn CanSelectMultiple(&self) -> windows_core::Result; - fn IsSelectionRequired(&self) -> windows_core::Result; + fn CanSelectMultiple(&self) -> windows_core::Result; + fn IsSelectionRequired(&self) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl ISelectionProvider_Vtbl { @@ -5015,7 +5015,7 @@ impl ISelectionProvider_Vtbl { } } } - unsafe extern "system" fn CanSelectMultiple(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanSelectMultiple(this: *mut core::ffi::c_void, pretval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISelectionProvider_Impl::CanSelectMultiple(this) { @@ -5027,7 +5027,7 @@ impl ISelectionProvider_Vtbl { } } } - unsafe extern "system" fn IsSelectionRequired(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsSelectionRequired(this: *mut core::ffi::c_void, pretval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ISelectionProvider_Impl::IsSelectionRequired(this) { @@ -5999,7 +5999,7 @@ impl ITextProvider2 { (windows_core::Interface::vtable(self).RangeFromAnnotation)(windows_core::Interface::as_raw(self), annotationelement.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetCaretRange(&self, isactive: *mut super::super::Foundation::BOOL) -> windows_core::Result { + pub unsafe fn GetCaretRange(&self, isactive: *mut windows_core::BOOL) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCaretRange)(windows_core::Interface::as_raw(self), isactive as _, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -6010,12 +6010,12 @@ impl ITextProvider2 { pub struct ITextProvider2_Vtbl { pub base__: ITextProvider_Vtbl, pub RangeFromAnnotation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetCaretRange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetCaretRange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait ITextProvider2_Impl: ITextProvider_Impl { fn RangeFromAnnotation(&self, annotationelement: windows_core::Ref) -> windows_core::Result; - fn GetCaretRange(&self, isactive: *mut super::super::Foundation::BOOL) -> windows_core::Result; + fn GetCaretRange(&self, isactive: *mut windows_core::BOOL) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl ITextProvider2_Vtbl { @@ -6032,7 +6032,7 @@ impl ITextProvider2_Vtbl { } } } - unsafe extern "system" fn GetCaretRange(this: *mut core::ffi::c_void, isactive: *mut super::super::Foundation::BOOL, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetCaretRange(this: *mut core::ffi::c_void, isactive: *mut windows_core::BOOL, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextProvider2_Impl::GetCaretRange(this, core::mem::transmute_copy(&isactive)) { @@ -6065,7 +6065,7 @@ impl ITextRangeProvider { (windows_core::Interface::vtable(self).Clone)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn Compare(&self, range: P0) -> windows_core::Result + pub unsafe fn Compare(&self, range: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -6167,14 +6167,14 @@ impl ITextRangeProvider { pub struct ITextRangeProvider_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Compare: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Compare: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CompareEndpoints: unsafe extern "system" fn(*mut core::ffi::c_void, TextPatternRangeEndpoint, *mut core::ffi::c_void, TextPatternRangeEndpoint, *mut i32) -> windows_core::HRESULT, pub ExpandToEnclosingUnit: unsafe extern "system" fn(*mut core::ffi::c_void, TextUnit) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] - pub FindAttribute: unsafe extern "system" fn(*mut core::ffi::c_void, UIA_TEXTATTRIBUTE_ID, super::super::System::Variant::VARIANT, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub FindAttribute: unsafe extern "system" fn(*mut core::ffi::c_void, UIA_TEXTATTRIBUTE_ID, super::super::System::Variant::VARIANT, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] FindAttribute: usize, - pub FindText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub FindText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub GetAttributeValue: unsafe extern "system" fn(*mut core::ffi::c_void, UIA_TEXTATTRIBUTE_ID, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -6191,7 +6191,7 @@ pub struct ITextRangeProvider_Vtbl { pub Select: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub AddToSelection: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveFromSelection: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub ScrollIntoView: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ScrollIntoView: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetChildren: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -6200,11 +6200,11 @@ pub struct ITextRangeProvider_Vtbl { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait ITextRangeProvider_Impl: windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; - fn Compare(&self, range: windows_core::Ref) -> windows_core::Result; + fn Compare(&self, range: windows_core::Ref) -> windows_core::Result; fn CompareEndpoints(&self, endpoint: TextPatternRangeEndpoint, targetrange: windows_core::Ref, targetendpoint: TextPatternRangeEndpoint) -> windows_core::Result; fn ExpandToEnclosingUnit(&self, unit: TextUnit) -> windows_core::Result<()>; - fn FindAttribute(&self, attributeid: UIA_TEXTATTRIBUTE_ID, val: &super::super::System::Variant::VARIANT, backward: super::super::Foundation::BOOL) -> windows_core::Result; - fn FindText(&self, text: &windows_core::BSTR, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL) -> windows_core::Result; + fn FindAttribute(&self, attributeid: UIA_TEXTATTRIBUTE_ID, val: &super::super::System::Variant::VARIANT, backward: windows_core::BOOL) -> windows_core::Result; + fn FindText(&self, text: &windows_core::BSTR, backward: windows_core::BOOL, ignorecase: windows_core::BOOL) -> windows_core::Result; fn GetAttributeValue(&self, attributeid: UIA_TEXTATTRIBUTE_ID) -> windows_core::Result; fn GetBoundingRectangles(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; fn GetEnclosingElement(&self) -> windows_core::Result; @@ -6215,7 +6215,7 @@ pub trait ITextRangeProvider_Impl: windows_core::IUnknownImpl { fn Select(&self) -> windows_core::Result<()>; fn AddToSelection(&self) -> windows_core::Result<()>; fn RemoveFromSelection(&self) -> windows_core::Result<()>; - fn ScrollIntoView(&self, aligntotop: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ScrollIntoView(&self, aligntotop: windows_core::BOOL) -> windows_core::Result<()>; fn GetChildren(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -6233,7 +6233,7 @@ impl ITextRangeProvider_Vtbl { } } } - unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, range: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, range: *mut core::ffi::c_void, pretval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRangeProvider_Impl::Compare(this, core::mem::transmute_copy(&range)) { @@ -6263,7 +6263,7 @@ impl ITextRangeProvider_Vtbl { ITextRangeProvider_Impl::ExpandToEnclosingUnit(this, core::mem::transmute_copy(&unit)).into() } } - unsafe extern "system" fn FindAttribute(this: *mut core::ffi::c_void, attributeid: UIA_TEXTATTRIBUTE_ID, val: super::super::System::Variant::VARIANT, backward: super::super::Foundation::BOOL, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn FindAttribute(this: *mut core::ffi::c_void, attributeid: UIA_TEXTATTRIBUTE_ID, val: super::super::System::Variant::VARIANT, backward: windows_core::BOOL, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRangeProvider_Impl::FindAttribute(this, core::mem::transmute_copy(&attributeid), core::mem::transmute(&val), core::mem::transmute_copy(&backward)) { @@ -6275,7 +6275,7 @@ impl ITextRangeProvider_Vtbl { } } } - unsafe extern "system" fn FindText(this: *mut core::ffi::c_void, text: *mut core::ffi::c_void, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn FindText(this: *mut core::ffi::c_void, text: *mut core::ffi::c_void, backward: windows_core::BOOL, ignorecase: windows_core::BOOL, pretval: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextRangeProvider_Impl::FindText(this, core::mem::transmute(&text), core::mem::transmute_copy(&backward), core::mem::transmute_copy(&ignorecase)) { @@ -6383,7 +6383,7 @@ impl ITextRangeProvider_Vtbl { ITextRangeProvider_Impl::RemoveFromSelection(this).into() } } - unsafe extern "system" fn ScrollIntoView(this: *mut core::ffi::c_void, aligntotop: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ScrollIntoView(this: *mut core::ffi::c_void, aligntotop: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextRangeProvider_Impl::ScrollIntoView(this, core::mem::transmute_copy(&aligntotop)).into() @@ -6530,19 +6530,19 @@ impl ITransformProvider { pub unsafe fn Rotate(&self, degrees: f64) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Rotate)(windows_core::Interface::as_raw(self), degrees).ok() } } - pub unsafe fn CanMove(&self) -> windows_core::Result { + pub unsafe fn CanMove(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanMove)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CanResize(&self) -> windows_core::Result { + pub unsafe fn CanResize(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanResize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CanRotate(&self) -> windows_core::Result { + pub unsafe fn CanRotate(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanRotate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6555,17 +6555,17 @@ pub struct ITransformProvider_Vtbl { pub Move: unsafe extern "system" fn(*mut core::ffi::c_void, f64, f64) -> windows_core::HRESULT, pub Resize: unsafe extern "system" fn(*mut core::ffi::c_void, f64, f64) -> windows_core::HRESULT, pub Rotate: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, - pub CanMove: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CanResize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CanRotate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CanMove: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CanResize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CanRotate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITransformProvider_Impl: windows_core::IUnknownImpl { fn Move(&self, x: f64, y: f64) -> windows_core::Result<()>; fn Resize(&self, width: f64, height: f64) -> windows_core::Result<()>; fn Rotate(&self, degrees: f64) -> windows_core::Result<()>; - fn CanMove(&self) -> windows_core::Result; - fn CanResize(&self) -> windows_core::Result; - fn CanRotate(&self) -> windows_core::Result; + fn CanMove(&self) -> windows_core::Result; + fn CanResize(&self) -> windows_core::Result; + fn CanRotate(&self) -> windows_core::Result; } impl ITransformProvider_Vtbl { pub const fn new() -> Self { @@ -6587,7 +6587,7 @@ impl ITransformProvider_Vtbl { ITransformProvider_Impl::Rotate(this, core::mem::transmute_copy(°rees)).into() } } - unsafe extern "system" fn CanMove(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanMove(this: *mut core::ffi::c_void, pretval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransformProvider_Impl::CanMove(this) { @@ -6599,7 +6599,7 @@ impl ITransformProvider_Vtbl { } } } - unsafe extern "system" fn CanResize(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanResize(this: *mut core::ffi::c_void, pretval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransformProvider_Impl::CanResize(this) { @@ -6611,7 +6611,7 @@ impl ITransformProvider_Vtbl { } } } - unsafe extern "system" fn CanRotate(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanRotate(this: *mut core::ffi::c_void, pretval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransformProvider_Impl::CanRotate(this) { @@ -6650,7 +6650,7 @@ impl ITransformProvider2 { pub unsafe fn Zoom(&self, zoom: f64) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Zoom)(windows_core::Interface::as_raw(self), zoom).ok() } } - pub unsafe fn CanZoom(&self) -> windows_core::Result { + pub unsafe fn CanZoom(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanZoom)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6682,7 +6682,7 @@ impl ITransformProvider2 { pub struct ITransformProvider2_Vtbl { pub base__: ITransformProvider_Vtbl, pub Zoom: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, - pub CanZoom: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CanZoom: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub ZoomLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub ZoomMinimum: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub ZoomMaximum: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, @@ -6690,7 +6690,7 @@ pub struct ITransformProvider2_Vtbl { } pub trait ITransformProvider2_Impl: ITransformProvider_Impl { fn Zoom(&self, zoom: f64) -> windows_core::Result<()>; - fn CanZoom(&self) -> windows_core::Result; + fn CanZoom(&self) -> windows_core::Result; fn ZoomLevel(&self) -> windows_core::Result; fn ZoomMinimum(&self) -> windows_core::Result; fn ZoomMaximum(&self) -> windows_core::Result; @@ -6704,7 +6704,7 @@ impl ITransformProvider2_Vtbl { ITransformProvider2_Impl::Zoom(this, core::mem::transmute_copy(&zoom)).into() } } - unsafe extern "system" fn CanZoom(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanZoom(this: *mut core::ffi::c_void, pretval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITransformProvider2_Impl::CanZoom(this) { @@ -6776,7 +6776,7 @@ impl windows_core::RuntimeName for ITransformProvider2 {} windows_core::imp::define_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 + pub unsafe fn CompareElements(&self, el1: P0, el2: P1) -> windows_core::Result where P0: windows_core::Param, P1: windows_core::Param, @@ -6787,7 +6787,7 @@ impl IUIAutomation { } } #[cfg(feature = "Win32_System_Com")] - pub unsafe fn CompareRuntimeIds(&self, runtimeid1: *const super::super::System::Com::SAFEARRAY, runtimeid2: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { + pub unsafe fn CompareRuntimeIds(&self, runtimeid1: *const super::super::System::Com::SAFEARRAY, runtimeid2: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CompareRuntimeIds)(windows_core::Interface::as_raw(self), runtimeid1, runtimeid2, &mut result__).map(|| result__) @@ -7132,7 +7132,7 @@ impl IUIAutomation { unsafe { (windows_core::Interface::vtable(self).PollForPotentialSupportedProperties)(windows_core::Interface::as_raw(self), pelement.param().abi(), propertyids as _, propertynames as _).ok() } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] - pub unsafe fn CheckNotSupported(&self, value: &super::super::System::Variant::VARIANT) -> windows_core::Result { + pub unsafe fn CheckNotSupported(&self, value: &super::super::System::Variant::VARIANT) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CheckNotSupported)(windows_core::Interface::as_raw(self), core::mem::transmute_copy(value), &mut result__).map(|| result__) @@ -7175,9 +7175,9 @@ impl IUIAutomation { #[repr(C)] pub struct IUIAutomation_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub CompareElements: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CompareElements: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub CompareRuntimeIds: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::System::Com::SAFEARRAY, *const super::super::System::Com::SAFEARRAY, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CompareRuntimeIds: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::System::Com::SAFEARRAY, *const super::super::System::Com::SAFEARRAY, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CompareRuntimeIds: usize, pub GetRootElement: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -7265,7 +7265,7 @@ pub struct IUIAutomation_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] PollForPotentialSupportedProperties: usize, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] - pub CheckNotSupported: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::System::Variant::VARIANT, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CheckNotSupported: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::System::Variant::VARIANT, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] CheckNotSupported: usize, pub ReservedNotSupportedValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -7281,8 +7281,8 @@ pub struct IUIAutomation_Vtbl { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IUIAutomation_Impl: windows_core::IUnknownImpl { - fn CompareElements(&self, el1: windows_core::Ref, el2: windows_core::Ref) -> windows_core::Result; - fn CompareRuntimeIds(&self, runtimeid1: *const super::super::System::Com::SAFEARRAY, runtimeid2: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result; + fn CompareElements(&self, el1: windows_core::Ref, el2: windows_core::Ref) -> windows_core::Result; + fn CompareRuntimeIds(&self, runtimeid1: *const super::super::System::Com::SAFEARRAY, runtimeid2: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result; fn GetRootElement(&self) -> windows_core::Result; fn ElementFromHandle(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result; fn ElementFromPoint(&self, pt: &super::super::Foundation::POINT) -> windows_core::Result; @@ -7331,7 +7331,7 @@ pub trait IUIAutomation_Impl: windows_core::IUnknownImpl { fn GetPatternProgrammaticName(&self, pattern: UIA_PATTERN_ID) -> windows_core::Result; fn PollForPotentialSupportedPatterns(&self, pelement: windows_core::Ref, patternids: *mut *mut super::super::System::Com::SAFEARRAY, patternnames: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()>; fn PollForPotentialSupportedProperties(&self, pelement: windows_core::Ref, propertyids: *mut *mut super::super::System::Com::SAFEARRAY, propertynames: *mut *mut super::super::System::Com::SAFEARRAY) -> windows_core::Result<()>; - fn CheckNotSupported(&self, value: &super::super::System::Variant::VARIANT) -> windows_core::Result; + fn CheckNotSupported(&self, value: &super::super::System::Variant::VARIANT) -> windows_core::Result; fn ReservedNotSupportedValue(&self) -> windows_core::Result; fn ReservedMixedAttributeValue(&self) -> windows_core::Result; fn ElementFromIAccessible(&self, accessible: windows_core::Ref, childid: i32) -> windows_core::Result; @@ -7340,7 +7340,7 @@ pub trait IUIAutomation_Impl: windows_core::IUnknownImpl { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IUIAutomation_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CompareElements(this: *mut core::ffi::c_void, el1: *mut core::ffi::c_void, el2: *mut core::ffi::c_void, aresame: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CompareElements(this: *mut core::ffi::c_void, el1: *mut core::ffi::c_void, el2: *mut core::ffi::c_void, aresame: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CompareElements(this, core::mem::transmute_copy(&el1), core::mem::transmute_copy(&el2)) { @@ -7352,7 +7352,7 @@ impl IUIAutomation_Vtbl { } } } - unsafe extern "system" fn CompareRuntimeIds(this: *mut core::ffi::c_void, runtimeid1: *const super::super::System::Com::SAFEARRAY, runtimeid2: *const super::super::System::Com::SAFEARRAY, aresame: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CompareRuntimeIds(this: *mut core::ffi::c_void, runtimeid1: *const super::super::System::Com::SAFEARRAY, runtimeid2: *const super::super::System::Com::SAFEARRAY, aresame: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CompareRuntimeIds(this, core::mem::transmute_copy(&runtimeid1), core::mem::transmute_copy(&runtimeid2)) { @@ -7868,7 +7868,7 @@ impl IUIAutomation_Vtbl { IUIAutomation_Impl::PollForPotentialSupportedProperties(this, core::mem::transmute_copy(&pelement), core::mem::transmute_copy(&propertyids), core::mem::transmute_copy(&propertynames)).into() } } - unsafe extern "system" fn CheckNotSupported(this: *mut core::ffi::c_void, value: super::super::System::Variant::VARIANT, isnotsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CheckNotSupported(this: *mut core::ffi::c_void, value: super::super::System::Variant::VARIANT, isnotsupported: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation_Impl::CheckNotSupported(this, core::mem::transmute(&value)) { @@ -8002,7 +8002,7 @@ impl core::ops::Deref for IUIAutomation2 { } windows_core::imp::interface_hierarchy!(IUIAutomation2, windows_core::IUnknown, IUIAutomation); impl IUIAutomation2 { - pub unsafe fn AutoSetFocus(&self) -> windows_core::Result { + pub unsafe fn AutoSetFocus(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AutoSetFocus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -8033,8 +8033,8 @@ impl IUIAutomation2 { #[repr(C)] pub struct IUIAutomation2_Vtbl { pub base__: IUIAutomation_Vtbl, - pub AutoSetFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetAutoSetFocus: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AutoSetFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetAutoSetFocus: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub ConnectionTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetConnectionTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub TransactionTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -8042,8 +8042,8 @@ pub struct IUIAutomation2_Vtbl { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IUIAutomation2_Impl: IUIAutomation_Impl { - fn AutoSetFocus(&self) -> windows_core::Result; - fn SetAutoSetFocus(&self, autosetfocus: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn AutoSetFocus(&self) -> windows_core::Result; + fn SetAutoSetFocus(&self, autosetfocus: windows_core::BOOL) -> windows_core::Result<()>; fn ConnectionTimeout(&self) -> windows_core::Result; fn SetConnectionTimeout(&self, timeout: u32) -> windows_core::Result<()>; fn TransactionTimeout(&self) -> windows_core::Result; @@ -8052,7 +8052,7 @@ pub trait IUIAutomation2_Impl: IUIAutomation_Impl { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IUIAutomation2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn AutoSetFocus(this: *mut core::ffi::c_void, autosetfocus: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AutoSetFocus(this: *mut core::ffi::c_void, autosetfocus: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomation2_Impl::AutoSetFocus(this) { @@ -8064,7 +8064,7 @@ impl IUIAutomation2_Vtbl { } } } - unsafe extern "system" fn SetAutoSetFocus(this: *mut core::ffi::c_void, autosetfocus: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAutoSetFocus(this: *mut core::ffi::c_void, autosetfocus: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomation2_Impl::SetAutoSetFocus(this, core::mem::transmute_copy(&autosetfocus)).into() @@ -8858,7 +8858,7 @@ impl core::ops::Deref for IUIAutomationBoolCondition { } windows_core::imp::interface_hierarchy!(IUIAutomationBoolCondition, windows_core::IUnknown, IUIAutomationCondition); impl IUIAutomationBoolCondition { - pub unsafe fn BooleanValue(&self) -> windows_core::Result { + pub unsafe fn BooleanValue(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).BooleanValue)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -8868,14 +8868,14 @@ impl IUIAutomationBoolCondition { #[repr(C)] pub struct IUIAutomationBoolCondition_Vtbl { pub base__: IUIAutomationCondition_Vtbl, - pub BooleanValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub BooleanValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IUIAutomationBoolCondition_Impl: IUIAutomationCondition_Impl { - fn BooleanValue(&self) -> windows_core::Result; + fn BooleanValue(&self) -> windows_core::Result; } impl IUIAutomationBoolCondition_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn BooleanValue(this: *mut core::ffi::c_void, boolval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn BooleanValue(this: *mut core::ffi::c_void, boolval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationBoolCondition_Impl::BooleanValue(this) { @@ -9235,13 +9235,13 @@ impl windows_core::RuntimeName for IUIAutomationDockPattern {} windows_core::imp::define_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 { + pub unsafe fn CurrentIsGrabbed(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentIsGrabbed)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedIsGrabbed(&self) -> windows_core::Result { + pub unsafe fn CachedIsGrabbed(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedIsGrabbed)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9289,8 +9289,8 @@ impl IUIAutomationDragPattern { #[repr(C)] pub struct IUIAutomationDragPattern_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub CurrentIsGrabbed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CachedIsGrabbed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CurrentIsGrabbed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CachedIsGrabbed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CurrentDropEffect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CachedDropEffect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -9306,8 +9306,8 @@ pub struct IUIAutomationDragPattern_Vtbl { } #[cfg(feature = "Win32_System_Com")] pub trait IUIAutomationDragPattern_Impl: windows_core::IUnknownImpl { - fn CurrentIsGrabbed(&self) -> windows_core::Result; - fn CachedIsGrabbed(&self) -> windows_core::Result; + fn CurrentIsGrabbed(&self) -> windows_core::Result; + fn CachedIsGrabbed(&self) -> windows_core::Result; fn CurrentDropEffect(&self) -> windows_core::Result; fn CachedDropEffect(&self) -> windows_core::Result; fn CurrentDropEffects(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; @@ -9318,7 +9318,7 @@ pub trait IUIAutomationDragPattern_Impl: windows_core::IUnknownImpl { #[cfg(feature = "Win32_System_Com")] impl IUIAutomationDragPattern_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CurrentIsGrabbed(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentIsGrabbed(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationDragPattern_Impl::CurrentIsGrabbed(this) { @@ -9330,7 +9330,7 @@ impl IUIAutomationDragPattern_Vtbl { } } } - unsafe extern "system" fn CachedIsGrabbed(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedIsGrabbed(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationDragPattern_Impl::CachedIsGrabbed(this) { @@ -9710,19 +9710,19 @@ impl IUIAutomationElement { (windows_core::Interface::vtable(self).CurrentAccessKey)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn CurrentHasKeyboardFocus(&self) -> windows_core::Result { + pub unsafe fn CurrentHasKeyboardFocus(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentHasKeyboardFocus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CurrentIsKeyboardFocusable(&self) -> windows_core::Result { + pub unsafe fn CurrentIsKeyboardFocusable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentIsKeyboardFocusable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CurrentIsEnabled(&self) -> windows_core::Result { + pub unsafe fn CurrentIsEnabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentIsEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9752,19 +9752,19 @@ impl IUIAutomationElement { (windows_core::Interface::vtable(self).CurrentCulture)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CurrentIsControlElement(&self) -> windows_core::Result { + pub unsafe fn CurrentIsControlElement(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentIsControlElement)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CurrentIsContentElement(&self) -> windows_core::Result { + pub unsafe fn CurrentIsContentElement(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentIsContentElement)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CurrentIsPassword(&self) -> windows_core::Result { + pub unsafe fn CurrentIsPassword(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentIsPassword)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9782,7 +9782,7 @@ impl IUIAutomationElement { (windows_core::Interface::vtable(self).CurrentItemType)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn CurrentIsOffscreen(&self) -> windows_core::Result { + pub unsafe fn CurrentIsOffscreen(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentIsOffscreen)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9800,7 +9800,7 @@ impl IUIAutomationElement { (windows_core::Interface::vtable(self).CurrentFrameworkId)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn CurrentIsRequiredForForm(&self) -> windows_core::Result { + pub unsafe fn CurrentIsRequiredForForm(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentIsRequiredForForm)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9836,7 +9836,7 @@ impl IUIAutomationElement { (windows_core::Interface::vtable(self).CurrentAriaProperties)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn CurrentIsDataValidForForm(&self) -> windows_core::Result { + pub unsafe fn CurrentIsDataValidForForm(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentIsDataValidForForm)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9902,19 +9902,19 @@ impl IUIAutomationElement { (windows_core::Interface::vtable(self).CachedAccessKey)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn CachedHasKeyboardFocus(&self) -> windows_core::Result { + pub unsafe fn CachedHasKeyboardFocus(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedHasKeyboardFocus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedIsKeyboardFocusable(&self) -> windows_core::Result { + pub unsafe fn CachedIsKeyboardFocusable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedIsKeyboardFocusable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedIsEnabled(&self) -> windows_core::Result { + pub unsafe fn CachedIsEnabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedIsEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9944,19 +9944,19 @@ impl IUIAutomationElement { (windows_core::Interface::vtable(self).CachedCulture)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedIsControlElement(&self) -> windows_core::Result { + pub unsafe fn CachedIsControlElement(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedIsControlElement)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedIsContentElement(&self) -> windows_core::Result { + pub unsafe fn CachedIsContentElement(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedIsContentElement)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedIsPassword(&self) -> windows_core::Result { + pub unsafe fn CachedIsPassword(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedIsPassword)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9974,7 +9974,7 @@ impl IUIAutomationElement { (windows_core::Interface::vtable(self).CachedItemType)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn CachedIsOffscreen(&self) -> windows_core::Result { + pub unsafe fn CachedIsOffscreen(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedIsOffscreen)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9992,7 +9992,7 @@ impl IUIAutomationElement { (windows_core::Interface::vtable(self).CachedFrameworkId)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn CachedIsRequiredForForm(&self) -> windows_core::Result { + pub unsafe fn CachedIsRequiredForForm(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedIsRequiredForForm)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -10028,7 +10028,7 @@ impl IUIAutomationElement { (windows_core::Interface::vtable(self).CachedAriaProperties)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn CachedIsDataValidForForm(&self) -> windows_core::Result { + pub unsafe fn CachedIsDataValidForForm(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedIsDataValidForForm)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -10058,7 +10058,7 @@ impl IUIAutomationElement { (windows_core::Interface::vtable(self).CachedProviderDescription)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn GetClickablePoint(&self, clickable: *mut super::super::Foundation::POINT) -> windows_core::Result { + pub unsafe fn GetClickablePoint(&self, clickable: *mut super::super::Foundation::POINT) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetClickablePoint)(windows_core::Interface::as_raw(self), clickable as _, &mut result__).map(|| result__) @@ -10083,7 +10083,7 @@ pub struct IUIAutomationElement_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetCurrentPropertyValue: usize, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] - pub GetCurrentPropertyValueEx: unsafe extern "system" fn(*mut core::ffi::c_void, UIA_PROPERTY_ID, super::super::Foundation::BOOL, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, + pub GetCurrentPropertyValueEx: unsafe extern "system" fn(*mut core::ffi::c_void, UIA_PROPERTY_ID, windows_core::BOOL, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetCurrentPropertyValueEx: usize, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -10091,7 +10091,7 @@ pub struct IUIAutomationElement_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetCachedPropertyValue: usize, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] - pub GetCachedPropertyValueEx: unsafe extern "system" fn(*mut core::ffi::c_void, UIA_PROPERTY_ID, super::super::Foundation::BOOL, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, + pub GetCachedPropertyValueEx: unsafe extern "system" fn(*mut core::ffi::c_void, UIA_PROPERTY_ID, windows_core::BOOL, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetCachedPropertyValueEx: usize, pub GetCurrentPatternAs: unsafe extern "system" fn(*mut core::ffi::c_void, UIA_PATTERN_ID, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -10106,28 +10106,28 @@ pub struct IUIAutomationElement_Vtbl { pub CurrentName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CurrentAcceleratorKey: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CurrentAccessKey: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CurrentHasKeyboardFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CurrentIsKeyboardFocusable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CurrentIsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CurrentHasKeyboardFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CurrentIsKeyboardFocusable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CurrentIsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CurrentAutomationId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CurrentClassName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CurrentHelpText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CurrentCulture: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - pub CurrentIsControlElement: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CurrentIsContentElement: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CurrentIsPassword: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CurrentIsControlElement: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CurrentIsContentElement: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CurrentIsPassword: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CurrentNativeWindowHandle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::HWND) -> windows_core::HRESULT, pub CurrentItemType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CurrentIsOffscreen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CurrentIsOffscreen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CurrentOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut OrientationType) -> windows_core::HRESULT, pub CurrentFrameworkId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CurrentIsRequiredForForm: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CurrentIsRequiredForForm: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CurrentItemStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CurrentBoundingRectangle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::RECT) -> windows_core::HRESULT, pub CurrentLabeledBy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CurrentAriaRole: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CurrentAriaProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CurrentIsDataValidForForm: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CurrentIsDataValidForForm: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CurrentControllerFor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CurrentDescribedBy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CurrentFlowsTo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -10138,33 +10138,33 @@ pub struct IUIAutomationElement_Vtbl { pub CachedName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CachedAcceleratorKey: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CachedAccessKey: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CachedHasKeyboardFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CachedIsKeyboardFocusable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CachedIsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CachedHasKeyboardFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CachedIsKeyboardFocusable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CachedIsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CachedAutomationId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CachedClassName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CachedHelpText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CachedCulture: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - pub CachedIsControlElement: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CachedIsContentElement: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CachedIsPassword: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CachedIsControlElement: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CachedIsContentElement: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CachedIsPassword: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CachedNativeWindowHandle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::HWND) -> windows_core::HRESULT, pub CachedItemType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CachedIsOffscreen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CachedIsOffscreen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CachedOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut OrientationType) -> windows_core::HRESULT, pub CachedFrameworkId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CachedIsRequiredForForm: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CachedIsRequiredForForm: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CachedItemStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CachedBoundingRectangle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::RECT) -> windows_core::HRESULT, pub CachedLabeledBy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CachedAriaRole: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CachedAriaProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CachedIsDataValidForForm: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CachedIsDataValidForForm: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CachedControllerFor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CachedDescribedBy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CachedFlowsTo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CachedProviderDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetClickablePoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::POINT, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetClickablePoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::POINT, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IUIAutomationElement_Impl: windows_core::IUnknownImpl { @@ -10176,9 +10176,9 @@ pub trait IUIAutomationElement_Impl: windows_core::IUnknownImpl { fn FindAllBuildCache(&self, scope: TreeScope, condition: windows_core::Ref, cacherequest: windows_core::Ref) -> windows_core::Result; fn BuildUpdatedCache(&self, cacherequest: windows_core::Ref) -> windows_core::Result; fn GetCurrentPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result; - fn GetCurrentPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: super::super::Foundation::BOOL) -> windows_core::Result; + fn GetCurrentPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: windows_core::BOOL) -> windows_core::Result; fn GetCachedPropertyValue(&self, propertyid: UIA_PROPERTY_ID) -> windows_core::Result; - fn GetCachedPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: super::super::Foundation::BOOL) -> windows_core::Result; + fn GetCachedPropertyValueEx(&self, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: windows_core::BOOL) -> windows_core::Result; fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID, riid: *const windows_core::GUID, patternobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetCachedPatternAs(&self, patternid: UIA_PATTERN_ID, riid: *const windows_core::GUID, patternobject: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetCurrentPattern(&self, patternid: UIA_PATTERN_ID) -> windows_core::Result; @@ -10191,28 +10191,28 @@ pub trait IUIAutomationElement_Impl: windows_core::IUnknownImpl { fn CurrentName(&self) -> windows_core::Result; fn CurrentAcceleratorKey(&self) -> windows_core::Result; fn CurrentAccessKey(&self) -> windows_core::Result; - fn CurrentHasKeyboardFocus(&self) -> windows_core::Result; - fn CurrentIsKeyboardFocusable(&self) -> windows_core::Result; - fn CurrentIsEnabled(&self) -> windows_core::Result; + fn CurrentHasKeyboardFocus(&self) -> windows_core::Result; + fn CurrentIsKeyboardFocusable(&self) -> windows_core::Result; + fn CurrentIsEnabled(&self) -> windows_core::Result; fn CurrentAutomationId(&self) -> windows_core::Result; fn CurrentClassName(&self) -> windows_core::Result; fn CurrentHelpText(&self) -> windows_core::Result; fn CurrentCulture(&self) -> windows_core::Result; - fn CurrentIsControlElement(&self) -> windows_core::Result; - fn CurrentIsContentElement(&self) -> windows_core::Result; - fn CurrentIsPassword(&self) -> windows_core::Result; + fn CurrentIsControlElement(&self) -> windows_core::Result; + fn CurrentIsContentElement(&self) -> windows_core::Result; + fn CurrentIsPassword(&self) -> windows_core::Result; fn CurrentNativeWindowHandle(&self) -> windows_core::Result; fn CurrentItemType(&self) -> windows_core::Result; - fn CurrentIsOffscreen(&self) -> windows_core::Result; + fn CurrentIsOffscreen(&self) -> windows_core::Result; fn CurrentOrientation(&self) -> windows_core::Result; fn CurrentFrameworkId(&self) -> windows_core::Result; - fn CurrentIsRequiredForForm(&self) -> windows_core::Result; + fn CurrentIsRequiredForForm(&self) -> windows_core::Result; fn CurrentItemStatus(&self) -> windows_core::Result; fn CurrentBoundingRectangle(&self) -> windows_core::Result; fn CurrentLabeledBy(&self) -> windows_core::Result; fn CurrentAriaRole(&self) -> windows_core::Result; fn CurrentAriaProperties(&self) -> windows_core::Result; - fn CurrentIsDataValidForForm(&self) -> windows_core::Result; + fn CurrentIsDataValidForForm(&self) -> windows_core::Result; fn CurrentControllerFor(&self) -> windows_core::Result; fn CurrentDescribedBy(&self) -> windows_core::Result; fn CurrentFlowsTo(&self) -> windows_core::Result; @@ -10223,33 +10223,33 @@ pub trait IUIAutomationElement_Impl: windows_core::IUnknownImpl { fn CachedName(&self) -> windows_core::Result; fn CachedAcceleratorKey(&self) -> windows_core::Result; fn CachedAccessKey(&self) -> windows_core::Result; - fn CachedHasKeyboardFocus(&self) -> windows_core::Result; - fn CachedIsKeyboardFocusable(&self) -> windows_core::Result; - fn CachedIsEnabled(&self) -> windows_core::Result; + fn CachedHasKeyboardFocus(&self) -> windows_core::Result; + fn CachedIsKeyboardFocusable(&self) -> windows_core::Result; + fn CachedIsEnabled(&self) -> windows_core::Result; fn CachedAutomationId(&self) -> windows_core::Result; fn CachedClassName(&self) -> windows_core::Result; fn CachedHelpText(&self) -> windows_core::Result; fn CachedCulture(&self) -> windows_core::Result; - fn CachedIsControlElement(&self) -> windows_core::Result; - fn CachedIsContentElement(&self) -> windows_core::Result; - fn CachedIsPassword(&self) -> windows_core::Result; + fn CachedIsControlElement(&self) -> windows_core::Result; + fn CachedIsContentElement(&self) -> windows_core::Result; + fn CachedIsPassword(&self) -> windows_core::Result; fn CachedNativeWindowHandle(&self) -> windows_core::Result; fn CachedItemType(&self) -> windows_core::Result; - fn CachedIsOffscreen(&self) -> windows_core::Result; + fn CachedIsOffscreen(&self) -> windows_core::Result; fn CachedOrientation(&self) -> windows_core::Result; fn CachedFrameworkId(&self) -> windows_core::Result; - fn CachedIsRequiredForForm(&self) -> windows_core::Result; + fn CachedIsRequiredForForm(&self) -> windows_core::Result; fn CachedItemStatus(&self) -> windows_core::Result; fn CachedBoundingRectangle(&self) -> windows_core::Result; fn CachedLabeledBy(&self) -> windows_core::Result; fn CachedAriaRole(&self) -> windows_core::Result; fn CachedAriaProperties(&self) -> windows_core::Result; - fn CachedIsDataValidForForm(&self) -> windows_core::Result; + fn CachedIsDataValidForForm(&self) -> windows_core::Result; fn CachedControllerFor(&self) -> windows_core::Result; fn CachedDescribedBy(&self) -> windows_core::Result; fn CachedFlowsTo(&self) -> windows_core::Result; fn CachedProviderDescription(&self) -> windows_core::Result; - fn GetClickablePoint(&self, clickable: *mut super::super::Foundation::POINT) -> windows_core::Result; + fn GetClickablePoint(&self, clickable: *mut super::super::Foundation::POINT) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IUIAutomationElement_Vtbl { @@ -10344,7 +10344,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn GetCurrentPropertyValueEx(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: super::super::Foundation::BOOL, retval: *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT { + unsafe extern "system" fn GetCurrentPropertyValueEx(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: windows_core::BOOL, retval: *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::GetCurrentPropertyValueEx(this, core::mem::transmute_copy(&propertyid), core::mem::transmute_copy(&ignoredefaultvalue)) { @@ -10368,7 +10368,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn GetCachedPropertyValueEx(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: super::super::Foundation::BOOL, retval: *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT { + unsafe extern "system" fn GetCachedPropertyValueEx(this: *mut core::ffi::c_void, propertyid: UIA_PROPERTY_ID, ignoredefaultvalue: windows_core::BOOL, retval: *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::GetCachedPropertyValueEx(this, core::mem::transmute_copy(&propertyid), core::mem::transmute_copy(&ignoredefaultvalue)) { @@ -10512,7 +10512,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn CurrentHasKeyboardFocus(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentHasKeyboardFocus(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentHasKeyboardFocus(this) { @@ -10524,7 +10524,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn CurrentIsKeyboardFocusable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentIsKeyboardFocusable(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentIsKeyboardFocusable(this) { @@ -10536,7 +10536,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn CurrentIsEnabled(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentIsEnabled(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentIsEnabled(this) { @@ -10596,7 +10596,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn CurrentIsControlElement(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentIsControlElement(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentIsControlElement(this) { @@ -10608,7 +10608,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn CurrentIsContentElement(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentIsContentElement(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentIsContentElement(this) { @@ -10620,7 +10620,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn CurrentIsPassword(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentIsPassword(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentIsPassword(this) { @@ -10656,7 +10656,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn CurrentIsOffscreen(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentIsOffscreen(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentIsOffscreen(this) { @@ -10692,7 +10692,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn CurrentIsRequiredForForm(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentIsRequiredForForm(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentIsRequiredForForm(this) { @@ -10764,7 +10764,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn CurrentIsDataValidForForm(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentIsDataValidForForm(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CurrentIsDataValidForForm(this) { @@ -10896,7 +10896,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn CachedHasKeyboardFocus(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedHasKeyboardFocus(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedHasKeyboardFocus(this) { @@ -10908,7 +10908,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn CachedIsKeyboardFocusable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedIsKeyboardFocusable(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedIsKeyboardFocusable(this) { @@ -10920,7 +10920,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn CachedIsEnabled(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedIsEnabled(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedIsEnabled(this) { @@ -10980,7 +10980,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn CachedIsControlElement(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedIsControlElement(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedIsControlElement(this) { @@ -10992,7 +10992,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn CachedIsContentElement(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedIsContentElement(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedIsContentElement(this) { @@ -11004,7 +11004,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn CachedIsPassword(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedIsPassword(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedIsPassword(this) { @@ -11040,7 +11040,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn CachedIsOffscreen(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedIsOffscreen(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedIsOffscreen(this) { @@ -11076,7 +11076,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn CachedIsRequiredForForm(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedIsRequiredForForm(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedIsRequiredForForm(this) { @@ -11148,7 +11148,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn CachedIsDataValidForForm(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedIsDataValidForForm(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::CachedIsDataValidForForm(this) { @@ -11208,7 +11208,7 @@ impl IUIAutomationElement_Vtbl { } } } - unsafe extern "system" fn GetClickablePoint(this: *mut core::ffi::c_void, clickable: *mut super::super::Foundation::POINT, gotclickable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetClickablePoint(this: *mut core::ffi::c_void, clickable: *mut super::super::Foundation::POINT, gotclickable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement_Impl::GetClickablePoint(this, core::mem::transmute_copy(&clickable)) { @@ -11321,13 +11321,13 @@ impl core::ops::Deref for IUIAutomationElement2 { } windows_core::imp::interface_hierarchy!(IUIAutomationElement2, windows_core::IUnknown, IUIAutomationElement); impl IUIAutomationElement2 { - pub unsafe fn CurrentOptimizeForVisualContent(&self) -> windows_core::Result { + pub unsafe fn CurrentOptimizeForVisualContent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentOptimizeForVisualContent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedOptimizeForVisualContent(&self) -> windows_core::Result { + pub unsafe fn CachedOptimizeForVisualContent(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedOptimizeForVisualContent)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -11361,8 +11361,8 @@ impl IUIAutomationElement2 { #[repr(C)] pub struct IUIAutomationElement2_Vtbl { pub base__: IUIAutomationElement_Vtbl, - pub CurrentOptimizeForVisualContent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CachedOptimizeForVisualContent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CurrentOptimizeForVisualContent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CachedOptimizeForVisualContent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CurrentLiveSetting: unsafe extern "system" fn(*mut core::ffi::c_void, *mut LiveSetting) -> windows_core::HRESULT, pub CachedLiveSetting: unsafe extern "system" fn(*mut core::ffi::c_void, *mut LiveSetting) -> windows_core::HRESULT, pub CurrentFlowsFrom: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -11370,8 +11370,8 @@ pub struct IUIAutomationElement2_Vtbl { } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IUIAutomationElement2_Impl: IUIAutomationElement_Impl { - fn CurrentOptimizeForVisualContent(&self) -> windows_core::Result; - fn CachedOptimizeForVisualContent(&self) -> windows_core::Result; + fn CurrentOptimizeForVisualContent(&self) -> windows_core::Result; + fn CachedOptimizeForVisualContent(&self) -> windows_core::Result; fn CurrentLiveSetting(&self) -> windows_core::Result; fn CachedLiveSetting(&self) -> windows_core::Result; fn CurrentFlowsFrom(&self) -> windows_core::Result; @@ -11380,7 +11380,7 @@ pub trait IUIAutomationElement2_Impl: IUIAutomationElement_Impl { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IUIAutomationElement2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CurrentOptimizeForVisualContent(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentOptimizeForVisualContent(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement2_Impl::CurrentOptimizeForVisualContent(this) { @@ -11392,7 +11392,7 @@ impl IUIAutomationElement2_Vtbl { } } } - unsafe extern "system" fn CachedOptimizeForVisualContent(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedOptimizeForVisualContent(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement2_Impl::CachedOptimizeForVisualContent(this) { @@ -11480,13 +11480,13 @@ impl IUIAutomationElement3 { pub unsafe fn ShowContextMenu(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).ShowContextMenu)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn CurrentIsPeripheral(&self) -> windows_core::Result { + pub unsafe fn CurrentIsPeripheral(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentIsPeripheral)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedIsPeripheral(&self) -> windows_core::Result { + pub unsafe fn CachedIsPeripheral(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedIsPeripheral)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -11497,14 +11497,14 @@ impl IUIAutomationElement3 { pub struct IUIAutomationElement3_Vtbl { pub base__: IUIAutomationElement2_Vtbl, pub ShowContextMenu: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub CurrentIsPeripheral: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CachedIsPeripheral: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CurrentIsPeripheral: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CachedIsPeripheral: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IUIAutomationElement3_Impl: IUIAutomationElement2_Impl { fn ShowContextMenu(&self) -> windows_core::Result<()>; - fn CurrentIsPeripheral(&self) -> windows_core::Result; - fn CachedIsPeripheral(&self) -> windows_core::Result; + fn CurrentIsPeripheral(&self) -> windows_core::Result; + fn CachedIsPeripheral(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IUIAutomationElement3_Vtbl { @@ -11515,7 +11515,7 @@ impl IUIAutomationElement3_Vtbl { IUIAutomationElement3_Impl::ShowContextMenu(this).into() } } - unsafe extern "system" fn CurrentIsPeripheral(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentIsPeripheral(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement3_Impl::CurrentIsPeripheral(this) { @@ -11527,7 +11527,7 @@ impl IUIAutomationElement3_Vtbl { } } } - unsafe extern "system" fn CachedIsPeripheral(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedIsPeripheral(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement3_Impl::CachedIsPeripheral(this) { @@ -12224,13 +12224,13 @@ impl core::ops::Deref for IUIAutomationElement9 { } windows_core::imp::interface_hierarchy!(IUIAutomationElement9, windows_core::IUnknown, IUIAutomationElement, IUIAutomationElement2, IUIAutomationElement3, IUIAutomationElement4, IUIAutomationElement5, IUIAutomationElement6, IUIAutomationElement7, IUIAutomationElement8); impl IUIAutomationElement9 { - pub unsafe fn CurrentIsDialog(&self) -> windows_core::Result { + pub unsafe fn CurrentIsDialog(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentIsDialog)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedIsDialog(&self) -> windows_core::Result { + pub unsafe fn CachedIsDialog(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedIsDialog)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -12240,18 +12240,18 @@ impl IUIAutomationElement9 { #[repr(C)] pub struct IUIAutomationElement9_Vtbl { pub base__: IUIAutomationElement8_Vtbl, - pub CurrentIsDialog: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CachedIsDialog: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CurrentIsDialog: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CachedIsDialog: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IUIAutomationElement9_Impl: IUIAutomationElement8_Impl { - fn CurrentIsDialog(&self) -> windows_core::Result; - fn CachedIsDialog(&self) -> windows_core::Result; + fn CurrentIsDialog(&self) -> windows_core::Result; + fn CachedIsDialog(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IUIAutomationElement9_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CurrentIsDialog(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentIsDialog(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement9_Impl::CurrentIsDialog(this) { @@ -12263,7 +12263,7 @@ impl IUIAutomationElement9_Vtbl { } } } - unsafe extern "system" fn CachedIsDialog(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedIsDialog(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationElement9_Impl::CachedIsDialog(this) { @@ -14003,16 +14003,16 @@ impl IUIAutomationPatternInstance { #[repr(C)] pub struct IUIAutomationPatternInstance_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL, UIAutomationType, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetProperty: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL, UIAutomationType, *mut core::ffi::c_void) -> windows_core::HRESULT, pub CallMethod: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const UIAutomationParameter, u32) -> windows_core::HRESULT, } pub trait IUIAutomationPatternInstance_Impl: windows_core::IUnknownImpl { - fn GetProperty(&self, index: u32, cached: super::super::Foundation::BOOL, r#type: UIAutomationType, pptr: *mut core::ffi::c_void) -> windows_core::Result<()>; + fn GetProperty(&self, index: u32, cached: windows_core::BOOL, r#type: UIAutomationType, pptr: *mut core::ffi::c_void) -> windows_core::Result<()>; fn CallMethod(&self, index: u32, pparams: *const UIAutomationParameter, cparams: u32) -> windows_core::Result<()>; } impl IUIAutomationPatternInstance_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, index: u32, cached: super::super::Foundation::BOOL, r#type: UIAutomationType, pptr: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetProperty(this: *mut core::ffi::c_void, index: u32, cached: windows_core::BOOL, r#type: UIAutomationType, pptr: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationPatternInstance_Impl::GetProperty(this, core::mem::transmute_copy(&index), core::mem::transmute_copy(&cached), core::mem::transmute_copy(&r#type), core::mem::transmute_copy(&pptr)).into() @@ -14256,19 +14256,19 @@ impl IUIAutomationProxyFactoryEntry { (windows_core::Interface::vtable(self).ImageName)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn AllowSubstringMatch(&self) -> windows_core::Result { + pub unsafe fn AllowSubstringMatch(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AllowSubstringMatch)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CanCheckBaseClass(&self) -> windows_core::Result { + pub unsafe fn CanCheckBaseClass(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanCheckBaseClass)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn NeedsAdviseEvents(&self) -> windows_core::Result { + pub unsafe fn NeedsAdviseEvents(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).NeedsAdviseEvents)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -14313,14 +14313,14 @@ pub struct IUIAutomationProxyFactoryEntry_Vtbl { pub ProxyFactory: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ClassName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ImageName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub AllowSubstringMatch: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CanCheckBaseClass: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub NeedsAdviseEvents: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AllowSubstringMatch: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CanCheckBaseClass: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub NeedsAdviseEvents: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetClassName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub SetImageName: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, - pub SetAllowSubstringMatch: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetCanCheckBaseClass: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetNeedsAdviseEvents: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetAllowSubstringMatch: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub SetCanCheckBaseClass: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub SetNeedsAdviseEvents: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SetWinEventsForAutomationEvent: unsafe extern "system" fn(*mut core::ffi::c_void, UIA_EVENT_ID, UIA_PROPERTY_ID, *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -14335,14 +14335,14 @@ pub trait IUIAutomationProxyFactoryEntry_Impl: windows_core::IUnknownImpl { fn ProxyFactory(&self) -> windows_core::Result; fn ClassName(&self) -> windows_core::Result; fn ImageName(&self) -> windows_core::Result; - fn AllowSubstringMatch(&self) -> windows_core::Result; - fn CanCheckBaseClass(&self) -> windows_core::Result; - fn NeedsAdviseEvents(&self) -> windows_core::Result; + fn AllowSubstringMatch(&self) -> windows_core::Result; + fn CanCheckBaseClass(&self) -> windows_core::Result; + fn NeedsAdviseEvents(&self) -> windows_core::Result; fn SetClassName(&self, classname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetImageName(&self, imagename: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn SetAllowSubstringMatch(&self, allowsubstringmatch: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetCanCheckBaseClass(&self, cancheckbaseclass: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetNeedsAdviseEvents(&self, adviseevents: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetAllowSubstringMatch(&self, allowsubstringmatch: windows_core::BOOL) -> windows_core::Result<()>; + fn SetCanCheckBaseClass(&self, cancheckbaseclass: windows_core::BOOL) -> windows_core::Result<()>; + fn SetNeedsAdviseEvents(&self, adviseevents: windows_core::BOOL) -> windows_core::Result<()>; fn SetWinEventsForAutomationEvent(&self, eventid: UIA_EVENT_ID, propertyid: UIA_PROPERTY_ID, winevents: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()>; fn GetWinEventsForAutomationEvent(&self, eventid: UIA_EVENT_ID, propertyid: UIA_PROPERTY_ID) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; } @@ -14385,7 +14385,7 @@ impl IUIAutomationProxyFactoryEntry_Vtbl { } } } - unsafe extern "system" fn AllowSubstringMatch(this: *mut core::ffi::c_void, allowsubstringmatch: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AllowSubstringMatch(this: *mut core::ffi::c_void, allowsubstringmatch: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationProxyFactoryEntry_Impl::AllowSubstringMatch(this) { @@ -14397,7 +14397,7 @@ impl IUIAutomationProxyFactoryEntry_Vtbl { } } } - unsafe extern "system" fn CanCheckBaseClass(this: *mut core::ffi::c_void, cancheckbaseclass: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanCheckBaseClass(this: *mut core::ffi::c_void, cancheckbaseclass: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationProxyFactoryEntry_Impl::CanCheckBaseClass(this) { @@ -14409,7 +14409,7 @@ impl IUIAutomationProxyFactoryEntry_Vtbl { } } } - unsafe extern "system" fn NeedsAdviseEvents(this: *mut core::ffi::c_void, adviseevents: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn NeedsAdviseEvents(this: *mut core::ffi::c_void, adviseevents: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationProxyFactoryEntry_Impl::NeedsAdviseEvents(this) { @@ -14433,19 +14433,19 @@ impl IUIAutomationProxyFactoryEntry_Vtbl { IUIAutomationProxyFactoryEntry_Impl::SetImageName(this, core::mem::transmute(&imagename)).into() } } - unsafe extern "system" fn SetAllowSubstringMatch(this: *mut core::ffi::c_void, allowsubstringmatch: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAllowSubstringMatch(this: *mut core::ffi::c_void, allowsubstringmatch: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationProxyFactoryEntry_Impl::SetAllowSubstringMatch(this, core::mem::transmute_copy(&allowsubstringmatch)).into() } } - unsafe extern "system" fn SetCanCheckBaseClass(this: *mut core::ffi::c_void, cancheckbaseclass: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetCanCheckBaseClass(this: *mut core::ffi::c_void, cancheckbaseclass: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationProxyFactoryEntry_Impl::SetCanCheckBaseClass(this, core::mem::transmute_copy(&cancheckbaseclass)).into() } } - unsafe extern "system" fn SetNeedsAdviseEvents(this: *mut core::ffi::c_void, adviseevents: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetNeedsAdviseEvents(this: *mut core::ffi::c_void, adviseevents: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationProxyFactoryEntry_Impl::SetNeedsAdviseEvents(this, core::mem::transmute_copy(&adviseevents)).into() @@ -14678,7 +14678,7 @@ impl IUIAutomationRangeValuePattern { (windows_core::Interface::vtable(self).CurrentValue)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CurrentIsReadOnly(&self) -> windows_core::Result { + pub unsafe fn CurrentIsReadOnly(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentIsReadOnly)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -14714,7 +14714,7 @@ impl IUIAutomationRangeValuePattern { (windows_core::Interface::vtable(self).CachedValue)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedIsReadOnly(&self) -> windows_core::Result { + pub unsafe fn CachedIsReadOnly(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedIsReadOnly)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -14750,13 +14750,13 @@ pub struct IUIAutomationRangeValuePattern_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetValue: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, pub CurrentValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, - pub CurrentIsReadOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CurrentIsReadOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CurrentMaximum: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub CurrentMinimum: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub CurrentLargeChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub CurrentSmallChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub CachedValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, - pub CachedIsReadOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CachedIsReadOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CachedMaximum: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub CachedMinimum: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub CachedLargeChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, @@ -14765,13 +14765,13 @@ pub struct IUIAutomationRangeValuePattern_Vtbl { pub trait IUIAutomationRangeValuePattern_Impl: windows_core::IUnknownImpl { fn SetValue(&self, val: f64) -> windows_core::Result<()>; fn CurrentValue(&self) -> windows_core::Result; - fn CurrentIsReadOnly(&self) -> windows_core::Result; + fn CurrentIsReadOnly(&self) -> windows_core::Result; fn CurrentMaximum(&self) -> windows_core::Result; fn CurrentMinimum(&self) -> windows_core::Result; fn CurrentLargeChange(&self) -> windows_core::Result; fn CurrentSmallChange(&self) -> windows_core::Result; fn CachedValue(&self) -> windows_core::Result; - fn CachedIsReadOnly(&self) -> windows_core::Result; + fn CachedIsReadOnly(&self) -> windows_core::Result; fn CachedMaximum(&self) -> windows_core::Result; fn CachedMinimum(&self) -> windows_core::Result; fn CachedLargeChange(&self) -> windows_core::Result; @@ -14797,7 +14797,7 @@ impl IUIAutomationRangeValuePattern_Vtbl { } } } - unsafe extern "system" fn CurrentIsReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentIsReadOnly(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationRangeValuePattern_Impl::CurrentIsReadOnly(this) { @@ -14869,7 +14869,7 @@ impl IUIAutomationRangeValuePattern_Vtbl { } } } - unsafe extern "system" fn CachedIsReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedIsReadOnly(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationRangeValuePattern_Impl::CachedIsReadOnly(this) { @@ -15089,13 +15089,13 @@ impl IUIAutomationScrollPattern { (windows_core::Interface::vtable(self).CurrentVerticalViewSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CurrentHorizontallyScrollable(&self) -> windows_core::Result { + pub unsafe fn CurrentHorizontallyScrollable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentHorizontallyScrollable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CurrentVerticallyScrollable(&self) -> windows_core::Result { + pub unsafe fn CurrentVerticallyScrollable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentVerticallyScrollable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -15125,13 +15125,13 @@ impl IUIAutomationScrollPattern { (windows_core::Interface::vtable(self).CachedVerticalViewSize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedHorizontallyScrollable(&self) -> windows_core::Result { + pub unsafe fn CachedHorizontallyScrollable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedHorizontallyScrollable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedVerticallyScrollable(&self) -> windows_core::Result { + pub unsafe fn CachedVerticallyScrollable(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedVerticallyScrollable)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -15147,14 +15147,14 @@ pub struct IUIAutomationScrollPattern_Vtbl { pub CurrentVerticalScrollPercent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub CurrentHorizontalViewSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub CurrentVerticalViewSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, - pub CurrentHorizontallyScrollable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CurrentVerticallyScrollable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CurrentHorizontallyScrollable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CurrentVerticallyScrollable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CachedHorizontalScrollPercent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub CachedVerticalScrollPercent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub CachedHorizontalViewSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub CachedVerticalViewSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, - pub CachedHorizontallyScrollable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CachedVerticallyScrollable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CachedHorizontallyScrollable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CachedVerticallyScrollable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IUIAutomationScrollPattern_Impl: windows_core::IUnknownImpl { fn Scroll(&self, horizontalamount: ScrollAmount, verticalamount: ScrollAmount) -> windows_core::Result<()>; @@ -15163,14 +15163,14 @@ pub trait IUIAutomationScrollPattern_Impl: windows_core::IUnknownImpl { fn CurrentVerticalScrollPercent(&self) -> windows_core::Result; fn CurrentHorizontalViewSize(&self) -> windows_core::Result; fn CurrentVerticalViewSize(&self) -> windows_core::Result; - fn CurrentHorizontallyScrollable(&self) -> windows_core::Result; - fn CurrentVerticallyScrollable(&self) -> windows_core::Result; + fn CurrentHorizontallyScrollable(&self) -> windows_core::Result; + fn CurrentVerticallyScrollable(&self) -> windows_core::Result; fn CachedHorizontalScrollPercent(&self) -> windows_core::Result; fn CachedVerticalScrollPercent(&self) -> windows_core::Result; fn CachedHorizontalViewSize(&self) -> windows_core::Result; fn CachedVerticalViewSize(&self) -> windows_core::Result; - fn CachedHorizontallyScrollable(&self) -> windows_core::Result; - fn CachedVerticallyScrollable(&self) -> windows_core::Result; + fn CachedHorizontallyScrollable(&self) -> windows_core::Result; + fn CachedVerticallyScrollable(&self) -> windows_core::Result; } impl IUIAutomationScrollPattern_Vtbl { pub const fn new() -> Self { @@ -15234,7 +15234,7 @@ impl IUIAutomationScrollPattern_Vtbl { } } } - unsafe extern "system" fn CurrentHorizontallyScrollable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentHorizontallyScrollable(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationScrollPattern_Impl::CurrentHorizontallyScrollable(this) { @@ -15246,7 +15246,7 @@ impl IUIAutomationScrollPattern_Vtbl { } } } - unsafe extern "system" fn CurrentVerticallyScrollable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentVerticallyScrollable(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationScrollPattern_Impl::CurrentVerticallyScrollable(this) { @@ -15306,7 +15306,7 @@ impl IUIAutomationScrollPattern_Vtbl { } } } - unsafe extern "system" fn CachedHorizontallyScrollable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedHorizontallyScrollable(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationScrollPattern_Impl::CachedHorizontallyScrollable(this) { @@ -15318,7 +15318,7 @@ impl IUIAutomationScrollPattern_Vtbl { } } } - unsafe extern "system" fn CachedVerticallyScrollable(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedVerticallyScrollable(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationScrollPattern_Impl::CachedVerticallyScrollable(this) { @@ -15365,7 +15365,7 @@ impl IUIAutomationSelectionItemPattern { pub unsafe fn RemoveFromSelection(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).RemoveFromSelection)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn CurrentIsSelected(&self) -> windows_core::Result { + pub unsafe fn CurrentIsSelected(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentIsSelected)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -15377,7 +15377,7 @@ impl IUIAutomationSelectionItemPattern { (windows_core::Interface::vtable(self).CurrentSelectionContainer)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn CachedIsSelected(&self) -> windows_core::Result { + pub unsafe fn CachedIsSelected(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedIsSelected)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -15396,18 +15396,18 @@ pub struct IUIAutomationSelectionItemPattern_Vtbl { pub Select: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub AddToSelection: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveFromSelection: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub CurrentIsSelected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CurrentIsSelected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CurrentSelectionContainer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CachedIsSelected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CachedIsSelected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CachedSelectionContainer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IUIAutomationSelectionItemPattern_Impl: windows_core::IUnknownImpl { fn Select(&self) -> windows_core::Result<()>; fn AddToSelection(&self) -> windows_core::Result<()>; fn RemoveFromSelection(&self) -> windows_core::Result<()>; - fn CurrentIsSelected(&self) -> windows_core::Result; + fn CurrentIsSelected(&self) -> windows_core::Result; fn CurrentSelectionContainer(&self) -> windows_core::Result; - fn CachedIsSelected(&self) -> windows_core::Result; + fn CachedIsSelected(&self) -> windows_core::Result; fn CachedSelectionContainer(&self) -> windows_core::Result; } impl IUIAutomationSelectionItemPattern_Vtbl { @@ -15430,7 +15430,7 @@ impl IUIAutomationSelectionItemPattern_Vtbl { IUIAutomationSelectionItemPattern_Impl::RemoveFromSelection(this).into() } } - unsafe extern "system" fn CurrentIsSelected(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentIsSelected(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionItemPattern_Impl::CurrentIsSelected(this) { @@ -15454,7 +15454,7 @@ impl IUIAutomationSelectionItemPattern_Vtbl { } } } - unsafe extern "system" fn CachedIsSelected(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedIsSelected(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionItemPattern_Impl::CachedIsSelected(this) { @@ -15503,13 +15503,13 @@ impl IUIAutomationSelectionPattern { (windows_core::Interface::vtable(self).GetCurrentSelection)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn CurrentCanSelectMultiple(&self) -> windows_core::Result { + pub unsafe fn CurrentCanSelectMultiple(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentCanSelectMultiple)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CurrentIsSelectionRequired(&self) -> windows_core::Result { + pub unsafe fn CurrentIsSelectionRequired(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentIsSelectionRequired)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -15521,13 +15521,13 @@ impl IUIAutomationSelectionPattern { (windows_core::Interface::vtable(self).GetCachedSelection)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn CachedCanSelectMultiple(&self) -> windows_core::Result { + pub unsafe fn CachedCanSelectMultiple(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedCanSelectMultiple)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedIsSelectionRequired(&self) -> windows_core::Result { + pub unsafe fn CachedIsSelectionRequired(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedIsSelectionRequired)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -15538,19 +15538,19 @@ impl IUIAutomationSelectionPattern { pub struct IUIAutomationSelectionPattern_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetCurrentSelection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CurrentCanSelectMultiple: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CurrentIsSelectionRequired: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CurrentCanSelectMultiple: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CurrentIsSelectionRequired: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetCachedSelection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CachedCanSelectMultiple: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CachedIsSelectionRequired: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CachedCanSelectMultiple: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CachedIsSelectionRequired: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IUIAutomationSelectionPattern_Impl: windows_core::IUnknownImpl { fn GetCurrentSelection(&self) -> windows_core::Result; - fn CurrentCanSelectMultiple(&self) -> windows_core::Result; - fn CurrentIsSelectionRequired(&self) -> windows_core::Result; + fn CurrentCanSelectMultiple(&self) -> windows_core::Result; + fn CurrentIsSelectionRequired(&self) -> windows_core::Result; fn GetCachedSelection(&self) -> windows_core::Result; - fn CachedCanSelectMultiple(&self) -> windows_core::Result; - fn CachedIsSelectionRequired(&self) -> windows_core::Result; + fn CachedCanSelectMultiple(&self) -> windows_core::Result; + fn CachedIsSelectionRequired(&self) -> windows_core::Result; } impl IUIAutomationSelectionPattern_Vtbl { pub const fn new() -> Self { @@ -15566,7 +15566,7 @@ impl IUIAutomationSelectionPattern_Vtbl { } } } - unsafe extern "system" fn CurrentCanSelectMultiple(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentCanSelectMultiple(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionPattern_Impl::CurrentCanSelectMultiple(this) { @@ -15578,7 +15578,7 @@ impl IUIAutomationSelectionPattern_Vtbl { } } } - unsafe extern "system" fn CurrentIsSelectionRequired(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentIsSelectionRequired(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionPattern_Impl::CurrentIsSelectionRequired(this) { @@ -15602,7 +15602,7 @@ impl IUIAutomationSelectionPattern_Vtbl { } } } - unsafe extern "system" fn CachedCanSelectMultiple(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedCanSelectMultiple(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionPattern_Impl::CachedCanSelectMultiple(this) { @@ -15614,7 +15614,7 @@ impl IUIAutomationSelectionPattern_Vtbl { } } } - unsafe extern "system" fn CachedIsSelectionRequired(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedIsSelectionRequired(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationSelectionPattern_Impl::CachedIsSelectionRequired(this) { @@ -17052,7 +17052,7 @@ impl IUIAutomationTextPattern2 { (windows_core::Interface::vtable(self).RangeFromAnnotation)(windows_core::Interface::as_raw(self), annotation.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetCaretRange(&self, isactive: *mut super::super::Foundation::BOOL) -> windows_core::Result { + pub unsafe fn GetCaretRange(&self, isactive: *mut windows_core::BOOL) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCaretRange)(windows_core::Interface::as_raw(self), isactive as _, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -17063,11 +17063,11 @@ impl IUIAutomationTextPattern2 { pub struct IUIAutomationTextPattern2_Vtbl { pub base__: IUIAutomationTextPattern_Vtbl, pub RangeFromAnnotation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetCaretRange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetCaretRange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IUIAutomationTextPattern2_Impl: IUIAutomationTextPattern_Impl { fn RangeFromAnnotation(&self, annotation: windows_core::Ref) -> windows_core::Result; - fn GetCaretRange(&self, isactive: *mut super::super::Foundation::BOOL) -> windows_core::Result; + fn GetCaretRange(&self, isactive: *mut windows_core::BOOL) -> windows_core::Result; } impl IUIAutomationTextPattern2_Vtbl { pub const fn new() -> Self { @@ -17083,7 +17083,7 @@ impl IUIAutomationTextPattern2_Vtbl { } } } - unsafe extern "system" fn GetCaretRange(this: *mut core::ffi::c_void, isactive: *mut super::super::Foundation::BOOL, range: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetCaretRange(this: *mut core::ffi::c_void, isactive: *mut windows_core::BOOL, range: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextPattern2_Impl::GetCaretRange(this, core::mem::transmute_copy(&isactive)) { @@ -17115,7 +17115,7 @@ impl IUIAutomationTextRange { (windows_core::Interface::vtable(self).Clone)(windows_core::Interface::as_raw(self), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn Compare(&self, range: P0) -> windows_core::Result + pub unsafe fn Compare(&self, range: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -17216,14 +17216,14 @@ impl IUIAutomationTextRange { pub struct IUIAutomationTextRange_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Compare: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Compare: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CompareEndpoints: unsafe extern "system" fn(*mut core::ffi::c_void, TextPatternRangeEndpoint, *mut core::ffi::c_void, TextPatternRangeEndpoint, *mut i32) -> windows_core::HRESULT, pub ExpandToEnclosingUnit: unsafe extern "system" fn(*mut core::ffi::c_void, TextUnit) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] - pub FindAttribute: unsafe extern "system" fn(*mut core::ffi::c_void, UIA_TEXTATTRIBUTE_ID, super::super::System::Variant::VARIANT, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub FindAttribute: unsafe extern "system" fn(*mut core::ffi::c_void, UIA_TEXTATTRIBUTE_ID, super::super::System::Variant::VARIANT, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] FindAttribute: usize, - pub FindText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub FindText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub GetAttributeValue: unsafe extern "system" fn(*mut core::ffi::c_void, UIA_TEXTATTRIBUTE_ID, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -17240,17 +17240,17 @@ pub struct IUIAutomationTextRange_Vtbl { pub Select: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub AddToSelection: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveFromSelection: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub ScrollIntoView: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ScrollIntoView: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetChildren: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IUIAutomationTextRange_Impl: windows_core::IUnknownImpl { fn Clone(&self) -> windows_core::Result; - fn Compare(&self, range: windows_core::Ref) -> windows_core::Result; + fn Compare(&self, range: windows_core::Ref) -> windows_core::Result; fn CompareEndpoints(&self, srcendpoint: TextPatternRangeEndpoint, range: windows_core::Ref, targetendpoint: TextPatternRangeEndpoint) -> windows_core::Result; fn ExpandToEnclosingUnit(&self, textunit: TextUnit) -> windows_core::Result<()>; - fn FindAttribute(&self, attr: UIA_TEXTATTRIBUTE_ID, val: &super::super::System::Variant::VARIANT, backward: super::super::Foundation::BOOL) -> windows_core::Result; - fn FindText(&self, text: &windows_core::BSTR, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL) -> windows_core::Result; + fn FindAttribute(&self, attr: UIA_TEXTATTRIBUTE_ID, val: &super::super::System::Variant::VARIANT, backward: windows_core::BOOL) -> windows_core::Result; + fn FindText(&self, text: &windows_core::BSTR, backward: windows_core::BOOL, ignorecase: windows_core::BOOL) -> windows_core::Result; fn GetAttributeValue(&self, attr: UIA_TEXTATTRIBUTE_ID) -> windows_core::Result; fn GetBoundingRectangles(&self) -> windows_core::Result<*mut super::super::System::Com::SAFEARRAY>; fn GetEnclosingElement(&self) -> windows_core::Result; @@ -17261,7 +17261,7 @@ pub trait IUIAutomationTextRange_Impl: windows_core::IUnknownImpl { fn Select(&self) -> windows_core::Result<()>; fn AddToSelection(&self) -> windows_core::Result<()>; fn RemoveFromSelection(&self) -> windows_core::Result<()>; - fn ScrollIntoView(&self, aligntotop: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ScrollIntoView(&self, aligntotop: windows_core::BOOL) -> windows_core::Result<()>; fn GetChildren(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -17279,7 +17279,7 @@ impl IUIAutomationTextRange_Vtbl { } } } - unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, range: *mut core::ffi::c_void, aresame: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Compare(this: *mut core::ffi::c_void, range: *mut core::ffi::c_void, aresame: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRange_Impl::Compare(this, core::mem::transmute_copy(&range)) { @@ -17309,7 +17309,7 @@ impl IUIAutomationTextRange_Vtbl { IUIAutomationTextRange_Impl::ExpandToEnclosingUnit(this, core::mem::transmute_copy(&textunit)).into() } } - unsafe extern "system" fn FindAttribute(this: *mut core::ffi::c_void, attr: UIA_TEXTATTRIBUTE_ID, val: super::super::System::Variant::VARIANT, backward: super::super::Foundation::BOOL, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn FindAttribute(this: *mut core::ffi::c_void, attr: UIA_TEXTATTRIBUTE_ID, val: super::super::System::Variant::VARIANT, backward: windows_core::BOOL, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRange_Impl::FindAttribute(this, core::mem::transmute_copy(&attr), core::mem::transmute(&val), core::mem::transmute_copy(&backward)) { @@ -17321,7 +17321,7 @@ impl IUIAutomationTextRange_Vtbl { } } } - unsafe extern "system" fn FindText(this: *mut core::ffi::c_void, text: *mut core::ffi::c_void, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn FindText(this: *mut core::ffi::c_void, text: *mut core::ffi::c_void, backward: windows_core::BOOL, ignorecase: windows_core::BOOL, found: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTextRange_Impl::FindText(this, core::mem::transmute(&text), core::mem::transmute_copy(&backward), core::mem::transmute_copy(&ignorecase)) { @@ -17429,7 +17429,7 @@ impl IUIAutomationTextRange_Vtbl { IUIAutomationTextRange_Impl::RemoveFromSelection(this).into() } } - unsafe extern "system" fn ScrollIntoView(this: *mut core::ffi::c_void, aligntotop: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ScrollIntoView(this: *mut core::ffi::c_void, aligntotop: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAutomationTextRange_Impl::ScrollIntoView(this, core::mem::transmute_copy(&aligntotop)).into() @@ -17763,37 +17763,37 @@ impl IUIAutomationTransformPattern { pub unsafe fn Rotate(&self, degrees: f64) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Rotate)(windows_core::Interface::as_raw(self), degrees).ok() } } - pub unsafe fn CurrentCanMove(&self) -> windows_core::Result { + pub unsafe fn CurrentCanMove(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentCanMove)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CurrentCanResize(&self) -> windows_core::Result { + pub unsafe fn CurrentCanResize(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentCanResize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CurrentCanRotate(&self) -> windows_core::Result { + pub unsafe fn CurrentCanRotate(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentCanRotate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedCanMove(&self) -> windows_core::Result { + pub unsafe fn CachedCanMove(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedCanMove)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedCanResize(&self) -> windows_core::Result { + pub unsafe fn CachedCanResize(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedCanResize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedCanRotate(&self) -> windows_core::Result { + pub unsafe fn CachedCanRotate(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedCanRotate)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -17806,23 +17806,23 @@ pub struct IUIAutomationTransformPattern_Vtbl { pub Move: unsafe extern "system" fn(*mut core::ffi::c_void, f64, f64) -> windows_core::HRESULT, pub Resize: unsafe extern "system" fn(*mut core::ffi::c_void, f64, f64) -> windows_core::HRESULT, pub Rotate: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, - pub CurrentCanMove: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CurrentCanResize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CurrentCanRotate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CachedCanMove: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CachedCanResize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CachedCanRotate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CurrentCanMove: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CurrentCanResize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CurrentCanRotate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CachedCanMove: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CachedCanResize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CachedCanRotate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IUIAutomationTransformPattern_Impl: windows_core::IUnknownImpl { fn Move(&self, x: f64, y: f64) -> windows_core::Result<()>; fn Resize(&self, width: f64, height: f64) -> windows_core::Result<()>; fn Rotate(&self, degrees: f64) -> windows_core::Result<()>; - fn CurrentCanMove(&self) -> windows_core::Result; - fn CurrentCanResize(&self) -> windows_core::Result; - fn CurrentCanRotate(&self) -> windows_core::Result; - fn CachedCanMove(&self) -> windows_core::Result; - fn CachedCanResize(&self) -> windows_core::Result; - fn CachedCanRotate(&self) -> windows_core::Result; + fn CurrentCanMove(&self) -> windows_core::Result; + fn CurrentCanResize(&self) -> windows_core::Result; + fn CurrentCanRotate(&self) -> windows_core::Result; + fn CachedCanMove(&self) -> windows_core::Result; + fn CachedCanResize(&self) -> windows_core::Result; + fn CachedCanRotate(&self) -> windows_core::Result; } impl IUIAutomationTransformPattern_Vtbl { pub const fn new() -> Self { @@ -17844,7 +17844,7 @@ impl IUIAutomationTransformPattern_Vtbl { IUIAutomationTransformPattern_Impl::Rotate(this, core::mem::transmute_copy(°rees)).into() } } - unsafe extern "system" fn CurrentCanMove(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentCanMove(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern_Impl::CurrentCanMove(this) { @@ -17856,7 +17856,7 @@ impl IUIAutomationTransformPattern_Vtbl { } } } - unsafe extern "system" fn CurrentCanResize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentCanResize(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern_Impl::CurrentCanResize(this) { @@ -17868,7 +17868,7 @@ impl IUIAutomationTransformPattern_Vtbl { } } } - unsafe extern "system" fn CurrentCanRotate(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentCanRotate(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern_Impl::CurrentCanRotate(this) { @@ -17880,7 +17880,7 @@ impl IUIAutomationTransformPattern_Vtbl { } } } - unsafe extern "system" fn CachedCanMove(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedCanMove(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern_Impl::CachedCanMove(this) { @@ -17892,7 +17892,7 @@ impl IUIAutomationTransformPattern_Vtbl { } } } - unsafe extern "system" fn CachedCanResize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedCanResize(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern_Impl::CachedCanResize(this) { @@ -17904,7 +17904,7 @@ impl IUIAutomationTransformPattern_Vtbl { } } } - unsafe extern "system" fn CachedCanRotate(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedCanRotate(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern_Impl::CachedCanRotate(this) { @@ -17949,13 +17949,13 @@ impl IUIAutomationTransformPattern2 { pub unsafe fn ZoomByUnit(&self, zoomunit: ZoomUnit) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).ZoomByUnit)(windows_core::Interface::as_raw(self), zoomunit).ok() } } - pub unsafe fn CurrentCanZoom(&self) -> windows_core::Result { + pub unsafe fn CurrentCanZoom(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentCanZoom)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedCanZoom(&self) -> windows_core::Result { + pub unsafe fn CachedCanZoom(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedCanZoom)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -18003,8 +18003,8 @@ pub struct IUIAutomationTransformPattern2_Vtbl { pub base__: IUIAutomationTransformPattern_Vtbl, pub Zoom: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, pub ZoomByUnit: unsafe extern "system" fn(*mut core::ffi::c_void, ZoomUnit) -> windows_core::HRESULT, - pub CurrentCanZoom: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CachedCanZoom: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CurrentCanZoom: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CachedCanZoom: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CurrentZoomLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub CachedZoomLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub CurrentZoomMinimum: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, @@ -18015,8 +18015,8 @@ pub struct IUIAutomationTransformPattern2_Vtbl { pub trait IUIAutomationTransformPattern2_Impl: IUIAutomationTransformPattern_Impl { fn Zoom(&self, zoomvalue: f64) -> windows_core::Result<()>; fn ZoomByUnit(&self, zoomunit: ZoomUnit) -> windows_core::Result<()>; - fn CurrentCanZoom(&self) -> windows_core::Result; - fn CachedCanZoom(&self) -> windows_core::Result; + fn CurrentCanZoom(&self) -> windows_core::Result; + fn CachedCanZoom(&self) -> windows_core::Result; fn CurrentZoomLevel(&self) -> windows_core::Result; fn CachedZoomLevel(&self) -> windows_core::Result; fn CurrentZoomMinimum(&self) -> windows_core::Result; @@ -18038,7 +18038,7 @@ impl IUIAutomationTransformPattern2_Vtbl { IUIAutomationTransformPattern2_Impl::ZoomByUnit(this, core::mem::transmute_copy(&zoomunit)).into() } } - unsafe extern "system" fn CurrentCanZoom(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentCanZoom(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern2_Impl::CurrentCanZoom(this) { @@ -18050,7 +18050,7 @@ impl IUIAutomationTransformPattern2_Vtbl { } } } - unsafe extern "system" fn CachedCanZoom(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedCanZoom(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationTransformPattern2_Impl::CachedCanZoom(this) { @@ -18501,7 +18501,7 @@ impl IUIAutomationValuePattern { (windows_core::Interface::vtable(self).CurrentValue)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn CurrentIsReadOnly(&self) -> windows_core::Result { + pub unsafe fn CurrentIsReadOnly(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentIsReadOnly)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -18513,7 +18513,7 @@ impl IUIAutomationValuePattern { (windows_core::Interface::vtable(self).CachedValue)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn CachedIsReadOnly(&self) -> windows_core::Result { + pub unsafe fn CachedIsReadOnly(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedIsReadOnly)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -18525,16 +18525,16 @@ pub struct IUIAutomationValuePattern_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub CurrentValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CurrentIsReadOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CurrentIsReadOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CachedValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CachedIsReadOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CachedIsReadOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IUIAutomationValuePattern_Impl: windows_core::IUnknownImpl { fn SetValue(&self, val: &windows_core::BSTR) -> windows_core::Result<()>; fn CurrentValue(&self) -> windows_core::Result; - fn CurrentIsReadOnly(&self) -> windows_core::Result; + fn CurrentIsReadOnly(&self) -> windows_core::Result; fn CachedValue(&self) -> windows_core::Result; - fn CachedIsReadOnly(&self) -> windows_core::Result; + fn CachedIsReadOnly(&self) -> windows_core::Result; } impl IUIAutomationValuePattern_Vtbl { pub const fn new() -> Self { @@ -18556,7 +18556,7 @@ impl IUIAutomationValuePattern_Vtbl { } } } - unsafe extern "system" fn CurrentIsReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentIsReadOnly(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationValuePattern_Impl::CurrentIsReadOnly(this) { @@ -18580,7 +18580,7 @@ impl IUIAutomationValuePattern_Vtbl { } } } - unsafe extern "system" fn CachedIsReadOnly(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedIsReadOnly(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationValuePattern_Impl::CachedIsReadOnly(this) { @@ -18642,7 +18642,7 @@ impl IUIAutomationWindowPattern { pub unsafe fn Close(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn WaitForInputIdle(&self, milliseconds: i32) -> windows_core::Result { + pub unsafe fn WaitForInputIdle(&self, milliseconds: i32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).WaitForInputIdle)(windows_core::Interface::as_raw(self), milliseconds, &mut result__).map(|| result__) @@ -18651,25 +18651,25 @@ impl IUIAutomationWindowPattern { pub unsafe fn SetWindowVisualState(&self, state: WindowVisualState) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetWindowVisualState)(windows_core::Interface::as_raw(self), state).ok() } } - pub unsafe fn CurrentCanMaximize(&self) -> windows_core::Result { + pub unsafe fn CurrentCanMaximize(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentCanMaximize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CurrentCanMinimize(&self) -> windows_core::Result { + pub unsafe fn CurrentCanMinimize(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentCanMinimize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CurrentIsModal(&self) -> windows_core::Result { + pub unsafe fn CurrentIsModal(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentIsModal)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CurrentIsTopmost(&self) -> windows_core::Result { + pub unsafe fn CurrentIsTopmost(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CurrentIsTopmost)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -18687,25 +18687,25 @@ impl IUIAutomationWindowPattern { (windows_core::Interface::vtable(self).CurrentWindowInteractionState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedCanMaximize(&self) -> windows_core::Result { + pub unsafe fn CachedCanMaximize(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedCanMaximize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedCanMinimize(&self) -> windows_core::Result { + pub unsafe fn CachedCanMinimize(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedCanMinimize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedIsModal(&self) -> windows_core::Result { + pub unsafe fn CachedIsModal(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedIsModal)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CachedIsTopmost(&self) -> windows_core::Result { + pub unsafe fn CachedIsTopmost(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CachedIsTopmost)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -18728,35 +18728,35 @@ impl IUIAutomationWindowPattern { pub struct IUIAutomationWindowPattern_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Close: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub WaitForInputIdle: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub WaitForInputIdle: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetWindowVisualState: unsafe extern "system" fn(*mut core::ffi::c_void, WindowVisualState) -> windows_core::HRESULT, - pub CurrentCanMaximize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CurrentCanMinimize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CurrentIsModal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CurrentIsTopmost: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CurrentCanMaximize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CurrentCanMinimize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CurrentIsModal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CurrentIsTopmost: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CurrentWindowVisualState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WindowVisualState) -> windows_core::HRESULT, pub CurrentWindowInteractionState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WindowInteractionState) -> windows_core::HRESULT, - pub CachedCanMaximize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CachedCanMinimize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CachedIsModal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CachedIsTopmost: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CachedCanMaximize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CachedCanMinimize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CachedIsModal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CachedIsTopmost: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CachedWindowVisualState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WindowVisualState) -> windows_core::HRESULT, pub CachedWindowInteractionState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WindowInteractionState) -> windows_core::HRESULT, } pub trait IUIAutomationWindowPattern_Impl: windows_core::IUnknownImpl { fn Close(&self) -> windows_core::Result<()>; - fn WaitForInputIdle(&self, milliseconds: i32) -> windows_core::Result; + fn WaitForInputIdle(&self, milliseconds: i32) -> windows_core::Result; fn SetWindowVisualState(&self, state: WindowVisualState) -> windows_core::Result<()>; - fn CurrentCanMaximize(&self) -> windows_core::Result; - fn CurrentCanMinimize(&self) -> windows_core::Result; - fn CurrentIsModal(&self) -> windows_core::Result; - fn CurrentIsTopmost(&self) -> windows_core::Result; + fn CurrentCanMaximize(&self) -> windows_core::Result; + fn CurrentCanMinimize(&self) -> windows_core::Result; + fn CurrentIsModal(&self) -> windows_core::Result; + fn CurrentIsTopmost(&self) -> windows_core::Result; fn CurrentWindowVisualState(&self) -> windows_core::Result; fn CurrentWindowInteractionState(&self) -> windows_core::Result; - fn CachedCanMaximize(&self) -> windows_core::Result; - fn CachedCanMinimize(&self) -> windows_core::Result; - fn CachedIsModal(&self) -> windows_core::Result; - fn CachedIsTopmost(&self) -> windows_core::Result; + fn CachedCanMaximize(&self) -> windows_core::Result; + fn CachedCanMinimize(&self) -> windows_core::Result; + fn CachedIsModal(&self) -> windows_core::Result; + fn CachedIsTopmost(&self) -> windows_core::Result; fn CachedWindowVisualState(&self) -> windows_core::Result; fn CachedWindowInteractionState(&self) -> windows_core::Result; } @@ -18768,7 +18768,7 @@ impl IUIAutomationWindowPattern_Vtbl { IUIAutomationWindowPattern_Impl::Close(this).into() } } - unsafe extern "system" fn WaitForInputIdle(this: *mut core::ffi::c_void, milliseconds: i32, success: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn WaitForInputIdle(this: *mut core::ffi::c_void, milliseconds: i32, success: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::WaitForInputIdle(this, core::mem::transmute_copy(&milliseconds)) { @@ -18786,7 +18786,7 @@ impl IUIAutomationWindowPattern_Vtbl { IUIAutomationWindowPattern_Impl::SetWindowVisualState(this, core::mem::transmute_copy(&state)).into() } } - unsafe extern "system" fn CurrentCanMaximize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentCanMaximize(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CurrentCanMaximize(this) { @@ -18798,7 +18798,7 @@ impl IUIAutomationWindowPattern_Vtbl { } } } - unsafe extern "system" fn CurrentCanMinimize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentCanMinimize(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CurrentCanMinimize(this) { @@ -18810,7 +18810,7 @@ impl IUIAutomationWindowPattern_Vtbl { } } } - unsafe extern "system" fn CurrentIsModal(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentIsModal(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CurrentIsModal(this) { @@ -18822,7 +18822,7 @@ impl IUIAutomationWindowPattern_Vtbl { } } } - unsafe extern "system" fn CurrentIsTopmost(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CurrentIsTopmost(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CurrentIsTopmost(this) { @@ -18858,7 +18858,7 @@ impl IUIAutomationWindowPattern_Vtbl { } } } - unsafe extern "system" fn CachedCanMaximize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedCanMaximize(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CachedCanMaximize(this) { @@ -18870,7 +18870,7 @@ impl IUIAutomationWindowPattern_Vtbl { } } } - unsafe extern "system" fn CachedCanMinimize(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedCanMinimize(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CachedCanMinimize(this) { @@ -18882,7 +18882,7 @@ impl IUIAutomationWindowPattern_Vtbl { } } } - unsafe extern "system" fn CachedIsModal(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedIsModal(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CachedIsModal(this) { @@ -18894,7 +18894,7 @@ impl IUIAutomationWindowPattern_Vtbl { } } } - unsafe extern "system" fn CachedIsTopmost(this: *mut core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CachedIsTopmost(this: *mut core::ffi::c_void, retval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IUIAutomationWindowPattern_Impl::CachedIsTopmost(this) { @@ -18969,7 +18969,7 @@ impl IValueProvider { (windows_core::Interface::vtable(self).Value)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn IsReadOnly(&self) -> windows_core::Result { + pub unsafe fn IsReadOnly(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsReadOnly)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -18981,12 +18981,12 @@ pub struct IValueProvider_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetValue: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub Value: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsReadOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsReadOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IValueProvider_Impl: windows_core::IUnknownImpl { fn SetValue(&self, val: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Value(&self) -> windows_core::Result; - fn IsReadOnly(&self) -> windows_core::Result; + fn IsReadOnly(&self) -> windows_core::Result; } impl IValueProvider_Vtbl { pub const fn new() -> Self { @@ -19008,7 +19008,7 @@ impl IValueProvider_Vtbl { } } } - unsafe extern "system" fn IsReadOnly(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsReadOnly(this: *mut core::ffi::c_void, pretval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IValueProvider_Impl::IsReadOnly(this) { @@ -19071,25 +19071,25 @@ impl IWindowProvider { pub unsafe fn Close(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Close)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn WaitForInputIdle(&self, milliseconds: i32) -> windows_core::Result { + pub unsafe fn WaitForInputIdle(&self, milliseconds: i32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).WaitForInputIdle)(windows_core::Interface::as_raw(self), milliseconds, &mut result__).map(|| result__) } } - pub unsafe fn CanMaximize(&self) -> windows_core::Result { + pub unsafe fn CanMaximize(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanMaximize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn CanMinimize(&self) -> windows_core::Result { + pub unsafe fn CanMinimize(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanMinimize)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsModal(&self) -> windows_core::Result { + pub unsafe fn IsModal(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsModal)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -19107,7 +19107,7 @@ impl IWindowProvider { (windows_core::Interface::vtable(self).WindowInteractionState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsTopmost(&self) -> windows_core::Result { + pub unsafe fn IsTopmost(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsTopmost)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -19119,24 +19119,24 @@ pub struct IWindowProvider_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetVisualState: unsafe extern "system" fn(*mut core::ffi::c_void, WindowVisualState) -> windows_core::HRESULT, pub Close: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub WaitForInputIdle: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CanMaximize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CanMinimize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsModal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub WaitForInputIdle: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CanMaximize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CanMinimize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsModal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub WindowVisualState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WindowVisualState) -> windows_core::HRESULT, pub WindowInteractionState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WindowInteractionState) -> windows_core::HRESULT, - pub IsTopmost: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsTopmost: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IWindowProvider_Impl: windows_core::IUnknownImpl { fn SetVisualState(&self, state: WindowVisualState) -> windows_core::Result<()>; fn Close(&self) -> windows_core::Result<()>; - fn WaitForInputIdle(&self, milliseconds: i32) -> windows_core::Result; - fn CanMaximize(&self) -> windows_core::Result; - fn CanMinimize(&self) -> windows_core::Result; - fn IsModal(&self) -> windows_core::Result; + fn WaitForInputIdle(&self, milliseconds: i32) -> windows_core::Result; + fn CanMaximize(&self) -> windows_core::Result; + fn CanMinimize(&self) -> windows_core::Result; + fn IsModal(&self) -> windows_core::Result; fn WindowVisualState(&self) -> windows_core::Result; fn WindowInteractionState(&self) -> windows_core::Result; - fn IsTopmost(&self) -> windows_core::Result; + fn IsTopmost(&self) -> windows_core::Result; } impl IWindowProvider_Vtbl { pub const fn new() -> Self { @@ -19152,7 +19152,7 @@ impl IWindowProvider_Vtbl { IWindowProvider_Impl::Close(this).into() } } - unsafe extern "system" fn WaitForInputIdle(this: *mut core::ffi::c_void, milliseconds: i32, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn WaitForInputIdle(this: *mut core::ffi::c_void, milliseconds: i32, pretval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowProvider_Impl::WaitForInputIdle(this, core::mem::transmute_copy(&milliseconds)) { @@ -19164,7 +19164,7 @@ impl IWindowProvider_Vtbl { } } } - unsafe extern "system" fn CanMaximize(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanMaximize(this: *mut core::ffi::c_void, pretval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowProvider_Impl::CanMaximize(this) { @@ -19176,7 +19176,7 @@ impl IWindowProvider_Vtbl { } } } - unsafe extern "system" fn CanMinimize(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanMinimize(this: *mut core::ffi::c_void, pretval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowProvider_Impl::CanMinimize(this) { @@ -19188,7 +19188,7 @@ impl IWindowProvider_Vtbl { } } } - unsafe extern "system" fn IsModal(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsModal(this: *mut core::ffi::c_void, pretval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowProvider_Impl::IsModal(this) { @@ -19224,7 +19224,7 @@ impl IWindowProvider_Vtbl { } } } - unsafe extern "system" fn IsTopmost(this: *mut core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsTopmost(this: *mut core::ffi::c_void, pretval: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IWindowProvider_Impl::IsTopmost(this) { @@ -20610,7 +20610,7 @@ impl Default for UIAutomationEventInfo { #[derive(Clone, Copy, Debug, PartialEq)] pub struct UIAutomationMethodInfo { pub pProgrammaticName: windows_core::PCWSTR, - pub doSetFocus: super::super::Foundation::BOOL, + pub doSetFocus: windows_core::BOOL, pub cInParameters: u32, pub cOutParameters: u32, pub pParameterTypes: *mut UIAutomationType, @@ -20833,8 +20833,8 @@ pub type UiaEventCallback = Option windows_core::HRESULT, pub Pause: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Resume: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetManagerEventHandler: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetManagerEventHandler: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetCancelPriorityComparison: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetTrimPriorityComparison: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCompressPriorityComparison: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -794,7 +794,7 @@ pub trait IUIAnimationManager2_Impl: windows_core::IUnknownImpl { fn SetAnimationMode(&self, mode: UI_ANIMATION_MODE) -> windows_core::Result<()>; fn Pause(&self) -> windows_core::Result<()>; fn Resume(&self) -> windows_core::Result<()>; - fn SetManagerEventHandler(&self, handler: windows_core::Ref, fregisterfornextanimationevent: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetManagerEventHandler(&self, handler: windows_core::Ref, fregisterfornextanimationevent: windows_core::BOOL) -> windows_core::Result<()>; fn SetCancelPriorityComparison(&self, comparison: windows_core::Ref) -> windows_core::Result<()>; fn SetTrimPriorityComparison(&self, comparison: windows_core::Ref) -> windows_core::Result<()>; fn SetCompressPriorityComparison(&self, comparison: windows_core::Ref) -> windows_core::Result<()>; @@ -930,7 +930,7 @@ impl IUIAnimationManager2_Vtbl { IUIAnimationManager2_Impl::Resume(this).into() } } - unsafe extern "system" fn SetManagerEventHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, fregisterfornextanimationevent: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetManagerEventHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, fregisterfornextanimationevent: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationManager2_Impl::SetManagerEventHandler(this, core::mem::transmute_copy(&handler), core::mem::transmute_copy(&fregisterfornextanimationevent)).into() @@ -1565,7 +1565,7 @@ pub struct IUIAnimationStoryboard2_Vtbl { pub AddKeyframeAfterTransition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT, pub AddTransitionAtKeyframe: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT, pub AddTransitionBetweenKeyframes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, UI_ANIMATION_KEYFRAME, UI_ANIMATION_KEYFRAME) -> windows_core::HRESULT, - pub RepeatBetweenKeyframes: unsafe extern "system" fn(*mut core::ffi::c_void, UI_ANIMATION_KEYFRAME, UI_ANIMATION_KEYFRAME, f64, UI_ANIMATION_REPEAT_MODE, *mut core::ffi::c_void, usize, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub RepeatBetweenKeyframes: unsafe extern "system" fn(*mut core::ffi::c_void, UI_ANIMATION_KEYFRAME, UI_ANIMATION_KEYFRAME, f64, UI_ANIMATION_REPEAT_MODE, *mut core::ffi::c_void, usize, windows_core::BOOL) -> windows_core::HRESULT, pub HoldVariable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetLongestAcceptableDelay: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, pub SetSkipDuration: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, @@ -1577,7 +1577,7 @@ pub struct IUIAnimationStoryboard2_Vtbl { pub GetTag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut UI_ANIMATION_STORYBOARD_STATUS) -> windows_core::HRESULT, pub GetElapsedTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, - pub SetStoryboardEventHandler: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetStoryboardEventHandler: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IUIAnimationStoryboard2_Impl: windows_core::IUnknownImpl { fn AddTransition(&self, variable: windows_core::Ref, transition: windows_core::Ref) -> windows_core::Result<()>; @@ -1585,7 +1585,7 @@ pub trait IUIAnimationStoryboard2_Impl: windows_core::IUnknownImpl { fn AddKeyframeAfterTransition(&self, transition: windows_core::Ref) -> windows_core::Result; fn AddTransitionAtKeyframe(&self, variable: windows_core::Ref, transition: windows_core::Ref, startkeyframe: UI_ANIMATION_KEYFRAME) -> windows_core::Result<()>; fn AddTransitionBetweenKeyframes(&self, variable: windows_core::Ref, transition: windows_core::Ref, startkeyframe: UI_ANIMATION_KEYFRAME, endkeyframe: UI_ANIMATION_KEYFRAME) -> windows_core::Result<()>; - fn RepeatBetweenKeyframes(&self, startkeyframe: UI_ANIMATION_KEYFRAME, endkeyframe: UI_ANIMATION_KEYFRAME, crepetition: f64, repeatmode: UI_ANIMATION_REPEAT_MODE, piterationchangehandler: windows_core::Ref, id: usize, fregisterfornextanimationevent: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn RepeatBetweenKeyframes(&self, startkeyframe: UI_ANIMATION_KEYFRAME, endkeyframe: UI_ANIMATION_KEYFRAME, crepetition: f64, repeatmode: UI_ANIMATION_REPEAT_MODE, piterationchangehandler: windows_core::Ref, id: usize, fregisterfornextanimationevent: windows_core::BOOL) -> windows_core::Result<()>; fn HoldVariable(&self, variable: windows_core::Ref) -> windows_core::Result<()>; fn SetLongestAcceptableDelay(&self, delay: f64) -> windows_core::Result<()>; fn SetSkipDuration(&self, secondsduration: f64) -> windows_core::Result<()>; @@ -1597,7 +1597,7 @@ pub trait IUIAnimationStoryboard2_Impl: windows_core::IUnknownImpl { fn GetTag(&self, object: windows_core::OutRef<'_, windows_core::IUnknown>, id: *mut u32) -> windows_core::Result<()>; fn GetStatus(&self) -> windows_core::Result; fn GetElapsedTime(&self) -> windows_core::Result; - fn SetStoryboardEventHandler(&self, handler: windows_core::Ref, fregisterstatuschangefornextanimationevent: super::super::Foundation::BOOL, fregisterupdatefornextanimationevent: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetStoryboardEventHandler(&self, handler: windows_core::Ref, fregisterstatuschangefornextanimationevent: windows_core::BOOL, fregisterupdatefornextanimationevent: windows_core::BOOL) -> windows_core::Result<()>; } impl IUIAnimationStoryboard2_Vtbl { pub const fn new() -> Self { @@ -1643,7 +1643,7 @@ impl IUIAnimationStoryboard2_Vtbl { IUIAnimationStoryboard2_Impl::AddTransitionBetweenKeyframes(this, core::mem::transmute_copy(&variable), core::mem::transmute_copy(&transition), core::mem::transmute_copy(&startkeyframe), core::mem::transmute_copy(&endkeyframe)).into() } } - unsafe extern "system" fn RepeatBetweenKeyframes(this: *mut core::ffi::c_void, startkeyframe: UI_ANIMATION_KEYFRAME, endkeyframe: UI_ANIMATION_KEYFRAME, crepetition: f64, repeatmode: UI_ANIMATION_REPEAT_MODE, piterationchangehandler: *mut core::ffi::c_void, id: usize, fregisterfornextanimationevent: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RepeatBetweenKeyframes(this: *mut core::ffi::c_void, startkeyframe: UI_ANIMATION_KEYFRAME, endkeyframe: UI_ANIMATION_KEYFRAME, crepetition: f64, repeatmode: UI_ANIMATION_REPEAT_MODE, piterationchangehandler: *mut core::ffi::c_void, id: usize, fregisterfornextanimationevent: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard2_Impl::RepeatBetweenKeyframes(this, core::mem::transmute_copy(&startkeyframe), core::mem::transmute_copy(&endkeyframe), core::mem::transmute_copy(&crepetition), core::mem::transmute_copy(&repeatmode), core::mem::transmute_copy(&piterationchangehandler), core::mem::transmute_copy(&id), core::mem::transmute_copy(&fregisterfornextanimationevent)).into() @@ -1727,7 +1727,7 @@ impl IUIAnimationStoryboard2_Vtbl { } } } - unsafe extern "system" fn SetStoryboardEventHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, fregisterstatuschangefornextanimationevent: super::super::Foundation::BOOL, fregisterupdatefornextanimationevent: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetStoryboardEventHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, fregisterstatuschangefornextanimationevent: windows_core::BOOL, fregisterupdatefornextanimationevent: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationStoryboard2_Impl::SetStoryboardEventHandler(this, core::mem::transmute_copy(&handler), core::mem::transmute_copy(&fregisterstatuschangefornextanimationevent), core::mem::transmute_copy(&fregisterupdatefornextanimationevent)).into() @@ -3532,8 +3532,8 @@ pub struct IUIAnimationVariable2_Vtbl { pub SetRoundingMode: unsafe extern "system" fn(*mut core::ffi::c_void, UI_ANIMATION_ROUNDING_MODE) -> windows_core::HRESULT, pub SetTag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetTag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub SetVariableChangeHandler: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetVariableIntegerChangeHandler: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetVariableChangeHandler: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub SetVariableIntegerChangeHandler: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetVariableCurveChangeHandler: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Graphics_DirectComposition")] @@ -3561,8 +3561,8 @@ pub trait IUIAnimationVariable2_Impl: windows_core::IUnknownImpl { fn SetRoundingMode(&self, mode: UI_ANIMATION_ROUNDING_MODE) -> windows_core::Result<()>; fn SetTag(&self, object: windows_core::Ref, id: u32) -> windows_core::Result<()>; fn GetTag(&self, object: windows_core::OutRef<'_, windows_core::IUnknown>, id: *mut u32) -> windows_core::Result<()>; - fn SetVariableChangeHandler(&self, handler: windows_core::Ref, fregisterfornextanimationevent: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetVariableIntegerChangeHandler(&self, handler: windows_core::Ref, fregisterfornextanimationevent: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetVariableChangeHandler(&self, handler: windows_core::Ref, fregisterfornextanimationevent: windows_core::BOOL) -> windows_core::Result<()>; + fn SetVariableIntegerChangeHandler(&self, handler: windows_core::Ref, fregisterfornextanimationevent: windows_core::BOOL) -> windows_core::Result<()>; fn SetVariableCurveChangeHandler(&self, handler: windows_core::Ref) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_DirectComposition")] @@ -3754,13 +3754,13 @@ impl IUIAnimationVariable2_Vtbl { IUIAnimationVariable2_Impl::GetTag(this, core::mem::transmute_copy(&object), core::mem::transmute_copy(&id)).into() } } - unsafe extern "system" fn SetVariableChangeHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, fregisterfornextanimationevent: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetVariableChangeHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, fregisterfornextanimationevent: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::SetVariableChangeHandler(this, core::mem::transmute_copy(&handler), core::mem::transmute_copy(&fregisterfornextanimationevent)).into() } } - unsafe extern "system" fn SetVariableIntegerChangeHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, fregisterfornextanimationevent: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetVariableIntegerChangeHandler(this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, fregisterfornextanimationevent: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUIAnimationVariable2_Impl::SetVariableIntegerChangeHandler(this, core::mem::transmute_copy(&handler), core::mem::transmute_copy(&fregisterfornextanimationevent)).into() diff --git a/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs index 98d89ed42d..164b7a75f1 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs @@ -1,52 +1,52 @@ #[inline] -pub unsafe fn AssociateColorProfileWithDeviceA(pmachinename: P0, pprofilename: P1, pdevicename: P2) -> super::super::Foundation::BOOL +pub unsafe fn AssociateColorProfileWithDeviceA(pmachinename: P0, pprofilename: P1, pdevicename: P2) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn AssociateColorProfileWithDeviceA(pmachinename : windows_core::PCSTR, pprofilename : windows_core::PCSTR, pdevicename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn AssociateColorProfileWithDeviceA(pmachinename : windows_core::PCSTR, pprofilename : windows_core::PCSTR, pdevicename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { AssociateColorProfileWithDeviceA(pmachinename.param().abi(), pprofilename.param().abi(), pdevicename.param().abi()) } } #[inline] -pub unsafe fn AssociateColorProfileWithDeviceW(pmachinename: P0, pprofilename: P1, pdevicename: P2) -> super::super::Foundation::BOOL +pub unsafe fn AssociateColorProfileWithDeviceW(pmachinename: P0, pprofilename: P1, pdevicename: P2) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn AssociateColorProfileWithDeviceW(pmachinename : windows_core::PCWSTR, pprofilename : windows_core::PCWSTR, pdevicename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn AssociateColorProfileWithDeviceW(pmachinename : windows_core::PCWSTR, pprofilename : windows_core::PCWSTR, pdevicename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { AssociateColorProfileWithDeviceW(pmachinename.param().abi(), pprofilename.param().abi(), pdevicename.param().abi()) } } #[inline] -pub unsafe fn CMCheckColors(hcmtransform: isize, lpainputcolors: *const COLOR, ncolors: u32, ctinput: COLORTYPE, lparesult: *mut u8) -> super::super::Foundation::BOOL { - windows_targets::link!("icm32.dll" "system" fn CMCheckColors(hcmtransform : isize, lpainputcolors : *const COLOR, ncolors : u32, ctinput : COLORTYPE, lparesult : *mut u8) -> super::super::Foundation:: BOOL); +pub unsafe fn CMCheckColors(hcmtransform: isize, lpainputcolors: *const COLOR, ncolors: u32, ctinput: COLORTYPE, lparesult: *mut u8) -> windows_core::BOOL { + windows_targets::link!("icm32.dll" "system" fn CMCheckColors(hcmtransform : isize, lpainputcolors : *const COLOR, ncolors : u32, ctinput : COLORTYPE, lparesult : *mut u8) -> windows_core::BOOL); unsafe { CMCheckColors(hcmtransform, lpainputcolors, ncolors, ctinput, lparesult as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn CMCheckColorsInGamut(hcmtransform: isize, lpargbtriple: *const super::super::Graphics::Gdi::RGBTRIPLE, lparesult: *mut u8, ncount: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("icm32.dll" "system" fn CMCheckColorsInGamut(hcmtransform : isize, lpargbtriple : *const super::super::Graphics::Gdi:: RGBTRIPLE, lparesult : *mut u8, ncount : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn CMCheckColorsInGamut(hcmtransform: isize, lpargbtriple: *const super::super::Graphics::Gdi::RGBTRIPLE, lparesult: *mut u8, ncount: u32) -> windows_core::BOOL { + windows_targets::link!("icm32.dll" "system" fn CMCheckColorsInGamut(hcmtransform : isize, lpargbtriple : *const super::super::Graphics::Gdi:: RGBTRIPLE, lparesult : *mut u8, ncount : u32) -> windows_core::BOOL); unsafe { CMCheckColorsInGamut(hcmtransform, lpargbtriple, lparesult as _, ncount) } } #[inline] -pub unsafe fn CMCheckRGBs(hcmtransform: isize, lpsrcbits: *const core::ffi::c_void, bminput: BMFORMAT, dwwidth: u32, dwheight: u32, dwstride: u32, lparesult: *mut u8, pfncallback: LPBMCALLBACKFN, ulcallbackdata: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { - windows_targets::link!("icm32.dll" "system" fn CMCheckRGBs(hcmtransform : isize, lpsrcbits : *const core::ffi::c_void, bminput : BMFORMAT, dwwidth : u32, dwheight : u32, dwstride : u32, lparesult : *mut u8, pfncallback : LPBMCALLBACKFN, ulcallbackdata : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); +pub unsafe fn CMCheckRGBs(hcmtransform: isize, lpsrcbits: *const core::ffi::c_void, bminput: BMFORMAT, dwwidth: u32, dwheight: u32, dwstride: u32, lparesult: *mut u8, pfncallback: LPBMCALLBACKFN, ulcallbackdata: super::super::Foundation::LPARAM) -> windows_core::BOOL { + windows_targets::link!("icm32.dll" "system" fn CMCheckRGBs(hcmtransform : isize, lpsrcbits : *const core::ffi::c_void, bminput : BMFORMAT, dwwidth : u32, dwheight : u32, dwstride : u32, lparesult : *mut u8, pfncallback : LPBMCALLBACKFN, ulcallbackdata : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { CMCheckRGBs(hcmtransform, lpsrcbits, bminput, dwwidth, dwheight, dwstride, lparesult as _, pfncallback, ulcallbackdata) } } #[inline] -pub unsafe fn CMConvertColorNameToIndex(hprofile: isize, pacolorname: *const *const i8, paindex: *mut u32, dwcount: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("icm32.dll" "system" fn CMConvertColorNameToIndex(hprofile : isize, pacolorname : *const *const i8, paindex : *mut u32, dwcount : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn CMConvertColorNameToIndex(hprofile: isize, pacolorname: *const *const i8, paindex: *mut u32, dwcount: u32) -> windows_core::BOOL { + windows_targets::link!("icm32.dll" "system" fn CMConvertColorNameToIndex(hprofile : isize, pacolorname : *const *const i8, paindex : *mut u32, dwcount : u32) -> windows_core::BOOL); unsafe { CMConvertColorNameToIndex(hprofile, pacolorname, paindex as _, dwcount) } } #[inline] -pub unsafe fn CMConvertIndexToColorName(hprofile: isize, paindex: *const u32, pacolorname: *mut *mut i8, dwcount: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("icm32.dll" "system" fn CMConvertIndexToColorName(hprofile : isize, paindex : *const u32, pacolorname : *mut *mut i8, dwcount : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn CMConvertIndexToColorName(hprofile: isize, paindex: *const u32, pacolorname: *mut *mut i8, dwcount: u32) -> windows_core::BOOL { + windows_targets::link!("icm32.dll" "system" fn CMConvertIndexToColorName(hprofile : isize, paindex : *const u32, pacolorname : *mut *mut i8, dwcount : u32) -> windows_core::BOOL); unsafe { CMConvertIndexToColorName(hprofile, paindex, pacolorname as _, dwcount) } } #[inline] -pub unsafe fn CMCreateDeviceLinkProfile(pahprofiles: &[isize], padwintents: &[u32], dwflags: u32, lpprofiledata: *mut *mut u8) -> super::super::Foundation::BOOL { - windows_targets::link!("icm32.dll" "system" fn CMCreateDeviceLinkProfile(pahprofiles : *const isize, nprofiles : u32, padwintents : *const u32, nintents : u32, dwflags : u32, lpprofiledata : *mut *mut u8) -> super::super::Foundation:: BOOL); +pub unsafe fn CMCreateDeviceLinkProfile(pahprofiles: &[isize], padwintents: &[u32], dwflags: u32, lpprofiledata: *mut *mut u8) -> windows_core::BOOL { + windows_targets::link!("icm32.dll" "system" fn CMCreateDeviceLinkProfile(pahprofiles : *const isize, nprofiles : u32, padwintents : *const u32, nintents : u32, dwflags : u32, lpprofiledata : *mut *mut u8) -> windows_core::BOOL); unsafe { CMCreateDeviceLinkProfile(core::mem::transmute(pahprofiles.as_ptr()), pahprofiles.len().try_into().unwrap(), core::mem::transmute(padwintents.as_ptr()), padwintents.len().try_into().unwrap(), dwflags, lpprofiledata as _) } } #[inline] @@ -56,14 +56,14 @@ pub unsafe fn CMCreateMultiProfileTransform(pahprofiles: &[isize], padwintents: } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn CMCreateProfile(lpcolorspace: *mut LOGCOLORSPACEA, lpprofiledata: *mut *mut core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("icm32.dll" "system" fn CMCreateProfile(lpcolorspace : *mut LOGCOLORSPACEA, lpprofiledata : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn CMCreateProfile(lpcolorspace: *mut LOGCOLORSPACEA, lpprofiledata: *mut *mut core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("icm32.dll" "system" fn CMCreateProfile(lpcolorspace : *mut LOGCOLORSPACEA, lpprofiledata : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { CMCreateProfile(lpcolorspace as _, lpprofiledata as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn CMCreateProfileW(lpcolorspace: *mut LOGCOLORSPACEW, lpprofiledata: *mut *mut core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("icm32.dll" "system" fn CMCreateProfileW(lpcolorspace : *mut LOGCOLORSPACEW, lpprofiledata : *mut *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn CMCreateProfileW(lpcolorspace: *mut LOGCOLORSPACEW, lpprofiledata: *mut *mut core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("icm32.dll" "system" fn CMCreateProfileW(lpcolorspace : *mut LOGCOLORSPACEW, lpprofiledata : *mut *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { CMCreateProfileW(lpcolorspace as _, lpprofiledata as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -91,8 +91,8 @@ pub unsafe fn CMCreateTransformW(lpcolorspace: *const LOGCOLORSPACEW, lpdevchara unsafe { CMCreateTransformW(lpcolorspace, lpdevcharacter, lptargetdevcharacter) } } #[inline] -pub unsafe fn CMDeleteTransform(hcmtransform: isize) -> super::super::Foundation::BOOL { - windows_targets::link!("icm32.dll" "system" fn CMDeleteTransform(hcmtransform : isize) -> super::super::Foundation:: BOOL); +pub unsafe fn CMDeleteTransform(hcmtransform: isize) -> windows_core::BOOL { + windows_targets::link!("icm32.dll" "system" fn CMDeleteTransform(hcmtransform : isize) -> windows_core::BOOL); unsafe { CMDeleteTransform(hcmtransform) } } #[inline] @@ -101,66 +101,66 @@ pub unsafe fn CMGetInfo(dwinfo: u32) -> u32 { unsafe { CMGetInfo(dwinfo) } } #[inline] -pub unsafe fn CMGetNamedProfileInfo(hprofile: isize, pnamedprofileinfo: *mut NAMED_PROFILE_INFO) -> super::super::Foundation::BOOL { - windows_targets::link!("icm32.dll" "system" fn CMGetNamedProfileInfo(hprofile : isize, pnamedprofileinfo : *mut NAMED_PROFILE_INFO) -> super::super::Foundation:: BOOL); +pub unsafe fn CMGetNamedProfileInfo(hprofile: isize, pnamedprofileinfo: *mut NAMED_PROFILE_INFO) -> windows_core::BOOL { + windows_targets::link!("icm32.dll" "system" fn CMGetNamedProfileInfo(hprofile : isize, pnamedprofileinfo : *mut NAMED_PROFILE_INFO) -> windows_core::BOOL); unsafe { CMGetNamedProfileInfo(hprofile, pnamedprofileinfo as _) } } #[inline] -pub unsafe fn CMIsProfileValid(hprofile: isize, lpbvalid: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { - windows_targets::link!("icm32.dll" "system" fn CMIsProfileValid(hprofile : isize, lpbvalid : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn CMIsProfileValid(hprofile: isize, lpbvalid: *mut windows_core::BOOL) -> windows_core::BOOL { + windows_targets::link!("icm32.dll" "system" fn CMIsProfileValid(hprofile : isize, lpbvalid : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { CMIsProfileValid(hprofile, lpbvalid as _) } } #[inline] -pub unsafe fn CMTranslateColors(hcmtransform: isize, lpainputcolors: *const COLOR, ncolors: u32, ctinput: COLORTYPE, lpaoutputcolors: *mut COLOR, ctoutput: COLORTYPE) -> super::super::Foundation::BOOL { - windows_targets::link!("icm32.dll" "system" fn CMTranslateColors(hcmtransform : isize, lpainputcolors : *const COLOR, ncolors : u32, ctinput : COLORTYPE, lpaoutputcolors : *mut COLOR, ctoutput : COLORTYPE) -> super::super::Foundation:: BOOL); +pub unsafe fn CMTranslateColors(hcmtransform: isize, lpainputcolors: *const COLOR, ncolors: u32, ctinput: COLORTYPE, lpaoutputcolors: *mut COLOR, ctoutput: COLORTYPE) -> windows_core::BOOL { + windows_targets::link!("icm32.dll" "system" fn CMTranslateColors(hcmtransform : isize, lpainputcolors : *const COLOR, ncolors : u32, ctinput : COLORTYPE, lpaoutputcolors : *mut COLOR, ctoutput : COLORTYPE) -> windows_core::BOOL); unsafe { CMTranslateColors(hcmtransform, lpainputcolors, ncolors, ctinput, lpaoutputcolors as _, ctoutput) } } #[inline] -pub unsafe fn CMTranslateRGB(hcmtransform: isize, colorref: super::super::Foundation::COLORREF, lpcolorref: *mut u32, dwflags: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("icm32.dll" "system" fn CMTranslateRGB(hcmtransform : isize, colorref : super::super::Foundation:: COLORREF, lpcolorref : *mut u32, dwflags : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn CMTranslateRGB(hcmtransform: isize, colorref: super::super::Foundation::COLORREF, lpcolorref: *mut u32, dwflags: u32) -> windows_core::BOOL { + windows_targets::link!("icm32.dll" "system" fn CMTranslateRGB(hcmtransform : isize, colorref : super::super::Foundation:: COLORREF, lpcolorref : *mut u32, dwflags : u32) -> windows_core::BOOL); unsafe { CMTranslateRGB(hcmtransform, colorref, lpcolorref as _, dwflags) } } #[inline] -pub unsafe fn CMTranslateRGBs(hcmtransform: isize, lpsrcbits: *const core::ffi::c_void, bminput: BMFORMAT, dwwidth: u32, dwheight: u32, dwstride: u32, lpdestbits: *mut core::ffi::c_void, bmoutput: BMFORMAT, dwtranslatedirection: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("icm32.dll" "system" fn CMTranslateRGBs(hcmtransform : isize, lpsrcbits : *const core::ffi::c_void, bminput : BMFORMAT, dwwidth : u32, dwheight : u32, dwstride : u32, lpdestbits : *mut core::ffi::c_void, bmoutput : BMFORMAT, dwtranslatedirection : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn CMTranslateRGBs(hcmtransform: isize, lpsrcbits: *const core::ffi::c_void, bminput: BMFORMAT, dwwidth: u32, dwheight: u32, dwstride: u32, lpdestbits: *mut core::ffi::c_void, bmoutput: BMFORMAT, dwtranslatedirection: u32) -> windows_core::BOOL { + windows_targets::link!("icm32.dll" "system" fn CMTranslateRGBs(hcmtransform : isize, lpsrcbits : *const core::ffi::c_void, bminput : BMFORMAT, dwwidth : u32, dwheight : u32, dwstride : u32, lpdestbits : *mut core::ffi::c_void, bmoutput : BMFORMAT, dwtranslatedirection : u32) -> windows_core::BOOL); unsafe { CMTranslateRGBs(hcmtransform, lpsrcbits, bminput, dwwidth, dwheight, dwstride, lpdestbits as _, bmoutput, dwtranslatedirection) } } #[inline] -pub unsafe fn CMTranslateRGBsExt(hcmtransform: isize, lpsrcbits: *const core::ffi::c_void, bminput: BMFORMAT, dwwidth: u32, dwheight: u32, dwinputstride: u32, lpdestbits: *mut core::ffi::c_void, bmoutput: BMFORMAT, dwoutputstride: u32, lpfncallback: LPBMCALLBACKFN, ulcallbackdata: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { - windows_targets::link!("icm32.dll" "system" fn CMTranslateRGBsExt(hcmtransform : isize, lpsrcbits : *const core::ffi::c_void, bminput : BMFORMAT, dwwidth : u32, dwheight : u32, dwinputstride : u32, lpdestbits : *mut core::ffi::c_void, bmoutput : BMFORMAT, dwoutputstride : u32, lpfncallback : LPBMCALLBACKFN, ulcallbackdata : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); +pub unsafe fn CMTranslateRGBsExt(hcmtransform: isize, lpsrcbits: *const core::ffi::c_void, bminput: BMFORMAT, dwwidth: u32, dwheight: u32, dwinputstride: u32, lpdestbits: *mut core::ffi::c_void, bmoutput: BMFORMAT, dwoutputstride: u32, lpfncallback: LPBMCALLBACKFN, ulcallbackdata: super::super::Foundation::LPARAM) -> windows_core::BOOL { + windows_targets::link!("icm32.dll" "system" fn CMTranslateRGBsExt(hcmtransform : isize, lpsrcbits : *const core::ffi::c_void, bminput : BMFORMAT, dwwidth : u32, dwheight : u32, dwinputstride : u32, lpdestbits : *mut core::ffi::c_void, bmoutput : BMFORMAT, dwoutputstride : u32, lpfncallback : LPBMCALLBACKFN, ulcallbackdata : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { CMTranslateRGBsExt(hcmtransform, lpsrcbits, bminput, dwwidth, dwheight, dwinputstride, lpdestbits as _, bmoutput, dwoutputstride, lpfncallback, ulcallbackdata) } } #[inline] -pub unsafe fn CheckBitmapBits(hcolortransform: isize, psrcbits: *const core::ffi::c_void, bminput: BMFORMAT, dwwidth: u32, dwheight: u32, dwstride: u32, paresult: *mut u8, pfncallback: Option, lpcallbackdata: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn CheckBitmapBits(hcolortransform : isize, psrcbits : *const core::ffi::c_void, bminput : BMFORMAT, dwwidth : u32, dwheight : u32, dwstride : u32, paresult : *mut u8, pfncallback : LPBMCALLBACKFN, lpcallbackdata : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); +pub unsafe fn CheckBitmapBits(hcolortransform: isize, psrcbits: *const core::ffi::c_void, bminput: BMFORMAT, dwwidth: u32, dwheight: u32, dwstride: u32, paresult: *mut u8, pfncallback: Option, lpcallbackdata: Option) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn CheckBitmapBits(hcolortransform : isize, psrcbits : *const core::ffi::c_void, bminput : BMFORMAT, dwwidth : u32, dwheight : u32, dwstride : u32, paresult : *mut u8, pfncallback : LPBMCALLBACKFN, lpcallbackdata : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { CheckBitmapBits(hcolortransform, psrcbits, bminput, dwwidth, dwheight, dwstride, paresult as _, pfncallback.unwrap_or(core::mem::zeroed()) as _, lpcallbackdata.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn CheckColors(hcolortransform: isize, painputcolors: *const COLOR, ncolors: u32, ctinput: COLORTYPE, paresult: *mut u8) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn CheckColors(hcolortransform : isize, painputcolors : *const COLOR, ncolors : u32, ctinput : COLORTYPE, paresult : *mut u8) -> super::super::Foundation:: BOOL); +pub unsafe fn CheckColors(hcolortransform: isize, painputcolors: *const COLOR, ncolors: u32, ctinput: COLORTYPE, paresult: *mut u8) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn CheckColors(hcolortransform : isize, painputcolors : *const COLOR, ncolors : u32, ctinput : COLORTYPE, paresult : *mut u8) -> windows_core::BOOL); unsafe { CheckColors(hcolortransform, painputcolors, ncolors, ctinput, paresult as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn CheckColorsInGamut(hdc: super::super::Graphics::Gdi::HDC, lprgbtriple: *const super::super::Graphics::Gdi::RGBTRIPLE, dlpbuffer: *mut core::ffi::c_void, ncount: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn CheckColorsInGamut(hdc : super::super::Graphics::Gdi:: HDC, lprgbtriple : *const super::super::Graphics::Gdi:: RGBTRIPLE, dlpbuffer : *mut core::ffi::c_void, ncount : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn CheckColorsInGamut(hdc: super::super::Graphics::Gdi::HDC, lprgbtriple: *const super::super::Graphics::Gdi::RGBTRIPLE, dlpbuffer: *mut core::ffi::c_void, ncount: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn CheckColorsInGamut(hdc : super::super::Graphics::Gdi:: HDC, lprgbtriple : *const super::super::Graphics::Gdi:: RGBTRIPLE, dlpbuffer : *mut core::ffi::c_void, ncount : u32) -> windows_core::BOOL); unsafe { CheckColorsInGamut(hdc, lprgbtriple, dlpbuffer as _, ncount) } } #[inline] -pub unsafe fn CloseColorProfile(hprofile: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn CloseColorProfile(hprofile : isize) -> super::super::Foundation:: BOOL); +pub unsafe fn CloseColorProfile(hprofile: Option) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn CloseColorProfile(hprofile : isize) -> windows_core::BOOL); unsafe { CloseColorProfile(hprofile.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ColorCorrectPalette(hdc: super::super::Graphics::Gdi::HDC, hpal: super::super::Graphics::Gdi::HPALETTE, defirst: u32, num: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn ColorCorrectPalette(hdc : super::super::Graphics::Gdi:: HDC, hpal : super::super::Graphics::Gdi:: HPALETTE, defirst : u32, num : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn ColorCorrectPalette(hdc: super::super::Graphics::Gdi::HDC, hpal: super::super::Graphics::Gdi::HPALETTE, defirst: u32, num: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn ColorCorrectPalette(hdc : super::super::Graphics::Gdi:: HDC, hpal : super::super::Graphics::Gdi:: HPALETTE, defirst : u32, num : u32) -> windows_core::BOOL); unsafe { ColorCorrectPalette(hdc, hpal, defirst, num) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ColorMatchToTarget(hdc: super::super::Graphics::Gdi::HDC, hdctarget: super::super::Graphics::Gdi::HDC, action: COLOR_MATCH_TO_TARGET_ACTION) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn ColorMatchToTarget(hdc : super::super::Graphics::Gdi:: HDC, hdctarget : super::super::Graphics::Gdi:: HDC, action : COLOR_MATCH_TO_TARGET_ACTION) -> super::super::Foundation:: BOOL); +pub unsafe fn ColorMatchToTarget(hdc: super::super::Graphics::Gdi::HDC, hdctarget: super::super::Graphics::Gdi::HDC, action: COLOR_MATCH_TO_TARGET_ACTION) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn ColorMatchToTarget(hdc : super::super::Graphics::Gdi:: HDC, hdctarget : super::super::Graphics::Gdi:: HDC, action : COLOR_MATCH_TO_TARGET_ACTION) -> windows_core::BOOL); unsafe { ColorMatchToTarget(hdc, hdctarget, action) } } #[inline] @@ -168,7 +168,7 @@ pub unsafe fn ColorProfileAddDisplayAssociation(scope: WCS_PROFILE_MANAGEMEN where P1: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn ColorProfileAddDisplayAssociation(scope : WCS_PROFILE_MANAGEMENT_SCOPE, profilename : windows_core::PCWSTR, targetadapterid : super::super::Foundation:: LUID, sourceid : u32, setasdefault : super::super::Foundation:: BOOL, associateasadvancedcolor : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("mscms.dll" "system" fn ColorProfileAddDisplayAssociation(scope : WCS_PROFILE_MANAGEMENT_SCOPE, profilename : windows_core::PCWSTR, targetadapterid : super::super::Foundation:: LUID, sourceid : u32, setasdefault : windows_core::BOOL, associateasadvancedcolor : windows_core::BOOL) -> windows_core::HRESULT); unsafe { ColorProfileAddDisplayAssociation(scope, profilename.param().abi(), core::mem::transmute(targetadapterid), sourceid, setasdefault.into(), associateasadvancedcolor.into()).ok() } } #[inline] @@ -197,7 +197,7 @@ pub unsafe fn ColorProfileRemoveDisplayAssociation(scope: WCS_PROFILE_MANAGE where P1: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn ColorProfileRemoveDisplayAssociation(scope : WCS_PROFILE_MANAGEMENT_SCOPE, profilename : windows_core::PCWSTR, targetadapterid : super::super::Foundation:: LUID, sourceid : u32, dissociateadvancedcolor : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("mscms.dll" "system" fn ColorProfileRemoveDisplayAssociation(scope : WCS_PROFILE_MANAGEMENT_SCOPE, profilename : windows_core::PCWSTR, targetadapterid : super::super::Foundation:: LUID, sourceid : u32, dissociateadvancedcolor : windows_core::BOOL) -> windows_core::HRESULT); unsafe { ColorProfileRemoveDisplayAssociation(scope, profilename.param().abi(), core::mem::transmute(targetadapterid), sourceid, dissociateadvancedcolor.into()).ok() } } #[inline] @@ -209,13 +209,13 @@ where unsafe { ColorProfileSetDisplayDefaultAssociation(scope, profilename.param().abi(), profiletype, profilesubtype, core::mem::transmute(targetadapterid), sourceid).ok() } } #[inline] -pub unsafe fn ConvertColorNameToIndex(hprofile: isize, pacolorname: *const *const i8, paindex: *mut u32, dwcount: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn ConvertColorNameToIndex(hprofile : isize, pacolorname : *const *const i8, paindex : *mut u32, dwcount : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn ConvertColorNameToIndex(hprofile: isize, pacolorname: *const *const i8, paindex: *mut u32, dwcount: u32) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn ConvertColorNameToIndex(hprofile : isize, pacolorname : *const *const i8, paindex : *mut u32, dwcount : u32) -> windows_core::BOOL); unsafe { ConvertColorNameToIndex(hprofile, pacolorname, paindex as _, dwcount) } } #[inline] -pub unsafe fn ConvertIndexToColorName(hprofile: isize, paindex: *const u32, pacolorname: *mut *mut i8, dwcount: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn ConvertIndexToColorName(hprofile : isize, paindex : *const u32, pacolorname : *mut *mut i8, dwcount : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn ConvertIndexToColorName(hprofile: isize, paindex: *const u32, pacolorname: *mut *mut i8, dwcount: u32) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn ConvertIndexToColorName(hprofile : isize, paindex : *const u32, pacolorname : *mut *mut i8, dwcount : u32) -> windows_core::BOOL); unsafe { ConvertIndexToColorName(hprofile, paindex, pacolorname as _, dwcount) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -243,8 +243,8 @@ pub unsafe fn CreateColorTransformW(plogcolorspace: *const LOGCOLORSPACEW, hdest unsafe { CreateColorTransformW(plogcolorspace, hdestprofile, htargetprofile, dwflags) } } #[inline] -pub unsafe fn CreateDeviceLinkProfile(hprofile: &[isize], padwintent: &[u32], dwflags: u32, pprofiledata: *mut *mut u8, indexpreferredcmm: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn CreateDeviceLinkProfile(hprofile : *const isize, nprofiles : u32, padwintent : *const u32, nintents : u32, dwflags : u32, pprofiledata : *mut *mut u8, indexpreferredcmm : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn CreateDeviceLinkProfile(hprofile: &[isize], padwintent: &[u32], dwflags: u32, pprofiledata: *mut *mut u8, indexpreferredcmm: u32) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn CreateDeviceLinkProfile(hprofile : *const isize, nprofiles : u32, padwintent : *const u32, nintents : u32, dwflags : u32, pprofiledata : *mut *mut u8, indexpreferredcmm : u32) -> windows_core::BOOL); unsafe { CreateDeviceLinkProfile(core::mem::transmute(hprofile.as_ptr()), hprofile.len().try_into().unwrap(), core::mem::transmute(padwintent.as_ptr()), padwintent.len().try_into().unwrap(), dwflags, pprofiledata as _, indexpreferredcmm) } } #[inline] @@ -254,60 +254,60 @@ pub unsafe fn CreateMultiProfileTransform(pahprofiles: &[isize], padwintent: &[u } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn CreateProfileFromLogColorSpaceA(plogcolorspace: *const LOGCOLORSPACEA, pprofile: *mut *mut u8) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn CreateProfileFromLogColorSpaceA(plogcolorspace : *const LOGCOLORSPACEA, pprofile : *mut *mut u8) -> super::super::Foundation:: BOOL); +pub unsafe fn CreateProfileFromLogColorSpaceA(plogcolorspace: *const LOGCOLORSPACEA, pprofile: *mut *mut u8) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn CreateProfileFromLogColorSpaceA(plogcolorspace : *const LOGCOLORSPACEA, pprofile : *mut *mut u8) -> windows_core::BOOL); unsafe { CreateProfileFromLogColorSpaceA(plogcolorspace, pprofile as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn CreateProfileFromLogColorSpaceW(plogcolorspace: *const LOGCOLORSPACEW, pprofile: *mut *mut u8) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn CreateProfileFromLogColorSpaceW(plogcolorspace : *const LOGCOLORSPACEW, pprofile : *mut *mut u8) -> super::super::Foundation:: BOOL); +pub unsafe fn CreateProfileFromLogColorSpaceW(plogcolorspace: *const LOGCOLORSPACEW, pprofile: *mut *mut u8) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn CreateProfileFromLogColorSpaceW(plogcolorspace : *const LOGCOLORSPACEW, pprofile : *mut *mut u8) -> windows_core::BOOL); unsafe { CreateProfileFromLogColorSpaceW(plogcolorspace, pprofile as _) } } #[inline] -pub unsafe fn DeleteColorSpace(hcs: HCOLORSPACE) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn DeleteColorSpace(hcs : HCOLORSPACE) -> super::super::Foundation:: BOOL); +pub unsafe fn DeleteColorSpace(hcs: HCOLORSPACE) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn DeleteColorSpace(hcs : HCOLORSPACE) -> windows_core::BOOL); unsafe { DeleteColorSpace(hcs) } } #[inline] -pub unsafe fn DeleteColorTransform(hxform: isize) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn DeleteColorTransform(hxform : isize) -> super::super::Foundation:: BOOL); +pub unsafe fn DeleteColorTransform(hxform: isize) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn DeleteColorTransform(hxform : isize) -> windows_core::BOOL); unsafe { DeleteColorTransform(hxform) } } #[inline] -pub unsafe fn DisassociateColorProfileFromDeviceA(pmachinename: P0, pprofilename: P1, pdevicename: P2) -> super::super::Foundation::BOOL +pub unsafe fn DisassociateColorProfileFromDeviceA(pmachinename: P0, pprofilename: P1, pdevicename: P2) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn DisassociateColorProfileFromDeviceA(pmachinename : windows_core::PCSTR, pprofilename : windows_core::PCSTR, pdevicename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn DisassociateColorProfileFromDeviceA(pmachinename : windows_core::PCSTR, pprofilename : windows_core::PCSTR, pdevicename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { DisassociateColorProfileFromDeviceA(pmachinename.param().abi(), pprofilename.param().abi(), pdevicename.param().abi()) } } #[inline] -pub unsafe fn DisassociateColorProfileFromDeviceW(pmachinename: P0, pprofilename: P1, pdevicename: P2) -> super::super::Foundation::BOOL +pub unsafe fn DisassociateColorProfileFromDeviceW(pmachinename: P0, pprofilename: P1, pdevicename: P2) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn DisassociateColorProfileFromDeviceW(pmachinename : windows_core::PCWSTR, pprofilename : windows_core::PCWSTR, pdevicename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn DisassociateColorProfileFromDeviceW(pmachinename : windows_core::PCWSTR, pprofilename : windows_core::PCWSTR, pdevicename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { DisassociateColorProfileFromDeviceW(pmachinename.param().abi(), pprofilename.param().abi(), pdevicename.param().abi()) } } #[inline] -pub unsafe fn EnumColorProfilesA(pmachinename: P0, penumrecord: *const ENUMTYPEA, penumerationbuffer: Option<*mut u8>, pdwsizeofenumerationbuffer: *mut u32, pnprofiles: Option<*mut u32>) -> super::super::Foundation::BOOL +pub unsafe fn EnumColorProfilesA(pmachinename: P0, penumrecord: *const ENUMTYPEA, penumerationbuffer: Option<*mut u8>, pdwsizeofenumerationbuffer: *mut u32, pnprofiles: Option<*mut u32>) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn EnumColorProfilesA(pmachinename : windows_core::PCSTR, penumrecord : *const ENUMTYPEA, penumerationbuffer : *mut u8, pdwsizeofenumerationbuffer : *mut u32, pnprofiles : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn EnumColorProfilesA(pmachinename : windows_core::PCSTR, penumrecord : *const ENUMTYPEA, penumerationbuffer : *mut u8, pdwsizeofenumerationbuffer : *mut u32, pnprofiles : *mut u32) -> windows_core::BOOL); unsafe { EnumColorProfilesA(pmachinename.param().abi(), penumrecord, penumerationbuffer.unwrap_or(core::mem::zeroed()) as _, pdwsizeofenumerationbuffer as _, pnprofiles.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn EnumColorProfilesW(pmachinename: P0, penumrecord: *const ENUMTYPEW, penumerationbuffer: Option<*mut u8>, pdwsizeofenumerationbuffer: *mut u32, pnprofiles: Option<*mut u32>) -> super::super::Foundation::BOOL +pub unsafe fn EnumColorProfilesW(pmachinename: P0, penumrecord: *const ENUMTYPEW, penumerationbuffer: Option<*mut u8>, pdwsizeofenumerationbuffer: *mut u32, pnprofiles: Option<*mut u32>) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn EnumColorProfilesW(pmachinename : windows_core::PCWSTR, penumrecord : *const ENUMTYPEW, penumerationbuffer : *mut u8, pdwsizeofenumerationbuffer : *mut u32, pnprofiles : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn EnumColorProfilesW(pmachinename : windows_core::PCWSTR, penumrecord : *const ENUMTYPEW, penumerationbuffer : *mut u8, pdwsizeofenumerationbuffer : *mut u32, pnprofiles : *mut u32) -> windows_core::BOOL); unsafe { EnumColorProfilesW(pmachinename.param().abi(), penumrecord, penumerationbuffer.unwrap_or(core::mem::zeroed()) as _, pdwsizeofenumerationbuffer as _, pnprofiles.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -328,40 +328,40 @@ pub unsafe fn GetCMMInfo(hcolortransform: isize, param1: u32) -> u32 { unsafe { GetCMMInfo(hcolortransform, param1) } } #[inline] -pub unsafe fn GetColorDirectoryA(pmachinename: P0, pbuffer: Option, pdwsize: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn GetColorDirectoryA(pmachinename: P0, pbuffer: Option, pdwsize: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn GetColorDirectoryA(pmachinename : windows_core::PCSTR, pbuffer : windows_core::PSTR, pdwsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn GetColorDirectoryA(pmachinename : windows_core::PCSTR, pbuffer : windows_core::PSTR, pdwsize : *mut u32) -> windows_core::BOOL); unsafe { GetColorDirectoryA(pmachinename.param().abi(), pbuffer.unwrap_or(core::mem::zeroed()) as _, pdwsize as _) } } #[inline] -pub unsafe fn GetColorDirectoryW(pmachinename: P0, pbuffer: Option, pdwsize: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn GetColorDirectoryW(pmachinename: P0, pbuffer: Option, pdwsize: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn GetColorDirectoryW(pmachinename : windows_core::PCWSTR, pbuffer : windows_core::PWSTR, pdwsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn GetColorDirectoryW(pmachinename : windows_core::PCWSTR, pbuffer : windows_core::PWSTR, pdwsize : *mut u32) -> windows_core::BOOL); unsafe { GetColorDirectoryW(pmachinename.param().abi(), pbuffer.unwrap_or(core::mem::zeroed()) as _, pdwsize as _) } } #[inline] -pub unsafe fn GetColorProfileElement(hprofile: isize, tag: u32, dwoffset: u32, pcbelement: *mut u32, pelement: Option<*mut core::ffi::c_void>, pbreference: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn GetColorProfileElement(hprofile : isize, tag : u32, dwoffset : u32, pcbelement : *mut u32, pelement : *mut core::ffi::c_void, pbreference : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn GetColorProfileElement(hprofile: isize, tag: u32, dwoffset: u32, pcbelement: *mut u32, pelement: Option<*mut core::ffi::c_void>, pbreference: *mut windows_core::BOOL) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn GetColorProfileElement(hprofile : isize, tag : u32, dwoffset : u32, pcbelement : *mut u32, pelement : *mut core::ffi::c_void, pbreference : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { GetColorProfileElement(hprofile, tag, dwoffset, pcbelement as _, pelement.unwrap_or(core::mem::zeroed()) as _, pbreference as _) } } #[inline] -pub unsafe fn GetColorProfileElementTag(hprofile: isize, dwindex: u32, ptag: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn GetColorProfileElementTag(hprofile : isize, dwindex : u32, ptag : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetColorProfileElementTag(hprofile: isize, dwindex: u32, ptag: *mut u32) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn GetColorProfileElementTag(hprofile : isize, dwindex : u32, ptag : *mut u32) -> windows_core::BOOL); unsafe { GetColorProfileElementTag(hprofile, dwindex, ptag as _) } } #[inline] -pub unsafe fn GetColorProfileFromHandle(hprofile: isize, pprofile: Option<*mut u8>, pcbprofile: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn GetColorProfileFromHandle(hprofile : isize, pprofile : *mut u8, pcbprofile : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetColorProfileFromHandle(hprofile: isize, pprofile: Option<*mut u8>, pcbprofile: *mut u32) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn GetColorProfileFromHandle(hprofile : isize, pprofile : *mut u8, pcbprofile : *mut u32) -> windows_core::BOOL); unsafe { GetColorProfileFromHandle(hprofile, pprofile.unwrap_or(core::mem::zeroed()) as _, pcbprofile as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn GetColorProfileHeader(hprofile: isize, pheader: *mut PROFILEHEADER) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn GetColorProfileHeader(hprofile : isize, pheader : *mut PROFILEHEADER) -> super::super::Foundation:: BOOL); +pub unsafe fn GetColorProfileHeader(hprofile: isize, pheader: *mut PROFILEHEADER) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn GetColorProfileHeader(hprofile : isize, pheader : *mut PROFILEHEADER) -> windows_core::BOOL); unsafe { GetColorProfileHeader(hprofile, pheader as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -371,102 +371,102 @@ pub unsafe fn GetColorSpace(hdc: super::super::Graphics::Gdi::HDC) -> HCOLORSPAC unsafe { GetColorSpace(hdc) } } #[inline] -pub unsafe fn GetCountColorProfileElements(hprofile: isize, pnelementcount: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn GetCountColorProfileElements(hprofile : isize, pnelementcount : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetCountColorProfileElements(hprofile: isize, pnelementcount: *mut u32) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn GetCountColorProfileElements(hprofile : isize, pnelementcount : *mut u32) -> windows_core::BOOL); unsafe { GetCountColorProfileElements(hprofile, pnelementcount as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn GetDeviceGammaRamp(hdc: super::super::Graphics::Gdi::HDC, lpramp: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetDeviceGammaRamp(hdc : super::super::Graphics::Gdi:: HDC, lpramp : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn GetDeviceGammaRamp(hdc: super::super::Graphics::Gdi::HDC, lpramp: *mut core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetDeviceGammaRamp(hdc : super::super::Graphics::Gdi:: HDC, lpramp : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { GetDeviceGammaRamp(hdc, lpramp as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn GetICMProfileA(hdc: super::super::Graphics::Gdi::HDC, pbufsize: *mut u32, pszfilename: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetICMProfileA(hdc : super::super::Graphics::Gdi:: HDC, pbufsize : *mut u32, pszfilename : windows_core::PSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn GetICMProfileA(hdc: super::super::Graphics::Gdi::HDC, pbufsize: *mut u32, pszfilename: Option) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetICMProfileA(hdc : super::super::Graphics::Gdi:: HDC, pbufsize : *mut u32, pszfilename : windows_core::PSTR) -> windows_core::BOOL); unsafe { GetICMProfileA(hdc, pbufsize as _, pszfilename.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn GetICMProfileW(hdc: super::super::Graphics::Gdi::HDC, pbufsize: *mut u32, pszfilename: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetICMProfileW(hdc : super::super::Graphics::Gdi:: HDC, pbufsize : *mut u32, pszfilename : windows_core::PWSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn GetICMProfileW(hdc: super::super::Graphics::Gdi::HDC, pbufsize: *mut u32, pszfilename: Option) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetICMProfileW(hdc : super::super::Graphics::Gdi:: HDC, pbufsize : *mut u32, pszfilename : windows_core::PWSTR) -> windows_core::BOOL); unsafe { GetICMProfileW(hdc, pbufsize as _, pszfilename.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn GetLogColorSpaceA(hcolorspace: HCOLORSPACE, lpbuffer: *mut LOGCOLORSPACEA, nsize: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetLogColorSpaceA(hcolorspace : HCOLORSPACE, lpbuffer : *mut LOGCOLORSPACEA, nsize : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetLogColorSpaceA(hcolorspace: HCOLORSPACE, lpbuffer: *mut LOGCOLORSPACEA, nsize: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetLogColorSpaceA(hcolorspace : HCOLORSPACE, lpbuffer : *mut LOGCOLORSPACEA, nsize : u32) -> windows_core::BOOL); unsafe { GetLogColorSpaceA(hcolorspace, lpbuffer as _, nsize) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn GetLogColorSpaceW(hcolorspace: HCOLORSPACE, lpbuffer: *mut LOGCOLORSPACEW, nsize: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn GetLogColorSpaceW(hcolorspace : HCOLORSPACE, lpbuffer : *mut LOGCOLORSPACEW, nsize : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetLogColorSpaceW(hcolorspace: HCOLORSPACE, lpbuffer: *mut LOGCOLORSPACEW, nsize: u32) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn GetLogColorSpaceW(hcolorspace : HCOLORSPACE, lpbuffer : *mut LOGCOLORSPACEW, nsize : u32) -> windows_core::BOOL); unsafe { GetLogColorSpaceW(hcolorspace, lpbuffer as _, nsize) } } #[inline] -pub unsafe fn GetNamedProfileInfo(hprofile: isize, pnamedprofileinfo: *mut NAMED_PROFILE_INFO) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn GetNamedProfileInfo(hprofile : isize, pnamedprofileinfo : *mut NAMED_PROFILE_INFO) -> super::super::Foundation:: BOOL); +pub unsafe fn GetNamedProfileInfo(hprofile: isize, pnamedprofileinfo: *mut NAMED_PROFILE_INFO) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn GetNamedProfileInfo(hprofile : isize, pnamedprofileinfo : *mut NAMED_PROFILE_INFO) -> windows_core::BOOL); unsafe { GetNamedProfileInfo(hprofile, pnamedprofileinfo as _) } } #[inline] -pub unsafe fn GetPS2ColorRenderingDictionary(hprofile: isize, dwintent: u32, pps2colorrenderingdictionary: Option<*mut u8>, pcbps2colorrenderingdictionary: *mut u32, pbbinary: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn GetPS2ColorRenderingDictionary(hprofile : isize, dwintent : u32, pps2colorrenderingdictionary : *mut u8, pcbps2colorrenderingdictionary : *mut u32, pbbinary : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn GetPS2ColorRenderingDictionary(hprofile: isize, dwintent: u32, pps2colorrenderingdictionary: Option<*mut u8>, pcbps2colorrenderingdictionary: *mut u32, pbbinary: *mut windows_core::BOOL) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn GetPS2ColorRenderingDictionary(hprofile : isize, dwintent : u32, pps2colorrenderingdictionary : *mut u8, pcbps2colorrenderingdictionary : *mut u32, pbbinary : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { GetPS2ColorRenderingDictionary(hprofile, dwintent, pps2colorrenderingdictionary.unwrap_or(core::mem::zeroed()) as _, pcbps2colorrenderingdictionary as _, pbbinary as _) } } #[inline] -pub unsafe fn GetPS2ColorRenderingIntent(hprofile: isize, dwintent: u32, pbuffer: Option<*mut u8>, pcbps2colorrenderingintent: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn GetPS2ColorRenderingIntent(hprofile : isize, dwintent : u32, pbuffer : *mut u8, pcbps2colorrenderingintent : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetPS2ColorRenderingIntent(hprofile: isize, dwintent: u32, pbuffer: Option<*mut u8>, pcbps2colorrenderingintent: *mut u32) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn GetPS2ColorRenderingIntent(hprofile : isize, dwintent : u32, pbuffer : *mut u8, pcbps2colorrenderingintent : *mut u32) -> windows_core::BOOL); unsafe { GetPS2ColorRenderingIntent(hprofile, dwintent, pbuffer.unwrap_or(core::mem::zeroed()) as _, pcbps2colorrenderingintent as _) } } #[inline] -pub unsafe fn GetPS2ColorSpaceArray(hprofile: isize, dwintent: u32, dwcsatype: u32, pps2colorspacearray: Option<*mut u8>, pcbps2colorspacearray: *mut u32, pbbinary: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn GetPS2ColorSpaceArray(hprofile : isize, dwintent : u32, dwcsatype : u32, pps2colorspacearray : *mut u8, pcbps2colorspacearray : *mut u32, pbbinary : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn GetPS2ColorSpaceArray(hprofile: isize, dwintent: u32, dwcsatype: u32, pps2colorspacearray: Option<*mut u8>, pcbps2colorspacearray: *mut u32, pbbinary: *mut windows_core::BOOL) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn GetPS2ColorSpaceArray(hprofile : isize, dwintent : u32, dwcsatype : u32, pps2colorspacearray : *mut u8, pcbps2colorspacearray : *mut u32, pbbinary : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { GetPS2ColorSpaceArray(hprofile, dwintent, dwcsatype, pps2colorspacearray.unwrap_or(core::mem::zeroed()) as _, pcbps2colorspacearray as _, pbbinary as _) } } #[inline] -pub unsafe fn GetStandardColorSpaceProfileA(pmachinename: P0, dwscs: u32, pbuffer: Option, pcbsize: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn GetStandardColorSpaceProfileA(pmachinename: P0, dwscs: u32, pbuffer: Option, pcbsize: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn GetStandardColorSpaceProfileA(pmachinename : windows_core::PCSTR, dwscs : u32, pbuffer : windows_core::PSTR, pcbsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn GetStandardColorSpaceProfileA(pmachinename : windows_core::PCSTR, dwscs : u32, pbuffer : windows_core::PSTR, pcbsize : *mut u32) -> windows_core::BOOL); unsafe { GetStandardColorSpaceProfileA(pmachinename.param().abi(), dwscs, pbuffer.unwrap_or(core::mem::zeroed()) as _, pcbsize as _) } } #[inline] -pub unsafe fn GetStandardColorSpaceProfileW(pmachinename: P0, dwscs: u32, pbuffer: Option, pcbsize: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn GetStandardColorSpaceProfileW(pmachinename: P0, dwscs: u32, pbuffer: Option, pcbsize: *mut u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn GetStandardColorSpaceProfileW(pmachinename : windows_core::PCWSTR, dwscs : u32, pbuffer : windows_core::PWSTR, pcbsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn GetStandardColorSpaceProfileW(pmachinename : windows_core::PCWSTR, dwscs : u32, pbuffer : windows_core::PWSTR, pcbsize : *mut u32) -> windows_core::BOOL); unsafe { GetStandardColorSpaceProfileW(pmachinename.param().abi(), dwscs, pbuffer.unwrap_or(core::mem::zeroed()) as _, pcbsize as _) } } #[inline] -pub unsafe fn InstallColorProfileA(pmachinename: P0, pprofilename: P1) -> super::super::Foundation::BOOL +pub unsafe fn InstallColorProfileA(pmachinename: P0, pprofilename: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn InstallColorProfileA(pmachinename : windows_core::PCSTR, pprofilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn InstallColorProfileA(pmachinename : windows_core::PCSTR, pprofilename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { InstallColorProfileA(pmachinename.param().abi(), pprofilename.param().abi()) } } #[inline] -pub unsafe fn InstallColorProfileW(pmachinename: P0, pprofilename: P1) -> super::super::Foundation::BOOL +pub unsafe fn InstallColorProfileW(pmachinename: P0, pprofilename: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn InstallColorProfileW(pmachinename : windows_core::PCWSTR, pprofilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn InstallColorProfileW(pmachinename : windows_core::PCWSTR, pprofilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { InstallColorProfileW(pmachinename.param().abi(), pprofilename.param().abi()) } } #[inline] -pub unsafe fn IsColorProfileTagPresent(hprofile: isize, tag: u32, pbpresent: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn IsColorProfileTagPresent(hprofile : isize, tag : u32, pbpresent : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn IsColorProfileTagPresent(hprofile: isize, tag: u32, pbpresent: *mut windows_core::BOOL) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn IsColorProfileTagPresent(hprofile : isize, tag : u32, pbpresent : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { IsColorProfileTagPresent(hprofile, tag, pbpresent as _) } } #[inline] -pub unsafe fn IsColorProfileValid(hprofile: isize, pbvalid: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn IsColorProfileValid(hprofile : isize, pbvalid : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn IsColorProfileValid(hprofile: isize, pbvalid: *mut windows_core::BOOL) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn IsColorProfileValid(hprofile : isize, pbvalid : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { IsColorProfileValid(hprofile, pbvalid as _) } } #[inline] @@ -480,47 +480,47 @@ pub unsafe fn OpenColorProfileW(pprofile: *const PROFILE, dwdesiredaccess: u32, unsafe { OpenColorProfileW(pprofile, dwdesiredaccess, dwsharemode, dwcreationmode) } } #[inline] -pub unsafe fn RegisterCMMA(pmachinename: P0, cmmid: u32, pcmmdll: P2) -> super::super::Foundation::BOOL +pub unsafe fn RegisterCMMA(pmachinename: P0, cmmid: u32, pcmmdll: P2) -> windows_core::BOOL where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn RegisterCMMA(pmachinename : windows_core::PCSTR, cmmid : u32, pcmmdll : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn RegisterCMMA(pmachinename : windows_core::PCSTR, cmmid : u32, pcmmdll : windows_core::PCSTR) -> windows_core::BOOL); unsafe { RegisterCMMA(pmachinename.param().abi(), cmmid, pcmmdll.param().abi()) } } #[inline] -pub unsafe fn RegisterCMMW(pmachinename: P0, cmmid: u32, pcmmdll: P2) -> super::super::Foundation::BOOL +pub unsafe fn RegisterCMMW(pmachinename: P0, cmmid: u32, pcmmdll: P2) -> windows_core::BOOL where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn RegisterCMMW(pmachinename : windows_core::PCWSTR, cmmid : u32, pcmmdll : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn RegisterCMMW(pmachinename : windows_core::PCWSTR, cmmid : u32, pcmmdll : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { RegisterCMMW(pmachinename.param().abi(), cmmid, pcmmdll.param().abi()) } } #[inline] -pub unsafe fn SelectCMM(dwcmmtype: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn SelectCMM(dwcmmtype : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn SelectCMM(dwcmmtype: u32) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn SelectCMM(dwcmmtype : u32) -> windows_core::BOOL); unsafe { SelectCMM(dwcmmtype) } } #[inline] -pub unsafe fn SetColorProfileElement(hprofile: isize, tag: u32, dwoffset: u32, pcbelement: *const u32, pelement: *const core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn SetColorProfileElement(hprofile : isize, tag : u32, dwoffset : u32, pcbelement : *const u32, pelement : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn SetColorProfileElement(hprofile: isize, tag: u32, dwoffset: u32, pcbelement: *const u32, pelement: *const core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn SetColorProfileElement(hprofile : isize, tag : u32, dwoffset : u32, pcbelement : *const u32, pelement : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetColorProfileElement(hprofile, tag, dwoffset, pcbelement, pelement) } } #[inline] -pub unsafe fn SetColorProfileElementReference(hprofile: isize, newtag: u32, reftag: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn SetColorProfileElementReference(hprofile : isize, newtag : u32, reftag : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn SetColorProfileElementReference(hprofile: isize, newtag: u32, reftag: u32) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn SetColorProfileElementReference(hprofile : isize, newtag : u32, reftag : u32) -> windows_core::BOOL); unsafe { SetColorProfileElementReference(hprofile, newtag, reftag) } } #[inline] -pub unsafe fn SetColorProfileElementSize(hprofile: isize, tagtype: u32, pcbelement: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn SetColorProfileElementSize(hprofile : isize, tagtype : u32, pcbelement : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn SetColorProfileElementSize(hprofile: isize, tagtype: u32, pcbelement: u32) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn SetColorProfileElementSize(hprofile : isize, tagtype : u32, pcbelement : u32) -> windows_core::BOOL); unsafe { SetColorProfileElementSize(hprofile, tagtype, pcbelement) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn SetColorProfileHeader(hprofile: isize, pheader: *const PROFILEHEADER) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn SetColorProfileHeader(hprofile : isize, pheader : *const PROFILEHEADER) -> super::super::Foundation:: BOOL); +pub unsafe fn SetColorProfileHeader(hprofile: isize, pheader: *const PROFILEHEADER) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn SetColorProfileHeader(hprofile : isize, pheader : *const PROFILEHEADER) -> windows_core::BOOL); unsafe { SetColorProfileHeader(hprofile, pheader) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -531,8 +531,8 @@ pub unsafe fn SetColorSpace(hdc: super::super::Graphics::Gdi::HDC, hcs: HCOLORSP } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn SetDeviceGammaRamp(hdc: super::super::Graphics::Gdi::HDC, lpramp: *const core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("gdi32.dll" "system" fn SetDeviceGammaRamp(hdc : super::super::Graphics::Gdi:: HDC, lpramp : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn SetDeviceGammaRamp(hdc: super::super::Graphics::Gdi::HDC, lpramp: *const core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("gdi32.dll" "system" fn SetDeviceGammaRamp(hdc : super::super::Graphics::Gdi:: HDC, lpramp : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetDeviceGammaRamp(hdc, lpramp) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -543,126 +543,126 @@ pub unsafe fn SetICMMode(hdc: super::super::Graphics::Gdi::HDC, mode: ICM_MODE) } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn SetICMProfileA(hdc: super::super::Graphics::Gdi::HDC, lpfilename: P1) -> super::super::Foundation::BOOL +pub unsafe fn SetICMProfileA(hdc: super::super::Graphics::Gdi::HDC, lpfilename: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("gdi32.dll" "system" fn SetICMProfileA(hdc : super::super::Graphics::Gdi:: HDC, lpfilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("gdi32.dll" "system" fn SetICMProfileA(hdc : super::super::Graphics::Gdi:: HDC, lpfilename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetICMProfileA(hdc, lpfilename.param().abi()) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn SetICMProfileW(hdc: super::super::Graphics::Gdi::HDC, lpfilename: P1) -> super::super::Foundation::BOOL +pub unsafe fn SetICMProfileW(hdc: super::super::Graphics::Gdi::HDC, lpfilename: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("gdi32.dll" "system" fn SetICMProfileW(hdc : super::super::Graphics::Gdi:: HDC, lpfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("gdi32.dll" "system" fn SetICMProfileW(hdc : super::super::Graphics::Gdi:: HDC, lpfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetICMProfileW(hdc, lpfilename.param().abi()) } } #[inline] -pub unsafe fn SetStandardColorSpaceProfileA(pmachinename: P0, dwprofileid: u32, pprofilename: P2) -> super::super::Foundation::BOOL +pub unsafe fn SetStandardColorSpaceProfileA(pmachinename: P0, dwprofileid: u32, pprofilename: P2) -> windows_core::BOOL where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn SetStandardColorSpaceProfileA(pmachinename : windows_core::PCSTR, dwprofileid : u32, pprofilename : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn SetStandardColorSpaceProfileA(pmachinename : windows_core::PCSTR, dwprofileid : u32, pprofilename : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetStandardColorSpaceProfileA(pmachinename.param().abi(), dwprofileid, pprofilename.param().abi()) } } #[inline] -pub unsafe fn SetStandardColorSpaceProfileW(pmachinename: P0, dwprofileid: u32, pprofilename: P2) -> super::super::Foundation::BOOL +pub unsafe fn SetStandardColorSpaceProfileW(pmachinename: P0, dwprofileid: u32, pprofilename: P2) -> windows_core::BOOL where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn SetStandardColorSpaceProfileW(pmachinename : windows_core::PCWSTR, dwprofileid : u32, pprofilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn SetStandardColorSpaceProfileW(pmachinename : windows_core::PCWSTR, dwprofileid : u32, pprofilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetStandardColorSpaceProfileW(pmachinename.param().abi(), dwprofileid, pprofilename.param().abi()) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn SetupColorMatchingA(pcms: *mut COLORMATCHSETUPA) -> super::super::Foundation::BOOL { - windows_targets::link!("icmui.dll" "system" fn SetupColorMatchingA(pcms : *mut COLORMATCHSETUPA) -> super::super::Foundation:: BOOL); +pub unsafe fn SetupColorMatchingA(pcms: *mut COLORMATCHSETUPA) -> windows_core::BOOL { + windows_targets::link!("icmui.dll" "system" fn SetupColorMatchingA(pcms : *mut COLORMATCHSETUPA) -> windows_core::BOOL); unsafe { SetupColorMatchingA(pcms as _) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn SetupColorMatchingW(pcms: *mut COLORMATCHSETUPW) -> super::super::Foundation::BOOL { - windows_targets::link!("icmui.dll" "system" fn SetupColorMatchingW(pcms : *mut COLORMATCHSETUPW) -> super::super::Foundation:: BOOL); +pub unsafe fn SetupColorMatchingW(pcms: *mut COLORMATCHSETUPW) -> windows_core::BOOL { + windows_targets::link!("icmui.dll" "system" fn SetupColorMatchingW(pcms : *mut COLORMATCHSETUPW) -> windows_core::BOOL); unsafe { SetupColorMatchingW(pcms as _) } } #[inline] -pub unsafe fn TranslateBitmapBits(hcolortransform: isize, psrcbits: *const core::ffi::c_void, bminput: BMFORMAT, dwwidth: u32, dwheight: u32, dwinputstride: u32, pdestbits: *mut core::ffi::c_void, bmoutput: BMFORMAT, dwoutputstride: u32, pfncallback: Option, ulcallbackdata: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn TranslateBitmapBits(hcolortransform : isize, psrcbits : *const core::ffi::c_void, bminput : BMFORMAT, dwwidth : u32, dwheight : u32, dwinputstride : u32, pdestbits : *mut core::ffi::c_void, bmoutput : BMFORMAT, dwoutputstride : u32, pfncallback : LPBMCALLBACKFN, ulcallbackdata : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); +pub unsafe fn TranslateBitmapBits(hcolortransform: isize, psrcbits: *const core::ffi::c_void, bminput: BMFORMAT, dwwidth: u32, dwheight: u32, dwinputstride: u32, pdestbits: *mut core::ffi::c_void, bmoutput: BMFORMAT, dwoutputstride: u32, pfncallback: Option, ulcallbackdata: Option) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn TranslateBitmapBits(hcolortransform : isize, psrcbits : *const core::ffi::c_void, bminput : BMFORMAT, dwwidth : u32, dwheight : u32, dwinputstride : u32, pdestbits : *mut core::ffi::c_void, bmoutput : BMFORMAT, dwoutputstride : u32, pfncallback : LPBMCALLBACKFN, ulcallbackdata : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { TranslateBitmapBits(hcolortransform, psrcbits, bminput, dwwidth, dwheight, dwinputstride, pdestbits as _, bmoutput, dwoutputstride, pfncallback.unwrap_or(core::mem::zeroed()) as _, ulcallbackdata.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn TranslateColors(hcolortransform: isize, painputcolors: *const COLOR, ncolors: u32, ctinput: COLORTYPE, paoutputcolors: *mut COLOR, ctoutput: COLORTYPE) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn TranslateColors(hcolortransform : isize, painputcolors : *const COLOR, ncolors : u32, ctinput : COLORTYPE, paoutputcolors : *mut COLOR, ctoutput : COLORTYPE) -> super::super::Foundation:: BOOL); +pub unsafe fn TranslateColors(hcolortransform: isize, painputcolors: *const COLOR, ncolors: u32, ctinput: COLORTYPE, paoutputcolors: *mut COLOR, ctoutput: COLORTYPE) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn TranslateColors(hcolortransform : isize, painputcolors : *const COLOR, ncolors : u32, ctinput : COLORTYPE, paoutputcolors : *mut COLOR, ctoutput : COLORTYPE) -> windows_core::BOOL); unsafe { TranslateColors(hcolortransform, painputcolors, ncolors, ctinput, paoutputcolors as _, ctoutput) } } #[inline] -pub unsafe fn UninstallColorProfileA(pmachinename: P0, pprofilename: P1, bdelete: bool) -> super::super::Foundation::BOOL +pub unsafe fn UninstallColorProfileA(pmachinename: P0, pprofilename: P1, bdelete: bool) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn UninstallColorProfileA(pmachinename : windows_core::PCSTR, pprofilename : windows_core::PCSTR, bdelete : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn UninstallColorProfileA(pmachinename : windows_core::PCSTR, pprofilename : windows_core::PCSTR, bdelete : windows_core::BOOL) -> windows_core::BOOL); unsafe { UninstallColorProfileA(pmachinename.param().abi(), pprofilename.param().abi(), bdelete.into()) } } #[inline] -pub unsafe fn UninstallColorProfileW(pmachinename: P0, pprofilename: P1, bdelete: bool) -> super::super::Foundation::BOOL +pub unsafe fn UninstallColorProfileW(pmachinename: P0, pprofilename: P1, bdelete: bool) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn UninstallColorProfileW(pmachinename : windows_core::PCWSTR, pprofilename : windows_core::PCWSTR, bdelete : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn UninstallColorProfileW(pmachinename : windows_core::PCWSTR, pprofilename : windows_core::PCWSTR, bdelete : windows_core::BOOL) -> windows_core::BOOL); unsafe { UninstallColorProfileW(pmachinename.param().abi(), pprofilename.param().abi(), bdelete.into()) } } #[inline] -pub unsafe fn UnregisterCMMA(pmachinename: P0, cmmid: u32) -> super::super::Foundation::BOOL +pub unsafe fn UnregisterCMMA(pmachinename: P0, cmmid: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn UnregisterCMMA(pmachinename : windows_core::PCSTR, cmmid : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn UnregisterCMMA(pmachinename : windows_core::PCSTR, cmmid : u32) -> windows_core::BOOL); unsafe { UnregisterCMMA(pmachinename.param().abi(), cmmid) } } #[inline] -pub unsafe fn UnregisterCMMW(pmachinename: P0, cmmid: u32) -> super::super::Foundation::BOOL +pub unsafe fn UnregisterCMMW(pmachinename: P0, cmmid: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn UnregisterCMMW(pmachinename : windows_core::PCWSTR, cmmid : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn UnregisterCMMW(pmachinename : windows_core::PCWSTR, cmmid : u32) -> windows_core::BOOL); unsafe { UnregisterCMMW(pmachinename.param().abi(), cmmid) } } #[inline] -pub unsafe fn UpdateICMRegKeyA(reserved: Option, lpszcmid: P1, lpszfilename: P2, command: ICM_COMMAND) -> super::super::Foundation::BOOL +pub unsafe fn UpdateICMRegKeyA(reserved: Option, lpszcmid: P1, lpszfilename: P2, command: ICM_COMMAND) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("gdi32.dll" "system" fn UpdateICMRegKeyA(reserved : u32, lpszcmid : windows_core::PCSTR, lpszfilename : windows_core::PCSTR, command : ICM_COMMAND) -> super::super::Foundation:: BOOL); + windows_targets::link!("gdi32.dll" "system" fn UpdateICMRegKeyA(reserved : u32, lpszcmid : windows_core::PCSTR, lpszfilename : windows_core::PCSTR, command : ICM_COMMAND) -> windows_core::BOOL); unsafe { UpdateICMRegKeyA(reserved.unwrap_or(core::mem::zeroed()) as _, lpszcmid.param().abi(), lpszfilename.param().abi(), command) } } #[inline] -pub unsafe fn UpdateICMRegKeyW(reserved: Option, lpszcmid: P1, lpszfilename: P2, command: ICM_COMMAND) -> super::super::Foundation::BOOL +pub unsafe fn UpdateICMRegKeyW(reserved: Option, lpszcmid: P1, lpszfilename: P2, command: ICM_COMMAND) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("gdi32.dll" "system" fn UpdateICMRegKeyW(reserved : u32, lpszcmid : windows_core::PCWSTR, lpszfilename : windows_core::PCWSTR, command : ICM_COMMAND) -> super::super::Foundation:: BOOL); + windows_targets::link!("gdi32.dll" "system" fn UpdateICMRegKeyW(reserved : u32, lpszcmid : windows_core::PCWSTR, lpszfilename : windows_core::PCWSTR, command : ICM_COMMAND) -> windows_core::BOOL); unsafe { UpdateICMRegKeyW(reserved.unwrap_or(core::mem::zeroed()) as _, lpszcmid.param().abi(), lpszfilename.param().abi(), command) } } #[inline] -pub unsafe fn WcsAssociateColorProfileWithDevice(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pprofilename: P1, pdevicename: P2) -> super::super::Foundation::BOOL +pub unsafe fn WcsAssociateColorProfileWithDevice(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pprofilename: P1, pdevicename: P2) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn WcsAssociateColorProfileWithDevice(scope : WCS_PROFILE_MANAGEMENT_SCOPE, pprofilename : windows_core::PCWSTR, pdevicename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn WcsAssociateColorProfileWithDevice(scope : WCS_PROFILE_MANAGEMENT_SCOPE, pprofilename : windows_core::PCWSTR, pdevicename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { WcsAssociateColorProfileWithDevice(scope, pprofilename.param().abi(), pdevicename.param().abi()) } } #[inline] -pub unsafe fn WcsCheckColors(hcolortransform: isize, ninputchannels: u32, cdtinput: COLORDATATYPE, cbinput: u32, pinputdata: *const core::ffi::c_void, paresult: &mut [u8]) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn WcsCheckColors(hcolortransform : isize, ncolors : u32, ninputchannels : u32, cdtinput : COLORDATATYPE, cbinput : u32, pinputdata : *const core::ffi::c_void, paresult : *mut u8) -> super::super::Foundation:: BOOL); +pub unsafe fn WcsCheckColors(hcolortransform: isize, ninputchannels: u32, cdtinput: COLORDATATYPE, cbinput: u32, pinputdata: *const core::ffi::c_void, paresult: &mut [u8]) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn WcsCheckColors(hcolortransform : isize, ncolors : u32, ninputchannels : u32, cdtinput : COLORDATATYPE, cbinput : u32, pinputdata : *const core::ffi::c_void, paresult : *mut u8) -> windows_core::BOOL); unsafe { WcsCheckColors(hcolortransform, paresult.len().try_into().unwrap(), ninputchannels, cdtinput, cbinput, pinputdata, core::mem::transmute(paresult.as_ptr())) } } #[inline] @@ -671,56 +671,56 @@ pub unsafe fn WcsCreateIccProfile(hwcsprofile: isize, dwoptions: u32) -> isize { unsafe { WcsCreateIccProfile(hwcsprofile, dwoptions) } } #[inline] -pub unsafe fn WcsDisassociateColorProfileFromDevice(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pprofilename: P1, pdevicename: P2) -> super::super::Foundation::BOOL +pub unsafe fn WcsDisassociateColorProfileFromDevice(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pprofilename: P1, pdevicename: P2) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn WcsDisassociateColorProfileFromDevice(scope : WCS_PROFILE_MANAGEMENT_SCOPE, pprofilename : windows_core::PCWSTR, pdevicename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn WcsDisassociateColorProfileFromDevice(scope : WCS_PROFILE_MANAGEMENT_SCOPE, pprofilename : windows_core::PCWSTR, pdevicename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { WcsDisassociateColorProfileFromDevice(scope, pprofilename.param().abi(), pdevicename.param().abi()) } } #[inline] -pub unsafe fn WcsEnumColorProfiles(scope: WCS_PROFILE_MANAGEMENT_SCOPE, penumrecord: *const ENUMTYPEW, pbuffer: &mut [u8], pnprofiles: Option<*mut u32>) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn WcsEnumColorProfiles(scope : WCS_PROFILE_MANAGEMENT_SCOPE, penumrecord : *const ENUMTYPEW, pbuffer : *mut u8, dwsize : u32, pnprofiles : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn WcsEnumColorProfiles(scope: WCS_PROFILE_MANAGEMENT_SCOPE, penumrecord: *const ENUMTYPEW, pbuffer: &mut [u8], pnprofiles: Option<*mut u32>) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn WcsEnumColorProfiles(scope : WCS_PROFILE_MANAGEMENT_SCOPE, penumrecord : *const ENUMTYPEW, pbuffer : *mut u8, dwsize : u32, pnprofiles : *mut u32) -> windows_core::BOOL); unsafe { WcsEnumColorProfiles(scope, penumrecord, core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap(), pnprofiles.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn WcsEnumColorProfilesSize(scope: WCS_PROFILE_MANAGEMENT_SCOPE, penumrecord: *const ENUMTYPEW, pdwsize: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn WcsEnumColorProfilesSize(scope : WCS_PROFILE_MANAGEMENT_SCOPE, penumrecord : *const ENUMTYPEW, pdwsize : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn WcsEnumColorProfilesSize(scope: WCS_PROFILE_MANAGEMENT_SCOPE, penumrecord: *const ENUMTYPEW, pdwsize: *mut u32) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn WcsEnumColorProfilesSize(scope : WCS_PROFILE_MANAGEMENT_SCOPE, penumrecord : *const ENUMTYPEW, pdwsize : *mut u32) -> windows_core::BOOL); unsafe { WcsEnumColorProfilesSize(scope, penumrecord, pdwsize as _) } } #[inline] -pub unsafe fn WcsGetCalibrationManagementState(pbisenabled: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn WcsGetCalibrationManagementState(pbisenabled : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn WcsGetCalibrationManagementState(pbisenabled: *mut windows_core::BOOL) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn WcsGetCalibrationManagementState(pbisenabled : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { WcsGetCalibrationManagementState(pbisenabled as _) } } #[inline] -pub unsafe fn WcsGetDefaultColorProfile(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pdevicename: P1, cptcolorprofiletype: COLORPROFILETYPE, cpstcolorprofilesubtype: COLORPROFILESUBTYPE, dwprofileid: u32, cbprofilename: u32, pprofilename: windows_core::PWSTR) -> super::super::Foundation::BOOL +pub unsafe fn WcsGetDefaultColorProfile(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pdevicename: P1, cptcolorprofiletype: COLORPROFILETYPE, cpstcolorprofilesubtype: COLORPROFILESUBTYPE, dwprofileid: u32, cbprofilename: u32, pprofilename: windows_core::PWSTR) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn WcsGetDefaultColorProfile(scope : WCS_PROFILE_MANAGEMENT_SCOPE, pdevicename : windows_core::PCWSTR, cptcolorprofiletype : COLORPROFILETYPE, cpstcolorprofilesubtype : COLORPROFILESUBTYPE, dwprofileid : u32, cbprofilename : u32, pprofilename : windows_core::PWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn WcsGetDefaultColorProfile(scope : WCS_PROFILE_MANAGEMENT_SCOPE, pdevicename : windows_core::PCWSTR, cptcolorprofiletype : COLORPROFILETYPE, cpstcolorprofilesubtype : COLORPROFILESUBTYPE, dwprofileid : u32, cbprofilename : u32, pprofilename : windows_core::PWSTR) -> windows_core::BOOL); unsafe { WcsGetDefaultColorProfile(scope, pdevicename.param().abi(), cptcolorprofiletype, cpstcolorprofilesubtype, dwprofileid, cbprofilename, core::mem::transmute(pprofilename)) } } #[inline] -pub unsafe fn WcsGetDefaultColorProfileSize(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pdevicename: P1, cptcolorprofiletype: COLORPROFILETYPE, cpstcolorprofilesubtype: COLORPROFILESUBTYPE, dwprofileid: u32, pcbprofilename: *mut u32) -> super::super::Foundation::BOOL +pub unsafe fn WcsGetDefaultColorProfileSize(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pdevicename: P1, cptcolorprofiletype: COLORPROFILETYPE, cpstcolorprofilesubtype: COLORPROFILESUBTYPE, dwprofileid: u32, pcbprofilename: *mut u32) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn WcsGetDefaultColorProfileSize(scope : WCS_PROFILE_MANAGEMENT_SCOPE, pdevicename : windows_core::PCWSTR, cptcolorprofiletype : COLORPROFILETYPE, cpstcolorprofilesubtype : COLORPROFILESUBTYPE, dwprofileid : u32, pcbprofilename : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn WcsGetDefaultColorProfileSize(scope : WCS_PROFILE_MANAGEMENT_SCOPE, pdevicename : windows_core::PCWSTR, cptcolorprofiletype : COLORPROFILETYPE, cpstcolorprofilesubtype : COLORPROFILESUBTYPE, dwprofileid : u32, pcbprofilename : *mut u32) -> windows_core::BOOL); unsafe { WcsGetDefaultColorProfileSize(scope, pdevicename.param().abi(), cptcolorprofiletype, cpstcolorprofilesubtype, dwprofileid, pcbprofilename as _) } } #[inline] -pub unsafe fn WcsGetDefaultRenderingIntent(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pdwrenderingintent: *mut u32) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn WcsGetDefaultRenderingIntent(scope : WCS_PROFILE_MANAGEMENT_SCOPE, pdwrenderingintent : *mut u32) -> super::super::Foundation:: BOOL); +pub unsafe fn WcsGetDefaultRenderingIntent(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pdwrenderingintent: *mut u32) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn WcsGetDefaultRenderingIntent(scope : WCS_PROFILE_MANAGEMENT_SCOPE, pdwrenderingintent : *mut u32) -> windows_core::BOOL); unsafe { WcsGetDefaultRenderingIntent(scope, pdwrenderingintent as _) } } #[inline] -pub unsafe fn WcsGetUsePerUserProfiles(pdevicename: P0, dwdeviceclass: u32, puseperuserprofiles: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL +pub unsafe fn WcsGetUsePerUserProfiles(pdevicename: P0, dwdeviceclass: u32, puseperuserprofiles: *mut windows_core::BOOL) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn WcsGetUsePerUserProfiles(pdevicename : windows_core::PCWSTR, dwdeviceclass : u32, puseperuserprofiles : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn WcsGetUsePerUserProfiles(pdevicename : windows_core::PCWSTR, dwdeviceclass : u32, puseperuserprofiles : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { WcsGetUsePerUserProfiles(pdevicename.param().abi(), dwdeviceclass, puseperuserprofiles as _) } } #[inline] @@ -734,35 +734,35 @@ pub unsafe fn WcsOpenColorProfileW(pcdmpprofile: *const PROFILE, pcampprofile: O unsafe { WcsOpenColorProfileW(pcdmpprofile, pcampprofile.unwrap_or(core::mem::zeroed()) as _, pgmmpprofile.unwrap_or(core::mem::zeroed()) as _, dwdesireaccess, dwsharemode, dwcreationmode, dwflags) } } #[inline] -pub unsafe fn WcsSetCalibrationManagementState(bisenabled: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn WcsSetCalibrationManagementState(bisenabled : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn WcsSetCalibrationManagementState(bisenabled: bool) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn WcsSetCalibrationManagementState(bisenabled : windows_core::BOOL) -> windows_core::BOOL); unsafe { WcsSetCalibrationManagementState(bisenabled.into()) } } #[inline] -pub unsafe fn WcsSetDefaultColorProfile(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pdevicename: P1, cptcolorprofiletype: COLORPROFILETYPE, cpstcolorprofilesubtype: COLORPROFILESUBTYPE, dwprofileid: u32, pprofilename: P5) -> super::super::Foundation::BOOL +pub unsafe fn WcsSetDefaultColorProfile(scope: WCS_PROFILE_MANAGEMENT_SCOPE, pdevicename: P1, cptcolorprofiletype: COLORPROFILETYPE, cpstcolorprofilesubtype: COLORPROFILESUBTYPE, dwprofileid: u32, pprofilename: P5) -> windows_core::BOOL where P1: windows_core::Param, P5: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn WcsSetDefaultColorProfile(scope : WCS_PROFILE_MANAGEMENT_SCOPE, pdevicename : windows_core::PCWSTR, cptcolorprofiletype : COLORPROFILETYPE, cpstcolorprofilesubtype : COLORPROFILESUBTYPE, dwprofileid : u32, pprofilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn WcsSetDefaultColorProfile(scope : WCS_PROFILE_MANAGEMENT_SCOPE, pdevicename : windows_core::PCWSTR, cptcolorprofiletype : COLORPROFILETYPE, cpstcolorprofilesubtype : COLORPROFILESUBTYPE, dwprofileid : u32, pprofilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { WcsSetDefaultColorProfile(scope, pdevicename.param().abi(), cptcolorprofiletype, cpstcolorprofilesubtype, dwprofileid, pprofilename.param().abi()) } } #[inline] -pub unsafe fn WcsSetDefaultRenderingIntent(scope: WCS_PROFILE_MANAGEMENT_SCOPE, dwrenderingintent: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn WcsSetDefaultRenderingIntent(scope : WCS_PROFILE_MANAGEMENT_SCOPE, dwrenderingintent : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn WcsSetDefaultRenderingIntent(scope: WCS_PROFILE_MANAGEMENT_SCOPE, dwrenderingintent: u32) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn WcsSetDefaultRenderingIntent(scope : WCS_PROFILE_MANAGEMENT_SCOPE, dwrenderingintent : u32) -> windows_core::BOOL); unsafe { WcsSetDefaultRenderingIntent(scope, dwrenderingintent) } } #[inline] -pub unsafe fn WcsSetUsePerUserProfiles(pdevicename: P0, dwdeviceclass: u32, useperuserprofiles: bool) -> super::super::Foundation::BOOL +pub unsafe fn WcsSetUsePerUserProfiles(pdevicename: P0, dwdeviceclass: u32, useperuserprofiles: bool) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("mscms.dll" "system" fn WcsSetUsePerUserProfiles(pdevicename : windows_core::PCWSTR, dwdeviceclass : u32, useperuserprofiles : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("mscms.dll" "system" fn WcsSetUsePerUserProfiles(pdevicename : windows_core::PCWSTR, dwdeviceclass : u32, useperuserprofiles : windows_core::BOOL) -> windows_core::BOOL); unsafe { WcsSetUsePerUserProfiles(pdevicename.param().abi(), dwdeviceclass, useperuserprofiles.into()) } } #[inline] -pub unsafe fn WcsTranslateColors(hcolortransform: isize, ncolors: u32, ninputchannels: u32, cdtinput: COLORDATATYPE, cbinput: u32, pinputdata: *const core::ffi::c_void, noutputchannels: u32, cdtoutput: COLORDATATYPE, cboutput: u32, poutputdata: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("mscms.dll" "system" fn WcsTranslateColors(hcolortransform : isize, ncolors : u32, ninputchannels : u32, cdtinput : COLORDATATYPE, cbinput : u32, pinputdata : *const core::ffi::c_void, noutputchannels : u32, cdtoutput : COLORDATATYPE, cboutput : u32, poutputdata : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn WcsTranslateColors(hcolortransform: isize, ncolors: u32, ninputchannels: u32, cdtinput: COLORDATATYPE, cbinput: u32, pinputdata: *const core::ffi::c_void, noutputchannels: u32, cdtoutput: COLORDATATYPE, cboutput: u32, poutputdata: *mut core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("mscms.dll" "system" fn WcsTranslateColors(hcolortransform : isize, ncolors : u32, ninputchannels : u32, cdtinput : COLORDATATYPE, cbinput : u32, pinputdata : *const core::ffi::c_void, noutputchannels : u32, cdtoutput : COLORDATATYPE, cboutput : u32, poutputdata : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { WcsTranslateColors(hcolortransform, ncolors, ninputchannels, cdtinput, cbinput, pinputdata, noutputchannels, cdtoutput, cboutput, poutputdata as _) } } pub const ATTRIB_MATTE: u32 = 2u32; @@ -815,7 +815,7 @@ pub const BM_xRGBQUADS: BMFORMAT = BMFORMAT(8i32); #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct BlackInformation { - pub fBlackOnly: super::super::Foundation::BOOL, + pub fBlackOnly: windows_core::BOOL, pub blackWeight: f32, } impl Default for BlackInformation { @@ -1559,7 +1559,7 @@ impl Default for LOGCOLORSPACEW { unsafe { core::mem::zeroed() } } } -pub type LPBMCALLBACKFN = Option super::super::Foundation::BOOL>; +pub type LPBMCALLBACKFN = Option windows_core::BOOL>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct LabCOLOR { @@ -1600,9 +1600,9 @@ impl Default for NAMED_PROFILE_INFO { } pub const NORMAL_MODE: u32 = 2u32; #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub type PCMSCALLBACKA = Option super::super::Foundation::BOOL>; +pub type PCMSCALLBACKA = Option windows_core::BOOL>; #[cfg(feature = "Win32_UI_WindowsAndMessaging")] -pub type PCMSCALLBACKW = Option super::super::Foundation::BOOL>; +pub type PCMSCALLBACKW = Option windows_core::BOOL>; pub const PRESERVEBLACK: u32 = 1048576u32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] @@ -1708,7 +1708,7 @@ pub struct WCS_DEVICE_CAPABILITIES_TYPE(pub i32); #[derive(Clone, Copy, Debug, PartialEq)] pub struct WCS_DEVICE_MHC2_CAPABILITIES { pub Size: u32, - pub SupportsMhc2: super::super::Foundation::BOOL, + pub SupportsMhc2: windows_core::BOOL, pub RegammaLutEntryCount: u32, pub CscXyzMatrixRows: u32, pub CscXyzMatrixColumns: u32, @@ -1722,7 +1722,7 @@ impl Default for WCS_DEVICE_MHC2_CAPABILITIES { #[derive(Clone, Copy, Debug, PartialEq)] pub struct WCS_DEVICE_VCGT_CAPABILITIES { pub Size: u32, - pub SupportsVcgt: super::super::Foundation::BOOL, + pub SupportsVcgt: windows_core::BOOL, } impl Default for WCS_DEVICE_VCGT_CAPABILITIES { fn default() -> Self { 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 5ddd0217d5..0fc65e08bd 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 @@ -1,23 +1,23 @@ #[inline] -pub unsafe fn ChooseColorA(param0: *mut CHOOSECOLORA) -> super::super::super::Foundation::BOOL { - windows_targets::link!("comdlg32.dll" "system" fn ChooseColorA(param0 : *mut CHOOSECOLORA) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ChooseColorA(param0: *mut CHOOSECOLORA) -> windows_core::BOOL { + windows_targets::link!("comdlg32.dll" "system" fn ChooseColorA(param0 : *mut CHOOSECOLORA) -> windows_core::BOOL); unsafe { ChooseColorA(param0 as _) } } #[inline] -pub unsafe fn ChooseColorW(param0: *mut CHOOSECOLORW) -> super::super::super::Foundation::BOOL { - windows_targets::link!("comdlg32.dll" "system" fn ChooseColorW(param0 : *mut CHOOSECOLORW) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ChooseColorW(param0: *mut CHOOSECOLORW) -> windows_core::BOOL { + windows_targets::link!("comdlg32.dll" "system" fn ChooseColorW(param0 : *mut CHOOSECOLORW) -> windows_core::BOOL); unsafe { ChooseColorW(param0 as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ChooseFontA(param0: *mut CHOOSEFONTA) -> super::super::super::Foundation::BOOL { - windows_targets::link!("comdlg32.dll" "system" fn ChooseFontA(param0 : *mut CHOOSEFONTA) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ChooseFontA(param0: *mut CHOOSEFONTA) -> windows_core::BOOL { + windows_targets::link!("comdlg32.dll" "system" fn ChooseFontA(param0 : *mut CHOOSEFONTA) -> windows_core::BOOL); unsafe { ChooseFontA(param0 as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ChooseFontW(param0: *mut CHOOSEFONTW) -> super::super::super::Foundation::BOOL { - windows_targets::link!("comdlg32.dll" "system" fn ChooseFontW(param0 : *mut CHOOSEFONTW) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ChooseFontW(param0: *mut CHOOSEFONTW) -> windows_core::BOOL { + windows_targets::link!("comdlg32.dll" "system" fn ChooseFontW(param0 : *mut CHOOSEFONTW) -> windows_core::BOOL); unsafe { ChooseFontW(param0 as _) } } #[inline] @@ -52,39 +52,39 @@ where unsafe { GetFileTitleW(param0.param().abi(), core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()) } } #[inline] -pub unsafe fn GetOpenFileNameA(param0: *mut OPENFILENAMEA) -> super::super::super::Foundation::BOOL { - windows_targets::link!("comdlg32.dll" "system" fn GetOpenFileNameA(param0 : *mut OPENFILENAMEA) -> super::super::super::Foundation:: BOOL); +pub unsafe fn GetOpenFileNameA(param0: *mut OPENFILENAMEA) -> windows_core::BOOL { + windows_targets::link!("comdlg32.dll" "system" fn GetOpenFileNameA(param0 : *mut OPENFILENAMEA) -> windows_core::BOOL); unsafe { GetOpenFileNameA(param0 as _) } } #[inline] -pub unsafe fn GetOpenFileNameW(param0: *mut OPENFILENAMEW) -> super::super::super::Foundation::BOOL { - windows_targets::link!("comdlg32.dll" "system" fn GetOpenFileNameW(param0 : *mut OPENFILENAMEW) -> super::super::super::Foundation:: BOOL); +pub unsafe fn GetOpenFileNameW(param0: *mut OPENFILENAMEW) -> windows_core::BOOL { + windows_targets::link!("comdlg32.dll" "system" fn GetOpenFileNameW(param0 : *mut OPENFILENAMEW) -> windows_core::BOOL); unsafe { GetOpenFileNameW(param0 as _) } } #[inline] -pub unsafe fn GetSaveFileNameA(param0: *mut OPENFILENAMEA) -> super::super::super::Foundation::BOOL { - windows_targets::link!("comdlg32.dll" "system" fn GetSaveFileNameA(param0 : *mut OPENFILENAMEA) -> super::super::super::Foundation:: BOOL); +pub unsafe fn GetSaveFileNameA(param0: *mut OPENFILENAMEA) -> windows_core::BOOL { + windows_targets::link!("comdlg32.dll" "system" fn GetSaveFileNameA(param0 : *mut OPENFILENAMEA) -> windows_core::BOOL); unsafe { GetSaveFileNameA(param0 as _) } } #[inline] -pub unsafe fn GetSaveFileNameW(param0: *mut OPENFILENAMEW) -> super::super::super::Foundation::BOOL { - windows_targets::link!("comdlg32.dll" "system" fn GetSaveFileNameW(param0 : *mut OPENFILENAMEW) -> super::super::super::Foundation:: BOOL); +pub unsafe fn GetSaveFileNameW(param0: *mut OPENFILENAMEW) -> windows_core::BOOL { + windows_targets::link!("comdlg32.dll" "system" fn GetSaveFileNameW(param0 : *mut OPENFILENAMEW) -> windows_core::BOOL); unsafe { GetSaveFileNameW(param0 as _) } } #[inline] -pub unsafe fn PageSetupDlgA(param0: *mut PAGESETUPDLGA) -> super::super::super::Foundation::BOOL { - windows_targets::link!("comdlg32.dll" "system" fn PageSetupDlgA(param0 : *mut PAGESETUPDLGA) -> super::super::super::Foundation:: BOOL); +pub unsafe fn PageSetupDlgA(param0: *mut PAGESETUPDLGA) -> windows_core::BOOL { + windows_targets::link!("comdlg32.dll" "system" fn PageSetupDlgA(param0 : *mut PAGESETUPDLGA) -> windows_core::BOOL); unsafe { PageSetupDlgA(param0 as _) } } #[inline] -pub unsafe fn PageSetupDlgW(param0: *mut PAGESETUPDLGW) -> super::super::super::Foundation::BOOL { - windows_targets::link!("comdlg32.dll" "system" fn PageSetupDlgW(param0 : *mut PAGESETUPDLGW) -> super::super::super::Foundation:: BOOL); +pub unsafe fn PageSetupDlgW(param0: *mut PAGESETUPDLGW) -> windows_core::BOOL { + windows_targets::link!("comdlg32.dll" "system" fn PageSetupDlgW(param0 : *mut PAGESETUPDLGW) -> windows_core::BOOL); unsafe { PageSetupDlgW(param0 as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn PrintDlgA(ppd: *mut PRINTDLGA) -> super::super::super::Foundation::BOOL { - windows_targets::link!("comdlg32.dll" "system" fn PrintDlgA(ppd : *mut PRINTDLGA) -> super::super::super::Foundation:: BOOL); +pub unsafe fn PrintDlgA(ppd: *mut PRINTDLGA) -> windows_core::BOOL { + windows_targets::link!("comdlg32.dll" "system" fn PrintDlgA(ppd : *mut PRINTDLGA) -> windows_core::BOOL); unsafe { PrintDlgA(ppd as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -101,8 +101,8 @@ pub unsafe fn PrintDlgExW(ppd: *mut PRINTDLGEXW) -> windows_core::Result<()> { } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn PrintDlgW(ppd: *mut PRINTDLGW) -> super::super::super::Foundation::BOOL { - windows_targets::link!("comdlg32.dll" "system" fn PrintDlgW(ppd : *mut PRINTDLGW) -> super::super::super::Foundation:: BOOL); +pub unsafe fn PrintDlgW(ppd: *mut PRINTDLGW) -> windows_core::BOOL { + windows_targets::link!("comdlg32.dll" "system" fn PrintDlgW(ppd : *mut PRINTDLGW) -> windows_core::BOOL); unsafe { PrintDlgW(ppd as _) } } #[inline] 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 c1fd376b45..a015c50b11 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 @@ -629,7 +629,7 @@ pub struct ENDROPFILES { pub nmhdr: super::NMHDR, pub hDrop: super::super::super::Foundation::HANDLE, pub cp: i32, - pub fProtected: super::super::super::Foundation::BOOL, + pub fProtected: windows_core::BOOL, } #[cfg(target_arch = "x86")] impl Default for ENDROPFILES { @@ -644,7 +644,7 @@ pub struct ENDROPFILES { pub nmhdr: super::NMHDR, pub hDrop: super::super::super::Foundation::HANDLE, pub cp: i32, - pub fProtected: super::super::super::Foundation::BOOL, + pub fProtected: windows_core::BOOL, } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] impl Default for ENDROPFILES { @@ -1049,7 +1049,7 @@ pub struct GETTEXTEX { pub flags: GETTEXTEX_FLAGS, pub codepage: u32, pub lpDefaultChar: windows_core::PCSTR, - pub lpUsedDefChar: *mut super::super::super::Foundation::BOOL, + pub lpUsedDefChar: *mut windows_core::BOOL, } #[cfg(target_arch = "x86")] impl Default for GETTEXTEX { @@ -1065,7 +1065,7 @@ pub struct GETTEXTEX { pub flags: GETTEXTEX_FLAGS, pub codepage: u32, pub lpDefaultChar: windows_core::PCSTR, - pub lpUsedDefChar: *mut super::super::super::Foundation::BOOL, + pub lpUsedDefChar: *mut windows_core::BOOL, } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] impl Default for GETTEXTEX { @@ -1127,7 +1127,7 @@ impl core::ops::Not for GETTEXTLENGTHEX_FLAGS { #[derive(Clone, Copy)] pub struct GROUPTYPINGCHANGE { pub nmhdr: super::NMHDR, - pub fGroupTyping: super::super::super::Foundation::BOOL, + pub fGroupTyping: windows_core::BOOL, } impl Default for GROUPTYPINGCHANGE { fn default() -> Self { @@ -1324,7 +1324,7 @@ pub struct IRichEditOle_Vtbl { pub ConvertObject: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *const windows_core::GUID, windows_core::PCSTR) -> windows_core::HRESULT, pub ActivateAs: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const windows_core::GUID) -> windows_core::HRESULT, pub SetHostNames: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCSTR, windows_core::PCSTR) -> windows_core::HRESULT, - pub SetLinkAvailable: unsafe extern "system" fn(*mut core::ffi::c_void, i32, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetLinkAvailable: unsafe extern "system" fn(*mut core::ffi::c_void, i32, windows_core::BOOL) -> windows_core::HRESULT, pub SetDvaspect: unsafe extern "system" fn(*mut core::ffi::c_void, i32, u32) -> windows_core::HRESULT, pub HandsOffStorage: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -1332,7 +1332,7 @@ pub struct IRichEditOle_Vtbl { #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] SaveCompleted: usize, pub InPlaceDeactivate: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub ContextSensitiveHelp: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ContextSensitiveHelp: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetClipboardData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CHARRANGE, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -1352,12 +1352,12 @@ pub trait IRichEditOle_Impl: windows_core::IUnknownImpl { fn ConvertObject(&self, iob: i32, rclsidnew: *const windows_core::GUID, lpstrusertypenew: &windows_core::PCSTR) -> windows_core::Result<()>; fn ActivateAs(&self, rclsid: *const windows_core::GUID, rclsidas: *const windows_core::GUID) -> windows_core::Result<()>; fn SetHostNames(&self, lpstrcontainerapp: &windows_core::PCSTR, lpstrcontainerobj: &windows_core::PCSTR) -> windows_core::Result<()>; - fn SetLinkAvailable(&self, iob: i32, favailable: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetLinkAvailable(&self, iob: i32, favailable: windows_core::BOOL) -> windows_core::Result<()>; fn SetDvaspect(&self, iob: i32, dvaspect: u32) -> windows_core::Result<()>; fn HandsOffStorage(&self, iob: i32) -> windows_core::Result<()>; fn SaveCompleted(&self, iob: i32, lpstg: windows_core::Ref) -> windows_core::Result<()>; fn InPlaceDeactivate(&self) -> windows_core::Result<()>; - fn ContextSensitiveHelp(&self, fentermode: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ContextSensitiveHelp(&self, fentermode: windows_core::BOOL) -> windows_core::Result<()>; fn GetClipboardData(&self, lpchrg: *mut CHARRANGE, reco: u32, lplpdataobj: windows_core::OutRef<'_, super::super::super::System::Com::IDataObject>) -> windows_core::Result<()>; fn ImportDataObject(&self, lpdataobj: windows_core::Ref, cf: u16, hmetapict: super::super::super::Foundation::HGLOBAL) -> windows_core::Result<()>; } @@ -1418,7 +1418,7 @@ impl IRichEditOle_Vtbl { IRichEditOle_Impl::SetHostNames(this, core::mem::transmute(&lpstrcontainerapp), core::mem::transmute(&lpstrcontainerobj)).into() } } - unsafe extern "system" fn SetLinkAvailable(this: *mut core::ffi::c_void, iob: i32, favailable: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetLinkAvailable(this: *mut core::ffi::c_void, iob: i32, favailable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOle_Impl::SetLinkAvailable(this, core::mem::transmute_copy(&iob), core::mem::transmute_copy(&favailable)).into() @@ -1448,7 +1448,7 @@ impl IRichEditOle_Vtbl { IRichEditOle_Impl::InPlaceDeactivate(this).into() } } - unsafe extern "system" fn ContextSensitiveHelp(this: *mut core::ffi::c_void, fentermode: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ContextSensitiveHelp(this: *mut core::ffi::c_void, fentermode: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOle_Impl::ContextSensitiveHelp(this, core::mem::transmute_copy(&fentermode)).into() @@ -1560,7 +1560,7 @@ pub struct IRichEditOleCallback_Vtbl { pub GetInPlaceContext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut super::super::super::System::Ole::OLEINPLACEFRAMEINFO) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging")))] GetInPlaceContext: usize, - pub ShowContainerUI: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ShowContainerUI: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub QueryInsertObject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID, *mut core::ffi::c_void, i32) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] @@ -1570,16 +1570,16 @@ pub struct IRichEditOleCallback_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] DeleteObject: usize, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] - pub QueryAcceptData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u16, super::super::super::System::SystemServices::RECO_FLAGS, super::super::super::Foundation::BOOL, super::super::super::Foundation::HGLOBAL) -> windows_core::HRESULT, + pub QueryAcceptData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u16, super::super::super::System::SystemServices::RECO_FLAGS, windows_core::BOOL, super::super::super::Foundation::HGLOBAL) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices")))] QueryAcceptData: usize, - pub ContextSensitiveHelp: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ContextSensitiveHelp: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetClipboardData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CHARRANGE, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetClipboardData: usize, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_SystemServices"))] - pub GetDragDropEffect: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL, super::super::super::System::SystemServices::MODIFIERKEYS_FLAGS, *mut super::super::super::System::Ole::DROPEFFECT) -> windows_core::HRESULT, + pub GetDragDropEffect: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, super::super::super::System::SystemServices::MODIFIERKEYS_FLAGS, *mut super::super::super::System::Ole::DROPEFFECT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_SystemServices")))] GetDragDropEffect: usize, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging"))] @@ -1591,13 +1591,13 @@ pub struct IRichEditOleCallback_Vtbl { pub trait IRichEditOleCallback_Impl: windows_core::IUnknownImpl { fn GetNewStorage(&self) -> windows_core::Result; fn GetInPlaceContext(&self, lplpframe: windows_core::OutRef<'_, super::super::super::System::Ole::IOleInPlaceFrame>, lplpdoc: windows_core::OutRef<'_, super::super::super::System::Ole::IOleInPlaceUIWindow>, lpframeinfo: *mut super::super::super::System::Ole::OLEINPLACEFRAMEINFO) -> windows_core::Result<()>; - fn ShowContainerUI(&self, fshow: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ShowContainerUI(&self, fshow: windows_core::BOOL) -> windows_core::Result<()>; fn QueryInsertObject(&self, lpclsid: *mut windows_core::GUID, lpstg: windows_core::Ref, cp: i32) -> windows_core::Result<()>; fn DeleteObject(&self, lpoleobj: windows_core::Ref) -> windows_core::Result<()>; - fn QueryAcceptData(&self, lpdataobj: windows_core::Ref, lpcfformat: *mut u16, reco: super::super::super::System::SystemServices::RECO_FLAGS, freally: super::super::super::Foundation::BOOL, hmetapict: super::super::super::Foundation::HGLOBAL) -> windows_core::Result<()>; - fn ContextSensitiveHelp(&self, fentermode: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn QueryAcceptData(&self, lpdataobj: windows_core::Ref, lpcfformat: *mut u16, reco: super::super::super::System::SystemServices::RECO_FLAGS, freally: windows_core::BOOL, hmetapict: super::super::super::Foundation::HGLOBAL) -> windows_core::Result<()>; + fn ContextSensitiveHelp(&self, fentermode: windows_core::BOOL) -> windows_core::Result<()>; fn GetClipboardData(&self, lpchrg: *mut CHARRANGE, reco: u32, lplpdataobj: windows_core::OutRef<'_, super::super::super::System::Com::IDataObject>) -> windows_core::Result<()>; - fn GetDragDropEffect(&self, fdrag: super::super::super::Foundation::BOOL, grfkeystate: super::super::super::System::SystemServices::MODIFIERKEYS_FLAGS, pdweffect: *mut super::super::super::System::Ole::DROPEFFECT) -> windows_core::Result<()>; + fn GetDragDropEffect(&self, fdrag: windows_core::BOOL, grfkeystate: super::super::super::System::SystemServices::MODIFIERKEYS_FLAGS, pdweffect: *mut super::super::super::System::Ole::DROPEFFECT) -> windows_core::Result<()>; fn GetContextMenu(&self, seltype: RICH_EDIT_GET_CONTEXT_MENU_SEL_TYPE, lpoleobj: windows_core::Ref, lpchrg: *mut CHARRANGE, lphmenu: *mut super::super::WindowsAndMessaging::HMENU) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Ole", feature = "Win32_System_SystemServices", feature = "Win32_UI_WindowsAndMessaging"))] @@ -1621,7 +1621,7 @@ impl IRichEditOleCallback_Vtbl { IRichEditOleCallback_Impl::GetInPlaceContext(this, core::mem::transmute_copy(&lplpframe), core::mem::transmute_copy(&lplpdoc), core::mem::transmute_copy(&lpframeinfo)).into() } } - unsafe extern "system" fn ShowContainerUI(this: *mut core::ffi::c_void, fshow: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ShowContainerUI(this: *mut core::ffi::c_void, fshow: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOleCallback_Impl::ShowContainerUI(this, core::mem::transmute_copy(&fshow)).into() @@ -1639,13 +1639,13 @@ impl IRichEditOleCallback_Vtbl { IRichEditOleCallback_Impl::DeleteObject(this, core::mem::transmute_copy(&lpoleobj)).into() } } - unsafe extern "system" fn QueryAcceptData(this: *mut core::ffi::c_void, lpdataobj: *mut core::ffi::c_void, lpcfformat: *mut u16, reco: super::super::super::System::SystemServices::RECO_FLAGS, freally: super::super::super::Foundation::BOOL, hmetapict: super::super::super::Foundation::HGLOBAL) -> windows_core::HRESULT { + unsafe extern "system" fn QueryAcceptData(this: *mut core::ffi::c_void, lpdataobj: *mut core::ffi::c_void, lpcfformat: *mut u16, reco: super::super::super::System::SystemServices::RECO_FLAGS, freally: windows_core::BOOL, hmetapict: super::super::super::Foundation::HGLOBAL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOleCallback_Impl::QueryAcceptData(this, core::mem::transmute_copy(&lpdataobj), core::mem::transmute_copy(&lpcfformat), core::mem::transmute_copy(&reco), core::mem::transmute_copy(&freally), core::mem::transmute_copy(&hmetapict)).into() } } - unsafe extern "system" fn ContextSensitiveHelp(this: *mut core::ffi::c_void, fentermode: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ContextSensitiveHelp(this: *mut core::ffi::c_void, fentermode: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOleCallback_Impl::ContextSensitiveHelp(this, core::mem::transmute_copy(&fentermode)).into() @@ -1657,7 +1657,7 @@ impl IRichEditOleCallback_Vtbl { IRichEditOleCallback_Impl::GetClipboardData(this, core::mem::transmute_copy(&lpchrg), core::mem::transmute_copy(&reco), core::mem::transmute_copy(&lplpdataobj)).into() } } - unsafe extern "system" fn GetDragDropEffect(this: *mut core::ffi::c_void, fdrag: super::super::super::Foundation::BOOL, grfkeystate: super::super::super::System::SystemServices::MODIFIERKEYS_FLAGS, pdweffect: *mut super::super::super::System::Ole::DROPEFFECT) -> windows_core::HRESULT { + unsafe extern "system" fn GetDragDropEffect(this: *mut core::ffi::c_void, fdrag: windows_core::BOOL, grfkeystate: super::super::super::System::SystemServices::MODIFIERKEYS_FLAGS, pdweffect: *mut super::super::super::System::Ole::DROPEFFECT) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRichEditOleCallback_Impl::GetDragDropEffect(this, core::mem::transmute_copy(&fdrag), core::mem::transmute_copy(&grfkeystate), core::mem::transmute_copy(&pdweffect)).into() @@ -5102,17 +5102,17 @@ impl ITextHost { pub unsafe fn TxReleaseDC(&self, hdc: super::super::super::Graphics::Gdi::HDC) -> i32 { unsafe { (windows_core::Interface::vtable(self).TxReleaseDC)(windows_core::Interface::as_raw(self), hdc) } } - pub unsafe fn TxShowScrollBar(&self, fnbar: i32, fshow: bool) -> super::super::super::Foundation::BOOL { + pub unsafe fn TxShowScrollBar(&self, fnbar: i32, fshow: bool) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).TxShowScrollBar)(windows_core::Interface::as_raw(self), fnbar, fshow.into()) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub unsafe fn TxEnableScrollBar(&self, fusbflags: super::super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, fuarrowflags: i32) -> super::super::super::Foundation::BOOL { + pub unsafe fn TxEnableScrollBar(&self, fusbflags: super::super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, fuarrowflags: i32) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).TxEnableScrollBar)(windows_core::Interface::as_raw(self), fusbflags, fuarrowflags) } } - pub unsafe fn TxSetScrollRange(&self, fnbar: i32, nminpos: i32, nmaxpos: i32, fredraw: bool) -> super::super::super::Foundation::BOOL { + pub unsafe fn TxSetScrollRange(&self, fnbar: i32, nminpos: i32, nmaxpos: i32, fredraw: bool) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).TxSetScrollRange)(windows_core::Interface::as_raw(self), fnbar, nminpos, nmaxpos, fredraw.into()) } } - pub unsafe fn TxSetScrollPos(&self, fnbar: i32, npos: i32, fredraw: bool) -> super::super::super::Foundation::BOOL { + pub unsafe fn TxSetScrollPos(&self, fnbar: i32, npos: i32, fredraw: bool) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).TxSetScrollPos)(windows_core::Interface::as_raw(self), fnbar, npos, fredraw.into()) } } pub unsafe fn TxInvalidateRect(&self, prc: *mut super::super::super::Foundation::RECT, fmode: bool) { @@ -5122,16 +5122,16 @@ impl ITextHost { unsafe { (windows_core::Interface::vtable(self).TxViewChange)(windows_core::Interface::as_raw(self), fupdate.into()) } } #[cfg(feature = "Win32_Graphics_Gdi")] - pub unsafe fn TxCreateCaret(&self, hbmp: super::super::super::Graphics::Gdi::HBITMAP, xwidth: i32, yheight: i32) -> super::super::super::Foundation::BOOL { + pub unsafe fn TxCreateCaret(&self, hbmp: super::super::super::Graphics::Gdi::HBITMAP, xwidth: i32, yheight: i32) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).TxCreateCaret)(windows_core::Interface::as_raw(self), hbmp, xwidth, yheight) } } - pub unsafe fn TxShowCaret(&self, fshow: bool) -> super::super::super::Foundation::BOOL { + pub unsafe fn TxShowCaret(&self, fshow: bool) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).TxShowCaret)(windows_core::Interface::as_raw(self), fshow.into()) } } - pub unsafe fn TxSetCaretPos(&self, x: i32, y: i32) -> super::super::super::Foundation::BOOL { + pub unsafe fn TxSetCaretPos(&self, x: i32, y: i32) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).TxSetCaretPos)(windows_core::Interface::as_raw(self), x, y) } } - pub unsafe fn TxSetTimer(&self, idtimer: u32, utimeout: u32) -> super::super::super::Foundation::BOOL { + pub unsafe fn TxSetTimer(&self, idtimer: u32, utimeout: u32) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).TxSetTimer)(windows_core::Interface::as_raw(self), idtimer, utimeout) } } pub unsafe fn TxKillTimer(&self, idtimer: u32) { @@ -5151,10 +5151,10 @@ impl ITextHost { pub unsafe fn TxSetCursor(&self, hcur: super::super::WindowsAndMessaging::HCURSOR, ftext: bool) { unsafe { (windows_core::Interface::vtable(self).TxSetCursor)(windows_core::Interface::as_raw(self), hcur, ftext.into()) } } - pub unsafe fn TxScreenToClient(&self, lppt: *mut super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL { + pub unsafe fn TxScreenToClient(&self, lppt: *mut super::super::super::Foundation::POINT) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).TxScreenToClient)(windows_core::Interface::as_raw(self), lppt as _) } } - pub unsafe fn TxClientToScreen(&self, lppt: *mut super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL { + pub unsafe fn TxClientToScreen(&self, lppt: *mut super::super::super::Foundation::POINT) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).TxClientToScreen)(windows_core::Interface::as_raw(self), lppt as _) } } pub unsafe fn TxActivate(&self, ploldstate: *mut i32) -> windows_core::Result<()> { @@ -5237,35 +5237,35 @@ pub struct ITextHost_Vtbl { pub TxReleaseDC: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Graphics::Gdi::HDC) -> i32, #[cfg(not(feature = "Win32_Graphics_Gdi"))] TxReleaseDC: usize, - pub TxShowScrollBar: unsafe extern "system" fn(*mut core::ffi::c_void, i32, super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL, + pub TxShowScrollBar: unsafe extern "system" fn(*mut core::ffi::c_void, i32, windows_core::BOOL) -> windows_core::BOOL, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub TxEnableScrollBar: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, i32) -> super::super::super::Foundation::BOOL, + pub TxEnableScrollBar: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, i32) -> windows_core::BOOL, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] TxEnableScrollBar: usize, - pub TxSetScrollRange: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, i32, super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL, - pub TxSetScrollPos: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL, - pub TxInvalidateRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::RECT, super::super::super::Foundation::BOOL), - pub TxViewChange: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL), + pub TxSetScrollRange: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, i32, windows_core::BOOL) -> windows_core::BOOL, + pub TxSetScrollPos: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, windows_core::BOOL) -> windows_core::BOOL, + pub TxInvalidateRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::RECT, windows_core::BOOL), + pub TxViewChange: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), #[cfg(feature = "Win32_Graphics_Gdi")] - pub TxCreateCaret: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Graphics::Gdi::HBITMAP, i32, i32) -> super::super::super::Foundation::BOOL, + pub TxCreateCaret: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Graphics::Gdi::HBITMAP, i32, i32) -> windows_core::BOOL, #[cfg(not(feature = "Win32_Graphics_Gdi"))] TxCreateCaret: usize, - pub TxShowCaret: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL, - pub TxSetCaretPos: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32) -> super::super::super::Foundation::BOOL, - pub TxSetTimer: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> super::super::super::Foundation::BOOL, + pub TxShowCaret: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::BOOL, + pub TxSetCaretPos: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32) -> windows_core::BOOL, + pub TxSetTimer: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> windows_core::BOOL, pub TxKillTimer: unsafe extern "system" fn(*mut core::ffi::c_void, u32), #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub TxScrollWindowEx: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, *mut super::super::super::Foundation::RECT, *mut super::super::super::Foundation::RECT, super::super::super::Graphics::Gdi::HRGN, *mut super::super::super::Foundation::RECT, super::super::WindowsAndMessaging::SCROLL_WINDOW_FLAGS), #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging")))] TxScrollWindowEx: usize, - pub TxSetCapture: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL), + pub TxSetCapture: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL), pub TxSetFocus: unsafe extern "system" fn(*mut core::ffi::c_void), #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub TxSetCursor: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::WindowsAndMessaging::HCURSOR, super::super::super::Foundation::BOOL), + pub TxSetCursor: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::WindowsAndMessaging::HCURSOR, windows_core::BOOL), #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] TxSetCursor: usize, - pub TxScreenToClient: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL, - pub TxClientToScreen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL, + pub TxScreenToClient: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::POINT) -> windows_core::BOOL, + pub TxClientToScreen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::POINT) -> windows_core::BOOL, pub TxActivate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub TxDeactivate: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub TxGetClientRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::RECT) -> windows_core::HRESULT, @@ -5306,23 +5306,23 @@ pub struct ITextHost_Vtbl { pub trait ITextHost_Impl: windows_core::IUnknownImpl { fn TxGetDC(&self) -> super::super::super::Graphics::Gdi::HDC; fn TxReleaseDC(&self, hdc: super::super::super::Graphics::Gdi::HDC) -> i32; - fn TxShowScrollBar(&self, fnbar: i32, fshow: super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL; - fn TxEnableScrollBar(&self, fusbflags: super::super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, fuarrowflags: i32) -> super::super::super::Foundation::BOOL; - fn TxSetScrollRange(&self, fnbar: i32, nminpos: i32, nmaxpos: i32, fredraw: super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL; - fn TxSetScrollPos(&self, fnbar: i32, npos: i32, fredraw: super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL; - fn TxInvalidateRect(&self, prc: *mut super::super::super::Foundation::RECT, fmode: super::super::super::Foundation::BOOL); - fn TxViewChange(&self, fupdate: super::super::super::Foundation::BOOL); - fn TxCreateCaret(&self, hbmp: super::super::super::Graphics::Gdi::HBITMAP, xwidth: i32, yheight: i32) -> super::super::super::Foundation::BOOL; - fn TxShowCaret(&self, fshow: super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL; - fn TxSetCaretPos(&self, x: i32, y: i32) -> super::super::super::Foundation::BOOL; - fn TxSetTimer(&self, idtimer: u32, utimeout: u32) -> super::super::super::Foundation::BOOL; + fn TxShowScrollBar(&self, fnbar: i32, fshow: windows_core::BOOL) -> windows_core::BOOL; + fn TxEnableScrollBar(&self, fusbflags: super::super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, fuarrowflags: i32) -> windows_core::BOOL; + fn TxSetScrollRange(&self, fnbar: i32, nminpos: i32, nmaxpos: i32, fredraw: windows_core::BOOL) -> windows_core::BOOL; + fn TxSetScrollPos(&self, fnbar: i32, npos: i32, fredraw: windows_core::BOOL) -> windows_core::BOOL; + fn TxInvalidateRect(&self, prc: *mut super::super::super::Foundation::RECT, fmode: windows_core::BOOL); + fn TxViewChange(&self, fupdate: windows_core::BOOL); + fn TxCreateCaret(&self, hbmp: super::super::super::Graphics::Gdi::HBITMAP, xwidth: i32, yheight: i32) -> windows_core::BOOL; + fn TxShowCaret(&self, fshow: windows_core::BOOL) -> windows_core::BOOL; + fn TxSetCaretPos(&self, x: i32, y: i32) -> windows_core::BOOL; + fn TxSetTimer(&self, idtimer: u32, utimeout: u32) -> windows_core::BOOL; fn TxKillTimer(&self, idtimer: u32); fn TxScrollWindowEx(&self, dx: i32, dy: i32, lprcscroll: *mut super::super::super::Foundation::RECT, lprcclip: *mut super::super::super::Foundation::RECT, hrgnupdate: super::super::super::Graphics::Gdi::HRGN, lprcupdate: *mut super::super::super::Foundation::RECT, fuscroll: super::super::WindowsAndMessaging::SCROLL_WINDOW_FLAGS); - fn TxSetCapture(&self, fcapture: super::super::super::Foundation::BOOL); + fn TxSetCapture(&self, fcapture: windows_core::BOOL); fn TxSetFocus(&self); - fn TxSetCursor(&self, hcur: super::super::WindowsAndMessaging::HCURSOR, ftext: super::super::super::Foundation::BOOL); - fn TxScreenToClient(&self, lppt: *mut super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL; - fn TxClientToScreen(&self, lppt: *mut super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL; + fn TxSetCursor(&self, hcur: super::super::WindowsAndMessaging::HCURSOR, ftext: windows_core::BOOL); + fn TxScreenToClient(&self, lppt: *mut super::super::super::Foundation::POINT) -> windows_core::BOOL; + fn TxClientToScreen(&self, lppt: *mut super::super::super::Foundation::POINT) -> windows_core::BOOL; fn TxActivate(&self, ploldstate: *mut i32) -> windows_core::Result<()>; fn TxDeactivate(&self, lnewstate: i32) -> windows_core::Result<()>; fn TxGetClientRect(&self, prc: *mut super::super::super::Foundation::RECT) -> windows_core::Result<()>; @@ -5359,61 +5359,61 @@ impl ITextHost_Vtbl { ITextHost_Impl::TxReleaseDC(this, core::mem::transmute_copy(&hdc)) } } - unsafe extern "system" fn TxShowScrollBar(this: *mut core::ffi::c_void, fnbar: i32, fshow: super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn TxShowScrollBar(this: *mut core::ffi::c_void, fnbar: i32, fshow: windows_core::BOOL) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxShowScrollBar(this, core::mem::transmute_copy(&fnbar), core::mem::transmute_copy(&fshow)) } } - unsafe extern "system" fn TxEnableScrollBar(this: *mut core::ffi::c_void, fusbflags: super::super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, fuarrowflags: i32) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn TxEnableScrollBar(this: *mut core::ffi::c_void, fusbflags: super::super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, fuarrowflags: i32) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxEnableScrollBar(this, core::mem::transmute_copy(&fusbflags), core::mem::transmute_copy(&fuarrowflags)) } } - unsafe extern "system" fn TxSetScrollRange(this: *mut core::ffi::c_void, fnbar: i32, nminpos: i32, nmaxpos: i32, fredraw: super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn TxSetScrollRange(this: *mut core::ffi::c_void, fnbar: i32, nminpos: i32, nmaxpos: i32, fredraw: windows_core::BOOL) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxSetScrollRange(this, core::mem::transmute_copy(&fnbar), core::mem::transmute_copy(&nminpos), core::mem::transmute_copy(&nmaxpos), core::mem::transmute_copy(&fredraw)) } } - unsafe extern "system" fn TxSetScrollPos(this: *mut core::ffi::c_void, fnbar: i32, npos: i32, fredraw: super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn TxSetScrollPos(this: *mut core::ffi::c_void, fnbar: i32, npos: i32, fredraw: windows_core::BOOL) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxSetScrollPos(this, core::mem::transmute_copy(&fnbar), core::mem::transmute_copy(&npos), core::mem::transmute_copy(&fredraw)) } } - unsafe extern "system" fn TxInvalidateRect(this: *mut core::ffi::c_void, prc: *mut super::super::super::Foundation::RECT, fmode: super::super::super::Foundation::BOOL) { + unsafe extern "system" fn TxInvalidateRect(this: *mut core::ffi::c_void, prc: *mut super::super::super::Foundation::RECT, fmode: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxInvalidateRect(this, core::mem::transmute_copy(&prc), core::mem::transmute_copy(&fmode)) } } - unsafe extern "system" fn TxViewChange(this: *mut core::ffi::c_void, fupdate: super::super::super::Foundation::BOOL) { + unsafe extern "system" fn TxViewChange(this: *mut core::ffi::c_void, fupdate: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxViewChange(this, core::mem::transmute_copy(&fupdate)) } } - unsafe extern "system" fn TxCreateCaret(this: *mut core::ffi::c_void, hbmp: super::super::super::Graphics::Gdi::HBITMAP, xwidth: i32, yheight: i32) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn TxCreateCaret(this: *mut core::ffi::c_void, hbmp: super::super::super::Graphics::Gdi::HBITMAP, xwidth: i32, yheight: i32) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxCreateCaret(this, core::mem::transmute_copy(&hbmp), core::mem::transmute_copy(&xwidth), core::mem::transmute_copy(&yheight)) } } - unsafe extern "system" fn TxShowCaret(this: *mut core::ffi::c_void, fshow: super::super::super::Foundation::BOOL) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn TxShowCaret(this: *mut core::ffi::c_void, fshow: windows_core::BOOL) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxShowCaret(this, core::mem::transmute_copy(&fshow)) } } - unsafe extern "system" fn TxSetCaretPos(this: *mut core::ffi::c_void, x: i32, y: i32) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn TxSetCaretPos(this: *mut core::ffi::c_void, x: i32, y: i32) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxSetCaretPos(this, core::mem::transmute_copy(&x), core::mem::transmute_copy(&y)) } } - unsafe extern "system" fn TxSetTimer(this: *mut core::ffi::c_void, idtimer: u32, utimeout: u32) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn TxSetTimer(this: *mut core::ffi::c_void, idtimer: u32, utimeout: u32) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxSetTimer(this, core::mem::transmute_copy(&idtimer), core::mem::transmute_copy(&utimeout)) @@ -5431,7 +5431,7 @@ impl ITextHost_Vtbl { ITextHost_Impl::TxScrollWindowEx(this, core::mem::transmute_copy(&dx), core::mem::transmute_copy(&dy), core::mem::transmute_copy(&lprcscroll), core::mem::transmute_copy(&lprcclip), core::mem::transmute_copy(&hrgnupdate), core::mem::transmute_copy(&lprcupdate), core::mem::transmute_copy(&fuscroll)) } } - unsafe extern "system" fn TxSetCapture(this: *mut core::ffi::c_void, fcapture: super::super::super::Foundation::BOOL) { + unsafe extern "system" fn TxSetCapture(this: *mut core::ffi::c_void, fcapture: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxSetCapture(this, core::mem::transmute_copy(&fcapture)) @@ -5443,19 +5443,19 @@ impl ITextHost_Vtbl { ITextHost_Impl::TxSetFocus(this) } } - unsafe extern "system" fn TxSetCursor(this: *mut core::ffi::c_void, hcur: super::super::WindowsAndMessaging::HCURSOR, ftext: super::super::super::Foundation::BOOL) { + unsafe extern "system" fn TxSetCursor(this: *mut core::ffi::c_void, hcur: super::super::WindowsAndMessaging::HCURSOR, ftext: windows_core::BOOL) { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxSetCursor(this, core::mem::transmute_copy(&hcur), core::mem::transmute_copy(&ftext)) } } - unsafe extern "system" fn TxScreenToClient(this: *mut core::ffi::c_void, lppt: *mut super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn TxScreenToClient(this: *mut core::ffi::c_void, lppt: *mut super::super::super::Foundation::POINT) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxScreenToClient(this, core::mem::transmute_copy(&lppt)) } } - unsafe extern "system" fn TxClientToScreen(this: *mut core::ffi::c_void, lppt: *mut super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn TxClientToScreen(this: *mut core::ffi::c_void, lppt: *mut super::super::super::Foundation::POINT) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost_Impl::TxClientToScreen(this, core::mem::transmute_copy(&lppt)) @@ -5645,7 +5645,7 @@ impl core::ops::Deref for ITextHost2 { } windows_core::imp::interface_hierarchy!(ITextHost2, windows_core::IUnknown, ITextHost); impl ITextHost2 { - pub unsafe fn TxIsDoubleClickPending(&self) -> super::super::super::Foundation::BOOL { + pub unsafe fn TxIsDoubleClickPending(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).TxIsDoubleClickPending)(windows_core::Interface::as_raw(self)) } } pub unsafe fn TxGetWindow(&self, phwnd: *mut super::super::super::Foundation::HWND) -> windows_core::Result<()> { @@ -5688,7 +5688,7 @@ impl ITextHost2 { #[repr(C)] pub struct ITextHost2_Vtbl { pub base__: ITextHost_Vtbl, - pub TxIsDoubleClickPending: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::super::Foundation::BOOL, + pub TxIsDoubleClickPending: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub TxGetWindow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::HWND) -> windows_core::HRESULT, pub TxSetForegroundWindow: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_Graphics_Gdi")] @@ -5697,14 +5697,14 @@ pub struct ITextHost2_Vtbl { TxGetPalette: usize, pub TxGetEastAsianFlags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub TxSetCursor2: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::WindowsAndMessaging::HCURSOR, super::super::super::Foundation::BOOL) -> super::super::WindowsAndMessaging::HCURSOR, + pub TxSetCursor2: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::WindowsAndMessaging::HCURSOR, windows_core::BOOL) -> super::super::WindowsAndMessaging::HCURSOR, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] TxSetCursor2: usize, pub TxFreeTextServicesNotification: unsafe extern "system" fn(*mut core::ffi::c_void), pub TxGetEditStyle: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, pub TxGetWindowStyles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32) -> windows_core::HRESULT, #[cfg(feature = "Win32_Graphics_Gdi")] - pub TxShowDropCaret: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL, super::super::super::Graphics::Gdi::HDC, *mut super::super::super::Foundation::RECT) -> windows_core::HRESULT, + pub TxShowDropCaret: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, super::super::super::Graphics::Gdi::HDC, *mut super::super::super::Foundation::RECT) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] TxShowDropCaret: usize, pub TxDestroyCaret: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -5712,23 +5712,23 @@ pub struct ITextHost2_Vtbl { } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Input_Ime", feature = "Win32_UI_WindowsAndMessaging"))] pub trait ITextHost2_Impl: ITextHost_Impl { - fn TxIsDoubleClickPending(&self) -> super::super::super::Foundation::BOOL; + fn TxIsDoubleClickPending(&self) -> windows_core::BOOL; fn TxGetWindow(&self, phwnd: *mut super::super::super::Foundation::HWND) -> windows_core::Result<()>; fn TxSetForegroundWindow(&self) -> windows_core::Result<()>; fn TxGetPalette(&self) -> super::super::super::Graphics::Gdi::HPALETTE; fn TxGetEastAsianFlags(&self, pflags: *mut i32) -> windows_core::Result<()>; - fn TxSetCursor2(&self, hcur: super::super::WindowsAndMessaging::HCURSOR, btext: super::super::super::Foundation::BOOL) -> super::super::WindowsAndMessaging::HCURSOR; + fn TxSetCursor2(&self, hcur: super::super::WindowsAndMessaging::HCURSOR, btext: windows_core::BOOL) -> super::super::WindowsAndMessaging::HCURSOR; fn TxFreeTextServicesNotification(&self); fn TxGetEditStyle(&self, dwitem: u32, pdwdata: *mut u32) -> windows_core::Result<()>; fn TxGetWindowStyles(&self, pdwstyle: *mut u32, pdwexstyle: *mut u32) -> windows_core::Result<()>; - fn TxShowDropCaret(&self, fshow: super::super::super::Foundation::BOOL, hdc: super::super::super::Graphics::Gdi::HDC, prc: *mut super::super::super::Foundation::RECT) -> windows_core::Result<()>; + fn TxShowDropCaret(&self, fshow: windows_core::BOOL, hdc: super::super::super::Graphics::Gdi::HDC, prc: *mut super::super::super::Foundation::RECT) -> windows_core::Result<()>; fn TxDestroyCaret(&self) -> windows_core::Result<()>; fn TxGetHorzExtent(&self, plhorzextent: *mut i32) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Input_Ime", feature = "Win32_UI_WindowsAndMessaging"))] impl ITextHost2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn TxIsDoubleClickPending(this: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL { + unsafe extern "system" fn TxIsDoubleClickPending(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost2_Impl::TxIsDoubleClickPending(this) @@ -5758,7 +5758,7 @@ impl ITextHost2_Vtbl { ITextHost2_Impl::TxGetEastAsianFlags(this, core::mem::transmute_copy(&pflags)).into() } } - unsafe extern "system" fn TxSetCursor2(this: *mut core::ffi::c_void, hcur: super::super::WindowsAndMessaging::HCURSOR, btext: super::super::super::Foundation::BOOL) -> super::super::WindowsAndMessaging::HCURSOR { + unsafe extern "system" fn TxSetCursor2(this: *mut core::ffi::c_void, hcur: super::super::WindowsAndMessaging::HCURSOR, btext: windows_core::BOOL) -> super::super::WindowsAndMessaging::HCURSOR { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost2_Impl::TxSetCursor2(this, core::mem::transmute_copy(&hcur), core::mem::transmute_copy(&btext)) @@ -5782,7 +5782,7 @@ impl ITextHost2_Vtbl { ITextHost2_Impl::TxGetWindowStyles(this, core::mem::transmute_copy(&pdwstyle), core::mem::transmute_copy(&pdwexstyle)).into() } } - unsafe extern "system" fn TxShowDropCaret(this: *mut core::ffi::c_void, fshow: super::super::super::Foundation::BOOL, hdc: super::super::super::Graphics::Gdi::HDC, prc: *mut super::super::super::Foundation::RECT) -> windows_core::HRESULT { + unsafe extern "system" fn TxShowDropCaret(this: *mut core::ffi::c_void, fshow: windows_core::BOOL, hdc: super::super::super::Graphics::Gdi::HDC, prc: *mut super::super::super::Foundation::RECT) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextHost2_Impl::TxShowDropCaret(this, core::mem::transmute_copy(&fshow), core::mem::transmute_copy(&hdc), core::mem::transmute_copy(&prc)).into() @@ -9708,10 +9708,10 @@ impl ITextServices { pub unsafe fn TxDraw(&self, dwdrawaspect: super::super::super::System::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: *mut super::super::super::System::Com::DVTARGETDEVICE, hdcdraw: super::super::super::Graphics::Gdi::HDC, hictargetdev: super::super::super::Graphics::Gdi::HDC, lprcbounds: *mut super::super::super::Foundation::RECTL, lprcwbounds: *mut super::super::super::Foundation::RECTL, lprcupdate: *mut super::super::super::Foundation::RECT, pfncontinue: isize, dwcontinue: u32, lviewid: i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).TxDraw)(windows_core::Interface::as_raw(self), dwdrawaspect, lindex, pvaspect as _, ptd as _, hdcdraw, hictargetdev, lprcbounds as _, lprcwbounds as _, lprcupdate as _, pfncontinue, dwcontinue, lviewid).ok() } } - pub unsafe fn TxGetHScroll(&self, plmin: *mut i32, plmax: *mut i32, plpos: *mut i32, plpage: *mut i32, pfenabled: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn TxGetHScroll(&self, plmin: *mut i32, plmax: *mut i32, plpos: *mut i32, plpage: *mut i32, pfenabled: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).TxGetHScroll)(windows_core::Interface::as_raw(self), plmin as _, plmax as _, plpos as _, plpage as _, pfenabled as _).ok() } } - pub unsafe fn TxGetVScroll(&self, plmin: *mut i32, plmax: *mut i32, plpos: *mut i32, plpage: *mut i32, pfenabled: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn TxGetVScroll(&self, plmin: *mut i32, plmax: *mut i32, plpos: *mut i32, plpage: *mut i32, pfenabled: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).TxGetVScroll)(windows_core::Interface::as_raw(self), plmin as _, plmax as _, plpos as _, plpage as _, pfenabled as _).ok() } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] @@ -9775,8 +9775,8 @@ pub struct ITextServices_Vtbl { pub TxDraw: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::System::Com::DVASPECT, i32, *mut core::ffi::c_void, *mut super::super::super::System::Com::DVTARGETDEVICE, super::super::super::Graphics::Gdi::HDC, super::super::super::Graphics::Gdi::HDC, *mut super::super::super::Foundation::RECTL, *mut super::super::super::Foundation::RECTL, *mut super::super::super::Foundation::RECT, isize, u32, i32) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com")))] TxDraw: usize, - pub TxGetHScroll: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32, *mut i32, *mut i32, *mut i32, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub TxGetVScroll: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32, *mut i32, *mut i32, *mut i32, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub TxGetHScroll: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32, *mut i32, *mut i32, *mut i32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub TxGetVScroll: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32, *mut i32, *mut i32, *mut i32, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub OnTxSetCursor: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::System::Com::DVASPECT, i32, *mut core::ffi::c_void, *mut super::super::super::System::Com::DVTARGETDEVICE, super::super::super::Graphics::Gdi::HDC, super::super::super::Graphics::Gdi::HDC, *mut super::super::super::Foundation::RECT, i32, i32) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com")))] @@ -9808,8 +9808,8 @@ pub struct ITextServices_Vtbl { pub trait ITextServices_Impl: windows_core::IUnknownImpl { fn TxSendMessage(&self, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::Result<()>; fn TxDraw(&self, dwdrawaspect: super::super::super::System::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: *mut super::super::super::System::Com::DVTARGETDEVICE, hdcdraw: super::super::super::Graphics::Gdi::HDC, hictargetdev: super::super::super::Graphics::Gdi::HDC, lprcbounds: *mut super::super::super::Foundation::RECTL, lprcwbounds: *mut super::super::super::Foundation::RECTL, lprcupdate: *mut super::super::super::Foundation::RECT, pfncontinue: isize, dwcontinue: u32, lviewid: i32) -> windows_core::Result<()>; - fn TxGetHScroll(&self, plmin: *mut i32, plmax: *mut i32, plpos: *mut i32, plpage: *mut i32, pfenabled: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn TxGetVScroll(&self, plmin: *mut i32, plmax: *mut i32, plpos: *mut i32, plpage: *mut i32, pfenabled: *mut super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn TxGetHScroll(&self, plmin: *mut i32, plmax: *mut i32, plpos: *mut i32, plpage: *mut i32, pfenabled: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn TxGetVScroll(&self, plmin: *mut i32, plmax: *mut i32, plpos: *mut i32, plpage: *mut i32, pfenabled: *mut windows_core::BOOL) -> windows_core::Result<()>; fn OnTxSetCursor(&self, dwdrawaspect: super::super::super::System::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: *mut super::super::super::System::Com::DVTARGETDEVICE, hdcdraw: super::super::super::Graphics::Gdi::HDC, hictargetdev: super::super::super::Graphics::Gdi::HDC, lprcclient: *mut super::super::super::Foundation::RECT, x: i32, y: i32) -> windows_core::Result<()>; fn TxQueryHitPoint(&self, dwdrawaspect: super::super::super::System::Com::DVASPECT, lindex: i32, pvaspect: *mut core::ffi::c_void, ptd: *mut super::super::super::System::Com::DVTARGETDEVICE, hdcdraw: super::super::super::Graphics::Gdi::HDC, hictargetdev: super::super::super::Graphics::Gdi::HDC, lprcclient: *mut super::super::super::Foundation::RECT, x: i32, y: i32, phitresult: *mut u32) -> windows_core::Result<()>; fn OnTxInPlaceActivate(&self, prcclient: *mut super::super::super::Foundation::RECT) -> windows_core::Result<()>; @@ -9840,13 +9840,13 @@ impl ITextServices_Vtbl { ITextServices_Impl::TxDraw(this, core::mem::transmute_copy(&dwdrawaspect), core::mem::transmute_copy(&lindex), core::mem::transmute_copy(&pvaspect), core::mem::transmute_copy(&ptd), core::mem::transmute_copy(&hdcdraw), core::mem::transmute_copy(&hictargetdev), core::mem::transmute_copy(&lprcbounds), core::mem::transmute_copy(&lprcwbounds), core::mem::transmute_copy(&lprcupdate), core::mem::transmute_copy(&pfncontinue), core::mem::transmute_copy(&dwcontinue), core::mem::transmute_copy(&lviewid)).into() } } - unsafe extern "system" fn TxGetHScroll(this: *mut core::ffi::c_void, plmin: *mut i32, plmax: *mut i32, plpos: *mut i32, plpage: *mut i32, pfenabled: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn TxGetHScroll(this: *mut core::ffi::c_void, plmin: *mut i32, plmax: *mut i32, plpos: *mut i32, plpage: *mut i32, pfenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::TxGetHScroll(this, core::mem::transmute_copy(&plmin), core::mem::transmute_copy(&plmax), core::mem::transmute_copy(&plpos), core::mem::transmute_copy(&plpage), core::mem::transmute_copy(&pfenabled)).into() } } - unsafe extern "system" fn TxGetVScroll(this: *mut core::ffi::c_void, plmin: *mut i32, plmax: *mut i32, plpos: *mut i32, plpage: *mut i32, pfenabled: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn TxGetVScroll(this: *mut core::ffi::c_void, plmin: *mut i32, plmax: *mut i32, plpos: *mut i32, plpage: *mut i32, pfenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextServices_Impl::TxGetVScroll(this, core::mem::transmute_copy(&plmin), core::mem::transmute_copy(&plmax), core::mem::transmute_copy(&plpos), core::mem::transmute_copy(&plpage), core::mem::transmute_copy(&pfenabled)).into() 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 063dcdb8b2..349b483970 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs @@ -15,8 +15,8 @@ pub unsafe fn BeginBufferedPaint(hdctarget: super::super::Graphics::Gdi::HDC, pr unsafe { BeginBufferedPaint(hdctarget, prctarget, dwformat, ppaintparams.unwrap_or(core::mem::zeroed()) as _, phdc as _) } } #[inline] -pub unsafe fn BeginPanningFeedback(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("uxtheme.dll" "system" fn BeginPanningFeedback(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn BeginPanningFeedback(hwnd: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("uxtheme.dll" "system" fn BeginPanningFeedback(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { BeginPanningFeedback(hwnd) } } #[inline] @@ -31,8 +31,8 @@ pub unsafe fn BufferedPaintInit() -> windows_core::Result<()> { } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn BufferedPaintRenderAnimation(hwnd: super::super::Foundation::HWND, hdctarget: super::super::Graphics::Gdi::HDC) -> super::super::Foundation::BOOL { - windows_targets::link!("uxtheme.dll" "system" fn BufferedPaintRenderAnimation(hwnd : super::super::Foundation:: HWND, hdctarget : super::super::Graphics::Gdi:: HDC) -> super::super::Foundation:: BOOL); +pub unsafe fn BufferedPaintRenderAnimation(hwnd: super::super::Foundation::HWND, hdctarget: super::super::Graphics::Gdi::HDC) -> windows_core::BOOL { + windows_targets::link!("uxtheme.dll" "system" fn BufferedPaintRenderAnimation(hwnd : super::super::Foundation:: HWND, hdctarget : super::super::Graphics::Gdi:: HDC) -> windows_core::BOOL); unsafe { BufferedPaintRenderAnimation(hwnd, hdctarget) } } #[inline] @@ -52,12 +52,12 @@ pub unsafe fn BufferedPaintUnInit() -> windows_core::Result<()> { } #[inline] pub unsafe fn CheckDlgButton(hdlg: super::super::Foundation::HWND, nidbutton: i32, ucheck: DLG_BUTTON_CHECK_STATE) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn CheckDlgButton(hdlg : super::super::Foundation:: HWND, nidbutton : i32, ucheck : DLG_BUTTON_CHECK_STATE) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn CheckDlgButton(hdlg : super::super::Foundation:: HWND, nidbutton : i32, ucheck : DLG_BUTTON_CHECK_STATE) -> windows_core::BOOL); unsafe { CheckDlgButton(hdlg, nidbutton, ucheck).ok() } } #[inline] pub unsafe fn CheckRadioButton(hdlg: super::super::Foundation::HWND, nidfirstbutton: i32, nidlastbutton: i32, nidcheckbutton: i32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn CheckRadioButton(hdlg : super::super::Foundation:: HWND, nidfirstbutton : i32, nidlastbutton : i32, nidcheckbutton : i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn CheckRadioButton(hdlg : super::super::Foundation:: HWND, nidfirstbutton : i32, nidlastbutton : i32, nidcheckbutton : i32) -> windows_core::BOOL); unsafe { CheckRadioButton(hdlg, nidfirstbutton, nidlastbutton, nidcheckbutton).ok() } } #[inline] @@ -136,8 +136,8 @@ pub unsafe fn DPA_CreateEx(cpgrow: i32, hheap: Option super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn DPA_DeleteAllPtrs(hdpa : HDPA) -> super::super::Foundation:: BOOL); +pub unsafe fn DPA_DeleteAllPtrs(hdpa: HDPA) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn DPA_DeleteAllPtrs(hdpa : HDPA) -> windows_core::BOOL); unsafe { DPA_DeleteAllPtrs(hdpa) } } #[inline] @@ -146,8 +146,8 @@ pub unsafe fn DPA_DeletePtr(hdpa: HDPA, i: i32) -> *mut core::ffi::c_void { unsafe { DPA_DeletePtr(hdpa, i) } } #[inline] -pub unsafe fn DPA_Destroy(hdpa: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn DPA_Destroy(hdpa : HDPA) -> super::super::Foundation:: BOOL); +pub unsafe fn DPA_Destroy(hdpa: Option) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn DPA_Destroy(hdpa : HDPA) -> windows_core::BOOL); unsafe { DPA_Destroy(hdpa.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -176,8 +176,8 @@ pub unsafe fn DPA_GetSize(hdpa: Option) -> u64 { unsafe { DPA_GetSize(hdpa.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn DPA_Grow(pdpa: HDPA, cp: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn DPA_Grow(pdpa : HDPA, cp : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn DPA_Grow(pdpa: HDPA, cp: i32) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn DPA_Grow(pdpa : HDPA, cp : i32) -> windows_core::BOOL); unsafe { DPA_Grow(pdpa, cp) } } #[inline] @@ -195,8 +195,8 @@ where unsafe { DPA_LoadStream(phdpa as _, pfn, pstream.param().abi(), pvinstdata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn DPA_Merge(hdpadest: HDPA, hdpasrc: HDPA, dwflags: u32, pfncompare: PFNDACOMPARE, pfnmerge: PFNDPAMERGE, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn DPA_Merge(hdpadest : HDPA, hdpasrc : HDPA, dwflags : u32, pfncompare : PFNDACOMPARE, pfnmerge : PFNDPAMERGE, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); +pub unsafe fn DPA_Merge(hdpadest: HDPA, hdpasrc: HDPA, dwflags: u32, pfncompare: PFNDACOMPARE, pfnmerge: PFNDPAMERGE, lparam: super::super::Foundation::LPARAM) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn DPA_Merge(hdpadest : HDPA, hdpasrc : HDPA, dwflags : u32, pfncompare : PFNDACOMPARE, pfnmerge : PFNDPAMERGE, lparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { DPA_Merge(hdpadest, hdpasrc, dwflags, pfncompare, pfnmerge, lparam) } } #[cfg(feature = "Win32_System_Com")] @@ -214,13 +214,13 @@ pub unsafe fn DPA_Search(hdpa: HDPA, pfind: Option<*const core::ffi::c_void>, is unsafe { DPA_Search(hdpa, pfind.unwrap_or(core::mem::zeroed()) as _, istart, pfncompare, lparam, options) } } #[inline] -pub unsafe fn DPA_SetPtr(hdpa: HDPA, i: i32, p: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn DPA_SetPtr(hdpa : HDPA, i : i32, p : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn DPA_SetPtr(hdpa: HDPA, i: i32, p: Option<*const core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn DPA_SetPtr(hdpa : HDPA, i : i32, p : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { DPA_SetPtr(hdpa, i, p.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn DPA_Sort(hdpa: HDPA, pfncompare: PFNDACOMPARE, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn DPA_Sort(hdpa : HDPA, pfncompare : PFNDACOMPARE, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); +pub unsafe fn DPA_Sort(hdpa: HDPA, pfncompare: PFNDACOMPARE, lparam: super::super::Foundation::LPARAM) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn DPA_Sort(hdpa : HDPA, pfncompare : PFNDACOMPARE, lparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { DPA_Sort(hdpa, pfncompare, lparam) } } #[inline] @@ -234,18 +234,18 @@ pub unsafe fn DSA_Create(cbitem: i32, citemgrow: i32) -> HDSA { unsafe { DSA_Create(cbitem, citemgrow) } } #[inline] -pub unsafe fn DSA_DeleteAllItems(hdsa: HDSA) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn DSA_DeleteAllItems(hdsa : HDSA) -> super::super::Foundation:: BOOL); +pub unsafe fn DSA_DeleteAllItems(hdsa: HDSA) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn DSA_DeleteAllItems(hdsa : HDSA) -> windows_core::BOOL); unsafe { DSA_DeleteAllItems(hdsa) } } #[inline] -pub unsafe fn DSA_DeleteItem(hdsa: HDSA, i: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn DSA_DeleteItem(hdsa : HDSA, i : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn DSA_DeleteItem(hdsa: HDSA, i: i32) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn DSA_DeleteItem(hdsa : HDSA, i : i32) -> windows_core::BOOL); unsafe { DSA_DeleteItem(hdsa, i) } } #[inline] -pub unsafe fn DSA_Destroy(hdsa: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn DSA_Destroy(hdsa : HDSA) -> super::super::Foundation:: BOOL); +pub unsafe fn DSA_Destroy(hdsa: Option) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn DSA_Destroy(hdsa : HDSA) -> windows_core::BOOL); unsafe { DSA_Destroy(hdsa.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -259,8 +259,8 @@ pub unsafe fn DSA_EnumCallback(hdsa: HDSA, pfncb: PFNDAENUMCALLBACK, pdata: Opti unsafe { DSA_EnumCallback(hdsa, pfncb, pdata.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn DSA_GetItem(hdsa: HDSA, i: i32, pitem: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn DSA_GetItem(hdsa : HDSA, i : i32, pitem : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn DSA_GetItem(hdsa: HDSA, i: i32, pitem: *mut core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn DSA_GetItem(hdsa : HDSA, i : i32, pitem : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { DSA_GetItem(hdsa, i, pitem as _) } } #[inline] @@ -279,18 +279,18 @@ pub unsafe fn DSA_InsertItem(hdsa: HDSA, i: i32, pitem: *const core::ffi::c_void unsafe { DSA_InsertItem(hdsa, i, pitem) } } #[inline] -pub unsafe fn DSA_SetItem(hdsa: HDSA, i: i32, pitem: *const core::ffi::c_void) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn DSA_SetItem(hdsa : HDSA, i : i32, pitem : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn DSA_SetItem(hdsa: HDSA, i: i32, pitem: *const core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn DSA_SetItem(hdsa : HDSA, i : i32, pitem : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { DSA_SetItem(hdsa, i, pitem) } } #[inline] -pub unsafe fn DSA_Sort(pdsa: HDSA, pfncompare: PFNDACOMPARE, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn DSA_Sort(pdsa : HDSA, pfncompare : PFNDACOMPARE, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); +pub unsafe fn DSA_Sort(pdsa: HDSA, pfncompare: PFNDACOMPARE, lparam: super::super::Foundation::LPARAM) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn DSA_Sort(pdsa : HDSA, pfncompare : PFNDACOMPARE, lparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { DSA_Sort(pdsa, pfncompare, lparam) } } #[inline] -pub unsafe fn DestroyPropertySheetPage(param0: HPROPSHEETPAGE) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn DestroyPropertySheetPage(param0 : HPROPSHEETPAGE) -> super::super::Foundation:: BOOL); +pub unsafe fn DestroyPropertySheetPage(param0: HPROPSHEETPAGE) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn DestroyPropertySheetPage(param0 : HPROPSHEETPAGE) -> windows_core::BOOL); unsafe { DestroyPropertySheetPage(param0) } } #[inline] @@ -320,22 +320,22 @@ pub unsafe fn DlgDirListW(hdlg: super::super::Foundation::HWND, lppathspec: wind } #[inline] pub unsafe fn DlgDirSelectComboBoxExA(hwnddlg: super::super::Foundation::HWND, lpstring: &mut [u8], idcombobox: i32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn DlgDirSelectComboBoxExA(hwnddlg : super::super::Foundation:: HWND, lpstring : windows_core::PSTR, cchout : i32, idcombobox : i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn DlgDirSelectComboBoxExA(hwnddlg : super::super::Foundation:: HWND, lpstring : windows_core::PSTR, cchout : i32, idcombobox : i32) -> windows_core::BOOL); unsafe { DlgDirSelectComboBoxExA(hwnddlg, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), idcombobox).ok() } } #[inline] pub unsafe fn DlgDirSelectComboBoxExW(hwnddlg: super::super::Foundation::HWND, lpstring: &mut [u16], idcombobox: i32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn DlgDirSelectComboBoxExW(hwnddlg : super::super::Foundation:: HWND, lpstring : windows_core::PWSTR, cchout : i32, idcombobox : i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn DlgDirSelectComboBoxExW(hwnddlg : super::super::Foundation:: HWND, lpstring : windows_core::PWSTR, cchout : i32, idcombobox : i32) -> windows_core::BOOL); unsafe { DlgDirSelectComboBoxExW(hwnddlg, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), idcombobox).ok() } } #[inline] pub unsafe fn DlgDirSelectExA(hwnddlg: super::super::Foundation::HWND, lpstring: &mut [u8], idlistbox: i32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn DlgDirSelectExA(hwnddlg : super::super::Foundation:: HWND, lpstring : windows_core::PSTR, chcount : i32, idlistbox : i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn DlgDirSelectExA(hwnddlg : super::super::Foundation:: HWND, lpstring : windows_core::PSTR, chcount : i32, idlistbox : i32) -> windows_core::BOOL); unsafe { DlgDirSelectExA(hwnddlg, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), idlistbox).ok() } } #[inline] pub unsafe fn DlgDirSelectExW(hwnddlg: super::super::Foundation::HWND, lpstring: &mut [u16], idlistbox: i32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn DlgDirSelectExW(hwnddlg : super::super::Foundation:: HWND, lpstring : windows_core::PWSTR, chcount : i32, idlistbox : i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn DlgDirSelectExW(hwnddlg : super::super::Foundation:: HWND, lpstring : windows_core::PWSTR, chcount : i32, idlistbox : i32) -> windows_core::BOOL); unsafe { DlgDirSelectExW(hwnddlg, core::mem::transmute(lpstring.as_ptr()), lpstring.len().try_into().unwrap(), idlistbox).ok() } } #[inline] @@ -417,7 +417,7 @@ pub unsafe fn DrawThemeTextEx(htheme: HTHEME, hdc: super::super::Graphics::Gdi:: } #[inline] pub unsafe fn EnableScrollBar(hwnd: super::super::Foundation::HWND, wsbflags: u32, warrows: ENABLE_SCROLL_BAR_ARROWS) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn EnableScrollBar(hwnd : super::super::Foundation:: HWND, wsbflags : u32, warrows : ENABLE_SCROLL_BAR_ARROWS) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EnableScrollBar(hwnd : super::super::Foundation:: HWND, wsbflags : u32, warrows : ENABLE_SCROLL_BAR_ARROWS) -> windows_core::BOOL); unsafe { EnableScrollBar(hwnd, wsbflags, warrows).ok() } } #[inline] @@ -427,43 +427,43 @@ pub unsafe fn EnableThemeDialogTexture(hwnd: super::super::Foundation::HWND, dwf } #[inline] pub unsafe fn EnableTheming(fenable: bool) -> windows_core::Result<()> { - windows_targets::link!("uxtheme.dll" "system" fn EnableTheming(fenable : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("uxtheme.dll" "system" fn EnableTheming(fenable : windows_core::BOOL) -> windows_core::HRESULT); unsafe { EnableTheming(fenable.into()).ok() } } #[inline] pub unsafe fn EndBufferedAnimation(hbpanimation: isize, fupdatetarget: bool) -> windows_core::Result<()> { - windows_targets::link!("uxtheme.dll" "system" fn EndBufferedAnimation(hbpanimation : isize, fupdatetarget : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("uxtheme.dll" "system" fn EndBufferedAnimation(hbpanimation : isize, fupdatetarget : windows_core::BOOL) -> windows_core::HRESULT); unsafe { EndBufferedAnimation(hbpanimation, fupdatetarget.into()).ok() } } #[inline] pub unsafe fn EndBufferedPaint(hbufferedpaint: isize, fupdatetarget: bool) -> windows_core::Result<()> { - windows_targets::link!("uxtheme.dll" "system" fn EndBufferedPaint(hbufferedpaint : isize, fupdatetarget : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("uxtheme.dll" "system" fn EndBufferedPaint(hbufferedpaint : isize, fupdatetarget : windows_core::BOOL) -> windows_core::HRESULT); unsafe { EndBufferedPaint(hbufferedpaint, fupdatetarget.into()).ok() } } #[inline] -pub unsafe fn EndPanningFeedback(hwnd: super::super::Foundation::HWND, fanimateback: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("uxtheme.dll" "system" fn EndPanningFeedback(hwnd : super::super::Foundation:: HWND, fanimateback : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn EndPanningFeedback(hwnd: super::super::Foundation::HWND, fanimateback: bool) -> windows_core::BOOL { + windows_targets::link!("uxtheme.dll" "system" fn EndPanningFeedback(hwnd : super::super::Foundation:: HWND, fanimateback : windows_core::BOOL) -> windows_core::BOOL); unsafe { EndPanningFeedback(hwnd, fanimateback.into()) } } #[inline] pub unsafe fn EvaluateProximityToPolygon(controlpolygon: &[super::super::Foundation::POINT], phittestinginput: *const TOUCH_HIT_TESTING_INPUT, pproximityeval: *mut TOUCH_HIT_TESTING_PROXIMITY_EVALUATION) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn EvaluateProximityToPolygon(numvertices : u32, controlpolygon : *const super::super::Foundation:: POINT, phittestinginput : *const TOUCH_HIT_TESTING_INPUT, pproximityeval : *mut TOUCH_HIT_TESTING_PROXIMITY_EVALUATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EvaluateProximityToPolygon(numvertices : u32, controlpolygon : *const super::super::Foundation:: POINT, phittestinginput : *const TOUCH_HIT_TESTING_INPUT, pproximityeval : *mut TOUCH_HIT_TESTING_PROXIMITY_EVALUATION) -> windows_core::BOOL); unsafe { EvaluateProximityToPolygon(controlpolygon.len().try_into().unwrap(), core::mem::transmute(controlpolygon.as_ptr()), phittestinginput, pproximityeval as _).ok() } } #[inline] pub unsafe fn EvaluateProximityToRect(controlboundingbox: *const super::super::Foundation::RECT, phittestinginput: *const TOUCH_HIT_TESTING_INPUT, pproximityeval: *mut TOUCH_HIT_TESTING_PROXIMITY_EVALUATION) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn EvaluateProximityToRect(controlboundingbox : *const super::super::Foundation:: RECT, phittestinginput : *const TOUCH_HIT_TESTING_INPUT, pproximityeval : *mut TOUCH_HIT_TESTING_PROXIMITY_EVALUATION) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EvaluateProximityToRect(controlboundingbox : *const super::super::Foundation:: RECT, phittestinginput : *const TOUCH_HIT_TESTING_INPUT, pproximityeval : *mut TOUCH_HIT_TESTING_PROXIMITY_EVALUATION) -> windows_core::BOOL); unsafe { EvaluateProximityToRect(controlboundingbox, phittestinginput, pproximityeval as _).ok() } } #[inline] -pub unsafe fn FlatSB_EnableScrollBar(param0: super::super::Foundation::HWND, param1: i32, param2: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn FlatSB_EnableScrollBar(param0 : super::super::Foundation:: HWND, param1 : i32, param2 : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn FlatSB_EnableScrollBar(param0: super::super::Foundation::HWND, param1: i32, param2: u32) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn FlatSB_EnableScrollBar(param0 : super::super::Foundation:: HWND, param1 : i32, param2 : u32) -> windows_core::BOOL); unsafe { FlatSB_EnableScrollBar(param0, param1, param2) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn FlatSB_GetScrollInfo(param0: super::super::Foundation::HWND, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, param2: *mut super::WindowsAndMessaging::SCROLLINFO) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn FlatSB_GetScrollInfo(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, param2 : *mut super::WindowsAndMessaging:: SCROLLINFO) -> super::super::Foundation:: BOOL); +pub unsafe fn FlatSB_GetScrollInfo(param0: super::super::Foundation::HWND, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, param2: *mut super::WindowsAndMessaging::SCROLLINFO) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn FlatSB_GetScrollInfo(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, param2 : *mut super::WindowsAndMessaging:: SCROLLINFO) -> windows_core::BOOL); unsafe { FlatSB_GetScrollInfo(param0, code, param2 as _) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -473,43 +473,43 @@ pub unsafe fn FlatSB_GetScrollPos(param0: super::super::Foundation::HWND, code: unsafe { FlatSB_GetScrollPos(param0, code) } } #[inline] -pub unsafe fn FlatSB_GetScrollProp(param0: super::super::Foundation::HWND, propindex: WSB_PROP, param2: *mut i32) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn FlatSB_GetScrollProp(param0 : super::super::Foundation:: HWND, propindex : WSB_PROP, param2 : *mut i32) -> super::super::Foundation:: BOOL); +pub unsafe fn FlatSB_GetScrollProp(param0: super::super::Foundation::HWND, propindex: WSB_PROP, param2: *mut i32) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn FlatSB_GetScrollProp(param0 : super::super::Foundation:: HWND, propindex : WSB_PROP, param2 : *mut i32) -> windows_core::BOOL); unsafe { FlatSB_GetScrollProp(param0, propindex, param2 as _) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn FlatSB_GetScrollRange(param0: super::super::Foundation::HWND, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, param2: *mut i32, param3: *mut i32) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn FlatSB_GetScrollRange(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, param2 : *mut i32, param3 : *mut i32) -> super::super::Foundation:: BOOL); +pub unsafe fn FlatSB_GetScrollRange(param0: super::super::Foundation::HWND, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, param2: *mut i32, param3: *mut i32) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn FlatSB_GetScrollRange(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, param2 : *mut i32, param3 : *mut i32) -> windows_core::BOOL); unsafe { FlatSB_GetScrollRange(param0, code, param2 as _, param3 as _) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn FlatSB_SetScrollInfo(param0: super::super::Foundation::HWND, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, psi: *mut super::WindowsAndMessaging::SCROLLINFO, fredraw: bool) -> i32 { - windows_targets::link!("comctl32.dll" "system" fn FlatSB_SetScrollInfo(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, psi : *mut super::WindowsAndMessaging:: SCROLLINFO, fredraw : super::super::Foundation:: BOOL) -> i32); + windows_targets::link!("comctl32.dll" "system" fn FlatSB_SetScrollInfo(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, psi : *mut super::WindowsAndMessaging:: SCROLLINFO, fredraw : windows_core::BOOL) -> i32); unsafe { FlatSB_SetScrollInfo(param0, code, psi as _, fredraw.into()) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn FlatSB_SetScrollPos(param0: super::super::Foundation::HWND, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, pos: i32, fredraw: bool) -> i32 { - windows_targets::link!("comctl32.dll" "system" fn FlatSB_SetScrollPos(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, pos : i32, fredraw : super::super::Foundation:: BOOL) -> i32); + windows_targets::link!("comctl32.dll" "system" fn FlatSB_SetScrollPos(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, pos : i32, fredraw : windows_core::BOOL) -> i32); unsafe { FlatSB_SetScrollPos(param0, code, pos, fredraw.into()) } } #[inline] -pub unsafe fn FlatSB_SetScrollProp(param0: super::super::Foundation::HWND, index: WSB_PROP, newvalue: isize, param3: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn FlatSB_SetScrollProp(param0 : super::super::Foundation:: HWND, index : u32, newvalue : isize, param3 : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn FlatSB_SetScrollProp(param0: super::super::Foundation::HWND, index: WSB_PROP, newvalue: isize, param3: bool) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn FlatSB_SetScrollProp(param0 : super::super::Foundation:: HWND, index : u32, newvalue : isize, param3 : windows_core::BOOL) -> windows_core::BOOL); unsafe { FlatSB_SetScrollProp(param0, index.0 as _, newvalue, param3.into()) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn FlatSB_SetScrollRange(param0: super::super::Foundation::HWND, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, min: i32, max: i32, fredraw: bool) -> i32 { - windows_targets::link!("comctl32.dll" "system" fn FlatSB_SetScrollRange(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, min : i32, max : i32, fredraw : super::super::Foundation:: BOOL) -> i32); + windows_targets::link!("comctl32.dll" "system" fn FlatSB_SetScrollRange(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, min : i32, max : i32, fredraw : windows_core::BOOL) -> i32); unsafe { FlatSB_SetScrollRange(param0, code, min, max, fredraw.into()) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn FlatSB_ShowScrollBar(param0: super::super::Foundation::HWND, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, param2: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn FlatSB_ShowScrollBar(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, param2 : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn FlatSB_ShowScrollBar(param0: super::super::Foundation::HWND, code: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, param2: bool) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn FlatSB_ShowScrollBar(param0 : super::super::Foundation:: HWND, code : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, param2 : windows_core::BOOL) -> windows_core::BOOL); unsafe { FlatSB_ShowScrollBar(param0, code, param2.into()) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -540,7 +540,7 @@ pub unsafe fn GetBufferedPaintTargetRect(hbufferedpaint: isize) -> windows_core: } #[inline] pub unsafe fn GetComboBoxInfo(hwndcombo: super::super::Foundation::HWND, pcbi: *mut COMBOBOXINFO) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetComboBoxInfo(hwndcombo : super::super::Foundation:: HWND, pcbi : *mut COMBOBOXINFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetComboBoxInfo(hwndcombo : super::super::Foundation:: HWND, pcbi : *mut COMBOBOXINFO) -> windows_core::BOOL); unsafe { GetComboBoxInfo(hwndcombo, pcbi as _).ok() } } #[inline] @@ -615,8 +615,8 @@ pub unsafe fn GetThemeBitmap(htheme: HTHEME, ipartid: i32, istateid: i32, ipropi } } #[inline] -pub unsafe fn GetThemeBool(htheme: HTHEME, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID) -> windows_core::Result { - windows_targets::link!("uxtheme.dll" "system" fn GetThemeBool(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, pfval : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn GetThemeBool(htheme: HTHEME, ipartid: i32, istateid: i32, ipropid: THEME_PROPERTY_SYMBOL_ID) -> windows_core::Result { + windows_targets::link!("uxtheme.dll" "system" fn GetThemeBool(htheme : HTHEME, ipartid : i32, istateid : i32, ipropid : i32, pfval : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); GetThemeBool(htheme, ipartid, istateid, ipropid.0 as _, &mut result__).map(|| core::mem::transmute(result__)) @@ -733,8 +733,8 @@ pub unsafe fn GetThemeString(htheme: HTHEME, ipartid: i32, istateid: i32, ipropi unsafe { GetThemeString(htheme, ipartid, istateid, ipropid, core::mem::transmute(pszbuff.as_ptr()), pszbuff.len().try_into().unwrap()).ok() } } #[inline] -pub unsafe fn GetThemeSysBool(htheme: Option, iboolid: THEME_PROPERTY_SYMBOL_ID) -> super::super::Foundation::BOOL { - windows_targets::link!("uxtheme.dll" "system" fn GetThemeSysBool(htheme : HTHEME, iboolid : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetThemeSysBool(htheme: Option, iboolid: THEME_PROPERTY_SYMBOL_ID) -> windows_core::BOOL { + windows_targets::link!("uxtheme.dll" "system" fn GetThemeSysBool(htheme : HTHEME, iboolid : i32) -> windows_core::BOOL); unsafe { GetThemeSysBool(htheme.unwrap_or(core::mem::zeroed()) as _, iboolid.0 as _) } } #[inline] @@ -801,8 +801,8 @@ pub unsafe fn GetThemeTransitionDuration(htheme: HTHEME, ipartid: i32, istateidf } } #[inline] -pub unsafe fn GetWindowFeedbackSetting(hwnd: super::super::Foundation::HWND, feedback: FEEDBACK_TYPE, dwflags: u32, psize: *mut u32, config: Option<*mut core::ffi::c_void>) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn GetWindowFeedbackSetting(hwnd : super::super::Foundation:: HWND, feedback : FEEDBACK_TYPE, dwflags : u32, psize : *mut u32, config : *mut core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn GetWindowFeedbackSetting(hwnd: super::super::Foundation::HWND, feedback: FEEDBACK_TYPE, dwflags: u32, psize: *mut u32, config: Option<*mut core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn GetWindowFeedbackSetting(hwnd : super::super::Foundation:: HWND, feedback : FEEDBACK_TYPE, dwflags : u32, psize : *mut u32, config : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { GetWindowFeedbackSetting(hwnd, feedback, dwflags, psize as _, config.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -837,8 +837,8 @@ pub unsafe fn ImageList_AddMasked(himl: HIMAGELIST, hbmimage: super::super::Grap unsafe { ImageList_AddMasked(himl, hbmimage, crmask) } } #[inline] -pub unsafe fn ImageList_BeginDrag(himltrack: HIMAGELIST, itrack: i32, dxhotspot: i32, dyhotspot: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ImageList_BeginDrag(himltrack : HIMAGELIST, itrack : i32, dxhotspot : i32, dyhotspot : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn ImageList_BeginDrag(himltrack: HIMAGELIST, itrack: i32, dxhotspot: i32, dyhotspot: i32) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ImageList_BeginDrag(himltrack : HIMAGELIST, itrack : i32, dxhotspot : i32, dyhotspot : i32) -> windows_core::BOOL); unsafe { ImageList_BeginDrag(himltrack, itrack, dxhotspot, dyhotspot) } } #[inline] @@ -852,8 +852,8 @@ where unsafe { ImageList_CoCreateInstance(rclsid, punkouter.param().abi(), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[inline] -pub unsafe fn ImageList_Copy(himldst: HIMAGELIST, idst: i32, himlsrc: HIMAGELIST, isrc: i32, uflags: IMAGE_LIST_COPY_FLAGS) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ImageList_Copy(himldst : HIMAGELIST, idst : i32, himlsrc : HIMAGELIST, isrc : i32, uflags : IMAGE_LIST_COPY_FLAGS) -> super::super::Foundation:: BOOL); +pub unsafe fn ImageList_Copy(himldst: HIMAGELIST, idst: i32, himlsrc: HIMAGELIST, isrc: i32, uflags: IMAGE_LIST_COPY_FLAGS) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ImageList_Copy(himldst : HIMAGELIST, idst : i32, himlsrc : HIMAGELIST, isrc : i32, uflags : IMAGE_LIST_COPY_FLAGS) -> windows_core::BOOL); unsafe { ImageList_Copy(himldst, idst, himlsrc, isrc, uflags) } } #[inline] @@ -862,46 +862,46 @@ pub unsafe fn ImageList_Create(cx: i32, cy: i32, flags: IMAGELIST_CREATION_FLAGS unsafe { ImageList_Create(cx, cy, flags, cinitial, cgrow) } } #[inline] -pub unsafe fn ImageList_Destroy(himl: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ImageList_Destroy(himl : HIMAGELIST) -> super::super::Foundation:: BOOL); +pub unsafe fn ImageList_Destroy(himl: Option) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ImageList_Destroy(himl : HIMAGELIST) -> windows_core::BOOL); unsafe { ImageList_Destroy(himl.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn ImageList_DragEnter(hwndlock: super::super::Foundation::HWND, x: i32, y: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ImageList_DragEnter(hwndlock : super::super::Foundation:: HWND, x : i32, y : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn ImageList_DragEnter(hwndlock: super::super::Foundation::HWND, x: i32, y: i32) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ImageList_DragEnter(hwndlock : super::super::Foundation:: HWND, x : i32, y : i32) -> windows_core::BOOL); unsafe { ImageList_DragEnter(hwndlock, x, y) } } #[inline] -pub unsafe fn ImageList_DragLeave(hwndlock: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ImageList_DragLeave(hwndlock : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn ImageList_DragLeave(hwndlock: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ImageList_DragLeave(hwndlock : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { ImageList_DragLeave(hwndlock) } } #[inline] -pub unsafe fn ImageList_DragMove(x: i32, y: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ImageList_DragMove(x : i32, y : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn ImageList_DragMove(x: i32, y: i32) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ImageList_DragMove(x : i32, y : i32) -> windows_core::BOOL); unsafe { ImageList_DragMove(x, y) } } #[inline] -pub unsafe fn ImageList_DragShowNolock(fshow: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ImageList_DragShowNolock(fshow : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn ImageList_DragShowNolock(fshow: bool) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ImageList_DragShowNolock(fshow : windows_core::BOOL) -> windows_core::BOOL); unsafe { ImageList_DragShowNolock(fshow.into()) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ImageList_Draw(himl: HIMAGELIST, i: i32, hdcdst: super::super::Graphics::Gdi::HDC, x: i32, y: i32, fstyle: IMAGE_LIST_DRAW_STYLE) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ImageList_Draw(himl : HIMAGELIST, i : i32, hdcdst : super::super::Graphics::Gdi:: HDC, x : i32, y : i32, fstyle : IMAGE_LIST_DRAW_STYLE) -> super::super::Foundation:: BOOL); +pub unsafe fn ImageList_Draw(himl: HIMAGELIST, i: i32, hdcdst: super::super::Graphics::Gdi::HDC, x: i32, y: i32, fstyle: IMAGE_LIST_DRAW_STYLE) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ImageList_Draw(himl : HIMAGELIST, i : i32, hdcdst : super::super::Graphics::Gdi:: HDC, x : i32, y : i32, fstyle : IMAGE_LIST_DRAW_STYLE) -> windows_core::BOOL); unsafe { ImageList_Draw(himl, i, hdcdst, x, y, fstyle) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ImageList_DrawEx(himl: HIMAGELIST, i: i32, hdcdst: super::super::Graphics::Gdi::HDC, x: i32, y: i32, dx: i32, dy: i32, rgbbk: super::super::Foundation::COLORREF, rgbfg: super::super::Foundation::COLORREF, fstyle: IMAGE_LIST_DRAW_STYLE) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ImageList_DrawEx(himl : HIMAGELIST, i : i32, hdcdst : super::super::Graphics::Gdi:: HDC, x : i32, y : i32, dx : i32, dy : i32, rgbbk : super::super::Foundation:: COLORREF, rgbfg : super::super::Foundation:: COLORREF, fstyle : IMAGE_LIST_DRAW_STYLE) -> super::super::Foundation:: BOOL); +pub unsafe fn ImageList_DrawEx(himl: HIMAGELIST, i: i32, hdcdst: super::super::Graphics::Gdi::HDC, x: i32, y: i32, dx: i32, dy: i32, rgbbk: super::super::Foundation::COLORREF, rgbfg: super::super::Foundation::COLORREF, fstyle: IMAGE_LIST_DRAW_STYLE) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ImageList_DrawEx(himl : HIMAGELIST, i : i32, hdcdst : super::super::Graphics::Gdi:: HDC, x : i32, y : i32, dx : i32, dy : i32, rgbbk : super::super::Foundation:: COLORREF, rgbfg : super::super::Foundation:: COLORREF, fstyle : IMAGE_LIST_DRAW_STYLE) -> windows_core::BOOL); unsafe { ImageList_DrawEx(himl, i, hdcdst, x, y, dx, dy, rgbbk, rgbfg, fstyle) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ImageList_DrawIndirect(pimldp: *const IMAGELISTDRAWPARAMS) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ImageList_DrawIndirect(pimldp : *const IMAGELISTDRAWPARAMS) -> super::super::Foundation:: BOOL); +pub unsafe fn ImageList_DrawIndirect(pimldp: *const IMAGELISTDRAWPARAMS) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ImageList_DrawIndirect(pimldp : *const IMAGELISTDRAWPARAMS) -> windows_core::BOOL); unsafe { ImageList_DrawIndirect(pimldp) } } #[inline] @@ -931,8 +931,8 @@ pub unsafe fn ImageList_GetIcon(himl: HIMAGELIST, i: i32, flags: IMAGE_LIST_DRAW unsafe { ImageList_GetIcon(himl, i, flags) } } #[inline] -pub unsafe fn ImageList_GetIconSize(himl: HIMAGELIST, cx: Option<*mut i32>, cy: Option<*mut i32>) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ImageList_GetIconSize(himl : HIMAGELIST, cx : *mut i32, cy : *mut i32) -> super::super::Foundation:: BOOL); +pub unsafe fn ImageList_GetIconSize(himl: HIMAGELIST, cx: Option<*mut i32>, cy: Option<*mut i32>) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ImageList_GetIconSize(himl : HIMAGELIST, cx : *mut i32, cy : *mut i32) -> windows_core::BOOL); unsafe { ImageList_GetIconSize(himl, cx.unwrap_or(core::mem::zeroed()) as _, cy.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -942,8 +942,8 @@ pub unsafe fn ImageList_GetImageCount(himl: HIMAGELIST) -> i32 { } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ImageList_GetImageInfo(himl: HIMAGELIST, i: i32, pimageinfo: *mut IMAGEINFO) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ImageList_GetImageInfo(himl : HIMAGELIST, i : i32, pimageinfo : *mut IMAGEINFO) -> super::super::Foundation:: BOOL); +pub unsafe fn ImageList_GetImageInfo(himl: HIMAGELIST, i: i32, pimageinfo: *mut IMAGEINFO) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ImageList_GetImageInfo(himl : HIMAGELIST, i : i32, pimageinfo : *mut IMAGEINFO) -> windows_core::BOOL); unsafe { ImageList_GetImageInfo(himl, i, pimageinfo as _) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -988,14 +988,14 @@ where unsafe { ImageList_ReadEx(dwflags, pstm.param().abi(), riid, ppv as _).ok() } } #[inline] -pub unsafe fn ImageList_Remove(himl: HIMAGELIST, i: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ImageList_Remove(himl : HIMAGELIST, i : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn ImageList_Remove(himl: HIMAGELIST, i: i32) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ImageList_Remove(himl : HIMAGELIST, i : i32) -> windows_core::BOOL); unsafe { ImageList_Remove(himl, i) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ImageList_Replace(himl: HIMAGELIST, i: i32, hbmimage: super::super::Graphics::Gdi::HBITMAP, hbmmask: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ImageList_Replace(himl : HIMAGELIST, i : i32, hbmimage : super::super::Graphics::Gdi:: HBITMAP, hbmmask : super::super::Graphics::Gdi:: HBITMAP) -> super::super::Foundation:: BOOL); +pub unsafe fn ImageList_Replace(himl: HIMAGELIST, i: i32, hbmimage: super::super::Graphics::Gdi::HBITMAP, hbmmask: Option) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ImageList_Replace(himl : HIMAGELIST, i : i32, hbmimage : super::super::Graphics::Gdi:: HBITMAP, hbmmask : super::super::Graphics::Gdi:: HBITMAP) -> windows_core::BOOL); unsafe { ImageList_Replace(himl, i, hbmimage, hbmmask.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -1010,32 +1010,32 @@ pub unsafe fn ImageList_SetBkColor(himl: HIMAGELIST, clrbk: super::super::Founda unsafe { ImageList_SetBkColor(himl, clrbk) } } #[inline] -pub unsafe fn ImageList_SetDragCursorImage(himldrag: HIMAGELIST, idrag: i32, dxhotspot: i32, dyhotspot: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ImageList_SetDragCursorImage(himldrag : HIMAGELIST, idrag : i32, dxhotspot : i32, dyhotspot : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn ImageList_SetDragCursorImage(himldrag: HIMAGELIST, idrag: i32, dxhotspot: i32, dyhotspot: i32) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ImageList_SetDragCursorImage(himldrag : HIMAGELIST, idrag : i32, dxhotspot : i32, dyhotspot : i32) -> windows_core::BOOL); unsafe { ImageList_SetDragCursorImage(himldrag, idrag, dxhotspot, dyhotspot) } } #[inline] -pub unsafe fn ImageList_SetIconSize(himl: HIMAGELIST, cx: i32, cy: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ImageList_SetIconSize(himl : HIMAGELIST, cx : i32, cy : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn ImageList_SetIconSize(himl: HIMAGELIST, cx: i32, cy: i32) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ImageList_SetIconSize(himl : HIMAGELIST, cx : i32, cy : i32) -> windows_core::BOOL); unsafe { ImageList_SetIconSize(himl, cx, cy) } } #[inline] -pub unsafe fn ImageList_SetImageCount(himl: HIMAGELIST, unewcount: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ImageList_SetImageCount(himl : HIMAGELIST, unewcount : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn ImageList_SetImageCount(himl: HIMAGELIST, unewcount: u32) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ImageList_SetImageCount(himl : HIMAGELIST, unewcount : u32) -> windows_core::BOOL); unsafe { ImageList_SetImageCount(himl, unewcount) } } #[inline] -pub unsafe fn ImageList_SetOverlayImage(himl: HIMAGELIST, iimage: i32, ioverlay: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ImageList_SetOverlayImage(himl : HIMAGELIST, iimage : i32, ioverlay : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn ImageList_SetOverlayImage(himl: HIMAGELIST, iimage: i32, ioverlay: i32) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ImageList_SetOverlayImage(himl : HIMAGELIST, iimage : i32, ioverlay : i32) -> windows_core::BOOL); unsafe { ImageList_SetOverlayImage(himl, iimage, ioverlay) } } #[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn ImageList_Write(himl: HIMAGELIST, pstm: P1) -> super::super::Foundation::BOOL +pub unsafe fn ImageList_Write(himl: HIMAGELIST, pstm: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("comctl32.dll" "system" fn ImageList_Write(himl : HIMAGELIST, pstm : * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("comctl32.dll" "system" fn ImageList_Write(himl : HIMAGELIST, pstm : * mut core::ffi::c_void) -> windows_core::BOOL); unsafe { ImageList_Write(himl, pstm.param().abi()) } } #[cfg(feature = "Win32_System_Com")] @@ -1053,8 +1053,8 @@ pub unsafe fn InitCommonControls() { unsafe { InitCommonControls() } } #[inline] -pub unsafe fn InitCommonControlsEx(picce: *const INITCOMMONCONTROLSEX) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn InitCommonControlsEx(picce : *const INITCOMMONCONTROLSEX) -> super::super::Foundation:: BOOL); +pub unsafe fn InitCommonControlsEx(picce: *const INITCOMMONCONTROLSEX) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn InitCommonControlsEx(picce : *const INITCOMMONCONTROLSEX) -> windows_core::BOOL); unsafe { InitCommonControlsEx(picce) } } #[inline] @@ -1063,23 +1063,23 @@ pub unsafe fn InitMUILanguage(uilang: u16) { unsafe { InitMUILanguage(uilang) } } #[inline] -pub unsafe fn InitializeFlatSB(param0: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn InitializeFlatSB(param0 : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn InitializeFlatSB(param0: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn InitializeFlatSB(param0 : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { InitializeFlatSB(param0) } } #[inline] -pub unsafe fn IsAppThemed() -> super::super::Foundation::BOOL { - windows_targets::link!("uxtheme.dll" "system" fn IsAppThemed() -> super::super::Foundation:: BOOL); +pub unsafe fn IsAppThemed() -> windows_core::BOOL { + windows_targets::link!("uxtheme.dll" "system" fn IsAppThemed() -> windows_core::BOOL); unsafe { IsAppThemed() } } #[inline] pub unsafe fn IsCharLowerW(ch: u16) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn IsCharLowerW(ch : u16) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn IsCharLowerW(ch : u16) -> windows_core::BOOL); unsafe { IsCharLowerW(ch).ok() } } #[inline] -pub unsafe fn IsCompositionActive() -> super::super::Foundation::BOOL { - windows_targets::link!("uxtheme.dll" "system" fn IsCompositionActive() -> super::super::Foundation:: BOOL); +pub unsafe fn IsCompositionActive() -> windows_core::BOOL { + windows_targets::link!("uxtheme.dll" "system" fn IsCompositionActive() -> windows_core::BOOL); unsafe { IsCompositionActive() } } #[inline] @@ -1088,28 +1088,28 @@ pub unsafe fn IsDlgButtonChecked(hdlg: super::super::Foundation::HWND, nidbutton unsafe { IsDlgButtonChecked(hdlg, nidbutton) } } #[inline] -pub unsafe fn IsThemeActive() -> super::super::Foundation::BOOL { - windows_targets::link!("uxtheme.dll" "system" fn IsThemeActive() -> super::super::Foundation:: BOOL); +pub unsafe fn IsThemeActive() -> windows_core::BOOL { + windows_targets::link!("uxtheme.dll" "system" fn IsThemeActive() -> windows_core::BOOL); unsafe { IsThemeActive() } } #[inline] -pub unsafe fn IsThemeBackgroundPartiallyTransparent(htheme: HTHEME, ipartid: i32, istateid: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("uxtheme.dll" "system" fn IsThemeBackgroundPartiallyTransparent(htheme : HTHEME, ipartid : i32, istateid : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn IsThemeBackgroundPartiallyTransparent(htheme: HTHEME, ipartid: i32, istateid: i32) -> windows_core::BOOL { + windows_targets::link!("uxtheme.dll" "system" fn IsThemeBackgroundPartiallyTransparent(htheme : HTHEME, ipartid : i32, istateid : i32) -> windows_core::BOOL); unsafe { IsThemeBackgroundPartiallyTransparent(htheme, ipartid, istateid) } } #[inline] -pub unsafe fn IsThemeDialogTextureEnabled(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("uxtheme.dll" "system" fn IsThemeDialogTextureEnabled(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn IsThemeDialogTextureEnabled(hwnd: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("uxtheme.dll" "system" fn IsThemeDialogTextureEnabled(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { IsThemeDialogTextureEnabled(hwnd) } } #[inline] -pub unsafe fn IsThemePartDefined(htheme: HTHEME, ipartid: i32, istateid: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("uxtheme.dll" "system" fn IsThemePartDefined(htheme : HTHEME, ipartid : i32, istateid : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn IsThemePartDefined(htheme: HTHEME, ipartid: i32, istateid: i32) -> windows_core::BOOL { + windows_targets::link!("uxtheme.dll" "system" fn IsThemePartDefined(htheme : HTHEME, ipartid : i32, istateid : i32) -> windows_core::BOOL); unsafe { IsThemePartDefined(htheme, ipartid, istateid) } } #[inline] pub unsafe fn LBItemFromPt(hlb: super::super::Foundation::HWND, pt: super::super::Foundation::POINT, bautoscroll: bool) -> i32 { - windows_targets::link!("comctl32.dll" "system" fn LBItemFromPt(hlb : super::super::Foundation:: HWND, pt : super::super::Foundation:: POINT, bautoscroll : super::super::Foundation:: BOOL) -> i32); + windows_targets::link!("comctl32.dll" "system" fn LBItemFromPt(hlb : super::super::Foundation:: HWND, pt : super::super::Foundation:: POINT, bautoscroll : windows_core::BOOL) -> i32); unsafe { LBItemFromPt(hlb, core::mem::transmute(pt), bautoscroll.into()) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -1137,8 +1137,8 @@ where } } #[inline] -pub unsafe fn MakeDragList(hlb: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn MakeDragList(hlb : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn MakeDragList(hlb: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn MakeDragList(hlb : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { MakeDragList(hlb) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -1182,30 +1182,30 @@ pub unsafe fn PropertySheetW(param0: *mut PROPSHEETHEADERW_V2) -> isize { } #[inline] pub unsafe fn RegisterPointerDeviceNotifications(window: super::super::Foundation::HWND, notifyrange: bool) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn RegisterPointerDeviceNotifications(window : super::super::Foundation:: HWND, notifyrange : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn RegisterPointerDeviceNotifications(window : super::super::Foundation:: HWND, notifyrange : windows_core::BOOL) -> windows_core::BOOL); unsafe { RegisterPointerDeviceNotifications(window, notifyrange.into()).ok() } } #[inline] pub unsafe fn RegisterTouchHitTestingWindow(hwnd: super::super::Foundation::HWND, value: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn RegisterTouchHitTestingWindow(hwnd : super::super::Foundation:: HWND, value : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn RegisterTouchHitTestingWindow(hwnd : super::super::Foundation:: HWND, value : u32) -> windows_core::BOOL); unsafe { RegisterTouchHitTestingWindow(hwnd, value).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn SetScrollInfo(hwnd: super::super::Foundation::HWND, nbar: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, lpsi: *const super::WindowsAndMessaging::SCROLLINFO, redraw: bool) -> i32 { - windows_targets::link!("user32.dll" "system" fn SetScrollInfo(hwnd : super::super::Foundation:: HWND, nbar : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, lpsi : *const super::WindowsAndMessaging:: SCROLLINFO, redraw : super::super::Foundation:: BOOL) -> i32); + windows_targets::link!("user32.dll" "system" fn SetScrollInfo(hwnd : super::super::Foundation:: HWND, nbar : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, lpsi : *const super::WindowsAndMessaging:: SCROLLINFO, redraw : windows_core::BOOL) -> i32); unsafe { SetScrollInfo(hwnd, nbar, lpsi, redraw.into()) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn SetScrollPos(hwnd: super::super::Foundation::HWND, nbar: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, npos: i32, bredraw: bool) -> i32 { - windows_targets::link!("user32.dll" "system" fn SetScrollPos(hwnd : super::super::Foundation:: HWND, nbar : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, npos : i32, bredraw : super::super::Foundation:: BOOL) -> i32); + windows_targets::link!("user32.dll" "system" fn SetScrollPos(hwnd : super::super::Foundation:: HWND, nbar : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, npos : i32, bredraw : windows_core::BOOL) -> i32); unsafe { SetScrollPos(hwnd, nbar, npos, bredraw.into()) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn SetScrollRange(hwnd: super::super::Foundation::HWND, nbar: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, nminpos: i32, nmaxpos: i32, bredraw: bool) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetScrollRange(hwnd : super::super::Foundation:: HWND, nbar : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, nminpos : i32, nmaxpos : i32, bredraw : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetScrollRange(hwnd : super::super::Foundation:: HWND, nbar : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, nminpos : i32, nmaxpos : i32, bredraw : windows_core::BOOL) -> windows_core::BOOL); unsafe { SetScrollRange(hwnd, nbar, nminpos, nmaxpos, bredraw.into()).ok() } } #[inline] @@ -1214,8 +1214,8 @@ pub unsafe fn SetThemeAppProperties(dwflags: SET_THEME_APP_PROPERTIES_FLAGS) { unsafe { SetThemeAppProperties(dwflags) } } #[inline] -pub unsafe fn SetWindowFeedbackSetting(hwnd: super::super::Foundation::HWND, feedback: FEEDBACK_TYPE, dwflags: u32, size: u32, configuration: Option<*const core::ffi::c_void>) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn SetWindowFeedbackSetting(hwnd : super::super::Foundation:: HWND, feedback : FEEDBACK_TYPE, dwflags : u32, size : u32, configuration : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); +pub unsafe fn SetWindowFeedbackSetting(hwnd: super::super::Foundation::HWND, feedback: FEEDBACK_TYPE, dwflags: u32, size: u32, configuration: Option<*const core::ffi::c_void>) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn SetWindowFeedbackSetting(hwnd : super::super::Foundation:: HWND, feedback : FEEDBACK_TYPE, dwflags : u32, size : u32, configuration : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SetWindowFeedbackSetting(hwnd, feedback, dwflags, size, configuration.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1233,22 +1233,22 @@ pub unsafe fn SetWindowThemeAttribute(hwnd: super::super::Foundation::HWND, eatt unsafe { SetWindowThemeAttribute(hwnd, eattribute, pvattribute, cbattribute).ok() } } #[inline] -pub unsafe fn ShowHideMenuCtl(hwnd: super::super::Foundation::HWND, uflags: usize, lpinfo: *const i32) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn ShowHideMenuCtl(hwnd : super::super::Foundation:: HWND, uflags : usize, lpinfo : *const i32) -> super::super::Foundation:: BOOL); +pub unsafe fn ShowHideMenuCtl(hwnd: super::super::Foundation::HWND, uflags: usize, lpinfo: *const i32) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn ShowHideMenuCtl(hwnd : super::super::Foundation:: HWND, uflags : usize, lpinfo : *const i32) -> windows_core::BOOL); unsafe { ShowHideMenuCtl(hwnd, uflags, lpinfo) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn ShowScrollBar(hwnd: super::super::Foundation::HWND, wbar: super::WindowsAndMessaging::SCROLLBAR_CONSTANTS, bshow: bool) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn ShowScrollBar(hwnd : super::super::Foundation:: HWND, wbar : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, bshow : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn ShowScrollBar(hwnd : super::super::Foundation:: HWND, wbar : super::WindowsAndMessaging:: SCROLLBAR_CONSTANTS, bshow : windows_core::BOOL) -> windows_core::BOOL); unsafe { ShowScrollBar(hwnd, wbar, bshow.into()).ok() } } #[inline] -pub unsafe fn Str_SetPtrW(ppsz: *mut windows_core::PWSTR, psz: P1) -> super::super::Foundation::BOOL +pub unsafe fn Str_SetPtrW(ppsz: *mut windows_core::PWSTR, psz: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("comctl32.dll" "system" fn Str_SetPtrW(ppsz : *mut windows_core::PWSTR, psz : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("comctl32.dll" "system" fn Str_SetPtrW(ppsz : *mut windows_core::PWSTR, psz : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { Str_SetPtrW(ppsz as _, psz.param().abi()) } } #[inline] @@ -1264,8 +1264,8 @@ where } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn TaskDialogIndirect(ptaskconfig: *const TASKDIALOGCONFIG, pnbutton: Option<*mut i32>, pnradiobutton: Option<*mut i32>, pfverificationflagchecked: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { - windows_targets::link!("comctl32.dll" "system" fn TaskDialogIndirect(ptaskconfig : *const TASKDIALOGCONFIG, pnbutton : *mut i32, pnradiobutton : *mut i32, pfverificationflagchecked : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn TaskDialogIndirect(ptaskconfig: *const TASKDIALOGCONFIG, pnbutton: Option<*mut i32>, pnradiobutton: Option<*mut i32>, pfverificationflagchecked: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { + windows_targets::link!("comctl32.dll" "system" fn TaskDialogIndirect(ptaskconfig : *const TASKDIALOGCONFIG, pnbutton : *mut i32, pnradiobutton : *mut i32, pfverificationflagchecked : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { TaskDialogIndirect(ptaskconfig, pnbutton.unwrap_or(core::mem::zeroed()) as _, pnradiobutton.unwrap_or(core::mem::zeroed()) as _, pfverificationflagchecked.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -1274,8 +1274,8 @@ pub unsafe fn UninitializeFlatSB(param0: super::super::Foundation::HWND) -> wind unsafe { UninitializeFlatSB(param0).ok() } } #[inline] -pub unsafe fn UpdatePanningFeedback(hwnd: super::super::Foundation::HWND, ltotaloverpanoffsetx: i32, ltotaloverpanoffsety: i32, fininertia: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("uxtheme.dll" "system" fn UpdatePanningFeedback(hwnd : super::super::Foundation:: HWND, ltotaloverpanoffsetx : i32, ltotaloverpanoffsety : i32, fininertia : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn UpdatePanningFeedback(hwnd: super::super::Foundation::HWND, ltotaloverpanoffsetx: i32, ltotaloverpanoffsety: i32, fininertia: bool) -> windows_core::BOOL { + windows_targets::link!("uxtheme.dll" "system" fn UpdatePanningFeedback(hwnd : super::super::Foundation:: HWND, ltotaloverpanoffsetx : i32, ltotaloverpanoffsety : i32, fininertia : windows_core::BOOL) -> windows_core::BOOL); unsafe { UpdatePanningFeedback(hwnd, ltotaloverpanoffsetx, ltotaloverpanoffsety, fininertia.into()) } } pub const ABS_DOWNDISABLED: ARROWBTNSTATES = ARROWBTNSTATES(8i32); @@ -2450,7 +2450,7 @@ pub struct DTTOPTS { pub iFontPropId: i32, pub iColorPropId: i32, pub iStateId: i32, - pub fApplyOverlay: super::super::Foundation::BOOL, + pub fApplyOverlay: windows_core::BOOL, pub iGlowSize: i32, pub pfnDrawTextCallback: DTT_CALLBACK_PROC, pub lParam: super::super::Foundation::LPARAM, @@ -3703,7 +3703,7 @@ pub struct IImageList_Vtbl { pub DragLeave: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND) -> windows_core::HRESULT, pub DragMove: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32) -> windows_core::HRESULT, pub SetDragCursorImage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, i32, i32, i32) -> windows_core::HRESULT, - pub DragShowNolock: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub DragShowNolock: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetDragImage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::POINT, *mut super::super::Foundation::POINT, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetItemFlags: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut IMAGE_LIST_ITEM_FLAGS) -> windows_core::HRESULT, pub GetOverlayImage: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut i32) -> windows_core::HRESULT, @@ -3735,7 +3735,7 @@ pub trait IImageList_Impl: windows_core::IUnknownImpl { fn DragLeave(&self, hwndlock: super::super::Foundation::HWND) -> windows_core::Result<()>; fn DragMove(&self, x: i32, y: i32) -> windows_core::Result<()>; fn SetDragCursorImage(&self, punk: windows_core::Ref, idrag: i32, dxhotspot: i32, dyhotspot: i32) -> windows_core::Result<()>; - fn DragShowNolock(&self, fshow: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn DragShowNolock(&self, fshow: windows_core::BOOL) -> windows_core::Result<()>; fn GetDragImage(&self, ppt: *mut super::super::Foundation::POINT, ppthotspot: *mut super::super::Foundation::POINT, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetItemFlags(&self, i: i32) -> windows_core::Result; fn GetOverlayImage(&self, ioverlay: i32) -> windows_core::Result; @@ -3941,7 +3941,7 @@ impl IImageList_Vtbl { IImageList_Impl::SetDragCursorImage(this, core::mem::transmute_copy(&punk), core::mem::transmute_copy(&idrag), core::mem::transmute_copy(&dxhotspot), core::mem::transmute_copy(&dyhotspot)).into() } } - unsafe extern "system" fn DragShowNolock(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DragShowNolock(this: *mut core::ffi::c_void, fshow: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageList_Impl::DragShowNolock(this, core::mem::transmute_copy(&fshow)).into() @@ -4884,7 +4884,7 @@ pub const LM_SETITEM: u32 = 1794u32; #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct LOGOFFBUTTONSSTATES(pub i32); -pub type LPFNADDPROPSHEETPAGES = Option super::super::Foundation::BOOL>; +pub type LPFNADDPROPSHEETPAGES = Option windows_core::BOOL>; #[cfg(feature = "Win32_Graphics_Gdi")] pub type LPFNCCINFOA = Option u32>; #[cfg(feature = "Win32_Graphics_Gdi")] @@ -4893,13 +4893,13 @@ pub type LPFNCCINFOW = Option u pub type LPFNCCSIZETOTEXTA = Option i32>; #[cfg(feature = "Win32_Graphics_Gdi")] pub type LPFNCCSIZETOTEXTW = Option i32>; -pub type LPFNCCSTYLEA = Option super::super::Foundation::BOOL>; -pub type LPFNCCSTYLEW = Option super::super::Foundation::BOOL>; +pub type LPFNCCSTYLEA = Option windows_core::BOOL>; +pub type LPFNCCSTYLEW = Option windows_core::BOOL>; #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub type LPFNPSPCALLBACKA = Option u32>; #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub type LPFNPSPCALLBACKW = Option u32>; -pub type LPFNSVADDPROPSHEETPAGE = Option super::super::Foundation::BOOL>; +pub type LPFNSVADDPROPSHEETPAGE = Option windows_core::BOOL>; pub const LP_HYPERLINK: LINKPARTS = LINKPARTS(1i32); pub const LVA_ALIGNLEFT: u32 = 1u32; pub const LVA_ALIGNTOP: u32 = 2u32; @@ -6045,7 +6045,7 @@ pub struct MCGRIDINFO { pub iCalendar: i32, pub iRow: i32, pub iCol: i32, - pub bSelected: super::super::Foundation::BOOL, + pub bSelected: windows_core::BOOL, pub stStart: super::super::Foundation::SYSTEMTIME, pub stEnd: super::super::Foundation::SYSTEMTIME, pub rc: super::super::Foundation::RECT, @@ -6501,7 +6501,7 @@ impl Default for NMCBEDRAGBEGINW { #[derive(Clone, Copy, Debug, PartialEq)] pub struct NMCBEENDEDITA { pub hdr: NMHDR, - pub fChanged: super::super::Foundation::BOOL, + pub fChanged: windows_core::BOOL, pub iNewSelection: i32, pub szText: [i8; 260], pub iWhy: i32, @@ -6515,7 +6515,7 @@ impl Default for NMCBEENDEDITA { #[derive(Clone, Copy, Debug, PartialEq)] pub struct NMCBEENDEDITW { pub hdr: NMHDR, - pub fChanged: super::super::Foundation::BOOL, + pub fChanged: windows_core::BOOL, pub iNewSelection: i32, pub szText: [u16; 260], pub iWhy: i32, @@ -6640,7 +6640,7 @@ pub struct NMCUSTOMTEXT { pub nCount: i32, pub lpRect: *mut super::super::Foundation::RECT, pub uFormat: u32, - pub fLink: super::super::Foundation::BOOL, + pub fLink: windows_core::BOOL, } #[cfg(feature = "Win32_Graphics_Gdi")] impl Default for NMCUSTOMTEXT { @@ -7238,7 +7238,7 @@ impl core::ops::Not for NMPGSCROLL_KEYS { #[derive(Clone, Copy, Debug, PartialEq)] pub struct NMRBAUTOSIZE { pub hdr: NMHDR, - pub fChanged: super::super::Foundation::BOOL, + pub fChanged: windows_core::BOOL, pub rcTarget: super::super::Foundation::RECT, pub rcActual: super::super::Foundation::RECT, } @@ -7271,7 +7271,7 @@ pub struct NMREBARAUTOBREAK { pub lParam: super::super::Foundation::LPARAM, pub uMsg: u32, pub fStyleCurrent: u32, - pub fAutoBreak: super::super::Foundation::BOOL, + pub fAutoBreak: windows_core::BOOL, } impl Default for NMREBARAUTOBREAK { fn default() -> Self { @@ -7359,8 +7359,8 @@ impl core::ops::Not for NMREBAR_MASK_FLAGS { pub struct NMSEARCHWEB { pub hdr: NMHDR, pub entrypoint: EC_SEARCHWEB_ENTRYPOINT, - pub hasQueryText: super::super::Foundation::BOOL, - pub invokeSucceeded: super::super::Foundation::BOOL, + pub hasQueryText: windows_core::BOOL, + pub invokeSucceeded: windows_core::BOOL, } impl Default for NMSEARCHWEB { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/UI/HiDpi/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/HiDpi/mod.rs index 458e26a089..3e0d6c7b6d 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/HiDpi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/HiDpi/mod.rs @@ -1,17 +1,17 @@ #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn AdjustWindowRectExForDpi(lprect: *mut super::super::Foundation::RECT, dwstyle: super::WindowsAndMessaging::WINDOW_STYLE, bmenu: bool, dwexstyle: super::WindowsAndMessaging::WINDOW_EX_STYLE, dpi: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn AdjustWindowRectExForDpi(lprect : *mut super::super::Foundation:: RECT, dwstyle : super::WindowsAndMessaging:: WINDOW_STYLE, bmenu : super::super::Foundation:: BOOL, dwexstyle : super::WindowsAndMessaging:: WINDOW_EX_STYLE, dpi : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn AdjustWindowRectExForDpi(lprect : *mut super::super::Foundation:: RECT, dwstyle : super::WindowsAndMessaging:: WINDOW_STYLE, bmenu : windows_core::BOOL, dwexstyle : super::WindowsAndMessaging:: WINDOW_EX_STYLE, dpi : u32) -> windows_core::BOOL); unsafe { AdjustWindowRectExForDpi(lprect as _, dwstyle, bmenu.into(), dwexstyle, dpi).ok() } } #[inline] -pub unsafe fn AreDpiAwarenessContextsEqual(dpicontexta: DPI_AWARENESS_CONTEXT, dpicontextb: DPI_AWARENESS_CONTEXT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn AreDpiAwarenessContextsEqual(dpicontexta : DPI_AWARENESS_CONTEXT, dpicontextb : DPI_AWARENESS_CONTEXT) -> super::super::Foundation:: BOOL); +pub unsafe fn AreDpiAwarenessContextsEqual(dpicontexta: DPI_AWARENESS_CONTEXT, dpicontextb: DPI_AWARENESS_CONTEXT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn AreDpiAwarenessContextsEqual(dpicontexta : DPI_AWARENESS_CONTEXT, dpicontextb : DPI_AWARENESS_CONTEXT) -> windows_core::BOOL); unsafe { AreDpiAwarenessContextsEqual(dpicontexta, dpicontextb) } } #[inline] pub unsafe fn EnableNonClientDpiScaling(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn EnableNonClientDpiScaling(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EnableNonClientDpiScaling(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { EnableNonClientDpiScaling(hwnd).ok() } } #[inline] @@ -95,13 +95,13 @@ pub unsafe fn GetWindowDpiHostingBehavior(hwnd: super::super::Foundation::HWND) unsafe { GetWindowDpiHostingBehavior(hwnd) } } #[inline] -pub unsafe fn IsValidDpiAwarenessContext(value: DPI_AWARENESS_CONTEXT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsValidDpiAwarenessContext(value : DPI_AWARENESS_CONTEXT) -> super::super::Foundation:: BOOL); +pub unsafe fn IsValidDpiAwarenessContext(value: DPI_AWARENESS_CONTEXT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsValidDpiAwarenessContext(value : DPI_AWARENESS_CONTEXT) -> windows_core::BOOL); unsafe { IsValidDpiAwarenessContext(value) } } #[inline] -pub unsafe fn LogicalToPhysicalPointForPerMonitorDPI(hwnd: Option, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn LogicalToPhysicalPointForPerMonitorDPI(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn LogicalToPhysicalPointForPerMonitorDPI(hwnd: Option, lppoint: *mut super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn LogicalToPhysicalPointForPerMonitorDPI(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { LogicalToPhysicalPointForPerMonitorDPI(hwnd.unwrap_or(core::mem::zeroed()) as _, lppoint as _) } } #[cfg(feature = "Win32_UI_Controls")] @@ -114,18 +114,18 @@ where unsafe { OpenThemeDataForDpi(hwnd.unwrap_or(core::mem::zeroed()) as _, pszclasslist.param().abi(), dpi) } } #[inline] -pub unsafe fn PhysicalToLogicalPointForPerMonitorDPI(hwnd: Option, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn PhysicalToLogicalPointForPerMonitorDPI(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn PhysicalToLogicalPointForPerMonitorDPI(hwnd: Option, lppoint: *mut super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn PhysicalToLogicalPointForPerMonitorDPI(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { PhysicalToLogicalPointForPerMonitorDPI(hwnd.unwrap_or(core::mem::zeroed()) as _, lppoint as _) } } #[inline] pub unsafe fn SetDialogControlDpiChangeBehavior(hwnd: super::super::Foundation::HWND, mask: DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS, values: DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetDialogControlDpiChangeBehavior(hwnd : super::super::Foundation:: HWND, mask : DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS, values : DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetDialogControlDpiChangeBehavior(hwnd : super::super::Foundation:: HWND, mask : DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS, values : DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS) -> windows_core::BOOL); unsafe { SetDialogControlDpiChangeBehavior(hwnd, mask, values).ok() } } #[inline] pub unsafe fn SetDialogDpiChangeBehavior(hdlg: super::super::Foundation::HWND, mask: DIALOG_DPI_CHANGE_BEHAVIORS, values: DIALOG_DPI_CHANGE_BEHAVIORS) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetDialogDpiChangeBehavior(hdlg : super::super::Foundation:: HWND, mask : DIALOG_DPI_CHANGE_BEHAVIORS, values : DIALOG_DPI_CHANGE_BEHAVIORS) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetDialogDpiChangeBehavior(hdlg : super::super::Foundation:: HWND, mask : DIALOG_DPI_CHANGE_BEHAVIORS, values : DIALOG_DPI_CHANGE_BEHAVIORS) -> windows_core::BOOL); unsafe { SetDialogDpiChangeBehavior(hdlg, mask, values).ok() } } #[inline] @@ -135,7 +135,7 @@ pub unsafe fn SetProcessDpiAwareness(value: PROCESS_DPI_AWARENESS) -> windows_co } #[inline] pub unsafe fn SetProcessDpiAwarenessContext(value: DPI_AWARENESS_CONTEXT) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetProcessDpiAwarenessContext(value : DPI_AWARENESS_CONTEXT) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetProcessDpiAwarenessContext(value : DPI_AWARENESS_CONTEXT) -> windows_core::BOOL); unsafe { SetProcessDpiAwarenessContext(value).ok() } } #[inline] @@ -150,7 +150,7 @@ pub unsafe fn SetThreadDpiHostingBehavior(value: DPI_HOSTING_BEHAVIOR) -> DPI_HO } #[inline] pub unsafe fn SystemParametersInfoForDpi(uiaction: u32, uiparam: u32, pvparam: Option<*mut core::ffi::c_void>, fwinini: u32, dpi: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SystemParametersInfoForDpi(uiaction : u32, uiparam : u32, pvparam : *mut core::ffi::c_void, fwinini : u32, dpi : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SystemParametersInfoForDpi(uiaction : u32, uiparam : u32, pvparam : *mut core::ffi::c_void, fwinini : u32, dpi : u32) -> windows_core::BOOL); unsafe { SystemParametersInfoForDpi(uiaction, uiparam, pvparam.unwrap_or(core::mem::zeroed()) as _, fwinini, dpi).ok() } } pub const DCDC_DEFAULT: DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS = DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS(0i32); 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 aea0894b8b..7e53c27393 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 @@ -4,20 +4,20 @@ pub unsafe fn ImmAssociateContext(param0: super::super::super::Foundation::HWND, unsafe { ImmAssociateContext(param0, param1) } } #[inline] -pub unsafe fn ImmAssociateContextEx(param0: super::super::super::Foundation::HWND, param1: HIMC, param2: u32) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmAssociateContextEx(param0 : super::super::super::Foundation:: HWND, param1 : HIMC, param2 : u32) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmAssociateContextEx(param0: super::super::super::Foundation::HWND, param1: HIMC, param2: u32) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmAssociateContextEx(param0 : super::super::super::Foundation:: HWND, param1 : HIMC, param2 : u32) -> windows_core::BOOL); unsafe { ImmAssociateContextEx(param0, param1, param2) } } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] -pub unsafe fn ImmConfigureIMEA(param0: super::KeyboardAndMouse::HKL, param1: super::super::super::Foundation::HWND, param2: u32, param3: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmConfigureIMEA(param0 : super::KeyboardAndMouse:: HKL, param1 : super::super::super::Foundation:: HWND, param2 : u32, param3 : *mut core::ffi::c_void) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmConfigureIMEA(param0: super::KeyboardAndMouse::HKL, param1: super::super::super::Foundation::HWND, param2: u32, param3: *mut core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmConfigureIMEA(param0 : super::KeyboardAndMouse:: HKL, param1 : super::super::super::Foundation:: HWND, param2 : u32, param3 : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { ImmConfigureIMEA(param0, param1, param2, param3 as _) } } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] -pub unsafe fn ImmConfigureIMEW(param0: super::KeyboardAndMouse::HKL, param1: super::super::super::Foundation::HWND, param2: u32, param3: *mut core::ffi::c_void) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmConfigureIMEW(param0 : super::KeyboardAndMouse:: HKL, param1 : super::super::super::Foundation:: HWND, param2 : u32, param3 : *mut core::ffi::c_void) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmConfigureIMEW(param0: super::KeyboardAndMouse::HKL, param1: super::super::super::Foundation::HWND, param2: u32, param3: *mut core::ffi::c_void) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmConfigureIMEW(param0 : super::KeyboardAndMouse:: HKL, param1 : super::super::super::Foundation:: HWND, param2 : u32, param3 : *mut core::ffi::c_void) -> windows_core::BOOL); unsafe { ImmConfigureIMEW(param0, param1, param2, param3 as _) } } #[inline] @@ -36,8 +36,8 @@ pub unsafe fn ImmCreateSoftKeyboard(param0: u32, param1: super::super::super::Fo unsafe { ImmCreateSoftKeyboard(param0, param1, param2, param3) } } #[inline] -pub unsafe fn ImmDestroyContext(param0: HIMC) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmDestroyContext(param0 : HIMC) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmDestroyContext(param0: HIMC) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmDestroyContext(param0 : HIMC) -> windows_core::BOOL); unsafe { ImmDestroyContext(param0) } } #[inline] @@ -46,28 +46,28 @@ pub unsafe fn ImmDestroyIMCC(param0: HIMCC) -> HIMCC { unsafe { ImmDestroyIMCC(param0) } } #[inline] -pub unsafe fn ImmDestroySoftKeyboard(param0: super::super::super::Foundation::HWND) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmDestroySoftKeyboard(param0 : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmDestroySoftKeyboard(param0: super::super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmDestroySoftKeyboard(param0 : super::super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { ImmDestroySoftKeyboard(param0) } } #[inline] -pub unsafe fn ImmDisableIME(param0: u32) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmDisableIME(param0 : u32) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmDisableIME(param0: u32) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmDisableIME(param0 : u32) -> windows_core::BOOL); unsafe { ImmDisableIME(param0) } } #[inline] -pub unsafe fn ImmDisableLegacyIME() -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmDisableLegacyIME() -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmDisableLegacyIME() -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmDisableLegacyIME() -> windows_core::BOOL); unsafe { ImmDisableLegacyIME() } } #[inline] -pub unsafe fn ImmDisableTextFrameService(idthread: u32) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmDisableTextFrameService(idthread : u32) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmDisableTextFrameService(idthread: u32) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmDisableTextFrameService(idthread : u32) -> windows_core::BOOL); unsafe { ImmDisableTextFrameService(idthread) } } #[inline] -pub unsafe fn ImmEnumInputContext(idthread: u32, lpfn: IMCENUMPROC, lparam: super::super::super::Foundation::LPARAM) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmEnumInputContext(idthread : u32, lpfn : IMCENUMPROC, lparam : super::super::super::Foundation:: LPARAM) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmEnumInputContext(idthread: u32, lpfn: IMCENUMPROC, lparam: super::super::super::Foundation::LPARAM) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmEnumInputContext(idthread : u32, lpfn : IMCENUMPROC, lparam : super::super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { ImmEnumInputContext(idthread, lpfn, lparam) } } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] @@ -103,8 +103,8 @@ pub unsafe fn ImmEscapeW(param0: super::KeyboardAndMouse::HKL, param1: HIMC, par unsafe { ImmEscapeW(param0, param1, param2, param3 as _) } } #[inline] -pub unsafe fn ImmGenerateMessage(param0: HIMC) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmGenerateMessage(param0 : HIMC) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmGenerateMessage(param0: HIMC) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmGenerateMessage(param0 : HIMC) -> windows_core::BOOL); unsafe { ImmGenerateMessage(param0) } } #[inline] @@ -128,20 +128,20 @@ pub unsafe fn ImmGetCandidateListW(param0: HIMC, deindex: u32, lpcandlist: Optio unsafe { ImmGetCandidateListW(param0, deindex, lpcandlist.unwrap_or(core::mem::zeroed()) as _, dwbuflen) } } #[inline] -pub unsafe fn ImmGetCandidateWindow(param0: HIMC, param1: u32, lpcandidate: *mut CANDIDATEFORM) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmGetCandidateWindow(param0 : HIMC, param1 : u32, lpcandidate : *mut CANDIDATEFORM) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmGetCandidateWindow(param0: HIMC, param1: u32, lpcandidate: *mut CANDIDATEFORM) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmGetCandidateWindow(param0 : HIMC, param1 : u32, lpcandidate : *mut CANDIDATEFORM) -> windows_core::BOOL); unsafe { ImmGetCandidateWindow(param0, param1, lpcandidate as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ImmGetCompositionFontA(param0: HIMC, lplf: *mut super::super::super::Graphics::Gdi::LOGFONTA) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmGetCompositionFontA(param0 : HIMC, lplf : *mut super::super::super::Graphics::Gdi:: LOGFONTA) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmGetCompositionFontA(param0: HIMC, lplf: *mut super::super::super::Graphics::Gdi::LOGFONTA) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmGetCompositionFontA(param0 : HIMC, lplf : *mut super::super::super::Graphics::Gdi:: LOGFONTA) -> windows_core::BOOL); unsafe { ImmGetCompositionFontA(param0, lplf as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ImmGetCompositionFontW(param0: HIMC, lplf: *mut super::super::super::Graphics::Gdi::LOGFONTW) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmGetCompositionFontW(param0 : HIMC, lplf : *mut super::super::super::Graphics::Gdi:: LOGFONTW) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmGetCompositionFontW(param0: HIMC, lplf: *mut super::super::super::Graphics::Gdi::LOGFONTW) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmGetCompositionFontW(param0 : HIMC, lplf : *mut super::super::super::Graphics::Gdi:: LOGFONTW) -> windows_core::BOOL); unsafe { ImmGetCompositionFontW(param0, lplf as _) } } #[inline] @@ -155,8 +155,8 @@ pub unsafe fn ImmGetCompositionStringW(param0: HIMC, param1: IME_COMPOSITION_STR unsafe { ImmGetCompositionStringW(param0, param1, lpbuf.unwrap_or(core::mem::zeroed()) as _, dwbuflen) } } #[inline] -pub unsafe fn ImmGetCompositionWindow(param0: HIMC, lpcompform: *mut COMPOSITIONFORM) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmGetCompositionWindow(param0 : HIMC, lpcompform : *mut COMPOSITIONFORM) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmGetCompositionWindow(param0: HIMC, lpcompform: *mut COMPOSITIONFORM) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmGetCompositionWindow(param0 : HIMC, lpcompform : *mut COMPOSITIONFORM) -> windows_core::BOOL); unsafe { ImmGetCompositionWindow(param0, lpcompform as _) } } #[inline] @@ -183,8 +183,8 @@ where unsafe { ImmGetConversionListW(param0, param1, lpsrc.param().abi(), lpdst as _, dwbuflen, uflag) } } #[inline] -pub unsafe fn ImmGetConversionStatus(param0: HIMC, lpfdwconversion: Option<*mut IME_CONVERSION_MODE>, lpfdwsentence: Option<*mut IME_SENTENCE_MODE>) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmGetConversionStatus(param0 : HIMC, lpfdwconversion : *mut IME_CONVERSION_MODE, lpfdwsentence : *mut IME_SENTENCE_MODE) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmGetConversionStatus(param0: HIMC, lpfdwconversion: Option<*mut IME_CONVERSION_MODE>, lpfdwsentence: Option<*mut IME_SENTENCE_MODE>) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmGetConversionStatus(param0 : HIMC, lpfdwconversion : *mut IME_CONVERSION_MODE, lpfdwsentence : *mut IME_SENTENCE_MODE) -> windows_core::BOOL); unsafe { ImmGetConversionStatus(param0, lpfdwconversion.unwrap_or(core::mem::zeroed()) as _, lpfdwsentence.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -216,8 +216,8 @@ pub unsafe fn ImmGetGuideLineW(param0: HIMC, dwindex: GET_GUIDE_LINE_TYPE, lpbuf } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] -pub unsafe fn ImmGetHotKey(param0: u32, lpumodifiers: *mut u32, lpuvkey: *mut u32, phkl: *mut super::KeyboardAndMouse::HKL) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmGetHotKey(param0 : u32, lpumodifiers : *mut u32, lpuvkey : *mut u32, phkl : *mut super::KeyboardAndMouse:: HKL) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmGetHotKey(param0: u32, lpumodifiers: *mut u32, lpuvkey: *mut u32, phkl: *mut super::KeyboardAndMouse::HKL) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmGetHotKey(param0 : u32, lpumodifiers : *mut u32, lpuvkey : *mut u32, phkl : *mut super::KeyboardAndMouse:: HKL) -> windows_core::BOOL); unsafe { ImmGetHotKey(param0, lpumodifiers as _, lpuvkey as _, phkl as _) } } #[inline] @@ -260,8 +260,8 @@ pub unsafe fn ImmGetImeMenuItemsW(param0: HIMC, param1: u32, param2: u32, lpimep unsafe { ImmGetImeMenuItemsW(param0, param1, param2, lpimeparentmenu.unwrap_or(core::mem::zeroed()) as _, lpimemenu.unwrap_or(core::mem::zeroed()) as _, dwsize) } } #[inline] -pub unsafe fn ImmGetOpenStatus(param0: HIMC) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmGetOpenStatus(param0 : HIMC) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmGetOpenStatus(param0: HIMC) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmGetOpenStatus(param0 : HIMC) -> windows_core::BOOL); unsafe { ImmGetOpenStatus(param0) } } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] @@ -283,8 +283,8 @@ pub unsafe fn ImmGetRegisterWordStyleW(param0: super::KeyboardAndMouse::HKL, lps unsafe { ImmGetRegisterWordStyleW(param0, lpstylebuf.len().try_into().unwrap(), core::mem::transmute(lpstylebuf.as_ptr())) } } #[inline] -pub unsafe fn ImmGetStatusWindowPos(param0: HIMC, lpptpos: *mut super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmGetStatusWindowPos(param0 : HIMC, lpptpos : *mut super::super::super::Foundation:: POINT) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmGetStatusWindowPos(param0: HIMC, lpptpos: *mut super::super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmGetStatusWindowPos(param0 : HIMC, lpptpos : *mut super::super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { ImmGetStatusWindowPos(param0, lpptpos as _) } } #[inline] @@ -314,18 +314,18 @@ where } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] -pub unsafe fn ImmIsIME(param0: super::KeyboardAndMouse::HKL) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmIsIME(param0 : super::KeyboardAndMouse:: HKL) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmIsIME(param0: super::KeyboardAndMouse::HKL) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmIsIME(param0 : super::KeyboardAndMouse:: HKL) -> windows_core::BOOL); unsafe { ImmIsIME(param0) } } #[inline] -pub unsafe fn ImmIsUIMessageA(param0: super::super::super::Foundation::HWND, param1: u32, param2: super::super::super::Foundation::WPARAM, param3: super::super::super::Foundation::LPARAM) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmIsUIMessageA(param0 : super::super::super::Foundation:: HWND, param1 : u32, param2 : super::super::super::Foundation:: WPARAM, param3 : super::super::super::Foundation:: LPARAM) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmIsUIMessageA(param0: super::super::super::Foundation::HWND, param1: u32, param2: super::super::super::Foundation::WPARAM, param3: super::super::super::Foundation::LPARAM) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmIsUIMessageA(param0 : super::super::super::Foundation:: HWND, param1 : u32, param2 : super::super::super::Foundation:: WPARAM, param3 : super::super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { ImmIsUIMessageA(param0, param1, param2, param3) } } #[inline] -pub unsafe fn ImmIsUIMessageW(param0: super::super::super::Foundation::HWND, param1: u32, param2: super::super::super::Foundation::WPARAM, param3: super::super::super::Foundation::LPARAM) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmIsUIMessageW(param0 : super::super::super::Foundation:: HWND, param1 : u32, param2 : super::super::super::Foundation:: WPARAM, param3 : super::super::super::Foundation:: LPARAM) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmIsUIMessageW(param0: super::super::super::Foundation::HWND, param1: u32, param2: super::super::super::Foundation::WPARAM, param3: super::super::super::Foundation::LPARAM) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmIsUIMessageW(param0 : super::super::super::Foundation:: HWND, param1 : u32, param2 : super::super::super::Foundation:: WPARAM, param3 : super::super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { ImmIsUIMessageW(param0, param1, param2, param3) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -340,8 +340,8 @@ pub unsafe fn ImmLockIMCC(param0: HIMCC) -> *mut core::ffi::c_void { unsafe { ImmLockIMCC(param0) } } #[inline] -pub unsafe fn ImmNotifyIME(param0: HIMC, dwaction: NOTIFY_IME_ACTION, dwindex: NOTIFY_IME_INDEX, dwvalue: u32) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmNotifyIME(param0 : HIMC, dwaction : NOTIFY_IME_ACTION, dwindex : NOTIFY_IME_INDEX, dwvalue : u32) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmNotifyIME(param0: HIMC, dwaction: NOTIFY_IME_ACTION, dwindex: NOTIFY_IME_INDEX, dwvalue: u32) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmNotifyIME(param0 : HIMC, dwaction : NOTIFY_IME_ACTION, dwindex : NOTIFY_IME_INDEX, dwvalue : u32) -> windows_core::BOOL); unsafe { ImmNotifyIME(param0, dwaction, dwindex, dwvalue) } } #[inline] @@ -351,27 +351,27 @@ pub unsafe fn ImmReSizeIMCC(param0: HIMCC, param1: u32) -> HIMCC { } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] -pub unsafe fn ImmRegisterWordA(param0: super::KeyboardAndMouse::HKL, lpszreading: P1, param2: u32, lpszregister: P3) -> super::super::super::Foundation::BOOL +pub unsafe fn ImmRegisterWordA(param0: super::KeyboardAndMouse::HKL, lpszreading: P1, param2: u32, lpszregister: P3) -> windows_core::BOOL where P1: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("imm32.dll" "system" fn ImmRegisterWordA(param0 : super::KeyboardAndMouse:: HKL, lpszreading : windows_core::PCSTR, param2 : u32, lpszregister : windows_core::PCSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imm32.dll" "system" fn ImmRegisterWordA(param0 : super::KeyboardAndMouse:: HKL, lpszreading : windows_core::PCSTR, param2 : u32, lpszregister : windows_core::PCSTR) -> windows_core::BOOL); unsafe { ImmRegisterWordA(param0, lpszreading.param().abi(), param2, lpszregister.param().abi()) } } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] -pub unsafe fn ImmRegisterWordW(param0: super::KeyboardAndMouse::HKL, lpszreading: P1, param2: u32, lpszregister: P3) -> super::super::super::Foundation::BOOL +pub unsafe fn ImmRegisterWordW(param0: super::KeyboardAndMouse::HKL, lpszreading: P1, param2: u32, lpszregister: P3) -> windows_core::BOOL where P1: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("imm32.dll" "system" fn ImmRegisterWordW(param0 : super::KeyboardAndMouse:: HKL, lpszreading : windows_core::PCWSTR, param2 : u32, lpszregister : windows_core::PCWSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imm32.dll" "system" fn ImmRegisterWordW(param0 : super::KeyboardAndMouse:: HKL, lpszreading : windows_core::PCWSTR, param2 : u32, lpszregister : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { ImmRegisterWordW(param0, lpszreading.param().abi(), param2, lpszregister.param().abi()) } } #[inline] -pub unsafe fn ImmReleaseContext(param0: super::super::super::Foundation::HWND, param1: HIMC) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmReleaseContext(param0 : super::super::super::Foundation:: HWND, param1 : HIMC) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmReleaseContext(param0: super::super::super::Foundation::HWND, param1: HIMC) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmReleaseContext(param0 : super::super::super::Foundation:: HWND, param1 : HIMC) -> windows_core::BOOL); unsafe { ImmReleaseContext(param0, param1) } } #[inline] @@ -385,96 +385,96 @@ pub unsafe fn ImmRequestMessageW(param0: HIMC, param1: super::super::super::Foun unsafe { ImmRequestMessageW(param0, param1, param2) } } #[inline] -pub unsafe fn ImmSetCandidateWindow(param0: HIMC, lpcandidate: *const CANDIDATEFORM) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmSetCandidateWindow(param0 : HIMC, lpcandidate : *const CANDIDATEFORM) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmSetCandidateWindow(param0: HIMC, lpcandidate: *const CANDIDATEFORM) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmSetCandidateWindow(param0 : HIMC, lpcandidate : *const CANDIDATEFORM) -> windows_core::BOOL); unsafe { ImmSetCandidateWindow(param0, lpcandidate) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ImmSetCompositionFontA(param0: HIMC, lplf: *const super::super::super::Graphics::Gdi::LOGFONTA) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionFontA(param0 : HIMC, lplf : *const super::super::super::Graphics::Gdi:: LOGFONTA) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmSetCompositionFontA(param0: HIMC, lplf: *const super::super::super::Graphics::Gdi::LOGFONTA) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionFontA(param0 : HIMC, lplf : *const super::super::super::Graphics::Gdi:: LOGFONTA) -> windows_core::BOOL); unsafe { ImmSetCompositionFontA(param0, lplf) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn ImmSetCompositionFontW(param0: HIMC, lplf: *const super::super::super::Graphics::Gdi::LOGFONTW) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionFontW(param0 : HIMC, lplf : *const super::super::super::Graphics::Gdi:: LOGFONTW) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmSetCompositionFontW(param0: HIMC, lplf: *const super::super::super::Graphics::Gdi::LOGFONTW) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionFontW(param0 : HIMC, lplf : *const super::super::super::Graphics::Gdi:: LOGFONTW) -> windows_core::BOOL); unsafe { ImmSetCompositionFontW(param0, lplf) } } #[inline] -pub unsafe fn ImmSetCompositionStringA(param0: HIMC, dwindex: SET_COMPOSITION_STRING_TYPE, lpcomp: Option<*const core::ffi::c_void>, dwcomplen: u32, lpread: Option<*const core::ffi::c_void>, dwreadlen: u32) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionStringA(param0 : HIMC, dwindex : SET_COMPOSITION_STRING_TYPE, lpcomp : *const core::ffi::c_void, dwcomplen : u32, lpread : *const core::ffi::c_void, dwreadlen : u32) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmSetCompositionStringA(param0: HIMC, dwindex: SET_COMPOSITION_STRING_TYPE, lpcomp: Option<*const core::ffi::c_void>, dwcomplen: u32, lpread: Option<*const core::ffi::c_void>, dwreadlen: u32) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionStringA(param0 : HIMC, dwindex : SET_COMPOSITION_STRING_TYPE, lpcomp : *const core::ffi::c_void, dwcomplen : u32, lpread : *const core::ffi::c_void, dwreadlen : u32) -> windows_core::BOOL); unsafe { ImmSetCompositionStringA(param0, dwindex, lpcomp.unwrap_or(core::mem::zeroed()) as _, dwcomplen, lpread.unwrap_or(core::mem::zeroed()) as _, dwreadlen) } } #[inline] -pub unsafe fn ImmSetCompositionStringW(param0: HIMC, dwindex: SET_COMPOSITION_STRING_TYPE, lpcomp: Option<*const core::ffi::c_void>, dwcomplen: u32, lpread: Option<*const core::ffi::c_void>, dwreadlen: u32) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionStringW(param0 : HIMC, dwindex : SET_COMPOSITION_STRING_TYPE, lpcomp : *const core::ffi::c_void, dwcomplen : u32, lpread : *const core::ffi::c_void, dwreadlen : u32) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmSetCompositionStringW(param0: HIMC, dwindex: SET_COMPOSITION_STRING_TYPE, lpcomp: Option<*const core::ffi::c_void>, dwcomplen: u32, lpread: Option<*const core::ffi::c_void>, dwreadlen: u32) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionStringW(param0 : HIMC, dwindex : SET_COMPOSITION_STRING_TYPE, lpcomp : *const core::ffi::c_void, dwcomplen : u32, lpread : *const core::ffi::c_void, dwreadlen : u32) -> windows_core::BOOL); unsafe { ImmSetCompositionStringW(param0, dwindex, lpcomp.unwrap_or(core::mem::zeroed()) as _, dwcomplen, lpread.unwrap_or(core::mem::zeroed()) as _, dwreadlen) } } #[inline] -pub unsafe fn ImmSetCompositionWindow(param0: HIMC, lpcompform: *const COMPOSITIONFORM) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionWindow(param0 : HIMC, lpcompform : *const COMPOSITIONFORM) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmSetCompositionWindow(param0: HIMC, lpcompform: *const COMPOSITIONFORM) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmSetCompositionWindow(param0 : HIMC, lpcompform : *const COMPOSITIONFORM) -> windows_core::BOOL); unsafe { ImmSetCompositionWindow(param0, lpcompform) } } #[inline] -pub unsafe fn ImmSetConversionStatus(param0: HIMC, param1: IME_CONVERSION_MODE, param2: IME_SENTENCE_MODE) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmSetConversionStatus(param0 : HIMC, param1 : IME_CONVERSION_MODE, param2 : IME_SENTENCE_MODE) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmSetConversionStatus(param0: HIMC, param1: IME_CONVERSION_MODE, param2: IME_SENTENCE_MODE) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmSetConversionStatus(param0 : HIMC, param1 : IME_CONVERSION_MODE, param2 : IME_SENTENCE_MODE) -> windows_core::BOOL); unsafe { ImmSetConversionStatus(param0, param1, param2) } } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] -pub unsafe fn ImmSetHotKey(param0: u32, param1: u32, param2: u32, param3: super::KeyboardAndMouse::HKL) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmSetHotKey(param0 : u32, param1 : u32, param2 : u32, param3 : super::KeyboardAndMouse:: HKL) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmSetHotKey(param0: u32, param1: u32, param2: u32, param3: super::KeyboardAndMouse::HKL) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmSetHotKey(param0 : u32, param1 : u32, param2 : u32, param3 : super::KeyboardAndMouse:: HKL) -> windows_core::BOOL); unsafe { ImmSetHotKey(param0, param1, param2, param3) } } #[inline] -pub unsafe fn ImmSetOpenStatus(param0: HIMC, param1: bool) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmSetOpenStatus(param0 : HIMC, param1 : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmSetOpenStatus(param0: HIMC, param1: bool) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmSetOpenStatus(param0 : HIMC, param1 : windows_core::BOOL) -> windows_core::BOOL); unsafe { ImmSetOpenStatus(param0, param1.into()) } } #[inline] -pub unsafe fn ImmSetStatusWindowPos(param0: HIMC, lpptpos: *const super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmSetStatusWindowPos(param0 : HIMC, lpptpos : *const super::super::super::Foundation:: POINT) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmSetStatusWindowPos(param0: HIMC, lpptpos: *const super::super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmSetStatusWindowPos(param0 : HIMC, lpptpos : *const super::super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { ImmSetStatusWindowPos(param0, lpptpos) } } #[inline] -pub unsafe fn ImmShowSoftKeyboard(param0: super::super::super::Foundation::HWND, param1: i32) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmShowSoftKeyboard(param0 : super::super::super::Foundation:: HWND, param1 : i32) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmShowSoftKeyboard(param0: super::super::super::Foundation::HWND, param1: i32) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmShowSoftKeyboard(param0 : super::super::super::Foundation:: HWND, param1 : i32) -> windows_core::BOOL); unsafe { ImmShowSoftKeyboard(param0, param1) } } #[inline] -pub unsafe fn ImmSimulateHotKey(param0: super::super::super::Foundation::HWND, param1: IME_HOTKEY_IDENTIFIER) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmSimulateHotKey(param0 : super::super::super::Foundation:: HWND, param1 : IME_HOTKEY_IDENTIFIER) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmSimulateHotKey(param0: super::super::super::Foundation::HWND, param1: IME_HOTKEY_IDENTIFIER) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmSimulateHotKey(param0 : super::super::super::Foundation:: HWND, param1 : IME_HOTKEY_IDENTIFIER) -> windows_core::BOOL); unsafe { ImmSimulateHotKey(param0, param1) } } #[inline] -pub unsafe fn ImmUnlockIMC(param0: HIMC) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmUnlockIMC(param0 : HIMC) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmUnlockIMC(param0: HIMC) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmUnlockIMC(param0 : HIMC) -> windows_core::BOOL); unsafe { ImmUnlockIMC(param0) } } #[inline] -pub unsafe fn ImmUnlockIMCC(param0: HIMCC) -> super::super::super::Foundation::BOOL { - windows_targets::link!("imm32.dll" "system" fn ImmUnlockIMCC(param0 : HIMCC) -> super::super::super::Foundation:: BOOL); +pub unsafe fn ImmUnlockIMCC(param0: HIMCC) -> windows_core::BOOL { + windows_targets::link!("imm32.dll" "system" fn ImmUnlockIMCC(param0 : HIMCC) -> windows_core::BOOL); unsafe { ImmUnlockIMCC(param0) } } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] -pub unsafe fn ImmUnregisterWordA(param0: super::KeyboardAndMouse::HKL, lpszreading: P1, param2: u32, lpszunregister: P3) -> super::super::super::Foundation::BOOL +pub unsafe fn ImmUnregisterWordA(param0: super::KeyboardAndMouse::HKL, lpszreading: P1, param2: u32, lpszunregister: P3) -> windows_core::BOOL where P1: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("imm32.dll" "system" fn ImmUnregisterWordA(param0 : super::KeyboardAndMouse:: HKL, lpszreading : windows_core::PCSTR, param2 : u32, lpszunregister : windows_core::PCSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imm32.dll" "system" fn ImmUnregisterWordA(param0 : super::KeyboardAndMouse:: HKL, lpszreading : windows_core::PCSTR, param2 : u32, lpszunregister : windows_core::PCSTR) -> windows_core::BOOL); unsafe { ImmUnregisterWordA(param0, lpszreading.param().abi(), param2, lpszunregister.param().abi()) } } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] #[inline] -pub unsafe fn ImmUnregisterWordW(param0: super::KeyboardAndMouse::HKL, lpszreading: P1, param2: u32, lpszunregister: P3) -> super::super::super::Foundation::BOOL +pub unsafe fn ImmUnregisterWordW(param0: super::KeyboardAndMouse::HKL, lpszreading: P1, param2: u32, lpszunregister: P3) -> windows_core::BOOL where P1: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("imm32.dll" "system" fn ImmUnregisterWordW(param0 : super::KeyboardAndMouse:: HKL, lpszreading : windows_core::PCWSTR, param2 : u32, lpszunregister : windows_core::PCWSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("imm32.dll" "system" fn ImmUnregisterWordW(param0 : super::KeyboardAndMouse:: HKL, lpszreading : windows_core::PCWSTR, param2 : u32, lpszunregister : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { ImmUnregisterWordW(param0, lpszreading.param().abi(), param2, lpszunregister.param().abi()) } } #[repr(C)] @@ -875,10 +875,10 @@ pub struct IActiveIME_Vtbl { Configure: usize, pub Destroy: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub Escape: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, u32, *mut core::ffi::c_void, *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT, - pub SetActiveContext: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetActiveContext: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, windows_core::BOOL) -> windows_core::HRESULT, pub ProcessKey: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, u32, u32, *const u8) -> windows_core::HRESULT, pub Notify: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, u32, u32, u32) -> windows_core::HRESULT, - pub Select: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Select: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, windows_core::BOOL) -> windows_core::HRESULT, pub SetCompositionString: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, u32, *const core::ffi::c_void, u32, *const core::ffi::c_void, u32) -> windows_core::HRESULT, pub ToAsciiEx: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const u8, u32, HIMC, *mut u32, *mut u32) -> windows_core::HRESULT, pub RegisterWord: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, windows_core::PCWSTR) -> windows_core::HRESULT, @@ -895,10 +895,10 @@ pub trait IActiveIME_Impl: windows_core::IUnknownImpl { fn Configure(&self, hkl: super::KeyboardAndMouse::HKL, hwnd: super::super::super::Foundation::HWND, dwmode: u32, pregisterword: *const REGISTERWORDW) -> windows_core::Result<()>; fn Destroy(&self, ureserved: u32) -> windows_core::Result<()>; fn Escape(&self, himc: HIMC, uescape: u32, pdata: *mut core::ffi::c_void, plresult: *mut super::super::super::Foundation::LRESULT) -> windows_core::Result<()>; - fn SetActiveContext(&self, himc: HIMC, fflag: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetActiveContext(&self, himc: HIMC, fflag: windows_core::BOOL) -> windows_core::Result<()>; fn ProcessKey(&self, himc: HIMC, uvirkey: u32, lparam: u32, pbkeystate: *const u8) -> windows_core::Result<()>; fn Notify(&self, himc: HIMC, dwaction: u32, dwindex: u32, dwvalue: u32) -> windows_core::Result<()>; - fn Select(&self, himc: HIMC, fselect: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Select(&self, himc: HIMC, fselect: windows_core::BOOL) -> windows_core::Result<()>; fn SetCompositionString(&self, himc: HIMC, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::Result<()>; fn ToAsciiEx(&self, uvirkey: u32, uscancode: u32, pbkeystate: *const u8, fustate: u32, himc: HIMC, pdwtransbuf: *mut u32, pusize: *mut u32) -> windows_core::Result<()>; fn RegisterWord(&self, szreading: &windows_core::PCWSTR, dwstyle: u32, szstring: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -941,7 +941,7 @@ impl IActiveIME_Vtbl { IActiveIME_Impl::Escape(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&uescape), core::mem::transmute_copy(&pdata), core::mem::transmute_copy(&plresult)).into() } } - unsafe extern "system" fn SetActiveContext(this: *mut core::ffi::c_void, himc: HIMC, fflag: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetActiveContext(this: *mut core::ffi::c_void, himc: HIMC, fflag: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME_Impl::SetActiveContext(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&fflag)).into() @@ -959,7 +959,7 @@ impl IActiveIME_Vtbl { IActiveIME_Impl::Notify(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&dwaction), core::mem::transmute_copy(&dwindex), core::mem::transmute_copy(&dwvalue)).into() } } - unsafe extern "system" fn Select(this: *mut core::ffi::c_void, himc: HIMC, fselect: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Select(this: *mut core::ffi::c_void, himc: HIMC, fselect: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME_Impl::Select(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&fselect)).into() @@ -1078,12 +1078,12 @@ impl IActiveIME2 { pub struct IActiveIME2_Vtbl { pub base__: IActiveIME_Vtbl, pub Sleep: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub Unsleep: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Unsleep: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub trait IActiveIME2_Impl: IActiveIME_Impl { fn Sleep(&self) -> windows_core::Result<()>; - fn Unsleep(&self, fdead: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Unsleep(&self, fdead: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] impl IActiveIME2_Vtbl { @@ -1094,7 +1094,7 @@ impl IActiveIME2_Vtbl { IActiveIME2_Impl::Sleep(this).into() } } - unsafe extern "system" fn Unsleep(this: *mut core::ffi::c_void, fdead: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Unsleep(this: *mut core::ffi::c_void, fdead: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIME2_Impl::Unsleep(this, core::mem::transmute_copy(&fdead)).into() @@ -1556,7 +1556,7 @@ pub struct IActiveIMMApp_Vtbl { pub SetCompositionStringW: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, u32, *const core::ffi::c_void, u32, *const core::ffi::c_void, u32) -> windows_core::HRESULT, pub SetCompositionWindow: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, *const COMPOSITIONFORM) -> windows_core::HRESULT, pub SetConversionStatus: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, u32, u32) -> windows_core::HRESULT, - pub SetOpenStatus: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetOpenStatus: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, windows_core::BOOL) -> windows_core::HRESULT, pub SetStatusWindowPos: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, *const super::super::super::Foundation::POINT) -> windows_core::HRESULT, pub SimulateHotKey: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::HWND, u32) -> windows_core::HRESULT, #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] @@ -1567,7 +1567,7 @@ pub struct IActiveIMMApp_Vtbl { pub UnregisterWordW: unsafe extern "system" fn(*mut core::ffi::c_void, super::KeyboardAndMouse::HKL, windows_core::PCWSTR, u32, windows_core::PCWSTR) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_Input_KeyboardAndMouse"))] UnregisterWordW: usize, - pub Activate: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Activate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub Deactivate: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub OnDefWindowProc: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::HWND, u32, super::super::super::Foundation::WPARAM, super::super::super::Foundation::LPARAM, *mut super::super::super::Foundation::LRESULT) -> windows_core::HRESULT, pub FilterClientWindows: unsafe extern "system" fn(*mut core::ffi::c_void, *const u16, u32) -> windows_core::HRESULT, @@ -1645,12 +1645,12 @@ pub trait IActiveIMMApp_Impl: windows_core::IUnknownImpl { fn SetCompositionStringW(&self, himc: HIMC, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::Result<()>; fn SetCompositionWindow(&self, himc: HIMC, pcompform: *const COMPOSITIONFORM) -> windows_core::Result<()>; fn SetConversionStatus(&self, himc: HIMC, fdwconversion: u32, fdwsentence: u32) -> windows_core::Result<()>; - fn SetOpenStatus(&self, himc: HIMC, fopen: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetOpenStatus(&self, himc: HIMC, fopen: windows_core::BOOL) -> windows_core::Result<()>; fn SetStatusWindowPos(&self, himc: HIMC, pptpos: *const super::super::super::Foundation::POINT) -> windows_core::Result<()>; fn SimulateHotKey(&self, hwnd: super::super::super::Foundation::HWND, dwhotkeyid: u32) -> windows_core::Result<()>; fn UnregisterWordA(&self, hkl: super::KeyboardAndMouse::HKL, szreading: &windows_core::PCSTR, dwstyle: u32, szunregister: &windows_core::PCSTR) -> windows_core::Result<()>; fn UnregisterWordW(&self, hkl: super::KeyboardAndMouse::HKL, szreading: &windows_core::PCWSTR, dwstyle: u32, szunregister: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn Activate(&self, frestorelayout: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Activate(&self, frestorelayout: windows_core::BOOL) -> windows_core::Result<()>; fn Deactivate(&self) -> windows_core::Result<()>; fn OnDefWindowProc(&self, hwnd: super::super::super::Foundation::HWND, msg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> windows_core::Result; fn FilterClientWindows(&self, aaclasslist: *const u16, usize: u32) -> windows_core::Result<()>; @@ -2043,7 +2043,7 @@ impl IActiveIMMApp_Vtbl { IActiveIMMApp_Impl::SetConversionStatus(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&fdwconversion), core::mem::transmute_copy(&fdwsentence)).into() } } - unsafe extern "system" fn SetOpenStatus(this: *mut core::ffi::c_void, himc: HIMC, fopen: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetOpenStatus(this: *mut core::ffi::c_void, himc: HIMC, fopen: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::SetOpenStatus(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&fopen)).into() @@ -2073,7 +2073,7 @@ impl IActiveIMMApp_Vtbl { IActiveIMMApp_Impl::UnregisterWordW(this, core::mem::transmute_copy(&hkl), core::mem::transmute(&szreading), core::mem::transmute_copy(&dwstyle), core::mem::transmute(&szunregister)).into() } } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, frestorelayout: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, frestorelayout: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMApp_Impl::Activate(this, core::mem::transmute_copy(&frestorelayout)).into() @@ -2782,7 +2782,7 @@ pub struct IActiveIMMIME_Vtbl { pub SetCompositionStringW: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, u32, *const core::ffi::c_void, u32, *const core::ffi::c_void, u32) -> windows_core::HRESULT, pub SetCompositionWindow: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, *const COMPOSITIONFORM) -> windows_core::HRESULT, pub SetConversionStatus: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, u32, u32) -> windows_core::HRESULT, - pub SetOpenStatus: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetOpenStatus: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, windows_core::BOOL) -> windows_core::HRESULT, pub SetStatusWindowPos: unsafe extern "system" fn(*mut core::ffi::c_void, HIMC, *const super::super::super::Foundation::POINT) -> windows_core::HRESULT, pub SimulateHotKey: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::HWND, u32) -> windows_core::HRESULT, #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] @@ -2900,7 +2900,7 @@ pub trait IActiveIMMIME_Impl: windows_core::IUnknownImpl { fn SetCompositionStringW(&self, himc: HIMC, dwindex: u32, pcomp: *const core::ffi::c_void, dwcomplen: u32, pread: *const core::ffi::c_void, dwreadlen: u32) -> windows_core::Result<()>; fn SetCompositionWindow(&self, himc: HIMC, pcompform: *const COMPOSITIONFORM) -> windows_core::Result<()>; fn SetConversionStatus(&self, himc: HIMC, fdwconversion: u32, fdwsentence: u32) -> windows_core::Result<()>; - fn SetOpenStatus(&self, himc: HIMC, fopen: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetOpenStatus(&self, himc: HIMC, fopen: windows_core::BOOL) -> windows_core::Result<()>; fn SetStatusWindowPos(&self, himc: HIMC, pptpos: *const super::super::super::Foundation::POINT) -> windows_core::Result<()>; fn SimulateHotKey(&self, hwnd: super::super::super::Foundation::HWND, dwhotkeyid: u32) -> windows_core::Result<()>; fn UnregisterWordA(&self, hkl: super::KeyboardAndMouse::HKL, szreading: &windows_core::PCSTR, dwstyle: u32, szunregister: &windows_core::PCSTR) -> windows_core::Result<()>; @@ -3318,7 +3318,7 @@ impl IActiveIMMIME_Vtbl { IActiveIMMIME_Impl::SetConversionStatus(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&fdwconversion), core::mem::transmute_copy(&fdwsentence)).into() } } - unsafe extern "system" fn SetOpenStatus(this: *mut core::ffi::c_void, himc: HIMC, fopen: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetOpenStatus(this: *mut core::ffi::c_void, himc: HIMC, fopen: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActiveIMMIME_Impl::SetOpenStatus(this, core::mem::transmute_copy(&himc), core::mem::transmute_copy(&fopen)).into() @@ -4866,7 +4866,7 @@ impl IImeSpecifyApplets_Vtbl { } } impl windows_core::RuntimeName for IImeSpecifyApplets {} -pub type IMCENUMPROC = Option super::super::super::Foundation::BOOL>; +pub type IMCENUMPROC = Option windows_core::BOOL>; pub const IMC_CLOSESTATUSWINDOW: u32 = 33u32; pub const IMC_GETCANDIDATEPOS: u32 = 7u32; pub const IMC_GETCOMPOSITIONFONT: u32 = 9u32; @@ -5160,7 +5160,7 @@ impl Default for IMEKMSKMP { pub struct IMEKMSNTFY { pub cbSize: i32, pub hIMC: HIMC, - pub fSelect: super::super::super::Foundation::BOOL, + pub fSelect: windows_core::BOOL, } impl Default for IMEKMSNTFY { fn default() -> Self { @@ -5640,7 +5640,7 @@ pub const INIT_STATUSWNDPOS: u32 = 1u32; #[derive(Clone, Copy)] pub struct INPUTCONTEXT { pub hWnd: super::super::super::Foundation::HWND, - pub fOpen: super::super::super::Foundation::BOOL, + pub fOpen: windows_core::BOOL, pub ptStatusWndPos: super::super::super::Foundation::POINT, pub ptSoftKbdPos: super::super::super::Foundation::POINT, pub fdwConversion: u32, @@ -5954,7 +5954,7 @@ pub struct NOTIFY_IME_ACTION(pub u32); #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct NOTIFY_IME_INDEX(pub u32); -pub type PFNLOG = Option super::super::super::Foundation::BOOL>; +pub type PFNLOG = Option windows_core::BOOL>; #[repr(C, packed(1))] #[derive(Clone, Copy)] pub struct POSTBL { 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 e94193a0e2..1710b85445 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 @@ -42,14 +42,14 @@ impl IInkD2DRenderer { #[repr(C)] pub struct IInkD2DRenderer_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Draw: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Draw: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IInkD2DRenderer_Impl: windows_core::IUnknownImpl { - fn Draw(&self, pd2d1devicecontext: windows_core::Ref, pinkstrokeiterable: windows_core::Ref, fhighcontrast: super::super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Draw(&self, pd2d1devicecontext: windows_core::Ref, pinkstrokeiterable: windows_core::Ref, fhighcontrast: windows_core::BOOL) -> windows_core::Result<()>; } impl IInkD2DRenderer_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, pd2d1devicecontext: *mut core::ffi::c_void, pinkstrokeiterable: *mut core::ffi::c_void, fhighcontrast: super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Draw(this: *mut core::ffi::c_void, pd2d1devicecontext: *mut core::ffi::c_void, pinkstrokeiterable: *mut core::ffi::c_void, fhighcontrast: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInkD2DRenderer_Impl::Draw(this, core::mem::transmute_copy(&pd2d1devicecontext), core::mem::transmute_copy(&pinkstrokeiterable), core::mem::transmute_copy(&fhighcontrast)).into() diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs index d333ec2b00..a9fad0b456 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs @@ -6,17 +6,17 @@ pub unsafe fn ActivateKeyboardLayout(hkl: HKL, flags: ACTIVATE_KEYBOARD_LAYOUT_F } #[inline] pub unsafe fn BlockInput(fblockit: bool) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn BlockInput(fblockit : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn BlockInput(fblockit : windows_core::BOOL) -> windows_core::BOOL); unsafe { BlockInput(fblockit.into()).ok() } } #[inline] -pub unsafe fn DragDetect(hwnd: super::super::super::Foundation::HWND, pt: super::super::super::Foundation::POINT) -> super::super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DragDetect(hwnd : super::super::super::Foundation:: HWND, pt : super::super::super::Foundation:: POINT) -> super::super::super::Foundation:: BOOL); +pub unsafe fn DragDetect(hwnd: super::super::super::Foundation::HWND, pt: super::super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DragDetect(hwnd : super::super::super::Foundation:: HWND, pt : super::super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { DragDetect(hwnd, core::mem::transmute(pt)) } } #[inline] -pub unsafe fn EnableWindow(hwnd: super::super::super::Foundation::HWND, benable: bool) -> super::super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn EnableWindow(hwnd : super::super::super::Foundation:: HWND, benable : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); +pub unsafe fn EnableWindow(hwnd: super::super::super::Foundation::HWND, benable: bool) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn EnableWindow(hwnd : super::super::super::Foundation:: HWND, benable : windows_core::BOOL) -> windows_core::BOOL); unsafe { EnableWindow(hwnd, benable.into()) } } #[inline] @@ -76,17 +76,17 @@ pub unsafe fn GetKeyboardLayoutList(lplist: Option<&mut [HKL]>) -> i32 { } #[inline] pub unsafe fn GetKeyboardLayoutNameA(pwszklid: &mut [u8; 9]) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetKeyboardLayoutNameA(pwszklid : windows_core::PSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetKeyboardLayoutNameA(pwszklid : windows_core::PSTR) -> windows_core::BOOL); unsafe { GetKeyboardLayoutNameA(core::mem::transmute(pwszklid.as_ptr())).ok() } } #[inline] pub unsafe fn GetKeyboardLayoutNameW(pwszklid: &mut [u16; 9]) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetKeyboardLayoutNameW(pwszklid : windows_core::PWSTR) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetKeyboardLayoutNameW(pwszklid : windows_core::PWSTR) -> windows_core::BOOL); unsafe { GetKeyboardLayoutNameW(core::mem::transmute(pwszklid.as_ptr())).ok() } } #[inline] pub unsafe fn GetKeyboardState(lpkeystate: &mut [u8; 256]) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetKeyboardState(lpkeystate : *mut u8) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetKeyboardState(lpkeystate : *mut u8) -> windows_core::BOOL); unsafe { GetKeyboardState(core::mem::transmute(lpkeystate.as_ptr())).ok() } } #[inline] @@ -95,8 +95,8 @@ pub unsafe fn GetKeyboardType(ntypeflag: i32) -> i32 { unsafe { GetKeyboardType(ntypeflag) } } #[inline] -pub unsafe fn GetLastInputInfo(plii: *mut LASTINPUTINFO) -> super::super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn GetLastInputInfo(plii : *mut LASTINPUTINFO) -> super::super::super::Foundation:: BOOL); +pub unsafe fn GetLastInputInfo(plii: *mut LASTINPUTINFO) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn GetLastInputInfo(plii : *mut LASTINPUTINFO) -> windows_core::BOOL); unsafe { GetLastInputInfo(plii as _) } } #[inline] @@ -105,8 +105,8 @@ pub unsafe fn GetMouseMovePointsEx(cbsize: u32, lppt: *const MOUSEMOVEPOINT, lpp unsafe { GetMouseMovePointsEx(cbsize, lppt, core::mem::transmute(lpptbuf.as_ptr()), lpptbuf.len().try_into().unwrap(), resolution) } } #[inline] -pub unsafe fn IsWindowEnabled(hwnd: super::super::super::Foundation::HWND) -> super::super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsWindowEnabled(hwnd : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: BOOL); +pub unsafe fn IsWindowEnabled(hwnd: super::super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsWindowEnabled(hwnd : super::super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { IsWindowEnabled(hwnd) } } #[inline] @@ -154,12 +154,12 @@ pub unsafe fn OemKeyScan(woemchar: u16) -> u32 { } #[inline] pub unsafe fn RegisterHotKey(hwnd: Option, id: i32, fsmodifiers: HOT_KEY_MODIFIERS, vk: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn RegisterHotKey(hwnd : super::super::super::Foundation:: HWND, id : i32, fsmodifiers : HOT_KEY_MODIFIERS, vk : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn RegisterHotKey(hwnd : super::super::super::Foundation:: HWND, id : i32, fsmodifiers : HOT_KEY_MODIFIERS, vk : u32) -> windows_core::BOOL); unsafe { RegisterHotKey(hwnd.unwrap_or(core::mem::zeroed()) as _, id, fsmodifiers, vk).ok() } } #[inline] pub unsafe fn ReleaseCapture() -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn ReleaseCapture() -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn ReleaseCapture() -> windows_core::BOOL); unsafe { ReleaseCapture().ok() } } #[inline] @@ -180,7 +180,7 @@ pub unsafe fn SetCapture(hwnd: super::super::super::Foundation::HWND) -> super:: } #[inline] pub unsafe fn SetDoubleClickTime(param0: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetDoubleClickTime(param0 : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetDoubleClickTime(param0 : u32) -> windows_core::BOOL); unsafe { SetDoubleClickTime(param0).ok() } } #[inline] @@ -191,12 +191,12 @@ pub unsafe fn SetFocus(hwnd: Option) -> w } #[inline] pub unsafe fn SetKeyboardState(lpkeystate: &[u8; 256]) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetKeyboardState(lpkeystate : *const u8) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetKeyboardState(lpkeystate : *const u8) -> windows_core::BOOL); unsafe { SetKeyboardState(core::mem::transmute(lpkeystate.as_ptr())).ok() } } #[inline] -pub unsafe fn SwapMouseButton(fswap: bool) -> super::super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn SwapMouseButton(fswap : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); +pub unsafe fn SwapMouseButton(fswap: bool) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn SwapMouseButton(fswap : windows_core::BOOL) -> windows_core::BOOL); unsafe { SwapMouseButton(fswap.into()) } } #[inline] @@ -221,17 +221,17 @@ pub unsafe fn ToUnicodeEx(wvirtkey: u32, wscancode: u32, lpkeystate: &[u8; 256], } #[inline] pub unsafe fn TrackMouseEvent(lpeventtrack: *mut TRACKMOUSEEVENT) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn TrackMouseEvent(lpeventtrack : *mut TRACKMOUSEEVENT) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn TrackMouseEvent(lpeventtrack : *mut TRACKMOUSEEVENT) -> windows_core::BOOL); unsafe { TrackMouseEvent(lpeventtrack as _).ok() } } #[inline] pub unsafe fn UnloadKeyboardLayout(hkl: HKL) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn UnloadKeyboardLayout(hkl : HKL) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn UnloadKeyboardLayout(hkl : HKL) -> windows_core::BOOL); unsafe { UnloadKeyboardLayout(hkl).ok() } } #[inline] pub unsafe fn UnregisterHotKey(hwnd: Option, id: i32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn UnregisterHotKey(hwnd : super::super::super::Foundation:: HWND, id : i32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn UnregisterHotKey(hwnd : super::super::super::Foundation:: HWND, id : i32) -> windows_core::BOOL); unsafe { UnregisterHotKey(hwnd.unwrap_or(core::mem::zeroed()) as _, id).ok() } } #[inline] @@ -255,8 +255,8 @@ pub unsafe fn VkKeyScanW(ch: u16) -> i16 { unsafe { VkKeyScanW(ch) } } #[inline] -pub unsafe fn _TrackMouseEvent(lpeventtrack: *mut TRACKMOUSEEVENT) -> super::super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn _TrackMouseEvent(lpeventtrack : *mut TRACKMOUSEEVENT) -> super::super::super::Foundation:: BOOL); +pub unsafe fn _TrackMouseEvent(lpeventtrack: *mut TRACKMOUSEEVENT) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn _TrackMouseEvent(lpeventtrack : *mut TRACKMOUSEEVENT) -> windows_core::BOOL); unsafe { _TrackMouseEvent(lpeventtrack as _) } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Pointer/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Pointer/mod.rs index e65a00c402..74409ed25d 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Pointer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Pointer/mod.rs @@ -1,129 +1,129 @@ #[inline] pub unsafe fn EnableMouseInPointer(fenable: bool) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn EnableMouseInPointer(fenable : super::super::super::Foundation:: BOOL) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EnableMouseInPointer(fenable : windows_core::BOOL) -> windows_core::BOOL); unsafe { EnableMouseInPointer(fenable.into()).ok() } } #[inline] pub unsafe fn GetPointerCursorId(pointerid: u32, cursorid: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerCursorId(pointerid : u32, cursorid : *mut u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerCursorId(pointerid : u32, cursorid : *mut u32) -> windows_core::BOOL); unsafe { GetPointerCursorId(pointerid, cursorid as _).ok() } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls"))] #[inline] pub unsafe fn GetPointerDevice(device: super::super::super::Foundation::HANDLE, pointerdevice: *mut super::super::Controls::POINTER_DEVICE_INFO) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerDevice(device : super::super::super::Foundation:: HANDLE, pointerdevice : *mut super::super::Controls:: POINTER_DEVICE_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerDevice(device : super::super::super::Foundation:: HANDLE, pointerdevice : *mut super::super::Controls:: POINTER_DEVICE_INFO) -> windows_core::BOOL); unsafe { GetPointerDevice(device, pointerdevice as _).ok() } } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn GetPointerDeviceCursors(device: super::super::super::Foundation::HANDLE, cursorcount: *mut u32, devicecursors: Option<*mut super::super::Controls::POINTER_DEVICE_CURSOR_INFO>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerDeviceCursors(device : super::super::super::Foundation:: HANDLE, cursorcount : *mut u32, devicecursors : *mut super::super::Controls:: POINTER_DEVICE_CURSOR_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerDeviceCursors(device : super::super::super::Foundation:: HANDLE, cursorcount : *mut u32, devicecursors : *mut super::super::Controls:: POINTER_DEVICE_CURSOR_INFO) -> windows_core::BOOL); unsafe { GetPointerDeviceCursors(device, cursorcount as _, devicecursors.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn GetPointerDeviceProperties(device: super::super::super::Foundation::HANDLE, propertycount: *mut u32, pointerproperties: Option<*mut super::super::Controls::POINTER_DEVICE_PROPERTY>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerDeviceProperties(device : super::super::super::Foundation:: HANDLE, propertycount : *mut u32, pointerproperties : *mut super::super::Controls:: POINTER_DEVICE_PROPERTY) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerDeviceProperties(device : super::super::super::Foundation:: HANDLE, propertycount : *mut u32, pointerproperties : *mut super::super::Controls:: POINTER_DEVICE_PROPERTY) -> windows_core::BOOL); unsafe { GetPointerDeviceProperties(device, propertycount as _, pointerproperties.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn GetPointerDeviceRects(device: super::super::super::Foundation::HANDLE, pointerdevicerect: *mut super::super::super::Foundation::RECT, displayrect: *mut super::super::super::Foundation::RECT) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerDeviceRects(device : super::super::super::Foundation:: HANDLE, pointerdevicerect : *mut super::super::super::Foundation:: RECT, displayrect : *mut super::super::super::Foundation:: RECT) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerDeviceRects(device : super::super::super::Foundation:: HANDLE, pointerdevicerect : *mut super::super::super::Foundation:: RECT, displayrect : *mut super::super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { GetPointerDeviceRects(device, pointerdevicerect as _, displayrect as _).ok() } } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls"))] #[inline] pub unsafe fn GetPointerDevices(devicecount: *mut u32, pointerdevices: Option<*mut super::super::Controls::POINTER_DEVICE_INFO>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerDevices(devicecount : *mut u32, pointerdevices : *mut super::super::Controls:: POINTER_DEVICE_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerDevices(devicecount : *mut u32, pointerdevices : *mut super::super::Controls:: POINTER_DEVICE_INFO) -> windows_core::BOOL); unsafe { GetPointerDevices(devicecount as _, pointerdevices.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerFrameInfo(pointerid: u32, pointercount: *mut u32, pointerinfo: Option<*mut POINTER_INFO>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerFrameInfo(pointerid : u32, pointercount : *mut u32, pointerinfo : *mut POINTER_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerFrameInfo(pointerid : u32, pointercount : *mut u32, pointerinfo : *mut POINTER_INFO) -> windows_core::BOOL); unsafe { GetPointerFrameInfo(pointerid, pointercount as _, pointerinfo.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerFrameInfoHistory(pointerid: u32, entriescount: *mut u32, pointercount: *mut u32, pointerinfo: Option<*mut POINTER_INFO>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerFrameInfoHistory(pointerid : u32, entriescount : *mut u32, pointercount : *mut u32, pointerinfo : *mut POINTER_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerFrameInfoHistory(pointerid : u32, entriescount : *mut u32, pointercount : *mut u32, pointerinfo : *mut POINTER_INFO) -> windows_core::BOOL); unsafe { GetPointerFrameInfoHistory(pointerid, entriescount as _, pointercount as _, pointerinfo.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerFramePenInfo(pointerid: u32, pointercount: *mut u32, peninfo: Option<*mut POINTER_PEN_INFO>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerFramePenInfo(pointerid : u32, pointercount : *mut u32, peninfo : *mut POINTER_PEN_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerFramePenInfo(pointerid : u32, pointercount : *mut u32, peninfo : *mut POINTER_PEN_INFO) -> windows_core::BOOL); unsafe { GetPointerFramePenInfo(pointerid, pointercount as _, peninfo.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerFramePenInfoHistory(pointerid: u32, entriescount: *mut u32, pointercount: *mut u32, peninfo: Option<*mut POINTER_PEN_INFO>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerFramePenInfoHistory(pointerid : u32, entriescount : *mut u32, pointercount : *mut u32, peninfo : *mut POINTER_PEN_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerFramePenInfoHistory(pointerid : u32, entriescount : *mut u32, pointercount : *mut u32, peninfo : *mut POINTER_PEN_INFO) -> windows_core::BOOL); unsafe { GetPointerFramePenInfoHistory(pointerid, entriescount as _, pointercount as _, peninfo.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerFrameTouchInfo(pointerid: u32, pointercount: *mut u32, touchinfo: Option<*mut POINTER_TOUCH_INFO>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerFrameTouchInfo(pointerid : u32, pointercount : *mut u32, touchinfo : *mut POINTER_TOUCH_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerFrameTouchInfo(pointerid : u32, pointercount : *mut u32, touchinfo : *mut POINTER_TOUCH_INFO) -> windows_core::BOOL); unsafe { GetPointerFrameTouchInfo(pointerid, pointercount as _, touchinfo.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerFrameTouchInfoHistory(pointerid: u32, entriescount: *mut u32, pointercount: *mut u32, touchinfo: Option<*mut POINTER_TOUCH_INFO>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerFrameTouchInfoHistory(pointerid : u32, entriescount : *mut u32, pointercount : *mut u32, touchinfo : *mut POINTER_TOUCH_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerFrameTouchInfoHistory(pointerid : u32, entriescount : *mut u32, pointercount : *mut u32, touchinfo : *mut POINTER_TOUCH_INFO) -> windows_core::BOOL); unsafe { GetPointerFrameTouchInfoHistory(pointerid, entriescount as _, pointercount as _, touchinfo.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerInfo(pointerid: u32, pointerinfo: *mut POINTER_INFO) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerInfo(pointerid : u32, pointerinfo : *mut POINTER_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerInfo(pointerid : u32, pointerinfo : *mut POINTER_INFO) -> windows_core::BOOL); unsafe { GetPointerInfo(pointerid, pointerinfo as _).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerInfoHistory(pointerid: u32, entriescount: *mut u32, pointerinfo: Option<*mut POINTER_INFO>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerInfoHistory(pointerid : u32, entriescount : *mut u32, pointerinfo : *mut POINTER_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerInfoHistory(pointerid : u32, entriescount : *mut u32, pointerinfo : *mut POINTER_INFO) -> windows_core::BOOL); unsafe { GetPointerInfoHistory(pointerid, entriescount as _, pointerinfo.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn GetPointerInputTransform(pointerid: u32, inputtransform: &mut [INPUT_TRANSFORM]) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerInputTransform(pointerid : u32, historycount : u32, inputtransform : *mut INPUT_TRANSFORM) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerInputTransform(pointerid : u32, historycount : u32, inputtransform : *mut INPUT_TRANSFORM) -> windows_core::BOOL); unsafe { GetPointerInputTransform(pointerid, inputtransform.len().try_into().unwrap(), core::mem::transmute(inputtransform.as_ptr())).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerPenInfo(pointerid: u32, peninfo: *mut POINTER_PEN_INFO) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerPenInfo(pointerid : u32, peninfo : *mut POINTER_PEN_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerPenInfo(pointerid : u32, peninfo : *mut POINTER_PEN_INFO) -> windows_core::BOOL); unsafe { GetPointerPenInfo(pointerid, peninfo as _).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerPenInfoHistory(pointerid: u32, entriescount: *mut u32, peninfo: Option<*mut POINTER_PEN_INFO>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerPenInfoHistory(pointerid : u32, entriescount : *mut u32, peninfo : *mut POINTER_PEN_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerPenInfoHistory(pointerid : u32, entriescount : *mut u32, peninfo : *mut POINTER_PEN_INFO) -> windows_core::BOOL); unsafe { GetPointerPenInfoHistory(pointerid, entriescount as _, peninfo.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerTouchInfo(pointerid: u32, touchinfo: *mut POINTER_TOUCH_INFO) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerTouchInfo(pointerid : u32, touchinfo : *mut POINTER_TOUCH_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerTouchInfo(pointerid : u32, touchinfo : *mut POINTER_TOUCH_INFO) -> windows_core::BOOL); unsafe { GetPointerTouchInfo(pointerid, touchinfo as _).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerTouchInfoHistory(pointerid: u32, entriescount: *mut u32, touchinfo: Option<*mut POINTER_TOUCH_INFO>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerTouchInfoHistory(pointerid : u32, entriescount : *mut u32, touchinfo : *mut POINTER_TOUCH_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerTouchInfoHistory(pointerid : u32, entriescount : *mut u32, touchinfo : *mut POINTER_TOUCH_INFO) -> windows_core::BOOL); unsafe { GetPointerTouchInfoHistory(pointerid, entriescount as _, touchinfo.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn GetPointerType(pointerid: u32, pointertype: *mut super::super::WindowsAndMessaging::POINTER_INPUT_TYPE) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPointerType(pointerid : u32, pointertype : *mut super::super::WindowsAndMessaging:: POINTER_INPUT_TYPE) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPointerType(pointerid : u32, pointertype : *mut super::super::WindowsAndMessaging:: POINTER_INPUT_TYPE) -> windows_core::BOOL); unsafe { GetPointerType(pointerid, pointertype as _).ok() } } #[cfg(feature = "Win32_UI_Controls")] #[inline] pub unsafe fn GetRawPointerDeviceData(pointerid: u32, historycount: u32, pproperties: &[super::super::Controls::POINTER_DEVICE_PROPERTY], pvalues: *mut i32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetRawPointerDeviceData(pointerid : u32, historycount : u32, propertiescount : u32, pproperties : *const super::super::Controls:: POINTER_DEVICE_PROPERTY, pvalues : *mut i32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetRawPointerDeviceData(pointerid : u32, historycount : u32, propertiescount : u32, pproperties : *const super::super::Controls:: POINTER_DEVICE_PROPERTY, pvalues : *mut i32) -> windows_core::BOOL); unsafe { GetRawPointerDeviceData(pointerid, historycount, pproperties.len().try_into().unwrap(), core::mem::transmute(pproperties.as_ptr()), pvalues as _).ok() } } #[inline] @@ -133,29 +133,29 @@ pub unsafe fn GetUnpredictedMessagePos() -> u32 { } #[inline] pub unsafe fn InitializeTouchInjection(maxcount: u32, dwmode: TOUCH_FEEDBACK_MODE) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn InitializeTouchInjection(maxcount : u32, dwmode : TOUCH_FEEDBACK_MODE) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn InitializeTouchInjection(maxcount : u32, dwmode : TOUCH_FEEDBACK_MODE) -> windows_core::BOOL); unsafe { InitializeTouchInjection(maxcount, dwmode).ok() } } #[cfg(all(feature = "Win32_UI_Controls", feature = "Win32_UI_WindowsAndMessaging"))] #[inline] pub unsafe fn InjectSyntheticPointerInput(device: super::super::Controls::HSYNTHETICPOINTERDEVICE, pointerinfo: &[super::super::Controls::POINTER_TYPE_INFO]) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn InjectSyntheticPointerInput(device : super::super::Controls:: HSYNTHETICPOINTERDEVICE, pointerinfo : *const super::super::Controls:: POINTER_TYPE_INFO, count : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn InjectSyntheticPointerInput(device : super::super::Controls:: HSYNTHETICPOINTERDEVICE, pointerinfo : *const super::super::Controls:: POINTER_TYPE_INFO, count : u32) -> windows_core::BOOL); unsafe { InjectSyntheticPointerInput(device, core::mem::transmute(pointerinfo.as_ptr()), pointerinfo.len().try_into().unwrap()).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn InjectTouchInput(contacts: &[POINTER_TOUCH_INFO]) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn InjectTouchInput(count : u32, contacts : *const POINTER_TOUCH_INFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn InjectTouchInput(count : u32, contacts : *const POINTER_TOUCH_INFO) -> windows_core::BOOL); unsafe { InjectTouchInput(contacts.len().try_into().unwrap(), core::mem::transmute(contacts.as_ptr())).ok() } } #[inline] -pub unsafe fn IsMouseInPointerEnabled() -> super::super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsMouseInPointerEnabled() -> super::super::super::Foundation:: BOOL); +pub unsafe fn IsMouseInPointerEnabled() -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsMouseInPointerEnabled() -> windows_core::BOOL); unsafe { IsMouseInPointerEnabled() } } #[inline] pub unsafe fn SkipPointerFrameMessages(pointerid: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SkipPointerFrameMessages(pointerid : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SkipPointerFrameMessages(pointerid : u32) -> windows_core::BOOL); unsafe { SkipPointerFrameMessages(pointerid).ok() } } #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/mod.rs index 64e385a990..1a8e3c7f25 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/mod.rs @@ -1,51 +1,51 @@ #[inline] pub unsafe fn CloseGestureInfoHandle(hgestureinfo: HGESTUREINFO) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn CloseGestureInfoHandle(hgestureinfo : HGESTUREINFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn CloseGestureInfoHandle(hgestureinfo : HGESTUREINFO) -> windows_core::BOOL); unsafe { CloseGestureInfoHandle(hgestureinfo).ok() } } #[inline] pub unsafe fn CloseTouchInputHandle(htouchinput: HTOUCHINPUT) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn CloseTouchInputHandle(htouchinput : HTOUCHINPUT) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn CloseTouchInputHandle(htouchinput : HTOUCHINPUT) -> windows_core::BOOL); unsafe { CloseTouchInputHandle(htouchinput).ok() } } #[inline] pub unsafe fn GetGestureConfig(hwnd: super::super::super::Foundation::HWND, dwreserved: u32, dwflags: u32, pcids: *const u32, pgestureconfig: *mut GESTURECONFIG, cbsize: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetGestureConfig(hwnd : super::super::super::Foundation:: HWND, dwreserved : u32, dwflags : u32, pcids : *const u32, pgestureconfig : *mut GESTURECONFIG, cbsize : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetGestureConfig(hwnd : super::super::super::Foundation:: HWND, dwreserved : u32, dwflags : u32, pcids : *const u32, pgestureconfig : *mut GESTURECONFIG, cbsize : u32) -> windows_core::BOOL); unsafe { GetGestureConfig(hwnd, dwreserved, dwflags, pcids, pgestureconfig as _, cbsize).ok() } } #[inline] pub unsafe fn GetGestureExtraArgs(hgestureinfo: HGESTUREINFO, pextraargs: &mut [u8]) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetGestureExtraArgs(hgestureinfo : HGESTUREINFO, cbextraargs : u32, pextraargs : *mut u8) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetGestureExtraArgs(hgestureinfo : HGESTUREINFO, cbextraargs : u32, pextraargs : *mut u8) -> windows_core::BOOL); unsafe { GetGestureExtraArgs(hgestureinfo, pextraargs.len().try_into().unwrap(), core::mem::transmute(pextraargs.as_ptr())).ok() } } #[inline] pub unsafe fn GetGestureInfo(hgestureinfo: HGESTUREINFO, pgestureinfo: *mut GESTUREINFO) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetGestureInfo(hgestureinfo : HGESTUREINFO, pgestureinfo : *mut GESTUREINFO) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetGestureInfo(hgestureinfo : HGESTUREINFO, pgestureinfo : *mut GESTUREINFO) -> windows_core::BOOL); unsafe { GetGestureInfo(hgestureinfo, pgestureinfo as _).ok() } } #[inline] pub unsafe fn GetTouchInputInfo(htouchinput: HTOUCHINPUT, pinputs: &mut [TOUCHINPUT], cbsize: i32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetTouchInputInfo(htouchinput : HTOUCHINPUT, cinputs : u32, pinputs : *mut TOUCHINPUT, cbsize : i32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetTouchInputInfo(htouchinput : HTOUCHINPUT, cinputs : u32, pinputs : *mut TOUCHINPUT, cbsize : i32) -> windows_core::BOOL); unsafe { GetTouchInputInfo(htouchinput, pinputs.len().try_into().unwrap(), core::mem::transmute(pinputs.as_ptr()), cbsize).ok() } } #[inline] -pub unsafe fn IsTouchWindow(hwnd: super::super::super::Foundation::HWND, pulflags: Option<*mut u32>) -> super::super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsTouchWindow(hwnd : super::super::super::Foundation:: HWND, pulflags : *mut u32) -> super::super::super::Foundation:: BOOL); +pub unsafe fn IsTouchWindow(hwnd: super::super::super::Foundation::HWND, pulflags: Option<*mut u32>) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsTouchWindow(hwnd : super::super::super::Foundation:: HWND, pulflags : *mut u32) -> windows_core::BOOL); unsafe { IsTouchWindow(hwnd, pulflags.unwrap_or(core::mem::zeroed()) as _) } } #[inline] pub unsafe fn RegisterTouchWindow(hwnd: super::super::super::Foundation::HWND, ulflags: REGISTER_TOUCH_WINDOW_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn RegisterTouchWindow(hwnd : super::super::super::Foundation:: HWND, ulflags : REGISTER_TOUCH_WINDOW_FLAGS) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn RegisterTouchWindow(hwnd : super::super::super::Foundation:: HWND, ulflags : REGISTER_TOUCH_WINDOW_FLAGS) -> windows_core::BOOL); unsafe { RegisterTouchWindow(hwnd, ulflags).ok() } } #[inline] pub unsafe fn SetGestureConfig(hwnd: super::super::super::Foundation::HWND, dwreserved: u32, pgestureconfig: &[GESTURECONFIG], cbsize: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetGestureConfig(hwnd : super::super::super::Foundation:: HWND, dwreserved : u32, cids : u32, pgestureconfig : *const GESTURECONFIG, cbsize : u32) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetGestureConfig(hwnd : super::super::super::Foundation:: HWND, dwreserved : u32, cids : u32, pgestureconfig : *const GESTURECONFIG, cbsize : u32) -> windows_core::BOOL); unsafe { SetGestureConfig(hwnd, dwreserved, pgestureconfig.len().try_into().unwrap(), core::mem::transmute(pgestureconfig.as_ptr()), cbsize).ok() } } #[inline] pub unsafe fn UnregisterTouchWindow(hwnd: super::super::super::Foundation::HWND) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn UnregisterTouchWindow(hwnd : super::super::super::Foundation:: HWND) -> super::super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn UnregisterTouchWindow(hwnd : super::super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { UnregisterTouchWindow(hwnd).ok() } } #[repr(C)] @@ -388,13 +388,13 @@ impl IInertiaProcessor { pub unsafe fn Reset(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn Process(&self) -> windows_core::Result { + pub unsafe fn Process(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Process)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn ProcessTime(&self, timestamp: u32) -> windows_core::Result { + pub unsafe fn ProcessTime(&self, timestamp: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ProcessTime)(windows_core::Interface::as_raw(self), timestamp, &mut result__).map(|| result__) @@ -455,8 +455,8 @@ pub struct IInertiaProcessor_Vtbl { pub InitialTimestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetInitialTimestamp: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub Reset: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub Process: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub ProcessTime: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Process: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub ProcessTime: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Complete: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub CompleteTime: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, } @@ -506,8 +506,8 @@ pub trait IInertiaProcessor_Impl: windows_core::IUnknownImpl { fn InitialTimestamp(&self) -> windows_core::Result; fn SetInitialTimestamp(&self, timestamp: u32) -> windows_core::Result<()>; fn Reset(&self) -> windows_core::Result<()>; - fn Process(&self) -> windows_core::Result; - fn ProcessTime(&self, timestamp: u32) -> windows_core::Result; + fn Process(&self) -> windows_core::Result; + fn ProcessTime(&self, timestamp: u32) -> windows_core::Result; fn Complete(&self) -> windows_core::Result<()>; fn CompleteTime(&self, timestamp: u32) -> windows_core::Result<()>; } @@ -915,7 +915,7 @@ impl IInertiaProcessor_Vtbl { IInertiaProcessor_Impl::Reset(this).into() } } - unsafe extern "system" fn Process(this: *mut core::ffi::c_void, completed: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Process(this: *mut core::ffi::c_void, completed: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::Process(this) { @@ -927,7 +927,7 @@ impl IInertiaProcessor_Vtbl { } } } - unsafe extern "system" fn ProcessTime(this: *mut core::ffi::c_void, timestamp: u32, completed: *mut super::super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ProcessTime(this: *mut core::ffi::c_void, timestamp: u32, completed: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IInertiaProcessor_Impl::ProcessTime(this, core::mem::transmute_copy(×tamp)) { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/XboxController/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/XboxController/mod.rs index 5a36f291b1..22e6e9246b 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/XboxController/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/XboxController/mod.rs @@ -1,6 +1,6 @@ #[inline] pub unsafe fn XInputEnable(enable: bool) { - windows_targets::link!("xinput1_4.dll" "system" fn XInputEnable(enable : super::super::super::Foundation:: BOOL)); + windows_targets::link!("xinput1_4.dll" "system" fn XInputEnable(enable : windows_core::BOOL)); unsafe { XInputEnable(enable.into()) } } #[inline] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/mod.rs index 05eda4b835..7d45abe4b0 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/mod.rs @@ -18,13 +18,13 @@ pub unsafe fn DefRawInputProc(parawinput: &[*const RAWINPUT], cbsizeheader: u32) unsafe { DefRawInputProc(core::mem::transmute(parawinput.as_ptr()), parawinput.len().try_into().unwrap(), cbsizeheader) } } #[inline] -pub unsafe fn GetCIMSSM(inputmessagesource: *mut INPUT_MESSAGE_SOURCE) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn GetCIMSSM(inputmessagesource : *mut INPUT_MESSAGE_SOURCE) -> super::super::Foundation:: BOOL); +pub unsafe fn GetCIMSSM(inputmessagesource: *mut INPUT_MESSAGE_SOURCE) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn GetCIMSSM(inputmessagesource : *mut INPUT_MESSAGE_SOURCE) -> windows_core::BOOL); unsafe { GetCIMSSM(inputmessagesource as _) } } #[inline] pub unsafe fn GetCurrentInputMessageSource(inputmessagesource: *mut INPUT_MESSAGE_SOURCE) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetCurrentInputMessageSource(inputmessagesource : *mut INPUT_MESSAGE_SOURCE) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetCurrentInputMessageSource(inputmessagesource : *mut INPUT_MESSAGE_SOURCE) -> windows_core::BOOL); unsafe { GetCurrentInputMessageSource(inputmessagesource as _).ok() } } #[inline] @@ -59,7 +59,7 @@ pub unsafe fn GetRegisteredRawInputDevices(prawinputdevices: Option<*mut RAWINPU } #[inline] pub unsafe fn RegisterRawInputDevices(prawinputdevices: &[RAWINPUTDEVICE], cbsize: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn RegisterRawInputDevices(prawinputdevices : *const RAWINPUTDEVICE, uinumdevices : u32, cbsize : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn RegisterRawInputDevices(prawinputdevices : *const RAWINPUTDEVICE, uinumdevices : u32, cbsize : u32) -> windows_core::BOOL); unsafe { RegisterRawInputDevices(core::mem::transmute(prawinputdevices.as_ptr()), prawinputdevices.len().try_into().unwrap(), cbsize).ok() } } #[repr(transparent)] @@ -348,7 +348,7 @@ pub struct RID_DEVICE_INFO_MOUSE { pub dwId: u32, pub dwNumberOfButtons: u32, pub dwSampleRate: u32, - pub fHasHorizontalWheel: super::super::Foundation::BOOL, + pub fHasHorizontalWheel: windows_core::BOOL, } impl Default for RID_DEVICE_INFO_MOUSE { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Magnification/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Magnification/mod.rs index cf0339c5b7..5fa7b4767d 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Magnification/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Magnification/mod.rs @@ -1,16 +1,16 @@ #[inline] -pub unsafe fn MagGetColorEffect(hwnd: super::super::Foundation::HWND, peffect: *mut MAGCOLOREFFECT) -> super::super::Foundation::BOOL { - windows_targets::link!("magnification.dll" "system" fn MagGetColorEffect(hwnd : super::super::Foundation:: HWND, peffect : *mut MAGCOLOREFFECT) -> super::super::Foundation:: BOOL); +pub unsafe fn MagGetColorEffect(hwnd: super::super::Foundation::HWND, peffect: *mut MAGCOLOREFFECT) -> windows_core::BOOL { + windows_targets::link!("magnification.dll" "system" fn MagGetColorEffect(hwnd : super::super::Foundation:: HWND, peffect : *mut MAGCOLOREFFECT) -> windows_core::BOOL); unsafe { MagGetColorEffect(hwnd, peffect as _) } } #[inline] -pub unsafe fn MagGetFullscreenColorEffect(peffect: *mut MAGCOLOREFFECT) -> super::super::Foundation::BOOL { - windows_targets::link!("magnification.dll" "system" fn MagGetFullscreenColorEffect(peffect : *mut MAGCOLOREFFECT) -> super::super::Foundation:: BOOL); +pub unsafe fn MagGetFullscreenColorEffect(peffect: *mut MAGCOLOREFFECT) -> windows_core::BOOL { + windows_targets::link!("magnification.dll" "system" fn MagGetFullscreenColorEffect(peffect : *mut MAGCOLOREFFECT) -> windows_core::BOOL); unsafe { MagGetFullscreenColorEffect(peffect as _) } } #[inline] -pub unsafe fn MagGetFullscreenTransform(pmaglevel: *mut f32, pxoffset: *mut i32, pyoffset: *mut i32) -> super::super::Foundation::BOOL { - windows_targets::link!("magnification.dll" "system" fn MagGetFullscreenTransform(pmaglevel : *mut f32, pxoffset : *mut i32, pyoffset : *mut i32) -> super::super::Foundation:: BOOL); +pub unsafe fn MagGetFullscreenTransform(pmaglevel: *mut f32, pxoffset: *mut i32, pyoffset: *mut i32) -> windows_core::BOOL { + windows_targets::link!("magnification.dll" "system" fn MagGetFullscreenTransform(pmaglevel : *mut f32, pxoffset : *mut i32, pyoffset : *mut i32) -> windows_core::BOOL); unsafe { MagGetFullscreenTransform(pmaglevel as _, pxoffset as _, pyoffset as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -20,8 +20,8 @@ pub unsafe fn MagGetImageScalingCallback(hwnd: super::super::Foundation::HWND) - unsafe { MagGetImageScalingCallback(hwnd) } } #[inline] -pub unsafe fn MagGetInputTransform(pfenabled: *mut super::super::Foundation::BOOL, prectsource: *mut super::super::Foundation::RECT, prectdest: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL { - windows_targets::link!("magnification.dll" "system" fn MagGetInputTransform(pfenabled : *mut super::super::Foundation:: BOOL, prectsource : *mut super::super::Foundation:: RECT, prectdest : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn MagGetInputTransform(pfenabled: *mut windows_core::BOOL, prectsource: *mut super::super::Foundation::RECT, prectdest: *mut super::super::Foundation::RECT) -> windows_core::BOOL { + windows_targets::link!("magnification.dll" "system" fn MagGetInputTransform(pfenabled : *mut windows_core::BOOL, prectsource : *mut super::super::Foundation:: RECT, prectdest : *mut super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { MagGetInputTransform(pfenabled as _, prectsource as _, prectdest as _) } } #[inline] @@ -30,69 +30,69 @@ pub unsafe fn MagGetWindowFilterList(hwnd: super::super::Foundation::HWND, pdwfi unsafe { MagGetWindowFilterList(hwnd, pdwfiltermode as _, count, phwnd as _) } } #[inline] -pub unsafe fn MagGetWindowSource(hwnd: super::super::Foundation::HWND, prect: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL { - windows_targets::link!("magnification.dll" "system" fn MagGetWindowSource(hwnd : super::super::Foundation:: HWND, prect : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn MagGetWindowSource(hwnd: super::super::Foundation::HWND, prect: *mut super::super::Foundation::RECT) -> windows_core::BOOL { + windows_targets::link!("magnification.dll" "system" fn MagGetWindowSource(hwnd : super::super::Foundation:: HWND, prect : *mut super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { MagGetWindowSource(hwnd, prect as _) } } #[inline] -pub unsafe fn MagGetWindowTransform(hwnd: super::super::Foundation::HWND, ptransform: *mut MAGTRANSFORM) -> super::super::Foundation::BOOL { - windows_targets::link!("magnification.dll" "system" fn MagGetWindowTransform(hwnd : super::super::Foundation:: HWND, ptransform : *mut MAGTRANSFORM) -> super::super::Foundation:: BOOL); +pub unsafe fn MagGetWindowTransform(hwnd: super::super::Foundation::HWND, ptransform: *mut MAGTRANSFORM) -> windows_core::BOOL { + windows_targets::link!("magnification.dll" "system" fn MagGetWindowTransform(hwnd : super::super::Foundation:: HWND, ptransform : *mut MAGTRANSFORM) -> windows_core::BOOL); unsafe { MagGetWindowTransform(hwnd, ptransform as _) } } #[inline] -pub unsafe fn MagInitialize() -> super::super::Foundation::BOOL { - windows_targets::link!("magnification.dll" "system" fn MagInitialize() -> super::super::Foundation:: BOOL); +pub unsafe fn MagInitialize() -> windows_core::BOOL { + windows_targets::link!("magnification.dll" "system" fn MagInitialize() -> windows_core::BOOL); unsafe { MagInitialize() } } #[inline] -pub unsafe fn MagSetColorEffect(hwnd: super::super::Foundation::HWND, peffect: *mut MAGCOLOREFFECT) -> super::super::Foundation::BOOL { - windows_targets::link!("magnification.dll" "system" fn MagSetColorEffect(hwnd : super::super::Foundation:: HWND, peffect : *mut MAGCOLOREFFECT) -> super::super::Foundation:: BOOL); +pub unsafe fn MagSetColorEffect(hwnd: super::super::Foundation::HWND, peffect: *mut MAGCOLOREFFECT) -> windows_core::BOOL { + windows_targets::link!("magnification.dll" "system" fn MagSetColorEffect(hwnd : super::super::Foundation:: HWND, peffect : *mut MAGCOLOREFFECT) -> windows_core::BOOL); unsafe { MagSetColorEffect(hwnd, peffect as _) } } #[inline] -pub unsafe fn MagSetFullscreenColorEffect(peffect: *const MAGCOLOREFFECT) -> super::super::Foundation::BOOL { - windows_targets::link!("magnification.dll" "system" fn MagSetFullscreenColorEffect(peffect : *const MAGCOLOREFFECT) -> super::super::Foundation:: BOOL); +pub unsafe fn MagSetFullscreenColorEffect(peffect: *const MAGCOLOREFFECT) -> windows_core::BOOL { + windows_targets::link!("magnification.dll" "system" fn MagSetFullscreenColorEffect(peffect : *const MAGCOLOREFFECT) -> windows_core::BOOL); unsafe { MagSetFullscreenColorEffect(peffect) } } #[inline] -pub unsafe fn MagSetFullscreenTransform(maglevel: f32, xoffset: i32, yoffset: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("magnification.dll" "system" fn MagSetFullscreenTransform(maglevel : f32, xoffset : i32, yoffset : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn MagSetFullscreenTransform(maglevel: f32, xoffset: i32, yoffset: i32) -> windows_core::BOOL { + windows_targets::link!("magnification.dll" "system" fn MagSetFullscreenTransform(maglevel : f32, xoffset : i32, yoffset : i32) -> windows_core::BOOL); unsafe { MagSetFullscreenTransform(maglevel, xoffset, yoffset) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn MagSetImageScalingCallback(hwnd: super::super::Foundation::HWND, callback: MagImageScalingCallback) -> super::super::Foundation::BOOL { - windows_targets::link!("magnification.dll" "system" fn MagSetImageScalingCallback(hwnd : super::super::Foundation:: HWND, callback : MagImageScalingCallback) -> super::super::Foundation:: BOOL); +pub unsafe fn MagSetImageScalingCallback(hwnd: super::super::Foundation::HWND, callback: MagImageScalingCallback) -> windows_core::BOOL { + windows_targets::link!("magnification.dll" "system" fn MagSetImageScalingCallback(hwnd : super::super::Foundation:: HWND, callback : MagImageScalingCallback) -> windows_core::BOOL); unsafe { MagSetImageScalingCallback(hwnd, callback) } } #[inline] pub unsafe fn MagSetInputTransform(fenabled: bool, prectsource: *const super::super::Foundation::RECT, prectdest: *const super::super::Foundation::RECT) -> windows_core::Result<()> { - windows_targets::link!("magnification.dll" "system" fn MagSetInputTransform(fenabled : super::super::Foundation:: BOOL, prectsource : *const super::super::Foundation:: RECT, prectdest : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); + windows_targets::link!("magnification.dll" "system" fn MagSetInputTransform(fenabled : windows_core::BOOL, prectsource : *const super::super::Foundation:: RECT, prectdest : *const super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { MagSetInputTransform(fenabled.into(), prectsource, prectdest).ok() } } #[inline] -pub unsafe fn MagSetWindowFilterList(hwnd: super::super::Foundation::HWND, dwfiltermode: MW_FILTERMODE, count: i32, phwnd: *mut super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("magnification.dll" "system" fn MagSetWindowFilterList(hwnd : super::super::Foundation:: HWND, dwfiltermode : MW_FILTERMODE, count : i32, phwnd : *mut super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn MagSetWindowFilterList(hwnd: super::super::Foundation::HWND, dwfiltermode: MW_FILTERMODE, count: i32, phwnd: *mut super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("magnification.dll" "system" fn MagSetWindowFilterList(hwnd : super::super::Foundation:: HWND, dwfiltermode : MW_FILTERMODE, count : i32, phwnd : *mut super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { MagSetWindowFilterList(hwnd, dwfiltermode, count, phwnd as _) } } #[inline] -pub unsafe fn MagSetWindowSource(hwnd: super::super::Foundation::HWND, rect: super::super::Foundation::RECT) -> super::super::Foundation::BOOL { - windows_targets::link!("magnification.dll" "system" fn MagSetWindowSource(hwnd : super::super::Foundation:: HWND, rect : super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn MagSetWindowSource(hwnd: super::super::Foundation::HWND, rect: super::super::Foundation::RECT) -> windows_core::BOOL { + windows_targets::link!("magnification.dll" "system" fn MagSetWindowSource(hwnd : super::super::Foundation:: HWND, rect : super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { MagSetWindowSource(hwnd, core::mem::transmute(rect)) } } #[inline] -pub unsafe fn MagSetWindowTransform(hwnd: super::super::Foundation::HWND, ptransform: *mut MAGTRANSFORM) -> super::super::Foundation::BOOL { - windows_targets::link!("magnification.dll" "system" fn MagSetWindowTransform(hwnd : super::super::Foundation:: HWND, ptransform : *mut MAGTRANSFORM) -> super::super::Foundation:: BOOL); +pub unsafe fn MagSetWindowTransform(hwnd: super::super::Foundation::HWND, ptransform: *mut MAGTRANSFORM) -> windows_core::BOOL { + windows_targets::link!("magnification.dll" "system" fn MagSetWindowTransform(hwnd : super::super::Foundation:: HWND, ptransform : *mut MAGTRANSFORM) -> windows_core::BOOL); unsafe { MagSetWindowTransform(hwnd, ptransform as _) } } #[inline] -pub unsafe fn MagShowSystemCursor(fshowcursor: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("magnification.dll" "system" fn MagShowSystemCursor(fshowcursor : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn MagShowSystemCursor(fshowcursor: bool) -> windows_core::BOOL { + windows_targets::link!("magnification.dll" "system" fn MagShowSystemCursor(fshowcursor : windows_core::BOOL) -> windows_core::BOOL); unsafe { MagShowSystemCursor(fshowcursor.into()) } } #[inline] -pub unsafe fn MagUninitialize() -> super::super::Foundation::BOOL { - windows_targets::link!("magnification.dll" "system" fn MagUninitialize() -> super::super::Foundation:: BOOL); +pub unsafe fn MagUninitialize() -> windows_core::BOOL { + windows_targets::link!("magnification.dll" "system" fn MagUninitialize() -> windows_core::BOOL); unsafe { MagUninitialize() } } #[repr(C)] @@ -139,7 +139,7 @@ pub struct MW_FILTERMODE(pub u32); pub const MW_FILTERMODE_EXCLUDE: MW_FILTERMODE = MW_FILTERMODE(0u32); pub const MW_FILTERMODE_INCLUDE: MW_FILTERMODE = MW_FILTERMODE(1u32); #[cfg(feature = "Win32_Graphics_Gdi")] -pub type MagImageScalingCallback = Option super::super::Foundation::BOOL>; +pub type MagImageScalingCallback = Option windows_core::BOOL>; pub const WC_MAGNIFIER: windows_core::PCWSTR = windows_core::w!("Magnifier"); pub const WC_MAGNIFIERA: windows_core::PCSTR = windows_core::s!("Magnifier"); pub const WC_MAGNIFIERW: windows_core::PCWSTR = windows_core::w!("Magnifier"); 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 57c3e47f7c..2ea9bbd148 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 @@ -105,7 +105,7 @@ pub unsafe fn PSGetItemPropertyHandler(punkitem: P0, freadwrite: bool, riid: where P0: windows_core::Param, { - windows_targets::link!("propsys.dll" "system" fn PSGetItemPropertyHandler(punkitem : * mut core::ffi::c_void, freadwrite : super::super::super::Foundation:: BOOL, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("propsys.dll" "system" fn PSGetItemPropertyHandler(punkitem : * mut core::ffi::c_void, freadwrite : windows_core::BOOL, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { PSGetItemPropertyHandler(punkitem.param().abi(), freadwrite.into(), riid, ppv as _).ok() } } #[inline] @@ -114,7 +114,7 @@ where P0: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("propsys.dll" "system" fn PSGetItemPropertyHandlerWithCreateObject(punkitem : * mut core::ffi::c_void, freadwrite : super::super::super::Foundation:: BOOL, punkcreateobject : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("propsys.dll" "system" fn PSGetItemPropertyHandlerWithCreateObject(punkitem : * mut core::ffi::c_void, freadwrite : windows_core::BOOL, punkcreateobject : * mut core::ffi::c_void, riid : *const windows_core::GUID, ppv : *mut *mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { PSGetItemPropertyHandlerWithCreateObject(punkitem.param().abi(), freadwrite.into(), punkcreateobject.param().abi(), riid, ppv as _).ok() } } #[inline] @@ -216,12 +216,12 @@ where } #[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] -pub unsafe fn PSPropertyBag_ReadBOOL(propbag: P0, propname: P1) -> windows_core::Result +pub unsafe fn PSPropertyBag_ReadBOOL(propbag: P0, propname: P1) -> windows_core::Result where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadBOOL(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_ReadBOOL(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); PSPropertyBag_ReadBOOL(propbag.param().abi(), propname.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) @@ -430,7 +430,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_WriteBOOL(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : super::super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("propsys.dll" "system" fn PSPropertyBag_WriteBOOL(propbag : * mut core::ffi::c_void, propname : windows_core::PCWSTR, value : windows_core::BOOL) -> windows_core::HRESULT); unsafe { PSPropertyBag_WriteBOOL(propbag.param().abi(), propname.param().abi(), value.into()).ok() } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -1510,7 +1510,7 @@ pub struct IPropertyDescription_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] GetRelativeDescription: usize, pub GetSortDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PROPDESC_SORTDESCRIPTION) -> windows_core::HRESULT, - pub GetSortDescriptionLabel: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::BOOL, *mut windows_core::PWSTR) -> windows_core::HRESULT, + pub GetSortDescriptionLabel: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetAggregationType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PROPDESC_AGGREGATION_TYPE) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Search_Common")] pub GetConditionType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PROPDESC_CONDITION_TYPE, *mut super::super::super::System::Search::Common::CONDITION_OPERATION) -> windows_core::HRESULT, @@ -1546,7 +1546,7 @@ pub trait IPropertyDescription_Impl: windows_core::IUnknownImpl { fn GetRelativeDescriptionType(&self) -> windows_core::Result; fn GetRelativeDescription(&self, propvar1: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT, propvar2: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT, ppszdesc1: *mut windows_core::PWSTR, ppszdesc2: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn GetSortDescription(&self) -> windows_core::Result; - fn GetSortDescriptionLabel(&self, fdescending: super::super::super::Foundation::BOOL) -> windows_core::Result; + fn GetSortDescriptionLabel(&self, fdescending: windows_core::BOOL) -> windows_core::Result; fn GetAggregationType(&self) -> windows_core::Result; fn GetConditionType(&self, pcontype: *mut PROPDESC_CONDITION_TYPE, popdefault: *mut super::super::super::System::Search::Common::CONDITION_OPERATION) -> windows_core::Result<()>; fn GetEnumTypeList(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; @@ -1713,7 +1713,7 @@ impl IPropertyDescription_Vtbl { } } } - unsafe extern "system" fn GetSortDescriptionLabel(this: *mut core::ffi::c_void, fdescending: super::super::super::Foundation::BOOL, ppszdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { + unsafe extern "system" fn GetSortDescriptionLabel(this: *mut core::ffi::c_void, fdescending: windows_core::BOOL, ppszdescription: *mut windows_core::PWSTR) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPropertyDescription_Impl::GetSortDescriptionLabel(this, core::mem::transmute_copy(&fdescending)) { 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 91c8eae6cf..4b53ca86bf 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs @@ -23,11 +23,11 @@ where } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_Common"))] #[inline] -pub unsafe fn AssocGetDetailsOfPropKey(psf: P0, pidl: *const Common::ITEMIDLIST, pkey: *const super::super::Foundation::PROPERTYKEY, pv: *mut super::super::System::Variant::VARIANT, pffoundpropkey: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> +pub unsafe fn AssocGetDetailsOfPropKey(psf: P0, pidl: *const Common::ITEMIDLIST, pkey: *const super::super::Foundation::PROPERTYKEY, pv: *mut super::super::System::Variant::VARIANT, pffoundpropkey: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn AssocGetDetailsOfPropKey(psf : * mut core::ffi::c_void, pidl : *const Common:: ITEMIDLIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pv : *mut super::super::System::Variant:: VARIANT, pffoundpropkey : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("shell32.dll" "system" fn AssocGetDetailsOfPropKey(psf : * mut core::ffi::c_void, pidl : *const Common:: ITEMIDLIST, pkey : *const super::super::Foundation:: PROPERTYKEY, pv : *mut super::super::System::Variant:: VARIANT, pffoundpropkey : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { AssocGetDetailsOfPropKey(psf.param().abi(), pidl, pkey, core::mem::transmute(pv), pffoundpropkey.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_UI_Shell_Common")] @@ -40,11 +40,11 @@ where unsafe { AssocGetPerceivedType(pszext.param().abi(), ptype as _, pflag as _, ppsztype.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn AssocIsDangerous(pszassoc: P0) -> super::super::Foundation::BOOL +pub unsafe fn AssocIsDangerous(pszassoc: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn AssocIsDangerous(pszassoc : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn AssocIsDangerous(pszassoc : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { AssocIsDangerous(pszassoc.param().abi()) } } #[cfg(feature = "Win32_System_Registry")] @@ -142,18 +142,18 @@ pub unsafe fn CIDLData_CreateFromIDArray(pidlfolder: *const Common::ITEMIDLIST, } } #[inline] -pub unsafe fn ChrCmpIA(w1: u16, w2: u16) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn ChrCmpIA(w1 : u16, w2 : u16) -> super::super::Foundation:: BOOL); +pub unsafe fn ChrCmpIA(w1: u16, w2: u16) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn ChrCmpIA(w1 : u16, w2 : u16) -> windows_core::BOOL); unsafe { ChrCmpIA(w1, w2) } } #[inline] -pub unsafe fn ChrCmpIW(w1: u16, w2: u16) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn ChrCmpIW(w1 : u16, w2 : u16) -> super::super::Foundation:: BOOL); +pub unsafe fn ChrCmpIW(w1: u16, w2: u16) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn ChrCmpIW(w1 : u16, w2 : u16) -> windows_core::BOOL); unsafe { ChrCmpIW(w1, w2) } } #[inline] pub unsafe fn ColorAdjustLuma(clrrgb: super::super::Foundation::COLORREF, n: i32, fscale: bool) -> super::super::Foundation::COLORREF { - windows_targets::link!("shlwapi.dll" "system" fn ColorAdjustLuma(clrrgb : super::super::Foundation:: COLORREF, n : i32, fscale : super::super::Foundation:: BOOL) -> super::super::Foundation:: COLORREF); + windows_targets::link!("shlwapi.dll" "system" fn ColorAdjustLuma(clrrgb : super::super::Foundation:: COLORREF, n : i32, fscale : windows_core::BOOL) -> super::super::Foundation:: COLORREF); unsafe { ColorAdjustLuma(clrrgb, n, fscale.into()) } } #[inline] @@ -181,7 +181,7 @@ where P0: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn ConnectToConnectionPoint(punk : * mut core::ffi::c_void, riidevent : *const windows_core::GUID, fconnect : super::super::Foundation:: BOOL, punktarget : * mut core::ffi::c_void, pdwcookie : *mut u32, ppcpout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("shlwapi.dll" "system" fn ConnectToConnectionPoint(punk : * mut core::ffi::c_void, riidevent : *const windows_core::GUID, fconnect : windows_core::BOOL, punktarget : * mut core::ffi::c_void, pdwcookie : *mut u32, ppcpout : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { ConnectToConnectionPoint(punk.param().abi(), riidevent, fconnect.into(), punktarget.param().abi(), pdwcookie as _, ppcpout.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -194,43 +194,43 @@ where unsafe { CreateProfile(pszusersid.param().abi(), pszusername.param().abi(), core::mem::transmute(pszprofilepath.as_ptr()), pszprofilepath.len().try_into().unwrap()).ok() } } #[inline] -pub unsafe fn DAD_AutoScroll(hwnd: super::super::Foundation::HWND, pad: *mut AUTO_SCROLL_DATA, pptnow: *const super::super::Foundation::POINT) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn DAD_AutoScroll(hwnd : super::super::Foundation:: HWND, pad : *mut AUTO_SCROLL_DATA, pptnow : *const super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn DAD_AutoScroll(hwnd: super::super::Foundation::HWND, pad: *mut AUTO_SCROLL_DATA, pptnow: *const super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn DAD_AutoScroll(hwnd : super::super::Foundation:: HWND, pad : *mut AUTO_SCROLL_DATA, pptnow : *const super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { DAD_AutoScroll(hwnd, pad as _, pptnow) } } #[inline] -pub unsafe fn DAD_DragEnterEx(hwndtarget: super::super::Foundation::HWND, ptstart: super::super::Foundation::POINT) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn DAD_DragEnterEx(hwndtarget : super::super::Foundation:: HWND, ptstart : super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn DAD_DragEnterEx(hwndtarget: super::super::Foundation::HWND, ptstart: super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn DAD_DragEnterEx(hwndtarget : super::super::Foundation:: HWND, ptstart : super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { DAD_DragEnterEx(hwndtarget, core::mem::transmute(ptstart)) } } #[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn DAD_DragEnterEx2(hwndtarget: super::super::Foundation::HWND, ptstart: super::super::Foundation::POINT, pdtobject: P2) -> super::super::Foundation::BOOL +pub unsafe fn DAD_DragEnterEx2(hwndtarget: super::super::Foundation::HWND, ptstart: super::super::Foundation::POINT, pdtobject: P2) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn DAD_DragEnterEx2(hwndtarget : super::super::Foundation:: HWND, ptstart : super::super::Foundation:: POINT, pdtobject : * mut core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn DAD_DragEnterEx2(hwndtarget : super::super::Foundation:: HWND, ptstart : super::super::Foundation:: POINT, pdtobject : * mut core::ffi::c_void) -> windows_core::BOOL); unsafe { DAD_DragEnterEx2(hwndtarget, core::mem::transmute(ptstart), pdtobject.param().abi()) } } #[inline] -pub unsafe fn DAD_DragLeave() -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn DAD_DragLeave() -> super::super::Foundation:: BOOL); +pub unsafe fn DAD_DragLeave() -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn DAD_DragLeave() -> windows_core::BOOL); unsafe { DAD_DragLeave() } } #[inline] -pub unsafe fn DAD_DragMove(pt: super::super::Foundation::POINT) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn DAD_DragMove(pt : super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn DAD_DragMove(pt: super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn DAD_DragMove(pt : super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { DAD_DragMove(core::mem::transmute(pt)) } } #[cfg(feature = "Win32_UI_Controls")] #[inline] -pub unsafe fn DAD_SetDragImage(him: super::Controls::HIMAGELIST, pptoffset: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn DAD_SetDragImage(him : super::Controls:: HIMAGELIST, pptoffset : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn DAD_SetDragImage(him: super::Controls::HIMAGELIST, pptoffset: *mut super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn DAD_SetDragImage(him : super::Controls:: HIMAGELIST, pptoffset : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { DAD_SetDragImage(him, pptoffset as _) } } #[inline] -pub unsafe fn DAD_ShowDragImage(fshow: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn DAD_ShowDragImage(fshow : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn DAD_ShowDragImage(fshow: bool) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn DAD_ShowDragImage(fshow : windows_core::BOOL) -> windows_core::BOOL); unsafe { DAD_ShowDragImage(fshow.into()) } } #[inline] @@ -245,7 +245,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("userenv.dll" "system" fn DeleteProfileA(lpsidstring : windows_core::PCSTR, lpprofilepath : windows_core::PCSTR, lpcomputername : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn DeleteProfileA(lpsidstring : windows_core::PCSTR, lpprofilepath : windows_core::PCSTR, lpcomputername : windows_core::PCSTR) -> windows_core::BOOL); unsafe { DeleteProfileA(lpsidstring.param().abi(), lpprofilepath.param().abi(), lpcomputername.param().abi()).ok() } } #[inline] @@ -255,7 +255,7 @@ where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("userenv.dll" "system" fn DeleteProfileW(lpsidstring : windows_core::PCWSTR, lpprofilepath : windows_core::PCWSTR, lpcomputername : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn DeleteProfileW(lpsidstring : windows_core::PCWSTR, lpprofilepath : windows_core::PCWSTR, lpcomputername : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { DeleteProfileW(lpsidstring.param().abi(), lpprofilepath.param().abi(), lpcomputername.param().abi()).ok() } } #[inline] @@ -270,7 +270,7 @@ pub unsafe fn DoEnvironmentSubstW(pszsrc: &mut [u16]) -> u32 { } #[inline] pub unsafe fn DragAcceptFiles(hwnd: super::super::Foundation::HWND, faccept: bool) { - windows_targets::link!("shell32.dll" "system" fn DragAcceptFiles(hwnd : super::super::Foundation:: HWND, faccept : super::super::Foundation:: BOOL)); + windows_targets::link!("shell32.dll" "system" fn DragAcceptFiles(hwnd : super::super::Foundation:: HWND, faccept : windows_core::BOOL)); unsafe { DragAcceptFiles(hwnd, faccept.into()) } } #[inline] @@ -289,8 +289,8 @@ pub unsafe fn DragQueryFileW(hdrop: HDROP, ifile: u32, lpszfile: Option<&mut [u1 unsafe { DragQueryFileW(hdrop, ifile, core::mem::transmute(lpszfile.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpszfile.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())) } } #[inline] -pub unsafe fn DragQueryPoint(hdrop: HDROP, ppt: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn DragQueryPoint(hdrop : HDROP, ppt : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn DragQueryPoint(hdrop: HDROP, ppt: *mut super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn DragQueryPoint(hdrop : HDROP, ppt : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { DragQueryPoint(hdrop, ppt as _) } } #[inline] @@ -394,12 +394,12 @@ pub unsafe fn GetAcceptLanguagesW(pszlanguages: windows_core::PWSTR, pcchlanguag } #[inline] pub unsafe fn GetAllUsersProfileDirectoryA(lpprofiledir: Option, lpcchsize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn GetAllUsersProfileDirectoryA(lpprofiledir : windows_core::PSTR, lpcchsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn GetAllUsersProfileDirectoryA(lpprofiledir : windows_core::PSTR, lpcchsize : *mut u32) -> windows_core::BOOL); unsafe { GetAllUsersProfileDirectoryA(lpprofiledir.unwrap_or(core::mem::zeroed()) as _, lpcchsize as _).ok() } } #[inline] pub unsafe fn GetAllUsersProfileDirectoryW(lpprofiledir: Option, lpcchsize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn GetAllUsersProfileDirectoryW(lpprofiledir : windows_core::PWSTR, lpcchsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn GetAllUsersProfileDirectoryW(lpprofiledir : windows_core::PWSTR, lpcchsize : *mut u32) -> windows_core::BOOL); unsafe { GetAllUsersProfileDirectoryW(lpprofiledir.unwrap_or(core::mem::zeroed()) as _, lpcchsize as _).ok() } } #[inline] @@ -412,12 +412,12 @@ pub unsafe fn GetCurrentProcessExplicitAppUserModelID() -> windows_core::Result< } #[inline] pub unsafe fn GetDefaultUserProfileDirectoryA(lpprofiledir: Option, lpcchsize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn GetDefaultUserProfileDirectoryA(lpprofiledir : windows_core::PSTR, lpcchsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn GetDefaultUserProfileDirectoryA(lpprofiledir : windows_core::PSTR, lpcchsize : *mut u32) -> windows_core::BOOL); unsafe { GetDefaultUserProfileDirectoryA(lpprofiledir.unwrap_or(core::mem::zeroed()) as _, lpcchsize as _).ok() } } #[inline] pub unsafe fn GetDefaultUserProfileDirectoryW(lpprofiledir: Option, lpcchsize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn GetDefaultUserProfileDirectoryW(lpprofiledir : windows_core::PWSTR, lpcchsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn GetDefaultUserProfileDirectoryW(lpprofiledir : windows_core::PWSTR, lpcchsize : *mut u32) -> windows_core::BOOL); unsafe { GetDefaultUserProfileDirectoryW(lpprofiledir.unwrap_or(core::mem::zeroed()) as _, lpcchsize as _).ok() } } #[inline] @@ -426,14 +426,14 @@ pub unsafe fn GetDpiForShellUIComponent(param0: SHELL_UI_COMPONENT) -> u32 { unsafe { GetDpiForShellUIComponent(param0) } } #[inline] -pub unsafe fn GetFileNameFromBrowse(hwnd: Option, pszfilepath: &mut [u16], pszworkingdir: P3, pszdefext: P4, pszfilters: P5, psztitle: P6) -> super::super::Foundation::BOOL +pub unsafe fn GetFileNameFromBrowse(hwnd: Option, pszfilepath: &mut [u16], pszworkingdir: P3, pszdefext: P4, pszfilters: P5, psztitle: P6) -> windows_core::BOOL where P3: windows_core::Param, P4: windows_core::Param, P5: windows_core::Param, P6: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn GetFileNameFromBrowse(hwnd : super::super::Foundation:: HWND, pszfilepath : windows_core::PWSTR, cchfilepath : u32, pszworkingdir : windows_core::PCWSTR, pszdefext : windows_core::PCWSTR, pszfilters : windows_core::PCWSTR, psztitle : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn GetFileNameFromBrowse(hwnd : super::super::Foundation:: HWND, pszfilepath : windows_core::PWSTR, cchfilepath : u32, pszworkingdir : windows_core::PCWSTR, pszdefext : windows_core::PCWSTR, pszfilters : windows_core::PCWSTR, psztitle : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { GetFileNameFromBrowse(hwnd.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(pszfilepath.as_ptr()), pszfilepath.len().try_into().unwrap(), pszworkingdir.param().abi(), pszdefext.param().abi(), pszfilters.param().abi(), psztitle.param().abi()) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -450,17 +450,17 @@ pub unsafe fn GetMenuPosFromID(hmenu: super::WindowsAndMessaging::HMENU, id: u32 } #[inline] pub unsafe fn GetProfileType(dwflags: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn GetProfileType(dwflags : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn GetProfileType(dwflags : *mut u32) -> windows_core::BOOL); unsafe { GetProfileType(dwflags as _).ok() } } #[inline] pub unsafe fn GetProfilesDirectoryA(lpprofiledir: Option, lpcchsize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn GetProfilesDirectoryA(lpprofiledir : windows_core::PSTR, lpcchsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn GetProfilesDirectoryA(lpprofiledir : windows_core::PSTR, lpcchsize : *mut u32) -> windows_core::BOOL); unsafe { GetProfilesDirectoryA(lpprofiledir.unwrap_or(core::mem::zeroed()) as _, lpcchsize as _).ok() } } #[inline] pub unsafe fn GetProfilesDirectoryW(lpprofiledir: Option, lpcchsize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn GetProfilesDirectoryW(lpprofiledir : windows_core::PWSTR, lpcchsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn GetProfilesDirectoryW(lpprofiledir : windows_core::PWSTR, lpcchsize : *mut u32) -> windows_core::BOOL); unsafe { GetProfilesDirectoryW(lpprofiledir.unwrap_or(core::mem::zeroed()) as _, lpcchsize as _).ok() } } #[cfg(feature = "Win32_UI_Shell_Common")] @@ -480,12 +480,12 @@ pub unsafe fn GetScaleFactorForMonitor(hmon: super::super::Graphics::Gdi::HMONIT } #[inline] pub unsafe fn GetUserProfileDirectoryA(htoken: super::super::Foundation::HANDLE, lpprofiledir: Option, lpcchsize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn GetUserProfileDirectoryA(htoken : super::super::Foundation:: HANDLE, lpprofiledir : windows_core::PSTR, lpcchsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn GetUserProfileDirectoryA(htoken : super::super::Foundation:: HANDLE, lpprofiledir : windows_core::PSTR, lpcchsize : *mut u32) -> windows_core::BOOL); unsafe { GetUserProfileDirectoryA(htoken, lpprofiledir.unwrap_or(core::mem::zeroed()) as _, lpcchsize as _).ok() } } #[inline] pub unsafe fn GetUserProfileDirectoryW(htoken: super::super::Foundation::HANDLE, lpprofiledir: Option, lpcchsize: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn GetUserProfileDirectoryW(htoken : super::super::Foundation:: HANDLE, lpprofiledir : windows_core::PWSTR, lpcchsize : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn GetUserProfileDirectoryW(htoken : super::super::Foundation:: HANDLE, lpprofiledir : windows_core::PWSTR, lpcchsize : *mut u32) -> windows_core::BOOL); unsafe { GetUserProfileDirectoryW(htoken, lpprofiledir.unwrap_or(core::mem::zeroed()) as _, lpcchsize as _).ok() } } #[inline] @@ -494,8 +494,8 @@ pub unsafe fn GetWindowContextHelpId(param0: super::super::Foundation::HWND) -> unsafe { GetWindowContextHelpId(param0) } } #[inline] -pub unsafe fn GetWindowSubclass(hwnd: super::super::Foundation::HWND, pfnsubclass: SUBCLASSPROC, uidsubclass: usize, pdwrefdata: Option<*mut usize>) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn GetWindowSubclass(hwnd : super::super::Foundation:: HWND, pfnsubclass : SUBCLASSPROC, uidsubclass : usize, pdwrefdata : *mut usize) -> super::super::Foundation:: BOOL); +pub unsafe fn GetWindowSubclass(hwnd: super::super::Foundation::HWND, pfnsubclass: SUBCLASSPROC, uidsubclass: usize, pdwrefdata: Option<*mut usize>) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn GetWindowSubclass(hwnd : super::super::Foundation:: HWND, pfnsubclass : SUBCLASSPROC, uidsubclass : usize, pdwrefdata : *mut usize) -> windows_core::BOOL); unsafe { GetWindowSubclass(hwnd, pfnsubclass, uidsubclass, pdwrefdata.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -747,7 +747,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("hlink.dll" "system" fn HlinkParseDisplayName(pibc : * mut core::ffi::c_void, pwzdisplayname : windows_core::PCWSTR, fnoforceabs : super::super::Foundation:: BOOL, pccheaten : *mut u32, ppimk : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("hlink.dll" "system" fn HlinkParseDisplayName(pibc : * mut core::ffi::c_void, pwzdisplayname : windows_core::PCWSTR, fnoforceabs : windows_core::BOOL, pccheaten : *mut u32, ppimk : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { HlinkParseDisplayName(pibc.param().abi(), pwzdisplayname.param().abi(), fnoforceabs.into(), pccheaten as _, core::mem::transmute(ppimk)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -858,7 +858,7 @@ where #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn ILAppendID(pidl: Option<*const Common::ITEMIDLIST>, pmkid: *const Common::SHITEMID, fappend: bool) -> *mut Common::ITEMIDLIST { - windows_targets::link!("shell32.dll" "system" fn ILAppendID(pidl : *const Common:: ITEMIDLIST, pmkid : *const Common:: SHITEMID, fappend : super::super::Foundation:: BOOL) -> *mut Common:: ITEMIDLIST); + windows_targets::link!("shell32.dll" "system" fn ILAppendID(pidl : *const Common:: ITEMIDLIST, pmkid : *const Common:: SHITEMID, fappend : windows_core::BOOL) -> *mut Common:: ITEMIDLIST); unsafe { ILAppendID(pidl.unwrap_or(core::mem::zeroed()) as _, pmkid, fappend.into()) } } #[cfg(feature = "Win32_UI_Shell_Common")] @@ -929,14 +929,14 @@ pub unsafe fn ILGetSize(pidl: Option<*const Common::ITEMIDLIST>) -> u32 { } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] -pub unsafe fn ILIsEqual(pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn ILIsEqual(pidl1 : *const Common:: ITEMIDLIST, pidl2 : *const Common:: ITEMIDLIST) -> super::super::Foundation:: BOOL); +pub unsafe fn ILIsEqual(pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn ILIsEqual(pidl1 : *const Common:: ITEMIDLIST, pidl2 : *const Common:: ITEMIDLIST) -> windows_core::BOOL); unsafe { ILIsEqual(pidl1, pidl2) } } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] -pub unsafe fn ILIsParent(pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST, fimmediate: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn ILIsParent(pidl1 : *const Common:: ITEMIDLIST, pidl2 : *const Common:: ITEMIDLIST, fimmediate : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn ILIsParent(pidl1: *const Common::ITEMIDLIST, pidl2: *const Common::ITEMIDLIST, fimmediate: bool) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn ILIsParent(pidl1 : *const Common:: ITEMIDLIST, pidl2 : *const Common:: ITEMIDLIST, fimmediate : windows_core::BOOL) -> windows_core::BOOL); unsafe { ILIsParent(pidl1, pidl2, fimmediate.into()) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] @@ -953,8 +953,8 @@ where } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] -pub unsafe fn ILRemoveLastID(pidl: Option<*mut Common::ITEMIDLIST>) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn ILRemoveLastID(pidl : *mut Common:: ITEMIDLIST) -> super::super::Foundation:: BOOL); +pub unsafe fn ILRemoveLastID(pidl: Option<*mut Common::ITEMIDLIST>) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn ILRemoveLastID(pidl : *mut Common:: ITEMIDLIST) -> windows_core::BOOL); unsafe { ILRemoveLastID(pidl.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] @@ -1112,16 +1112,16 @@ where unsafe { IUnknown_SetSite(punk.param().abi(), punksite.param().abi()).ok() } } #[inline] -pub unsafe fn ImportPrivacySettings(pszfilename: P0, pfparseprivacypreferences: *mut super::super::Foundation::BOOL, pfparsepersiterules: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL +pub unsafe fn ImportPrivacySettings(pszfilename: P0, pfparseprivacypreferences: *mut windows_core::BOOL, pfparsepersiterules: *mut windows_core::BOOL) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shdocvw.dll" "system" fn ImportPrivacySettings(pszfilename : windows_core::PCWSTR, pfparseprivacypreferences : *mut super::super::Foundation:: BOOL, pfparsepersiterules : *mut super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("shdocvw.dll" "system" fn ImportPrivacySettings(pszfilename : windows_core::PCWSTR, pfparseprivacypreferences : *mut windows_core::BOOL, pfparsepersiterules : *mut windows_core::BOOL) -> windows_core::BOOL); unsafe { ImportPrivacySettings(pszfilename.param().abi(), pfparseprivacypreferences as _, pfparsepersiterules as _) } } #[inline] -pub unsafe fn InitNetworkAddressControl() -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn InitNetworkAddressControl() -> super::super::Foundation:: BOOL); +pub unsafe fn InitNetworkAddressControl() -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn InitNetworkAddressControl() -> windows_core::BOOL); unsafe { InitNetworkAddressControl() } } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_Common"))] @@ -1140,52 +1140,52 @@ pub unsafe fn InitVariantFromStrRet(pstrret: *const Common::STRRET, pidl: *const } } #[inline] -pub unsafe fn IntlStrEqWorkerA(fcasesens: bool, lpstring1: P1, lpstring2: P2, nchar: i32) -> super::super::Foundation::BOOL +pub unsafe fn IntlStrEqWorkerA(fcasesens: bool, lpstring1: P1, lpstring2: P2, nchar: i32) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn IntlStrEqWorkerA(fcasesens : super::super::Foundation:: BOOL, lpstring1 : windows_core::PCSTR, lpstring2 : windows_core::PCSTR, nchar : i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn IntlStrEqWorkerA(fcasesens : windows_core::BOOL, lpstring1 : windows_core::PCSTR, lpstring2 : windows_core::PCSTR, nchar : i32) -> windows_core::BOOL); unsafe { IntlStrEqWorkerA(fcasesens.into(), lpstring1.param().abi(), lpstring2.param().abi(), nchar) } } #[inline] -pub unsafe fn IntlStrEqWorkerW(fcasesens: bool, lpstring1: P1, lpstring2: P2, nchar: i32) -> super::super::Foundation::BOOL +pub unsafe fn IntlStrEqWorkerW(fcasesens: bool, lpstring1: P1, lpstring2: P2, nchar: i32) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn IntlStrEqWorkerW(fcasesens : super::super::Foundation:: BOOL, lpstring1 : windows_core::PCWSTR, lpstring2 : windows_core::PCWSTR, nchar : i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn IntlStrEqWorkerW(fcasesens : windows_core::BOOL, lpstring1 : windows_core::PCWSTR, lpstring2 : windows_core::PCWSTR, nchar : i32) -> windows_core::BOOL); unsafe { IntlStrEqWorkerW(fcasesens.into(), lpstring1.param().abi(), lpstring2.param().abi(), nchar) } } #[inline] -pub unsafe fn IsCharSpaceA(wch: i8) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn IsCharSpaceA(wch : i8) -> super::super::Foundation:: BOOL); +pub unsafe fn IsCharSpaceA(wch: i8) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn IsCharSpaceA(wch : i8) -> windows_core::BOOL); unsafe { IsCharSpaceA(wch) } } #[inline] -pub unsafe fn IsCharSpaceW(wch: u16) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn IsCharSpaceW(wch : u16) -> super::super::Foundation:: BOOL); +pub unsafe fn IsCharSpaceW(wch: u16) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn IsCharSpaceW(wch : u16) -> windows_core::BOOL); unsafe { IsCharSpaceW(wch) } } #[inline] -pub unsafe fn IsInternetESCEnabled() -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn IsInternetESCEnabled() -> super::super::Foundation:: BOOL); +pub unsafe fn IsInternetESCEnabled() -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn IsInternetESCEnabled() -> windows_core::BOOL); unsafe { IsInternetESCEnabled() } } #[inline] -pub unsafe fn IsLFNDriveA(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn IsLFNDriveA(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn IsLFNDriveA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn IsLFNDriveA(pszpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { IsLFNDriveA(pszpath.param().abi()) } } #[inline] -pub unsafe fn IsLFNDriveW(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn IsLFNDriveW(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn IsLFNDriveW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn IsLFNDriveW(pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { IsLFNDriveW(pszpath.param().abi()) } } #[inline] @@ -1194,23 +1194,23 @@ pub unsafe fn IsNetDrive(idrive: i32) -> i32 { unsafe { IsNetDrive(idrive) } } #[inline] -pub unsafe fn IsOS(dwos: OS) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn IsOS(dwos : OS) -> super::super::Foundation:: BOOL); +pub unsafe fn IsOS(dwos: OS) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn IsOS(dwos : OS) -> windows_core::BOOL); unsafe { IsOS(dwos) } } #[inline] -pub unsafe fn IsUserAnAdmin() -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn IsUserAnAdmin() -> super::super::Foundation:: BOOL); +pub unsafe fn IsUserAnAdmin() -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn IsUserAnAdmin() -> windows_core::BOOL); unsafe { IsUserAnAdmin() } } #[inline] pub unsafe fn LoadUserProfileA(htoken: super::super::Foundation::HANDLE, lpprofileinfo: *mut PROFILEINFOA) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn LoadUserProfileA(htoken : super::super::Foundation:: HANDLE, lpprofileinfo : *mut PROFILEINFOA) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn LoadUserProfileA(htoken : super::super::Foundation:: HANDLE, lpprofileinfo : *mut PROFILEINFOA) -> windows_core::BOOL); unsafe { LoadUserProfileA(htoken, lpprofileinfo as _).ok() } } #[inline] pub unsafe fn LoadUserProfileW(htoken: super::super::Foundation::HANDLE, lpprofileinfo: *mut PROFILEINFOW) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn LoadUserProfileW(htoken : super::super::Foundation:: HANDLE, lpprofileinfo : *mut PROFILEINFOW) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn LoadUserProfileW(htoken : super::super::Foundation:: HANDLE, lpprofileinfo : *mut PROFILEINFOW) -> windows_core::BOOL); unsafe { LoadUserProfileW(htoken, lpprofileinfo as _).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1220,7 +1220,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("hlink.dll" "system" fn OleSaveToStreamEx(piunk : * mut core::ffi::c_void, pistm : * mut core::ffi::c_void, fcleardirty : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("hlink.dll" "system" fn OleSaveToStreamEx(piunk : * mut core::ffi::c_void, pistm : * mut core::ffi::c_void, fcleardirty : windows_core::BOOL) -> windows_core::HRESULT); unsafe { OleSaveToStreamEx(piunk.param().abi(), pistm.param().abi(), fcleardirty.into()).ok() } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry"))] @@ -1260,19 +1260,19 @@ pub unsafe fn PathAddBackslashW(pszpath: &mut [u16; 260]) -> windows_core::PWSTR unsafe { PathAddBackslashW(core::mem::transmute(pszpath.as_ptr())) } } #[inline] -pub unsafe fn PathAddExtensionA(pszpath: &mut [u8; 260], pszext: P1) -> super::super::Foundation::BOOL +pub unsafe fn PathAddExtensionA(pszpath: &mut [u8; 260], pszext: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathAddExtensionA(pszpath : windows_core::PSTR, pszext : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathAddExtensionA(pszpath : windows_core::PSTR, pszext : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathAddExtensionA(core::mem::transmute(pszpath.as_ptr()), pszext.param().abi()) } } #[inline] -pub unsafe fn PathAddExtensionW(pszpath: &mut [u16; 260], pszext: P1) -> super::super::Foundation::BOOL +pub unsafe fn PathAddExtensionW(pszpath: &mut [u16; 260], pszext: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathAddExtensionW(pszpath : windows_core::PWSTR, pszext : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathAddExtensionW(pszpath : windows_core::PWSTR, pszext : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathAddExtensionW(core::mem::transmute(pszpath.as_ptr()), pszext.param().abi()) } } #[inline] @@ -1299,19 +1299,19 @@ where } } #[inline] -pub unsafe fn PathAppendA(pszpath: &mut [u8; 260], pszmore: P1) -> super::super::Foundation::BOOL +pub unsafe fn PathAppendA(pszpath: &mut [u8; 260], pszmore: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathAppendA(pszpath : windows_core::PSTR, pszmore : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathAppendA(pszpath : windows_core::PSTR, pszmore : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathAppendA(core::mem::transmute(pszpath.as_ptr()), pszmore.param().abi()) } } #[inline] -pub unsafe fn PathAppendW(pszpath: &mut [u16; 260], pszmore: P1) -> super::super::Foundation::BOOL +pub unsafe fn PathAppendW(pszpath: &mut [u16; 260], pszmore: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathAppendW(pszpath : windows_core::PWSTR, pszmore : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathAppendW(pszpath : windows_core::PWSTR, pszmore : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathAppendW(core::mem::transmute(pszpath.as_ptr()), pszmore.param().abi()) } } #[inline] @@ -1329,7 +1329,7 @@ pub unsafe fn PathCanonicalizeA(pszbuf: &mut [u8; 260], pszpath: P1) -> wind where P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathCanonicalizeA(pszbuf : windows_core::PSTR, pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathCanonicalizeA(pszbuf : windows_core::PSTR, pszpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathCanonicalizeA(core::mem::transmute(pszbuf.as_ptr()), pszpath.param().abi()).ok() } } #[inline] @@ -1337,7 +1337,7 @@ pub unsafe fn PathCanonicalizeW(pszbuf: &mut [u16; 260], pszpath: P1) -> win where P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathCanonicalizeW(pszbuf : windows_core::PWSTR, pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathCanonicalizeW(pszbuf : windows_core::PWSTR, pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathCanonicalizeW(core::mem::transmute(pszbuf.as_ptr()), pszpath.param().abi()).ok() } } #[inline] @@ -1420,11 +1420,11 @@ where } } #[inline] -pub unsafe fn PathCchIsRoot(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathCchIsRoot(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchIsRoot(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathCchIsRoot(pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathCchIsRoot(pszpath.param().abi()) } } #[inline] @@ -1522,30 +1522,30 @@ where } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn PathCompactPathA(hdc: Option, pszpath: &mut [u8; 260], dx: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn PathCompactPathA(hdc : super::super::Graphics::Gdi:: HDC, pszpath : windows_core::PSTR, dx : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn PathCompactPathA(hdc: Option, pszpath: &mut [u8; 260], dx: u32) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn PathCompactPathA(hdc : super::super::Graphics::Gdi:: HDC, pszpath : windows_core::PSTR, dx : u32) -> windows_core::BOOL); unsafe { PathCompactPathA(hdc.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(pszpath.as_ptr()), dx) } } #[inline] -pub unsafe fn PathCompactPathExA(pszout: &mut [u8], pszsrc: P1, dwflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn PathCompactPathExA(pszout: &mut [u8], pszsrc: P1, dwflags: u32) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathCompactPathExA(pszout : windows_core::PSTR, pszsrc : windows_core::PCSTR, cchmax : u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathCompactPathExA(pszout : windows_core::PSTR, pszsrc : windows_core::PCSTR, cchmax : u32, dwflags : u32) -> windows_core::BOOL); unsafe { PathCompactPathExA(core::mem::transmute(pszout.as_ptr()), pszsrc.param().abi(), pszout.len().try_into().unwrap(), dwflags) } } #[inline] -pub unsafe fn PathCompactPathExW(pszout: &mut [u16], pszsrc: P1, dwflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn PathCompactPathExW(pszout: &mut [u16], pszsrc: P1, dwflags: u32) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathCompactPathExW(pszout : windows_core::PWSTR, pszsrc : windows_core::PCWSTR, cchmax : u32, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathCompactPathExW(pszout : windows_core::PWSTR, pszsrc : windows_core::PCWSTR, cchmax : u32, dwflags : u32) -> windows_core::BOOL); unsafe { PathCompactPathExW(core::mem::transmute(pszout.as_ptr()), pszsrc.param().abi(), pszout.len().try_into().unwrap(), dwflags) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn PathCompactPathW(hdc: Option, pszpath: &mut [u16; 260], dx: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn PathCompactPathW(hdc : super::super::Graphics::Gdi:: HDC, pszpath : windows_core::PWSTR, dx : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn PathCompactPathW(hdc: Option, pszpath: &mut [u16; 260], dx: u32) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn PathCompactPathW(hdc : super::super::Graphics::Gdi:: HDC, pszpath : windows_core::PWSTR, dx : u32) -> windows_core::BOOL); unsafe { PathCompactPathW(hdc.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(pszpath.as_ptr()), dx) } } #[inline] @@ -1577,7 +1577,7 @@ pub unsafe fn PathFileExistsA(pszpath: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathFileExistsA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathFileExistsA(pszpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathFileExistsA(pszpath.param().abi()).ok() } } #[inline] @@ -1585,7 +1585,7 @@ pub unsafe fn PathFileExistsW(pszpath: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathFileExistsW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathFileExistsW(pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathFileExistsW(pszpath.param().abi()).ok() } } #[inline] @@ -1637,13 +1637,13 @@ where unsafe { PathFindNextComponentW(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathFindOnPathA(pszpath: &mut [u8; 260], ppszotherdirs: Option<*const *const i8>) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn PathFindOnPathA(pszpath : windows_core::PSTR, ppszotherdirs : *const *const i8) -> super::super::Foundation:: BOOL); +pub unsafe fn PathFindOnPathA(pszpath: &mut [u8; 260], ppszotherdirs: Option<*const *const i8>) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn PathFindOnPathA(pszpath : windows_core::PSTR, ppszotherdirs : *const *const i8) -> windows_core::BOOL); unsafe { PathFindOnPathA(core::mem::transmute(pszpath.as_ptr()), ppszotherdirs.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn PathFindOnPathW(pszpath: &mut [u16; 260], ppszotherdirs: Option<*const *const u16>) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn PathFindOnPathW(pszpath : windows_core::PWSTR, ppszotherdirs : *const *const u16) -> super::super::Foundation:: BOOL); +pub unsafe fn PathFindOnPathW(pszpath: &mut [u16; 260], ppszotherdirs: Option<*const *const u16>) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn PathFindOnPathW(pszpath : windows_core::PWSTR, ppszotherdirs : *const *const u16) -> windows_core::BOOL); unsafe { PathFindOnPathW(core::mem::transmute(pszpath.as_ptr()), ppszotherdirs.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1710,326 +1710,326 @@ pub unsafe fn PathGetShortPath(pszlongpath: &mut [u16; 260]) { unsafe { PathGetShortPath(core::mem::transmute(pszlongpath.as_ptr())) } } #[inline] -pub unsafe fn PathIsContentTypeA(pszpath: P0, pszcontenttype: P1) -> super::super::Foundation::BOOL +pub unsafe fn PathIsContentTypeA(pszpath: P0, pszcontenttype: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsContentTypeA(pszpath : windows_core::PCSTR, pszcontenttype : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsContentTypeA(pszpath : windows_core::PCSTR, pszcontenttype : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathIsContentTypeA(pszpath.param().abi(), pszcontenttype.param().abi()) } } #[inline] -pub unsafe fn PathIsContentTypeW(pszpath: P0, pszcontenttype: P1) -> super::super::Foundation::BOOL +pub unsafe fn PathIsContentTypeW(pszpath: P0, pszcontenttype: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsContentTypeW(pszpath : windows_core::PCWSTR, pszcontenttype : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsContentTypeW(pszpath : windows_core::PCWSTR, pszcontenttype : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathIsContentTypeW(pszpath.param().abi(), pszcontenttype.param().abi()) } } #[inline] -pub unsafe fn PathIsDirectoryA(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsDirectoryA(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsDirectoryA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsDirectoryA(pszpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathIsDirectoryA(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsDirectoryEmptyA(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsDirectoryEmptyA(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsDirectoryEmptyA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsDirectoryEmptyA(pszpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathIsDirectoryEmptyA(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsDirectoryEmptyW(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsDirectoryEmptyW(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsDirectoryEmptyW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsDirectoryEmptyW(pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathIsDirectoryEmptyW(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsDirectoryW(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsDirectoryW(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsDirectoryW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsDirectoryW(pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathIsDirectoryW(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsExe(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsExe(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn PathIsExe(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn PathIsExe(pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathIsExe(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsFileSpecA(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsFileSpecA(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsFileSpecA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsFileSpecA(pszpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathIsFileSpecA(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsFileSpecW(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsFileSpecW(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsFileSpecW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsFileSpecW(pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathIsFileSpecW(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsLFNFileSpecA(pszname: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsLFNFileSpecA(pszname: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsLFNFileSpecA(pszname : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsLFNFileSpecA(pszname : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathIsLFNFileSpecA(pszname.param().abi()) } } #[inline] -pub unsafe fn PathIsLFNFileSpecW(pszname: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsLFNFileSpecW(pszname: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsLFNFileSpecW(pszname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsLFNFileSpecW(pszname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathIsLFNFileSpecW(pszname.param().abi()) } } #[inline] -pub unsafe fn PathIsNetworkPathA(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsNetworkPathA(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsNetworkPathA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsNetworkPathA(pszpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathIsNetworkPathA(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsNetworkPathW(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsNetworkPathW(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsNetworkPathW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsNetworkPathW(pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathIsNetworkPathW(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsPrefixA(pszprefix: P0, pszpath: P1) -> super::super::Foundation::BOOL +pub unsafe fn PathIsPrefixA(pszprefix: P0, pszpath: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsPrefixA(pszprefix : windows_core::PCSTR, pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsPrefixA(pszprefix : windows_core::PCSTR, pszpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathIsPrefixA(pszprefix.param().abi(), pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsPrefixW(pszprefix: P0, pszpath: P1) -> super::super::Foundation::BOOL +pub unsafe fn PathIsPrefixW(pszprefix: P0, pszpath: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsPrefixW(pszprefix : windows_core::PCWSTR, pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsPrefixW(pszprefix : windows_core::PCWSTR, pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathIsPrefixW(pszprefix.param().abi(), pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsRelativeA(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsRelativeA(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsRelativeA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsRelativeA(pszpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathIsRelativeA(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsRelativeW(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsRelativeW(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsRelativeW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsRelativeW(pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathIsRelativeW(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsRootA(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsRootA(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsRootA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsRootA(pszpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathIsRootA(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsRootW(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsRootW(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsRootW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsRootW(pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathIsRootW(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsSameRootA(pszpath1: P0, pszpath2: P1) -> super::super::Foundation::BOOL +pub unsafe fn PathIsSameRootA(pszpath1: P0, pszpath2: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsSameRootA(pszpath1 : windows_core::PCSTR, pszpath2 : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsSameRootA(pszpath1 : windows_core::PCSTR, pszpath2 : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathIsSameRootA(pszpath1.param().abi(), pszpath2.param().abi()) } } #[inline] -pub unsafe fn PathIsSameRootW(pszpath1: P0, pszpath2: P1) -> super::super::Foundation::BOOL +pub unsafe fn PathIsSameRootW(pszpath1: P0, pszpath2: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsSameRootW(pszpath1 : windows_core::PCWSTR, pszpath2 : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsSameRootW(pszpath1 : windows_core::PCWSTR, pszpath2 : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathIsSameRootW(pszpath1.param().abi(), pszpath2.param().abi()) } } #[inline] -pub unsafe fn PathIsSlowA(pszfile: P0, dwattr: u32) -> super::super::Foundation::BOOL +pub unsafe fn PathIsSlowA(pszfile: P0, dwattr: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn PathIsSlowA(pszfile : windows_core::PCSTR, dwattr : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn PathIsSlowA(pszfile : windows_core::PCSTR, dwattr : u32) -> windows_core::BOOL); unsafe { PathIsSlowA(pszfile.param().abi(), dwattr) } } #[inline] -pub unsafe fn PathIsSlowW(pszfile: P0, dwattr: u32) -> super::super::Foundation::BOOL +pub unsafe fn PathIsSlowW(pszfile: P0, dwattr: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn PathIsSlowW(pszfile : windows_core::PCWSTR, dwattr : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn PathIsSlowW(pszfile : windows_core::PCWSTR, dwattr : u32) -> windows_core::BOOL); unsafe { PathIsSlowW(pszfile.param().abi(), dwattr) } } #[inline] -pub unsafe fn PathIsSystemFolderA(pszpath: P0, dwattrb: u32) -> super::super::Foundation::BOOL +pub unsafe fn PathIsSystemFolderA(pszpath: P0, dwattrb: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsSystemFolderA(pszpath : windows_core::PCSTR, dwattrb : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsSystemFolderA(pszpath : windows_core::PCSTR, dwattrb : u32) -> windows_core::BOOL); unsafe { PathIsSystemFolderA(pszpath.param().abi(), dwattrb) } } #[inline] -pub unsafe fn PathIsSystemFolderW(pszpath: P0, dwattrb: u32) -> super::super::Foundation::BOOL +pub unsafe fn PathIsSystemFolderW(pszpath: P0, dwattrb: u32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsSystemFolderW(pszpath : windows_core::PCWSTR, dwattrb : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsSystemFolderW(pszpath : windows_core::PCWSTR, dwattrb : u32) -> windows_core::BOOL); unsafe { PathIsSystemFolderW(pszpath.param().abi(), dwattrb) } } #[inline] -pub unsafe fn PathIsUNCA(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsUNCA(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsUNCA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsUNCA(pszpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathIsUNCA(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsUNCEx(pszpath: P0, ppszserver: Option<*mut windows_core::PCWSTR>) -> super::super::Foundation::BOOL +pub unsafe fn PathIsUNCEx(pszpath: P0, ppszserver: Option<*mut windows_core::PCWSTR>) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathIsUNCEx(pszpath : windows_core::PCWSTR, ppszserver : *mut windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("api-ms-win-core-path-l1-1-0.dll" "system" fn PathIsUNCEx(pszpath : windows_core::PCWSTR, ppszserver : *mut windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathIsUNCEx(pszpath.param().abi(), ppszserver.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn PathIsUNCServerA(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsUNCServerA(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsUNCServerA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsUNCServerA(pszpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathIsUNCServerA(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsUNCServerShareA(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsUNCServerShareA(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsUNCServerShareA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsUNCServerShareA(pszpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathIsUNCServerShareA(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsUNCServerShareW(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsUNCServerShareW(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsUNCServerShareW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsUNCServerShareW(pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathIsUNCServerShareW(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsUNCServerW(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsUNCServerW(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsUNCServerW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsUNCServerW(pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathIsUNCServerW(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsUNCW(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsUNCW(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsUNCW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsUNCW(pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathIsUNCW(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsURLA(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsURLA(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsURLA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsURLA(pszpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathIsURLA(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathIsURLW(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathIsURLW(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathIsURLW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathIsURLW(pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathIsURLW(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathMakePrettyA(pszpath: windows_core::PSTR) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn PathMakePrettyA(pszpath : windows_core::PSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn PathMakePrettyA(pszpath: windows_core::PSTR) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn PathMakePrettyA(pszpath : windows_core::PSTR) -> windows_core::BOOL); unsafe { PathMakePrettyA(core::mem::transmute(pszpath)) } } #[inline] -pub unsafe fn PathMakePrettyW(pszpath: windows_core::PWSTR) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn PathMakePrettyW(pszpath : windows_core::PWSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn PathMakePrettyW(pszpath: windows_core::PWSTR) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn PathMakePrettyW(pszpath : windows_core::PWSTR) -> windows_core::BOOL); unsafe { PathMakePrettyW(core::mem::transmute(pszpath)) } } #[inline] -pub unsafe fn PathMakeSystemFolderA(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathMakeSystemFolderA(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathMakeSystemFolderA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathMakeSystemFolderA(pszpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathMakeSystemFolderA(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathMakeSystemFolderW(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathMakeSystemFolderW(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathMakeSystemFolderW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathMakeSystemFolderW(pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathMakeSystemFolderW(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathMakeUniqueName(pszuniquename: &mut [u16], psztemplate: P2, pszlongplate: P3, pszdir: P4) -> super::super::Foundation::BOOL +pub unsafe fn PathMakeUniqueName(pszuniquename: &mut [u16], psztemplate: P2, pszlongplate: P3, pszdir: P4) -> windows_core::BOOL where P2: windows_core::Param, P3: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn PathMakeUniqueName(pszuniquename : windows_core::PWSTR, cchmax : u32, psztemplate : windows_core::PCWSTR, pszlongplate : windows_core::PCWSTR, pszdir : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn PathMakeUniqueName(pszuniquename : windows_core::PWSTR, cchmax : u32, psztemplate : windows_core::PCWSTR, pszlongplate : windows_core::PCWSTR, pszdir : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathMakeUniqueName(core::mem::transmute(pszuniquename.as_ptr()), pszuniquename.len().try_into().unwrap(), psztemplate.param().abi(), pszlongplate.param().abi(), pszdir.param().abi()) } } #[inline] -pub unsafe fn PathMatchSpecA(pszfile: P0, pszspec: P1) -> super::super::Foundation::BOOL +pub unsafe fn PathMatchSpecA(pszfile: P0, pszspec: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathMatchSpecA(pszfile : windows_core::PCSTR, pszspec : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathMatchSpecA(pszfile : windows_core::PCSTR, pszspec : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathMatchSpecA(pszfile.param().abi(), pszspec.param().abi()) } } #[inline] @@ -2051,12 +2051,12 @@ where unsafe { PathMatchSpecExW(pszfile.param().abi(), pszspec.param().abi(), dwflags).ok() } } #[inline] -pub unsafe fn PathMatchSpecW(pszfile: P0, pszspec: P1) -> super::super::Foundation::BOOL +pub unsafe fn PathMatchSpecW(pszfile: P0, pszspec: P1) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathMatchSpecW(pszfile : windows_core::PCWSTR, pszspec : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathMatchSpecW(pszfile : windows_core::PCWSTR, pszspec : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathMatchSpecW(pszfile.param().abi(), pszspec.param().abi()) } } #[inline] @@ -2075,31 +2075,31 @@ pub unsafe fn PathQualify(psz: windows_core::PWSTR) { unsafe { PathQualify(core::mem::transmute(psz)) } } #[inline] -pub unsafe fn PathQuoteSpacesA(lpsz: &mut [u8; 260]) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn PathQuoteSpacesA(lpsz : windows_core::PSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn PathQuoteSpacesA(lpsz: &mut [u8; 260]) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn PathQuoteSpacesA(lpsz : windows_core::PSTR) -> windows_core::BOOL); unsafe { PathQuoteSpacesA(core::mem::transmute(lpsz.as_ptr())) } } #[inline] -pub unsafe fn PathQuoteSpacesW(lpsz: &mut [u16; 260]) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn PathQuoteSpacesW(lpsz : windows_core::PWSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn PathQuoteSpacesW(lpsz: &mut [u16; 260]) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn PathQuoteSpacesW(lpsz : windows_core::PWSTR) -> windows_core::BOOL); unsafe { PathQuoteSpacesW(core::mem::transmute(lpsz.as_ptr())) } } #[inline] -pub unsafe fn PathRelativePathToA(pszpath: &mut [u8; 260], pszfrom: P1, dwattrfrom: u32, pszto: P3, dwattrto: u32) -> super::super::Foundation::BOOL +pub unsafe fn PathRelativePathToA(pszpath: &mut [u8; 260], pszfrom: P1, dwattrfrom: u32, pszto: P3, dwattrto: u32) -> windows_core::BOOL where P1: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathRelativePathToA(pszpath : windows_core::PSTR, pszfrom : windows_core::PCSTR, dwattrfrom : u32, pszto : windows_core::PCSTR, dwattrto : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathRelativePathToA(pszpath : windows_core::PSTR, pszfrom : windows_core::PCSTR, dwattrfrom : u32, pszto : windows_core::PCSTR, dwattrto : u32) -> windows_core::BOOL); unsafe { PathRelativePathToA(core::mem::transmute(pszpath.as_ptr()), pszfrom.param().abi(), dwattrfrom, pszto.param().abi(), dwattrto) } } #[inline] -pub unsafe fn PathRelativePathToW(pszpath: &mut [u16; 260], pszfrom: P1, dwattrfrom: u32, pszto: P3, dwattrto: u32) -> super::super::Foundation::BOOL +pub unsafe fn PathRelativePathToW(pszpath: &mut [u16; 260], pszfrom: P1, dwattrfrom: u32, pszto: P3, dwattrto: u32) -> windows_core::BOOL where P1: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathRelativePathToW(pszpath : windows_core::PWSTR, pszfrom : windows_core::PCWSTR, dwattrfrom : u32, pszto : windows_core::PCWSTR, dwattrto : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathRelativePathToW(pszpath : windows_core::PWSTR, pszfrom : windows_core::PCWSTR, dwattrfrom : u32, pszto : windows_core::PCWSTR, dwattrto : u32) -> windows_core::BOOL); unsafe { PathRelativePathToW(core::mem::transmute(pszpath.as_ptr()), pszfrom.param().abi(), dwattrfrom, pszto.param().abi(), dwattrto) } } #[inline] @@ -2143,29 +2143,29 @@ pub unsafe fn PathRemoveExtensionW(pszpath: windows_core::PWSTR) { unsafe { PathRemoveExtensionW(core::mem::transmute(pszpath)) } } #[inline] -pub unsafe fn PathRemoveFileSpecA(pszpath: windows_core::PSTR) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn PathRemoveFileSpecA(pszpath : windows_core::PSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn PathRemoveFileSpecA(pszpath: windows_core::PSTR) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn PathRemoveFileSpecA(pszpath : windows_core::PSTR) -> windows_core::BOOL); unsafe { PathRemoveFileSpecA(core::mem::transmute(pszpath)) } } #[inline] -pub unsafe fn PathRemoveFileSpecW(pszpath: windows_core::PWSTR) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn PathRemoveFileSpecW(pszpath : windows_core::PWSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn PathRemoveFileSpecW(pszpath: windows_core::PWSTR) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn PathRemoveFileSpecW(pszpath : windows_core::PWSTR) -> windows_core::BOOL); unsafe { PathRemoveFileSpecW(core::mem::transmute(pszpath)) } } #[inline] -pub unsafe fn PathRenameExtensionA(pszpath: &mut [u8; 260], pszext: P1) -> super::super::Foundation::BOOL +pub unsafe fn PathRenameExtensionA(pszpath: &mut [u8; 260], pszext: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathRenameExtensionA(pszpath : windows_core::PSTR, pszext : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathRenameExtensionA(pszpath : windows_core::PSTR, pszext : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathRenameExtensionA(core::mem::transmute(pszpath.as_ptr()), pszext.param().abi()) } } #[inline] -pub unsafe fn PathRenameExtensionW(pszpath: &mut [u16; 260], pszext: P1) -> super::super::Foundation::BOOL +pub unsafe fn PathRenameExtensionW(pszpath: &mut [u16; 260], pszext: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathRenameExtensionW(pszpath : windows_core::PWSTR, pszext : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathRenameExtensionW(pszpath : windows_core::PWSTR, pszext : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathRenameExtensionW(core::mem::transmute(pszpath.as_ptr()), pszext.param().abi()) } } #[inline] @@ -2174,19 +2174,19 @@ pub unsafe fn PathResolve(pszpath: &mut [u16; 260], dirs: Option<*const *const u unsafe { PathResolve(core::mem::transmute(pszpath.as_ptr()), dirs.unwrap_or(core::mem::zeroed()) as _, fflags.0 as _) } } #[inline] -pub unsafe fn PathSearchAndQualifyA(pszpath: P0, pszbuf: &mut [u8]) -> super::super::Foundation::BOOL +pub unsafe fn PathSearchAndQualifyA(pszpath: P0, pszbuf: &mut [u8]) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathSearchAndQualifyA(pszpath : windows_core::PCSTR, pszbuf : windows_core::PSTR, cchbuf : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathSearchAndQualifyA(pszpath : windows_core::PCSTR, pszbuf : windows_core::PSTR, cchbuf : u32) -> windows_core::BOOL); unsafe { PathSearchAndQualifyA(pszpath.param().abi(), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) } } #[inline] -pub unsafe fn PathSearchAndQualifyW(pszpath: P0, pszbuf: &mut [u16]) -> super::super::Foundation::BOOL +pub unsafe fn PathSearchAndQualifyW(pszpath: P0, pszbuf: &mut [u16]) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathSearchAndQualifyW(pszpath : windows_core::PCWSTR, pszbuf : windows_core::PWSTR, cchbuf : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathSearchAndQualifyW(pszpath : windows_core::PCWSTR, pszbuf : windows_core::PWSTR, cchbuf : u32) -> windows_core::BOOL); unsafe { PathSearchAndQualifyW(pszpath.param().abi(), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) } } #[inline] @@ -2232,29 +2232,29 @@ pub unsafe fn PathStripPathW(pszpath: windows_core::PWSTR) { unsafe { PathStripPathW(core::mem::transmute(pszpath)) } } #[inline] -pub unsafe fn PathStripToRootA(pszpath: windows_core::PSTR) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn PathStripToRootA(pszpath : windows_core::PSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn PathStripToRootA(pszpath: windows_core::PSTR) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn PathStripToRootA(pszpath : windows_core::PSTR) -> windows_core::BOOL); unsafe { PathStripToRootA(core::mem::transmute(pszpath)) } } #[inline] -pub unsafe fn PathStripToRootW(pszpath: windows_core::PWSTR) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn PathStripToRootW(pszpath : windows_core::PWSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn PathStripToRootW(pszpath: windows_core::PWSTR) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn PathStripToRootW(pszpath : windows_core::PWSTR) -> windows_core::BOOL); unsafe { PathStripToRootW(core::mem::transmute(pszpath)) } } #[inline] -pub unsafe fn PathUnExpandEnvStringsA(pszpath: P0, pszbuf: &mut [u8]) -> super::super::Foundation::BOOL +pub unsafe fn PathUnExpandEnvStringsA(pszpath: P0, pszbuf: &mut [u8]) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathUnExpandEnvStringsA(pszpath : windows_core::PCSTR, pszbuf : windows_core::PSTR, cchbuf : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathUnExpandEnvStringsA(pszpath : windows_core::PCSTR, pszbuf : windows_core::PSTR, cchbuf : u32) -> windows_core::BOOL); unsafe { PathUnExpandEnvStringsA(pszpath.param().abi(), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) } } #[inline] -pub unsafe fn PathUnExpandEnvStringsW(pszpath: P0, pszbuf: &mut [u16]) -> super::super::Foundation::BOOL +pub unsafe fn PathUnExpandEnvStringsW(pszpath: P0, pszbuf: &mut [u16]) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathUnExpandEnvStringsW(pszpath : windows_core::PCWSTR, pszbuf : windows_core::PWSTR, cchbuf : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathUnExpandEnvStringsW(pszpath : windows_core::PCWSTR, pszbuf : windows_core::PWSTR, cchbuf : u32) -> windows_core::BOOL); unsafe { PathUnExpandEnvStringsW(pszpath.param().abi(), core::mem::transmute(pszbuf.as_ptr()), pszbuf.len().try_into().unwrap()) } } #[inline] @@ -2268,39 +2268,39 @@ pub unsafe fn PathUndecorateW(pszpath: windows_core::PWSTR) { unsafe { PathUndecorateW(core::mem::transmute(pszpath)) } } #[inline] -pub unsafe fn PathUnmakeSystemFolderA(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathUnmakeSystemFolderA(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathUnmakeSystemFolderA(pszpath : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathUnmakeSystemFolderA(pszpath : windows_core::PCSTR) -> windows_core::BOOL); unsafe { PathUnmakeSystemFolderA(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathUnmakeSystemFolderW(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn PathUnmakeSystemFolderW(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn PathUnmakeSystemFolderW(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn PathUnmakeSystemFolderW(pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathUnmakeSystemFolderW(pszpath.param().abi()) } } #[inline] -pub unsafe fn PathUnquoteSpacesA(lpsz: windows_core::PSTR) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn PathUnquoteSpacesA(lpsz : windows_core::PSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn PathUnquoteSpacesA(lpsz: windows_core::PSTR) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn PathUnquoteSpacesA(lpsz : windows_core::PSTR) -> windows_core::BOOL); unsafe { PathUnquoteSpacesA(core::mem::transmute(lpsz)) } } #[inline] -pub unsafe fn PathUnquoteSpacesW(lpsz: windows_core::PWSTR) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn PathUnquoteSpacesW(lpsz : windows_core::PWSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn PathUnquoteSpacesW(lpsz: windows_core::PWSTR) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn PathUnquoteSpacesW(lpsz : windows_core::PWSTR) -> windows_core::BOOL); unsafe { PathUnquoteSpacesW(core::mem::transmute(lpsz)) } } #[inline] -pub unsafe fn PathYetAnotherMakeUniqueName(pszuniquename: &mut [u16; 260], pszpath: P1, pszshort: P2, pszfilespec: P3) -> super::super::Foundation::BOOL +pub unsafe fn PathYetAnotherMakeUniqueName(pszuniquename: &mut [u16; 260], pszpath: P1, pszshort: P2, pszfilespec: P3) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn PathYetAnotherMakeUniqueName(pszuniquename : windows_core::PWSTR, pszpath : windows_core::PCWSTR, pszshort : windows_core::PCWSTR, pszfilespec : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn PathYetAnotherMakeUniqueName(pszuniquename : windows_core::PWSTR, pszpath : windows_core::PCWSTR, pszshort : windows_core::PCWSTR, pszfilespec : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { PathYetAnotherMakeUniqueName(core::mem::transmute(pszuniquename.as_ptr()), pszpath.param().abi(), pszshort.param().abi(), pszfilespec.param().abi()) } } #[inline] @@ -2324,13 +2324,13 @@ where unsafe { QISearch(that as _, pqit, &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } #[inline] -pub unsafe fn ReadCabinetState(pcs: *mut CABINETSTATE, clength: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn ReadCabinetState(pcs : *mut CABINETSTATE, clength : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn ReadCabinetState(pcs: *mut CABINETSTATE, clength: i32) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn ReadCabinetState(pcs : *mut CABINETSTATE, clength : i32) -> windows_core::BOOL); unsafe { ReadCabinetState(pcs as _, clength) } } #[inline] pub unsafe fn RealDriveType(idrive: i32, foktohitnet: bool) -> i32 { - windows_targets::link!("shell32.dll" "system" fn RealDriveType(idrive : i32, foktohitnet : super::super::Foundation:: BOOL) -> i32); + windows_targets::link!("shell32.dll" "system" fn RealDriveType(idrive : i32, foktohitnet : windows_core::BOOL) -> i32); unsafe { RealDriveType(idrive, foktohitnet.into()) } } #[inline] @@ -2360,8 +2360,8 @@ pub unsafe fn RegisterScaleChangeNotifications(displaydevice: DISPLAY_DEVICE_TYP } } #[inline] -pub unsafe fn RemoveWindowSubclass(hwnd: super::super::Foundation::HWND, pfnsubclass: SUBCLASSPROC, uidsubclass: usize) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn RemoveWindowSubclass(hwnd : super::super::Foundation:: HWND, pfnsubclass : SUBCLASSPROC, uidsubclass : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn RemoveWindowSubclass(hwnd: super::super::Foundation::HWND, pfnsubclass: SUBCLASSPROC, uidsubclass: usize) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn RemoveWindowSubclass(hwnd : super::super::Foundation:: HWND, pfnsubclass : SUBCLASSPROC, uidsubclass : usize) -> windows_core::BOOL); unsafe { RemoveWindowSubclass(hwnd, pfnsubclass, uidsubclass) } } #[inline] @@ -2528,8 +2528,8 @@ pub unsafe fn SHChangeNotification_Lock(hchange: super::super::Foundation::HANDL unsafe { SHChangeNotification_Lock(hchange, dwprocid, pppidl.unwrap_or(core::mem::zeroed()) as _, plevent.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn SHChangeNotification_Unlock(hlock: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn SHChangeNotification_Unlock(hlock : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn SHChangeNotification_Unlock(hlock: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn SHChangeNotification_Unlock(hlock : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SHChangeNotification_Unlock(hlock) } } #[inline] @@ -2538,8 +2538,8 @@ pub unsafe fn SHChangeNotify(weventid: SHCNE_ID, uflags: SHCNF_FLAGS, dwitem1: O unsafe { SHChangeNotify(weventid.0 as _, uflags, dwitem1.unwrap_or(core::mem::zeroed()) as _, dwitem2.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn SHChangeNotifyDeregister(ulid: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn SHChangeNotifyDeregister(ulid : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn SHChangeNotifyDeregister(ulid: u32) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn SHChangeNotifyDeregister(ulid : u32) -> windows_core::BOOL); unsafe { SHChangeNotifyDeregister(ulid) } } #[cfg(feature = "Win32_UI_Shell_Common")] @@ -2556,7 +2556,7 @@ pub unsafe fn SHChangeNotifyRegisterThread(status: SCNRT_STATUS) { #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] pub unsafe fn SHCloneSpecialIDList(hwnd: Option, csidl: i32, fcreate: bool) -> *mut Common::ITEMIDLIST { - windows_targets::link!("shell32.dll" "system" fn SHCloneSpecialIDList(hwnd : super::super::Foundation:: HWND, csidl : i32, fcreate : super::super::Foundation:: BOOL) -> *mut Common:: ITEMIDLIST); + windows_targets::link!("shell32.dll" "system" fn SHCloneSpecialIDList(hwnd : super::super::Foundation:: HWND, csidl : i32, fcreate : windows_core::BOOL) -> *mut Common:: ITEMIDLIST); unsafe { SHCloneSpecialIDList(hwnd.unwrap_or(core::mem::zeroed()) as _, csidl, fcreate.into()) } } #[inline] @@ -2739,7 +2739,7 @@ pub unsafe fn SHCreateMemStream(pinit: Option<&[u8]>) -> Option windows_core::Result<()> { - windows_targets::link!("shell32.dll" "system" fn SHCreateProcessAsUserW(pscpi : *mut SHCREATEPROCESSINFOW) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn SHCreateProcessAsUserW(pscpi : *mut SHCREATEPROCESSINFOW) -> windows_core::BOOL); unsafe { SHCreateProcessAsUserW(pscpi as _).ok() } } #[cfg(feature = "Win32_System_Registry")] @@ -2866,7 +2866,7 @@ where P0: windows_core::Param, P4: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn SHCreateStreamOnFileEx(pszfile : windows_core::PCWSTR, grfmode : u32, dwattributes : u32, fcreate : super::super::Foundation:: BOOL, pstmtemplate : * mut core::ffi::c_void, ppstm : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); + windows_targets::link!("shlwapi.dll" "system" fn SHCreateStreamOnFileEx(pszfile : windows_core::PCWSTR, grfmode : u32, dwattributes : u32, fcreate : windows_core::BOOL, pstmtemplate : * mut core::ffi::c_void, ppstm : *mut * mut core::ffi::c_void) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); SHCreateStreamOnFileEx(pszfile.param().abi(), grfmode, dwattributes, fcreate.into(), pstmtemplate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2887,7 +2887,7 @@ where #[cfg(feature = "Win32_System_Threading")] #[inline] pub unsafe fn SHCreateThread(pfnthreadproc: super::super::System::Threading::LPTHREAD_START_ROUTINE, pdata: Option<*const core::ffi::c_void>, flags: u32, pfncallback: Option) -> windows_core::Result<()> { - windows_targets::link!("shlwapi.dll" "system" fn SHCreateThread(pfnthreadproc : super::super::System::Threading:: LPTHREAD_START_ROUTINE, pdata : *const core::ffi::c_void, flags : u32, pfncallback : super::super::System::Threading:: LPTHREAD_START_ROUTINE) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn SHCreateThread(pfnthreadproc : super::super::System::Threading:: LPTHREAD_START_ROUTINE, pdata : *const core::ffi::c_void, flags : u32, pfncallback : super::super::System::Threading:: LPTHREAD_START_ROUTINE) -> windows_core::BOOL); unsafe { SHCreateThread(pfnthreadproc, pdata.unwrap_or(core::mem::zeroed()) as _, flags, pfncallback.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2898,7 +2898,7 @@ pub unsafe fn SHCreateThreadRef(pcref: *mut i32, ppunk: *mut Option, flags: u32, pfncallback: Option, phandle: Option<*mut super::super::Foundation::HANDLE>) -> windows_core::Result<()> { - windows_targets::link!("shlwapi.dll" "system" fn SHCreateThreadWithHandle(pfnthreadproc : super::super::System::Threading:: LPTHREAD_START_ROUTINE, pdata : *const core::ffi::c_void, flags : u32, pfncallback : super::super::System::Threading:: LPTHREAD_START_ROUTINE, phandle : *mut super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn SHCreateThreadWithHandle(pfnthreadproc : super::super::System::Threading:: LPTHREAD_START_ROUTINE, pdata : *const core::ffi::c_void, flags : u32, pfncallback : super::super::System::Threading:: LPTHREAD_START_ROUTINE, phandle : *mut super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SHCreateThreadWithHandle(pfnthreadproc, pdata.unwrap_or(core::mem::zeroed()) as _, flags, pfncallback.unwrap_or(core::mem::zeroed()) as _, phandle.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -3059,8 +3059,8 @@ pub unsafe fn SHFileOperationW(lpfileop: *mut SHFILEOPSTRUCTW) -> i32 { } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] -pub unsafe fn SHFindFiles(pidlfolder: Option<*const Common::ITEMIDLIST>, pidlsavefile: Option<*const Common::ITEMIDLIST>) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn SHFindFiles(pidlfolder : *const Common:: ITEMIDLIST, pidlsavefile : *const Common:: ITEMIDLIST) -> super::super::Foundation:: BOOL); +pub unsafe fn SHFindFiles(pidlfolder: Option<*const Common::ITEMIDLIST>, pidlsavefile: Option<*const Common::ITEMIDLIST>) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn SHFindFiles(pidlfolder : *const Common:: ITEMIDLIST, pidlsavefile : *const Common:: ITEMIDLIST) -> windows_core::BOOL); unsafe { SHFindFiles(pidlfolder.unwrap_or(core::mem::zeroed()) as _, pidlsavefile.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -3101,7 +3101,7 @@ pub unsafe fn SHFreeNameMappings(hnamemappings: Option windows_core::Result<()> { - windows_targets::link!("shlwapi.dll" "system" fn SHFreeShared(hdata : super::super::Foundation:: HANDLE, dwprocessid : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn SHFreeShared(hdata : super::super::Foundation:: HANDLE, dwprocessid : u32) -> windows_core::BOOL); unsafe { SHFreeShared(hdata, dwprocessid).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3140,19 +3140,19 @@ pub unsafe fn SHGetDesktopFolder() -> windows_core::Result { } } #[inline] -pub unsafe fn SHGetDiskFreeSpaceExA(pszdirectoryname: P0, pulfreebytesavailabletocaller: Option<*mut u64>, pultotalnumberofbytes: Option<*mut u64>, pultotalnumberoffreebytes: Option<*mut u64>) -> super::super::Foundation::BOOL +pub unsafe fn SHGetDiskFreeSpaceExA(pszdirectoryname: P0, pulfreebytesavailabletocaller: Option<*mut u64>, pultotalnumberofbytes: Option<*mut u64>, pultotalnumberoffreebytes: Option<*mut u64>) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn SHGetDiskFreeSpaceExA(pszdirectoryname : windows_core::PCSTR, pulfreebytesavailabletocaller : *mut u64, pultotalnumberofbytes : *mut u64, pultotalnumberoffreebytes : *mut u64) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn SHGetDiskFreeSpaceExA(pszdirectoryname : windows_core::PCSTR, pulfreebytesavailabletocaller : *mut u64, pultotalnumberofbytes : *mut u64, pultotalnumberoffreebytes : *mut u64) -> windows_core::BOOL); unsafe { SHGetDiskFreeSpaceExA(pszdirectoryname.param().abi(), pulfreebytesavailabletocaller.unwrap_or(core::mem::zeroed()) as _, pultotalnumberofbytes.unwrap_or(core::mem::zeroed()) as _, pultotalnumberoffreebytes.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn SHGetDiskFreeSpaceExW(pszdirectoryname: P0, pulfreebytesavailabletocaller: Option<*mut u64>, pultotalnumberofbytes: Option<*mut u64>, pultotalnumberoffreebytes: Option<*mut u64>) -> super::super::Foundation::BOOL +pub unsafe fn SHGetDiskFreeSpaceExW(pszdirectoryname: P0, pulfreebytesavailabletocaller: Option<*mut u64>, pultotalnumberofbytes: Option<*mut u64>, pultotalnumberoffreebytes: Option<*mut u64>) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn SHGetDiskFreeSpaceExW(pszdirectoryname : windows_core::PCWSTR, pulfreebytesavailabletocaller : *mut u64, pultotalnumberofbytes : *mut u64, pultotalnumberoffreebytes : *mut u64) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn SHGetDiskFreeSpaceExW(pszdirectoryname : windows_core::PCWSTR, pulfreebytesavailabletocaller : *mut u64, pultotalnumberofbytes : *mut u64, pultotalnumberoffreebytes : *mut u64) -> windows_core::BOOL); unsafe { SHGetDiskFreeSpaceExW(pszdirectoryname.param().abi(), pulfreebytesavailabletocaller.unwrap_or(core::mem::zeroed()) as _, pultotalnumberofbytes.unwrap_or(core::mem::zeroed()) as _, pultotalnumberoffreebytes.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -3343,39 +3343,39 @@ pub unsafe fn SHGetNameFromIDList(pidl: *const Common::ITEMIDLIST, sigdnname: SI } } #[inline] -pub unsafe fn SHGetNewLinkInfoA(pszlinkto: P0, pszdir: P1, pszname: &mut [u8; 260], pfmustcopy: *mut super::super::Foundation::BOOL, uflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn SHGetNewLinkInfoA(pszlinkto: P0, pszdir: P1, pszname: &mut [u8; 260], pfmustcopy: *mut windows_core::BOOL, uflags: u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn SHGetNewLinkInfoA(pszlinkto : windows_core::PCSTR, pszdir : windows_core::PCSTR, pszname : windows_core::PSTR, pfmustcopy : *mut super::super::Foundation:: BOOL, uflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn SHGetNewLinkInfoA(pszlinkto : windows_core::PCSTR, pszdir : windows_core::PCSTR, pszname : windows_core::PSTR, pfmustcopy : *mut windows_core::BOOL, uflags : u32) -> windows_core::BOOL); unsafe { SHGetNewLinkInfoA(pszlinkto.param().abi(), pszdir.param().abi(), core::mem::transmute(pszname.as_ptr()), pfmustcopy as _, uflags) } } #[inline] -pub unsafe fn SHGetNewLinkInfoW(pszlinkto: P0, pszdir: P1, pszname: &mut [u16; 260], pfmustcopy: *mut super::super::Foundation::BOOL, uflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn SHGetNewLinkInfoW(pszlinkto: P0, pszdir: P1, pszname: &mut [u16; 260], pfmustcopy: *mut windows_core::BOOL, uflags: u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn SHGetNewLinkInfoW(pszlinkto : windows_core::PCWSTR, pszdir : windows_core::PCWSTR, pszname : windows_core::PWSTR, pfmustcopy : *mut super::super::Foundation:: BOOL, uflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn SHGetNewLinkInfoW(pszlinkto : windows_core::PCWSTR, pszdir : windows_core::PCWSTR, pszname : windows_core::PWSTR, pfmustcopy : *mut windows_core::BOOL, uflags : u32) -> windows_core::BOOL); unsafe { SHGetNewLinkInfoW(pszlinkto.param().abi(), pszdir.param().abi(), core::mem::transmute(pszname.as_ptr()), pfmustcopy as _, uflags) } } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] -pub unsafe fn SHGetPathFromIDListA(pidl: *const Common::ITEMIDLIST, pszpath: &mut [u8; 260]) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn SHGetPathFromIDListA(pidl : *const Common:: ITEMIDLIST, pszpath : windows_core::PSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn SHGetPathFromIDListA(pidl: *const Common::ITEMIDLIST, pszpath: &mut [u8; 260]) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn SHGetPathFromIDListA(pidl : *const Common:: ITEMIDLIST, pszpath : windows_core::PSTR) -> windows_core::BOOL); unsafe { SHGetPathFromIDListA(pidl, core::mem::transmute(pszpath.as_ptr())) } } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] -pub unsafe fn SHGetPathFromIDListEx(pidl: *const Common::ITEMIDLIST, pszpath: &mut [u16], uopts: GPFIDL_FLAGS) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn SHGetPathFromIDListEx(pidl : *const Common:: ITEMIDLIST, pszpath : windows_core::PWSTR, cchpath : u32, uopts : GPFIDL_FLAGS) -> super::super::Foundation:: BOOL); +pub unsafe fn SHGetPathFromIDListEx(pidl: *const Common::ITEMIDLIST, pszpath: &mut [u16], uopts: GPFIDL_FLAGS) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn SHGetPathFromIDListEx(pidl : *const Common:: ITEMIDLIST, pszpath : windows_core::PWSTR, cchpath : u32, uopts : GPFIDL_FLAGS) -> windows_core::BOOL); unsafe { SHGetPathFromIDListEx(pidl, core::mem::transmute(pszpath.as_ptr()), pszpath.len().try_into().unwrap(), uopts) } } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] -pub unsafe fn SHGetPathFromIDListW(pidl: *const Common::ITEMIDLIST, pszpath: &mut [u16; 260]) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn SHGetPathFromIDListW(pidl : *const Common:: ITEMIDLIST, pszpath : windows_core::PWSTR) -> super::super::Foundation:: BOOL); +pub unsafe fn SHGetPathFromIDListW(pidl: *const Common::ITEMIDLIST, pszpath: &mut [u16; 260]) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn SHGetPathFromIDListW(pidl : *const Common:: ITEMIDLIST, pszpath : windows_core::PWSTR) -> windows_core::BOOL); unsafe { SHGetPathFromIDListW(pidl, core::mem::transmute(pszpath.as_ptr())) } } #[cfg(feature = "Win32_UI_Shell_Common")] @@ -3400,7 +3400,7 @@ where } #[inline] pub unsafe fn SHGetSetSettings(lpss: Option<*mut SHELLSTATEA>, dwmask: SSF_MASK, bset: bool) { - windows_targets::link!("shell32.dll" "system" fn SHGetSetSettings(lpss : *mut SHELLSTATEA, dwmask : SSF_MASK, bset : super::super::Foundation:: BOOL)); + windows_targets::link!("shell32.dll" "system" fn SHGetSetSettings(lpss : *mut SHELLSTATEA, dwmask : SSF_MASK, bset : windows_core::BOOL)); unsafe { SHGetSetSettings(lpss.unwrap_or(core::mem::zeroed()) as _, dwmask, bset.into()) } } #[inline] @@ -3418,13 +3418,13 @@ pub unsafe fn SHGetSpecialFolderLocation(hwnd: Option, pszpath: &mut [u8; 260], csidl: i32, fcreate: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn SHGetSpecialFolderPathA(hwnd : super::super::Foundation:: HWND, pszpath : windows_core::PSTR, csidl : i32, fcreate : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn SHGetSpecialFolderPathA(hwnd: Option, pszpath: &mut [u8; 260], csidl: i32, fcreate: bool) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn SHGetSpecialFolderPathA(hwnd : super::super::Foundation:: HWND, pszpath : windows_core::PSTR, csidl : i32, fcreate : windows_core::BOOL) -> windows_core::BOOL); unsafe { SHGetSpecialFolderPathA(hwnd.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(pszpath.as_ptr()), csidl, fcreate.into()) } } #[inline] -pub unsafe fn SHGetSpecialFolderPathW(hwnd: Option, pszpath: &mut [u16; 260], csidl: i32, fcreate: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn SHGetSpecialFolderPathW(hwnd : super::super::Foundation:: HWND, pszpath : windows_core::PWSTR, csidl : i32, fcreate : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn SHGetSpecialFolderPathW(hwnd: Option, pszpath: &mut [u16; 260], csidl: i32, fcreate: bool) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn SHGetSpecialFolderPathW(hwnd : super::super::Foundation:: HWND, pszpath : windows_core::PWSTR, csidl : i32, fcreate : windows_core::BOOL) -> windows_core::BOOL); unsafe { SHGetSpecialFolderPathW(hwnd.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(pszpath.as_ptr()), csidl, fcreate.into()) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -3524,21 +3524,21 @@ where unsafe { SHILCreateFromPath(pszpath.param().abi(), ppidl as _, rgfinout.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn SHInvokePrinterCommandA(hwnd: Option, uaction: u32, lpbuf1: P2, lpbuf2: P3, fmodal: bool) -> super::super::Foundation::BOOL +pub unsafe fn SHInvokePrinterCommandA(hwnd: Option, uaction: u32, lpbuf1: P2, lpbuf2: P3, fmodal: bool) -> windows_core::BOOL where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn SHInvokePrinterCommandA(hwnd : super::super::Foundation:: HWND, uaction : u32, lpbuf1 : windows_core::PCSTR, lpbuf2 : windows_core::PCSTR, fmodal : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn SHInvokePrinterCommandA(hwnd : super::super::Foundation:: HWND, uaction : u32, lpbuf1 : windows_core::PCSTR, lpbuf2 : windows_core::PCSTR, fmodal : windows_core::BOOL) -> windows_core::BOOL); unsafe { SHInvokePrinterCommandA(hwnd.unwrap_or(core::mem::zeroed()) as _, uaction, lpbuf1.param().abi(), lpbuf2.param().abi(), fmodal.into()) } } #[inline] -pub unsafe fn SHInvokePrinterCommandW(hwnd: Option, uaction: u32, lpbuf1: P2, lpbuf2: P3, fmodal: bool) -> super::super::Foundation::BOOL +pub unsafe fn SHInvokePrinterCommandW(hwnd: Option, uaction: u32, lpbuf1: P2, lpbuf2: P3, fmodal: bool) -> windows_core::BOOL where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn SHInvokePrinterCommandW(hwnd : super::super::Foundation:: HWND, uaction : u32, lpbuf1 : windows_core::PCWSTR, lpbuf2 : windows_core::PCWSTR, fmodal : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn SHInvokePrinterCommandW(hwnd : super::super::Foundation:: HWND, uaction : u32, lpbuf1 : windows_core::PCWSTR, lpbuf2 : windows_core::PCWSTR, fmodal : windows_core::BOOL) -> windows_core::BOOL); unsafe { SHInvokePrinterCommandW(hwnd.unwrap_or(core::mem::zeroed()) as _, uaction, lpbuf1.param().abi(), lpbuf2.param().abi(), fmodal.into()) } } #[inline] @@ -3550,8 +3550,8 @@ where unsafe { SHIsFileAvailableOffline(pwszpath.param().abi(), pdwstatus.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn SHIsLowMemoryMachine(dwtype: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("shlwapi.dll" "system" fn SHIsLowMemoryMachine(dwtype : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn SHIsLowMemoryMachine(dwtype: u32) -> windows_core::BOOL { + windows_targets::link!("shlwapi.dll" "system" fn SHIsLowMemoryMachine(dwtype : u32) -> windows_core::BOOL); unsafe { SHIsLowMemoryMachine(dwtype) } } #[inline] @@ -3624,12 +3624,12 @@ where unsafe { SHMultiFileProperties(pdtobj.param().abi(), dwflags).ok() } } #[inline] -pub unsafe fn SHObjectProperties(hwnd: Option, shopobjecttype: SHOP_TYPE, pszobjectname: P2, pszpropertypage: P3) -> super::super::Foundation::BOOL +pub unsafe fn SHObjectProperties(hwnd: Option, shopobjecttype: SHOP_TYPE, pszobjectname: P2, pszpropertypage: P3) -> windows_core::BOOL where P2: windows_core::Param, P3: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn SHObjectProperties(hwnd : super::super::Foundation:: HWND, shopobjecttype : u32, pszobjectname : windows_core::PCWSTR, pszpropertypage : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn SHObjectProperties(hwnd : super::super::Foundation:: HWND, shopobjecttype : u32, pszobjectname : windows_core::PCWSTR, pszpropertypage : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SHObjectProperties(hwnd.unwrap_or(core::mem::zeroed()) as _, shopobjecttype.0 as _, pszobjectname.param().abi(), pszpropertypage.param().abi()) } } #[cfg(feature = "Win32_UI_Shell_Common")] @@ -3640,14 +3640,14 @@ pub unsafe fn SHOpenFolderAndSelectItems(pidlfolder: *const Common::ITEMIDLIST, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Registry"))] #[inline] -pub unsafe fn SHOpenPropSheetW(pszcaption: P0, ahkeys: Option<&[super::super::System::Registry::HKEY]>, pclsiddefault: Option<*const windows_core::GUID>, pdtobj: P4, psb: P5, pstartpage: P6) -> super::super::Foundation::BOOL +pub unsafe fn SHOpenPropSheetW(pszcaption: P0, ahkeys: Option<&[super::super::System::Registry::HKEY]>, pclsiddefault: Option<*const windows_core::GUID>, pdtobj: P4, psb: P5, pstartpage: P6) -> windows_core::BOOL where P0: windows_core::Param, P4: windows_core::Param, P5: windows_core::Param, P6: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn SHOpenPropSheetW(pszcaption : windows_core::PCWSTR, ahkeys : *const super::super::System::Registry:: HKEY, ckeys : u32, pclsiddefault : *const windows_core::GUID, pdtobj : * mut core::ffi::c_void, psb : * mut core::ffi::c_void, pstartpage : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn SHOpenPropSheetW(pszcaption : windows_core::PCWSTR, ahkeys : *const super::super::System::Registry:: HKEY, ckeys : u32, pclsiddefault : *const windows_core::GUID, pdtobj : * mut core::ffi::c_void, psb : * mut core::ffi::c_void, pstartpage : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SHOpenPropSheetW(pszcaption.param().abi(), core::mem::transmute(ahkeys.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), ahkeys.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pclsiddefault.unwrap_or(core::mem::zeroed()) as _, pdtobj.param().abi(), psb.param().abi(), pstartpage.param().abi()) } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry"))] @@ -3857,21 +3857,21 @@ pub unsafe fn SHRegEnumUSValueW(huskey: isize, dwindex: u32, pszvaluename: windo unsafe { SHRegEnumUSValueW(huskey, dwindex, core::mem::transmute(pszvaluename), pcchvaluename as _, pdwtype.unwrap_or(core::mem::zeroed()) as _, pvdata.unwrap_or(core::mem::zeroed()) as _, pcbdata.unwrap_or(core::mem::zeroed()) as _, enumregflags) } } #[inline] -pub unsafe fn SHRegGetBoolUSValueA(pszsubkey: P0, pszvalue: P1, fignorehkcu: bool, fdefault: bool) -> super::super::Foundation::BOOL +pub unsafe fn SHRegGetBoolUSValueA(pszsubkey: P0, pszvalue: P1, fignorehkcu: bool, fdefault: bool) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn SHRegGetBoolUSValueA(pszsubkey : windows_core::PCSTR, pszvalue : windows_core::PCSTR, fignorehkcu : super::super::Foundation:: BOOL, fdefault : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn SHRegGetBoolUSValueA(pszsubkey : windows_core::PCSTR, pszvalue : windows_core::PCSTR, fignorehkcu : windows_core::BOOL, fdefault : windows_core::BOOL) -> windows_core::BOOL); unsafe { SHRegGetBoolUSValueA(pszsubkey.param().abi(), pszvalue.param().abi(), fignorehkcu.into(), fdefault.into()) } } #[inline] -pub unsafe fn SHRegGetBoolUSValueW(pszsubkey: P0, pszvalue: P1, fignorehkcu: bool, fdefault: bool) -> super::super::Foundation::BOOL +pub unsafe fn SHRegGetBoolUSValueW(pszsubkey: P0, pszvalue: P1, fignorehkcu: bool, fdefault: bool) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn SHRegGetBoolUSValueW(pszsubkey : windows_core::PCWSTR, pszvalue : windows_core::PCWSTR, fignorehkcu : super::super::Foundation:: BOOL, fdefault : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn SHRegGetBoolUSValueW(pszsubkey : windows_core::PCWSTR, pszvalue : windows_core::PCWSTR, fignorehkcu : windows_core::BOOL, fdefault : windows_core::BOOL) -> windows_core::BOOL); unsafe { SHRegGetBoolUSValueW(pszsubkey.param().abi(), pszvalue.param().abi(), fignorehkcu.into(), fdefault.into()) } } #[cfg(feature = "Win32_System_Registry")] @@ -3909,7 +3909,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn SHRegGetUSValueA(pszsubkey : windows_core::PCSTR, pszvalue : windows_core::PCSTR, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32, fignorehkcu : super::super::Foundation:: BOOL, pvdefaultdata : *const core::ffi::c_void, dwdefaultdatasize : u32) -> super::super::Foundation:: WIN32_ERROR); + windows_targets::link!("shlwapi.dll" "system" fn SHRegGetUSValueA(pszsubkey : windows_core::PCSTR, pszvalue : windows_core::PCSTR, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32, fignorehkcu : windows_core::BOOL, pvdefaultdata : *const core::ffi::c_void, dwdefaultdatasize : u32) -> super::super::Foundation:: WIN32_ERROR); unsafe { SHRegGetUSValueA(pszsubkey.param().abi(), pszvalue.param().abi(), pdwtype.unwrap_or(core::mem::zeroed()) as _, pvdata.unwrap_or(core::mem::zeroed()) as _, pcbdata.unwrap_or(core::mem::zeroed()) as _, fignorehkcu.into(), pvdefaultdata.unwrap_or(core::mem::zeroed()) as _, dwdefaultdatasize) } } #[inline] @@ -3918,7 +3918,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn SHRegGetUSValueW(pszsubkey : windows_core::PCWSTR, pszvalue : windows_core::PCWSTR, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32, fignorehkcu : super::super::Foundation:: BOOL, pvdefaultdata : *const core::ffi::c_void, dwdefaultdatasize : u32) -> super::super::Foundation:: WIN32_ERROR); + windows_targets::link!("shlwapi.dll" "system" fn SHRegGetUSValueW(pszsubkey : windows_core::PCWSTR, pszvalue : windows_core::PCWSTR, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32, fignorehkcu : windows_core::BOOL, pvdefaultdata : *const core::ffi::c_void, dwdefaultdatasize : u32) -> super::super::Foundation:: WIN32_ERROR); unsafe { SHRegGetUSValueW(pszsubkey.param().abi(), pszvalue.param().abi(), pdwtype.unwrap_or(core::mem::zeroed()) as _, pvdata.unwrap_or(core::mem::zeroed()) as _, pcbdata.unwrap_or(core::mem::zeroed()) as _, fignorehkcu.into(), pvdefaultdata.unwrap_or(core::mem::zeroed()) as _, dwdefaultdatasize) } } #[cfg(feature = "Win32_System_Registry")] @@ -3955,7 +3955,7 @@ pub unsafe fn SHRegOpenUSKeyA(pszpath: P0, samdesired: u32, hrelativeuskey: where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn SHRegOpenUSKeyA(pszpath : windows_core::PCSTR, samdesired : u32, hrelativeuskey : isize, phnewuskey : *mut isize, fignorehkcu : super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); + windows_targets::link!("shlwapi.dll" "system" fn SHRegOpenUSKeyA(pszpath : windows_core::PCSTR, samdesired : u32, hrelativeuskey : isize, phnewuskey : *mut isize, fignorehkcu : windows_core::BOOL) -> super::super::Foundation:: WIN32_ERROR); unsafe { SHRegOpenUSKeyA(pszpath.param().abi(), samdesired, hrelativeuskey.unwrap_or(core::mem::zeroed()) as _, phnewuskey as _, fignorehkcu.into()) } } #[inline] @@ -3963,7 +3963,7 @@ pub unsafe fn SHRegOpenUSKeyW(pwzpath: P0, samdesired: u32, hrelativeuskey: where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn SHRegOpenUSKeyW(pwzpath : windows_core::PCWSTR, samdesired : u32, hrelativeuskey : isize, phnewuskey : *mut isize, fignorehkcu : super::super::Foundation:: BOOL) -> super::super::Foundation:: WIN32_ERROR); + windows_targets::link!("shlwapi.dll" "system" fn SHRegOpenUSKeyW(pwzpath : windows_core::PCWSTR, samdesired : u32, hrelativeuskey : isize, phnewuskey : *mut isize, fignorehkcu : windows_core::BOOL) -> super::super::Foundation:: WIN32_ERROR); unsafe { SHRegOpenUSKeyW(pwzpath.param().abi(), samdesired, hrelativeuskey.unwrap_or(core::mem::zeroed()) as _, phnewuskey as _, fignorehkcu.into()) } } #[inline] @@ -3981,7 +3981,7 @@ pub unsafe fn SHRegQueryUSValueA(huskey: isize, pszvalue: P1, pdwtype: Optio where P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn SHRegQueryUSValueA(huskey : isize, pszvalue : windows_core::PCSTR, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32, fignorehkcu : super::super::Foundation:: BOOL, pvdefaultdata : *const core::ffi::c_void, dwdefaultdatasize : u32) -> super::super::Foundation:: WIN32_ERROR); + windows_targets::link!("shlwapi.dll" "system" fn SHRegQueryUSValueA(huskey : isize, pszvalue : windows_core::PCSTR, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32, fignorehkcu : windows_core::BOOL, pvdefaultdata : *const core::ffi::c_void, dwdefaultdatasize : u32) -> super::super::Foundation:: WIN32_ERROR); unsafe { SHRegQueryUSValueA(huskey, pszvalue.param().abi(), pdwtype.unwrap_or(core::mem::zeroed()) as _, pvdata.unwrap_or(core::mem::zeroed()) as _, pcbdata.unwrap_or(core::mem::zeroed()) as _, fignorehkcu.into(), pvdefaultdata.unwrap_or(core::mem::zeroed()) as _, dwdefaultdatasize.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -3989,7 +3989,7 @@ pub unsafe fn SHRegQueryUSValueW(huskey: isize, pszvalue: P1, pdwtype: Optio where P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn SHRegQueryUSValueW(huskey : isize, pszvalue : windows_core::PCWSTR, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32, fignorehkcu : super::super::Foundation:: BOOL, pvdefaultdata : *const core::ffi::c_void, dwdefaultdatasize : u32) -> super::super::Foundation:: WIN32_ERROR); + windows_targets::link!("shlwapi.dll" "system" fn SHRegQueryUSValueW(huskey : isize, pszvalue : windows_core::PCWSTR, pdwtype : *mut u32, pvdata : *mut core::ffi::c_void, pcbdata : *mut u32, fignorehkcu : windows_core::BOOL, pvdefaultdata : *const core::ffi::c_void, dwdefaultdatasize : u32) -> super::super::Foundation:: WIN32_ERROR); unsafe { SHRegQueryUSValueW(huskey, pszvalue.param().abi(), pdwtype.unwrap_or(core::mem::zeroed()) as _, pvdata.unwrap_or(core::mem::zeroed()) as _, pcbdata.unwrap_or(core::mem::zeroed()) as _, fignorehkcu.into(), pvdefaultdata.unwrap_or(core::mem::zeroed()) as _, dwdefaultdatasize.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_System_Registry")] @@ -4212,11 +4212,11 @@ where } #[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn SHSkipJunction(pbc: P0, pclsid: *const windows_core::GUID) -> super::super::Foundation::BOOL +pub unsafe fn SHSkipJunction(pbc: P0, pclsid: *const windows_core::GUID) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn SHSkipJunction(pbc : * mut core::ffi::c_void, pclsid : *const windows_core::GUID) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn SHSkipJunction(pbc : * mut core::ffi::c_void, pclsid : *const windows_core::GUID) -> windows_core::BOOL); unsafe { SHSkipJunction(pbc.param().abi(), pclsid) } } #[inline] @@ -4260,8 +4260,8 @@ pub unsafe fn SHStripMneumonicW(pszmenu: windows_core::PWSTR) -> u16 { unsafe { SHStripMneumonicW(core::mem::transmute(pszmenu)) } } #[inline] -pub unsafe fn SHTestTokenMembership(htoken: Option, ulrid: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn SHTestTokenMembership(htoken : super::super::Foundation:: HANDLE, ulrid : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn SHTestTokenMembership(htoken: Option, ulrid: u32) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn SHTestTokenMembership(htoken : super::super::Foundation:: HANDLE, ulrid : u32) -> windows_core::BOOL); unsafe { SHTestTokenMembership(htoken.unwrap_or(core::mem::zeroed()) as _, ulrid) } } #[inline] @@ -4282,7 +4282,7 @@ where } #[inline] pub unsafe fn SHUnlockShared(pvdata: *const core::ffi::c_void) -> windows_core::Result<()> { - windows_targets::link!("shlwapi.dll" "system" fn SHUnlockShared(pvdata : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn SHUnlockShared(pvdata : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { SHUnlockShared(pvdata).ok() } } #[inline] @@ -4302,8 +4302,8 @@ where unsafe { SHUpdateImageW(pszhashitem.param().abi(), iindex, uflags, iimageindex) } } #[inline] -pub unsafe fn SHValidateUNC(hwndowner: Option, pszfile: windows_core::PWSTR, fconnect: VALIDATEUNC_OPTION) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn SHValidateUNC(hwndowner : super::super::Foundation:: HWND, pszfile : windows_core::PWSTR, fconnect : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn SHValidateUNC(hwndowner: Option, pszfile: windows_core::PWSTR, fconnect: VALIDATEUNC_OPTION) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn SHValidateUNC(hwndowner : super::super::Foundation:: HWND, pszfile : windows_core::PWSTR, fconnect : u32) -> windows_core::BOOL); unsafe { SHValidateUNC(hwndowner.unwrap_or(core::mem::zeroed()) as _, core::mem::transmute(pszfile), fconnect.0 as _) } } #[inline] @@ -4317,17 +4317,17 @@ where #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] pub unsafe fn SetMenuContextHelpId(param0: super::WindowsAndMessaging::HMENU, param1: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetMenuContextHelpId(param0 : super::WindowsAndMessaging:: HMENU, param1 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetMenuContextHelpId(param0 : super::WindowsAndMessaging:: HMENU, param1 : u32) -> windows_core::BOOL); unsafe { SetMenuContextHelpId(param0, param1).ok() } } #[inline] pub unsafe fn SetWindowContextHelpId(param0: super::super::Foundation::HWND, param1: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetWindowContextHelpId(param0 : super::super::Foundation:: HWND, param1 : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetWindowContextHelpId(param0 : super::super::Foundation:: HWND, param1 : u32) -> windows_core::BOOL); unsafe { SetWindowContextHelpId(param0, param1).ok() } } #[inline] -pub unsafe fn SetWindowSubclass(hwnd: super::super::Foundation::HWND, pfnsubclass: SUBCLASSPROC, uidsubclass: usize, dwrefdata: usize) -> super::super::Foundation::BOOL { - windows_targets::link!("comctl32.dll" "system" fn SetWindowSubclass(hwnd : super::super::Foundation:: HWND, pfnsubclass : SUBCLASSPROC, uidsubclass : usize, dwrefdata : usize) -> super::super::Foundation:: BOOL); +pub unsafe fn SetWindowSubclass(hwnd: super::super::Foundation::HWND, pfnsubclass: SUBCLASSPROC, uidsubclass: usize, dwrefdata: usize) -> windows_core::BOOL { + windows_targets::link!("comctl32.dll" "system" fn SetWindowSubclass(hwnd : super::super::Foundation:: HWND, pfnsubclass : SUBCLASSPROC, uidsubclass : usize, dwrefdata : usize) -> windows_core::BOOL); unsafe { SetWindowSubclass(hwnd, pfnsubclass, uidsubclass, dwrefdata) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -4365,13 +4365,13 @@ where #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ShellExecuteExA(pexecinfo: *mut SHELLEXECUTEINFOA) -> windows_core::Result<()> { - windows_targets::link!("shell32.dll" "system" fn ShellExecuteExA(pexecinfo : *mut SHELLEXECUTEINFOA) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn ShellExecuteExA(pexecinfo : *mut SHELLEXECUTEINFOA) -> windows_core::BOOL); unsafe { ShellExecuteExA(pexecinfo as _).ok() } } #[cfg(feature = "Win32_System_Registry")] #[inline] pub unsafe fn ShellExecuteExW(pexecinfo: *mut SHELLEXECUTEINFOW) -> windows_core::Result<()> { - windows_targets::link!("shell32.dll" "system" fn ShellExecuteExW(pexecinfo : *mut SHELLEXECUTEINFOW) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn ShellExecuteExW(pexecinfo : *mut SHELLEXECUTEINFOW) -> windows_core::BOOL); unsafe { ShellExecuteExW(pexecinfo as _).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -4432,8 +4432,8 @@ where } #[cfg(feature = "Win32_UI_Controls")] #[inline] -pub unsafe fn Shell_GetImageLists(phiml: Option<*mut super::Controls::HIMAGELIST>, phimlsmall: Option<*mut super::Controls::HIMAGELIST>) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn Shell_GetImageLists(phiml : *mut super::Controls:: HIMAGELIST, phimlsmall : *mut super::Controls:: HIMAGELIST) -> super::super::Foundation:: BOOL); +pub unsafe fn Shell_GetImageLists(phiml: Option<*mut super::Controls::HIMAGELIST>, phimlsmall: Option<*mut super::Controls::HIMAGELIST>) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn Shell_GetImageLists(phiml : *mut super::Controls:: HIMAGELIST, phimlsmall : *mut super::Controls:: HIMAGELIST) -> windows_core::BOOL); unsafe { Shell_GetImageLists(phiml.unwrap_or(core::mem::zeroed()) as _, phimlsmall.unwrap_or(core::mem::zeroed()) as _) } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -4444,8 +4444,8 @@ pub unsafe fn Shell_MergeMenus(hmdst: super::WindowsAndMessaging::HMENU, hmsrc: } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn Shell_NotifyIconA(dwmessage: NOTIFY_ICON_MESSAGE, lpdata: *const NOTIFYICONDATAA) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn Shell_NotifyIconA(dwmessage : NOTIFY_ICON_MESSAGE, lpdata : *const NOTIFYICONDATAA) -> super::super::Foundation:: BOOL); +pub unsafe fn Shell_NotifyIconA(dwmessage: NOTIFY_ICON_MESSAGE, lpdata: *const NOTIFYICONDATAA) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn Shell_NotifyIconA(dwmessage : NOTIFY_ICON_MESSAGE, lpdata : *const NOTIFYICONDATAA) -> windows_core::BOOL); unsafe { Shell_NotifyIconA(dwmessage, lpdata) } } #[inline] @@ -4458,14 +4458,14 @@ pub unsafe fn Shell_NotifyIconGetRect(identifier: *const NOTIFYICONIDENTIFIER) - } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] #[inline] -pub unsafe fn Shell_NotifyIconW(dwmessage: NOTIFY_ICON_MESSAGE, lpdata: *const NOTIFYICONDATAW) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn Shell_NotifyIconW(dwmessage : NOTIFY_ICON_MESSAGE, lpdata : *const NOTIFYICONDATAW) -> super::super::Foundation:: BOOL); +pub unsafe fn Shell_NotifyIconW(dwmessage: NOTIFY_ICON_MESSAGE, lpdata: *const NOTIFYICONDATAW) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn Shell_NotifyIconW(dwmessage : NOTIFY_ICON_MESSAGE, lpdata : *const NOTIFYICONDATAW) -> windows_core::BOOL); unsafe { Shell_NotifyIconW(dwmessage, lpdata) } } #[cfg(feature = "Win32_UI_Shell_Common")] #[inline] -pub unsafe fn SignalFileOpen(pidl: *const Common::ITEMIDLIST) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn SignalFileOpen(pidl : *const Common:: ITEMIDLIST) -> super::super::Foundation:: BOOL); +pub unsafe fn SignalFileOpen(pidl: *const Common::ITEMIDLIST) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn SignalFileOpen(pidl : *const Common:: ITEMIDLIST) -> windows_core::BOOL); unsafe { SignalFileOpen(pidl) } } #[cfg(feature = "Win32_System_Com_Urlmon")] @@ -4813,21 +4813,21 @@ pub unsafe fn StrFromTimeIntervalW(pszout: &mut [u16], dwtimems: u32, digits: i3 unsafe { StrFromTimeIntervalW(core::mem::transmute(pszout.as_ptr()), pszout.len().try_into().unwrap(), dwtimems, digits) } } #[inline] -pub unsafe fn StrIsIntlEqualA(fcasesens: bool, pszstring1: P1, pszstring2: P2, nchar: i32) -> super::super::Foundation::BOOL +pub unsafe fn StrIsIntlEqualA(fcasesens: bool, pszstring1: P1, pszstring2: P2, nchar: i32) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn StrIsIntlEqualA(fcasesens : super::super::Foundation:: BOOL, pszstring1 : windows_core::PCSTR, pszstring2 : windows_core::PCSTR, nchar : i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn StrIsIntlEqualA(fcasesens : windows_core::BOOL, pszstring1 : windows_core::PCSTR, pszstring2 : windows_core::PCSTR, nchar : i32) -> windows_core::BOOL); unsafe { StrIsIntlEqualA(fcasesens.into(), pszstring1.param().abi(), pszstring2.param().abi(), nchar) } } #[inline] -pub unsafe fn StrIsIntlEqualW(fcasesens: bool, pszstring1: P1, pszstring2: P2, nchar: i32) -> super::super::Foundation::BOOL +pub unsafe fn StrIsIntlEqualW(fcasesens: bool, pszstring1: P1, pszstring2: P2, nchar: i32) -> windows_core::BOOL where P1: windows_core::Param, P2: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn StrIsIntlEqualW(fcasesens : super::super::Foundation:: BOOL, pszstring1 : windows_core::PCWSTR, pszstring2 : windows_core::PCWSTR, nchar : i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn StrIsIntlEqualW(fcasesens : windows_core::BOOL, pszstring1 : windows_core::PCWSTR, pszstring2 : windows_core::PCWSTR, nchar : i32) -> windows_core::BOOL); unsafe { StrIsIntlEqualW(fcasesens.into(), pszstring1.param().abi(), pszstring2.param().abi(), nchar) } } #[inline] @@ -5023,19 +5023,19 @@ where unsafe { StrStrW(pszfirst.param().abi(), pszsrch.param().abi()) } } #[inline] -pub unsafe fn StrToInt64ExA(pszstring: P0, dwflags: i32, pllret: *mut i64) -> super::super::Foundation::BOOL +pub unsafe fn StrToInt64ExA(pszstring: P0, dwflags: i32, pllret: *mut i64) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn StrToInt64ExA(pszstring : windows_core::PCSTR, dwflags : i32, pllret : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn StrToInt64ExA(pszstring : windows_core::PCSTR, dwflags : i32, pllret : *mut i64) -> windows_core::BOOL); unsafe { StrToInt64ExA(pszstring.param().abi(), dwflags, pllret as _) } } #[inline] -pub unsafe fn StrToInt64ExW(pszstring: P0, dwflags: i32, pllret: *mut i64) -> super::super::Foundation::BOOL +pub unsafe fn StrToInt64ExW(pszstring: P0, dwflags: i32, pllret: *mut i64) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn StrToInt64ExW(pszstring : windows_core::PCWSTR, dwflags : i32, pllret : *mut i64) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn StrToInt64ExW(pszstring : windows_core::PCWSTR, dwflags : i32, pllret : *mut i64) -> windows_core::BOOL); unsafe { StrToInt64ExW(pszstring.param().abi(), dwflags, pllret as _) } } #[inline] @@ -5047,19 +5047,19 @@ where unsafe { StrToIntA(pszsrc.param().abi()) } } #[inline] -pub unsafe fn StrToIntExA(pszstring: P0, dwflags: i32, piret: *mut i32) -> super::super::Foundation::BOOL +pub unsafe fn StrToIntExA(pszstring: P0, dwflags: i32, piret: *mut i32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn StrToIntExA(pszstring : windows_core::PCSTR, dwflags : i32, piret : *mut i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn StrToIntExA(pszstring : windows_core::PCSTR, dwflags : i32, piret : *mut i32) -> windows_core::BOOL); unsafe { StrToIntExA(pszstring.param().abi(), dwflags, piret as _) } } #[inline] -pub unsafe fn StrToIntExW(pszstring: P0, dwflags: i32, piret: *mut i32) -> super::super::Foundation::BOOL +pub unsafe fn StrToIntExW(pszstring: P0, dwflags: i32, piret: *mut i32) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn StrToIntExW(pszstring : windows_core::PCWSTR, dwflags : i32, piret : *mut i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn StrToIntExW(pszstring : windows_core::PCWSTR, dwflags : i32, piret : *mut i32) -> windows_core::BOOL); unsafe { StrToIntExW(pszstring.param().abi(), dwflags, piret as _) } } #[inline] @@ -5071,24 +5071,24 @@ where unsafe { StrToIntW(pszsrc.param().abi()) } } #[inline] -pub unsafe fn StrTrimA(psz: windows_core::PSTR, psztrimchars: P1) -> super::super::Foundation::BOOL +pub unsafe fn StrTrimA(psz: windows_core::PSTR, psztrimchars: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn StrTrimA(psz : windows_core::PSTR, psztrimchars : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn StrTrimA(psz : windows_core::PSTR, psztrimchars : windows_core::PCSTR) -> windows_core::BOOL); unsafe { StrTrimA(core::mem::transmute(psz), psztrimchars.param().abi()) } } #[inline] -pub unsafe fn StrTrimW(psz: windows_core::PWSTR, psztrimchars: P1) -> super::super::Foundation::BOOL +pub unsafe fn StrTrimW(psz: windows_core::PWSTR, psztrimchars: P1) -> windows_core::BOOL where P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn StrTrimW(psz : windows_core::PWSTR, psztrimchars : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn StrTrimW(psz : windows_core::PWSTR, psztrimchars : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { StrTrimW(core::mem::transmute(psz), psztrimchars.param().abi()) } } #[inline] pub unsafe fn UnloadUserProfile(htoken: super::super::Foundation::HANDLE, hprofile: super::super::Foundation::HANDLE) -> windows_core::Result<()> { - windows_targets::link!("userenv.dll" "system" fn UnloadUserProfile(htoken : super::super::Foundation:: HANDLE, hprofile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("userenv.dll" "system" fn UnloadUserProfile(htoken : super::super::Foundation:: HANDLE, hprofile : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { UnloadUserProfile(htoken, hprofile).ok() } } #[inline] @@ -5162,7 +5162,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn UrlCompareA(psz1 : windows_core::PCSTR, psz2 : windows_core::PCSTR, fignoreslash : super::super::Foundation:: BOOL) -> i32); + windows_targets::link!("shlwapi.dll" "system" fn UrlCompareA(psz1 : windows_core::PCSTR, psz2 : windows_core::PCSTR, fignoreslash : windows_core::BOOL) -> i32); unsafe { UrlCompareA(psz1.param().abi(), psz2.param().abi(), fignoreslash.into()) } } #[inline] @@ -5171,7 +5171,7 @@ where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn UrlCompareW(psz1 : windows_core::PCWSTR, psz2 : windows_core::PCWSTR, fignoreslash : super::super::Foundation:: BOOL) -> i32); + windows_targets::link!("shlwapi.dll" "system" fn UrlCompareW(psz1 : windows_core::PCWSTR, psz2 : windows_core::PCWSTR, fignoreslash : windows_core::BOOL) -> i32); unsafe { UrlCompareW(psz1.param().abi(), psz2.param().abi(), fignoreslash.into()) } } #[inline] @@ -5263,51 +5263,51 @@ where unsafe { UrlHashW(pszurl.param().abi(), core::mem::transmute(pbhash.as_ptr()), pbhash.len().try_into().unwrap()).ok() } } #[inline] -pub unsafe fn UrlIsA(pszurl: P0, urlis: URLIS) -> super::super::Foundation::BOOL +pub unsafe fn UrlIsA(pszurl: P0, urlis: URLIS) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn UrlIsA(pszurl : windows_core::PCSTR, urlis : URLIS) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn UrlIsA(pszurl : windows_core::PCSTR, urlis : URLIS) -> windows_core::BOOL); unsafe { UrlIsA(pszurl.param().abi(), urlis) } } #[inline] -pub unsafe fn UrlIsNoHistoryA(pszurl: P0) -> super::super::Foundation::BOOL +pub unsafe fn UrlIsNoHistoryA(pszurl: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn UrlIsNoHistoryA(pszurl : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn UrlIsNoHistoryA(pszurl : windows_core::PCSTR) -> windows_core::BOOL); unsafe { UrlIsNoHistoryA(pszurl.param().abi()) } } #[inline] -pub unsafe fn UrlIsNoHistoryW(pszurl: P0) -> super::super::Foundation::BOOL +pub unsafe fn UrlIsNoHistoryW(pszurl: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn UrlIsNoHistoryW(pszurl : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn UrlIsNoHistoryW(pszurl : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { UrlIsNoHistoryW(pszurl.param().abi()) } } #[inline] -pub unsafe fn UrlIsOpaqueA(pszurl: P0) -> super::super::Foundation::BOOL +pub unsafe fn UrlIsOpaqueA(pszurl: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn UrlIsOpaqueA(pszurl : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn UrlIsOpaqueA(pszurl : windows_core::PCSTR) -> windows_core::BOOL); unsafe { UrlIsOpaqueA(pszurl.param().abi()) } } #[inline] -pub unsafe fn UrlIsOpaqueW(pszurl: P0) -> super::super::Foundation::BOOL +pub unsafe fn UrlIsOpaqueW(pszurl: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn UrlIsOpaqueW(pszurl : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn UrlIsOpaqueW(pszurl : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { UrlIsOpaqueW(pszurl.param().abi()) } } #[inline] -pub unsafe fn UrlIsW(pszurl: P0, urlis: URLIS) -> super::super::Foundation::BOOL +pub unsafe fn UrlIsW(pszurl: P0, urlis: URLIS) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shlwapi.dll" "system" fn UrlIsW(pszurl : windows_core::PCWSTR, urlis : URLIS) -> super::super::Foundation:: BOOL); + windows_targets::link!("shlwapi.dll" "system" fn UrlIsW(pszurl : windows_core::PCWSTR, urlis : URLIS) -> windows_core::BOOL); unsafe { UrlIsW(pszurl.param().abi(), urlis) } } #[inline] @@ -5332,11 +5332,11 @@ pub unsafe fn WhichPlatform() -> u32 { unsafe { WhichPlatform() } } #[inline] -pub unsafe fn Win32DeleteFile(pszpath: P0) -> super::super::Foundation::BOOL +pub unsafe fn Win32DeleteFile(pszpath: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("shell32.dll" "system" fn Win32DeleteFile(pszpath : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("shell32.dll" "system" fn Win32DeleteFile(pszpath : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { Win32DeleteFile(pszpath.param().abi()) } } #[inline] @@ -5344,7 +5344,7 @@ pub unsafe fn WinHelpA(hwndmain: Option, lps where P1: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn WinHelpA(hwndmain : super::super::Foundation:: HWND, lpszhelp : windows_core::PCSTR, ucommand : u32, dwdata : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn WinHelpA(hwndmain : super::super::Foundation:: HWND, lpszhelp : windows_core::PCSTR, ucommand : u32, dwdata : usize) -> windows_core::BOOL); unsafe { WinHelpA(hwndmain.unwrap_or(core::mem::zeroed()) as _, lpszhelp.param().abi(), ucommand, dwdata).ok() } } #[inline] @@ -5352,12 +5352,12 @@ pub unsafe fn WinHelpW(hwndmain: Option, lps where P1: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn WinHelpW(hwndmain : super::super::Foundation:: HWND, lpszhelp : windows_core::PCWSTR, ucommand : u32, dwdata : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn WinHelpW(hwndmain : super::super::Foundation:: HWND, lpszhelp : windows_core::PCWSTR, ucommand : u32, dwdata : usize) -> windows_core::BOOL); unsafe { WinHelpW(hwndmain.unwrap_or(core::mem::zeroed()) as _, lpszhelp.param().abi(), ucommand, dwdata).ok() } } #[inline] -pub unsafe fn WriteCabinetState(pcs: *const CABINETSTATE) -> super::super::Foundation::BOOL { - windows_targets::link!("shell32.dll" "system" fn WriteCabinetState(pcs : *const CABINETSTATE) -> super::super::Foundation:: BOOL); +pub unsafe fn WriteCabinetState(pcs: *const CABINETSTATE) -> windows_core::BOOL { + windows_targets::link!("shell32.dll" "system" fn WriteCabinetState(pcs : *const CABINETSTATE) -> windows_core::BOOL); unsafe { WriteCabinetState(pcs) } } #[inline] @@ -5992,7 +5992,7 @@ pub struct AUTOCOMPLETEOPTIONS(pub i32); pub struct AUTO_SCROLL_DATA { pub iNextSample: i32, pub dwLastScroll: u32, - pub bFull: super::super::Foundation::BOOL, + pub bFull: windows_core::BOOL, pub pts: [super::super::Foundation::POINT; 3], pub dwTimes: [u32; 3], } @@ -6106,8 +6106,8 @@ pub struct BASEBROWSERDATALH { pub _psfPending: core::mem::ManuallyDrop>, pub _hwndViewPending: super::super::Foundation::HWND, pub _pszTitlePending: windows_core::PWSTR, - pub _fIsViewMSHTML: super::super::Foundation::BOOL, - pub _fPrivacyImpacted: super::super::Foundation::BOOL, + pub _fIsViewMSHTML: windows_core::BOOL, + pub _fPrivacyImpacted: windows_core::BOOL, pub _clsidView: windows_core::GUID, pub _clsidViewPending: windows_core::GUID, pub _hwndFrame: super::super::Foundation::HWND, @@ -6144,8 +6144,8 @@ pub struct BASEBROWSERDATAXP { pub _psfPending: core::mem::ManuallyDrop>, pub _hwndViewPending: super::super::Foundation::HWND, pub _pszTitlePending: windows_core::PWSTR, - pub _fIsViewMSHTML: super::super::Foundation::BOOL, - pub _fPrivacyImpacted: super::super::Foundation::BOOL, + pub _fIsViewMSHTML: windows_core::BOOL, + pub _fPrivacyImpacted: windows_core::BOOL, pub _clsidView: windows_core::GUID, pub _clsidViewPending: windows_core::GUID, pub _hwndFrame: super::super::Foundation::HWND, @@ -6566,7 +6566,7 @@ windows_core::imp::interface_hierarchy!(CIE4ConnectionPoint, windows_core::IUnkn #[cfg(feature = "Win32_System_Com")] impl CIE4ConnectionPoint { #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] - pub unsafe fn DoInvokeIE4(&self, pf: *mut super::super::Foundation::BOOL, ppv: *mut *mut core::ffi::c_void, dispid: i32, pdispparams: *mut super::super::System::Com::DISPPARAMS) -> windows_core::Result<()> { + pub unsafe fn DoInvokeIE4(&self, pf: *mut windows_core::BOOL, ppv: *mut *mut core::ffi::c_void, dispid: i32, pdispparams: *mut super::super::System::Com::DISPPARAMS) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).DoInvokeIE4)(windows_core::Interface::as_raw(self), pf as _, ppv as _, dispid, pdispparams as _).ok() } } #[cfg(feature = "Win32_UI_Shell_Common")] @@ -6579,29 +6579,29 @@ impl CIE4ConnectionPoint { pub struct CIE4ConnectionPoint_Vtbl { pub base__: super::super::System::Com::IConnectionPoint_Vtbl, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] - pub DoInvokeIE4: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut *mut core::ffi::c_void, i32, *mut super::super::System::Com::DISPPARAMS) -> windows_core::HRESULT, + pub DoInvokeIE4: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL, *mut *mut core::ffi::c_void, i32, *mut super::super::System::Com::DISPPARAMS) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] DoInvokeIE4: usize, #[cfg(feature = "Win32_UI_Shell_Common")] - pub DoInvokePIDLIE4: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut Common::ITEMIDLIST, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub DoInvokePIDLIE4: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut Common::ITEMIDLIST, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] DoInvokePIDLIE4: usize, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_Common"))] pub trait CIE4ConnectionPoint_Impl: super::super::System::Com::IConnectionPoint_Impl { - fn DoInvokeIE4(&self, pf: *mut super::super::Foundation::BOOL, ppv: *mut *mut core::ffi::c_void, dispid: i32, pdispparams: *mut super::super::System::Com::DISPPARAMS) -> windows_core::Result<()>; - fn DoInvokePIDLIE4(&self, dispid: i32, pidl: *mut Common::ITEMIDLIST, fcancancel: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn DoInvokeIE4(&self, pf: *mut windows_core::BOOL, ppv: *mut *mut core::ffi::c_void, dispid: i32, pdispparams: *mut super::super::System::Com::DISPPARAMS) -> windows_core::Result<()>; + fn DoInvokePIDLIE4(&self, dispid: i32, pidl: *mut Common::ITEMIDLIST, fcancancel: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_Common"))] impl CIE4ConnectionPoint_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn DoInvokeIE4(this: *mut core::ffi::c_void, pf: *mut super::super::Foundation::BOOL, ppv: *mut *mut core::ffi::c_void, dispid: i32, pdispparams: *mut super::super::System::Com::DISPPARAMS) -> windows_core::HRESULT { + unsafe extern "system" fn DoInvokeIE4(this: *mut core::ffi::c_void, pf: *mut windows_core::BOOL, ppv: *mut *mut core::ffi::c_void, dispid: i32, pdispparams: *mut super::super::System::Com::DISPPARAMS) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); CIE4ConnectionPoint_Impl::DoInvokeIE4(this, core::mem::transmute_copy(&pf), core::mem::transmute_copy(&ppv), core::mem::transmute_copy(&dispid), core::mem::transmute_copy(&pdispparams)).into() } } - unsafe extern "system" fn DoInvokePIDLIE4(this: *mut core::ffi::c_void, dispid: i32, pidl: *mut Common::ITEMIDLIST, fcancancel: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DoInvokePIDLIE4(this: *mut core::ffi::c_void, dispid: i32, pidl: *mut Common::ITEMIDLIST, fcancancel: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); CIE4ConnectionPoint_Impl::DoInvokePIDLIE4(this, core::mem::transmute_copy(&dispid), core::mem::transmute_copy(&pidl), core::mem::transmute_copy(&fcancancel)).into() @@ -7865,7 +7865,7 @@ pub const DOGIF_TRAVERSE_LINK: DATAOBJ_GET_ITEM_FLAGS = DATAOBJ_GET_ITEM_FLAGS(1 pub struct DRAGINFOA { pub uSize: u32, pub pt: super::super::Foundation::POINT, - pub fNC: super::super::Foundation::BOOL, + pub fNC: windows_core::BOOL, pub lpFileList: windows_core::PSTR, pub grfKeyState: u32, } @@ -7881,7 +7881,7 @@ impl Default for DRAGINFOA { pub struct DRAGINFOA { pub uSize: u32, pub pt: super::super::Foundation::POINT, - pub fNC: super::super::Foundation::BOOL, + pub fNC: windows_core::BOOL, pub lpFileList: windows_core::PSTR, pub grfKeyState: u32, } @@ -7897,7 +7897,7 @@ impl Default for DRAGINFOA { pub struct DRAGINFOW { pub uSize: u32, pub pt: super::super::Foundation::POINT, - pub fNC: super::super::Foundation::BOOL, + pub fNC: windows_core::BOOL, pub lpFileList: windows_core::PWSTR, pub grfKeyState: u32, } @@ -7913,7 +7913,7 @@ impl Default for DRAGINFOW { pub struct DRAGINFOW { pub uSize: u32, pub pt: super::super::Foundation::POINT, - pub fNC: super::super::Foundation::BOOL, + pub fNC: windows_core::BOOL, pub lpFileList: windows_core::PWSTR, pub grfKeyState: u32, } @@ -7940,8 +7940,8 @@ impl Default for DROPDESCRIPTION { pub struct DROPFILES { pub pFiles: u32, pub pt: super::super::Foundation::POINT, - pub fNC: super::super::Foundation::BOOL, - pub fWide: super::super::Foundation::BOOL, + pub fNC: windows_core::BOOL, + pub fWide: windows_core::BOOL, } impl Default for DROPFILES { fn default() -> Self { @@ -11248,7 +11248,7 @@ impl IActionProgress { { unsafe { (windows_core::Interface::vtable(self).UpdateText)(windows_core::Interface::as_raw(self), sptext, psztext.param().abi(), fmaycompact.into()).ok() } } - pub unsafe fn QueryCancel(&self) -> windows_core::Result { + pub unsafe fn QueryCancel(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).QueryCancel)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -11266,16 +11266,16 @@ pub struct IActionProgress_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Begin: unsafe extern "system" fn(*mut core::ffi::c_void, SPACTION, u32) -> windows_core::HRESULT, pub UpdateProgress: unsafe extern "system" fn(*mut core::ffi::c_void, u64, u64) -> windows_core::HRESULT, - pub UpdateText: unsafe extern "system" fn(*mut core::ffi::c_void, SPTEXT, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub QueryCancel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub UpdateText: unsafe extern "system" fn(*mut core::ffi::c_void, SPTEXT, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, + pub QueryCancel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub ResetCancel: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub End: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IActionProgress_Impl: windows_core::IUnknownImpl { fn Begin(&self, action: SPACTION, flags: u32) -> windows_core::Result<()>; fn UpdateProgress(&self, ulcompleted: u64, ultotal: u64) -> windows_core::Result<()>; - fn UpdateText(&self, sptext: SPTEXT, psztext: &windows_core::PCWSTR, fmaycompact: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn QueryCancel(&self) -> windows_core::Result; + fn UpdateText(&self, sptext: SPTEXT, psztext: &windows_core::PCWSTR, fmaycompact: windows_core::BOOL) -> windows_core::Result<()>; + fn QueryCancel(&self) -> windows_core::Result; fn ResetCancel(&self) -> windows_core::Result<()>; fn End(&self) -> windows_core::Result<()>; } @@ -11293,13 +11293,13 @@ impl IActionProgress_Vtbl { IActionProgress_Impl::UpdateProgress(this, core::mem::transmute_copy(&ulcompleted), core::mem::transmute_copy(&ultotal)).into() } } - unsafe extern "system" fn UpdateText(this: *mut core::ffi::c_void, sptext: SPTEXT, psztext: windows_core::PCWSTR, fmaycompact: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn UpdateText(this: *mut core::ffi::c_void, sptext: SPTEXT, psztext: windows_core::PCWSTR, fmaycompact: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IActionProgress_Impl::UpdateText(this, core::mem::transmute_copy(&sptext), core::mem::transmute(&psztext), core::mem::transmute_copy(&fmaycompact)).into() } } - unsafe extern "system" fn QueryCancel(this: *mut core::ffi::c_void, pfcancelled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn QueryCancel(this: *mut core::ffi::c_void, pfcancelled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActionProgress_Impl::QueryCancel(this) { @@ -11405,7 +11405,7 @@ impl IAppActivationUIInfo { (windows_core::Interface::vtable(self).GetShowCommand)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetShowUI(&self) -> windows_core::Result { + pub unsafe fn GetShowUI(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetShowUI)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -11427,7 +11427,7 @@ pub struct IAppActivationUIInfo_Vtbl { GetMonitor: usize, pub GetInvokePoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::POINT) -> windows_core::HRESULT, pub GetShowCommand: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - pub GetShowUI: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetShowUI: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetKeyState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -11435,7 +11435,7 @@ pub trait IAppActivationUIInfo_Impl: windows_core::IUnknownImpl { fn GetMonitor(&self) -> windows_core::Result; fn GetInvokePoint(&self) -> windows_core::Result; fn GetShowCommand(&self) -> windows_core::Result; - fn GetShowUI(&self) -> windows_core::Result; + fn GetShowUI(&self) -> windows_core::Result; fn GetKeyState(&self) -> windows_core::Result; } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -11477,7 +11477,7 @@ impl IAppActivationUIInfo_Vtbl { } } } - unsafe extern "system" fn GetShowUI(this: *mut core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetShowUI(this: *mut core::ffi::c_void, value: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppActivationUIInfo_Impl::GetShowUI(this) { @@ -11631,7 +11631,7 @@ impl IAppVisibility { (windows_core::Interface::vtable(self).GetAppVisibilityOnMonitor)(windows_core::Interface::as_raw(self), hmonitor, &mut result__).map(|| result__) } } - pub unsafe fn IsLauncherVisible(&self) -> windows_core::Result { + pub unsafe fn IsLauncherVisible(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsLauncherVisible)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -11657,14 +11657,14 @@ pub struct IAppVisibility_Vtbl { pub GetAppVisibilityOnMonitor: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Graphics::Gdi::HMONITOR, *mut MONITOR_APP_VISIBILITY) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetAppVisibilityOnMonitor: usize, - pub IsLauncherVisible: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsLauncherVisible: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Advise: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub Unadvise: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Graphics_Gdi")] pub trait IAppVisibility_Impl: windows_core::IUnknownImpl { fn GetAppVisibilityOnMonitor(&self, hmonitor: super::super::Graphics::Gdi::HMONITOR) -> windows_core::Result; - fn IsLauncherVisible(&self) -> windows_core::Result; + fn IsLauncherVisible(&self) -> windows_core::Result; fn Advise(&self, pcallback: windows_core::Ref) -> windows_core::Result; fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()>; } @@ -11683,7 +11683,7 @@ impl IAppVisibility_Vtbl { } } } - unsafe extern "system" fn IsLauncherVisible(this: *mut core::ffi::c_void, pfvisible: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsLauncherVisible(this: *mut core::ffi::c_void, pfvisible: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAppVisibility_Impl::IsLauncherVisible(this) { @@ -11745,12 +11745,12 @@ pub struct IAppVisibilityEvents_Vtbl { pub AppVisibilityOnMonitorChanged: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Graphics::Gdi::HMONITOR, MONITOR_APP_VISIBILITY, MONITOR_APP_VISIBILITY) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] AppVisibilityOnMonitorChanged: usize, - pub LauncherVisibilityChange: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub LauncherVisibilityChange: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_Graphics_Gdi")] pub trait IAppVisibilityEvents_Impl: windows_core::IUnknownImpl { fn AppVisibilityOnMonitorChanged(&self, hmonitor: super::super::Graphics::Gdi::HMONITOR, previousmode: MONITOR_APP_VISIBILITY, currentmode: MONITOR_APP_VISIBILITY) -> windows_core::Result<()>; - fn LauncherVisibilityChange(&self, currentvisiblestate: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn LauncherVisibilityChange(&self, currentvisiblestate: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_Graphics_Gdi")] impl IAppVisibilityEvents_Vtbl { @@ -11761,7 +11761,7 @@ impl IAppVisibilityEvents_Vtbl { IAppVisibilityEvents_Impl::AppVisibilityOnMonitorChanged(this, core::mem::transmute_copy(&hmonitor), core::mem::transmute_copy(&previousmode), core::mem::transmute_copy(¤tmode)).into() } } - unsafe extern "system" fn LauncherVisibilityChange(this: *mut core::ffi::c_void, currentvisiblestate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn LauncherVisibilityChange(this: *mut core::ffi::c_void, currentvisiblestate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAppVisibilityEvents_Impl::LauncherVisibilityChange(this, core::mem::transmute_copy(¤tvisiblestate)).into() @@ -11888,7 +11888,7 @@ impl IApplicationAssociationRegistration { (windows_core::Interface::vtable(self).QueryCurrentDefault)(windows_core::Interface::as_raw(self), pszquery.param().abi(), atquerytype, alquerylevel, &mut result__).map(|| result__) } } - pub unsafe fn QueryAppIsDefault(&self, pszquery: P0, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: P3) -> windows_core::Result + pub unsafe fn QueryAppIsDefault(&self, pszquery: P0, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: P3) -> windows_core::Result where P0: windows_core::Param, P3: windows_core::Param, @@ -11898,7 +11898,7 @@ impl IApplicationAssociationRegistration { (windows_core::Interface::vtable(self).QueryAppIsDefault)(windows_core::Interface::as_raw(self), pszquery.param().abi(), atquerytype, alquerylevel, pszappregistryname.param().abi(), &mut result__).map(|| result__) } } - pub unsafe fn QueryAppIsDefaultAll(&self, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: P1) -> windows_core::Result + pub unsafe fn QueryAppIsDefaultAll(&self, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: P1) -> windows_core::Result where P1: windows_core::Param, { @@ -11928,16 +11928,16 @@ impl IApplicationAssociationRegistration { pub struct IApplicationAssociationRegistration_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub QueryCurrentDefault: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, ASSOCIATIONTYPE, ASSOCIATIONLEVEL, *mut windows_core::PWSTR) -> windows_core::HRESULT, - pub QueryAppIsDefault: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, ASSOCIATIONTYPE, ASSOCIATIONLEVEL, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub QueryAppIsDefaultAll: unsafe extern "system" fn(*mut core::ffi::c_void, ASSOCIATIONLEVEL, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub QueryAppIsDefault: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, ASSOCIATIONTYPE, ASSOCIATIONLEVEL, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub QueryAppIsDefaultAll: unsafe extern "system" fn(*mut core::ffi::c_void, ASSOCIATIONLEVEL, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetAppAsDefault: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, ASSOCIATIONTYPE) -> windows_core::HRESULT, pub SetAppAsDefaultAll: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub ClearUserAssociations: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IApplicationAssociationRegistration_Impl: windows_core::IUnknownImpl { fn QueryCurrentDefault(&self, pszquery: &windows_core::PCWSTR, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL) -> windows_core::Result; - fn QueryAppIsDefault(&self, pszquery: &windows_core::PCWSTR, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: &windows_core::PCWSTR) -> windows_core::Result; - fn QueryAppIsDefaultAll(&self, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: &windows_core::PCWSTR) -> windows_core::Result; + fn QueryAppIsDefault(&self, pszquery: &windows_core::PCWSTR, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: &windows_core::PCWSTR) -> windows_core::Result; + fn QueryAppIsDefaultAll(&self, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: &windows_core::PCWSTR) -> windows_core::Result; fn SetAppAsDefault(&self, pszappregistryname: &windows_core::PCWSTR, pszset: &windows_core::PCWSTR, atsettype: ASSOCIATIONTYPE) -> windows_core::Result<()>; fn SetAppAsDefaultAll(&self, pszappregistryname: &windows_core::PCWSTR) -> windows_core::Result<()>; fn ClearUserAssociations(&self) -> windows_core::Result<()>; @@ -11956,7 +11956,7 @@ impl IApplicationAssociationRegistration_Vtbl { } } } - unsafe extern "system" fn QueryAppIsDefault(this: *mut core::ffi::c_void, pszquery: windows_core::PCWSTR, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: windows_core::PCWSTR, pfdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn QueryAppIsDefault(this: *mut core::ffi::c_void, pszquery: windows_core::PCWSTR, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: windows_core::PCWSTR, pfdefault: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApplicationAssociationRegistration_Impl::QueryAppIsDefault(this, core::mem::transmute(&pszquery), core::mem::transmute_copy(&atquerytype), core::mem::transmute_copy(&alquerylevel), core::mem::transmute(&pszappregistryname)) { @@ -11968,7 +11968,7 @@ impl IApplicationAssociationRegistration_Vtbl { } } } - unsafe extern "system" fn QueryAppIsDefaultAll(this: *mut core::ffi::c_void, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: windows_core::PCWSTR, pfdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn QueryAppIsDefaultAll(this: *mut core::ffi::c_void, alquerylevel: ASSOCIATIONLEVEL, pszappregistryname: windows_core::PCWSTR, pfdefault: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApplicationAssociationRegistration_Impl::QueryAppIsDefaultAll(this, core::mem::transmute_copy(&alquerylevel), core::mem::transmute(&pszappregistryname)) { @@ -12066,7 +12066,7 @@ impl IApplicationDesignModeSettings { } } #[cfg(feature = "Win32_UI_Shell_Common")] - pub unsafe fn IsApplicationViewStateSupported(&self, viewstate: APPLICATION_VIEW_STATE, nativedisplaysizepixels: super::super::Foundation::SIZE, scalefactor: Common::DEVICE_SCALE_FACTOR) -> windows_core::Result { + pub unsafe fn IsApplicationViewStateSupported(&self, viewstate: APPLICATION_VIEW_STATE, nativedisplaysizepixels: super::super::Foundation::SIZE, scalefactor: Common::DEVICE_SCALE_FACTOR) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsApplicationViewStateSupported)(windows_core::Interface::as_raw(self), viewstate, core::mem::transmute(nativedisplaysizepixels), scalefactor, &mut result__).map(|| result__) @@ -12087,7 +12087,7 @@ pub struct IApplicationDesignModeSettings_Vtbl { pub SetApplicationViewState: unsafe extern "system" fn(*mut core::ffi::c_void, APPLICATION_VIEW_STATE) -> windows_core::HRESULT, pub ComputeApplicationSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::SIZE) -> windows_core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] - pub IsApplicationViewStateSupported: unsafe extern "system" fn(*mut core::ffi::c_void, APPLICATION_VIEW_STATE, super::super::Foundation::SIZE, Common::DEVICE_SCALE_FACTOR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsApplicationViewStateSupported: unsafe extern "system" fn(*mut core::ffi::c_void, APPLICATION_VIEW_STATE, super::super::Foundation::SIZE, Common::DEVICE_SCALE_FACTOR, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] IsApplicationViewStateSupported: usize, pub TriggerEdgeGesture: unsafe extern "system" fn(*mut core::ffi::c_void, EDGE_GESTURE_KIND) -> windows_core::HRESULT, @@ -12098,7 +12098,7 @@ pub trait IApplicationDesignModeSettings_Impl: windows_core::IUnknownImpl { fn SetScaleFactor(&self, scalefactor: Common::DEVICE_SCALE_FACTOR) -> windows_core::Result<()>; fn SetApplicationViewState(&self, viewstate: APPLICATION_VIEW_STATE) -> windows_core::Result<()>; fn ComputeApplicationSize(&self) -> windows_core::Result; - fn IsApplicationViewStateSupported(&self, viewstate: APPLICATION_VIEW_STATE, nativedisplaysizepixels: &super::super::Foundation::SIZE, scalefactor: Common::DEVICE_SCALE_FACTOR) -> windows_core::Result; + fn IsApplicationViewStateSupported(&self, viewstate: APPLICATION_VIEW_STATE, nativedisplaysizepixels: &super::super::Foundation::SIZE, scalefactor: Common::DEVICE_SCALE_FACTOR) -> windows_core::Result; fn TriggerEdgeGesture(&self, edgegesturekind: EDGE_GESTURE_KIND) -> windows_core::Result<()>; } #[cfg(feature = "Win32_UI_Shell_Common")] @@ -12134,7 +12134,7 @@ impl IApplicationDesignModeSettings_Vtbl { } } } - unsafe extern "system" fn IsApplicationViewStateSupported(this: *mut core::ffi::c_void, viewstate: APPLICATION_VIEW_STATE, nativedisplaysizepixels: super::super::Foundation::SIZE, scalefactor: Common::DEVICE_SCALE_FACTOR, supported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsApplicationViewStateSupported(this: *mut core::ffi::c_void, viewstate: APPLICATION_VIEW_STATE, nativedisplaysizepixels: super::super::Foundation::SIZE, scalefactor: Common::DEVICE_SCALE_FACTOR, supported: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IApplicationDesignModeSettings_Impl::IsApplicationViewStateSupported(this, core::mem::transmute_copy(&viewstate), core::mem::transmute(&nativedisplaysizepixels), core::mem::transmute_copy(&scalefactor)) { @@ -12208,7 +12208,7 @@ pub struct IApplicationDesignModeSettings2_Vtbl { pub SetNativeDisplayOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, NATIVE_DISPLAY_ORIENTATION) -> windows_core::HRESULT, pub SetApplicationViewOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, APPLICATION_VIEW_ORIENTATION) -> windows_core::HRESULT, pub SetAdjacentDisplayEdges: unsafe extern "system" fn(*mut core::ffi::c_void, ADJACENT_DISPLAY_EDGES) -> windows_core::HRESULT, - pub SetIsOnLockScreen: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetIsOnLockScreen: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetApplicationViewMinWidth: unsafe extern "system" fn(*mut core::ffi::c_void, APPLICATION_VIEW_MIN_WIDTH) -> windows_core::HRESULT, pub GetApplicationSizeBounds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::SIZE, *mut super::super::Foundation::SIZE) -> windows_core::HRESULT, pub GetApplicationViewOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::SIZE, *mut APPLICATION_VIEW_ORIENTATION) -> windows_core::HRESULT, @@ -12218,7 +12218,7 @@ pub trait IApplicationDesignModeSettings2_Impl: IApplicationDesignModeSettings_I fn SetNativeDisplayOrientation(&self, nativedisplayorientation: NATIVE_DISPLAY_ORIENTATION) -> windows_core::Result<()>; fn SetApplicationViewOrientation(&self, vieworientation: APPLICATION_VIEW_ORIENTATION) -> windows_core::Result<()>; fn SetAdjacentDisplayEdges(&self, adjacentdisplayedges: ADJACENT_DISPLAY_EDGES) -> windows_core::Result<()>; - fn SetIsOnLockScreen(&self, isonlockscreen: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetIsOnLockScreen(&self, isonlockscreen: windows_core::BOOL) -> windows_core::Result<()>; fn SetApplicationViewMinWidth(&self, viewminwidth: APPLICATION_VIEW_MIN_WIDTH) -> windows_core::Result<()>; fn GetApplicationSizeBounds(&self, minapplicationsizepixels: *mut super::super::Foundation::SIZE, maxapplicationsizepixels: *mut super::super::Foundation::SIZE) -> windows_core::Result<()>; fn GetApplicationViewOrientation(&self, applicationsizepixels: &super::super::Foundation::SIZE) -> windows_core::Result; @@ -12244,7 +12244,7 @@ impl IApplicationDesignModeSettings2_Vtbl { IApplicationDesignModeSettings2_Impl::SetAdjacentDisplayEdges(this, core::mem::transmute_copy(&adjacentdisplayedges)).into() } } - unsafe extern "system" fn SetIsOnLockScreen(this: *mut core::ffi::c_void, isonlockscreen: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetIsOnLockScreen(this: *mut core::ffi::c_void, isonlockscreen: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IApplicationDesignModeSettings2_Impl::SetIsOnLockScreen(this, core::mem::transmute_copy(&isonlockscreen)).into() @@ -12810,11 +12810,11 @@ impl IAutoComplete { pub struct IAutoComplete_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Init: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, - pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IAutoComplete_Impl: windows_core::IUnknownImpl { fn Init(&self, hwndedit: super::super::Foundation::HWND, punkacl: windows_core::Ref, pwszregkeypath: &windows_core::PCWSTR, pwszquickcomplete: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn Enable(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Enable(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; } impl IAutoComplete_Vtbl { pub const fn new() -> Self { @@ -12824,7 +12824,7 @@ impl IAutoComplete_Vtbl { IAutoComplete_Impl::Init(this, core::mem::transmute_copy(&hwndedit), core::mem::transmute_copy(&punkacl), core::mem::transmute(&pwszregkeypath), core::mem::transmute(&pwszquickcomplete)).into() } } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IAutoComplete_Impl::Enable(this, core::mem::transmute_copy(&fenable)).into() @@ -12958,24 +12958,24 @@ impl IBandHost { #[repr(C)] pub struct IBandHost_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub CreateBand: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, super::super::Foundation::BOOL, super::super::Foundation::BOOL, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetBandAvailability: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CreateBand: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, windows_core::BOOL, windows_core::BOOL, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub SetBandAvailability: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, windows_core::BOOL) -> windows_core::HRESULT, pub DestroyBand: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID) -> windows_core::HRESULT, } pub trait IBandHost_Impl: windows_core::IUnknownImpl { - fn CreateBand(&self, rclsidband: *const windows_core::GUID, favailable: super::super::Foundation::BOOL, fvisible: super::super::Foundation::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; - fn SetBandAvailability(&self, rclsidband: *const windows_core::GUID, favailable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn CreateBand(&self, rclsidband: *const windows_core::GUID, favailable: windows_core::BOOL, fvisible: windows_core::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; + fn SetBandAvailability(&self, rclsidband: *const windows_core::GUID, favailable: windows_core::BOOL) -> windows_core::Result<()>; fn DestroyBand(&self, rclsidband: *const windows_core::GUID) -> windows_core::Result<()>; } impl IBandHost_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CreateBand(this: *mut core::ffi::c_void, rclsidband: *const windows_core::GUID, favailable: super::super::Foundation::BOOL, fvisible: super::super::Foundation::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateBand(this: *mut core::ffi::c_void, rclsidband: *const windows_core::GUID, favailable: windows_core::BOOL, fvisible: windows_core::BOOL, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBandHost_Impl::CreateBand(this, core::mem::transmute_copy(&rclsidband), core::mem::transmute_copy(&favailable), core::mem::transmute_copy(&fvisible), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } } - unsafe extern "system" fn SetBandAvailability(this: *mut core::ffi::c_void, rclsidband: *const windows_core::GUID, favailable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetBandAvailability(this: *mut core::ffi::c_void, rclsidband: *const windows_core::GUID, favailable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBandHost_Impl::SetBandAvailability(this, core::mem::transmute_copy(&rclsidband), core::mem::transmute_copy(&favailable)).into() @@ -13347,7 +13347,7 @@ impl IBrowserService { pub unsafe fn ShowControlWindow(&self, id: u32, fshow: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).ShowControlWindow)(windows_core::Interface::as_raw(self), id, fshow.into()).ok() } } - pub unsafe fn IsControlWindowShown(&self, id: u32) -> windows_core::Result { + pub unsafe fn IsControlWindowShown(&self, id: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsControlWindowShown)(windows_core::Interface::as_raw(self), id, &mut result__).map(|| result__) @@ -13387,7 +13387,7 @@ impl IBrowserService { } } #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] - pub unsafe fn NotifyRedirect(&self, psv: P0, pidl: *const Common::ITEMIDLIST) -> windows_core::Result + pub unsafe fn NotifyRedirect(&self, psv: P0, pidl: *const Common::ITEMIDLIST) -> windows_core::Result where P0: windows_core::Param, { @@ -13500,8 +13500,8 @@ pub struct IBrowserService_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] GetOleObject: usize, pub GetTravelLog: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub ShowControlWindow: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsControlWindowShown: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ShowControlWindow: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, + pub IsControlWindowShown: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub IEGetDisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *const Common::ITEMIDLIST, windows_core::PWSTR, u32) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] @@ -13518,7 +13518,7 @@ pub struct IBrowserService_Vtbl { pub SetNavigateState: unsafe extern "system" fn(*mut core::ffi::c_void, BNSTATE) -> windows_core::HRESULT, pub GetNavigateState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut BNSTATE) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))] - pub NotifyRedirect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const Common::ITEMIDLIST, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub NotifyRedirect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const Common::ITEMIDLIST, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common")))] NotifyRedirect: usize, pub UpdateWindowList: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -13541,7 +13541,7 @@ pub struct IBrowserService_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetHistoryObject: usize, #[cfg(feature = "Win32_System_Ole")] - pub SetHistoryObject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetHistoryObject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] SetHistoryObject: usize, #[cfg(feature = "Win32_System_Ole")] @@ -13553,14 +13553,14 @@ pub struct IBrowserService_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetSetCodePage: usize, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] - pub OnHttpEquiv: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *const super::super::System::Variant::VARIANT, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, + pub OnHttpEquiv: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *const super::super::System::Variant::VARIANT, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] OnHttpEquiv: usize, #[cfg(feature = "Win32_Graphics_Gdi")] pub GetPalette: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Graphics::Gdi::HPALETTE) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetPalette: usize, - pub RegisterWindow: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, ShellWindowTypeConstants) -> windows_core::HRESULT, + pub RegisterWindow: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, ShellWindowTypeConstants) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_Common"))] pub trait IBrowserService_Impl: windows_core::IUnknownImpl { @@ -13569,15 +13569,15 @@ pub trait IBrowserService_Impl: windows_core::IUnknownImpl { fn GetTitle(&self, psv: windows_core::Ref, pszname: windows_core::PWSTR, cchname: u32) -> windows_core::Result<()>; fn GetOleObject(&self) -> windows_core::Result; fn GetTravelLog(&self) -> windows_core::Result; - fn ShowControlWindow(&self, id: u32, fshow: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn IsControlWindowShown(&self, id: u32) -> windows_core::Result; + fn ShowControlWindow(&self, id: u32, fshow: windows_core::BOOL) -> windows_core::Result<()>; + fn IsControlWindowShown(&self, id: u32) -> windows_core::Result; fn IEGetDisplayName(&self, pidl: *const Common::ITEMIDLIST, pwszname: windows_core::PWSTR, uflags: u32) -> windows_core::Result<()>; fn IEParseDisplayName(&self, uicp: u32, pwszpath: &windows_core::PCWSTR) -> windows_core::Result<*mut Common::ITEMIDLIST>; fn DisplayParseError(&self, hres: windows_core::HRESULT, pwszpath: &windows_core::PCWSTR) -> windows_core::Result<()>; fn NavigateToPidl(&self, pidl: *const Common::ITEMIDLIST, grfhlnf: u32) -> windows_core::Result<()>; fn SetNavigateState(&self, bnstate: BNSTATE) -> windows_core::Result<()>; fn GetNavigateState(&self) -> windows_core::Result; - fn NotifyRedirect(&self, psv: windows_core::Ref, pidl: *const Common::ITEMIDLIST) -> windows_core::Result; + fn NotifyRedirect(&self, psv: windows_core::Ref, pidl: *const Common::ITEMIDLIST) -> windows_core::Result; fn UpdateWindowList(&self) -> windows_core::Result<()>; fn UpdateBackForwardState(&self) -> windows_core::Result<()>; fn SetFlags(&self, dwflags: u32, dwflagmask: u32) -> windows_core::Result<()>; @@ -13588,12 +13588,12 @@ pub trait IBrowserService_Impl: windows_core::IUnknownImpl { fn GetBrowserIndex(&self) -> u32; fn GetBrowserByIndex(&self, dwid: u32) -> windows_core::Result; fn GetHistoryObject(&self, ppole: windows_core::OutRef<'_, super::super::System::Ole::IOleObject>, pstm: windows_core::OutRef<'_, super::super::System::Com::IStream>, ppbc: windows_core::OutRef<'_, super::super::System::Com::IBindCtx>) -> windows_core::Result<()>; - fn SetHistoryObject(&self, pole: windows_core::Ref, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetHistoryObject(&self, pole: windows_core::Ref, fislocalanchor: windows_core::BOOL) -> windows_core::Result<()>; fn CacheOLEServer(&self, pole: windows_core::Ref) -> windows_core::Result<()>; fn GetSetCodePage(&self, pvarin: *const super::super::System::Variant::VARIANT) -> windows_core::Result; - fn OnHttpEquiv(&self, psv: windows_core::Ref, fdone: super::super::Foundation::BOOL, pvarargin: *const super::super::System::Variant::VARIANT) -> windows_core::Result; + fn OnHttpEquiv(&self, psv: windows_core::Ref, fdone: windows_core::BOOL, pvarargin: *const super::super::System::Variant::VARIANT) -> windows_core::Result; fn GetPalette(&self) -> windows_core::Result; - fn RegisterWindow(&self, fforceregister: super::super::Foundation::BOOL, swc: ShellWindowTypeConstants) -> windows_core::Result<()>; + fn RegisterWindow(&self, fforceregister: windows_core::BOOL, swc: ShellWindowTypeConstants) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_Common"))] impl IBrowserService_Vtbl { @@ -13646,13 +13646,13 @@ impl IBrowserService_Vtbl { } } } - unsafe extern "system" fn ShowControlWindow(this: *mut core::ffi::c_void, id: u32, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ShowControlWindow(this: *mut core::ffi::c_void, id: u32, fshow: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::ShowControlWindow(this, core::mem::transmute_copy(&id), core::mem::transmute_copy(&fshow)).into() } } - unsafe extern "system" fn IsControlWindowShown(this: *mut core::ffi::c_void, id: u32, pfshown: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsControlWindowShown(this: *mut core::ffi::c_void, id: u32, pfshown: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService_Impl::IsControlWindowShown(this, core::mem::transmute_copy(&id)) { @@ -13712,7 +13712,7 @@ impl IBrowserService_Vtbl { } } } - unsafe extern "system" fn NotifyRedirect(this: *mut core::ffi::c_void, psv: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pfdidbrowse: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn NotifyRedirect(this: *mut core::ffi::c_void, psv: *mut core::ffi::c_void, pidl: *const Common::ITEMIDLIST, pfdidbrowse: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService_Impl::NotifyRedirect(this, core::mem::transmute_copy(&psv), core::mem::transmute_copy(&pidl)) { @@ -13802,7 +13802,7 @@ impl IBrowserService_Vtbl { IBrowserService_Impl::GetHistoryObject(this, core::mem::transmute_copy(&ppole), core::mem::transmute_copy(&pstm), core::mem::transmute_copy(&ppbc)).into() } } - unsafe extern "system" fn SetHistoryObject(this: *mut core::ffi::c_void, pole: *mut core::ffi::c_void, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetHistoryObject(this: *mut core::ffi::c_void, pole: *mut core::ffi::c_void, fislocalanchor: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::SetHistoryObject(this, core::mem::transmute_copy(&pole), core::mem::transmute_copy(&fislocalanchor)).into() @@ -13826,7 +13826,7 @@ impl IBrowserService_Vtbl { } } } - unsafe extern "system" fn OnHttpEquiv(this: *mut core::ffi::c_void, psv: *mut core::ffi::c_void, fdone: super::super::Foundation::BOOL, pvarargin: *const super::super::System::Variant::VARIANT, pvarargout: *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT { + unsafe extern "system" fn OnHttpEquiv(this: *mut core::ffi::c_void, psv: *mut core::ffi::c_void, fdone: windows_core::BOOL, pvarargin: *const super::super::System::Variant::VARIANT, pvarargout: *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IBrowserService_Impl::OnHttpEquiv(this, core::mem::transmute_copy(&psv), core::mem::transmute_copy(&fdone), core::mem::transmute_copy(&pvarargin)) { @@ -13850,7 +13850,7 @@ impl IBrowserService_Vtbl { } } } - unsafe extern "system" fn RegisterWindow(this: *mut core::ffi::c_void, fforceregister: super::super::Foundation::BOOL, swc: ShellWindowTypeConstants) -> windows_core::HRESULT { + unsafe extern "system" fn RegisterWindow(this: *mut core::ffi::c_void, fforceregister: windows_core::BOOL, swc: ShellWindowTypeConstants) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService_Impl::RegisterWindow(this, core::mem::transmute_copy(&fforceregister), core::mem::transmute_copy(&swc)).into() @@ -14171,7 +14171,7 @@ pub struct IBrowserService2_Vtbl { #[cfg(not(feature = "Win32_UI_Controls"))] OnNotify: usize, pub OnSetFocus: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub OnFrameWindowActivateBS: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnFrameWindowActivateBS: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub ReleaseShellView: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub ActivatePendingView: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Ole")] @@ -14191,7 +14191,7 @@ pub struct IBrowserService2_Vtbl { pub InitializeTravelLog: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub SetTopBrowser: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Offline: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, - pub AllowViewResize: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AllowViewResize: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetActivateState: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub UpdateSecureLockIcon: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub InitializeDownloadManager: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -14200,7 +14200,7 @@ pub struct IBrowserService2_Vtbl { pub _CancelPendingNavigationAsync: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub _CancelPendingView: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub _MaySaveChanges: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub _PauseOrResumeView: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub _PauseOrResumeView: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub _DisableModeless: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub _NavigateToPidl2: unsafe extern "system" fn(*mut core::ffi::c_void, *const Common::ITEMIDLIST, u32, u32) -> windows_core::HRESULT, @@ -14212,13 +14212,13 @@ pub struct IBrowserService2_Vtbl { _TryShell2Rename: usize, pub _SwitchActivationNow: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] - pub _ExecChildren: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *const windows_core::GUID, u32, u32, *const super::super::System::Variant::VARIANT, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, + pub _ExecChildren: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *const windows_core::GUID, u32, u32, *const super::super::System::Variant::VARIANT, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] _ExecChildren: usize, - pub _SendChildren: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, super::super::Foundation::BOOL, u32, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM) -> windows_core::HRESULT, + pub _SendChildren: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, windows_core::BOOL, u32, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM) -> windows_core::HRESULT, pub GetFolderSetData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut FOLDERSETDATA) -> windows_core::HRESULT, pub _OnFocusChange: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub v_ShowHideChildWindows: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub v_ShowHideChildWindows: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub _get_itbLastFocus: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, pub _put_itbLastFocus: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub _UIActivateView: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -14252,12 +14252,12 @@ pub struct IBrowserService2_Vtbl { pub _LoadToolbars: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] _LoadToolbars: usize, - pub _CloseAndReleaseToolbars: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub _CloseAndReleaseToolbars: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging"))] pub v_MayGetNextToolbarFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::WindowsAndMessaging::MSG, u32, i32, *mut *mut TOOLBARITEM, *mut super::super::Foundation::HWND) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging")))] v_MayGetNextToolbarFocus: usize, - pub _ResizeNextBorderHelper: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub _ResizeNextBorderHelper: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, pub _FindTBar: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> u32, #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging"))] pub _SetFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *const TOOLBARITEM, super::super::Foundation::HWND, *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT, @@ -14267,7 +14267,7 @@ pub struct IBrowserService2_Vtbl { pub v_MayTranslateAccelerator: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::WindowsAndMessaging::MSG) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] v_MayTranslateAccelerator: usize, - pub _GetBorderDWHelper: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::RECT, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub _GetBorderDWHelper: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::RECT, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub v_CheckZoneCrossing: unsafe extern "system" fn(*mut core::ffi::c_void, *const Common::ITEMIDLIST) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] @@ -14284,7 +14284,7 @@ pub trait IBrowserService2_Impl: IBrowserService_Impl { fn OnDestroy(&self) -> windows_core::Result<()>; fn OnNotify(&self, pnm: *const super::Controls::NMHDR) -> super::super::Foundation::LRESULT; fn OnSetFocus(&self) -> windows_core::Result<()>; - fn OnFrameWindowActivateBS(&self, factive: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnFrameWindowActivateBS(&self, factive: windows_core::BOOL) -> windows_core::Result<()>; fn ReleaseShellView(&self) -> windows_core::Result<()>; fn ActivatePendingView(&self) -> windows_core::Result<()>; fn CreateViewWindow(&self, psvnew: windows_core::Ref, psvold: windows_core::Ref, prcview: *const super::super::Foundation::RECT) -> windows_core::Result; @@ -14295,7 +14295,7 @@ pub trait IBrowserService2_Impl: IBrowserService_Impl { fn InitializeTravelLog(&self, ptl: windows_core::Ref, dw: u32) -> windows_core::Result<()>; fn SetTopBrowser(&self) -> windows_core::Result<()>; fn Offline(&self, icmd: i32) -> windows_core::Result<()>; - fn AllowViewResize(&self, f: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn AllowViewResize(&self, f: windows_core::BOOL) -> windows_core::Result<()>; fn SetActivateState(&self, u: u32) -> windows_core::Result<()>; fn UpdateSecureLockIcon(&self, esecurelock: i32) -> windows_core::Result<()>; fn InitializeDownloadManager(&self) -> windows_core::Result<()>; @@ -14304,16 +14304,16 @@ pub trait IBrowserService2_Impl: IBrowserService_Impl { fn _CancelPendingNavigationAsync(&self) -> windows_core::Result<()>; fn _CancelPendingView(&self) -> windows_core::Result<()>; fn _MaySaveChanges(&self) -> windows_core::Result<()>; - fn _PauseOrResumeView(&self, fpaused: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn _PauseOrResumeView(&self, fpaused: windows_core::BOOL) -> windows_core::Result<()>; fn _DisableModeless(&self) -> windows_core::Result<()>; fn _NavigateToPidl2(&self, pidl: *const Common::ITEMIDLIST, grfhlnf: u32, dwflags: u32) -> windows_core::Result<()>; fn _TryShell2Rename(&self, psv: windows_core::Ref, pidlnew: *const Common::ITEMIDLIST) -> windows_core::Result<()>; fn _SwitchActivationNow(&self) -> windows_core::Result<()>; - fn _ExecChildren(&self, punkbar: windows_core::Ref, fbroadcast: super::super::Foundation::BOOL, pguidcmdgroup: *const windows_core::GUID, ncmdid: u32, ncmdexecopt: u32, pvarargin: *const super::super::System::Variant::VARIANT, pvarargout: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()>; - fn _SendChildren(&self, hwndbar: super::super::Foundation::HWND, fbroadcast: super::super::Foundation::BOOL, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; + fn _ExecChildren(&self, punkbar: windows_core::Ref, fbroadcast: windows_core::BOOL, pguidcmdgroup: *const windows_core::GUID, ncmdid: u32, ncmdexecopt: u32, pvarargin: *const super::super::System::Variant::VARIANT, pvarargout: *mut super::super::System::Variant::VARIANT) -> windows_core::Result<()>; + fn _SendChildren(&self, hwndbar: super::super::Foundation::HWND, fbroadcast: windows_core::BOOL, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()>; fn GetFolderSetData(&self, pfsd: *mut FOLDERSETDATA) -> windows_core::Result<()>; fn _OnFocusChange(&self, itb: u32) -> windows_core::Result<()>; - fn v_ShowHideChildWindows(&self, fchildonly: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn v_ShowHideChildWindows(&self, fchildonly: windows_core::BOOL) -> windows_core::Result<()>; fn _get_itbLastFocus(&self) -> u32; fn _put_itbLastFocus(&self, itblastfocus: u32) -> windows_core::Result<()>; fn _UIActivateView(&self, ustate: u32) -> windows_core::Result<()>; @@ -14329,13 +14329,13 @@ pub trait IBrowserService2_Impl: IBrowserService_Impl { fn _GetToolbarItem(&self, itb: i32) -> *mut TOOLBARITEM; fn _SaveToolbars(&self, pstm: windows_core::Ref) -> windows_core::Result<()>; fn _LoadToolbars(&self, pstm: windows_core::Ref) -> windows_core::Result<()>; - fn _CloseAndReleaseToolbars(&self, fclose: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn _CloseAndReleaseToolbars(&self, fclose: windows_core::BOOL) -> windows_core::Result<()>; fn v_MayGetNextToolbarFocus(&self, lpmsg: *const super::WindowsAndMessaging::MSG, itbnext: u32, citb: i32, pptbi: *mut *mut TOOLBARITEM, phwnd: *mut super::super::Foundation::HWND) -> windows_core::Result<()>; - fn _ResizeNextBorderHelper(&self, itb: u32, busehmonitor: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn _ResizeNextBorderHelper(&self, itb: u32, busehmonitor: windows_core::BOOL) -> windows_core::Result<()>; fn _FindTBar(&self, punksrc: windows_core::Ref) -> u32; fn _SetFocus(&self, ptbi: *const TOOLBARITEM, hwnd: super::super::Foundation::HWND, lpmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()>; fn v_MayTranslateAccelerator(&self, pmsg: *mut super::WindowsAndMessaging::MSG) -> windows_core::Result<()>; - fn _GetBorderDWHelper(&self, punksrc: windows_core::Ref, lprectborder: *mut super::super::Foundation::RECT, busehmonitor: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn _GetBorderDWHelper(&self, punksrc: windows_core::Ref, lprectborder: *mut super::super::Foundation::RECT, busehmonitor: windows_core::BOOL) -> windows_core::Result<()>; fn v_CheckZoneCrossing(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant", feature = "Win32_UI_Controls", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] @@ -14401,7 +14401,7 @@ impl IBrowserService2_Vtbl { IBrowserService2_Impl::OnSetFocus(this).into() } } - unsafe extern "system" fn OnFrameWindowActivateBS(this: *mut core::ffi::c_void, factive: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnFrameWindowActivateBS(this: *mut core::ffi::c_void, factive: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::OnFrameWindowActivateBS(this, core::mem::transmute_copy(&factive)).into() @@ -14485,7 +14485,7 @@ impl IBrowserService2_Vtbl { IBrowserService2_Impl::Offline(this, core::mem::transmute_copy(&icmd)).into() } } - unsafe extern "system" fn AllowViewResize(this: *mut core::ffi::c_void, f: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AllowViewResize(this: *mut core::ffi::c_void, f: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::AllowViewResize(this, core::mem::transmute_copy(&f)).into() @@ -14539,7 +14539,7 @@ impl IBrowserService2_Vtbl { IBrowserService2_Impl::_MaySaveChanges(this).into() } } - unsafe extern "system" fn _PauseOrResumeView(this: *mut core::ffi::c_void, fpaused: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn _PauseOrResumeView(this: *mut core::ffi::c_void, fpaused: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_PauseOrResumeView(this, core::mem::transmute_copy(&fpaused)).into() @@ -14569,13 +14569,13 @@ impl IBrowserService2_Vtbl { IBrowserService2_Impl::_SwitchActivationNow(this).into() } } - unsafe extern "system" fn _ExecChildren(this: *mut core::ffi::c_void, punkbar: *mut core::ffi::c_void, fbroadcast: super::super::Foundation::BOOL, pguidcmdgroup: *const windows_core::GUID, ncmdid: u32, ncmdexecopt: u32, pvarargin: *const super::super::System::Variant::VARIANT, pvarargout: *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT { + unsafe extern "system" fn _ExecChildren(this: *mut core::ffi::c_void, punkbar: *mut core::ffi::c_void, fbroadcast: windows_core::BOOL, pguidcmdgroup: *const windows_core::GUID, ncmdid: u32, ncmdexecopt: u32, pvarargin: *const super::super::System::Variant::VARIANT, pvarargout: *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_ExecChildren(this, core::mem::transmute_copy(&punkbar), core::mem::transmute_copy(&fbroadcast), core::mem::transmute_copy(&pguidcmdgroup), core::mem::transmute_copy(&ncmdid), core::mem::transmute_copy(&ncmdexecopt), core::mem::transmute_copy(&pvarargin), core::mem::transmute_copy(&pvarargout)).into() } } - unsafe extern "system" fn _SendChildren(this: *mut core::ffi::c_void, hwndbar: super::super::Foundation::HWND, fbroadcast: super::super::Foundation::BOOL, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { + unsafe extern "system" fn _SendChildren(this: *mut core::ffi::c_void, hwndbar: super::super::Foundation::HWND, fbroadcast: windows_core::BOOL, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_SendChildren(this, core::mem::transmute_copy(&hwndbar), core::mem::transmute_copy(&fbroadcast), core::mem::transmute_copy(&umsg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)).into() @@ -14593,7 +14593,7 @@ impl IBrowserService2_Vtbl { IBrowserService2_Impl::_OnFocusChange(this, core::mem::transmute_copy(&itb)).into() } } - unsafe extern "system" fn v_ShowHideChildWindows(this: *mut core::ffi::c_void, fchildonly: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn v_ShowHideChildWindows(this: *mut core::ffi::c_void, fchildonly: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::v_ShowHideChildWindows(this, core::mem::transmute_copy(&fchildonly)).into() @@ -14689,7 +14689,7 @@ impl IBrowserService2_Vtbl { IBrowserService2_Impl::_LoadToolbars(this, core::mem::transmute_copy(&pstm)).into() } } - unsafe extern "system" fn _CloseAndReleaseToolbars(this: *mut core::ffi::c_void, fclose: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn _CloseAndReleaseToolbars(this: *mut core::ffi::c_void, fclose: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_CloseAndReleaseToolbars(this, core::mem::transmute_copy(&fclose)).into() @@ -14701,7 +14701,7 @@ impl IBrowserService2_Vtbl { IBrowserService2_Impl::v_MayGetNextToolbarFocus(this, core::mem::transmute_copy(&lpmsg), core::mem::transmute_copy(&itbnext), core::mem::transmute_copy(&citb), core::mem::transmute_copy(&pptbi), core::mem::transmute_copy(&phwnd)).into() } } - unsafe extern "system" fn _ResizeNextBorderHelper(this: *mut core::ffi::c_void, itb: u32, busehmonitor: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn _ResizeNextBorderHelper(this: *mut core::ffi::c_void, itb: u32, busehmonitor: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_ResizeNextBorderHelper(this, core::mem::transmute_copy(&itb), core::mem::transmute_copy(&busehmonitor)).into() @@ -14725,7 +14725,7 @@ impl IBrowserService2_Vtbl { IBrowserService2_Impl::v_MayTranslateAccelerator(this, core::mem::transmute_copy(&pmsg)).into() } } - unsafe extern "system" fn _GetBorderDWHelper(this: *mut core::ffi::c_void, punksrc: *mut core::ffi::c_void, lprectborder: *mut super::super::Foundation::RECT, busehmonitor: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn _GetBorderDWHelper(this: *mut core::ffi::c_void, punksrc: *mut core::ffi::c_void, lprectborder: *mut super::super::Foundation::RECT, busehmonitor: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService2_Impl::_GetBorderDWHelper(this, core::mem::transmute_copy(&punksrc), core::mem::transmute_copy(&lprectborder), core::mem::transmute_copy(&busehmonitor)).into() @@ -14901,20 +14901,20 @@ impl IBrowserService4 { #[repr(C)] pub struct IBrowserService4_Vtbl { pub base__: IBrowserService3_Vtbl, - pub ActivateView: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ActivateView: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SaveViewState: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub _ResizeAllBorders: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant", feature = "Win32_UI_Controls", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] pub trait IBrowserService4_Impl: IBrowserService3_Impl { - fn ActivateView(&self, fpendingview: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ActivateView(&self, fpendingview: windows_core::BOOL) -> windows_core::Result<()>; fn SaveViewState(&self) -> windows_core::Result<()>; fn _ResizeAllBorders(&self) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant", feature = "Win32_UI_Controls", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl IBrowserService4_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn ActivateView(this: *mut core::ffi::c_void, fpendingview: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ActivateView(this: *mut core::ffi::c_void, fpendingview: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IBrowserService4_Impl::ActivateView(this, core::mem::transmute_copy(&fpendingview)).into() @@ -14954,7 +14954,7 @@ impl ICDBurn { pub unsafe fn Burn(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Burn)(windows_core::Interface::as_raw(self), hwnd).ok() } } - pub unsafe fn HasRecordableDrive(&self) -> windows_core::Result { + pub unsafe fn HasRecordableDrive(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HasRecordableDrive)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -14966,12 +14966,12 @@ pub struct ICDBurn_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetRecorderDriveLetter: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PWSTR, u32) -> windows_core::HRESULT, pub Burn: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND) -> windows_core::HRESULT, - pub HasRecordableDrive: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub HasRecordableDrive: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ICDBurn_Impl: windows_core::IUnknownImpl { fn GetRecorderDriveLetter(&self, pszdrive: windows_core::PWSTR, cch: u32) -> windows_core::Result<()>; fn Burn(&self, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; - fn HasRecordableDrive(&self) -> windows_core::Result; + fn HasRecordableDrive(&self) -> windows_core::Result; } impl ICDBurn_Vtbl { pub const fn new() -> Self { @@ -14987,7 +14987,7 @@ impl ICDBurn_Vtbl { ICDBurn_Impl::Burn(this, core::mem::transmute_copy(&hwnd)).into() } } - unsafe extern "system" fn HasRecordableDrive(this: *mut core::ffi::c_void, pfhasrecorder: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn HasRecordableDrive(this: *mut core::ffi::c_void, pfhasrecorder: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICDBurn_Impl::HasRecordableDrive(this) { @@ -16253,7 +16253,7 @@ impl ICredentialProvider { (windows_core::Interface::vtable(self).GetFieldDescriptorAt)(windows_core::Interface::as_raw(self), dwindex, &mut result__).map(|| result__) } } - pub unsafe fn GetCredentialCount(&self, pdwcount: *mut u32, pdwdefault: *mut u32, pbautologonwithdefault: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetCredentialCount(&self, pdwcount: *mut u32, pdwdefault: *mut u32, pbautologonwithdefault: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetCredentialCount)(windows_core::Interface::as_raw(self), pdwcount as _, pdwdefault as _, pbautologonwithdefault as _).ok() } } pub unsafe fn GetCredentialAt(&self, dwindex: u32) -> windows_core::Result { @@ -16272,7 +16272,7 @@ pub struct ICredentialProvider_Vtbl { pub UnAdvise: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetFieldDescriptorCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetFieldDescriptorAt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR) -> windows_core::HRESULT, - pub GetCredentialCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetCredentialCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetCredentialAt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ICredentialProvider_Impl: windows_core::IUnknownImpl { @@ -16282,7 +16282,7 @@ pub trait ICredentialProvider_Impl: windows_core::IUnknownImpl { fn UnAdvise(&self) -> windows_core::Result<()>; fn GetFieldDescriptorCount(&self) -> windows_core::Result; fn GetFieldDescriptorAt(&self, dwindex: u32) -> windows_core::Result<*mut CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR>; - fn GetCredentialCount(&self, pdwcount: *mut u32, pdwdefault: *mut u32, pbautologonwithdefault: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetCredentialCount(&self, pdwcount: *mut u32, pdwdefault: *mut u32, pbautologonwithdefault: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetCredentialAt(&self, dwindex: u32) -> windows_core::Result; } impl ICredentialProvider_Vtbl { @@ -16335,7 +16335,7 @@ impl ICredentialProvider_Vtbl { } } } - unsafe extern "system" fn GetCredentialCount(this: *mut core::ffi::c_void, pdwcount: *mut u32, pdwdefault: *mut u32, pbautologonwithdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetCredentialCount(this: *mut core::ffi::c_void, pdwcount: *mut u32, pdwdefault: *mut u32, pbautologonwithdefault: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProvider_Impl::GetCredentialCount(this, core::mem::transmute_copy(&pdwcount), core::mem::transmute_copy(&pdwdefault), core::mem::transmute_copy(&pbautologonwithdefault)).into() @@ -16382,7 +16382,7 @@ impl ICredentialProviderCredential { pub unsafe fn UnAdvise(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).UnAdvise)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn SetSelected(&self) -> windows_core::Result { + pub unsafe fn SetSelected(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).SetSelected)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -16407,7 +16407,7 @@ impl ICredentialProviderCredential { (windows_core::Interface::vtable(self).GetBitmapValue)(windows_core::Interface::as_raw(self), dwfieldid, &mut result__).map(|| result__) } } - pub unsafe fn GetCheckboxValue(&self, dwfieldid: u32, pbchecked: *mut super::super::Foundation::BOOL, ppszlabel: *mut windows_core::PWSTR) -> windows_core::Result<()> { + pub unsafe fn GetCheckboxValue(&self, dwfieldid: u32, pbchecked: *mut windows_core::BOOL, ppszlabel: *mut windows_core::PWSTR) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetCheckboxValue)(windows_core::Interface::as_raw(self), dwfieldid, pbchecked as _, ppszlabel as _).ok() } } pub unsafe fn GetSubmitButtonValue(&self, dwfieldid: u32) -> windows_core::Result { @@ -16452,7 +16452,7 @@ pub struct ICredentialProviderCredential_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Advise: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub UnAdvise: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetSelected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetSelected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetDeselected: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetFieldState: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut CREDENTIAL_PROVIDER_FIELD_STATE, *mut CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> windows_core::HRESULT, pub GetStringValue: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::PWSTR) -> windows_core::HRESULT, @@ -16460,12 +16460,12 @@ pub struct ICredentialProviderCredential_Vtbl { pub GetBitmapValue: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetBitmapValue: usize, - pub GetCheckboxValue: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL, *mut windows_core::PWSTR) -> windows_core::HRESULT, + pub GetCheckboxValue: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetSubmitButtonValue: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, pub GetComboBoxValueCount: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32, *mut u32) -> windows_core::HRESULT, pub GetComboBoxValueAt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub SetStringValue: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR) -> windows_core::HRESULT, - pub SetCheckboxValue: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetCheckboxValue: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, pub SetComboBoxSelectedValue: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, pub CommandLinkClicked: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetSerialization: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE, *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, *mut windows_core::PWSTR, *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> windows_core::HRESULT, @@ -16475,17 +16475,17 @@ pub struct ICredentialProviderCredential_Vtbl { pub trait ICredentialProviderCredential_Impl: windows_core::IUnknownImpl { fn Advise(&self, pcpce: windows_core::Ref) -> windows_core::Result<()>; fn UnAdvise(&self) -> windows_core::Result<()>; - fn SetSelected(&self) -> windows_core::Result; + fn SetSelected(&self) -> windows_core::Result; fn SetDeselected(&self) -> windows_core::Result<()>; fn GetFieldState(&self, dwfieldid: u32, pcpfs: *mut CREDENTIAL_PROVIDER_FIELD_STATE, pcpfis: *mut CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> windows_core::Result<()>; fn GetStringValue(&self, dwfieldid: u32) -> windows_core::Result; fn GetBitmapValue(&self, dwfieldid: u32) -> windows_core::Result; - fn GetCheckboxValue(&self, dwfieldid: u32, pbchecked: *mut super::super::Foundation::BOOL, ppszlabel: *mut windows_core::PWSTR) -> windows_core::Result<()>; + fn GetCheckboxValue(&self, dwfieldid: u32, pbchecked: *mut windows_core::BOOL, ppszlabel: *mut windows_core::PWSTR) -> windows_core::Result<()>; fn GetSubmitButtonValue(&self, dwfieldid: u32) -> windows_core::Result; fn GetComboBoxValueCount(&self, dwfieldid: u32, pcitems: *mut u32, pdwselecteditem: *mut u32) -> windows_core::Result<()>; fn GetComboBoxValueAt(&self, dwfieldid: u32, dwitem: u32) -> windows_core::Result; fn SetStringValue(&self, dwfieldid: u32, psz: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn SetCheckboxValue(&self, dwfieldid: u32, bchecked: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetCheckboxValue(&self, dwfieldid: u32, bchecked: windows_core::BOOL) -> windows_core::Result<()>; fn SetComboBoxSelectedValue(&self, dwfieldid: u32, dwselecteditem: u32) -> windows_core::Result<()>; fn CommandLinkClicked(&self, dwfieldid: u32) -> windows_core::Result<()>; fn GetSerialization(&self, pcpgsr: *mut CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE, pcpcs: *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, ppszoptionalstatustext: *mut windows_core::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> windows_core::Result<()>; @@ -16506,7 +16506,7 @@ impl ICredentialProviderCredential_Vtbl { ICredentialProviderCredential_Impl::UnAdvise(this).into() } } - unsafe extern "system" fn SetSelected(this: *mut core::ffi::c_void, pbautologon: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetSelected(this: *mut core::ffi::c_void, pbautologon: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICredentialProviderCredential_Impl::SetSelected(this) { @@ -16554,7 +16554,7 @@ impl ICredentialProviderCredential_Vtbl { } } } - unsafe extern "system" fn GetCheckboxValue(this: *mut core::ffi::c_void, dwfieldid: u32, pbchecked: *mut super::super::Foundation::BOOL, ppszlabel: *mut windows_core::PWSTR) -> windows_core::HRESULT { + unsafe extern "system" fn GetCheckboxValue(this: *mut core::ffi::c_void, dwfieldid: u32, pbchecked: *mut windows_core::BOOL, ppszlabel: *mut windows_core::PWSTR) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredential_Impl::GetCheckboxValue(this, core::mem::transmute_copy(&dwfieldid), core::mem::transmute_copy(&pbchecked), core::mem::transmute_copy(&ppszlabel)).into() @@ -16596,7 +16596,7 @@ impl ICredentialProviderCredential_Vtbl { ICredentialProviderCredential_Impl::SetStringValue(this, core::mem::transmute_copy(&dwfieldid), core::mem::transmute(&psz)).into() } } - unsafe extern "system" fn SetCheckboxValue(this: *mut core::ffi::c_void, dwfieldid: u32, bchecked: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetCheckboxValue(this: *mut core::ffi::c_void, dwfieldid: u32, bchecked: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredential_Impl::SetCheckboxValue(this, core::mem::transmute_copy(&dwfieldid), core::mem::transmute_copy(&bchecked)).into() @@ -16775,7 +16775,7 @@ pub struct ICredentialProviderCredentialEvents_Vtbl { pub SetFieldState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, CREDENTIAL_PROVIDER_FIELD_STATE) -> windows_core::HRESULT, pub SetFieldInteractiveState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> windows_core::HRESULT, pub SetFieldString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, windows_core::PCWSTR) -> windows_core::HRESULT, - pub SetFieldCheckbox: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, super::super::Foundation::BOOL, windows_core::PCWSTR) -> windows_core::HRESULT, + pub SetFieldCheckbox: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, windows_core::BOOL, windows_core::PCWSTR) -> windows_core::HRESULT, #[cfg(feature = "Win32_Graphics_Gdi")] pub SetFieldBitmap: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, super::super::Graphics::Gdi::HBITMAP) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] @@ -16791,7 +16791,7 @@ pub trait ICredentialProviderCredentialEvents_Impl: windows_core::IUnknownImpl { fn SetFieldState(&self, pcpc: windows_core::Ref, dwfieldid: u32, cpfs: CREDENTIAL_PROVIDER_FIELD_STATE) -> windows_core::Result<()>; fn SetFieldInteractiveState(&self, pcpc: windows_core::Ref, dwfieldid: u32, cpfis: CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE) -> windows_core::Result<()>; fn SetFieldString(&self, pcpc: windows_core::Ref, dwfieldid: u32, psz: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn SetFieldCheckbox(&self, pcpc: windows_core::Ref, dwfieldid: u32, bchecked: super::super::Foundation::BOOL, pszlabel: &windows_core::PCWSTR) -> windows_core::Result<()>; + fn SetFieldCheckbox(&self, pcpc: windows_core::Ref, dwfieldid: u32, bchecked: windows_core::BOOL, pszlabel: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetFieldBitmap(&self, pcpc: windows_core::Ref, dwfieldid: u32, hbmp: super::super::Graphics::Gdi::HBITMAP) -> windows_core::Result<()>; fn SetFieldComboBoxSelectedItem(&self, pcpc: windows_core::Ref, dwfieldid: u32, dwselecteditem: u32) -> windows_core::Result<()>; fn DeleteFieldComboBoxItem(&self, pcpc: windows_core::Ref, dwfieldid: u32, dwitem: u32) -> windows_core::Result<()>; @@ -16820,7 +16820,7 @@ impl ICredentialProviderCredentialEvents_Vtbl { ICredentialProviderCredentialEvents_Impl::SetFieldString(this, core::mem::transmute_copy(&pcpc), core::mem::transmute_copy(&dwfieldid), core::mem::transmute(&psz)).into() } } - unsafe extern "system" fn SetFieldCheckbox(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, bchecked: super::super::Foundation::BOOL, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT { + unsafe extern "system" fn SetFieldCheckbox(this: *mut core::ffi::c_void, pcpc: *mut core::ffi::c_void, dwfieldid: u32, bchecked: windows_core::BOOL, pszlabel: windows_core::PCWSTR) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderCredentialEvents_Impl::SetFieldCheckbox(this, core::mem::transmute_copy(&pcpc), core::mem::transmute_copy(&dwfieldid), core::mem::transmute_copy(&bchecked), core::mem::transmute(&pszlabel)).into() @@ -17029,7 +17029,7 @@ impl windows_core::RuntimeName for ICredentialProviderEvents {} windows_core::imp::define_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<()> { + pub unsafe fn Filter(&self, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32, rgclsidproviders: *const windows_core::GUID, rgballow: *mut windows_core::BOOL, cproviders: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Filter)(windows_core::Interface::as_raw(self), cpus, dwflags, rgclsidproviders, rgballow as _, cproviders).ok() } } pub unsafe fn UpdateRemoteCredential(&self, pcpcsin: *const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, pcpcsout: *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION) -> windows_core::Result<()> { @@ -17039,16 +17039,16 @@ impl ICredentialProviderFilter { #[repr(C)] pub struct ICredentialProviderFilter_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Filter: unsafe extern "system" fn(*mut core::ffi::c_void, CREDENTIAL_PROVIDER_USAGE_SCENARIO, u32, *const windows_core::GUID, *mut super::super::Foundation::BOOL, u32) -> windows_core::HRESULT, + pub Filter: unsafe extern "system" fn(*mut core::ffi::c_void, CREDENTIAL_PROVIDER_USAGE_SCENARIO, u32, *const windows_core::GUID, *mut windows_core::BOOL, u32) -> windows_core::HRESULT, pub UpdateRemoteCredential: unsafe extern "system" fn(*mut core::ffi::c_void, *const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION) -> windows_core::HRESULT, } pub trait ICredentialProviderFilter_Impl: windows_core::IUnknownImpl { - fn Filter(&self, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32, rgclsidproviders: *const windows_core::GUID, rgballow: *mut super::super::Foundation::BOOL, cproviders: u32) -> windows_core::Result<()>; + fn Filter(&self, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32, rgclsidproviders: *const windows_core::GUID, rgballow: *mut windows_core::BOOL, cproviders: u32) -> windows_core::Result<()>; fn UpdateRemoteCredential(&self, pcpcsin: *const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, pcpcsout: *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION) -> windows_core::Result<()>; } impl ICredentialProviderFilter_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Filter(this: *mut core::ffi::c_void, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32, rgclsidproviders: *const windows_core::GUID, rgballow: *mut super::super::Foundation::BOOL, cproviders: u32) -> windows_core::HRESULT { + unsafe extern "system" fn Filter(this: *mut core::ffi::c_void, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32, rgclsidproviders: *const windows_core::GUID, rgballow: *mut windows_core::BOOL, cproviders: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICredentialProviderFilter_Impl::Filter(this, core::mem::transmute_copy(&cpus), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&rgclsidproviders), core::mem::transmute_copy(&rgballow), core::mem::transmute_copy(&cproviders)).into() @@ -17563,7 +17563,7 @@ impl IDataObjectAsyncCapability { pub unsafe fn SetAsyncMode(&self, fdoopasync: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetAsyncMode)(windows_core::Interface::as_raw(self), fdoopasync.into()).ok() } } - pub unsafe fn GetAsyncMode(&self) -> windows_core::Result { + pub unsafe fn GetAsyncMode(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAsyncMode)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -17576,7 +17576,7 @@ impl IDataObjectAsyncCapability { { unsafe { (windows_core::Interface::vtable(self).StartOperation)(windows_core::Interface::as_raw(self), pbcreserved.param().abi()).ok() } } - pub unsafe fn InOperation(&self) -> windows_core::Result { + pub unsafe fn InOperation(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).InOperation)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -17593,13 +17593,13 @@ impl IDataObjectAsyncCapability { #[repr(C)] pub struct IDataObjectAsyncCapability_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetAsyncMode: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetAsyncMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetAsyncMode: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetAsyncMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub StartOperation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] StartOperation: usize, - pub InOperation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub InOperation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub EndOperation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::HRESULT, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -17607,22 +17607,22 @@ pub struct IDataObjectAsyncCapability_Vtbl { } #[cfg(feature = "Win32_System_Com")] pub trait IDataObjectAsyncCapability_Impl: windows_core::IUnknownImpl { - fn SetAsyncMode(&self, fdoopasync: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetAsyncMode(&self) -> windows_core::Result; + fn SetAsyncMode(&self, fdoopasync: windows_core::BOOL) -> windows_core::Result<()>; + fn GetAsyncMode(&self) -> windows_core::Result; fn StartOperation(&self, pbcreserved: windows_core::Ref) -> windows_core::Result<()>; - fn InOperation(&self) -> windows_core::Result; + fn InOperation(&self) -> windows_core::Result; fn EndOperation(&self, hresult: windows_core::HRESULT, pbcreserved: windows_core::Ref, dweffects: u32) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl IDataObjectAsyncCapability_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetAsyncMode(this: *mut core::ffi::c_void, fdoopasync: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAsyncMode(this: *mut core::ffi::c_void, fdoopasync: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDataObjectAsyncCapability_Impl::SetAsyncMode(this, core::mem::transmute_copy(&fdoopasync)).into() } } - unsafe extern "system" fn GetAsyncMode(this: *mut core::ffi::c_void, pfisopasync: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetAsyncMode(this: *mut core::ffi::c_void, pfisopasync: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataObjectAsyncCapability_Impl::GetAsyncMode(this) { @@ -17640,7 +17640,7 @@ impl IDataObjectAsyncCapability_Vtbl { IDataObjectAsyncCapability_Impl::StartOperation(this, core::mem::transmute_copy(&pbcreserved)).into() } } - unsafe extern "system" fn InOperation(this: *mut core::ffi::c_void, pfinasyncop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn InOperation(this: *mut core::ffi::c_void, pfinasyncop: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDataObjectAsyncCapability_Impl::InOperation(this) { @@ -18114,7 +18114,7 @@ impl core::ops::Deref for IDeskBand2 { windows_core::imp::interface_hierarchy!(IDeskBand2, windows_core::IUnknown, super::super::System::Ole::IOleWindow, IDockingWindow, IDeskBand); #[cfg(feature = "Win32_System_Ole")] impl IDeskBand2 { - pub unsafe fn CanRenderComposited(&self) -> windows_core::Result { + pub unsafe fn CanRenderComposited(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanRenderComposited)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -18123,7 +18123,7 @@ impl IDeskBand2 { pub unsafe fn SetCompositionState(&self, fcompositionenabled: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetCompositionState)(windows_core::Interface::as_raw(self), fcompositionenabled.into()).ok() } } - pub unsafe fn GetCompositionState(&self) -> windows_core::Result { + pub unsafe fn GetCompositionState(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCompositionState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -18134,20 +18134,20 @@ impl IDeskBand2 { #[repr(C)] pub struct IDeskBand2_Vtbl { pub base__: IDeskBand_Vtbl, - pub CanRenderComposited: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetCompositionState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetCompositionState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CanRenderComposited: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetCompositionState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub GetCompositionState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Ole")] pub trait IDeskBand2_Impl: IDeskBand_Impl { - fn CanRenderComposited(&self) -> windows_core::Result; - fn SetCompositionState(&self, fcompositionenabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetCompositionState(&self) -> windows_core::Result; + fn CanRenderComposited(&self) -> windows_core::Result; + fn SetCompositionState(&self, fcompositionenabled: windows_core::BOOL) -> windows_core::Result<()>; + fn GetCompositionState(&self) -> windows_core::Result; } #[cfg(feature = "Win32_System_Ole")] impl IDeskBand2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CanRenderComposited(this: *mut core::ffi::c_void, pfcanrendercomposited: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanRenderComposited(this: *mut core::ffi::c_void, pfcanrendercomposited: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeskBand2_Impl::CanRenderComposited(this) { @@ -18159,13 +18159,13 @@ impl IDeskBand2_Vtbl { } } } - unsafe extern "system" fn SetCompositionState(this: *mut core::ffi::c_void, fcompositionenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetCompositionState(this: *mut core::ffi::c_void, fcompositionenabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDeskBand2_Impl::SetCompositionState(this, core::mem::transmute_copy(&fcompositionenabled)).into() } } - unsafe extern "system" fn GetCompositionState(this: *mut core::ffi::c_void, pfcompositionenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetCompositionState(this: *mut core::ffi::c_void, pfcompositionenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDeskBand2_Impl::GetCompositionState(this) { @@ -18550,7 +18550,7 @@ pub struct IDesktopWallpaper_Vtbl { pub GetSlideshowOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DESKTOP_SLIDESHOW_OPTIONS, *mut u32) -> windows_core::HRESULT, pub AdvanceSlideshow: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, DESKTOP_SLIDESHOW_DIRECTION) -> windows_core::HRESULT, pub GetStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DESKTOP_SLIDESHOW_STATE) -> windows_core::HRESULT, - pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IDesktopWallpaper_Impl: windows_core::IUnknownImpl { fn SetWallpaper(&self, monitorid: &windows_core::PCWSTR, wallpaper: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -18568,7 +18568,7 @@ pub trait IDesktopWallpaper_Impl: windows_core::IUnknownImpl { fn GetSlideshowOptions(&self, options: *mut DESKTOP_SLIDESHOW_OPTIONS, slideshowtick: *mut u32) -> windows_core::Result<()>; fn AdvanceSlideshow(&self, monitorid: &windows_core::PCWSTR, direction: DESKTOP_SLIDESHOW_DIRECTION) -> windows_core::Result<()>; fn GetStatus(&self) -> windows_core::Result; - fn Enable(&self, enable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Enable(&self, enable: windows_core::BOOL) -> windows_core::Result<()>; } impl IDesktopWallpaper_Vtbl { pub const fn new() -> Self { @@ -18710,7 +18710,7 @@ impl IDesktopWallpaper_Vtbl { } } } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, enable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, enable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDesktopWallpaper_Impl::Enable(this, core::mem::transmute_copy(&enable)).into() @@ -18879,20 +18879,20 @@ impl IDockingWindow { #[repr(C)] pub struct IDockingWindow_Vtbl { pub base__: super::super::System::Ole::IOleWindow_Vtbl, - pub ShowDW: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ShowDW: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub CloseDW: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub ResizeBorderDW: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ResizeBorderDW: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Ole")] pub trait IDockingWindow_Impl: super::super::System::Ole::IOleWindow_Impl { - fn ShowDW(&self, fshow: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ShowDW(&self, fshow: windows_core::BOOL) -> windows_core::Result<()>; fn CloseDW(&self, dwreserved: u32) -> windows_core::Result<()>; - fn ResizeBorderDW(&self, prcborder: *const super::super::Foundation::RECT, punktoolbarsite: windows_core::Ref, freserved: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ResizeBorderDW(&self, prcborder: *const super::super::Foundation::RECT, punktoolbarsite: windows_core::Ref, freserved: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Ole")] impl IDockingWindow_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn ShowDW(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ShowDW(this: *mut core::ffi::c_void, fshow: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDockingWindow_Impl::ShowDW(this, core::mem::transmute_copy(&fshow)).into() @@ -18904,7 +18904,7 @@ impl IDockingWindow_Vtbl { IDockingWindow_Impl::CloseDW(this, core::mem::transmute_copy(&dwreserved)).into() } } - unsafe extern "system" fn ResizeBorderDW(this: *mut core::ffi::c_void, prcborder: *const super::super::Foundation::RECT, punktoolbarsite: *mut core::ffi::c_void, freserved: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ResizeBorderDW(this: *mut core::ffi::c_void, prcborder: *const super::super::Foundation::RECT, punktoolbarsite: *mut core::ffi::c_void, freserved: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDockingWindow_Impl::ResizeBorderDW(this, core::mem::transmute_copy(&prcborder), core::mem::transmute_copy(&punktoolbarsite), core::mem::transmute_copy(&freserved)).into() @@ -19238,7 +19238,7 @@ pub struct IDropTargetHelper_Vtbl { pub Drop: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const super::super::Foundation::POINT, super::super::System::Ole::DROPEFFECT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Drop: usize, - pub Show: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Show: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IDropTargetHelper_Impl: windows_core::IUnknownImpl { @@ -19246,7 +19246,7 @@ pub trait IDropTargetHelper_Impl: windows_core::IUnknownImpl { fn DragLeave(&self) -> windows_core::Result<()>; fn DragOver(&self, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> windows_core::Result<()>; fn Drop(&self, pdataobject: windows_core::Ref, ppt: *const super::super::Foundation::POINT, dweffect: super::super::System::Ole::DROPEFFECT) -> windows_core::Result<()>; - fn Show(&self, fshow: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Show(&self, fshow: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IDropTargetHelper_Vtbl { @@ -19275,7 +19275,7 @@ impl IDropTargetHelper_Vtbl { IDropTargetHelper_Impl::Drop(this, core::mem::transmute_copy(&pdataobject), core::mem::transmute_copy(&ppt), core::mem::transmute_copy(&dweffect)).into() } } - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, fshow: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDropTargetHelper_Impl::Show(this, core::mem::transmute_copy(&fshow)).into() @@ -20597,7 +20597,7 @@ pub struct IExecuteCommand_Vtbl { pub SetParameters: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub SetPosition: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::POINT) -> windows_core::HRESULT, pub SetShowWindow: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, - pub SetNoShowUI: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetNoShowUI: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetDirectory: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub Execute: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -20606,7 +20606,7 @@ pub trait IExecuteCommand_Impl: windows_core::IUnknownImpl { fn SetParameters(&self, pszparameters: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetPosition(&self, pt: &super::super::Foundation::POINT) -> windows_core::Result<()>; fn SetShowWindow(&self, nshow: i32) -> windows_core::Result<()>; - fn SetNoShowUI(&self, fnoshowui: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetNoShowUI(&self, fnoshowui: windows_core::BOOL) -> windows_core::Result<()>; fn SetDirectory(&self, pszdirectory: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Execute(&self) -> windows_core::Result<()>; } @@ -20636,7 +20636,7 @@ impl IExecuteCommand_Vtbl { IExecuteCommand_Impl::SetShowWindow(this, core::mem::transmute_copy(&nshow)).into() } } - unsafe extern "system" fn SetNoShowUI(this: *mut core::ffi::c_void, fnoshowui: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetNoShowUI(this: *mut core::ffi::c_void, fnoshowui: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IExecuteCommand_Impl::SetNoShowUI(this, core::mem::transmute_copy(&fnoshowui)).into() @@ -21323,7 +21323,7 @@ pub struct IExplorerCommand_Vtbl { pub GetIcon: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetToolTip: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetCanonicalName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - pub GetState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut u32) -> windows_core::HRESULT, + pub GetState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut u32) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Invoke: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -21337,7 +21337,7 @@ pub trait IExplorerCommand_Impl: windows_core::IUnknownImpl { fn GetIcon(&self, psiitemarray: windows_core::Ref) -> windows_core::Result; fn GetToolTip(&self, psiitemarray: windows_core::Ref) -> windows_core::Result; fn GetCanonicalName(&self) -> windows_core::Result; - fn GetState(&self, psiitemarray: windows_core::Ref, foktobeslow: super::super::Foundation::BOOL) -> windows_core::Result; + fn GetState(&self, psiitemarray: windows_core::Ref, foktobeslow: windows_core::BOOL) -> windows_core::Result; fn Invoke(&self, psiitemarray: windows_core::Ref, pbc: windows_core::Ref) -> windows_core::Result<()>; fn GetFlags(&self) -> windows_core::Result; fn EnumSubCommands(&self) -> windows_core::Result; @@ -21393,7 +21393,7 @@ impl IExplorerCommand_Vtbl { } } } - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, psiitemarray: *mut core::ffi::c_void, foktobeslow: super::super::Foundation::BOOL, pcmdstate: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, psiitemarray: *mut core::ffi::c_void, foktobeslow: windows_core::BOOL, pcmdstate: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExplorerCommand_Impl::GetState(this, core::mem::transmute_copy(&psiitemarray), core::mem::transmute_copy(&foktobeslow)) { @@ -21523,14 +21523,14 @@ impl IExplorerCommandState { #[repr(C)] pub struct IExplorerCommandState_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut u32) -> windows_core::HRESULT, + pub GetState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut u32) -> windows_core::HRESULT, } pub trait IExplorerCommandState_Impl: windows_core::IUnknownImpl { - fn GetState(&self, psiitemarray: windows_core::Ref, foktobeslow: super::super::Foundation::BOOL) -> windows_core::Result; + fn GetState(&self, psiitemarray: windows_core::Ref, foktobeslow: windows_core::BOOL) -> windows_core::Result; } impl IExplorerCommandState_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, psiitemarray: *mut core::ffi::c_void, foktobeslow: super::super::Foundation::BOOL, pcmdstate: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn GetState(this: *mut core::ffi::c_void, psiitemarray: *mut core::ffi::c_void, foktobeslow: windows_core::BOOL, pcmdstate: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IExplorerCommandState_Impl::GetState(this, core::mem::transmute_copy(&psiitemarray), core::mem::transmute_copy(&foktobeslow)) { @@ -22355,13 +22355,13 @@ pub struct IFileDialogControlEvents_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub OnItemSelected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, pub OnButtonClicked: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub OnCheckButtonToggled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnCheckButtonToggled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, pub OnControlActivating: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, } pub trait IFileDialogControlEvents_Impl: windows_core::IUnknownImpl { fn OnItemSelected(&self, pfdc: windows_core::Ref, dwidctl: u32, dwiditem: u32) -> windows_core::Result<()>; fn OnButtonClicked(&self, pfdc: windows_core::Ref, dwidctl: u32) -> windows_core::Result<()>; - fn OnCheckButtonToggled(&self, pfdc: windows_core::Ref, dwidctl: u32, bchecked: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnCheckButtonToggled(&self, pfdc: windows_core::Ref, dwidctl: u32, bchecked: windows_core::BOOL) -> windows_core::Result<()>; fn OnControlActivating(&self, pfdc: windows_core::Ref, dwidctl: u32) -> windows_core::Result<()>; } impl IFileDialogControlEvents_Vtbl { @@ -22378,7 +22378,7 @@ impl IFileDialogControlEvents_Vtbl { IFileDialogControlEvents_Impl::OnButtonClicked(this, core::mem::transmute_copy(&pfdc), core::mem::transmute_copy(&dwidctl)).into() } } - unsafe extern "system" fn OnCheckButtonToggled(this: *mut core::ffi::c_void, pfdc: *mut core::ffi::c_void, dwidctl: u32, bchecked: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnCheckButtonToggled(this: *mut core::ffi::c_void, pfdc: *mut core::ffi::c_void, dwidctl: u32, bchecked: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogControlEvents_Impl::OnCheckButtonToggled(this, core::mem::transmute_copy(&pfdc), core::mem::transmute_copy(&dwidctl), core::mem::transmute_copy(&bchecked)).into() @@ -22475,7 +22475,7 @@ impl IFileDialogCustomize { { unsafe { (windows_core::Interface::vtable(self).SetEditBoxText)(windows_core::Interface::as_raw(self), dwidctl, psztext.param().abi()).ok() } } - pub unsafe fn GetCheckButtonState(&self, dwidctl: u32) -> windows_core::Result { + pub unsafe fn GetCheckButtonState(&self, dwidctl: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCheckButtonState)(windows_core::Interface::as_raw(self), dwidctl, &mut result__).map(|| result__) @@ -22541,7 +22541,7 @@ pub struct IFileDialogCustomize_Vtbl { pub AddPushButton: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR) -> windows_core::HRESULT, pub AddComboBox: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub AddRadioButtonList: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub AddCheckButton: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AddCheckButton: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, pub AddEditBox: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR) -> windows_core::HRESULT, pub AddSeparator: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub AddText: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR) -> windows_core::HRESULT, @@ -22550,8 +22550,8 @@ pub struct IFileDialogCustomize_Vtbl { pub SetControlState: unsafe extern "system" fn(*mut core::ffi::c_void, u32, CDCONTROLSTATEF) -> windows_core::HRESULT, pub GetEditBoxText: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut u16) -> windows_core::HRESULT, pub SetEditBoxText: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR) -> windows_core::HRESULT, - pub GetCheckButtonState: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetCheckButtonState: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetCheckButtonState: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetCheckButtonState: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, pub AddControlItem: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, windows_core::PCWSTR) -> windows_core::HRESULT, pub RemoveControlItem: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, pub RemoveAllControlItems: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -22570,7 +22570,7 @@ pub trait IFileDialogCustomize_Impl: windows_core::IUnknownImpl { fn AddPushButton(&self, dwidctl: u32, pszlabel: &windows_core::PCWSTR) -> windows_core::Result<()>; fn AddComboBox(&self, dwidctl: u32) -> windows_core::Result<()>; fn AddRadioButtonList(&self, dwidctl: u32) -> windows_core::Result<()>; - fn AddCheckButton(&self, dwidctl: u32, pszlabel: &windows_core::PCWSTR, bchecked: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn AddCheckButton(&self, dwidctl: u32, pszlabel: &windows_core::PCWSTR, bchecked: windows_core::BOOL) -> windows_core::Result<()>; fn AddEditBox(&self, dwidctl: u32, psztext: &windows_core::PCWSTR) -> windows_core::Result<()>; fn AddSeparator(&self, dwidctl: u32) -> windows_core::Result<()>; fn AddText(&self, dwidctl: u32, psztext: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -22579,8 +22579,8 @@ pub trait IFileDialogCustomize_Impl: windows_core::IUnknownImpl { fn SetControlState(&self, dwidctl: u32, dwstate: CDCONTROLSTATEF) -> windows_core::Result<()>; fn GetEditBoxText(&self, dwidctl: u32) -> windows_core::Result<*mut u16>; fn SetEditBoxText(&self, dwidctl: u32, psztext: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn GetCheckButtonState(&self, dwidctl: u32) -> windows_core::Result; - fn SetCheckButtonState(&self, dwidctl: u32, bchecked: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetCheckButtonState(&self, dwidctl: u32) -> windows_core::Result; + fn SetCheckButtonState(&self, dwidctl: u32, bchecked: windows_core::BOOL) -> windows_core::Result<()>; fn AddControlItem(&self, dwidctl: u32, dwiditem: u32, pszlabel: &windows_core::PCWSTR) -> windows_core::Result<()>; fn RemoveControlItem(&self, dwidctl: u32, dwiditem: u32) -> windows_core::Result<()>; fn RemoveAllControlItems(&self, dwidctl: u32) -> windows_core::Result<()>; @@ -22625,7 +22625,7 @@ impl IFileDialogCustomize_Vtbl { IFileDialogCustomize_Impl::AddRadioButtonList(this, core::mem::transmute_copy(&dwidctl)).into() } } - unsafe extern "system" fn AddCheckButton(this: *mut core::ffi::c_void, dwidctl: u32, pszlabel: windows_core::PCWSTR, bchecked: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AddCheckButton(this: *mut core::ffi::c_void, dwidctl: u32, pszlabel: windows_core::PCWSTR, bchecked: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::AddCheckButton(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute(&pszlabel), core::mem::transmute_copy(&bchecked)).into() @@ -22691,7 +22691,7 @@ impl IFileDialogCustomize_Vtbl { IFileDialogCustomize_Impl::SetEditBoxText(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute(&psztext)).into() } } - unsafe extern "system" fn GetCheckButtonState(this: *mut core::ffi::c_void, dwidctl: u32, pbchecked: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetCheckButtonState(this: *mut core::ffi::c_void, dwidctl: u32, pbchecked: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileDialogCustomize_Impl::GetCheckButtonState(this, core::mem::transmute_copy(&dwidctl)) { @@ -22703,7 +22703,7 @@ impl IFileDialogCustomize_Vtbl { } } } - unsafe extern "system" fn SetCheckButtonState(this: *mut core::ffi::c_void, dwidctl: u32, bchecked: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetCheckButtonState(this: *mut core::ffi::c_void, dwidctl: u32, bchecked: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileDialogCustomize_Impl::SetCheckButtonState(this, core::mem::transmute_copy(&dwidctl), core::mem::transmute_copy(&bchecked)).into() @@ -23283,7 +23283,7 @@ impl IFileOperation { pub unsafe fn PerformOperations(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).PerformOperations)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn GetAnyOperationsAborted(&self) -> windows_core::Result { + pub unsafe fn GetAnyOperationsAborted(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetAnyOperationsAborted)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -23315,7 +23315,7 @@ pub struct IFileOperation_Vtbl { pub DeleteItems: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub NewItem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, windows_core::PCWSTR, windows_core::PCWSTR, *mut core::ffi::c_void) -> windows_core::HRESULT, pub PerformOperations: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetAnyOperationsAborted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetAnyOperationsAborted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub trait IFileOperation_Impl: windows_core::IUnknownImpl { @@ -23338,7 +23338,7 @@ pub trait IFileOperation_Impl: windows_core::IUnknownImpl { fn DeleteItems(&self, punkitems: windows_core::Ref) -> windows_core::Result<()>; fn NewItem(&self, psidestinationfolder: windows_core::Ref, dwfileattributes: u32, pszname: &windows_core::PCWSTR, psztemplatename: &windows_core::PCWSTR, pfopsitem: windows_core::Ref) -> windows_core::Result<()>; fn PerformOperations(&self) -> windows_core::Result<()>; - fn GetAnyOperationsAborted(&self) -> windows_core::Result; + fn GetAnyOperationsAborted(&self) -> windows_core::Result; } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IFileOperation_Vtbl { @@ -23463,7 +23463,7 @@ impl IFileOperation_Vtbl { IFileOperation_Impl::PerformOperations(this).into() } } - unsafe extern "system" fn GetAnyOperationsAborted(this: *mut core::ffi::c_void, pfanyoperationsaborted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetAnyOperationsAborted(this: *mut core::ffi::c_void, pfanyoperationsaborted: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFileOperation_Impl::GetAnyOperationsAborted(this) { @@ -23860,7 +23860,7 @@ pub struct IFileSaveDialog_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] SetProperties: usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] - pub SetCollectedProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetCollectedProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] SetCollectedProperties: usize, #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -23876,7 +23876,7 @@ pub struct IFileSaveDialog_Vtbl { pub trait IFileSaveDialog_Impl: IFileDialog_Impl { fn SetSaveAsItem(&self, psi: windows_core::Ref) -> windows_core::Result<()>; fn SetProperties(&self, pstore: windows_core::Ref) -> windows_core::Result<()>; - fn SetCollectedProperties(&self, plist: windows_core::Ref, fappenddefault: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetCollectedProperties(&self, plist: windows_core::Ref, fappenddefault: windows_core::BOOL) -> windows_core::Result<()>; fn GetProperties(&self) -> windows_core::Result; fn ApplyProperties(&self, psi: windows_core::Ref, pstore: windows_core::Ref, hwnd: super::super::Foundation::HWND, psink: windows_core::Ref) -> windows_core::Result<()>; } @@ -23895,7 +23895,7 @@ impl IFileSaveDialog_Vtbl { IFileSaveDialog_Impl::SetProperties(this, core::mem::transmute_copy(&pstore)).into() } } - unsafe extern "system" fn SetCollectedProperties(this: *mut core::ffi::c_void, plist: *mut core::ffi::c_void, fappenddefault: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetCollectedProperties(this: *mut core::ffi::c_void, plist: *mut core::ffi::c_void, fappenddefault: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFileSaveDialog_Impl::SetCollectedProperties(this, core::mem::transmute_copy(&plist), core::mem::transmute_copy(&fappenddefault)).into() @@ -24307,38 +24307,38 @@ impl IFolderBandPriv { #[repr(C)] pub struct IFolderBandPriv_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub SetCascade: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetAccelerators: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetNoIcons: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetNoText: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetCascade: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub SetAccelerators: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub SetNoIcons: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub SetNoText: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IFolderBandPriv_Impl: windows_core::IUnknownImpl { - fn SetCascade(&self, fcascade: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetAccelerators(&self, faccelerators: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetNoIcons(&self, fnoicons: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn SetNoText(&self, fnotext: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetCascade(&self, fcascade: windows_core::BOOL) -> windows_core::Result<()>; + fn SetAccelerators(&self, faccelerators: windows_core::BOOL) -> windows_core::Result<()>; + fn SetNoIcons(&self, fnoicons: windows_core::BOOL) -> windows_core::Result<()>; + fn SetNoText(&self, fnotext: windows_core::BOOL) -> windows_core::Result<()>; } impl IFolderBandPriv_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetCascade(this: *mut core::ffi::c_void, fcascade: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetCascade(this: *mut core::ffi::c_void, fcascade: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderBandPriv_Impl::SetCascade(this, core::mem::transmute_copy(&fcascade)).into() } } - unsafe extern "system" fn SetAccelerators(this: *mut core::ffi::c_void, faccelerators: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAccelerators(this: *mut core::ffi::c_void, faccelerators: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderBandPriv_Impl::SetAccelerators(this, core::mem::transmute_copy(&faccelerators)).into() } } - unsafe extern "system" fn SetNoIcons(this: *mut core::ffi::c_void, fnoicons: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetNoIcons(this: *mut core::ffi::c_void, fnoicons: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderBandPriv_Impl::SetNoIcons(this, core::mem::transmute_copy(&fnoicons)).into() } } - unsafe extern "system" fn SetNoText(this: *mut core::ffi::c_void, fnotext: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetNoText(this: *mut core::ffi::c_void, fnotext: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderBandPriv_Impl::SetNoText(this, core::mem::transmute_copy(&fnotext)).into() @@ -24739,7 +24739,7 @@ impl IFolderView2 { pub unsafe fn SetGroupBy(&self, key: *const super::super::Foundation::PROPERTYKEY, fascending: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetGroupBy)(windows_core::Interface::as_raw(self), key, fascending.into()).ok() } } - pub unsafe fn GetGroupBy(&self, pkey: *mut super::super::Foundation::PROPERTYKEY, pfascending: Option<*mut super::super::Foundation::BOOL>) -> windows_core::Result<()> { + pub unsafe fn GetGroupBy(&self, pkey: *mut super::super::Foundation::PROPERTYKEY, pfascending: Option<*mut windows_core::BOOL>) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetGroupBy)(windows_core::Interface::as_raw(self), pkey as _, pfascending.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_Common"))] @@ -24860,8 +24860,8 @@ impl IFolderView2 { #[repr(C)] pub struct IFolderView2_Vtbl { pub base__: IFolderView_Vtbl, - pub SetGroupBy: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub GetGroupBy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::PROPERTYKEY, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetGroupBy: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, windows_core::BOOL) -> windows_core::HRESULT, + pub GetGroupBy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::PROPERTYKEY, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_Common"))] pub SetViewProperty: unsafe extern "system" fn(*mut core::ffi::c_void, *const Common::ITEMIDLIST, *const super::super::Foundation::PROPERTYKEY, *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_Common")))] @@ -24885,9 +24885,9 @@ pub struct IFolderView2_Vtbl { pub SetSortColumns: unsafe extern "system" fn(*mut core::ffi::c_void, *const SORTCOLUMN, i32) -> windows_core::HRESULT, pub GetSortColumns: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SORTCOLUMN, i32) -> windows_core::HRESULT, pub GetItem: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetVisibleItem: unsafe extern "system" fn(*mut core::ffi::c_void, i32, super::super::Foundation::BOOL, *mut i32) -> windows_core::HRESULT, + pub GetVisibleItem: unsafe extern "system" fn(*mut core::ffi::c_void, i32, windows_core::BOOL, *mut i32) -> windows_core::HRESULT, pub GetSelectedItem: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut i32) -> windows_core::HRESULT, - pub GetSelection: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetSelection: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub GetSelectionState: unsafe extern "system" fn(*mut core::ffi::c_void, *const Common::ITEMIDLIST, *mut u32) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] @@ -24897,14 +24897,14 @@ pub struct IFolderView2_Vtbl { pub GetViewModeAndIconSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut FOLDERVIEWMODE, *mut i32) -> windows_core::HRESULT, pub SetGroupSubsetCount: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetGroupSubsetCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub SetRedraw: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetRedraw: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub IsMoveInSameFolder: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub DoRename: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_Common"))] pub trait IFolderView2_Impl: IFolderView_Impl { - fn SetGroupBy(&self, key: *const super::super::Foundation::PROPERTYKEY, fascending: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetGroupBy(&self, pkey: *mut super::super::Foundation::PROPERTYKEY, pfascending: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetGroupBy(&self, key: *const super::super::Foundation::PROPERTYKEY, fascending: windows_core::BOOL) -> windows_core::Result<()>; + fn GetGroupBy(&self, pkey: *mut super::super::Foundation::PROPERTYKEY, pfascending: *mut windows_core::BOOL) -> windows_core::Result<()>; fn SetViewProperty(&self, pidl: *const Common::ITEMIDLIST, propkey: *const super::super::Foundation::PROPERTYKEY, propvar: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> windows_core::Result<()>; fn GetViewProperty(&self, pidl: *const Common::ITEMIDLIST, propkey: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result; fn SetTileViewProperties(&self, pidl: *const Common::ITEMIDLIST, pszproplist: &windows_core::PCWSTR) -> windows_core::Result<()>; @@ -24916,29 +24916,29 @@ pub trait IFolderView2_Impl: IFolderView_Impl { fn SetSortColumns(&self, rgsortcolumns: *const SORTCOLUMN, ccolumns: i32) -> windows_core::Result<()>; fn GetSortColumns(&self, rgsortcolumns: *mut SORTCOLUMN, ccolumns: i32) -> windows_core::Result<()>; fn GetItem(&self, iitem: i32, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; - fn GetVisibleItem(&self, istart: i32, fprevious: super::super::Foundation::BOOL) -> windows_core::Result; + fn GetVisibleItem(&self, istart: i32, fprevious: windows_core::BOOL) -> windows_core::Result; fn GetSelectedItem(&self, istart: i32) -> windows_core::Result; - fn GetSelection(&self, fnoneimpliesfolder: super::super::Foundation::BOOL) -> windows_core::Result; + fn GetSelection(&self, fnoneimpliesfolder: windows_core::BOOL) -> windows_core::Result; fn GetSelectionState(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result; fn InvokeVerbOnSelection(&self, pszverb: &windows_core::PCSTR) -> windows_core::Result<()>; fn SetViewModeAndIconSize(&self, uviewmode: FOLDERVIEWMODE, iimagesize: i32) -> windows_core::Result<()>; fn GetViewModeAndIconSize(&self, puviewmode: *mut FOLDERVIEWMODE, piimagesize: *mut i32) -> windows_core::Result<()>; fn SetGroupSubsetCount(&self, cvisiblerows: u32) -> windows_core::Result<()>; fn GetGroupSubsetCount(&self) -> windows_core::Result; - fn SetRedraw(&self, fredrawon: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetRedraw(&self, fredrawon: windows_core::BOOL) -> windows_core::Result<()>; fn IsMoveInSameFolder(&self) -> windows_core::Result<()>; fn DoRename(&self) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_Common"))] impl IFolderView2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn SetGroupBy(this: *mut core::ffi::c_void, key: *const super::super::Foundation::PROPERTYKEY, fascending: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetGroupBy(this: *mut core::ffi::c_void, key: *const super::super::Foundation::PROPERTYKEY, fascending: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::SetGroupBy(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&fascending)).into() } } - unsafe extern "system" fn GetGroupBy(this: *mut core::ffi::c_void, pkey: *mut super::super::Foundation::PROPERTYKEY, pfascending: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetGroupBy(this: *mut core::ffi::c_void, pkey: *mut super::super::Foundation::PROPERTYKEY, pfascending: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::GetGroupBy(this, core::mem::transmute_copy(&pkey), core::mem::transmute_copy(&pfascending)).into() @@ -25028,7 +25028,7 @@ impl IFolderView2_Vtbl { IFolderView2_Impl::GetItem(this, core::mem::transmute_copy(&iitem), core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } } - unsafe extern "system" fn GetVisibleItem(this: *mut core::ffi::c_void, istart: i32, fprevious: super::super::Foundation::BOOL, piitem: *mut i32) -> windows_core::HRESULT { + unsafe extern "system" fn GetVisibleItem(this: *mut core::ffi::c_void, istart: i32, fprevious: windows_core::BOOL, piitem: *mut i32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderView2_Impl::GetVisibleItem(this, core::mem::transmute_copy(&istart), core::mem::transmute_copy(&fprevious)) { @@ -25052,7 +25052,7 @@ impl IFolderView2_Vtbl { } } } - unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, fnoneimpliesfolder: super::super::Foundation::BOOL, ppsia: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetSelection(this: *mut core::ffi::c_void, fnoneimpliesfolder: windows_core::BOOL, ppsia: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IFolderView2_Impl::GetSelection(this, core::mem::transmute_copy(&fnoneimpliesfolder)) { @@ -25112,7 +25112,7 @@ impl IFolderView2_Vtbl { } } } - unsafe extern "system" fn SetRedraw(this: *mut core::ffi::c_void, fredrawon: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetRedraw(this: *mut core::ffi::c_void, fredrawon: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderView2_Impl::SetRedraw(this, core::mem::transmute_copy(&fredrawon)).into() @@ -25316,7 +25316,7 @@ impl IFolderViewSettings { let mut result__ = core::ptr::null_mut(); unsafe { (windows_core::Interface::vtable(self).GetColumnPropertyList)(windows_core::Interface::as_raw(self), &T::IID, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetGroupByProperty(&self, pkey: *mut super::super::Foundation::PROPERTYKEY, pfgroupascending: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetGroupByProperty(&self, pkey: *mut super::super::Foundation::PROPERTYKEY, pfgroupascending: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetGroupByProperty)(windows_core::Interface::as_raw(self), pkey as _, pfgroupascending as _).ok() } } pub unsafe fn GetViewMode(&self) -> windows_core::Result { @@ -25348,7 +25348,7 @@ impl IFolderViewSettings { pub struct IFolderViewSettings_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetColumnPropertyList: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetGroupByProperty: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::PROPERTYKEY, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetGroupByProperty: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::PROPERTYKEY, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetViewMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut FOLDERLOGICALVIEWMODE) -> windows_core::HRESULT, pub GetIconSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetFolderFlags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut FOLDERFLAGS, *mut FOLDERFLAGS) -> windows_core::HRESULT, @@ -25357,7 +25357,7 @@ pub struct IFolderViewSettings_Vtbl { } pub trait IFolderViewSettings_Impl: windows_core::IUnknownImpl { fn GetColumnPropertyList(&self, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; - fn GetGroupByProperty(&self, pkey: *mut super::super::Foundation::PROPERTYKEY, pfgroupascending: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetGroupByProperty(&self, pkey: *mut super::super::Foundation::PROPERTYKEY, pfgroupascending: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetViewMode(&self) -> windows_core::Result; fn GetIconSize(&self) -> windows_core::Result; fn GetFolderFlags(&self, pfoldermask: *mut FOLDERFLAGS, pfolderflags: *mut FOLDERFLAGS) -> windows_core::Result<()>; @@ -25372,7 +25372,7 @@ impl IFolderViewSettings_Vtbl { IFolderViewSettings_Impl::GetColumnPropertyList(this, core::mem::transmute_copy(&riid), core::mem::transmute_copy(&ppv)).into() } } - unsafe extern "system" fn GetGroupByProperty(this: *mut core::ffi::c_void, pkey: *mut super::super::Foundation::PROPERTYKEY, pfgroupascending: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetGroupByProperty(this: *mut core::ffi::c_void, pkey: *mut super::super::Foundation::PROPERTYKEY, pfgroupascending: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFolderViewSettings_Impl::GetGroupByProperty(this, core::mem::transmute_copy(&pkey), core::mem::transmute_copy(&pfgroupascending)).into() @@ -25558,22 +25558,22 @@ impl IFrameworkInputPaneHandler { #[repr(C)] pub struct IFrameworkInputPaneHandler_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Showing: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub Hiding: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Showing: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, windows_core::BOOL) -> windows_core::HRESULT, + pub Hiding: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IFrameworkInputPaneHandler_Impl: windows_core::IUnknownImpl { - fn Showing(&self, prcinputpanescreenlocation: *const super::super::Foundation::RECT, fensurefocusedelementinview: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn Hiding(&self, fensurefocusedelementinview: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Showing(&self, prcinputpanescreenlocation: *const super::super::Foundation::RECT, fensurefocusedelementinview: windows_core::BOOL) -> windows_core::Result<()>; + fn Hiding(&self, fensurefocusedelementinview: windows_core::BOOL) -> windows_core::Result<()>; } impl IFrameworkInputPaneHandler_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Showing(this: *mut core::ffi::c_void, prcinputpanescreenlocation: *const super::super::Foundation::RECT, fensurefocusedelementinview: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Showing(this: *mut core::ffi::c_void, prcinputpanescreenlocation: *const super::super::Foundation::RECT, fensurefocusedelementinview: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFrameworkInputPaneHandler_Impl::Showing(this, core::mem::transmute_copy(&prcinputpanescreenlocation), core::mem::transmute_copy(&fensurefocusedelementinview)).into() } } - unsafe extern "system" fn Hiding(this: *mut core::ffi::c_void, fensurefocusedelementinview: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Hiding(this: *mut core::ffi::c_void, fensurefocusedelementinview: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IFrameworkInputPaneHandler_Impl::Hiding(this, core::mem::transmute_copy(&fensurefocusedelementinview)).into() @@ -26289,7 +26289,7 @@ pub struct IHlinkBrowseContext_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Register: usize, #[cfg(feature = "Win32_System_Com")] - pub GetObject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetObject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetObject: usize, pub Revoke: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -26317,7 +26317,7 @@ pub struct IHlinkBrowseContext_Vtbl { #[cfg(feature = "Win32_System_Com")] pub trait IHlinkBrowseContext_Impl: windows_core::IUnknownImpl { fn Register(&self, reserved: u32, piunk: windows_core::Ref, pimk: windows_core::Ref) -> windows_core::Result; - fn GetObject(&self, pimk: windows_core::Ref, fbindifrootregistered: super::super::Foundation::BOOL) -> windows_core::Result; + fn GetObject(&self, pimk: windows_core::Ref, fbindifrootregistered: windows_core::BOOL) -> windows_core::Result; fn Revoke(&self, dwregister: u32) -> windows_core::Result<()>; fn SetBrowseWindowInfo(&self, phlbwi: *const HLBWINFO) -> windows_core::Result<()>; fn GetBrowseWindowInfo(&self, phlbwi: *mut HLBWINFO) -> windows_core::Result<()>; @@ -26346,7 +26346,7 @@ impl IHlinkBrowseContext_Vtbl { } } } - unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, pimk: *mut core::ffi::c_void, fbindifrootregistered: super::super::Foundation::BOOL, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn GetObject(this: *mut core::ffi::c_void, pimk: *mut core::ffi::c_void, fbindifrootregistered: windows_core::BOOL, ppiunk: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHlinkBrowseContext_Impl::GetObject(this, core::mem::transmute_copy(&pimk), core::mem::transmute_copy(&fbindifrootregistered)) { @@ -26828,7 +26828,7 @@ impl windows_core::RuntimeName for IHlinkTarget {} windows_core::imp::define_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 { + pub unsafe fn IsMember(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsMember)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -26844,16 +26844,16 @@ impl IHomeGroup { #[repr(C)] pub struct IHomeGroup_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsMember: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsMember: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub ShowSharingWizard: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut HOMEGROUPSHARINGCHOICES) -> windows_core::HRESULT, } pub trait IHomeGroup_Impl: windows_core::IUnknownImpl { - fn IsMember(&self) -> windows_core::Result; + fn IsMember(&self) -> windows_core::Result; fn ShowSharingWizard(&self, owner: super::super::Foundation::HWND) -> windows_core::Result; } impl IHomeGroup_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsMember(this: *mut core::ffi::c_void, member: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsMember(this: *mut core::ffi::c_void, member: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHomeGroup_Impl::IsMember(this) { @@ -27282,7 +27282,7 @@ impl IInputObject { pub struct IInputObject_Vtbl { pub base__: windows_core::IUnknown_Vtbl, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub UIActivateIO: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT, + pub UIActivateIO: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] UIActivateIO: usize, pub HasFocusIO: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -27293,14 +27293,14 @@ pub struct IInputObject_Vtbl { } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub trait IInputObject_Impl: windows_core::IUnknownImpl { - fn UIActivateIO(&self, factivate: super::super::Foundation::BOOL, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()>; + fn UIActivateIO(&self, factivate: windows_core::BOOL, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()>; fn HasFocusIO(&self) -> windows_core::Result<()>; fn TranslateAcceleratorIO(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::Result<()>; } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IInputObject_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn UIActivateIO(this: *mut core::ffi::c_void, factivate: super::super::Foundation::BOOL, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT { + unsafe extern "system" fn UIActivateIO(this: *mut core::ffi::c_void, factivate: windows_core::BOOL, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInputObject_Impl::UIActivateIO(this, core::mem::transmute_copy(&factivate), core::mem::transmute_copy(&pmsg)).into() @@ -27387,14 +27387,14 @@ impl IInputObjectSite { #[repr(C)] pub struct IInputObjectSite_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnFocusChangeIS: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnFocusChangeIS: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IInputObjectSite_Impl: windows_core::IUnknownImpl { - fn OnFocusChangeIS(&self, punkobj: windows_core::Ref, fsetfocus: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnFocusChangeIS(&self, punkobj: windows_core::Ref, fsetfocus: windows_core::BOOL) -> windows_core::Result<()>; } impl IInputObjectSite_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnFocusChangeIS(this: *mut core::ffi::c_void, punkobj: *mut core::ffi::c_void, fsetfocus: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnFocusChangeIS(this: *mut core::ffi::c_void, punkobj: *mut core::ffi::c_void, fsetfocus: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IInputObjectSite_Impl::OnFocusChangeIS(this, core::mem::transmute_copy(&punkobj), core::mem::transmute_copy(&fsetfocus)).into() @@ -28367,13 +28367,13 @@ pub struct IMenuPopup_Vtbl { pub base__: IDeskBar_Vtbl, pub Popup: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::POINTL, *const super::super::Foundation::RECTL, i32) -> windows_core::HRESULT, pub OnSelect: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub SetSubMenu: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetSubMenu: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Ole")] pub trait IMenuPopup_Impl: IDeskBar_Impl { fn Popup(&self, ppt: *const super::super::Foundation::POINTL, prcexclude: *const super::super::Foundation::RECTL, dwflags: i32) -> windows_core::Result<()>; fn OnSelect(&self, dwselecttype: u32) -> windows_core::Result<()>; - fn SetSubMenu(&self, pmp: windows_core::Ref, fset: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetSubMenu(&self, pmp: windows_core::Ref, fset: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Ole")] impl IMenuPopup_Vtbl { @@ -28390,7 +28390,7 @@ impl IMenuPopup_Vtbl { IMenuPopup_Impl::OnSelect(this, core::mem::transmute_copy(&dwselecttype)).into() } } - unsafe extern "system" fn SetSubMenu(this: *mut core::ffi::c_void, pmp: *mut core::ffi::c_void, fset: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetSubMenu(this: *mut core::ffi::c_void, pmp: *mut core::ffi::c_void, fset: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMenuPopup_Impl::SetSubMenu(this, core::mem::transmute_copy(&pmp), core::mem::transmute_copy(&fset)).into() @@ -29129,7 +29129,7 @@ impl INameSpaceTreeControlDropHandler { #[repr(C)] pub struct INameSpaceTreeControlDropHandler_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnDragEnter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, u32, *mut u32) -> windows_core::HRESULT, + pub OnDragEnter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, u32, *mut u32) -> windows_core::HRESULT, pub OnDragOver: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, pub OnDragPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, i32, i32) -> windows_core::HRESULT, pub OnDrop: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, i32, u32, *mut u32) -> windows_core::HRESULT, @@ -29137,7 +29137,7 @@ pub struct INameSpaceTreeControlDropHandler_Vtbl { pub OnDragLeave: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait INameSpaceTreeControlDropHandler_Impl: windows_core::IUnknownImpl { - fn OnDragEnter(&self, psiover: windows_core::Ref, psiadata: windows_core::Ref, foutsidesource: super::super::Foundation::BOOL, grfkeystate: u32, pdweffect: *mut u32) -> windows_core::Result<()>; + fn OnDragEnter(&self, psiover: windows_core::Ref, psiadata: windows_core::Ref, foutsidesource: windows_core::BOOL, grfkeystate: u32, pdweffect: *mut u32) -> windows_core::Result<()>; fn OnDragOver(&self, psiover: windows_core::Ref, psiadata: windows_core::Ref, grfkeystate: u32, pdweffect: *mut u32) -> windows_core::Result<()>; fn OnDragPosition(&self, psiover: windows_core::Ref, psiadata: windows_core::Ref, inewposition: i32, ioldposition: i32) -> windows_core::Result<()>; fn OnDrop(&self, psiover: windows_core::Ref, psiadata: windows_core::Ref, iposition: i32, grfkeystate: u32, pdweffect: *mut u32) -> windows_core::Result<()>; @@ -29146,7 +29146,7 @@ pub trait INameSpaceTreeControlDropHandler_Impl: windows_core::IUnknownImpl { } impl INameSpaceTreeControlDropHandler_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnDragEnter(this: *mut core::ffi::c_void, psiover: *mut core::ffi::c_void, psiadata: *mut core::ffi::c_void, foutsidesource: super::super::Foundation::BOOL, grfkeystate: u32, pdweffect: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn OnDragEnter(this: *mut core::ffi::c_void, psiover: *mut core::ffi::c_void, psiadata: *mut core::ffi::c_void, foutsidesource: windows_core::BOOL, grfkeystate: u32, pdweffect: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlDropHandler_Impl::OnDragEnter(this, core::mem::transmute_copy(&psiover), core::mem::transmute_copy(&psiadata), core::mem::transmute_copy(&foutsidesource), core::mem::transmute_copy(&grfkeystate), core::mem::transmute_copy(&pdweffect)).into() @@ -29322,8 +29322,8 @@ pub struct INameSpaceTreeControlEvents_Vtbl { pub OnEndLabelEdit: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub OnGetToolTip: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::PWSTR, i32) -> windows_core::HRESULT, pub OnBeforeItemDelete: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub OnItemAdded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OnItemDeleted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnItemAdded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub OnItemDeleted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub OnBeforeContextMenu: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub OnAfterContextMenu: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub OnBeforeStateImageChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -29342,8 +29342,8 @@ pub trait INameSpaceTreeControlEvents_Impl: windows_core::IUnknownImpl { fn OnEndLabelEdit(&self, psi: windows_core::Ref) -> windows_core::Result<()>; fn OnGetToolTip(&self, psi: windows_core::Ref, psztip: windows_core::PWSTR, cchtip: i32) -> windows_core::Result<()>; fn OnBeforeItemDelete(&self, psi: windows_core::Ref) -> windows_core::Result<()>; - fn OnItemAdded(&self, psi: windows_core::Ref, fisroot: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OnItemDeleted(&self, psi: windows_core::Ref, fisroot: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnItemAdded(&self, psi: windows_core::Ref, fisroot: windows_core::BOOL) -> windows_core::Result<()>; + fn OnItemDeleted(&self, psi: windows_core::Ref, fisroot: windows_core::BOOL) -> windows_core::Result<()>; fn OnBeforeContextMenu(&self, psi: windows_core::Ref, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn OnAfterContextMenu(&self, psi: windows_core::Ref, pcmin: windows_core::Ref, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn OnBeforeStateImageChange(&self, psi: windows_core::Ref) -> windows_core::Result<()>; @@ -29423,13 +29423,13 @@ impl INameSpaceTreeControlEvents_Vtbl { INameSpaceTreeControlEvents_Impl::OnBeforeItemDelete(this, core::mem::transmute_copy(&psi)).into() } } - unsafe extern "system" fn OnItemAdded(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, fisroot: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnItemAdded(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, fisroot: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnItemAdded(this, core::mem::transmute_copy(&psi), core::mem::transmute_copy(&fisroot)).into() } } - unsafe extern "system" fn OnItemDeleted(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, fisroot: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnItemDeleted(this: *mut core::ffi::c_void, psi: *mut core::ffi::c_void, fisroot: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INameSpaceTreeControlEvents_Impl::OnItemDeleted(this, core::mem::transmute_copy(&psi), core::mem::transmute_copy(&fisroot)).into() @@ -30207,14 +30207,14 @@ impl INewWindowManager { #[repr(C)] pub struct INewWindowManager_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub EvaluateNewWindow: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, super::super::Foundation::BOOL, u32, u32) -> windows_core::HRESULT, + pub EvaluateNewWindow: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::BOOL, u32, u32) -> windows_core::HRESULT, } pub trait INewWindowManager_Impl: windows_core::IUnknownImpl { - fn EvaluateNewWindow(&self, pszurl: &windows_core::PCWSTR, pszname: &windows_core::PCWSTR, pszurlcontext: &windows_core::PCWSTR, pszfeatures: &windows_core::PCWSTR, freplace: super::super::Foundation::BOOL, dwflags: u32, dwuseractiontime: u32) -> windows_core::Result<()>; + fn EvaluateNewWindow(&self, pszurl: &windows_core::PCWSTR, pszname: &windows_core::PCWSTR, pszurlcontext: &windows_core::PCWSTR, pszfeatures: &windows_core::PCWSTR, freplace: windows_core::BOOL, dwflags: u32, dwuseractiontime: u32) -> windows_core::Result<()>; } impl INewWindowManager_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn EvaluateNewWindow(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pszname: windows_core::PCWSTR, pszurlcontext: windows_core::PCWSTR, pszfeatures: windows_core::PCWSTR, freplace: super::super::Foundation::BOOL, dwflags: u32, dwuseractiontime: u32) -> windows_core::HRESULT { + unsafe extern "system" fn EvaluateNewWindow(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, pszname: windows_core::PCWSTR, pszurlcontext: windows_core::PCWSTR, pszfeatures: windows_core::PCWSTR, freplace: windows_core::BOOL, dwflags: u32, dwuseractiontime: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); INewWindowManager_Impl::EvaluateNewWindow(this, core::mem::transmute(&pszurl), core::mem::transmute(&pszname), core::mem::transmute(&pszurlcontext), core::mem::transmute(&pszfeatures), core::mem::transmute_copy(&freplace), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dwuseractiontime)).into() @@ -31875,7 +31875,7 @@ impl windows_core::RuntimeName for IPreviewItem {} windows_core::imp::define_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: bool) -> windows_core::Result + pub unsafe fn AreSnapshotsAvailable(&self, pszpath: P0, foktobeslow: bool) -> windows_core::Result where P0: windows_core::Param, { @@ -31888,14 +31888,14 @@ impl IPreviousVersionsInfo { #[repr(C)] pub struct IPreviousVersionsInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub AreSnapshotsAvailable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AreSnapshotsAvailable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IPreviousVersionsInfo_Impl: windows_core::IUnknownImpl { - fn AreSnapshotsAvailable(&self, pszpath: &windows_core::PCWSTR, foktobeslow: super::super::Foundation::BOOL) -> windows_core::Result; + fn AreSnapshotsAvailable(&self, pszpath: &windows_core::PCWSTR, foktobeslow: windows_core::BOOL) -> windows_core::Result; } impl IPreviousVersionsInfo_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn AreSnapshotsAvailable(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, foktobeslow: super::super::Foundation::BOOL, pfavailable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AreSnapshotsAvailable(this: *mut core::ffi::c_void, pszpath: windows_core::PCWSTR, foktobeslow: windows_core::BOOL, pfavailable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IPreviousVersionsInfo_Impl::AreSnapshotsAvailable(this, core::mem::transmute(&pszpath), core::mem::transmute_copy(&foktobeslow)) { @@ -31999,7 +31999,7 @@ impl IProgressDialog { pub unsafe fn SetAnimation(&self, hinstanimation: Option, idanimation: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetAnimation)(windows_core::Interface::as_raw(self), hinstanimation.unwrap_or(core::mem::zeroed()) as _, idanimation).ok() } } - pub unsafe fn HasUserCancelled(&self) -> super::super::Foundation::BOOL { + pub unsafe fn HasUserCancelled(&self) -> windows_core::BOOL { unsafe { (windows_core::Interface::vtable(self).HasUserCancelled)(windows_core::Interface::as_raw(self)) } } pub unsafe fn SetProgress(&self, dwcompleted: u32, dwtotal: u32) -> windows_core::Result<()> { @@ -32031,10 +32031,10 @@ pub struct IProgressDialog_Vtbl { pub StopProgressDialog: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SetTitle: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, pub SetAnimation: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HINSTANCE, u32) -> windows_core::HRESULT, - pub HasUserCancelled: unsafe extern "system" fn(*mut core::ffi::c_void) -> super::super::Foundation::BOOL, + pub HasUserCancelled: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::BOOL, pub SetProgress: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, pub SetProgress64: unsafe extern "system" fn(*mut core::ffi::c_void, u64, u64) -> windows_core::HRESULT, - pub SetLine: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, super::super::Foundation::BOOL, *const core::ffi::c_void) -> windows_core::HRESULT, + pub SetLine: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, windows_core::BOOL, *const core::ffi::c_void) -> windows_core::HRESULT, pub SetCancelMsg: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const core::ffi::c_void) -> windows_core::HRESULT, pub Timer: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const core::ffi::c_void) -> windows_core::HRESULT, } @@ -32043,10 +32043,10 @@ pub trait IProgressDialog_Impl: windows_core::IUnknownImpl { fn StopProgressDialog(&self) -> windows_core::Result<()>; fn SetTitle(&self, pwztitle: &windows_core::PCWSTR) -> windows_core::Result<()>; fn SetAnimation(&self, hinstanimation: super::super::Foundation::HINSTANCE, idanimation: u32) -> windows_core::Result<()>; - fn HasUserCancelled(&self) -> super::super::Foundation::BOOL; + fn HasUserCancelled(&self) -> windows_core::BOOL; fn SetProgress(&self, dwcompleted: u32, dwtotal: u32) -> windows_core::Result<()>; fn SetProgress64(&self, ullcompleted: u64, ulltotal: u64) -> windows_core::Result<()>; - fn SetLine(&self, dwlinenum: u32, pwzstring: &windows_core::PCWSTR, fcompactpath: super::super::Foundation::BOOL, pvresevered: *const core::ffi::c_void) -> windows_core::Result<()>; + fn SetLine(&self, dwlinenum: u32, pwzstring: &windows_core::PCWSTR, fcompactpath: windows_core::BOOL, pvresevered: *const core::ffi::c_void) -> windows_core::Result<()>; fn SetCancelMsg(&self, pwzcancelmsg: &windows_core::PCWSTR, pvresevered: *const core::ffi::c_void) -> windows_core::Result<()>; fn Timer(&self, dwtimeraction: u32, pvresevered: *const core::ffi::c_void) -> windows_core::Result<()>; } @@ -32076,7 +32076,7 @@ impl IProgressDialog_Vtbl { IProgressDialog_Impl::SetAnimation(this, core::mem::transmute_copy(&hinstanimation), core::mem::transmute_copy(&idanimation)).into() } } - unsafe extern "system" fn HasUserCancelled(this: *mut core::ffi::c_void) -> super::super::Foundation::BOOL { + unsafe extern "system" fn HasUserCancelled(this: *mut core::ffi::c_void) -> windows_core::BOOL { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProgressDialog_Impl::HasUserCancelled(this) @@ -32094,7 +32094,7 @@ impl IProgressDialog_Vtbl { IProgressDialog_Impl::SetProgress64(this, core::mem::transmute_copy(&ullcompleted), core::mem::transmute_copy(&ulltotal)).into() } } - unsafe extern "system" fn SetLine(this: *mut core::ffi::c_void, dwlinenum: u32, pwzstring: windows_core::PCWSTR, fcompactpath: super::super::Foundation::BOOL, pvresevered: *const core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn SetLine(this: *mut core::ffi::c_void, dwlinenum: u32, pwzstring: windows_core::PCWSTR, fcompactpath: windows_core::BOOL, pvresevered: *const core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IProgressDialog_Impl::SetLine(this, core::mem::transmute_copy(&dwlinenum), core::mem::transmute(&pwzstring), core::mem::transmute_copy(&fcompactpath), core::mem::transmute_copy(&pvresevered)).into() @@ -32742,7 +32742,7 @@ pub const IRTIR_TASK_SUSPENDED: u32 = 2u32; windows_core::imp::define_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 { + pub unsafe fn GetCheckState(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetCheckState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -32755,16 +32755,16 @@ impl IRegTreeItem { #[repr(C)] pub struct IRegTreeItem_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetCheckState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetCheckState: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetCheckState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetCheckState: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IRegTreeItem_Impl: windows_core::IUnknownImpl { - fn GetCheckState(&self) -> windows_core::Result; - fn SetCheckState(&self, bcheck: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetCheckState(&self) -> windows_core::Result; + fn SetCheckState(&self, bcheck: windows_core::BOOL) -> windows_core::Result<()>; } impl IRegTreeItem_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetCheckState(this: *mut core::ffi::c_void, pbcheck: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetCheckState(this: *mut core::ffi::c_void, pbcheck: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRegTreeItem_Impl::GetCheckState(this) { @@ -32776,7 +32776,7 @@ impl IRegTreeItem_Vtbl { } } } - unsafe extern "system" fn SetCheckState(this: *mut core::ffi::c_void, bcheck: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetCheckState(this: *mut core::ffi::c_void, bcheck: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRegTreeItem_Impl::SetCheckState(this, core::mem::transmute_copy(&bcheck)).into() @@ -32876,14 +32876,14 @@ impl IRemoteComputer { #[repr(C)] pub struct IRemoteComputer_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IRemoteComputer_Impl: windows_core::IUnknownImpl { - fn Initialize(&self, pszmachine: &windows_core::PCWSTR, benumerating: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Initialize(&self, pszmachine: &windows_core::PCWSTR, benumerating: windows_core::BOOL) -> windows_core::Result<()>; } impl IRemoteComputer_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszmachine: windows_core::PCWSTR, benumerating: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Initialize(this: *mut core::ffi::c_void, pszmachine: windows_core::PCWSTR, benumerating: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRemoteComputer_Impl::Initialize(this, core::mem::transmute(&pszmachine), core::mem::transmute_copy(&benumerating)).into() @@ -33050,14 +33050,14 @@ impl IRunnableTask { pub struct IRunnableTask_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Run: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub Kill: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Kill: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub Suspend: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Resume: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub IsRunning: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, } pub trait IRunnableTask_Impl: windows_core::IUnknownImpl { fn Run(&self) -> windows_core::Result<()>; - fn Kill(&self, bwait: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Kill(&self, bwait: windows_core::BOOL) -> windows_core::Result<()>; fn Suspend(&self) -> windows_core::Result<()>; fn Resume(&self) -> windows_core::Result<()>; fn IsRunning(&self) -> u32; @@ -33070,7 +33070,7 @@ impl IRunnableTask_Vtbl { IRunnableTask_Impl::Run(this).into() } } - unsafe extern "system" fn Kill(this: *mut core::ffi::c_void, bwait: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Kill(this: *mut core::ffi::c_void, bwait: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRunnableTask_Impl::Kill(this, core::mem::transmute_copy(&bwait)).into() @@ -33155,13 +33155,13 @@ impl IScriptErrorList { pub unsafe fn retreatError(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).retreatError)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn canAdvanceError(&self) -> windows_core::Result { + pub unsafe fn canAdvanceError(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).canAdvanceError)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn canRetreatError(&self) -> windows_core::Result { + pub unsafe fn canRetreatError(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).canRetreatError)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -33197,13 +33197,13 @@ impl IScriptErrorList { (windows_core::Interface::vtable(self).getErrorUrl)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn getAlwaysShowLockState(&self) -> windows_core::Result { + pub unsafe fn getAlwaysShowLockState(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).getAlwaysShowLockState)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn getDetailsPaneOpen(&self) -> windows_core::Result { + pub unsafe fn getDetailsPaneOpen(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).getDetailsPaneOpen)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -33212,7 +33212,7 @@ impl IScriptErrorList { pub unsafe fn setDetailsPaneOpen(&self, fdetailspaneopen: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).setDetailsPaneOpen)(windows_core::Interface::as_raw(self), fdetailspaneopen.into()).ok() } } - pub unsafe fn getPerErrorDisplay(&self) -> windows_core::Result { + pub unsafe fn getPerErrorDisplay(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).getPerErrorDisplay)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -33228,35 +33228,35 @@ pub struct IScriptErrorList_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub advanceError: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub retreatError: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub canAdvanceError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub canRetreatError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub canAdvanceError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub canRetreatError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub getErrorLine: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub getErrorChar: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub getErrorCode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub getErrorMsg: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub getErrorUrl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub getAlwaysShowLockState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub getDetailsPaneOpen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub setDetailsPaneOpen: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub getPerErrorDisplay: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub setPerErrorDisplay: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub getAlwaysShowLockState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub getDetailsPaneOpen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub setDetailsPaneOpen: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub getPerErrorDisplay: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub setPerErrorDisplay: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait IScriptErrorList_Impl: super::super::System::Com::IDispatch_Impl { fn advanceError(&self) -> windows_core::Result<()>; fn retreatError(&self) -> windows_core::Result<()>; - fn canAdvanceError(&self) -> windows_core::Result; - fn canRetreatError(&self) -> windows_core::Result; + fn canAdvanceError(&self) -> windows_core::Result; + fn canRetreatError(&self) -> windows_core::Result; fn getErrorLine(&self) -> windows_core::Result; fn getErrorChar(&self) -> windows_core::Result; fn getErrorCode(&self) -> windows_core::Result; fn getErrorMsg(&self) -> windows_core::Result; fn getErrorUrl(&self) -> windows_core::Result; - fn getAlwaysShowLockState(&self) -> windows_core::Result; - fn getDetailsPaneOpen(&self) -> windows_core::Result; - fn setDetailsPaneOpen(&self, fdetailspaneopen: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn getPerErrorDisplay(&self) -> windows_core::Result; - fn setPerErrorDisplay(&self, fpererrordisplay: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn getAlwaysShowLockState(&self) -> windows_core::Result; + fn getDetailsPaneOpen(&self) -> windows_core::Result; + fn setDetailsPaneOpen(&self, fdetailspaneopen: windows_core::BOOL) -> windows_core::Result<()>; + fn getPerErrorDisplay(&self) -> windows_core::Result; + fn setPerErrorDisplay(&self, fpererrordisplay: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] impl IScriptErrorList_Vtbl { @@ -33273,7 +33273,7 @@ impl IScriptErrorList_Vtbl { IScriptErrorList_Impl::retreatError(this).into() } } - unsafe extern "system" fn canAdvanceError(this: *mut core::ffi::c_void, pfcanadvance: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn canAdvanceError(this: *mut core::ffi::c_void, pfcanadvance: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptErrorList_Impl::canAdvanceError(this) { @@ -33285,7 +33285,7 @@ impl IScriptErrorList_Vtbl { } } } - unsafe extern "system" fn canRetreatError(this: *mut core::ffi::c_void, pfcanretreat: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn canRetreatError(this: *mut core::ffi::c_void, pfcanretreat: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptErrorList_Impl::canRetreatError(this) { @@ -33357,7 +33357,7 @@ impl IScriptErrorList_Vtbl { } } } - unsafe extern "system" fn getAlwaysShowLockState(this: *mut core::ffi::c_void, pfalwaysshowlocked: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn getAlwaysShowLockState(this: *mut core::ffi::c_void, pfalwaysshowlocked: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptErrorList_Impl::getAlwaysShowLockState(this) { @@ -33369,7 +33369,7 @@ impl IScriptErrorList_Vtbl { } } } - unsafe extern "system" fn getDetailsPaneOpen(this: *mut core::ffi::c_void, pfdetailspaneopen: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn getDetailsPaneOpen(this: *mut core::ffi::c_void, pfdetailspaneopen: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptErrorList_Impl::getDetailsPaneOpen(this) { @@ -33381,13 +33381,13 @@ impl IScriptErrorList_Vtbl { } } } - unsafe extern "system" fn setDetailsPaneOpen(this: *mut core::ffi::c_void, fdetailspaneopen: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn setDetailsPaneOpen(this: *mut core::ffi::c_void, fdetailspaneopen: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScriptErrorList_Impl::setDetailsPaneOpen(this, core::mem::transmute_copy(&fdetailspaneopen)).into() } } - unsafe extern "system" fn getPerErrorDisplay(this: *mut core::ffi::c_void, pfpererrordisplay: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn getPerErrorDisplay(this: *mut core::ffi::c_void, pfpererrordisplay: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IScriptErrorList_Impl::getPerErrorDisplay(this) { @@ -33399,7 +33399,7 @@ impl IScriptErrorList_Vtbl { } } } - unsafe extern "system" fn setPerErrorDisplay(this: *mut core::ffi::c_void, fpererrordisplay: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn setPerErrorDisplay(this: *mut core::ffi::c_void, fpererrordisplay: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IScriptErrorList_Impl::setPerErrorDisplay(this, core::mem::transmute_copy(&fpererrordisplay)).into() @@ -34197,7 +34197,7 @@ pub struct IShellBrowser_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] RemoveMenusSB: usize, pub SetStatusTextSB: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR) -> windows_core::HRESULT, - pub EnableModelessSB: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableModelessSB: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub TranslateAcceleratorSB: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::WindowsAndMessaging::MSG, u16) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] @@ -34225,7 +34225,7 @@ pub trait IShellBrowser_Impl: super::super::System::Ole::IOleWindow_Impl { fn SetMenuSB(&self, hmenushared: super::WindowsAndMessaging::HMENU, holemenures: isize, hwndactiveobject: super::super::Foundation::HWND) -> windows_core::Result<()>; fn RemoveMenusSB(&self, hmenushared: super::WindowsAndMessaging::HMENU) -> windows_core::Result<()>; fn SetStatusTextSB(&self, pszstatustext: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn EnableModelessSB(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EnableModelessSB(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; fn TranslateAcceleratorSB(&self, pmsg: *const super::WindowsAndMessaging::MSG, wid: u16) -> windows_core::Result<()>; fn BrowseObject(&self, pidl: *const Common::ITEMIDLIST, wflags: u32) -> windows_core::Result<()>; fn GetViewStateStream(&self, grfmode: u32) -> windows_core::Result; @@ -34262,7 +34262,7 @@ impl IShellBrowser_Vtbl { IShellBrowser_Impl::SetStatusTextSB(this, core::mem::transmute(&pszstatustext)).into() } } - unsafe extern "system" fn EnableModelessSB(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableModelessSB(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellBrowser_Impl::EnableModelessSB(this, core::mem::transmute_copy(&fenable)).into() @@ -36170,7 +36170,7 @@ pub struct IShellFolderView_Vtbl { pub RefreshObject: unsafe extern "system" fn(*mut core::ffi::c_void, *const Common::ITEMIDLIST, *mut u32) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] RefreshObject: usize, - pub SetRedraw: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetRedraw: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetSelectedCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub GetSelectedObjects: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut *mut Common::ITEMIDLIST, *mut u32) -> windows_core::HRESULT, @@ -36194,7 +36194,7 @@ pub struct IShellFolderView_Vtbl { pub IsBkDropTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] IsBkDropTarget: usize, - pub SetClipboard: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetClipboard: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SetPoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -36222,7 +36222,7 @@ pub trait IShellFolderView_Impl: windows_core::IUnknownImpl { fn SetObjectCount(&self, ucount: u32, dwflags: u32) -> windows_core::Result<()>; fn UpdateObject(&self, pidlold: *const Common::ITEMIDLIST, pidlnew: *const Common::ITEMIDLIST) -> windows_core::Result; fn RefreshObject(&self, pidl: *const Common::ITEMIDLIST) -> windows_core::Result; - fn SetRedraw(&self, bredraw: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetRedraw(&self, bredraw: windows_core::BOOL) -> windows_core::Result<()>; fn GetSelectedCount(&self) -> windows_core::Result; fn GetSelectedObjects(&self, pppidl: *mut *mut *mut Common::ITEMIDLIST, puitems: *mut u32) -> windows_core::Result<()>; fn IsDropOnSource(&self, pdroptarget: windows_core::Ref) -> windows_core::Result<()>; @@ -36231,7 +36231,7 @@ pub trait IShellFolderView_Impl: windows_core::IUnknownImpl { fn MoveIcons(&self, pdataobject: windows_core::Ref) -> windows_core::Result<()>; fn SetItemPos(&self, pidl: *const Common::ITEMIDLIST, ppt: *const super::super::Foundation::POINT) -> windows_core::Result<()>; fn IsBkDropTarget(&self, pdroptarget: windows_core::Ref) -> windows_core::Result<()>; - fn SetClipboard(&self, bmove: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetClipboard(&self, bmove: windows_core::BOOL) -> windows_core::Result<()>; fn SetPoints(&self, pdataobject: windows_core::Ref) -> windows_core::Result<()>; fn GetItemSpacing(&self) -> windows_core::Result; fn SetCallback(&self, pnewcb: windows_core::Ref) -> windows_core::Result; @@ -36350,7 +36350,7 @@ impl IShellFolderView_Vtbl { } } } - unsafe extern "system" fn SetRedraw(this: *mut core::ffi::c_void, bredraw: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetRedraw(this: *mut core::ffi::c_void, bredraw: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::SetRedraw(this, core::mem::transmute_copy(&bredraw)).into() @@ -36422,7 +36422,7 @@ impl IShellFolderView_Vtbl { IShellFolderView_Impl::IsBkDropTarget(this, core::mem::transmute_copy(&pdroptarget)).into() } } - unsafe extern "system" fn SetClipboard(this: *mut core::ffi::c_void, bmove: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetClipboard(this: *mut core::ffi::c_void, bmove: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellFolderView_Impl::SetClipboard(this, core::mem::transmute_copy(&bmove)).into() @@ -37232,14 +37232,14 @@ pub struct IShellIconOverlayManager_Vtbl { pub GetReservedOverlayInfo: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *mut i32, u32, i32) -> windows_core::HRESULT, pub RefreshOverlayImages: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub LoadNonloadedOverlayIdentifiers: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub OverlayIndexFromImageIndex: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut i32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OverlayIndexFromImageIndex: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut i32, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IShellIconOverlayManager_Impl: windows_core::IUnknownImpl { fn GetFileOverlayInfo(&self, pwszpath: &windows_core::PCWSTR, dwattrib: u32, pindex: *mut i32, dwflags: u32) -> windows_core::Result<()>; fn GetReservedOverlayInfo(&self, pwszpath: &windows_core::PCWSTR, dwattrib: u32, pindex: *mut i32, dwflags: u32, ireservedid: i32) -> windows_core::Result<()>; fn RefreshOverlayImages(&self, dwflags: u32) -> windows_core::Result<()>; fn LoadNonloadedOverlayIdentifiers(&self) -> windows_core::Result<()>; - fn OverlayIndexFromImageIndex(&self, iimage: i32, piindex: *mut i32, fadd: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OverlayIndexFromImageIndex(&self, iimage: i32, piindex: *mut i32, fadd: windows_core::BOOL) -> windows_core::Result<()>; } impl IShellIconOverlayManager_Vtbl { pub const fn new() -> Self { @@ -37267,7 +37267,7 @@ impl IShellIconOverlayManager_Vtbl { IShellIconOverlayManager_Impl::LoadNonloadedOverlayIdentifiers(this).into() } } - unsafe extern "system" fn OverlayIndexFromImageIndex(this: *mut core::ffi::c_void, iimage: i32, piindex: *mut i32, fadd: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OverlayIndexFromImageIndex(this: *mut core::ffi::c_void, iimage: i32, piindex: *mut i32, fadd: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellIconOverlayManager_Impl::OverlayIndexFromImageIndex(this, core::mem::transmute_copy(&iimage), core::mem::transmute_copy(&piindex), core::mem::transmute_copy(&fadd)).into() @@ -38092,7 +38092,7 @@ impl IShellItem2 { (windows_core::Interface::vtable(self).GetUInt64)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) } } - pub unsafe fn GetBool(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { + pub unsafe fn GetBool(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetBool)(windows_core::Interface::as_raw(self), key, &mut result__).map(|| result__) @@ -38129,7 +38129,7 @@ pub struct IShellItem2_Vtbl { pub GetString: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, *mut windows_core::PWSTR) -> windows_core::HRESULT, pub GetUInt32: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, *mut u32) -> windows_core::HRESULT, pub GetUInt64: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, *mut u64) -> windows_core::HRESULT, - pub GetBool: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetBool: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::PROPERTYKEY, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_SystemServices", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem"))] pub trait IShellItem2_Impl: IShellItem_Impl { @@ -38145,7 +38145,7 @@ pub trait IShellItem2_Impl: IShellItem_Impl { fn GetString(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result; fn GetUInt32(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result; fn GetUInt64(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result; - fn GetBool(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result; + fn GetBool(&self, key: *const super::super::Foundation::PROPERTYKEY) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_SystemServices", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IShellItem2_Vtbl { @@ -38264,7 +38264,7 @@ impl IShellItem2_Vtbl { } } } - unsafe extern "system" fn GetBool(this: *mut core::ffi::c_void, key: *const super::super::Foundation::PROPERTYKEY, pf: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetBool(this: *mut core::ffi::c_void, key: *const super::super::Foundation::PROPERTYKEY, pf: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IShellItem2_Impl::GetBool(this, core::mem::transmute_copy(&key)) { @@ -40850,13 +40850,13 @@ impl IShellTaskScheduler { pub struct IShellTaskScheduler_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub AddTask: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, usize, u32) -> windows_core::HRESULT, - pub RemoveTasks: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, usize, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub RemoveTasks: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, usize, windows_core::BOOL) -> windows_core::HRESULT, pub CountTasks: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID) -> u32, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, } pub trait IShellTaskScheduler_Impl: windows_core::IUnknownImpl { fn AddTask(&self, prt: windows_core::Ref, rtoid: *const windows_core::GUID, lparam: usize, dwpriority: u32) -> windows_core::Result<()>; - fn RemoveTasks(&self, rtoid: *const windows_core::GUID, lparam: usize, bwaitifrunning: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn RemoveTasks(&self, rtoid: *const windows_core::GUID, lparam: usize, bwaitifrunning: windows_core::BOOL) -> windows_core::Result<()>; fn CountTasks(&self, rtoid: *const windows_core::GUID) -> u32; fn Status(&self, dwreleasestatus: u32, dwthreadtimeout: u32) -> windows_core::Result<()>; } @@ -40868,7 +40868,7 @@ impl IShellTaskScheduler_Vtbl { IShellTaskScheduler_Impl::AddTask(this, core::mem::transmute_copy(&prt), core::mem::transmute_copy(&rtoid), core::mem::transmute_copy(&lparam), core::mem::transmute_copy(&dwpriority)).into() } } - unsafe extern "system" fn RemoveTasks(this: *mut core::ffi::c_void, rtoid: *const windows_core::GUID, lparam: usize, bwaitifrunning: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RemoveTasks(this: *mut core::ffi::c_void, rtoid: *const windows_core::GUID, lparam: usize, bwaitifrunning: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellTaskScheduler_Impl::RemoveTasks(this, core::mem::transmute_copy(&rtoid), core::mem::transmute_copy(&lparam), core::mem::transmute_copy(&bwaitifrunning)).into() @@ -42813,7 +42813,7 @@ pub struct IShellView_Vtbl { pub TranslateAccelerator: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] TranslateAccelerator: usize, - pub EnableModeless: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableModeless: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub UIActivate: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub Refresh: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateViewWindow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const FOLDERSETTINGS, *mut core::ffi::c_void, *const super::super::Foundation::RECT, *mut super::super::Foundation::HWND) -> windows_core::HRESULT, @@ -42833,7 +42833,7 @@ pub struct IShellView_Vtbl { #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_UI_Controls", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] pub trait IShellView_Impl: super::super::System::Ole::IOleWindow_Impl { fn TranslateAccelerator(&self, pmsg: *const super::WindowsAndMessaging::MSG) -> windows_core::HRESULT; - fn EnableModeless(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EnableModeless(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; fn UIActivate(&self, ustate: u32) -> windows_core::Result<()>; fn Refresh(&self) -> windows_core::Result<()>; fn CreateViewWindow(&self, psvprevious: windows_core::Ref, pfs: *const FOLDERSETTINGS, psb: windows_core::Ref, prcview: *const super::super::Foundation::RECT) -> windows_core::Result; @@ -42853,7 +42853,7 @@ impl IShellView_Vtbl { IShellView_Impl::TranslateAccelerator(this, core::mem::transmute_copy(&pmsg)) } } - unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IShellView_Impl::EnableModeless(this, core::mem::transmute_copy(&fenable)).into() @@ -43785,7 +43785,7 @@ pub struct IStreamAsync_Vtbl { #[cfg(not(feature = "Win32_System_IO"))] WriteAsync: usize, #[cfg(feature = "Win32_System_IO")] - pub OverlappedResult: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::System::IO::OVERLAPPED, *mut u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OverlappedResult: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::System::IO::OVERLAPPED, *mut u32, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_IO"))] OverlappedResult: usize, pub CancelIo: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -43794,7 +43794,7 @@ pub struct IStreamAsync_Vtbl { pub trait IStreamAsync_Impl: super::super::System::Com::IStream_Impl { fn ReadAsync(&self, pv: *mut core::ffi::c_void, cb: u32, pcbread: *mut u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::Result<()>; fn WriteAsync(&self, lpbuffer: *const core::ffi::c_void, cb: u32, pcbwritten: *mut u32, lpoverlapped: *const super::super::System::IO::OVERLAPPED) -> windows_core::Result<()>; - fn OverlappedResult(&self, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OverlappedResult(&self, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: windows_core::BOOL) -> windows_core::Result<()>; fn CancelIo(&self) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_IO"))] @@ -43812,7 +43812,7 @@ impl IStreamAsync_Vtbl { IStreamAsync_Impl::WriteAsync(this, core::mem::transmute_copy(&lpbuffer), core::mem::transmute_copy(&cb), core::mem::transmute_copy(&pcbwritten), core::mem::transmute_copy(&lpoverlapped)).into() } } - unsafe extern "system" fn OverlappedResult(this: *mut core::ffi::c_void, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OverlappedResult(this: *mut core::ffi::c_void, lpoverlapped: *const super::super::System::IO::OVERLAPPED, lpnumberofbytestransferred: *mut u32, bwait: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IStreamAsync_Impl::OverlappedResult(this, core::mem::transmute_copy(&lpoverlapped), core::mem::transmute_copy(&lpnumberofbytestransferred), core::mem::transmute_copy(&bwait)).into() @@ -44264,7 +44264,7 @@ impl ISyncMgrConflictResolveInfo { (windows_core::Interface::vtable(self).GetPresenterNextStep)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn GetPresenterChoice(&self, pnpresenterchoice: *mut SYNCMGR_PRESENTER_CHOICE, pfapplytoall: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetPresenterChoice(&self, pnpresenterchoice: *mut SYNCMGR_PRESENTER_CHOICE, pfapplytoall: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetPresenterChoice)(windows_core::Interface::as_raw(self), pnpresenterchoice as _, pfapplytoall as _).ok() } } pub unsafe fn GetItemChoiceCount(&self) -> windows_core::Result { @@ -44294,21 +44294,21 @@ pub struct ISyncMgrConflictResolveInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetIterationInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut u32, *mut u32) -> windows_core::HRESULT, pub GetPresenterNextStep: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SYNCMGR_PRESENTER_NEXT_STEP) -> windows_core::HRESULT, - pub GetPresenterChoice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SYNCMGR_PRESENTER_CHOICE, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetPresenterChoice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SYNCMGR_PRESENTER_CHOICE, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetItemChoiceCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetItemChoice: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut u32) -> windows_core::HRESULT, pub SetPresenterNextStep: unsafe extern "system" fn(*mut core::ffi::c_void, SYNCMGR_PRESENTER_NEXT_STEP) -> windows_core::HRESULT, - pub SetPresenterChoice: unsafe extern "system" fn(*mut core::ffi::c_void, SYNCMGR_PRESENTER_CHOICE, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetPresenterChoice: unsafe extern "system" fn(*mut core::ffi::c_void, SYNCMGR_PRESENTER_CHOICE, windows_core::BOOL) -> windows_core::HRESULT, pub SetItemChoices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, u32) -> windows_core::HRESULT, } pub trait ISyncMgrConflictResolveInfo_Impl: windows_core::IUnknownImpl { fn GetIterationInfo(&self, pncurrentconflict: *mut u32, pcconflicts: *mut u32, pcremainingforapplytoall: *mut u32) -> windows_core::Result<()>; fn GetPresenterNextStep(&self) -> windows_core::Result; - fn GetPresenterChoice(&self, pnpresenterchoice: *mut SYNCMGR_PRESENTER_CHOICE, pfapplytoall: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetPresenterChoice(&self, pnpresenterchoice: *mut SYNCMGR_PRESENTER_CHOICE, pfapplytoall: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetItemChoiceCount(&self) -> windows_core::Result; fn GetItemChoice(&self, ichoice: u32) -> windows_core::Result; fn SetPresenterNextStep(&self, npresenternextstep: SYNCMGR_PRESENTER_NEXT_STEP) -> windows_core::Result<()>; - fn SetPresenterChoice(&self, npresenterchoice: SYNCMGR_PRESENTER_CHOICE, fapplytoall: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetPresenterChoice(&self, npresenterchoice: SYNCMGR_PRESENTER_CHOICE, fapplytoall: windows_core::BOOL) -> windows_core::Result<()>; fn SetItemChoices(&self, prgiconflictitemindexes: *mut u32, cchoices: u32) -> windows_core::Result<()>; } impl ISyncMgrConflictResolveInfo_Vtbl { @@ -44331,7 +44331,7 @@ impl ISyncMgrConflictResolveInfo_Vtbl { } } } - unsafe extern "system" fn GetPresenterChoice(this: *mut core::ffi::c_void, pnpresenterchoice: *mut SYNCMGR_PRESENTER_CHOICE, pfapplytoall: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetPresenterChoice(this: *mut core::ffi::c_void, pnpresenterchoice: *mut SYNCMGR_PRESENTER_CHOICE, pfapplytoall: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrConflictResolveInfo_Impl::GetPresenterChoice(this, core::mem::transmute_copy(&pnpresenterchoice), core::mem::transmute_copy(&pfapplytoall)).into() @@ -44367,7 +44367,7 @@ impl ISyncMgrConflictResolveInfo_Vtbl { ISyncMgrConflictResolveInfo_Impl::SetPresenterNextStep(this, core::mem::transmute_copy(&npresenternextstep)).into() } } - unsafe extern "system" fn SetPresenterChoice(this: *mut core::ffi::c_void, npresenterchoice: SYNCMGR_PRESENTER_CHOICE, fapplytoall: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetPresenterChoice(this: *mut core::ffi::c_void, npresenterchoice: SYNCMGR_PRESENTER_CHOICE, fapplytoall: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrConflictResolveInfo_Impl::SetPresenterChoice(this, core::mem::transmute_copy(&npresenterchoice), core::mem::transmute_copy(&fapplytoall)).into() @@ -44616,9 +44616,9 @@ pub struct ISyncMgrControl_Vtbl { pub UpdateEvents: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT, pub UpdateConflict: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, *mut core::ffi::c_void, SYNCMGR_UPDATE_REASON) -> windows_core::HRESULT, pub UpdateConflicts: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT, - pub ActivateHandler: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, windows_core::PCWSTR, super::super::Foundation::HWND, SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT, - pub EnableHandler: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, windows_core::PCWSTR, super::super::Foundation::HWND, SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT, - pub EnableItem: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, windows_core::PCWSTR, windows_core::PCWSTR, super::super::Foundation::HWND, SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT, + pub ActivateHandler: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::PCWSTR, super::super::Foundation::HWND, SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT, + pub EnableHandler: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::PCWSTR, super::super::Foundation::HWND, SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT, + pub EnableItem: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::PCWSTR, windows_core::PCWSTR, super::super::Foundation::HWND, SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT, } pub trait ISyncMgrControl_Impl: windows_core::IUnknownImpl { fn StartHandlerSync(&self, pszhandlerid: &windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, punk: windows_core::Ref, nsynccontrolflags: SYNCMGR_SYNC_CONTROL_FLAGS, presult: windows_core::Ref) -> windows_core::Result<()>; @@ -44633,9 +44633,9 @@ pub trait ISyncMgrControl_Impl: windows_core::IUnknownImpl { fn UpdateEvents(&self, pszhandlerid: &windows_core::PCWSTR, pszitemid: &windows_core::PCWSTR, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()>; fn UpdateConflict(&self, pszhandlerid: &windows_core::PCWSTR, pszitemid: &windows_core::PCWSTR, pconflict: windows_core::Ref, nreason: SYNCMGR_UPDATE_REASON) -> windows_core::Result<()>; fn UpdateConflicts(&self, pszhandlerid: &windows_core::PCWSTR, pszitemid: &windows_core::PCWSTR, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()>; - fn ActivateHandler(&self, factivate: super::super::Foundation::BOOL, pszhandlerid: &windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()>; - fn EnableHandler(&self, fenable: super::super::Foundation::BOOL, pszhandlerid: &windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()>; - fn EnableItem(&self, fenable: super::super::Foundation::BOOL, pszhandlerid: &windows_core::PCWSTR, pszitemid: &windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()>; + fn ActivateHandler(&self, factivate: windows_core::BOOL, pszhandlerid: &windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()>; + fn EnableHandler(&self, fenable: windows_core::BOOL, pszhandlerid: &windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()>; + fn EnableItem(&self, fenable: windows_core::BOOL, pszhandlerid: &windows_core::PCWSTR, pszitemid: &windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::Result<()>; } impl ISyncMgrControl_Vtbl { pub const fn new() -> Self { @@ -44711,19 +44711,19 @@ impl ISyncMgrControl_Vtbl { ISyncMgrControl_Impl::UpdateConflicts(this, core::mem::transmute(&pszhandlerid), core::mem::transmute(&pszitemid), core::mem::transmute_copy(&ncontrolflags)).into() } } - unsafe extern "system" fn ActivateHandler(this: *mut core::ffi::c_void, factivate: super::super::Foundation::BOOL, pszhandlerid: windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT { + unsafe extern "system" fn ActivateHandler(this: *mut core::ffi::c_void, factivate: windows_core::BOOL, pszhandlerid: windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrControl_Impl::ActivateHandler(this, core::mem::transmute_copy(&factivate), core::mem::transmute(&pszhandlerid), core::mem::transmute_copy(&hwndowner), core::mem::transmute_copy(&ncontrolflags)).into() } } - unsafe extern "system" fn EnableHandler(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL, pszhandlerid: windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT { + unsafe extern "system" fn EnableHandler(this: *mut core::ffi::c_void, fenable: windows_core::BOOL, pszhandlerid: windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrControl_Impl::EnableHandler(this, core::mem::transmute_copy(&fenable), core::mem::transmute(&pszhandlerid), core::mem::transmute_copy(&hwndowner), core::mem::transmute_copy(&ncontrolflags)).into() } } - unsafe extern "system" fn EnableItem(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL, pszhandlerid: windows_core::PCWSTR, pszitemid: windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT { + unsafe extern "system" fn EnableItem(this: *mut core::ffi::c_void, fenable: windows_core::BOOL, pszhandlerid: windows_core::PCWSTR, pszitemid: windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrControl_Impl::EnableItem(this, core::mem::transmute_copy(&fenable), core::mem::transmute(&pszhandlerid), core::mem::transmute(&pszitemid), core::mem::transmute_copy(&hwndowner), core::mem::transmute_copy(&ncontrolflags)).into() @@ -45281,8 +45281,8 @@ pub struct ISyncMgrHandler_Vtbl { pub GetObject: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetCapabilities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SYNCMGR_HANDLER_CAPABILITIES) -> windows_core::HRESULT, pub GetPolicies: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SYNCMGR_HANDLER_POLICIES) -> windows_core::HRESULT, - pub Activate: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Activate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub Synchronize: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::PCWSTR, u32, super::super::Foundation::HWND, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ISyncMgrHandler_Impl: windows_core::IUnknownImpl { @@ -45291,8 +45291,8 @@ pub trait ISyncMgrHandler_Impl: windows_core::IUnknownImpl { fn GetObject(&self, rguidobjectid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetCapabilities(&self) -> windows_core::Result; fn GetPolicies(&self) -> windows_core::Result; - fn Activate(&self, factivate: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn Enable(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Activate(&self, factivate: windows_core::BOOL) -> windows_core::Result<()>; + fn Enable(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; fn Synchronize(&self, ppszitemids: *const windows_core::PCWSTR, citems: u32, hwndowner: super::super::Foundation::HWND, psessioncreator: windows_core::Ref, punk: windows_core::Ref) -> windows_core::Result<()>; } impl ISyncMgrHandler_Vtbl { @@ -45351,13 +45351,13 @@ impl ISyncMgrHandler_Vtbl { } } } - unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, factivate: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Activate(this: *mut core::ffi::c_void, factivate: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrHandler_Impl::Activate(this, core::mem::transmute_copy(&factivate)).into() } } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrHandler_Impl::Enable(this, core::mem::transmute_copy(&fenable)).into() @@ -46109,7 +46109,7 @@ pub struct ISyncMgrSyncItem_Vtbl { pub GetObject: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetCapabilities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SYNCMGR_ITEM_CAPABILITIES) -> windows_core::HRESULT, pub GetPolicies: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SYNCMGR_ITEM_POLICIES) -> windows_core::HRESULT, - pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Enable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub Delete: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ISyncMgrSyncItem_Impl: windows_core::IUnknownImpl { @@ -46119,7 +46119,7 @@ pub trait ISyncMgrSyncItem_Impl: windows_core::IUnknownImpl { fn GetObject(&self, rguidobjectid: *const windows_core::GUID, riid: *const windows_core::GUID, ppv: *mut *mut core::ffi::c_void) -> windows_core::Result<()>; fn GetCapabilities(&self) -> windows_core::Result; fn GetPolicies(&self) -> windows_core::Result; - fn Enable(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Enable(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; fn Delete(&self) -> windows_core::Result<()>; } impl ISyncMgrSyncItem_Vtbl { @@ -46190,7 +46190,7 @@ impl ISyncMgrSyncItem_Vtbl { } } } - unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Enable(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSyncItem_Impl::Enable(this, core::mem::transmute_copy(&fenable)).into() @@ -46661,7 +46661,7 @@ pub struct ISyncMgrSynchronizeCallback_Vtbl { pub PrepareForSyncCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::HRESULT) -> windows_core::HRESULT, pub SynchronizeCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::HRESULT) -> windows_core::HRESULT, pub ShowErrorCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::HRESULT, u32, *const windows_core::GUID) -> windows_core::HRESULT, - pub EnableModeless: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableModeless: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub Progress: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const SYNCMGRPROGRESSITEM) -> windows_core::HRESULT, pub LogError: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, *const SYNCMGRLOGERRORINFO) -> windows_core::HRESULT, pub DeleteLogError: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u32) -> windows_core::HRESULT, @@ -46672,7 +46672,7 @@ pub trait ISyncMgrSynchronizeCallback_Impl: windows_core::IUnknownImpl { fn PrepareForSyncCompleted(&self, hr: windows_core::HRESULT) -> windows_core::Result<()>; fn SynchronizeCompleted(&self, hr: windows_core::HRESULT) -> windows_core::Result<()>; fn ShowErrorCompleted(&self, hr: windows_core::HRESULT, citems: u32, pitemids: *const windows_core::GUID) -> windows_core::Result<()>; - fn EnableModeless(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EnableModeless(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; fn Progress(&self, itemid: *const windows_core::GUID, psyncprogressitem: *const SYNCMGRPROGRESSITEM) -> windows_core::Result<()>; fn LogError(&self, dwerrorlevel: u32, pszerrortext: &windows_core::PCWSTR, psynclogerror: *const SYNCMGRLOGERRORINFO) -> windows_core::Result<()>; fn DeleteLogError(&self, errorid: *const windows_core::GUID, dwreserved: u32) -> windows_core::Result<()>; @@ -46704,7 +46704,7 @@ impl ISyncMgrSynchronizeCallback_Vtbl { ISyncMgrSynchronizeCallback_Impl::ShowErrorCompleted(this, core::mem::transmute_copy(&hr), core::mem::transmute_copy(&citems), core::mem::transmute_copy(&pitemids)).into() } } - unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableModeless(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ISyncMgrSynchronizeCallback_Impl::EnableModeless(this, core::mem::transmute_copy(&fenable)).into() @@ -46944,14 +46944,14 @@ impl ITaskbarList2 { #[repr(C)] pub struct ITaskbarList2_Vtbl { pub base__: ITaskbarList_Vtbl, - pub MarkFullscreenWindow: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MarkFullscreenWindow: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITaskbarList2_Impl: ITaskbarList_Impl { - fn MarkFullscreenWindow(&self, hwnd: super::super::Foundation::HWND, ffullscreen: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn MarkFullscreenWindow(&self, hwnd: super::super::Foundation::HWND, ffullscreen: windows_core::BOOL) -> windows_core::Result<()>; } impl ITaskbarList2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn MarkFullscreenWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, ffullscreen: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MarkFullscreenWindow(this: *mut core::ffi::c_void, hwnd: super::super::Foundation::HWND, ffullscreen: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITaskbarList2_Impl::MarkFullscreenWindow(this, core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&ffullscreen)).into() @@ -48133,7 +48133,7 @@ impl ITravelEntry { pub struct ITravelEntry_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Update: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Update: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_UI_Shell_Common")] pub GetPidl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut Common::ITEMIDLIST) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_Common"))] @@ -48142,7 +48142,7 @@ pub struct ITravelEntry_Vtbl { #[cfg(feature = "Win32_UI_Shell_Common")] pub trait ITravelEntry_Impl: windows_core::IUnknownImpl { fn Invoke(&self, punk: windows_core::Ref) -> windows_core::Result<()>; - fn Update(&self, punk: windows_core::Ref, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Update(&self, punk: windows_core::Ref, fislocalanchor: windows_core::BOOL) -> windows_core::Result<()>; fn GetPidl(&self) -> windows_core::Result<*mut Common::ITEMIDLIST>; } #[cfg(feature = "Win32_UI_Shell_Common")] @@ -48154,7 +48154,7 @@ impl ITravelEntry_Vtbl { ITravelEntry_Impl::Invoke(this, core::mem::transmute_copy(&punk)).into() } } - unsafe extern "system" fn Update(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Update(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, fislocalanchor: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITravelEntry_Impl::Update(this, core::mem::transmute_copy(&punk), core::mem::transmute_copy(&fislocalanchor)).into() @@ -48261,8 +48261,8 @@ impl ITravelLog { #[repr(C)] pub struct ITravelLog_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub AddEntry: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub UpdateEntry: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AddEntry: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub UpdateEntry: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub UpdateExternal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Travel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub GetTravelEntry: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -48281,8 +48281,8 @@ pub struct ITravelLog_Vtbl { } #[cfg(all(feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] pub trait ITravelLog_Impl: windows_core::IUnknownImpl { - fn AddEntry(&self, punk: windows_core::Ref, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn UpdateEntry(&self, punk: windows_core::Ref, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn AddEntry(&self, punk: windows_core::Ref, fislocalanchor: windows_core::BOOL) -> windows_core::Result<()>; + fn UpdateEntry(&self, punk: windows_core::Ref, fislocalanchor: windows_core::BOOL) -> windows_core::Result<()>; fn UpdateExternal(&self, punk: windows_core::Ref, punkhlbrowsecontext: windows_core::Ref) -> windows_core::Result<()>; fn Travel(&self, punk: windows_core::Ref, ioffset: i32) -> windows_core::Result<()>; fn GetTravelEntry(&self, punk: windows_core::Ref, ioffset: i32, ppte: windows_core::OutRef<'_, ITravelEntry>) -> windows_core::Result<()>; @@ -48296,13 +48296,13 @@ pub trait ITravelLog_Impl: windows_core::IUnknownImpl { #[cfg(all(feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] impl ITravelLog_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn AddEntry(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AddEntry(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, fislocalanchor: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITravelLog_Impl::AddEntry(this, core::mem::transmute_copy(&punk), core::mem::transmute_copy(&fislocalanchor)).into() } } - unsafe extern "system" fn UpdateEntry(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, fislocalanchor: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn UpdateEntry(this: *mut core::ffi::c_void, punk: *mut core::ffi::c_void, fislocalanchor: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITravelLog_Impl::UpdateEntry(this, core::mem::transmute_copy(&punk), core::mem::transmute_copy(&fislocalanchor)).into() @@ -48590,7 +48590,7 @@ impl ITravelLogStg { #[repr(C)] pub struct ITravelLogStg_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub CreateEntry: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub CreateEntry: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, *mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TravelTo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub EnumEntries: unsafe extern "system" fn(*mut core::ffi::c_void, TLENUMF, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub FindEntries: unsafe extern "system" fn(*mut core::ffi::c_void, TLENUMF, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -48599,7 +48599,7 @@ pub struct ITravelLogStg_Vtbl { pub GetRelativeEntry: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ITravelLogStg_Impl: windows_core::IUnknownImpl { - fn CreateEntry(&self, pszurl: &windows_core::PCWSTR, psztitle: &windows_core::PCWSTR, ptlerelativeto: windows_core::Ref, fprepend: super::super::Foundation::BOOL) -> windows_core::Result; + fn CreateEntry(&self, pszurl: &windows_core::PCWSTR, psztitle: &windows_core::PCWSTR, ptlerelativeto: windows_core::Ref, fprepend: windows_core::BOOL) -> windows_core::Result; fn TravelTo(&self, ptle: windows_core::Ref) -> windows_core::Result<()>; fn EnumEntries(&self, flags: TLENUMF) -> windows_core::Result; fn FindEntries(&self, flags: TLENUMF, pszurl: &windows_core::PCWSTR) -> windows_core::Result; @@ -48609,7 +48609,7 @@ pub trait ITravelLogStg_Impl: windows_core::IUnknownImpl { } impl ITravelLogStg_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn CreateEntry(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, psztitle: windows_core::PCWSTR, ptlerelativeto: *mut core::ffi::c_void, fprepend: super::super::Foundation::BOOL, pptle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn CreateEntry(this: *mut core::ffi::c_void, pszurl: windows_core::PCWSTR, psztitle: windows_core::PCWSTR, ptlerelativeto: *mut core::ffi::c_void, fprepend: windows_core::BOOL, pptle: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITravelLogStg_Impl::CreateEntry(this, core::mem::transmute(&pszurl), core::mem::transmute(&psztitle), core::mem::transmute_copy(&ptlerelativeto), core::mem::transmute_copy(&fprepend)) { @@ -49381,7 +49381,7 @@ impl windows_core::RuntimeName for IViewStateIdentityItem {} windows_core::imp::define_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: super::super::Foundation::HWND) -> windows_core::Result { + pub unsafe fn IsWindowOnCurrentVirtualDesktop(&self, toplevelwindow: super::super::Foundation::HWND) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsWindowOnCurrentVirtualDesktop)(windows_core::Interface::as_raw(self), toplevelwindow, &mut result__).map(|| result__) @@ -49400,18 +49400,18 @@ impl IVirtualDesktopManager { #[repr(C)] pub struct IVirtualDesktopManager_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsWindowOnCurrentVirtualDesktop: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsWindowOnCurrentVirtualDesktop: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetWindowDesktopId: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut windows_core::GUID) -> windows_core::HRESULT, pub MoveWindowToDesktop: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *const windows_core::GUID) -> windows_core::HRESULT, } pub trait IVirtualDesktopManager_Impl: windows_core::IUnknownImpl { - fn IsWindowOnCurrentVirtualDesktop(&self, toplevelwindow: super::super::Foundation::HWND) -> windows_core::Result; + fn IsWindowOnCurrentVirtualDesktop(&self, toplevelwindow: super::super::Foundation::HWND) -> windows_core::Result; fn GetWindowDesktopId(&self, toplevelwindow: super::super::Foundation::HWND) -> windows_core::Result; fn MoveWindowToDesktop(&self, toplevelwindow: super::super::Foundation::HWND, desktopid: *const windows_core::GUID) -> windows_core::Result<()>; } impl IVirtualDesktopManager_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsWindowOnCurrentVirtualDesktop(this: *mut core::ffi::c_void, toplevelwindow: super::super::Foundation::HWND, oncurrentdesktop: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsWindowOnCurrentVirtualDesktop(this: *mut core::ffi::c_void, toplevelwindow: super::super::Foundation::HWND, oncurrentdesktop: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IVirtualDesktopManager_Impl::IsWindowOnCurrentVirtualDesktop(this, core::mem::transmute_copy(&toplevelwindow)) { @@ -49506,7 +49506,7 @@ pub struct IVisualProperties_Vtbl { pub SetItemHeight: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub GetItemHeight: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, #[cfg(feature = "Win32_Graphics_Gdi")] - pub SetFont: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Graphics::Gdi::LOGFONTW, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetFont: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Graphics::Gdi::LOGFONTW, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] SetFont: usize, #[cfg(feature = "Win32_Graphics_Gdi")] @@ -49522,7 +49522,7 @@ pub trait IVisualProperties_Impl: windows_core::IUnknownImpl { fn GetColor(&self, vpcf: VPCOLORFLAGS) -> windows_core::Result; fn SetItemHeight(&self, cyiteminpixels: i32) -> windows_core::Result<()>; fn GetItemHeight(&self) -> windows_core::Result; - fn SetFont(&self, plf: *const super::super::Graphics::Gdi::LOGFONTW, bredraw: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetFont(&self, plf: *const super::super::Graphics::Gdi::LOGFONTW, bredraw: windows_core::BOOL) -> windows_core::Result<()>; fn GetFont(&self, plf: *mut super::super::Graphics::Gdi::LOGFONTW) -> windows_core::Result<()>; fn SetTheme(&self, pszsubappname: &windows_core::PCWSTR, pszsubidlist: &windows_core::PCWSTR) -> windows_core::Result<()>; } @@ -49571,7 +49571,7 @@ impl IVisualProperties_Vtbl { } } } - unsafe extern "system" fn SetFont(this: *mut core::ffi::c_void, plf: *const super::super::Graphics::Gdi::LOGFONTW, bredraw: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetFont(this: *mut core::ffi::c_void, plf: *const super::super::Graphics::Gdi::LOGFONTW, bredraw: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IVisualProperties_Impl::SetFont(this, core::mem::transmute_copy(&plf), core::mem::transmute_copy(&bredraw)).into() @@ -52317,13 +52317,13 @@ pub struct NT_CONSOLE_PROPS { pub uFontWeight: u32, pub FaceName: [u16; 32], pub uCursorSize: u32, - pub bFullScreen: super::super::Foundation::BOOL, - pub bQuickEdit: super::super::Foundation::BOOL, - pub bInsertMode: super::super::Foundation::BOOL, - pub bAutoPosition: super::super::Foundation::BOOL, + pub bFullScreen: windows_core::BOOL, + pub bQuickEdit: windows_core::BOOL, + pub bInsertMode: windows_core::BOOL, + pub bAutoPosition: windows_core::BOOL, pub uHistoryBufferSize: u32, pub uNumberOfHistoryBuffers: u32, - pub bHistoryNoDup: super::super::Foundation::BOOL, + pub bHistoryNoDup: windows_core::BOOL, pub ColorTable: [super::super::Foundation::COLORREF; 16], } #[cfg(feature = "Win32_System_Console")] @@ -52483,7 +52483,7 @@ pub struct OPEN_PRINTER_PROPS_INFOA { pub pszSheetName: windows_core::PSTR, pub uSheetIndex: u32, pub dwFlags: u32, - pub bModal: super::super::Foundation::BOOL, + pub bModal: windows_core::BOOL, } #[cfg(target_arch = "x86")] impl Default for OPEN_PRINTER_PROPS_INFOA { @@ -52499,7 +52499,7 @@ pub struct OPEN_PRINTER_PROPS_INFOA { pub pszSheetName: windows_core::PSTR, pub uSheetIndex: u32, pub dwFlags: u32, - pub bModal: super::super::Foundation::BOOL, + pub bModal: windows_core::BOOL, } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] impl Default for OPEN_PRINTER_PROPS_INFOA { @@ -52515,7 +52515,7 @@ pub struct OPEN_PRINTER_PROPS_INFOW { pub pszSheetName: windows_core::PWSTR, pub uSheetIndex: u32, pub dwFlags: u32, - pub bModal: super::super::Foundation::BOOL, + pub bModal: windows_core::BOOL, } #[cfg(target_arch = "x86")] impl Default for OPEN_PRINTER_PROPS_INFOW { @@ -52531,7 +52531,7 @@ pub struct OPEN_PRINTER_PROPS_INFOW { pub pszSheetName: windows_core::PWSTR, pub uSheetIndex: u32, pub dwFlags: u32, - pub bModal: super::super::Foundation::BOOL, + pub bModal: windows_core::BOOL, } #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "x86_64"))] impl Default for OPEN_PRINTER_PROPS_INFOW { @@ -53918,7 +53918,7 @@ pub struct SHCREATEPROCESSINFOW { pub hUserToken: super::super::Foundation::HANDLE, pub lpProcessAttributes: *mut super::super::Security::SECURITY_ATTRIBUTES, pub lpThreadAttributes: *mut super::super::Security::SECURITY_ATTRIBUTES, - pub bInheritHandles: super::super::Foundation::BOOL, + pub bInheritHandles: windows_core::BOOL, pub dwCreationFlags: u32, pub lpStartupInfo: *mut super::super::System::Threading::STARTUPINFOW, pub lpProcessInformation: *mut super::super::System::Threading::PROCESS_INFORMATION, @@ -53944,7 +53944,7 @@ pub struct SHCREATEPROCESSINFOW { pub hUserToken: super::super::Foundation::HANDLE, pub lpProcessAttributes: *mut super::super::Security::SECURITY_ATTRIBUTES, pub lpThreadAttributes: *mut super::super::Security::SECURITY_ATTRIBUTES, - pub bInheritHandles: super::super::Foundation::BOOL, + pub bInheritHandles: windows_core::BOOL, pub dwCreationFlags: u32, pub lpStartupInfo: *mut super::super::System::Threading::STARTUPINFOW, pub lpProcessInformation: *mut super::super::System::Threading::PROCESS_INFORMATION, @@ -53975,7 +53975,7 @@ impl Default for SHChangeDWORDAsIDList { #[derive(Clone, Copy)] pub struct SHChangeNotifyEntry { pub pidl: *mut Common::ITEMIDLIST, - pub fRecursive: super::super::Foundation::BOOL, + pub fRecursive: windows_core::BOOL, } #[cfg(feature = "Win32_UI_Shell_Common")] impl Default for SHChangeNotifyEntry { @@ -54457,7 +54457,7 @@ pub struct SHFILEOPSTRUCTA { pub pFrom: *mut i8, pub pTo: *mut i8, pub fFlags: u16, - pub fAnyOperationsAborted: super::super::Foundation::BOOL, + pub fAnyOperationsAborted: windows_core::BOOL, pub hNameMappings: *mut core::ffi::c_void, pub lpszProgressTitle: windows_core::PCSTR, } @@ -54476,7 +54476,7 @@ pub struct SHFILEOPSTRUCTA { pub pFrom: *mut i8, pub pTo: *mut i8, pub fFlags: u16, - pub fAnyOperationsAborted: super::super::Foundation::BOOL, + pub fAnyOperationsAborted: windows_core::BOOL, pub hNameMappings: *mut core::ffi::c_void, pub lpszProgressTitle: windows_core::PCSTR, } @@ -54495,7 +54495,7 @@ pub struct SHFILEOPSTRUCTW { pub pFrom: windows_core::PCWSTR, pub pTo: windows_core::PCWSTR, pub fFlags: u16, - pub fAnyOperationsAborted: super::super::Foundation::BOOL, + pub fAnyOperationsAborted: windows_core::BOOL, pub hNameMappings: *mut core::ffi::c_void, pub lpszProgressTitle: windows_core::PCWSTR, } @@ -54514,7 +54514,7 @@ pub struct SHFILEOPSTRUCTW { pub pFrom: windows_core::PCWSTR, pub pTo: windows_core::PCWSTR, pub fFlags: u16, - pub fAnyOperationsAborted: super::super::Foundation::BOOL, + pub fAnyOperationsAborted: windows_core::BOOL, pub hNameMappings: *mut core::ffi::c_void, pub lpszProgressTitle: windows_core::PCWSTR, } @@ -56345,7 +56345,7 @@ pub struct TOOLBARITEM { pub ptbar: core::mem::ManuallyDrop>, pub rcBorderTool: super::super::Foundation::RECT, pub pwszItem: windows_core::PWSTR, - pub fShow: super::super::Foundation::BOOL, + pub fShow: windows_core::BOOL, pub hMon: super::super::Graphics::Gdi::HMONITOR, } #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Ole"))] 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 9afe06fa9b..714fa8f4a7 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs @@ -14,7 +14,7 @@ where } #[inline] pub unsafe fn AdviseInkChange(hrc: HRECOCONTEXT, bnewstroke: bool) -> windows_core::Result<()> { - windows_targets::link!("inkobjcore.dll" "system" fn AdviseInkChange(hrc : HRECOCONTEXT, bnewstroke : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("inkobjcore.dll" "system" fn AdviseInkChange(hrc : HRECOCONTEXT, bnewstroke : windows_core::BOOL) -> windows_core::HRESULT); unsafe { AdviseInkChange(hrc, bnewstroke.into()).ok() } } #[inline] @@ -109,8 +109,8 @@ where unsafe { MakeWordList(hrec, pbuffer.param().abi(), phwl as _).ok() } } #[inline] -pub unsafe fn Process(hrc: HRECOCONTEXT, pbpartialprocessing: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { - windows_targets::link!("inkobjcore.dll" "system" fn Process(hrc : HRECOCONTEXT, pbpartialprocessing : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn Process(hrc: HRECOCONTEXT, pbpartialprocessing: *mut windows_core::BOOL) -> windows_core::Result<()> { + windows_targets::link!("inkobjcore.dll" "system" fn Process(hrc : HRECOCONTEXT, pbpartialprocessing : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { Process(hrc, pbpartialprocessing as _).ok() } } #[inline] @@ -1263,7 +1263,7 @@ pub const IDT_Segment: InkDivisionType = InkDivisionType(0i32); windows_core::imp::define_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 { + pub unsafe fn Enabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1313,7 +1313,7 @@ impl IDynamicRenderer { { unsafe { (windows_core::Interface::vtable(self).putref_DrawingAttributes)(windows_core::Interface::as_raw(self), pida.param().abi()).ok() } } - pub unsafe fn DataCacheEnabled(&self) -> windows_core::Result { + pub unsafe fn DataCacheEnabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).DataCacheEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1335,8 +1335,8 @@ impl IDynamicRenderer { #[repr(C)] pub struct IDynamicRenderer_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Enabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Enabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub HWND: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT, pub SetHWND: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT, pub ClipRectangle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::RECT) -> windows_core::HRESULT, @@ -1351,16 +1351,16 @@ pub struct IDynamicRenderer_Vtbl { pub putref_DrawingAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] putref_DrawingAttributes: usize, - pub DataCacheEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetDataCacheEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub DataCacheEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetDataCacheEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub ReleaseCachedData: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub Refresh: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Draw: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait IDynamicRenderer_Impl: windows_core::IUnknownImpl { - fn Enabled(&self) -> windows_core::Result; - fn SetEnabled(&self, benabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Enabled(&self) -> windows_core::Result; + fn SetEnabled(&self, benabled: windows_core::BOOL) -> windows_core::Result<()>; fn HWND(&self) -> windows_core::Result; fn SetHWND(&self, hwnd: super::super::Foundation::HANDLE_PTR) -> windows_core::Result<()>; fn ClipRectangle(&self) -> windows_core::Result; @@ -1369,8 +1369,8 @@ pub trait IDynamicRenderer_Impl: windows_core::IUnknownImpl { fn SetClipRegion(&self, hcliprgn: super::super::Foundation::HANDLE_PTR) -> windows_core::Result<()>; fn DrawingAttributes(&self) -> windows_core::Result; fn putref_DrawingAttributes(&self, pida: windows_core::Ref) -> windows_core::Result<()>; - fn DataCacheEnabled(&self) -> windows_core::Result; - fn SetDataCacheEnabled(&self, fcachedata: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn DataCacheEnabled(&self) -> windows_core::Result; + fn SetDataCacheEnabled(&self, fcachedata: windows_core::BOOL) -> windows_core::Result<()>; fn ReleaseCachedData(&self, strokeid: u32) -> windows_core::Result<()>; fn Refresh(&self) -> windows_core::Result<()>; fn Draw(&self, hdc: super::super::Foundation::HANDLE_PTR) -> windows_core::Result<()>; @@ -1378,7 +1378,7 @@ pub trait IDynamicRenderer_Impl: windows_core::IUnknownImpl { #[cfg(feature = "Win32_System_Com")] impl IDynamicRenderer_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, benabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, benabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicRenderer_Impl::Enabled(this) { @@ -1390,7 +1390,7 @@ impl IDynamicRenderer_Vtbl { } } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, benabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, benabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicRenderer_Impl::SetEnabled(this, core::mem::transmute_copy(&benabled)).into() @@ -1468,7 +1468,7 @@ impl IDynamicRenderer_Vtbl { IDynamicRenderer_Impl::putref_DrawingAttributes(this, core::mem::transmute_copy(&pida)).into() } } - unsafe extern "system" fn DataCacheEnabled(this: *mut core::ffi::c_void, pfcachedata: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn DataCacheEnabled(this: *mut core::ffi::c_void, pfcachedata: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDynamicRenderer_Impl::DataCacheEnabled(this) { @@ -1480,7 +1480,7 @@ impl IDynamicRenderer_Vtbl { } } } - unsafe extern "system" fn SetDataCacheEnabled(this: *mut core::ffi::c_void, fcachedata: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetDataCacheEnabled(this: *mut core::ffi::c_void, fcachedata: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IDynamicRenderer_Impl::SetDataCacheEnabled(this, core::mem::transmute_copy(&fcachedata)).into() @@ -1595,7 +1595,7 @@ pub const IES_Recognizing: InkEditStatus = InkEditStatus(2i32); windows_core::imp::define_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 { + pub unsafe fn Enabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -1623,16 +1623,16 @@ impl IGestureRecognizer { #[repr(C)] pub struct IGestureRecognizer_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Enabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Enabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub MaxStrokeCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetMaxStrokeCount: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, pub EnableGestures: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const i32) -> windows_core::HRESULT, pub Reset: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IGestureRecognizer_Impl: windows_core::IUnknownImpl { - fn Enabled(&self) -> windows_core::Result; - fn SetEnabled(&self, fenabled: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Enabled(&self) -> windows_core::Result; + fn SetEnabled(&self, fenabled: windows_core::BOOL) -> windows_core::Result<()>; fn MaxStrokeCount(&self) -> windows_core::Result; fn SetMaxStrokeCount(&self, cstrokes: i32) -> windows_core::Result<()>; fn EnableGestures(&self, cgestures: u32, pgestures: *const i32) -> windows_core::Result<()>; @@ -1640,7 +1640,7 @@ pub trait IGestureRecognizer_Impl: windows_core::IUnknownImpl { } impl IGestureRecognizer_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pfenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pfenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IGestureRecognizer_Impl::Enabled(this) { @@ -1652,7 +1652,7 @@ impl IGestureRecognizer_Vtbl { } } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, fenabled: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, fenabled: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IGestureRecognizer_Impl::SetEnabled(this, core::mem::transmute_copy(&fenabled)).into() @@ -1722,29 +1722,29 @@ impl IHandwrittenTextInsertion { pub struct IHandwrittenTextInsertion_Vtbl { pub base__: windows_core::IUnknown_Vtbl, #[cfg(feature = "Win32_System_Com")] - pub InsertRecognitionResultsArray: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::System::Com::SAFEARRAY, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub InsertRecognitionResultsArray: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::System::Com::SAFEARRAY, u32, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] InsertRecognitionResultsArray: usize, #[cfg(feature = "Win32_System_Com")] - pub InsertInkRecognitionResult: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub InsertInkRecognitionResult: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] InsertInkRecognitionResult: usize, } #[cfg(feature = "Win32_System_Com")] pub trait IHandwrittenTextInsertion_Impl: windows_core::IUnknownImpl { - fn InsertRecognitionResultsArray(&self, psaalternates: *const super::super::System::Com::SAFEARRAY, locale: u32, falternatecontainsautospacinginformation: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn InsertInkRecognitionResult(&self, piinkrecoresult: windows_core::Ref, locale: u32, falternatecontainsautospacinginformation: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn InsertRecognitionResultsArray(&self, psaalternates: *const super::super::System::Com::SAFEARRAY, locale: u32, falternatecontainsautospacinginformation: windows_core::BOOL) -> windows_core::Result<()>; + fn InsertInkRecognitionResult(&self, piinkrecoresult: windows_core::Ref, locale: u32, falternatecontainsautospacinginformation: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Com")] impl IHandwrittenTextInsertion_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn InsertRecognitionResultsArray(this: *mut core::ffi::c_void, psaalternates: *const super::super::System::Com::SAFEARRAY, locale: u32, falternatecontainsautospacinginformation: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn InsertRecognitionResultsArray(this: *mut core::ffi::c_void, psaalternates: *const super::super::System::Com::SAFEARRAY, locale: u32, falternatecontainsautospacinginformation: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHandwrittenTextInsertion_Impl::InsertRecognitionResultsArray(this, core::mem::transmute_copy(&psaalternates), core::mem::transmute_copy(&locale), core::mem::transmute_copy(&falternatecontainsautospacinginformation)).into() } } - unsafe extern "system" fn InsertInkRecognitionResult(this: *mut core::ffi::c_void, piinkrecoresult: *mut core::ffi::c_void, locale: u32, falternatecontainsautospacinginformation: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn InsertInkRecognitionResult(this: *mut core::ffi::c_void, piinkrecoresult: *mut core::ffi::c_void, locale: u32, falternatecontainsautospacinginformation: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IHandwrittenTextInsertion_Impl::InsertInkRecognitionResult(this, core::mem::transmute_copy(&piinkrecoresult), core::mem::transmute_copy(&locale), core::mem::transmute_copy(&falternatecontainsautospacinginformation)).into() @@ -13614,7 +13614,7 @@ pub const IRS_SetWordListFailed: InkRecognitionStatus = InkRecognitionStatus(512 windows_core::imp::define_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 { + pub unsafe fn Enabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).Enabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -13771,8 +13771,8 @@ impl IRealTimeStylus { #[repr(C)] pub struct IRealTimeStylus_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub Enabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Enabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub HWND: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT, pub SetHWND: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HANDLE_PTR) -> windows_core::HRESULT, pub WindowInputRectangle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::RECT) -> windows_core::HRESULT, @@ -13791,7 +13791,7 @@ pub struct IRealTimeStylus_Vtbl { pub putref_ChildRealTimeStylusPlugin: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub AddCustomStylusDataToQueue: unsafe extern "system" fn(*mut core::ffi::c_void, StylusQueue, *const windows_core::GUID, u32, *const u8) -> windows_core::HRESULT, pub ClearStylusQueues: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetAllTabletsMode: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetAllTabletsMode: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SetSingleTabletMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -13823,8 +13823,8 @@ pub struct IRealTimeStylus_Vtbl { } #[cfg(feature = "Win32_System_Com")] pub trait IRealTimeStylus_Impl: windows_core::IUnknownImpl { - fn Enabled(&self) -> windows_core::Result; - fn SetEnabled(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Enabled(&self) -> windows_core::Result; + fn SetEnabled(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; fn HWND(&self) -> windows_core::Result; fn SetHWND(&self, hwnd: super::super::Foundation::HANDLE_PTR) -> windows_core::Result<()>; fn WindowInputRectangle(&self) -> windows_core::Result; @@ -13843,7 +13843,7 @@ pub trait IRealTimeStylus_Impl: windows_core::IUnknownImpl { fn putref_ChildRealTimeStylusPlugin(&self, pirts: windows_core::Ref) -> windows_core::Result<()>; fn AddCustomStylusDataToQueue(&self, sq: StylusQueue, pguidid: *const windows_core::GUID, cbdata: u32, pbdata: *const u8) -> windows_core::Result<()>; fn ClearStylusQueues(&self) -> windows_core::Result<()>; - fn SetAllTabletsMode(&self, fusemouseforinput: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetAllTabletsMode(&self, fusemouseforinput: windows_core::BOOL) -> windows_core::Result<()>; fn SetSingleTabletMode(&self, pitablet: windows_core::Ref) -> windows_core::Result<()>; fn GetTablet(&self) -> windows_core::Result; fn GetTabletContextIdFromTablet(&self, pitablet: windows_core::Ref) -> windows_core::Result; @@ -13858,7 +13858,7 @@ pub trait IRealTimeStylus_Impl: windows_core::IUnknownImpl { #[cfg(feature = "Win32_System_Com")] impl IRealTimeStylus_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Enabled(this: *mut core::ffi::c_void, pfenable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRealTimeStylus_Impl::Enabled(this) { @@ -13870,7 +13870,7 @@ impl IRealTimeStylus_Vtbl { } } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::SetEnabled(this, core::mem::transmute_copy(&fenable)).into() @@ -14026,7 +14026,7 @@ impl IRealTimeStylus_Vtbl { IRealTimeStylus_Impl::ClearStylusQueues(this).into() } } - unsafe extern "system" fn SetAllTabletsMode(this: *mut core::ffi::c_void, fusemouseforinput: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetAllTabletsMode(this: *mut core::ffi::c_void, fusemouseforinput: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus_Impl::SetAllTabletsMode(this, core::mem::transmute_copy(&fusemouseforinput)).into() @@ -14166,7 +14166,7 @@ impl windows_core::RuntimeName for IRealTimeStylus {} windows_core::imp::define_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 { + pub unsafe fn FlicksEnabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).FlicksEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -14179,16 +14179,16 @@ impl IRealTimeStylus2 { #[repr(C)] pub struct IRealTimeStylus2_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub FlicksEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetFlicksEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub FlicksEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetFlicksEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IRealTimeStylus2_Impl: windows_core::IUnknownImpl { - fn FlicksEnabled(&self) -> windows_core::Result; - fn SetFlicksEnabled(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn FlicksEnabled(&self) -> windows_core::Result; + fn SetFlicksEnabled(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; } impl IRealTimeStylus2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn FlicksEnabled(this: *mut core::ffi::c_void, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn FlicksEnabled(this: *mut core::ffi::c_void, pfenable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRealTimeStylus2_Impl::FlicksEnabled(this) { @@ -14200,7 +14200,7 @@ impl IRealTimeStylus2_Vtbl { } } } - unsafe extern "system" fn SetFlicksEnabled(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetFlicksEnabled(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus2_Impl::SetFlicksEnabled(this, core::mem::transmute_copy(&fenable)).into() @@ -14220,7 +14220,7 @@ impl windows_core::RuntimeName for IRealTimeStylus2 {} windows_core::imp::define_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 { + pub unsafe fn MultiTouchEnabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).MultiTouchEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -14233,16 +14233,16 @@ impl IRealTimeStylus3 { #[repr(C)] pub struct IRealTimeStylus3_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub MultiTouchEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetMultiTouchEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub MultiTouchEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetMultiTouchEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IRealTimeStylus3_Impl: windows_core::IUnknownImpl { - fn MultiTouchEnabled(&self) -> windows_core::Result; - fn SetMultiTouchEnabled(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn MultiTouchEnabled(&self) -> windows_core::Result; + fn SetMultiTouchEnabled(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; } impl IRealTimeStylus3_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn MultiTouchEnabled(this: *mut core::ffi::c_void, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn MultiTouchEnabled(this: *mut core::ffi::c_void, pfenable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IRealTimeStylus3_Impl::MultiTouchEnabled(this) { @@ -14254,7 +14254,7 @@ impl IRealTimeStylus3_Vtbl { } } } - unsafe extern "system" fn SetMultiTouchEnabled(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetMultiTouchEnabled(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IRealTimeStylus3_Impl::SetMultiTouchEnabled(this, core::mem::transmute_copy(&fenable)).into() @@ -14889,7 +14889,7 @@ impl ITextInputPanel { pub unsafe fn SetPreferredInPlaceDirection(&self, direction: InPlaceDirection) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetPreferredInPlaceDirection)(windows_core::Interface::as_raw(self), direction).ok() } } - pub unsafe fn ExpandPostInsertionCorrection(&self) -> windows_core::Result { + pub unsafe fn ExpandPostInsertionCorrection(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ExpandPostInsertionCorrection)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -14898,7 +14898,7 @@ impl ITextInputPanel { pub unsafe fn SetExpandPostInsertionCorrection(&self, expand: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).SetExpandPostInsertionCorrection)(windows_core::Interface::as_raw(self), expand.into()).ok() } } - pub unsafe fn InPlaceVisibleOnFocus(&self) -> windows_core::Result { + pub unsafe fn InPlaceVisibleOnFocus(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).InPlaceVisibleOnFocus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -14965,15 +14965,15 @@ pub struct ITextInputPanel_Vtbl { pub CurrentCorrectionMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CorrectionMode) -> windows_core::HRESULT, pub PreferredInPlaceDirection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut InPlaceDirection) -> windows_core::HRESULT, pub SetPreferredInPlaceDirection: unsafe extern "system" fn(*mut core::ffi::c_void, InPlaceDirection) -> windows_core::HRESULT, - pub ExpandPostInsertionCorrection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetExpandPostInsertionCorrection: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub InPlaceVisibleOnFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetInPlaceVisibleOnFocus: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ExpandPostInsertionCorrection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetExpandPostInsertionCorrection: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub InPlaceVisibleOnFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetInPlaceVisibleOnFocus: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub InPlaceBoundingRectangle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::RECT) -> windows_core::HRESULT, pub PopUpCorrectionHeight: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub PopDownCorrectionHeight: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub CommitPendingInput: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub SetInPlaceVisibility: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SetInPlaceVisibility: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub SetInPlacePosition: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, CorrectionPosition) -> windows_core::HRESULT, pub SetInPlaceHoverTargetPosition: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32) -> windows_core::HRESULT, pub Advise: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -14992,15 +14992,15 @@ pub trait ITextInputPanel_Impl: windows_core::IUnknownImpl { fn CurrentCorrectionMode(&self) -> windows_core::Result; fn PreferredInPlaceDirection(&self) -> windows_core::Result; fn SetPreferredInPlaceDirection(&self, direction: InPlaceDirection) -> windows_core::Result<()>; - fn ExpandPostInsertionCorrection(&self) -> windows_core::Result; - fn SetExpandPostInsertionCorrection(&self, expand: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn InPlaceVisibleOnFocus(&self) -> windows_core::Result; - fn SetInPlaceVisibleOnFocus(&self, visible: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ExpandPostInsertionCorrection(&self) -> windows_core::Result; + fn SetExpandPostInsertionCorrection(&self, expand: windows_core::BOOL) -> windows_core::Result<()>; + fn InPlaceVisibleOnFocus(&self) -> windows_core::Result; + fn SetInPlaceVisibleOnFocus(&self, visible: windows_core::BOOL) -> windows_core::Result<()>; fn InPlaceBoundingRectangle(&self) -> windows_core::Result; fn PopUpCorrectionHeight(&self) -> windows_core::Result; fn PopDownCorrectionHeight(&self) -> windows_core::Result; fn CommitPendingInput(&self) -> windows_core::Result<()>; - fn SetInPlaceVisibility(&self, visible: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn SetInPlaceVisibility(&self, visible: windows_core::BOOL) -> windows_core::Result<()>; fn SetInPlacePosition(&self, xposition: i32, yposition: i32, position: CorrectionPosition) -> windows_core::Result<()>; fn SetInPlaceHoverTargetPosition(&self, xposition: i32, yposition: i32) -> windows_core::Result<()>; fn Advise(&self, eventsink: windows_core::Ref, eventmask: u32) -> windows_core::Result<()>; @@ -15128,7 +15128,7 @@ impl ITextInputPanel_Vtbl { ITextInputPanel_Impl::SetPreferredInPlaceDirection(this, core::mem::transmute_copy(&direction)).into() } } - unsafe extern "system" fn ExpandPostInsertionCorrection(this: *mut core::ffi::c_void, expand: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ExpandPostInsertionCorrection(this: *mut core::ffi::c_void, expand: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextInputPanel_Impl::ExpandPostInsertionCorrection(this) { @@ -15140,13 +15140,13 @@ impl ITextInputPanel_Vtbl { } } } - unsafe extern "system" fn SetExpandPostInsertionCorrection(this: *mut core::ffi::c_void, expand: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetExpandPostInsertionCorrection(this: *mut core::ffi::c_void, expand: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanel_Impl::SetExpandPostInsertionCorrection(this, core::mem::transmute_copy(&expand)).into() } } - unsafe extern "system" fn InPlaceVisibleOnFocus(this: *mut core::ffi::c_void, visible: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn InPlaceVisibleOnFocus(this: *mut core::ffi::c_void, visible: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextInputPanel_Impl::InPlaceVisibleOnFocus(this) { @@ -15158,7 +15158,7 @@ impl ITextInputPanel_Vtbl { } } } - unsafe extern "system" fn SetInPlaceVisibleOnFocus(this: *mut core::ffi::c_void, visible: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetInPlaceVisibleOnFocus(this: *mut core::ffi::c_void, visible: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanel_Impl::SetInPlaceVisibleOnFocus(this, core::mem::transmute_copy(&visible)).into() @@ -15206,7 +15206,7 @@ impl ITextInputPanel_Vtbl { ITextInputPanel_Impl::CommitPendingInput(this).into() } } - unsafe extern "system" fn SetInPlaceVisibility(this: *mut core::ffi::c_void, visible: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetInPlaceVisibility(this: *mut core::ffi::c_void, visible: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanel_Impl::SetInPlaceVisibility(this, core::mem::transmute_copy(&visible)).into() @@ -15323,8 +15323,8 @@ pub struct ITextInputPanelEventSink_Vtbl { pub InputAreaChanged: unsafe extern "system" fn(*mut core::ffi::c_void, PanelInputArea, PanelInputArea) -> windows_core::HRESULT, pub CorrectionModeChanging: unsafe extern "system" fn(*mut core::ffi::c_void, CorrectionMode, CorrectionMode) -> windows_core::HRESULT, pub CorrectionModeChanged: unsafe extern "system" fn(*mut core::ffi::c_void, CorrectionMode, CorrectionMode) -> windows_core::HRESULT, - pub InPlaceVisibilityChanging: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub InPlaceVisibilityChanged: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub InPlaceVisibilityChanging: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, + pub InPlaceVisibilityChanged: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub TextInserting: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::System::Com::SAFEARRAY) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -15344,8 +15344,8 @@ pub trait ITextInputPanelEventSink_Impl: windows_core::IUnknownImpl { fn InputAreaChanged(&self, oldinputarea: PanelInputArea, newinputarea: PanelInputArea) -> windows_core::Result<()>; fn CorrectionModeChanging(&self, oldcorrectionmode: CorrectionMode, newcorrectionmode: CorrectionMode) -> windows_core::Result<()>; fn CorrectionModeChanged(&self, oldcorrectionmode: CorrectionMode, newcorrectionmode: CorrectionMode) -> windows_core::Result<()>; - fn InPlaceVisibilityChanging(&self, oldvisible: super::super::Foundation::BOOL, newvisible: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn InPlaceVisibilityChanged(&self, oldvisible: super::super::Foundation::BOOL, newvisible: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn InPlaceVisibilityChanging(&self, oldvisible: windows_core::BOOL, newvisible: windows_core::BOOL) -> windows_core::Result<()>; + fn InPlaceVisibilityChanged(&self, oldvisible: windows_core::BOOL, newvisible: windows_core::BOOL) -> windows_core::Result<()>; fn TextInserting(&self, ink: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()>; fn TextInserted(&self, ink: *const super::super::System::Com::SAFEARRAY) -> windows_core::Result<()>; } @@ -15400,13 +15400,13 @@ impl ITextInputPanelEventSink_Vtbl { ITextInputPanelEventSink_Impl::CorrectionModeChanged(this, core::mem::transmute_copy(&oldcorrectionmode), core::mem::transmute_copy(&newcorrectionmode)).into() } } - unsafe extern "system" fn InPlaceVisibilityChanging(this: *mut core::ffi::c_void, oldvisible: super::super::Foundation::BOOL, newvisible: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn InPlaceVisibilityChanging(this: *mut core::ffi::c_void, oldvisible: windows_core::BOOL, newvisible: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanelEventSink_Impl::InPlaceVisibilityChanging(this, core::mem::transmute_copy(&oldvisible), core::mem::transmute_copy(&newvisible)).into() } } - unsafe extern "system" fn InPlaceVisibilityChanged(this: *mut core::ffi::c_void, oldvisible: super::super::Foundation::BOOL, newvisible: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn InPlaceVisibilityChanged(this: *mut core::ffi::c_void, oldvisible: windows_core::BOOL, newvisible: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextInputPanelEventSink_Impl::InPlaceVisibilityChanged(this, core::mem::transmute_copy(&oldvisible), core::mem::transmute_copy(&newvisible)).into() @@ -15449,7 +15449,7 @@ impl windows_core::RuntimeName for ITextInputPanelEventSink {} windows_core::imp::define_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 { + pub unsafe fn IsTipRunning(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsTipRunning)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -15459,14 +15459,14 @@ impl ITextInputPanelRunInfo { #[repr(C)] pub struct ITextInputPanelRunInfo_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsTipRunning: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsTipRunning: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITextInputPanelRunInfo_Impl: windows_core::IUnknownImpl { - fn IsTipRunning(&self) -> windows_core::Result; + fn IsTipRunning(&self) -> windows_core::Result; } impl ITextInputPanelRunInfo_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsTipRunning(this: *mut core::ffi::c_void, pfrunning: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsTipRunning(this: *mut core::ffi::c_void, pfrunning: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextInputPanelRunInfo_Impl::IsTipRunning(this) { @@ -15503,10 +15503,10 @@ impl ITipAutoCompleteClient { pub unsafe fn UserSelection(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).UserSelection)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn PreferredRects(&self, prcaclist: *const super::super::Foundation::RECT, prcfield: *const super::super::Foundation::RECT, prcmodifiedaclist: *mut super::super::Foundation::RECT, pfshownabovetip: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn PreferredRects(&self, prcaclist: *const super::super::Foundation::RECT, prcfield: *const super::super::Foundation::RECT, prcmodifiedaclist: *mut super::super::Foundation::RECT, pfshownabovetip: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).PreferredRects)(windows_core::Interface::as_raw(self), prcaclist, prcfield, prcmodifiedaclist as _, pfshownabovetip as _).ok() } } - pub unsafe fn RequestShowUI(&self, hwndlist: super::super::Foundation::HWND) -> windows_core::Result { + pub unsafe fn RequestShowUI(&self, hwndlist: super::super::Foundation::HWND) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).RequestShowUI)(windows_core::Interface::as_raw(self), hwndlist, &mut result__).map(|| result__) @@ -15519,15 +15519,15 @@ pub struct ITipAutoCompleteClient_Vtbl { pub AdviseProvider: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut core::ffi::c_void) -> windows_core::HRESULT, pub UnadviseProvider: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut core::ffi::c_void) -> windows_core::HRESULT, pub UserSelection: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub PreferredRects: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, *const super::super::Foundation::RECT, *mut super::super::Foundation::RECT, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub RequestShowUI: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub PreferredRects: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, *const super::super::Foundation::RECT, *mut super::super::Foundation::RECT, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub RequestShowUI: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITipAutoCompleteClient_Impl: windows_core::IUnknownImpl { fn AdviseProvider(&self, hwndfield: super::super::Foundation::HWND, piprovider: windows_core::Ref) -> windows_core::Result<()>; fn UnadviseProvider(&self, hwndfield: super::super::Foundation::HWND, piprovider: windows_core::Ref) -> windows_core::Result<()>; fn UserSelection(&self) -> windows_core::Result<()>; - fn PreferredRects(&self, prcaclist: *const super::super::Foundation::RECT, prcfield: *const super::super::Foundation::RECT, prcmodifiedaclist: *mut super::super::Foundation::RECT, pfshownabovetip: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn RequestShowUI(&self, hwndlist: super::super::Foundation::HWND) -> windows_core::Result; + fn PreferredRects(&self, prcaclist: *const super::super::Foundation::RECT, prcfield: *const super::super::Foundation::RECT, prcmodifiedaclist: *mut super::super::Foundation::RECT, pfshownabovetip: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn RequestShowUI(&self, hwndlist: super::super::Foundation::HWND) -> windows_core::Result; } impl ITipAutoCompleteClient_Vtbl { pub const fn new() -> Self { @@ -15549,13 +15549,13 @@ impl ITipAutoCompleteClient_Vtbl { ITipAutoCompleteClient_Impl::UserSelection(this).into() } } - unsafe extern "system" fn PreferredRects(this: *mut core::ffi::c_void, prcaclist: *const super::super::Foundation::RECT, prcfield: *const super::super::Foundation::RECT, prcmodifiedaclist: *mut super::super::Foundation::RECT, pfshownabovetip: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn PreferredRects(this: *mut core::ffi::c_void, prcaclist: *const super::super::Foundation::RECT, prcfield: *const super::super::Foundation::RECT, prcmodifiedaclist: *mut super::super::Foundation::RECT, pfshownabovetip: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITipAutoCompleteClient_Impl::PreferredRects(this, core::mem::transmute_copy(&prcaclist), core::mem::transmute_copy(&prcfield), core::mem::transmute_copy(&prcmodifiedaclist), core::mem::transmute_copy(&pfshownabovetip)).into() } } - unsafe extern "system" fn RequestShowUI(this: *mut core::ffi::c_void, hwndlist: super::super::Foundation::HWND, pfallowshowing: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RequestShowUI(this: *mut core::ffi::c_void, hwndlist: super::super::Foundation::HWND, pfallowshowing: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITipAutoCompleteClient_Impl::RequestShowUI(this, core::mem::transmute_copy(&hwndlist)) { @@ -15595,11 +15595,11 @@ impl ITipAutoCompleteProvider { pub struct ITipAutoCompleteProvider_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub UpdatePendingText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Show: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Show: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITipAutoCompleteProvider_Impl: windows_core::IUnknownImpl { fn UpdatePendingText(&self, bstrpendingtext: &windows_core::BSTR) -> windows_core::Result<()>; - fn Show(&self, fshow: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Show(&self, fshow: windows_core::BOOL) -> windows_core::Result<()>; } impl ITipAutoCompleteProvider_Vtbl { pub const fn new() -> Self { @@ -15609,7 +15609,7 @@ impl ITipAutoCompleteProvider_Vtbl { ITipAutoCompleteProvider_Impl::UpdatePendingText(this, core::mem::transmute(&bstrpendingtext)).into() } } - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, fshow: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITipAutoCompleteProvider_Impl::Show(this, core::mem::transmute_copy(&fshow)).into() @@ -16185,7 +16185,7 @@ pub const StrokeBuilder: windows_core::GUID = windows_core::GUID::from_u128(0xe8 pub struct StylusInfo { pub tcid: u32, pub cid: u32, - pub bIsInvertedCursor: super::super::Foundation::BOOL, + pub bIsInvertedCursor: windows_core::BOOL, } impl Default for StylusInfo { fn default() -> Self { 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 6960fda834..a947ccfcde 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/TextServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/TextServices/mod.rs @@ -1,6 +1,6 @@ #[inline] -pub unsafe fn DoMsCtfMonitor(dwflags: u32, heventforservicestop: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL { - windows_targets::link!("msctfmonitor.dll" "system" fn DoMsCtfMonitor(dwflags : u32, heventforservicestop : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn DoMsCtfMonitor(dwflags: u32, heventforservicestop: super::super::Foundation::HANDLE) -> windows_core::BOOL { + windows_targets::link!("msctfmonitor.dll" "system" fn DoMsCtfMonitor(dwflags : u32, heventforservicestop : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { DoMsCtfMonitor(dwflags, heventforservicestop) } } #[inline] @@ -646,7 +646,7 @@ impl IAnchor { (windows_core::Interface::vtable(self).GetGravity)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsEqual(&self, pawith: P0) -> windows_core::Result + pub unsafe fn IsEqual(&self, pawith: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -676,7 +676,7 @@ impl IAnchor { { unsafe { (windows_core::Interface::vtable(self).ShiftTo)(windows_core::Interface::as_raw(self), pasite.param().abi()).ok() } } - pub unsafe fn ShiftRegion(&self, dwflags: u32, dir: TsShiftDir) -> windows_core::Result { + pub unsafe fn ShiftRegion(&self, dwflags: u32, dir: TsShiftDir) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShiftRegion)(windows_core::Interface::as_raw(self), dwflags, dir, &mut result__).map(|| result__) @@ -706,11 +706,11 @@ pub struct IAnchor_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetGravity: unsafe extern "system" fn(*mut core::ffi::c_void, TsGravity) -> windows_core::HRESULT, pub GetGravity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut TsGravity) -> windows_core::HRESULT, - pub IsEqual: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsEqual: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Compare: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub Shift: unsafe extern "system" fn(*mut core::ffi::c_void, u32, i32, *mut i32, *mut core::ffi::c_void) -> windows_core::HRESULT, pub ShiftTo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub ShiftRegion: unsafe extern "system" fn(*mut core::ffi::c_void, u32, TsShiftDir, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ShiftRegion: unsafe extern "system" fn(*mut core::ffi::c_void, u32, TsShiftDir, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetChangeHistoryMask: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetChangeHistory: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ANCHOR_CHANGE_HISTORY_FLAGS) -> windows_core::HRESULT, pub ClearChangeHistory: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -719,11 +719,11 @@ pub struct IAnchor_Vtbl { pub trait IAnchor_Impl: windows_core::IUnknownImpl { fn SetGravity(&self, gravity: TsGravity) -> windows_core::Result<()>; fn GetGravity(&self) -> windows_core::Result; - fn IsEqual(&self, pawith: windows_core::Ref) -> windows_core::Result; + fn IsEqual(&self, pawith: windows_core::Ref) -> windows_core::Result; fn Compare(&self, pawith: windows_core::Ref) -> windows_core::Result; fn Shift(&self, dwflags: u32, cchreq: i32, pcch: *mut i32, pahaltanchor: windows_core::Ref) -> windows_core::Result<()>; fn ShiftTo(&self, pasite: windows_core::Ref) -> windows_core::Result<()>; - fn ShiftRegion(&self, dwflags: u32, dir: TsShiftDir) -> windows_core::Result; + fn ShiftRegion(&self, dwflags: u32, dir: TsShiftDir) -> windows_core::Result; fn SetChangeHistoryMask(&self, dwmask: u32) -> windows_core::Result<()>; fn GetChangeHistory(&self) -> windows_core::Result; fn ClearChangeHistory(&self) -> windows_core::Result<()>; @@ -749,7 +749,7 @@ impl IAnchor_Vtbl { } } } - unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, pawith: *mut core::ffi::c_void, pfequal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsEqual(this: *mut core::ffi::c_void, pawith: *mut core::ffi::c_void, pfequal: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnchor_Impl::IsEqual(this, core::mem::transmute_copy(&pawith)) { @@ -785,7 +785,7 @@ impl IAnchor_Vtbl { IAnchor_Impl::ShiftTo(this, core::mem::transmute_copy(&pasite)).into() } } - unsafe extern "system" fn ShiftRegion(this: *mut core::ffi::c_void, dwflags: u32, dir: TsShiftDir, pfnoregion: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ShiftRegion(this: *mut core::ffi::c_void, dwflags: u32, dir: TsShiftDir, pfnoregion: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IAnchor_Impl::ShiftRegion(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&dir)) { @@ -2509,7 +2509,7 @@ impl ITextStoreACP { } } #[cfg(feature = "Win32_System_Com")] - pub unsafe fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result { + pub unsafe fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).QueryInsertEmbedded)(windows_core::Interface::as_raw(self), pguidservice, pformatetc, &mut result__).map(|| result__) @@ -2544,7 +2544,7 @@ impl ITextStoreACP { pub unsafe fn RequestAttrsTransitioningAtPosition(&self, acppos: i32, pafilterattrs: &[windows_core::GUID], dwflags: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).RequestAttrsTransitioningAtPosition)(windows_core::Interface::as_raw(self), acppos, pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), dwflags).ok() } } - pub unsafe fn FindNextAttrTransition(&self, acpstart: i32, acphalt: i32, pafilterattrs: &[windows_core::GUID], dwflags: u32, pacpnext: *mut i32, pffound: *mut super::super::Foundation::BOOL, plfoundoffset: *mut i32) -> windows_core::Result<()> { + pub unsafe fn FindNextAttrTransition(&self, acpstart: i32, acphalt: i32, pafilterattrs: &[windows_core::GUID], dwflags: u32, pacpnext: *mut i32, pffound: *mut windows_core::BOOL, plfoundoffset: *mut i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).FindNextAttrTransition)(windows_core::Interface::as_raw(self), acpstart, acphalt, pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), dwflags, pacpnext as _, pffound as _, plfoundoffset as _).ok() } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -2569,7 +2569,7 @@ impl ITextStoreACP { (windows_core::Interface::vtable(self).GetACPFromPoint)(windows_core::Interface::as_raw(self), vcview, ptscreen, dwflags, &mut result__).map(|| result__) } } - pub unsafe fn GetTextExt(&self, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetTextExt(&self, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetTextExt)(windows_core::Interface::as_raw(self), vcview, acpstart, acpend, prc as _, pfclipped as _).ok() } } pub unsafe fn GetScreenExt(&self, vcview: u32) -> windows_core::Result { @@ -2603,7 +2603,7 @@ pub struct ITextStoreACP_Vtbl { GetFormattedText: usize, pub GetEmbedded: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *const windows_core::GUID, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub QueryInsertEmbedded: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const super::super::System::Com::FORMATETC, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub QueryInsertEmbedded: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const super::super::System::Com::FORMATETC, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] QueryInsertEmbedded: usize, #[cfg(feature = "Win32_System_Com")] @@ -2618,7 +2618,7 @@ pub struct ITextStoreACP_Vtbl { pub RequestSupportedAttrs: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const windows_core::GUID) -> windows_core::HRESULT, pub RequestAttrsAtPosition: unsafe extern "system" fn(*mut core::ffi::c_void, i32, u32, *const windows_core::GUID, u32) -> windows_core::HRESULT, pub RequestAttrsTransitioningAtPosition: unsafe extern "system" fn(*mut core::ffi::c_void, i32, u32, *const windows_core::GUID, u32) -> windows_core::HRESULT, - pub FindNextAttrTransition: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, u32, *const windows_core::GUID, u32, *mut i32, *mut super::super::Foundation::BOOL, *mut i32) -> windows_core::HRESULT, + pub FindNextAttrTransition: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, u32, *const windows_core::GUID, u32, *mut i32, *mut windows_core::BOOL, *mut i32) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub RetrieveRequestedAttrs: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut TS_ATTRVAL, *mut u32) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -2626,7 +2626,7 @@ pub struct ITextStoreACP_Vtbl { pub GetEndACP: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub GetActiveView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetACPFromPoint: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::super::Foundation::POINT, u32, *mut i32) -> windows_core::HRESULT, - pub GetTextExt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, i32, i32, *mut super::super::Foundation::RECT, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetTextExt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, i32, i32, *mut super::super::Foundation::RECT, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetScreenExt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::RECT) -> windows_core::HRESULT, pub GetWnd: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::HWND) -> windows_core::HRESULT, } @@ -2643,19 +2643,19 @@ pub trait ITextStoreACP_Impl: windows_core::IUnknownImpl { fn SetText(&self, dwflags: u32, acpstart: i32, acpend: i32, pchtext: &windows_core::PCWSTR, cch: u32) -> windows_core::Result; fn GetFormattedText(&self, acpstart: i32, acpend: i32) -> windows_core::Result; fn GetEmbedded(&self, acppos: i32, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID) -> windows_core::Result; - fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result; + fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result; fn InsertEmbedded(&self, dwflags: u32, acpstart: i32, acpend: i32, pdataobject: windows_core::Ref) -> windows_core::Result; fn InsertTextAtSelection(&self, dwflags: u32, pchtext: &windows_core::PCWSTR, cch: u32, pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE) -> windows_core::Result<()>; fn InsertEmbeddedAtSelection(&self, dwflags: u32, pdataobject: windows_core::Ref, pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE) -> windows_core::Result<()>; fn RequestSupportedAttrs(&self, dwflags: u32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID) -> windows_core::Result<()>; fn RequestAttrsAtPosition(&self, acppos: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32) -> windows_core::Result<()>; fn RequestAttrsTransitioningAtPosition(&self, acppos: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32) -> windows_core::Result<()>; - fn FindNextAttrTransition(&self, acpstart: i32, acphalt: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32, pacpnext: *mut i32, pffound: *mut super::super::Foundation::BOOL, plfoundoffset: *mut i32) -> windows_core::Result<()>; + fn FindNextAttrTransition(&self, acpstart: i32, acphalt: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32, pacpnext: *mut i32, pffound: *mut windows_core::BOOL, plfoundoffset: *mut i32) -> windows_core::Result<()>; fn RetrieveRequestedAttrs(&self, ulcount: u32, paattrvals: *mut TS_ATTRVAL, pcfetched: *mut u32) -> windows_core::Result<()>; fn GetEndACP(&self) -> windows_core::Result; fn GetActiveView(&self) -> windows_core::Result; fn GetACPFromPoint(&self, vcview: u32, ptscreen: *const super::super::Foundation::POINT, dwflags: u32) -> windows_core::Result; - fn GetTextExt(&self, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetTextExt(&self, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetScreenExt(&self, vcview: u32) -> windows_core::Result; fn GetWnd(&self, vcview: u32) -> windows_core::Result; } @@ -2758,7 +2758,7 @@ impl ITextStoreACP_Vtbl { } } } - unsafe extern "system" fn QueryInsertEmbedded(this: *mut core::ffi::c_void, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC, pfinsertable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn QueryInsertEmbedded(this: *mut core::ffi::c_void, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC, pfinsertable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP_Impl::QueryInsertEmbedded(this, core::mem::transmute_copy(&pguidservice), core::mem::transmute_copy(&pformatetc)) { @@ -2812,7 +2812,7 @@ impl ITextStoreACP_Vtbl { ITextStoreACP_Impl::RequestAttrsTransitioningAtPosition(this, core::mem::transmute_copy(&acppos), core::mem::transmute_copy(&cfilterattrs), core::mem::transmute_copy(&pafilterattrs), core::mem::transmute_copy(&dwflags)).into() } } - unsafe extern "system" fn FindNextAttrTransition(this: *mut core::ffi::c_void, acpstart: i32, acphalt: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32, pacpnext: *mut i32, pffound: *mut super::super::Foundation::BOOL, plfoundoffset: *mut i32) -> windows_core::HRESULT { + unsafe extern "system" fn FindNextAttrTransition(this: *mut core::ffi::c_void, acpstart: i32, acphalt: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32, pacpnext: *mut i32, pffound: *mut windows_core::BOOL, plfoundoffset: *mut i32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP_Impl::FindNextAttrTransition(this, core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acphalt), core::mem::transmute_copy(&cfilterattrs), core::mem::transmute_copy(&pafilterattrs), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pacpnext), core::mem::transmute_copy(&pffound), core::mem::transmute_copy(&plfoundoffset)).into() @@ -2860,7 +2860,7 @@ impl ITextStoreACP_Vtbl { } } } - unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP_Impl::GetTextExt(this, core::mem::transmute_copy(&vcview), core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acpend), core::mem::transmute_copy(&prc), core::mem::transmute_copy(&pfclipped)).into() @@ -2985,7 +2985,7 @@ impl ITextStoreACP2 { } } #[cfg(feature = "Win32_System_Com")] - pub unsafe fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result { + pub unsafe fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).QueryInsertEmbedded)(windows_core::Interface::as_raw(self), pguidservice, pformatetc, &mut result__).map(|| result__) @@ -3020,7 +3020,7 @@ impl ITextStoreACP2 { pub unsafe fn RequestAttrsTransitioningAtPosition(&self, acppos: i32, pafilterattrs: &[windows_core::GUID], dwflags: u32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).RequestAttrsTransitioningAtPosition)(windows_core::Interface::as_raw(self), acppos, pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), dwflags).ok() } } - pub unsafe fn FindNextAttrTransition(&self, acpstart: i32, acphalt: i32, pafilterattrs: &[windows_core::GUID], dwflags: u32, pacpnext: *mut i32, pffound: *mut super::super::Foundation::BOOL, plfoundoffset: *mut i32) -> windows_core::Result<()> { + pub unsafe fn FindNextAttrTransition(&self, acpstart: i32, acphalt: i32, pafilterattrs: &[windows_core::GUID], dwflags: u32, pacpnext: *mut i32, pffound: *mut windows_core::BOOL, plfoundoffset: *mut i32) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).FindNextAttrTransition)(windows_core::Interface::as_raw(self), acpstart, acphalt, pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), dwflags, pacpnext as _, pffound as _, plfoundoffset as _).ok() } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3045,7 +3045,7 @@ impl ITextStoreACP2 { (windows_core::Interface::vtable(self).GetACPFromPoint)(windows_core::Interface::as_raw(self), vcview, ptscreen, dwflags, &mut result__).map(|| result__) } } - pub unsafe fn GetTextExt(&self, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetTextExt(&self, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetTextExt)(windows_core::Interface::as_raw(self), vcview, acpstart, acpend, prc as _, pfclipped as _).ok() } } pub unsafe fn GetScreenExt(&self, vcview: u32) -> windows_core::Result { @@ -3073,7 +3073,7 @@ pub struct ITextStoreACP2_Vtbl { GetFormattedText: usize, pub GetEmbedded: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *const windows_core::GUID, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub QueryInsertEmbedded: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const super::super::System::Com::FORMATETC, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub QueryInsertEmbedded: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const super::super::System::Com::FORMATETC, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] QueryInsertEmbedded: usize, #[cfg(feature = "Win32_System_Com")] @@ -3088,7 +3088,7 @@ pub struct ITextStoreACP2_Vtbl { pub RequestSupportedAttrs: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const windows_core::GUID) -> windows_core::HRESULT, pub RequestAttrsAtPosition: unsafe extern "system" fn(*mut core::ffi::c_void, i32, u32, *const windows_core::GUID, u32) -> windows_core::HRESULT, pub RequestAttrsTransitioningAtPosition: unsafe extern "system" fn(*mut core::ffi::c_void, i32, u32, *const windows_core::GUID, u32) -> windows_core::HRESULT, - pub FindNextAttrTransition: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, u32, *const windows_core::GUID, u32, *mut i32, *mut super::super::Foundation::BOOL, *mut i32) -> windows_core::HRESULT, + pub FindNextAttrTransition: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, u32, *const windows_core::GUID, u32, *mut i32, *mut windows_core::BOOL, *mut i32) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub RetrieveRequestedAttrs: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut TS_ATTRVAL, *mut u32) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -3096,7 +3096,7 @@ pub struct ITextStoreACP2_Vtbl { pub GetEndACP: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub GetActiveView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetACPFromPoint: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::super::Foundation::POINT, u32, *mut i32) -> windows_core::HRESULT, - pub GetTextExt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, i32, i32, *mut super::super::Foundation::RECT, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetTextExt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, i32, i32, *mut super::super::Foundation::RECT, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetScreenExt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::RECT) -> windows_core::HRESULT, } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3112,19 +3112,19 @@ pub trait ITextStoreACP2_Impl: windows_core::IUnknownImpl { fn SetText(&self, dwflags: u32, acpstart: i32, acpend: i32, pchtext: &windows_core::PCWSTR, cch: u32) -> windows_core::Result; fn GetFormattedText(&self, acpstart: i32, acpend: i32) -> windows_core::Result; fn GetEmbedded(&self, acppos: i32, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID) -> windows_core::Result; - fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result; + fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result; fn InsertEmbedded(&self, dwflags: u32, acpstart: i32, acpend: i32, pdataobject: windows_core::Ref) -> windows_core::Result; fn InsertTextAtSelection(&self, dwflags: u32, pchtext: &windows_core::PCWSTR, cch: u32, pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE) -> windows_core::Result<()>; fn InsertEmbeddedAtSelection(&self, dwflags: u32, pdataobject: windows_core::Ref, pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE) -> windows_core::Result<()>; fn RequestSupportedAttrs(&self, dwflags: u32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID) -> windows_core::Result<()>; fn RequestAttrsAtPosition(&self, acppos: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32) -> windows_core::Result<()>; fn RequestAttrsTransitioningAtPosition(&self, acppos: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32) -> windows_core::Result<()>; - fn FindNextAttrTransition(&self, acpstart: i32, acphalt: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32, pacpnext: *mut i32, pffound: *mut super::super::Foundation::BOOL, plfoundoffset: *mut i32) -> windows_core::Result<()>; + fn FindNextAttrTransition(&self, acpstart: i32, acphalt: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32, pacpnext: *mut i32, pffound: *mut windows_core::BOOL, plfoundoffset: *mut i32) -> windows_core::Result<()>; fn RetrieveRequestedAttrs(&self, ulcount: u32, paattrvals: *mut TS_ATTRVAL, pcfetched: *mut u32) -> windows_core::Result<()>; fn GetEndACP(&self) -> windows_core::Result; fn GetActiveView(&self) -> windows_core::Result; fn GetACPFromPoint(&self, vcview: u32, ptscreen: *const super::super::Foundation::POINT, dwflags: u32) -> windows_core::Result; - fn GetTextExt(&self, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetTextExt(&self, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetScreenExt(&self, vcview: u32) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3226,7 +3226,7 @@ impl ITextStoreACP2_Vtbl { } } } - unsafe extern "system" fn QueryInsertEmbedded(this: *mut core::ffi::c_void, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC, pfinsertable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn QueryInsertEmbedded(this: *mut core::ffi::c_void, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC, pfinsertable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreACP2_Impl::QueryInsertEmbedded(this, core::mem::transmute_copy(&pguidservice), core::mem::transmute_copy(&pformatetc)) { @@ -3280,7 +3280,7 @@ impl ITextStoreACP2_Vtbl { ITextStoreACP2_Impl::RequestAttrsTransitioningAtPosition(this, core::mem::transmute_copy(&acppos), core::mem::transmute_copy(&cfilterattrs), core::mem::transmute_copy(&pafilterattrs), core::mem::transmute_copy(&dwflags)).into() } } - unsafe extern "system" fn FindNextAttrTransition(this: *mut core::ffi::c_void, acpstart: i32, acphalt: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32, pacpnext: *mut i32, pffound: *mut super::super::Foundation::BOOL, plfoundoffset: *mut i32) -> windows_core::HRESULT { + unsafe extern "system" fn FindNextAttrTransition(this: *mut core::ffi::c_void, acpstart: i32, acphalt: i32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32, pacpnext: *mut i32, pffound: *mut windows_core::BOOL, plfoundoffset: *mut i32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP2_Impl::FindNextAttrTransition(this, core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acphalt), core::mem::transmute_copy(&cfilterattrs), core::mem::transmute_copy(&pafilterattrs), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pacpnext), core::mem::transmute_copy(&pffound), core::mem::transmute_copy(&plfoundoffset)).into() @@ -3328,7 +3328,7 @@ impl ITextStoreACP2_Vtbl { } } } - unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreACP2_Impl::GetTextExt(this, core::mem::transmute_copy(&vcview), core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acpend), core::mem::transmute_copy(&prc), core::mem::transmute_copy(&pfclipped)).into() @@ -3764,7 +3764,7 @@ impl ITextStoreAnchor { { unsafe { (windows_core::Interface::vtable(self).RequestAttrsTransitioningAtPosition)(windows_core::Interface::as_raw(self), papos.param().abi(), pafilterattrs.len().try_into().unwrap(), core::mem::transmute(pafilterattrs.as_ptr()), dwflags).ok() } } - pub unsafe fn FindNextAttrTransition(&self, pastart: P0, pahalt: P1, pafilterattrs: &[windows_core::GUID], dwflags: u32, pffound: *mut super::super::Foundation::BOOL, plfoundoffset: *mut i32) -> windows_core::Result<()> + pub unsafe fn FindNextAttrTransition(&self, pastart: P0, pahalt: P1, pafilterattrs: &[windows_core::GUID], dwflags: u32, pffound: *mut windows_core::BOOL, plfoundoffset: *mut i32) -> windows_core::Result<()> where P0: windows_core::Param, P1: windows_core::Param, @@ -3799,7 +3799,7 @@ impl ITextStoreAnchor { (windows_core::Interface::vtable(self).GetAnchorFromPoint)(windows_core::Interface::as_raw(self), vcview, ptscreen, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetTextExt(&self, vcview: u32, pastart: P1, paend: P2, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn GetTextExt(&self, vcview: u32, pastart: P1, paend: P2, prc: *mut super::super::Foundation::RECT, pfclipped: *mut windows_core::BOOL) -> windows_core::Result<()> where P1: windows_core::Param, P2: windows_core::Param, @@ -3819,7 +3819,7 @@ impl ITextStoreAnchor { } } #[cfg(feature = "Win32_System_Com")] - pub unsafe fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result { + pub unsafe fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).QueryInsertEmbedded)(windows_core::Interface::as_raw(self), pguidservice, pformatetc, &mut result__).map(|| result__) @@ -3846,7 +3846,7 @@ pub struct ITextStoreAnchor_Vtbl { pub QueryInsert: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSelection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut TS_SELECTION_ANCHOR, *mut u32) -> windows_core::HRESULT, pub SetSelection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const TS_SELECTION_ANCHOR) -> windows_core::HRESULT, - pub GetText: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::PWSTR, u32, *mut u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetText: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::PWSTR, u32, *mut u32, windows_core::BOOL) -> windows_core::HRESULT, pub SetText: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::PCWSTR, u32) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetFormattedText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -3860,7 +3860,7 @@ pub struct ITextStoreAnchor_Vtbl { pub RequestSupportedAttrs: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const windows_core::GUID) -> windows_core::HRESULT, pub RequestAttrsAtPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const windows_core::GUID, u32) -> windows_core::HRESULT, pub RequestAttrsTransitioningAtPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const windows_core::GUID, u32) -> windows_core::HRESULT, - pub FindNextAttrTransition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const windows_core::GUID, u32, *mut super::super::Foundation::BOOL, *mut i32) -> windows_core::HRESULT, + pub FindNextAttrTransition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const windows_core::GUID, u32, *mut windows_core::BOOL, *mut i32) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub RetrieveRequestedAttrs: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut TS_ATTRVAL, *mut u32) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -3869,11 +3869,11 @@ pub struct ITextStoreAnchor_Vtbl { pub GetEnd: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetActiveView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetAnchorFromPoint: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::super::Foundation::POINT, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetTextExt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::RECT, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetTextExt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::RECT, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetScreenExt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::RECT) -> windows_core::HRESULT, pub GetWnd: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::HWND) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] - pub QueryInsertEmbedded: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const super::super::System::Com::FORMATETC, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub QueryInsertEmbedded: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const super::super::System::Com::FORMATETC, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] QueryInsertEmbedded: usize, pub InsertTextAtSelection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::PCWSTR, u32, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -3891,7 +3891,7 @@ pub trait ITextStoreAnchor_Impl: windows_core::IUnknownImpl { fn QueryInsert(&self, pateststart: windows_core::Ref, patestend: windows_core::Ref, cch: u32, pparesultstart: windows_core::OutRef<'_, IAnchor>, pparesultend: windows_core::OutRef<'_, IAnchor>) -> windows_core::Result<()>; fn GetSelection(&self, ulindex: u32, ulcount: u32, pselection: *mut TS_SELECTION_ANCHOR, pcfetched: *mut u32) -> windows_core::Result<()>; fn SetSelection(&self, ulcount: u32, pselection: *const TS_SELECTION_ANCHOR) -> windows_core::Result<()>; - fn GetText(&self, dwflags: u32, pastart: windows_core::Ref, paend: windows_core::Ref, pchtext: windows_core::PWSTR, cchreq: u32, pcch: *mut u32, fupdateanchor: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetText(&self, dwflags: u32, pastart: windows_core::Ref, paend: windows_core::Ref, pchtext: windows_core::PWSTR, cchreq: u32, pcch: *mut u32, fupdateanchor: windows_core::BOOL) -> windows_core::Result<()>; fn SetText(&self, dwflags: u32, pastart: windows_core::Ref, paend: windows_core::Ref, pchtext: &windows_core::PCWSTR, cch: u32) -> windows_core::Result<()>; fn GetFormattedText(&self, pastart: windows_core::Ref, paend: windows_core::Ref) -> windows_core::Result; fn GetEmbedded(&self, dwflags: u32, papos: windows_core::Ref, rguidservice: *const windows_core::GUID, riid: *const windows_core::GUID) -> windows_core::Result; @@ -3899,16 +3899,16 @@ pub trait ITextStoreAnchor_Impl: windows_core::IUnknownImpl { fn RequestSupportedAttrs(&self, dwflags: u32, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID) -> windows_core::Result<()>; fn RequestAttrsAtPosition(&self, papos: windows_core::Ref, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32) -> windows_core::Result<()>; fn RequestAttrsTransitioningAtPosition(&self, papos: windows_core::Ref, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32) -> windows_core::Result<()>; - fn FindNextAttrTransition(&self, pastart: windows_core::Ref, pahalt: windows_core::Ref, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32, pffound: *mut super::super::Foundation::BOOL, plfoundoffset: *mut i32) -> windows_core::Result<()>; + fn FindNextAttrTransition(&self, pastart: windows_core::Ref, pahalt: windows_core::Ref, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32, pffound: *mut windows_core::BOOL, plfoundoffset: *mut i32) -> windows_core::Result<()>; fn RetrieveRequestedAttrs(&self, ulcount: u32, paattrvals: *mut TS_ATTRVAL, pcfetched: *mut u32) -> windows_core::Result<()>; fn GetStart(&self) -> windows_core::Result; fn GetEnd(&self) -> windows_core::Result; fn GetActiveView(&self) -> windows_core::Result; fn GetAnchorFromPoint(&self, vcview: u32, ptscreen: *const super::super::Foundation::POINT, dwflags: u32) -> windows_core::Result; - fn GetTextExt(&self, vcview: u32, pastart: windows_core::Ref, paend: windows_core::Ref, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetTextExt(&self, vcview: u32, pastart: windows_core::Ref, paend: windows_core::Ref, prc: *mut super::super::Foundation::RECT, pfclipped: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetScreenExt(&self, vcview: u32) -> windows_core::Result; fn GetWnd(&self, vcview: u32) -> windows_core::Result; - fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result; + fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result; fn InsertTextAtSelection(&self, dwflags: u32, pchtext: &windows_core::PCWSTR, cch: u32, ppastart: windows_core::OutRef<'_, IAnchor>, ppaend: windows_core::OutRef<'_, IAnchor>) -> windows_core::Result<()>; fn InsertEmbeddedAtSelection(&self, dwflags: u32, pdataobject: windows_core::Ref, ppastart: windows_core::OutRef<'_, IAnchor>, ppaend: windows_core::OutRef<'_, IAnchor>) -> windows_core::Result<()>; } @@ -3969,7 +3969,7 @@ impl ITextStoreAnchor_Vtbl { ITextStoreAnchor_Impl::SetSelection(this, core::mem::transmute_copy(&ulcount), core::mem::transmute_copy(&pselection)).into() } } - unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, dwflags: u32, pastart: *mut core::ffi::c_void, paend: *mut core::ffi::c_void, pchtext: windows_core::PWSTR, cchreq: u32, pcch: *mut u32, fupdateanchor: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetText(this: *mut core::ffi::c_void, dwflags: u32, pastart: *mut core::ffi::c_void, paend: *mut core::ffi::c_void, pchtext: windows_core::PWSTR, cchreq: u32, pcch: *mut u32, fupdateanchor: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::GetText(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pastart), core::mem::transmute_copy(&paend), core::mem::transmute_copy(&pchtext), core::mem::transmute_copy(&cchreq), core::mem::transmute_copy(&pcch), core::mem::transmute_copy(&fupdateanchor)).into() @@ -4029,7 +4029,7 @@ impl ITextStoreAnchor_Vtbl { ITextStoreAnchor_Impl::RequestAttrsTransitioningAtPosition(this, core::mem::transmute_copy(&papos), core::mem::transmute_copy(&cfilterattrs), core::mem::transmute_copy(&pafilterattrs), core::mem::transmute_copy(&dwflags)).into() } } - unsafe extern "system" fn FindNextAttrTransition(this: *mut core::ffi::c_void, pastart: *mut core::ffi::c_void, pahalt: *mut core::ffi::c_void, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32, pffound: *mut super::super::Foundation::BOOL, plfoundoffset: *mut i32) -> windows_core::HRESULT { + unsafe extern "system" fn FindNextAttrTransition(this: *mut core::ffi::c_void, pastart: *mut core::ffi::c_void, pahalt: *mut core::ffi::c_void, cfilterattrs: u32, pafilterattrs: *const windows_core::GUID, dwflags: u32, pffound: *mut windows_core::BOOL, plfoundoffset: *mut i32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::FindNextAttrTransition(this, core::mem::transmute_copy(&pastart), core::mem::transmute_copy(&pahalt), core::mem::transmute_copy(&cfilterattrs), core::mem::transmute_copy(&pafilterattrs), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&pffound), core::mem::transmute_copy(&plfoundoffset)).into() @@ -4089,7 +4089,7 @@ impl ITextStoreAnchor_Vtbl { } } } - unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, vcview: u32, pastart: *mut core::ffi::c_void, paend: *mut core::ffi::c_void, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, vcview: u32, pastart: *mut core::ffi::c_void, paend: *mut core::ffi::c_void, prc: *mut super::super::Foundation::RECT, pfclipped: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITextStoreAnchor_Impl::GetTextExt(this, core::mem::transmute_copy(&vcview), core::mem::transmute_copy(&pastart), core::mem::transmute_copy(&paend), core::mem::transmute_copy(&prc), core::mem::transmute_copy(&pfclipped)).into() @@ -4119,7 +4119,7 @@ impl ITextStoreAnchor_Vtbl { } } } - unsafe extern "system" fn QueryInsertEmbedded(this: *mut core::ffi::c_void, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC, pfinsertable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn QueryInsertEmbedded(this: *mut core::ffi::c_void, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC, pfinsertable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITextStoreAnchor_Impl::QueryInsertEmbedded(this, core::mem::transmute_copy(&pguidservice), core::mem::transmute_copy(&pformatetc)) { @@ -4385,14 +4385,14 @@ impl ITfActiveLanguageProfileNotifySink { #[repr(C)] pub struct ITfActiveLanguageProfileNotifySink_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnActivated: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const windows_core::GUID, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnActivated: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const windows_core::GUID, windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITfActiveLanguageProfileNotifySink_Impl: windows_core::IUnknownImpl { - fn OnActivated(&self, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, factivated: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnActivated(&self, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, factivated: windows_core::BOOL) -> windows_core::Result<()>; } impl ITfActiveLanguageProfileNotifySink_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnActivated(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, factivated: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnActivated(this: *mut core::ffi::c_void, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, factivated: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfActiveLanguageProfileNotifySink_Impl::OnActivated(this, core::mem::transmute_copy(&clsid), core::mem::transmute_copy(&guidprofile), core::mem::transmute_copy(&factivated)).into() @@ -4862,7 +4862,7 @@ impl ITfCategoryMgr { (windows_core::Interface::vtable(self).GetGUID)(windows_core::Interface::as_raw(self), guidatom, &mut result__).map(|| result__) } } - pub unsafe fn IsEqualTfGuidAtom(&self, guidatom: u32, rguid: *const windows_core::GUID) -> windows_core::Result { + pub unsafe fn IsEqualTfGuidAtom(&self, guidatom: u32, rguid: *const windows_core::GUID) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsEqualTfGuidAtom)(windows_core::Interface::as_raw(self), guidatom, rguid, &mut result__).map(|| result__) @@ -4891,7 +4891,7 @@ pub struct ITfCategoryMgr_Vtbl { pub GetGUIDDWORD: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut u32) -> windows_core::HRESULT, pub RegisterGUID: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut u32) -> windows_core::HRESULT, pub GetGUID: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::GUID) -> windows_core::HRESULT, - pub IsEqualTfGuidAtom: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_core::GUID, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsEqualTfGuidAtom: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_core::GUID, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait ITfCategoryMgr_Impl: windows_core::IUnknownImpl { @@ -4908,7 +4908,7 @@ pub trait ITfCategoryMgr_Impl: windows_core::IUnknownImpl { fn GetGUIDDWORD(&self, rguid: *const windows_core::GUID) -> windows_core::Result; fn RegisterGUID(&self, rguid: *const windows_core::GUID) -> windows_core::Result; fn GetGUID(&self, guidatom: u32) -> windows_core::Result; - fn IsEqualTfGuidAtom(&self, guidatom: u32, rguid: *const windows_core::GUID) -> windows_core::Result; + fn IsEqualTfGuidAtom(&self, guidatom: u32, rguid: *const windows_core::GUID) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl ITfCategoryMgr_Vtbl { @@ -5027,7 +5027,7 @@ impl ITfCategoryMgr_Vtbl { } } } - unsafe extern "system" fn IsEqualTfGuidAtom(this: *mut core::ffi::c_void, guidatom: u32, rguid: *const windows_core::GUID, pfequal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsEqualTfGuidAtom(this: *mut core::ffi::c_void, guidatom: u32, rguid: *const windows_core::GUID, pfequal: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCategoryMgr_Impl::IsEqualTfGuidAtom(this, core::mem::transmute_copy(&guidatom), core::mem::transmute_copy(&rguid)) { @@ -5590,7 +5590,7 @@ impl ITfContext { (windows_core::Interface::vtable(self).RequestEditSession)(windows_core::Interface::as_raw(self), tid, pes.param().abi(), dwflags, &mut result__).map(|| result__) } } - pub unsafe fn InWriteSession(&self, tid: u32) -> windows_core::Result { + pub unsafe fn InWriteSession(&self, tid: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).InWriteSession)(windows_core::Interface::as_raw(self), tid, &mut result__).map(|| result__) @@ -5676,7 +5676,7 @@ impl ITfContext { pub struct ITfContext_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub RequestEditSession: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, TF_CONTEXT_EDIT_CONTEXT_FLAGS, *mut windows_core::HRESULT) -> windows_core::HRESULT, - pub InWriteSession: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub InWriteSession: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetSelection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, u32, *mut TF_SELECTION, *mut u32) -> windows_core::HRESULT, pub SetSelection: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const TF_SELECTION) -> windows_core::HRESULT, pub GetStart: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -5693,7 +5693,7 @@ pub struct ITfContext_Vtbl { } pub trait ITfContext_Impl: windows_core::IUnknownImpl { fn RequestEditSession(&self, tid: u32, pes: windows_core::Ref, dwflags: TF_CONTEXT_EDIT_CONTEXT_FLAGS) -> windows_core::Result; - fn InWriteSession(&self, tid: u32) -> windows_core::Result; + fn InWriteSession(&self, tid: u32) -> windows_core::Result; fn GetSelection(&self, ec: u32, ulindex: u32, ulcount: u32, pselection: *mut TF_SELECTION, pcfetched: *mut u32) -> windows_core::Result<()>; fn SetSelection(&self, ec: u32, ulcount: u32, pselection: *const TF_SELECTION) -> windows_core::Result<()>; fn GetStart(&self, ec: u32) -> windows_core::Result; @@ -5722,7 +5722,7 @@ impl ITfContext_Vtbl { } } } - unsafe extern "system" fn InWriteSession(this: *mut core::ffi::c_void, tid: u32, pfwritesession: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn InWriteSession(this: *mut core::ffi::c_void, tid: u32, pfwritesession: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContext_Impl::InWriteSession(this, core::mem::transmute_copy(&tid)) { @@ -6021,25 +6021,25 @@ impl windows_core::RuntimeName for ITfContextComposition {} windows_core::imp::define_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: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { + pub unsafe fn OnKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OnKeyDown)(windows_core::Interface::as_raw(self), wparam, lparam, &mut result__).map(|| result__) } } - pub unsafe fn OnKeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { + pub unsafe fn OnKeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OnKeyUp)(windows_core::Interface::as_raw(self), wparam, lparam, &mut result__).map(|| result__) } } - pub unsafe fn OnTestKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { + pub unsafe fn OnTestKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OnTestKeyDown)(windows_core::Interface::as_raw(self), wparam, lparam, &mut result__).map(|| result__) } } - pub unsafe fn OnTestKeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { + pub unsafe fn OnTestKeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OnTestKeyUp)(windows_core::Interface::as_raw(self), wparam, lparam, &mut result__).map(|| result__) @@ -6049,20 +6049,20 @@ impl ITfContextKeyEventSink { #[repr(C)] pub struct ITfContextKeyEventSink_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnKeyDown: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OnKeyUp: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OnTestKeyDown: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OnTestKeyUp: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnKeyDown: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OnKeyUp: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OnTestKeyDown: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OnTestKeyUp: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITfContextKeyEventSink_Impl: windows_core::IUnknownImpl { - fn OnKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; - fn OnKeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; - fn OnTestKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; - fn OnTestKeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; + fn OnKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; + fn OnKeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; + fn OnTestKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; + fn OnTestKeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; } impl ITfContextKeyEventSink_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnKeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnKeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextKeyEventSink_Impl::OnKeyDown(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { @@ -6074,7 +6074,7 @@ impl ITfContextKeyEventSink_Vtbl { } } } - unsafe extern "system" fn OnKeyUp(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnKeyUp(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextKeyEventSink_Impl::OnKeyUp(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { @@ -6086,7 +6086,7 @@ impl ITfContextKeyEventSink_Vtbl { } } } - unsafe extern "system" fn OnTestKeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnTestKeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextKeyEventSink_Impl::OnTestKeyDown(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { @@ -6098,7 +6098,7 @@ impl ITfContextKeyEventSink_Vtbl { } } } - unsafe extern "system" fn OnTestKeyUp(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnTestKeyUp(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextKeyEventSink_Impl::OnTestKeyUp(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { @@ -6132,7 +6132,7 @@ impl ITfContextOwner { (windows_core::Interface::vtable(self).GetACPFromPoint)(windows_core::Interface::as_raw(self), ptscreen, dwflags, &mut result__).map(|| result__) } } - pub unsafe fn GetTextExt(&self, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetTextExt(&self, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetTextExt)(windows_core::Interface::as_raw(self), acpstart, acpend, prc as _, pfclipped as _).ok() } } pub unsafe fn GetScreenExt(&self) -> windows_core::Result { @@ -6165,7 +6165,7 @@ impl ITfContextOwner { pub struct ITfContextOwner_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetACPFromPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::POINT, u32, *mut i32) -> windows_core::HRESULT, - pub GetTextExt: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, *mut super::super::Foundation::RECT, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetTextExt: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, *mut super::super::Foundation::RECT, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetScreenExt: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::RECT) -> windows_core::HRESULT, pub GetStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut TS_STATUS) -> windows_core::HRESULT, pub GetWnd: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::HWND) -> windows_core::HRESULT, @@ -6177,7 +6177,7 @@ pub struct ITfContextOwner_Vtbl { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub trait ITfContextOwner_Impl: windows_core::IUnknownImpl { fn GetACPFromPoint(&self, ptscreen: *const super::super::Foundation::POINT, dwflags: u32) -> windows_core::Result; - fn GetTextExt(&self, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetTextExt(&self, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetScreenExt(&self) -> windows_core::Result; fn GetStatus(&self) -> windows_core::Result; fn GetWnd(&self) -> windows_core::Result; @@ -6198,7 +6198,7 @@ impl ITfContextOwner_Vtbl { } } } - unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfContextOwner_Impl::GetTextExt(this, core::mem::transmute_copy(&acpstart), core::mem::transmute_copy(&acpend), core::mem::transmute_copy(&prc), core::mem::transmute_copy(&pfclipped)).into() @@ -6310,7 +6310,7 @@ impl windows_core::RuntimeName for ITfContextOwnerCompositionServices {} windows_core::imp::define_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 + pub unsafe fn OnStartComposition(&self, pcomposition: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -6336,18 +6336,18 @@ impl ITfContextOwnerCompositionSink { #[repr(C)] pub struct ITfContextOwnerCompositionSink_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnStartComposition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnStartComposition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub OnUpdateComposition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub OnEndComposition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ITfContextOwnerCompositionSink_Impl: windows_core::IUnknownImpl { - fn OnStartComposition(&self, pcomposition: windows_core::Ref) -> windows_core::Result; + fn OnStartComposition(&self, pcomposition: windows_core::Ref) -> windows_core::Result; fn OnUpdateComposition(&self, pcomposition: windows_core::Ref, prangenew: windows_core::Ref) -> windows_core::Result<()>; fn OnEndComposition(&self, pcomposition: windows_core::Ref) -> windows_core::Result<()>; } impl ITfContextOwnerCompositionSink_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnStartComposition(this: *mut core::ffi::c_void, pcomposition: *mut core::ffi::c_void, pfok: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnStartComposition(this: *mut core::ffi::c_void, pcomposition: *mut core::ffi::c_void, pfok: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfContextOwnerCompositionSink_Impl::OnStartComposition(this, core::mem::transmute_copy(&pcomposition)) { @@ -6530,7 +6530,7 @@ impl ITfContextView { (windows_core::Interface::vtable(self).GetRangeFromPoint)(windows_core::Interface::as_raw(self), ec, ppt, dwflags, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn GetTextExt(&self, ec: u32, prange: P1, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn GetTextExt(&self, ec: u32, prange: P1, prc: *mut super::super::Foundation::RECT, pfclipped: *mut windows_core::BOOL) -> windows_core::Result<()> where P1: windows_core::Param, { @@ -6553,13 +6553,13 @@ impl ITfContextView { pub struct ITfContextView_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetRangeFromPoint: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const super::super::Foundation::POINT, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetTextExt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut super::super::Foundation::RECT, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetTextExt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut super::super::Foundation::RECT, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetScreenExt: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::RECT) -> windows_core::HRESULT, pub GetWnd: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::HWND) -> windows_core::HRESULT, } pub trait ITfContextView_Impl: windows_core::IUnknownImpl { fn GetRangeFromPoint(&self, ec: u32, ppt: *const super::super::Foundation::POINT, dwflags: u32) -> windows_core::Result; - fn GetTextExt(&self, ec: u32, prange: windows_core::Ref, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn GetTextExt(&self, ec: u32, prange: windows_core::Ref, prc: *mut super::super::Foundation::RECT, pfclipped: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetScreenExt(&self) -> windows_core::Result; fn GetWnd(&self) -> windows_core::Result; } @@ -6577,7 +6577,7 @@ impl ITfContextView_Vtbl { } } } - unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetTextExt(this: *mut core::ffi::c_void, ec: u32, prange: *mut core::ffi::c_void, prc: *mut super::super::Foundation::RECT, pfclipped: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfContextView_Impl::GetTextExt(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&prange), core::mem::transmute_copy(&prc), core::mem::transmute_copy(&pfclipped)).into() @@ -6623,7 +6623,7 @@ impl windows_core::RuntimeName for ITfContextView {} windows_core::imp::define_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: P1, ppropstore: P2) -> windows_core::Result + pub unsafe fn IsStoreSerializable(&self, guidprop: *const windows_core::GUID, prange: P1, ppropstore: P2) -> windows_core::Result where P1: windows_core::Param, P2: windows_core::Param, @@ -6648,7 +6648,7 @@ impl ITfCreatePropertyStore { #[repr(C)] pub struct ITfCreatePropertyStore_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsStoreSerializable: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsStoreSerializable: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub CreatePropertyStore: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -6656,13 +6656,13 @@ pub struct ITfCreatePropertyStore_Vtbl { } #[cfg(feature = "Win32_System_Com")] pub trait ITfCreatePropertyStore_Impl: windows_core::IUnknownImpl { - fn IsStoreSerializable(&self, guidprop: *const windows_core::GUID, prange: windows_core::Ref, ppropstore: windows_core::Ref) -> windows_core::Result; + fn IsStoreSerializable(&self, guidprop: *const windows_core::GUID, prange: windows_core::Ref, ppropstore: windows_core::Ref) -> windows_core::Result; fn CreatePropertyStore(&self, guidprop: *const windows_core::GUID, prange: windows_core::Ref, cb: u32, pstream: windows_core::Ref) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl ITfCreatePropertyStore_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsStoreSerializable(this: *mut core::ffi::c_void, guidprop: *const windows_core::GUID, prange: *mut core::ffi::c_void, ppropstore: *mut core::ffi::c_void, pfserializable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsStoreSerializable(this: *mut core::ffi::c_void, guidprop: *const windows_core::GUID, prange: *mut core::ffi::c_void, ppropstore: *mut core::ffi::c_void, pfserializable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfCreatePropertyStore_Impl::IsStoreSerializable(this, core::mem::transmute_copy(&guidprop), core::mem::transmute_copy(&prange), core::mem::transmute_copy(&ppropstore)) { @@ -7085,7 +7085,7 @@ impl windows_core::RuntimeName for ITfDocumentMgr {} windows_core::imp::define_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 { + pub unsafe fn GetSelectionStatus(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).GetSelectionStatus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -7101,16 +7101,16 @@ impl ITfEditRecord { #[repr(C)] pub struct ITfEditRecord_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub GetSelectionStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetSelectionStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetTextAndPropertyUpdates: unsafe extern "system" fn(*mut core::ffi::c_void, GET_TEXT_AND_PROPERTY_UPDATES_FLAGS, *const *const windows_core::GUID, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ITfEditRecord_Impl: windows_core::IUnknownImpl { - fn GetSelectionStatus(&self) -> windows_core::Result; + fn GetSelectionStatus(&self) -> windows_core::Result; fn GetTextAndPropertyUpdates(&self, dwflags: GET_TEXT_AND_PROPERTY_UPDATES_FLAGS, prgproperties: *const *const windows_core::GUID, cproperties: u32) -> windows_core::Result; } impl ITfEditRecord_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn GetSelectionStatus(this: *mut core::ffi::c_void, pfchanged: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetSelectionStatus(this: *mut core::ffi::c_void, pfchanged: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfEditRecord_Impl::GetSelectionStatus(this) { @@ -7638,13 +7638,13 @@ impl core::ops::Deref for ITfFnLMProcessor { } windows_core::imp::interface_hierarchy!(ITfFnLMProcessor, windows_core::IUnknown, ITfFunction); impl ITfFnLMProcessor { - pub unsafe fn QueryRange(&self, prange: P0, ppnewrange: *mut Option, pfaccepted: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn QueryRange(&self, prange: P0, ppnewrange: *mut Option, pfaccepted: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { unsafe { (windows_core::Interface::vtable(self).QueryRange)(windows_core::Interface::as_raw(self), prange.param().abi(), core::mem::transmute(ppnewrange), pfaccepted as _).ok() } } - pub unsafe fn QueryLangID(&self, langid: u16) -> windows_core::Result { + pub unsafe fn QueryLangID(&self, langid: u16) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).QueryLangID)(windows_core::Interface::as_raw(self), langid, &mut result__).map(|| result__) @@ -7665,7 +7665,7 @@ impl ITfFnLMProcessor { { unsafe { (windows_core::Interface::vtable(self).Reconvert)(windows_core::Interface::as_raw(self), prange.param().abi()).ok() } } - pub unsafe fn QueryKey(&self, fup: bool, vkey: super::super::Foundation::WPARAM, lparamkeydata: super::super::Foundation::LPARAM) -> windows_core::Result { + pub unsafe fn QueryKey(&self, fup: bool, vkey: super::super::Foundation::WPARAM, lparamkeydata: super::super::Foundation::LPARAM) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).QueryKey)(windows_core::Interface::as_raw(self), fup.into(), vkey, lparamkeydata, &mut result__).map(|| result__) @@ -7684,32 +7684,32 @@ impl ITfFnLMProcessor { #[repr(C)] pub struct ITfFnLMProcessor_Vtbl { pub base__: ITfFunction_Vtbl, - pub QueryRange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub QueryLangID: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub QueryRange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub QueryLangID: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetReconversion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Reconvert: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub QueryKey: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub InvokeKey: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM) -> windows_core::HRESULT, + pub QueryKey: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub InvokeKey: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM) -> windows_core::HRESULT, pub InvokeFunc: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID) -> windows_core::HRESULT, } pub trait ITfFnLMProcessor_Impl: ITfFunction_Impl { - fn QueryRange(&self, prange: windows_core::Ref, ppnewrange: windows_core::OutRef<'_, ITfRange>, pfaccepted: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn QueryLangID(&self, langid: u16) -> windows_core::Result; + fn QueryRange(&self, prange: windows_core::Ref, ppnewrange: windows_core::OutRef<'_, ITfRange>, pfaccepted: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn QueryLangID(&self, langid: u16) -> windows_core::Result; fn GetReconversion(&self, prange: windows_core::Ref) -> windows_core::Result; fn Reconvert(&self, prange: windows_core::Ref) -> windows_core::Result<()>; - fn QueryKey(&self, fup: super::super::Foundation::BOOL, vkey: super::super::Foundation::WPARAM, lparamkeydata: super::super::Foundation::LPARAM) -> windows_core::Result; - fn InvokeKey(&self, fup: super::super::Foundation::BOOL, vkey: super::super::Foundation::WPARAM, lparamkeydata: super::super::Foundation::LPARAM) -> windows_core::Result<()>; + fn QueryKey(&self, fup: windows_core::BOOL, vkey: super::super::Foundation::WPARAM, lparamkeydata: super::super::Foundation::LPARAM) -> windows_core::Result; + fn InvokeKey(&self, fup: windows_core::BOOL, vkey: super::super::Foundation::WPARAM, lparamkeydata: super::super::Foundation::LPARAM) -> windows_core::Result<()>; fn InvokeFunc(&self, pic: windows_core::Ref, refguidfunc: *const windows_core::GUID) -> windows_core::Result<()>; } impl ITfFnLMProcessor_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn QueryRange(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, ppnewrange: *mut *mut core::ffi::c_void, pfaccepted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn QueryRange(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, ppnewrange: *mut *mut core::ffi::c_void, pfaccepted: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnLMProcessor_Impl::QueryRange(this, core::mem::transmute_copy(&prange), core::mem::transmute_copy(&ppnewrange), core::mem::transmute_copy(&pfaccepted)).into() } } - unsafe extern "system" fn QueryLangID(this: *mut core::ffi::c_void, langid: u16, pfaccepted: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn QueryLangID(this: *mut core::ffi::c_void, langid: u16, pfaccepted: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfFnLMProcessor_Impl::QueryLangID(this, core::mem::transmute_copy(&langid)) { @@ -7739,7 +7739,7 @@ impl ITfFnLMProcessor_Vtbl { ITfFnLMProcessor_Impl::Reconvert(this, core::mem::transmute_copy(&prange)).into() } } - unsafe extern "system" fn QueryKey(this: *mut core::ffi::c_void, fup: super::super::Foundation::BOOL, vkey: super::super::Foundation::WPARAM, lparamkeydata: super::super::Foundation::LPARAM, pfinterested: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn QueryKey(this: *mut core::ffi::c_void, fup: windows_core::BOOL, vkey: super::super::Foundation::WPARAM, lparamkeydata: super::super::Foundation::LPARAM, pfinterested: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfFnLMProcessor_Impl::QueryKey(this, core::mem::transmute_copy(&fup), core::mem::transmute_copy(&vkey), core::mem::transmute_copy(&lparamkeydata)) { @@ -7751,7 +7751,7 @@ impl ITfFnLMProcessor_Vtbl { } } } - unsafe extern "system" fn InvokeKey(this: *mut core::ffi::c_void, fup: super::super::Foundation::BOOL, vkey: super::super::Foundation::WPARAM, lparamkeydata: super::super::Foundation::LPARAM) -> windows_core::HRESULT { + unsafe extern "system" fn InvokeKey(this: *mut core::ffi::c_void, fup: windows_core::BOOL, vkey: super::super::Foundation::WPARAM, lparamkeydata: super::super::Foundation::LPARAM) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnLMProcessor_Impl::InvokeKey(this, core::mem::transmute_copy(&fup), core::mem::transmute_copy(&vkey), core::mem::transmute_copy(&lparamkeydata)).into() @@ -7791,7 +7791,7 @@ impl ITfFnLangProfileUtil { pub unsafe fn RegisterActiveProfiles(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).RegisterActiveProfiles)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn IsProfileAvailableForLang(&self, langid: u16) -> windows_core::Result { + pub unsafe fn IsProfileAvailableForLang(&self, langid: u16) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsProfileAvailableForLang)(windows_core::Interface::as_raw(self), langid, &mut result__).map(|| result__) @@ -7802,11 +7802,11 @@ impl ITfFnLangProfileUtil { pub struct ITfFnLangProfileUtil_Vtbl { pub base__: ITfFunction_Vtbl, pub RegisterActiveProfiles: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsProfileAvailableForLang: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsProfileAvailableForLang: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITfFnLangProfileUtil_Impl: ITfFunction_Impl { fn RegisterActiveProfiles(&self) -> windows_core::Result<()>; - fn IsProfileAvailableForLang(&self, langid: u16) -> windows_core::Result; + fn IsProfileAvailableForLang(&self, langid: u16) -> windows_core::Result; } impl ITfFnLangProfileUtil_Vtbl { pub const fn new() -> Self { @@ -7816,7 +7816,7 @@ impl ITfFnLangProfileUtil_Vtbl { ITfFnLangProfileUtil_Impl::RegisterActiveProfiles(this).into() } } - unsafe extern "system" fn IsProfileAvailableForLang(this: *mut core::ffi::c_void, langid: u16, pfavailable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsProfileAvailableForLang(this: *mut core::ffi::c_void, langid: u16, pfavailable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfFnLangProfileUtil_Impl::IsProfileAvailableForLang(this, core::mem::transmute_copy(&langid)) { @@ -7848,7 +7848,7 @@ impl core::ops::Deref for ITfFnPlayBack { } windows_core::imp::interface_hierarchy!(ITfFnPlayBack, windows_core::IUnknown, ITfFunction); impl ITfFnPlayBack { - pub unsafe fn QueryRange(&self, prange: P0, ppnewrange: *mut Option, pfplayable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn QueryRange(&self, prange: P0, ppnewrange: *mut Option, pfplayable: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -7864,16 +7864,16 @@ impl ITfFnPlayBack { #[repr(C)] pub struct ITfFnPlayBack_Vtbl { pub base__: ITfFunction_Vtbl, - pub QueryRange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub QueryRange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Play: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ITfFnPlayBack_Impl: ITfFunction_Impl { - fn QueryRange(&self, prange: windows_core::Ref, ppnewrange: windows_core::OutRef<'_, ITfRange>, pfplayable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn QueryRange(&self, prange: windows_core::Ref, ppnewrange: windows_core::OutRef<'_, ITfRange>, pfplayable: *mut windows_core::BOOL) -> windows_core::Result<()>; fn Play(&self, prange: windows_core::Ref) -> windows_core::Result<()>; } impl ITfFnPlayBack_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn QueryRange(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, ppnewrange: *mut *mut core::ffi::c_void, pfplayable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn QueryRange(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, ppnewrange: *mut *mut core::ffi::c_void, pfplayable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnPlayBack_Impl::QueryRange(this, core::mem::transmute_copy(&prange), core::mem::transmute_copy(&ppnewrange), core::mem::transmute_copy(&pfplayable)).into() @@ -7957,7 +7957,7 @@ impl core::ops::Deref for ITfFnReconversion { } windows_core::imp::interface_hierarchy!(ITfFnReconversion, windows_core::IUnknown, ITfFunction); impl ITfFnReconversion { - pub unsafe fn QueryRange(&self, prange: P0, ppnewrange: *mut Option, pfconvertable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> + pub unsafe fn QueryRange(&self, prange: P0, ppnewrange: *mut Option, pfconvertable: *mut windows_core::BOOL) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -7982,18 +7982,18 @@ impl ITfFnReconversion { #[repr(C)] pub struct ITfFnReconversion_Vtbl { pub base__: ITfFunction_Vtbl, - pub QueryRange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub QueryRange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetReconversion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Reconvert: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ITfFnReconversion_Impl: ITfFunction_Impl { - fn QueryRange(&self, prange: windows_core::Ref, ppnewrange: windows_core::OutRef<'_, ITfRange>, pfconvertable: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn QueryRange(&self, prange: windows_core::Ref, ppnewrange: windows_core::OutRef<'_, ITfRange>, pfconvertable: *mut windows_core::BOOL) -> windows_core::Result<()>; fn GetReconversion(&self, prange: windows_core::Ref) -> windows_core::Result; fn Reconvert(&self, prange: windows_core::Ref) -> windows_core::Result<()>; } impl ITfFnReconversion_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn QueryRange(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, ppnewrange: *mut *mut core::ffi::c_void, pfconvertable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn QueryRange(this: *mut core::ffi::c_void, prange: *mut core::ffi::c_void, ppnewrange: *mut *mut core::ffi::c_void, pfconvertable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfFnReconversion_Impl::QueryRange(this, core::mem::transmute_copy(&prange), core::mem::transmute_copy(&ppnewrange), core::mem::transmute_copy(&pfconvertable)).into() @@ -8339,7 +8339,7 @@ pub struct ITfInputProcessorProfileMgr_Vtbl { pub EnumProfiles: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ReleaseInputProcessor: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u32) -> windows_core::HRESULT, #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] - pub RegisterProfile: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u16, *const windows_core::GUID, windows_core::PCWSTR, u32, windows_core::PCWSTR, u32, u32, super::Input::KeyboardAndMouse::HKL, u32, super::super::Foundation::BOOL, u32) -> windows_core::HRESULT, + pub RegisterProfile: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u16, *const windows_core::GUID, windows_core::PCWSTR, u32, windows_core::PCWSTR, u32, u32, super::Input::KeyboardAndMouse::HKL, u32, windows_core::BOOL, u32) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_Input_KeyboardAndMouse"))] RegisterProfile: usize, pub UnregisterProfile: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u16, *const windows_core::GUID, u32) -> windows_core::HRESULT, @@ -8355,7 +8355,7 @@ pub trait ITfInputProcessorProfileMgr_Impl: windows_core::IUnknownImpl { fn GetProfile(&self, dwprofiletype: u32, langid: u16, clsid: *const windows_core::GUID, guidprofile: *const windows_core::GUID, hkl: super::Input::KeyboardAndMouse::HKL, pprofile: *mut TF_INPUTPROCESSORPROFILE) -> windows_core::Result<()>; fn EnumProfiles(&self, langid: u16) -> windows_core::Result; fn ReleaseInputProcessor(&self, rclsid: *const windows_core::GUID, dwflags: u32) -> windows_core::Result<()>; - fn RegisterProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pchdesc: &windows_core::PCWSTR, cchdesc: u32, pchiconfile: &windows_core::PCWSTR, cchfile: u32, uiconindex: u32, hklsubstitute: super::Input::KeyboardAndMouse::HKL, dwpreferredlayout: u32, benabledbydefault: super::super::Foundation::BOOL, dwflags: u32) -> windows_core::Result<()>; + fn RegisterProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pchdesc: &windows_core::PCWSTR, cchdesc: u32, pchiconfile: &windows_core::PCWSTR, cchfile: u32, uiconindex: u32, hklsubstitute: super::Input::KeyboardAndMouse::HKL, dwpreferredlayout: u32, benabledbydefault: windows_core::BOOL, dwflags: u32) -> windows_core::Result<()>; fn UnregisterProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, dwflags: u32) -> windows_core::Result<()>; fn GetActiveProfile(&self, catid: *const windows_core::GUID, pprofile: *mut TF_INPUTPROCESSORPROFILE) -> windows_core::Result<()>; } @@ -8398,7 +8398,7 @@ impl ITfInputProcessorProfileMgr_Vtbl { ITfInputProcessorProfileMgr_Impl::ReleaseInputProcessor(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&dwflags)).into() } } - unsafe extern "system" fn RegisterProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pchdesc: windows_core::PCWSTR, cchdesc: u32, pchiconfile: windows_core::PCWSTR, cchfile: u32, uiconindex: u32, hklsubstitute: super::Input::KeyboardAndMouse::HKL, dwpreferredlayout: u32, benabledbydefault: super::super::Foundation::BOOL, dwflags: u32) -> windows_core::HRESULT { + unsafe extern "system" fn RegisterProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pchdesc: windows_core::PCWSTR, cchdesc: u32, pchiconfile: windows_core::PCWSTR, cchfile: u32, uiconindex: u32, hklsubstitute: super::Input::KeyboardAndMouse::HKL, dwpreferredlayout: u32, benabledbydefault: windows_core::BOOL, dwflags: u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfileMgr_Impl::RegisterProfile(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&guidprofile), core::mem::transmute(&pchdesc), core::mem::transmute_copy(&cchdesc), core::mem::transmute(&pchiconfile), core::mem::transmute_copy(&cchfile), core::mem::transmute_copy(&uiconindex), core::mem::transmute_copy(&hklsubstitute), core::mem::transmute_copy(&dwpreferredlayout), core::mem::transmute_copy(&benabledbydefault), core::mem::transmute_copy(&dwflags)).into() @@ -8541,7 +8541,7 @@ impl ITfInputProcessorProfiles { pub unsafe fn EnableLanguageProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).EnableLanguageProfile)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, fenable.into()).ok() } } - pub unsafe fn IsEnabledLanguageProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID) -> windows_core::Result { + pub unsafe fn IsEnabledLanguageProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsEnabledLanguageProfile)(windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, &mut result__).map(|| result__) @@ -8575,9 +8575,9 @@ pub struct ITfInputProcessorProfiles_Vtbl { pub ChangeCurrentLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, u16) -> windows_core::HRESULT, pub GetLanguageList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut u16, *mut u32) -> windows_core::HRESULT, pub EnumLanguageProfiles: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub EnableLanguageProfile: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u16, *const windows_core::GUID, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsEnabledLanguageProfile: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u16, *const windows_core::GUID, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub EnableLanguageProfileByDefault: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u16, *const windows_core::GUID, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableLanguageProfile: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u16, *const windows_core::GUID, windows_core::BOOL) -> windows_core::HRESULT, + pub IsEnabledLanguageProfile: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u16, *const windows_core::GUID, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub EnableLanguageProfileByDefault: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u16, *const windows_core::GUID, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(feature = "Win32_UI_Input_KeyboardAndMouse")] pub SubstituteKeyboardLayout: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, u16, *const windows_core::GUID, super::Input::KeyboardAndMouse::HKL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_Input_KeyboardAndMouse"))] @@ -8599,9 +8599,9 @@ pub trait ITfInputProcessorProfiles_Impl: windows_core::IUnknownImpl { fn ChangeCurrentLanguage(&self, langid: u16) -> windows_core::Result<()>; fn GetLanguageList(&self, pplangid: *mut *mut u16, pulcount: *mut u32) -> windows_core::Result<()>; fn EnumLanguageProfiles(&self, langid: u16) -> windows_core::Result; - fn EnableLanguageProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn IsEnabledLanguageProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID) -> windows_core::Result; - fn EnableLanguageProfileByDefault(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EnableLanguageProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: windows_core::BOOL) -> windows_core::Result<()>; + fn IsEnabledLanguageProfile(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID) -> windows_core::Result; + fn EnableLanguageProfileByDefault(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: windows_core::BOOL) -> windows_core::Result<()>; fn SubstituteKeyboardLayout(&self, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, hkl: super::Input::KeyboardAndMouse::HKL) -> windows_core::Result<()>; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Input_KeyboardAndMouse"))] @@ -8715,13 +8715,13 @@ impl ITfInputProcessorProfiles_Vtbl { } } } - unsafe extern "system" fn EnableLanguageProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableLanguageProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfiles_Impl::EnableLanguageProfile(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&guidprofile), core::mem::transmute_copy(&fenable)).into() } } - unsafe extern "system" fn IsEnabledLanguageProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pfenable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsEnabledLanguageProfile(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, pfenable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfInputProcessorProfiles_Impl::IsEnabledLanguageProfile(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&guidprofile)) { @@ -8733,7 +8733,7 @@ impl ITfInputProcessorProfiles_Vtbl { } } } - unsafe extern "system" fn EnableLanguageProfileByDefault(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableLanguageProfileByDefault(this: *mut core::ffi::c_void, rclsid: *const windows_core::GUID, langid: u16, guidprofile: *const windows_core::GUID, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfInputProcessorProfiles_Impl::EnableLanguageProfileByDefault(this, core::mem::transmute_copy(&rclsid), core::mem::transmute_copy(&langid), core::mem::transmute_copy(&guidprofile), core::mem::transmute_copy(&fenable)).into() @@ -9060,13 +9060,13 @@ impl ITfIntegratableCandidateListUIElement { (windows_core::Interface::vtable(self).GetSelectionStyle)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn OnKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { + pub unsafe fn OnKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OnKeyDown)(windows_core::Interface::as_raw(self), wparam, lparam, &mut result__).map(|| result__) } } - pub unsafe fn ShowCandidateNumbers(&self) -> windows_core::Result { + pub unsafe fn ShowCandidateNumbers(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShowCandidateNumbers)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -9081,15 +9081,15 @@ pub struct ITfIntegratableCandidateListUIElement_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetIntegrationStyle: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> windows_core::HRESULT, pub GetSelectionStyle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut TfIntegratableCandidateListSelectionStyle) -> windows_core::HRESULT, - pub OnKeyDown: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub ShowCandidateNumbers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnKeyDown: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub ShowCandidateNumbers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub FinalizeExactCompositionString: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ITfIntegratableCandidateListUIElement_Impl: windows_core::IUnknownImpl { fn SetIntegrationStyle(&self, guidintegrationstyle: &windows_core::GUID) -> windows_core::Result<()>; fn GetSelectionStyle(&self) -> windows_core::Result; - fn OnKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; - fn ShowCandidateNumbers(&self) -> windows_core::Result; + fn OnKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; + fn ShowCandidateNumbers(&self) -> windows_core::Result; fn FinalizeExactCompositionString(&self) -> windows_core::Result<()>; } impl ITfIntegratableCandidateListUIElement_Vtbl { @@ -9112,7 +9112,7 @@ impl ITfIntegratableCandidateListUIElement_Vtbl { } } } - unsafe extern "system" fn OnKeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnKeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfIntegratableCandidateListUIElement_Impl::OnKeyDown(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { @@ -9124,7 +9124,7 @@ impl ITfIntegratableCandidateListUIElement_Vtbl { } } } - unsafe extern "system" fn ShowCandidateNumbers(this: *mut core::ffi::c_void, pfshow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ShowCandidateNumbers(this: *mut core::ffi::c_void, pfshow: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfIntegratableCandidateListUIElement_Impl::ShowCandidateNumbers(this) { @@ -9162,7 +9162,7 @@ impl ITfKeyEventSink { pub unsafe fn OnSetFocus(&self, fforeground: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).OnSetFocus)(windows_core::Interface::as_raw(self), fforeground.into()).ok() } } - pub unsafe fn OnTestKeyDown(&self, pic: P0, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result + pub unsafe fn OnTestKeyDown(&self, pic: P0, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result where P0: windows_core::Param, { @@ -9171,7 +9171,7 @@ impl ITfKeyEventSink { (windows_core::Interface::vtable(self).OnTestKeyDown)(windows_core::Interface::as_raw(self), pic.param().abi(), wparam, lparam, &mut result__).map(|| result__) } } - pub unsafe fn OnTestKeyUp(&self, pic: P0, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result + pub unsafe fn OnTestKeyUp(&self, pic: P0, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result where P0: windows_core::Param, { @@ -9180,7 +9180,7 @@ impl ITfKeyEventSink { (windows_core::Interface::vtable(self).OnTestKeyUp)(windows_core::Interface::as_raw(self), pic.param().abi(), wparam, lparam, &mut result__).map(|| result__) } } - pub unsafe fn OnKeyDown(&self, pic: P0, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result + pub unsafe fn OnKeyDown(&self, pic: P0, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result where P0: windows_core::Param, { @@ -9189,7 +9189,7 @@ impl ITfKeyEventSink { (windows_core::Interface::vtable(self).OnKeyDown)(windows_core::Interface::as_raw(self), pic.param().abi(), wparam, lparam, &mut result__).map(|| result__) } } - pub unsafe fn OnKeyUp(&self, pic: P0, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result + pub unsafe fn OnKeyUp(&self, pic: P0, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result where P0: windows_core::Param, { @@ -9198,7 +9198,7 @@ impl ITfKeyEventSink { (windows_core::Interface::vtable(self).OnKeyUp)(windows_core::Interface::as_raw(self), pic.param().abi(), wparam, lparam, &mut result__).map(|| result__) } } - pub unsafe fn OnPreservedKey(&self, pic: P0, rguid: *const windows_core::GUID) -> windows_core::Result + pub unsafe fn OnPreservedKey(&self, pic: P0, rguid: *const windows_core::GUID) -> windows_core::Result where P0: windows_core::Param, { @@ -9211,30 +9211,30 @@ impl ITfKeyEventSink { #[repr(C)] pub struct ITfKeyEventSink_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnSetFocus: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OnTestKeyDown: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OnTestKeyUp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OnKeyDown: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OnKeyUp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub OnPreservedKey: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnSetFocus: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub OnTestKeyDown: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OnTestKeyUp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OnKeyDown: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OnKeyUp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub OnPreservedKey: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITfKeyEventSink_Impl: windows_core::IUnknownImpl { - fn OnSetFocus(&self, fforeground: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn OnTestKeyDown(&self, pic: windows_core::Ref, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; - fn OnTestKeyUp(&self, pic: windows_core::Ref, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; - fn OnKeyDown(&self, pic: windows_core::Ref, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; - fn OnKeyUp(&self, pic: windows_core::Ref, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; - fn OnPreservedKey(&self, pic: windows_core::Ref, rguid: *const windows_core::GUID) -> windows_core::Result; + fn OnSetFocus(&self, fforeground: windows_core::BOOL) -> windows_core::Result<()>; + fn OnTestKeyDown(&self, pic: windows_core::Ref, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; + fn OnTestKeyUp(&self, pic: windows_core::Ref, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; + fn OnKeyDown(&self, pic: windows_core::Ref, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; + fn OnKeyUp(&self, pic: windows_core::Ref, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; + fn OnPreservedKey(&self, pic: windows_core::Ref, rguid: *const windows_core::GUID) -> windows_core::Result; } impl ITfKeyEventSink_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnSetFocus(this: *mut core::ffi::c_void, fforeground: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnSetFocus(this: *mut core::ffi::c_void, fforeground: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfKeyEventSink_Impl::OnSetFocus(this, core::mem::transmute_copy(&fforeground)).into() } } - unsafe extern "system" fn OnTestKeyDown(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnTestKeyDown(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeyEventSink_Impl::OnTestKeyDown(this, core::mem::transmute_copy(&pic), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { @@ -9246,7 +9246,7 @@ impl ITfKeyEventSink_Vtbl { } } } - unsafe extern "system" fn OnTestKeyUp(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnTestKeyUp(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeyEventSink_Impl::OnTestKeyUp(this, core::mem::transmute_copy(&pic), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { @@ -9258,7 +9258,7 @@ impl ITfKeyEventSink_Vtbl { } } } - unsafe extern "system" fn OnKeyDown(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnKeyDown(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeyEventSink_Impl::OnKeyDown(this, core::mem::transmute_copy(&pic), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { @@ -9270,7 +9270,7 @@ impl ITfKeyEventSink_Vtbl { } } } - unsafe extern "system" fn OnKeyUp(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnKeyUp(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeyEventSink_Impl::OnKeyUp(this, core::mem::transmute_copy(&pic), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { @@ -9282,7 +9282,7 @@ impl ITfKeyEventSink_Vtbl { } } } - unsafe extern "system" fn OnPreservedKey(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnPreservedKey(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pfeaten: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeyEventSink_Impl::OnPreservedKey(this, core::mem::transmute_copy(&pic), core::mem::transmute_copy(&rguid)) { @@ -9372,25 +9372,25 @@ impl ITfKeystrokeMgr { (windows_core::Interface::vtable(self).GetForeground)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn TestKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { + pub unsafe fn TestKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).TestKeyDown)(windows_core::Interface::as_raw(self), wparam, lparam, &mut result__).map(|| result__) } } - pub unsafe fn TestKeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { + pub unsafe fn TestKeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).TestKeyUp)(windows_core::Interface::as_raw(self), wparam, lparam, &mut result__).map(|| result__) } } - pub unsafe fn KeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { + pub unsafe fn KeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).KeyDown)(windows_core::Interface::as_raw(self), wparam, lparam, &mut result__).map(|| result__) } } - pub unsafe fn KeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { + pub unsafe fn KeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).KeyUp)(windows_core::Interface::as_raw(self), wparam, lparam, &mut result__).map(|| result__) @@ -9405,7 +9405,7 @@ impl ITfKeystrokeMgr { (windows_core::Interface::vtable(self).GetPreservedKey)(windows_core::Interface::as_raw(self), pic.param().abi(), pprekey, &mut result__).map(|| result__) } } - pub unsafe fn IsPreservedKey(&self, rguid: *const windows_core::GUID, pprekey: *const TF_PRESERVEDKEY) -> windows_core::Result { + pub unsafe fn IsPreservedKey(&self, rguid: *const windows_core::GUID, pprekey: *const TF_PRESERVEDKEY) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsPreservedKey)(windows_core::Interface::as_raw(self), rguid, pprekey, &mut result__).map(|| result__) @@ -9426,7 +9426,7 @@ impl ITfKeystrokeMgr { (windows_core::Interface::vtable(self).GetPreservedKeyDescription)(windows_core::Interface::as_raw(self), rguid, &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn SimulatePreservedKey(&self, pic: P0, rguid: *const windows_core::GUID) -> windows_core::Result + pub unsafe fn SimulatePreservedKey(&self, pic: P0, rguid: *const windows_core::GUID) -> windows_core::Result where P0: windows_core::Param, { @@ -9439,40 +9439,40 @@ impl ITfKeystrokeMgr { #[repr(C)] pub struct ITfKeystrokeMgr_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub AdviseKeyEventSink: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AdviseKeyEventSink: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub UnadviseKeyEventSink: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetForeground: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - pub TestKeyDown: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub TestKeyUp: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub KeyDown: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub KeyUp: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub TestKeyDown: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub TestKeyUp: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub KeyDown: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub KeyUp: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetPreservedKey: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const TF_PRESERVEDKEY, *mut windows_core::GUID) -> windows_core::HRESULT, - pub IsPreservedKey: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const TF_PRESERVEDKEY, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsPreservedKey: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const TF_PRESERVEDKEY, *mut windows_core::BOOL) -> windows_core::HRESULT, pub PreserveKey: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_core::GUID, *const TF_PRESERVEDKEY, windows_core::PCWSTR, u32) -> windows_core::HRESULT, pub UnpreserveKey: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const TF_PRESERVEDKEY) -> windows_core::HRESULT, pub SetPreservedKeyDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, windows_core::PCWSTR, u32) -> windows_core::HRESULT, pub GetPreservedKeyDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub SimulatePreservedKey: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub SimulatePreservedKey: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *const windows_core::GUID, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITfKeystrokeMgr_Impl: windows_core::IUnknownImpl { - fn AdviseKeyEventSink(&self, tid: u32, psink: windows_core::Ref, fforeground: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn AdviseKeyEventSink(&self, tid: u32, psink: windows_core::Ref, fforeground: windows_core::BOOL) -> windows_core::Result<()>; fn UnadviseKeyEventSink(&self, tid: u32) -> windows_core::Result<()>; fn GetForeground(&self) -> windows_core::Result; - fn TestKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; - fn TestKeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; - fn KeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; - fn KeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; + fn TestKeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; + fn TestKeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; + fn KeyDown(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; + fn KeyUp(&self, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; fn GetPreservedKey(&self, pic: windows_core::Ref, pprekey: *const TF_PRESERVEDKEY) -> windows_core::Result; - fn IsPreservedKey(&self, rguid: *const windows_core::GUID, pprekey: *const TF_PRESERVEDKEY) -> windows_core::Result; + fn IsPreservedKey(&self, rguid: *const windows_core::GUID, pprekey: *const TF_PRESERVEDKEY) -> windows_core::Result; fn PreserveKey(&self, tid: u32, rguid: *const windows_core::GUID, prekey: *const TF_PRESERVEDKEY, pchdesc: &windows_core::PCWSTR, cchdesc: u32) -> windows_core::Result<()>; fn UnpreserveKey(&self, rguid: *const windows_core::GUID, pprekey: *const TF_PRESERVEDKEY) -> windows_core::Result<()>; fn SetPreservedKeyDescription(&self, rguid: *const windows_core::GUID, pchdesc: &windows_core::PCWSTR, cchdesc: u32) -> windows_core::Result<()>; fn GetPreservedKeyDescription(&self, rguid: *const windows_core::GUID) -> windows_core::Result; - fn SimulatePreservedKey(&self, pic: windows_core::Ref, rguid: *const windows_core::GUID) -> windows_core::Result; + fn SimulatePreservedKey(&self, pic: windows_core::Ref, rguid: *const windows_core::GUID) -> windows_core::Result; } impl ITfKeystrokeMgr_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn AdviseKeyEventSink(this: *mut core::ffi::c_void, tid: u32, psink: *mut core::ffi::c_void, fforeground: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AdviseKeyEventSink(this: *mut core::ffi::c_void, tid: u32, psink: *mut core::ffi::c_void, fforeground: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfKeystrokeMgr_Impl::AdviseKeyEventSink(this, core::mem::transmute_copy(&tid), core::mem::transmute_copy(&psink), core::mem::transmute_copy(&fforeground)).into() @@ -9496,7 +9496,7 @@ impl ITfKeystrokeMgr_Vtbl { } } } - unsafe extern "system" fn TestKeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn TestKeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeystrokeMgr_Impl::TestKeyDown(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { @@ -9508,7 +9508,7 @@ impl ITfKeystrokeMgr_Vtbl { } } } - unsafe extern "system" fn TestKeyUp(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn TestKeyUp(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeystrokeMgr_Impl::TestKeyUp(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { @@ -9520,7 +9520,7 @@ impl ITfKeystrokeMgr_Vtbl { } } } - unsafe extern "system" fn KeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn KeyDown(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeystrokeMgr_Impl::KeyDown(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { @@ -9532,7 +9532,7 @@ impl ITfKeystrokeMgr_Vtbl { } } } - unsafe extern "system" fn KeyUp(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn KeyUp(this: *mut core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeystrokeMgr_Impl::KeyUp(this, core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { @@ -9556,7 +9556,7 @@ impl ITfKeystrokeMgr_Vtbl { } } } - unsafe extern "system" fn IsPreservedKey(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pprekey: *const TF_PRESERVEDKEY, pfregistered: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsPreservedKey(this: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pprekey: *const TF_PRESERVEDKEY, pfregistered: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeystrokeMgr_Impl::IsPreservedKey(this, core::mem::transmute_copy(&rguid), core::mem::transmute_copy(&pprekey)) { @@ -9598,7 +9598,7 @@ impl ITfKeystrokeMgr_Vtbl { } } } - unsafe extern "system" fn SimulatePreservedKey(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SimulatePreservedKey(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, rguid: *const windows_core::GUID, pfeaten: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfKeystrokeMgr_Impl::SimulatePreservedKey(this, core::mem::transmute_copy(&pic), core::mem::transmute_copy(&rguid)) { @@ -9636,7 +9636,7 @@ impl windows_core::RuntimeName for ITfKeystrokeMgr {} windows_core::imp::define_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 { + pub unsafe fn QueryType(&self, rguidtype: *const windows_core::GUID) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).QueryType)(windows_core::Interface::as_raw(self), rguidtype, &mut result__).map(|| result__) @@ -9652,16 +9652,16 @@ impl ITfLMLattice { #[repr(C)] pub struct ITfLMLattice_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub QueryType: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub QueryType: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut windows_core::BOOL) -> windows_core::HRESULT, pub EnumLatticeElements: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ITfLMLattice_Impl: windows_core::IUnknownImpl { - fn QueryType(&self, rguidtype: *const windows_core::GUID) -> windows_core::Result; + fn QueryType(&self, rguidtype: *const windows_core::GUID) -> windows_core::Result; fn EnumLatticeElements(&self, dwframestart: u32, rguidtype: *const windows_core::GUID) -> windows_core::Result; } impl ITfLMLattice_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn QueryType(this: *mut core::ffi::c_void, rguidtype: *const windows_core::GUID, pfsupported: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn QueryType(this: *mut core::ffi::c_void, rguidtype: *const windows_core::GUID, pfsupported: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLMLattice_Impl::QueryType(this, core::mem::transmute_copy(&rguidtype)) { @@ -9825,13 +9825,13 @@ pub struct ITfLangBarItem_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut TF_LANGBARITEMINFO) -> windows_core::HRESULT, pub GetStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub Show: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Show: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub GetTooltipString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ITfLangBarItem_Impl: windows_core::IUnknownImpl { fn GetInfo(&self, pinfo: *mut TF_LANGBARITEMINFO) -> windows_core::Result<()>; fn GetStatus(&self) -> windows_core::Result; - fn Show(&self, fshow: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Show(&self, fshow: windows_core::BOOL) -> windows_core::Result<()>; fn GetTooltipString(&self) -> windows_core::Result; } impl ITfLangBarItem_Vtbl { @@ -9854,7 +9854,7 @@ impl ITfLangBarItem_Vtbl { } } } - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, fshow: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarItem_Impl::Show(this, core::mem::transmute_copy(&fshow)).into() @@ -10578,7 +10578,7 @@ pub struct ITfLangBarMgr_Vtbl { pub GetThreadMarshalInterface: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetThreadLangBarItemMgr: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetInputProcessorProfiles: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub RestoreLastFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub RestoreLastFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, windows_core::BOOL) -> windows_core::HRESULT, pub SetModalInput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32) -> windows_core::HRESULT, pub ShowFloating: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetShowFloatingStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -10589,7 +10589,7 @@ pub trait ITfLangBarMgr_Impl: windows_core::IUnknownImpl { fn GetThreadMarshalInterface(&self, dwthreadid: u32, dwtype: u32, riid: *const windows_core::GUID) -> windows_core::Result; fn GetThreadLangBarItemMgr(&self, dwthreadid: u32, pplbi: windows_core::OutRef<'_, ITfLangBarItemMgr>, pdwthreadid: *mut u32) -> windows_core::Result<()>; fn GetInputProcessorProfiles(&self, dwthreadid: u32, ppaip: windows_core::OutRef<'_, ITfInputProcessorProfiles>, pdwthreadid: *mut u32) -> windows_core::Result<()>; - fn RestoreLastFocus(&self, pdwthreadid: *mut u32, fprev: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn RestoreLastFocus(&self, pdwthreadid: *mut u32, fprev: windows_core::BOOL) -> windows_core::Result<()>; fn SetModalInput(&self, psink: windows_core::Ref, dwthreadid: u32, dwflags: u32) -> windows_core::Result<()>; fn ShowFloating(&self, dwflags: u32) -> windows_core::Result<()>; fn GetShowFloatingStatus(&self) -> windows_core::Result; @@ -10632,7 +10632,7 @@ impl ITfLangBarMgr_Vtbl { ITfLangBarMgr_Impl::GetInputProcessorProfiles(this, core::mem::transmute_copy(&dwthreadid), core::mem::transmute_copy(&ppaip), core::mem::transmute_copy(&pdwthreadid)).into() } } - unsafe extern "system" fn RestoreLastFocus(this: *mut core::ffi::c_void, pdwthreadid: *mut u32, fprev: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn RestoreLastFocus(this: *mut core::ffi::c_void, pdwthreadid: *mut u32, fprev: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfLangBarMgr_Impl::RestoreLastFocus(this, core::mem::transmute_copy(&pdwthreadid), core::mem::transmute_copy(&fprev)).into() @@ -10683,7 +10683,7 @@ impl windows_core::RuntimeName for ITfLangBarMgr {} windows_core::imp::define_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 { + pub unsafe fn OnLanguageChange(&self, langid: u16) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OnLanguageChange)(windows_core::Interface::as_raw(self), langid, &mut result__).map(|| result__) @@ -10696,16 +10696,16 @@ impl ITfLanguageProfileNotifySink { #[repr(C)] pub struct ITfLanguageProfileNotifySink_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnLanguageChange: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnLanguageChange: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut windows_core::BOOL) -> windows_core::HRESULT, pub OnLanguageChanged: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ITfLanguageProfileNotifySink_Impl: windows_core::IUnknownImpl { - fn OnLanguageChange(&self, langid: u16) -> windows_core::Result; + fn OnLanguageChange(&self, langid: u16) -> windows_core::Result; fn OnLanguageChanged(&self) -> windows_core::Result<()>; } impl ITfLanguageProfileNotifySink_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnLanguageChange(this: *mut core::ffi::c_void, langid: u16, pfaccept: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnLanguageChange(this: *mut core::ffi::c_void, langid: u16, pfaccept: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfLanguageProfileNotifySink_Impl::OnLanguageChange(this, core::mem::transmute_copy(&langid)) { @@ -10820,19 +10820,19 @@ windows_core::imp::define_interface!(ITfMessagePump, ITfMessagePump_Vtbl, 0x8f1b windows_core::imp::interface_hierarchy!(ITfMessagePump, windows_core::IUnknown); impl ITfMessagePump { #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub unsafe fn PeekMessageA(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn PeekMessageA(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).PeekMessageA)(windows_core::Interface::as_raw(self), pmsg as _, hwnd, wmsgfiltermin, wmsgfiltermax, wremovemsg, pfresult as _).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub unsafe fn GetMessageA(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetMessageA(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetMessageA)(windows_core::Interface::as_raw(self), pmsg as _, hwnd, wmsgfiltermin, wmsgfiltermax, pfresult as _).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub unsafe fn PeekMessageW(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn PeekMessageW(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).PeekMessageW)(windows_core::Interface::as_raw(self), pmsg as _, hwnd, wmsgfiltermin, wmsgfiltermax, wremovemsg, pfresult as _).ok() } } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub unsafe fn GetMessageW(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()> { + pub unsafe fn GetMessageW(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).GetMessageW)(windows_core::Interface::as_raw(self), pmsg as _, hwnd, wmsgfiltermin, wmsgfiltermax, pfresult as _).ok() } } } @@ -10840,51 +10840,51 @@ impl ITfMessagePump { pub struct ITfMessagePump_Vtbl { pub base__: windows_core::IUnknown_Vtbl, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub PeekMessageA: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::WindowsAndMessaging::MSG, super::super::Foundation::HWND, u32, u32, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub PeekMessageA: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::WindowsAndMessaging::MSG, super::super::Foundation::HWND, u32, u32, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] PeekMessageA: usize, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub GetMessageA: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::WindowsAndMessaging::MSG, super::super::Foundation::HWND, u32, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetMessageA: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::WindowsAndMessaging::MSG, super::super::Foundation::HWND, u32, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] GetMessageA: usize, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub PeekMessageW: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::WindowsAndMessaging::MSG, super::super::Foundation::HWND, u32, u32, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub PeekMessageW: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::WindowsAndMessaging::MSG, super::super::Foundation::HWND, u32, u32, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] PeekMessageW: usize, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub GetMessageW: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::WindowsAndMessaging::MSG, super::super::Foundation::HWND, u32, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub GetMessageW: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::WindowsAndMessaging::MSG, super::super::Foundation::HWND, u32, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] GetMessageW: usize, } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub trait ITfMessagePump_Impl: windows_core::IUnknownImpl { - fn PeekMessageA(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetMessageA(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn PeekMessageW(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn GetMessageW(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn PeekMessageA(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn GetMessageA(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn PeekMessageW(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut windows_core::BOOL) -> windows_core::Result<()>; + fn GetMessageW(&self, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ITfMessagePump_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn PeekMessageA(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn PeekMessageA(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfMessagePump_Impl::PeekMessageA(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&wmsgfiltermin), core::mem::transmute_copy(&wmsgfiltermax), core::mem::transmute_copy(&wremovemsg), core::mem::transmute_copy(&pfresult)).into() } } - unsafe extern "system" fn GetMessageA(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetMessageA(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfMessagePump_Impl::GetMessageA(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&wmsgfiltermin), core::mem::transmute_copy(&wmsgfiltermax), core::mem::transmute_copy(&pfresult)).into() } } - unsafe extern "system" fn PeekMessageW(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn PeekMessageW(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: u32, pfresult: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfMessagePump_Impl::PeekMessageW(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&wmsgfiltermin), core::mem::transmute_copy(&wmsgfiltermax), core::mem::transmute_copy(&wremovemsg), core::mem::transmute_copy(&pfresult)).into() } } - unsafe extern "system" fn GetMessageW(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn GetMessageW(this: *mut core::ffi::c_void, pmsg: *mut super::WindowsAndMessaging::MSG, hwnd: super::super::Foundation::HWND, wmsgfiltermin: u32, wmsgfiltermax: u32, pfresult: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfMessagePump_Impl::GetMessageW(this, core::mem::transmute_copy(&pmsg), core::mem::transmute_copy(&hwnd), core::mem::transmute_copy(&wmsgfiltermin), core::mem::transmute_copy(&wmsgfiltermax), core::mem::transmute_copy(&pfresult)).into() @@ -10907,7 +10907,7 @@ impl windows_core::RuntimeName for ITfMessagePump {} windows_core::imp::define_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 { + pub unsafe fn OnMouseEvent(&self, uedge: u32, uquadrant: u32, dwbtnstatus: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OnMouseEvent)(windows_core::Interface::as_raw(self), uedge, uquadrant, dwbtnstatus, &mut result__).map(|| result__) @@ -10917,14 +10917,14 @@ impl ITfMouseSink { #[repr(C)] pub struct ITfMouseSink_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnMouseEvent: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnMouseEvent: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITfMouseSink_Impl: windows_core::IUnknownImpl { - fn OnMouseEvent(&self, uedge: u32, uquadrant: u32, dwbtnstatus: u32) -> windows_core::Result; + fn OnMouseEvent(&self, uedge: u32, uquadrant: u32, dwbtnstatus: u32) -> windows_core::Result; } impl ITfMouseSink_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnMouseEvent(this: *mut core::ffi::c_void, uedge: u32, uquadrant: u32, dwbtnstatus: u32, pfeaten: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnMouseEvent(this: *mut core::ffi::c_void, uedge: u32, uquadrant: u32, dwbtnstatus: u32, pfeaten: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfMouseSink_Impl::OnMouseEvent(this, core::mem::transmute_copy(&uedge), core::mem::transmute_copy(&uquadrant), core::mem::transmute_copy(&dwbtnstatus)) { @@ -11252,7 +11252,7 @@ impl ITfPropertyStore { (windows_core::Interface::vtable(self).GetData)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn OnTextUpdated(&self, dwflags: u32, prangenew: P1) -> windows_core::Result + pub unsafe fn OnTextUpdated(&self, dwflags: u32, prangenew: P1) -> windows_core::Result where P1: windows_core::Param, { @@ -11261,7 +11261,7 @@ impl ITfPropertyStore { (windows_core::Interface::vtable(self).OnTextUpdated)(windows_core::Interface::as_raw(self), dwflags, prangenew.param().abi(), &mut result__).map(|| result__) } } - pub unsafe fn Shrink(&self, prangenew: P0) -> windows_core::Result + pub unsafe fn Shrink(&self, prangenew: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -11312,8 +11312,8 @@ pub struct ITfPropertyStore_Vtbl { pub GetData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetData: usize, - pub OnTextUpdated: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub Shrink: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnTextUpdated: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub Shrink: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Divide: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetPropertyRangeCreator: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, @@ -11327,8 +11327,8 @@ pub trait ITfPropertyStore_Impl: windows_core::IUnknownImpl { fn GetType(&self) -> windows_core::Result; fn GetDataType(&self) -> windows_core::Result; fn GetData(&self) -> windows_core::Result; - fn OnTextUpdated(&self, dwflags: u32, prangenew: windows_core::Ref) -> windows_core::Result; - fn Shrink(&self, prangenew: windows_core::Ref) -> windows_core::Result; + fn OnTextUpdated(&self, dwflags: u32, prangenew: windows_core::Ref) -> windows_core::Result; + fn Shrink(&self, prangenew: windows_core::Ref) -> windows_core::Result; fn Divide(&self, prangethis: windows_core::Ref, prangenew: windows_core::Ref) -> windows_core::Result; fn Clone(&self) -> windows_core::Result; fn GetPropertyRangeCreator(&self) -> windows_core::Result; @@ -11373,7 +11373,7 @@ impl ITfPropertyStore_Vtbl { } } } - unsafe extern "system" fn OnTextUpdated(this: *mut core::ffi::c_void, dwflags: u32, prangenew: *mut core::ffi::c_void, pfaccept: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnTextUpdated(this: *mut core::ffi::c_void, dwflags: u32, prangenew: *mut core::ffi::c_void, pfaccept: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfPropertyStore_Impl::OnTextUpdated(this, core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&prangenew)) { @@ -11385,7 +11385,7 @@ impl ITfPropertyStore_Vtbl { } } } - unsafe extern "system" fn Shrink(this: *mut core::ffi::c_void, prangenew: *mut core::ffi::c_void, pffree: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Shrink(this: *mut core::ffi::c_void, prangenew: *mut core::ffi::c_void, pffree: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfPropertyStore_Impl::Shrink(this, core::mem::transmute_copy(&prangenew)) { @@ -11468,7 +11468,7 @@ windows_core::imp::define_interface!(ITfQueryEmbedded, ITfQueryEmbedded_Vtbl, 0x windows_core::imp::interface_hierarchy!(ITfQueryEmbedded, windows_core::IUnknown); impl ITfQueryEmbedded { #[cfg(feature = "Win32_System_Com")] - pub unsafe fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result { + pub unsafe fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).QueryInsertEmbedded)(windows_core::Interface::as_raw(self), pguidservice, pformatetc, &mut result__).map(|| result__) @@ -11479,18 +11479,18 @@ impl ITfQueryEmbedded { pub struct ITfQueryEmbedded_Vtbl { pub base__: windows_core::IUnknown_Vtbl, #[cfg(feature = "Win32_System_Com")] - pub QueryInsertEmbedded: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const super::super::System::Com::FORMATETC, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub QueryInsertEmbedded: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *const super::super::System::Com::FORMATETC, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] QueryInsertEmbedded: usize, } #[cfg(feature = "Win32_System_Com")] pub trait ITfQueryEmbedded_Impl: windows_core::IUnknownImpl { - fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result; + fn QueryInsertEmbedded(&self, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl ITfQueryEmbedded_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn QueryInsertEmbedded(this: *mut core::ffi::c_void, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC, pfinsertable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn QueryInsertEmbedded(this: *mut core::ffi::c_void, pguidservice: *const windows_core::GUID, pformatetc: *const super::super::System::Com::FORMATETC, pfinsertable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfQueryEmbedded_Impl::QueryInsertEmbedded(this, core::mem::transmute_copy(&pguidservice), core::mem::transmute_copy(&pformatetc)) { @@ -11557,19 +11557,19 @@ impl ITfRange { { unsafe { (windows_core::Interface::vtable(self).ShiftEndToRange)(windows_core::Interface::as_raw(self), ec, prange.param().abi(), apos).ok() } } - pub unsafe fn ShiftStartRegion(&self, ec: u32, dir: TfShiftDir) -> windows_core::Result { + pub unsafe fn ShiftStartRegion(&self, ec: u32, dir: TfShiftDir) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShiftStartRegion)(windows_core::Interface::as_raw(self), ec, dir, &mut result__).map(|| result__) } } - pub unsafe fn ShiftEndRegion(&self, ec: u32, dir: TfShiftDir) -> windows_core::Result { + pub unsafe fn ShiftEndRegion(&self, ec: u32, dir: TfShiftDir) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).ShiftEndRegion)(windows_core::Interface::as_raw(self), ec, dir, &mut result__).map(|| result__) } } - pub unsafe fn IsEmpty(&self, ec: u32) -> windows_core::Result { + pub unsafe fn IsEmpty(&self, ec: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsEmpty)(windows_core::Interface::as_raw(self), ec, &mut result__).map(|| result__) @@ -11578,7 +11578,7 @@ impl ITfRange { pub unsafe fn Collapse(&self, ec: u32, apos: TfAnchor) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Collapse)(windows_core::Interface::as_raw(self), ec, apos).ok() } } - pub unsafe fn IsEqualStart(&self, ec: u32, pwith: P1, apos: TfAnchor) -> windows_core::Result + pub unsafe fn IsEqualStart(&self, ec: u32, pwith: P1, apos: TfAnchor) -> windows_core::Result where P1: windows_core::Param, { @@ -11587,7 +11587,7 @@ impl ITfRange { (windows_core::Interface::vtable(self).IsEqualStart)(windows_core::Interface::as_raw(self), ec, pwith.param().abi(), apos, &mut result__).map(|| result__) } } - pub unsafe fn IsEqualEnd(&self, ec: u32, pwith: P1, apos: TfAnchor) -> windows_core::Result + pub unsafe fn IsEqualEnd(&self, ec: u32, pwith: P1, apos: TfAnchor) -> windows_core::Result where P1: windows_core::Param, { @@ -11614,7 +11614,7 @@ impl ITfRange { (windows_core::Interface::vtable(self).CompareEnd)(windows_core::Interface::as_raw(self), ec, pwith.param().abi(), apos, &mut result__).map(|| result__) } } - pub unsafe fn AdjustForInsert(&self, ec: u32, cchinsert: u32) -> windows_core::Result { + pub unsafe fn AdjustForInsert(&self, ec: u32, cchinsert: u32) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).AdjustForInsert)(windows_core::Interface::as_raw(self), ec, cchinsert, &mut result__).map(|| result__) @@ -11657,15 +11657,15 @@ pub struct ITfRange_Vtbl { pub ShiftEnd: unsafe extern "system" fn(*mut core::ffi::c_void, u32, i32, *mut i32, *const TF_HALTCOND) -> windows_core::HRESULT, pub ShiftStartToRange: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, TfAnchor) -> windows_core::HRESULT, pub ShiftEndToRange: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, TfAnchor) -> windows_core::HRESULT, - pub ShiftStartRegion: unsafe extern "system" fn(*mut core::ffi::c_void, u32, TfShiftDir, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub ShiftEndRegion: unsafe extern "system" fn(*mut core::ffi::c_void, u32, TfShiftDir, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsEmpty: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ShiftStartRegion: unsafe extern "system" fn(*mut core::ffi::c_void, u32, TfShiftDir, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub ShiftEndRegion: unsafe extern "system" fn(*mut core::ffi::c_void, u32, TfShiftDir, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsEmpty: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Collapse: unsafe extern "system" fn(*mut core::ffi::c_void, u32, TfAnchor) -> windows_core::HRESULT, - pub IsEqualStart: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, TfAnchor, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsEqualEnd: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, TfAnchor, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsEqualStart: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, TfAnchor, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub IsEqualEnd: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, TfAnchor, *mut windows_core::BOOL) -> windows_core::HRESULT, pub CompareStart: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, TfAnchor, *mut i32) -> windows_core::HRESULT, pub CompareEnd: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, TfAnchor, *mut i32) -> windows_core::HRESULT, - pub AdjustForInsert: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub AdjustForInsert: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetGravity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut TfGravity, *mut TfGravity) -> windows_core::HRESULT, pub SetGravity: unsafe extern "system" fn(*mut core::ffi::c_void, u32, TfGravity, TfGravity) -> windows_core::HRESULT, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -11682,15 +11682,15 @@ pub trait ITfRange_Impl: windows_core::IUnknownImpl { fn ShiftEnd(&self, ec: u32, cchreq: i32, pcch: *mut i32, phalt: *const TF_HALTCOND) -> windows_core::Result<()>; fn ShiftStartToRange(&self, ec: u32, prange: windows_core::Ref, apos: TfAnchor) -> windows_core::Result<()>; fn ShiftEndToRange(&self, ec: u32, prange: windows_core::Ref, apos: TfAnchor) -> windows_core::Result<()>; - fn ShiftStartRegion(&self, ec: u32, dir: TfShiftDir) -> windows_core::Result; - fn ShiftEndRegion(&self, ec: u32, dir: TfShiftDir) -> windows_core::Result; - fn IsEmpty(&self, ec: u32) -> windows_core::Result; + fn ShiftStartRegion(&self, ec: u32, dir: TfShiftDir) -> windows_core::Result; + fn ShiftEndRegion(&self, ec: u32, dir: TfShiftDir) -> windows_core::Result; + fn IsEmpty(&self, ec: u32) -> windows_core::Result; fn Collapse(&self, ec: u32, apos: TfAnchor) -> windows_core::Result<()>; - fn IsEqualStart(&self, ec: u32, pwith: windows_core::Ref, apos: TfAnchor) -> windows_core::Result; - fn IsEqualEnd(&self, ec: u32, pwith: windows_core::Ref, apos: TfAnchor) -> windows_core::Result; + fn IsEqualStart(&self, ec: u32, pwith: windows_core::Ref, apos: TfAnchor) -> windows_core::Result; + fn IsEqualEnd(&self, ec: u32, pwith: windows_core::Ref, apos: TfAnchor) -> windows_core::Result; fn CompareStart(&self, ec: u32, pwith: windows_core::Ref, apos: TfAnchor) -> windows_core::Result; fn CompareEnd(&self, ec: u32, pwith: windows_core::Ref, apos: TfAnchor) -> windows_core::Result; - fn AdjustForInsert(&self, ec: u32, cchinsert: u32) -> windows_core::Result; + fn AdjustForInsert(&self, ec: u32, cchinsert: u32) -> windows_core::Result; fn GetGravity(&self, pgstart: *mut TfGravity, pgend: *mut TfGravity) -> windows_core::Result<()>; fn SetGravity(&self, ec: u32, gstart: TfGravity, gend: TfGravity) -> windows_core::Result<()>; fn Clone(&self) -> windows_core::Result; @@ -11765,7 +11765,7 @@ impl ITfRange_Vtbl { ITfRange_Impl::ShiftEndToRange(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&prange), core::mem::transmute_copy(&apos)).into() } } - unsafe extern "system" fn ShiftStartRegion(this: *mut core::ffi::c_void, ec: u32, dir: TfShiftDir, pfnoregion: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ShiftStartRegion(this: *mut core::ffi::c_void, ec: u32, dir: TfShiftDir, pfnoregion: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfRange_Impl::ShiftStartRegion(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&dir)) { @@ -11777,7 +11777,7 @@ impl ITfRange_Vtbl { } } } - unsafe extern "system" fn ShiftEndRegion(this: *mut core::ffi::c_void, ec: u32, dir: TfShiftDir, pfnoregion: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ShiftEndRegion(this: *mut core::ffi::c_void, ec: u32, dir: TfShiftDir, pfnoregion: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfRange_Impl::ShiftEndRegion(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&dir)) { @@ -11789,7 +11789,7 @@ impl ITfRange_Vtbl { } } } - unsafe extern "system" fn IsEmpty(this: *mut core::ffi::c_void, ec: u32, pfempty: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsEmpty(this: *mut core::ffi::c_void, ec: u32, pfempty: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfRange_Impl::IsEmpty(this, core::mem::transmute_copy(&ec)) { @@ -11807,7 +11807,7 @@ impl ITfRange_Vtbl { ITfRange_Impl::Collapse(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&apos)).into() } } - unsafe extern "system" fn IsEqualStart(this: *mut core::ffi::c_void, ec: u32, pwith: *mut core::ffi::c_void, apos: TfAnchor, pfequal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsEqualStart(this: *mut core::ffi::c_void, ec: u32, pwith: *mut core::ffi::c_void, apos: TfAnchor, pfequal: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfRange_Impl::IsEqualStart(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&pwith), core::mem::transmute_copy(&apos)) { @@ -11819,7 +11819,7 @@ impl ITfRange_Vtbl { } } } - unsafe extern "system" fn IsEqualEnd(this: *mut core::ffi::c_void, ec: u32, pwith: *mut core::ffi::c_void, apos: TfAnchor, pfequal: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsEqualEnd(this: *mut core::ffi::c_void, ec: u32, pwith: *mut core::ffi::c_void, apos: TfAnchor, pfequal: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfRange_Impl::IsEqualEnd(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&pwith), core::mem::transmute_copy(&apos)) { @@ -11855,7 +11855,7 @@ impl ITfRange_Vtbl { } } } - unsafe extern "system" fn AdjustForInsert(this: *mut core::ffi::c_void, ec: u32, cchinsert: u32, pfinsertok: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn AdjustForInsert(this: *mut core::ffi::c_void, ec: u32, cchinsert: u32, pfinsertok: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfRange_Impl::AdjustForInsert(this, core::mem::transmute_copy(&ec), core::mem::transmute_copy(&cchinsert)) { @@ -12166,7 +12166,7 @@ impl ITfReadingInformationUIElement { (windows_core::Interface::vtable(self).GetErrorIndex)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) } } - pub unsafe fn IsVerticalOrderPreferred(&self) -> windows_core::Result { + pub unsafe fn IsVerticalOrderPreferred(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsVerticalOrderPreferred)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -12181,7 +12181,7 @@ pub struct ITfReadingInformationUIElement_Vtbl { pub GetString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetMaxReadingStringLength: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub GetErrorIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub IsVerticalOrderPreferred: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsVerticalOrderPreferred: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITfReadingInformationUIElement_Impl: ITfUIElement_Impl { fn GetUpdatedFlags(&self) -> windows_core::Result; @@ -12189,7 +12189,7 @@ pub trait ITfReadingInformationUIElement_Impl: ITfUIElement_Impl { fn GetString(&self) -> windows_core::Result; fn GetMaxReadingStringLength(&self) -> windows_core::Result; fn GetErrorIndex(&self) -> windows_core::Result; - fn IsVerticalOrderPreferred(&self) -> windows_core::Result; + fn IsVerticalOrderPreferred(&self) -> windows_core::Result; } impl ITfReadingInformationUIElement_Vtbl { pub const fn new() -> Self { @@ -12253,7 +12253,7 @@ impl ITfReadingInformationUIElement_Vtbl { } } } - unsafe extern "system" fn IsVerticalOrderPreferred(this: *mut core::ffi::c_void, pfvertical: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsVerticalOrderPreferred(this: *mut core::ffi::c_void, pfvertical: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfReadingInformationUIElement_Impl::IsVerticalOrderPreferred(this) { @@ -12546,12 +12546,12 @@ impl ITfSpeechUIServer { pub struct ITfSpeechUIServer_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Initialize: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub ShowUI: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub ShowUI: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub UpdateBalloon: unsafe extern "system" fn(*mut core::ffi::c_void, TfLBBalloonStyle, windows_core::PCWSTR, u32) -> windows_core::HRESULT, } pub trait ITfSpeechUIServer_Impl: windows_core::IUnknownImpl { fn Initialize(&self) -> windows_core::Result<()>; - fn ShowUI(&self, fshow: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn ShowUI(&self, fshow: windows_core::BOOL) -> windows_core::Result<()>; fn UpdateBalloon(&self, style: TfLBBalloonStyle, pch: &windows_core::PCWSTR, cch: u32) -> windows_core::Result<()>; } impl ITfSpeechUIServer_Vtbl { @@ -12562,7 +12562,7 @@ impl ITfSpeechUIServer_Vtbl { ITfSpeechUIServer_Impl::Initialize(this).into() } } - unsafe extern "system" fn ShowUI(this: *mut core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn ShowUI(this: *mut core::ffi::c_void, fshow: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfSpeechUIServer_Impl::ShowUI(this, core::mem::transmute_copy(&fshow)).into() @@ -13072,7 +13072,7 @@ impl ITfThreadMgr { (windows_core::Interface::vtable(self).AssociateFocus)(windows_core::Interface::as_raw(self), hwnd, pdimnew.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub unsafe fn IsThreadFocus(&self) -> windows_core::Result { + pub unsafe fn IsThreadFocus(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsThreadFocus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -13107,7 +13107,7 @@ pub struct ITfThreadMgr_Vtbl { pub GetFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub AssociateFocus: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsThreadFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsThreadFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetFunctionProvider: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub EnumFunctionProviders: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetGlobalCompartment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -13120,7 +13120,7 @@ pub trait ITfThreadMgr_Impl: windows_core::IUnknownImpl { fn GetFocus(&self) -> windows_core::Result; fn SetFocus(&self, pdimfocus: windows_core::Ref) -> windows_core::Result<()>; fn AssociateFocus(&self, hwnd: super::super::Foundation::HWND, pdimnew: windows_core::Ref) -> windows_core::Result; - fn IsThreadFocus(&self) -> windows_core::Result; + fn IsThreadFocus(&self) -> windows_core::Result; fn GetFunctionProvider(&self, clsid: *const windows_core::GUID) -> windows_core::Result; fn EnumFunctionProviders(&self) -> windows_core::Result; fn GetGlobalCompartment(&self) -> windows_core::Result; @@ -13199,7 +13199,7 @@ impl ITfThreadMgr_Vtbl { } } } - unsafe extern "system" fn IsThreadFocus(this: *mut core::ffi::c_void, pfthreadfocus: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsThreadFocus(this: *mut core::ffi::c_void, pfthreadfocus: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr_Impl::IsThreadFocus(this) { @@ -13303,7 +13303,7 @@ impl ITfThreadMgr2 { { unsafe { (windows_core::Interface::vtable(self).SetFocus)(windows_core::Interface::as_raw(self), pdimfocus.param().abi()).ok() } } - pub unsafe fn IsThreadFocus(&self) -> windows_core::Result { + pub unsafe fn IsThreadFocus(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsThreadFocus)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -13352,7 +13352,7 @@ pub struct ITfThreadMgr2_Vtbl { pub EnumDocumentMgrs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsThreadFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsThreadFocus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetFunctionProvider: unsafe extern "system" fn(*mut core::ffi::c_void, *const windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub EnumFunctionProviders: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetGlobalCompartment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -13368,7 +13368,7 @@ pub trait ITfThreadMgr2_Impl: windows_core::IUnknownImpl { fn EnumDocumentMgrs(&self) -> windows_core::Result; fn GetFocus(&self) -> windows_core::Result; fn SetFocus(&self, pdimfocus: windows_core::Ref) -> windows_core::Result<()>; - fn IsThreadFocus(&self) -> windows_core::Result; + fn IsThreadFocus(&self) -> windows_core::Result; fn GetFunctionProvider(&self, clsid: *const windows_core::GUID) -> windows_core::Result; fn EnumFunctionProviders(&self) -> windows_core::Result; fn GetGlobalCompartment(&self) -> windows_core::Result; @@ -13439,7 +13439,7 @@ impl ITfThreadMgr2_Vtbl { ITfThreadMgr2_Impl::SetFocus(this, core::mem::transmute_copy(&pdimfocus)).into() } } - unsafe extern "system" fn IsThreadFocus(this: *mut core::ffi::c_void, pfthreadfocus: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsThreadFocus(this: *mut core::ffi::c_void, pfthreadfocus: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfThreadMgr2_Impl::IsThreadFocus(this) { @@ -13745,7 +13745,7 @@ impl windows_core::RuntimeName for ITfToolTipUIElement {} windows_core::imp::define_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: P2, pcompositionrange: P3) -> windows_core::Result + pub unsafe fn OnTransitoryExtensionUpdated(&self, pic: P0, ecreadonly: u32, presultrange: P2, pcompositionrange: P3) -> windows_core::Result where P0: windows_core::Param, P2: windows_core::Param, @@ -13760,14 +13760,14 @@ impl ITfTransitoryExtensionSink { #[repr(C)] pub struct ITfTransitoryExtensionSink_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnTransitoryExtensionUpdated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnTransitoryExtensionUpdated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITfTransitoryExtensionSink_Impl: windows_core::IUnknownImpl { - fn OnTransitoryExtensionUpdated(&self, pic: windows_core::Ref, ecreadonly: u32, presultrange: windows_core::Ref, pcompositionrange: windows_core::Ref) -> windows_core::Result; + fn OnTransitoryExtensionUpdated(&self, pic: windows_core::Ref, ecreadonly: u32, presultrange: windows_core::Ref, pcompositionrange: windows_core::Ref) -> windows_core::Result; } impl ITfTransitoryExtensionSink_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnTransitoryExtensionUpdated(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, ecreadonly: u32, presultrange: *mut core::ffi::c_void, pcompositionrange: *mut core::ffi::c_void, pfdeleteresultrange: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnTransitoryExtensionUpdated(this: *mut core::ffi::c_void, pic: *mut core::ffi::c_void, ecreadonly: u32, presultrange: *mut core::ffi::c_void, pcompositionrange: *mut core::ffi::c_void, pfdeleteresultrange: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfTransitoryExtensionSink_Impl::OnTransitoryExtensionUpdated(this, core::mem::transmute_copy(&pic), core::mem::transmute_copy(&ecreadonly), core::mem::transmute_copy(&presultrange), core::mem::transmute_copy(&pcompositionrange)) { @@ -13849,7 +13849,7 @@ impl ITfUIElement { pub unsafe fn Show(&self, bshow: bool) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).Show)(windows_core::Interface::as_raw(self), bshow.into()).ok() } } - pub unsafe fn IsShown(&self) -> windows_core::Result { + pub unsafe fn IsShown(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsShown)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -13861,14 +13861,14 @@ pub struct ITfUIElement_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetGUID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - pub Show: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub IsShown: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Show: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, + pub IsShown: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITfUIElement_Impl: windows_core::IUnknownImpl { fn GetDescription(&self) -> windows_core::Result; fn GetGUID(&self) -> windows_core::Result; - fn Show(&self, bshow: super::super::Foundation::BOOL) -> windows_core::Result<()>; - fn IsShown(&self) -> windows_core::Result; + fn Show(&self, bshow: windows_core::BOOL) -> windows_core::Result<()>; + fn IsShown(&self) -> windows_core::Result; } impl ITfUIElement_Vtbl { pub const fn new() -> Self { @@ -13896,13 +13896,13 @@ impl ITfUIElement_Vtbl { } } } - unsafe extern "system" fn Show(this: *mut core::ffi::c_void, bshow: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Show(this: *mut core::ffi::c_void, bshow: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfUIElement_Impl::Show(this, core::mem::transmute_copy(&bshow)).into() } } - unsafe extern "system" fn IsShown(this: *mut core::ffi::c_void, pbshow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsShown(this: *mut core::ffi::c_void, pbshow: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITfUIElement_Impl::IsShown(this) { @@ -13930,7 +13930,7 @@ impl windows_core::RuntimeName for ITfUIElement {} windows_core::imp::define_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<()> + pub unsafe fn BeginUIElement(&self, pelement: P0, pbshow: *mut windows_core::BOOL, pdwuielementid: *mut u32) -> windows_core::Result<()> where P0: windows_core::Param, { @@ -13958,14 +13958,14 @@ impl ITfUIElementMgr { #[repr(C)] pub struct ITfUIElementMgr_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub BeginUIElement: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL, *mut u32) -> windows_core::HRESULT, + pub BeginUIElement: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL, *mut u32) -> windows_core::HRESULT, pub UpdateUIElement: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub EndUIElement: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub GetUIElement: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub EnumUIElements: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait ITfUIElementMgr_Impl: windows_core::IUnknownImpl { - fn BeginUIElement(&self, pelement: windows_core::Ref, pbshow: *mut super::super::Foundation::BOOL, pdwuielementid: *mut u32) -> windows_core::Result<()>; + fn BeginUIElement(&self, pelement: windows_core::Ref, pbshow: *mut windows_core::BOOL, pdwuielementid: *mut u32) -> windows_core::Result<()>; fn UpdateUIElement(&self, dwuielementid: u32) -> windows_core::Result<()>; fn EndUIElement(&self, dwuielementid: u32) -> windows_core::Result<()>; fn GetUIElement(&self, dwuielementid: u32) -> windows_core::Result; @@ -13973,7 +13973,7 @@ pub trait ITfUIElementMgr_Impl: windows_core::IUnknownImpl { } impl ITfUIElementMgr_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn BeginUIElement(this: *mut core::ffi::c_void, pelement: *mut core::ffi::c_void, pbshow: *mut super::super::Foundation::BOOL, pdwuielementid: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn BeginUIElement(this: *mut core::ffi::c_void, pelement: *mut core::ffi::c_void, pbshow: *mut windows_core::BOOL, pdwuielementid: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfUIElementMgr_Impl::BeginUIElement(this, core::mem::transmute_copy(&pelement), core::mem::transmute_copy(&pbshow), core::mem::transmute_copy(&pdwuielementid)).into() @@ -14032,7 +14032,7 @@ impl windows_core::RuntimeName for ITfUIElementMgr {} windows_core::imp::define_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<()> { + pub unsafe fn BeginUIElement(&self, dwuielementid: u32, pbshow: *mut windows_core::BOOL) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).BeginUIElement)(windows_core::Interface::as_raw(self), dwuielementid, pbshow as _).ok() } } pub unsafe fn UpdateUIElement(&self, dwuielementid: u32) -> windows_core::Result<()> { @@ -14045,18 +14045,18 @@ impl ITfUIElementSink { #[repr(C)] pub struct ITfUIElementSink_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub BeginUIElement: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub BeginUIElement: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::BOOL) -> windows_core::HRESULT, pub UpdateUIElement: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub EndUIElement: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, } pub trait ITfUIElementSink_Impl: windows_core::IUnknownImpl { - fn BeginUIElement(&self, dwuielementid: u32, pbshow: *mut super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn BeginUIElement(&self, dwuielementid: u32, pbshow: *mut windows_core::BOOL) -> windows_core::Result<()>; fn UpdateUIElement(&self, dwuielementid: u32) -> windows_core::Result<()>; fn EndUIElement(&self, dwuielementid: u32) -> windows_core::Result<()>; } impl ITfUIElementSink_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn BeginUIElement(this: *mut core::ffi::c_void, dwuielementid: u32, pbshow: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn BeginUIElement(this: *mut core::ffi::c_void, dwuielementid: u32, pbshow: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITfUIElementSink_Impl::BeginUIElement(this, core::mem::transmute_copy(&dwuielementid), core::mem::transmute_copy(&pbshow)).into() @@ -14496,7 +14496,7 @@ pub struct TF_DISPLAYATTRIBUTE { pub crText: TF_DA_COLOR, pub crBk: TF_DA_COLOR, pub lsStyle: TF_DA_LINESTYLE, - pub fBoldLine: super::super::Foundation::BOOL, + pub fBoldLine: windows_core::BOOL, pub crLine: TF_DA_COLOR, pub bAttr: TF_DA_ATTR_INFO, } @@ -14618,7 +14618,7 @@ pub struct TF_LANGUAGEPROFILE { pub clsid: windows_core::GUID, pub langid: u16, pub catid: windows_core::GUID, - pub fActive: super::super::Foundation::BOOL, + pub fActive: windows_core::BOOL, pub guidProfile: windows_core::GUID, } impl Default for TF_LANGUAGEPROFILE { @@ -14812,7 +14812,7 @@ impl Default for TF_SELECTION { #[derive(Clone, Copy, Debug, PartialEq)] pub struct TF_SELECTIONSTYLE { pub ase: TfActiveSelEnd, - pub fInterimChar: super::super::Foundation::BOOL, + pub fInterimChar: windows_core::BOOL, } impl Default for TF_SELECTIONSTYLE { fn default() -> Self { @@ -15066,7 +15066,7 @@ pub const TS_SD_UIINTEGRATIONENABLE: u32 = 32u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct TS_SELECTIONSTYLE { pub ase: TsActiveSelEnd, - pub fInterimChar: super::super::Foundation::BOOL, + pub fInterimChar: windows_core::BOOL, } impl Default for TS_SELECTIONSTYLE { fn default() -> Self { diff --git a/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs index b29d43a22c..69f35974c5 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs @@ -1,26 +1,26 @@ #[inline] pub unsafe fn AdjustWindowRect(lprect: *mut super::super::Foundation::RECT, dwstyle: WINDOW_STYLE, bmenu: bool) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn AdjustWindowRect(lprect : *mut super::super::Foundation:: RECT, dwstyle : WINDOW_STYLE, bmenu : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn AdjustWindowRect(lprect : *mut super::super::Foundation:: RECT, dwstyle : WINDOW_STYLE, bmenu : windows_core::BOOL) -> windows_core::BOOL); unsafe { AdjustWindowRect(lprect as _, dwstyle, bmenu.into()).ok() } } #[inline] pub unsafe fn AdjustWindowRectEx(lprect: *mut super::super::Foundation::RECT, dwstyle: WINDOW_STYLE, bmenu: bool, dwexstyle: WINDOW_EX_STYLE) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn AdjustWindowRectEx(lprect : *mut super::super::Foundation:: RECT, dwstyle : WINDOW_STYLE, bmenu : super::super::Foundation:: BOOL, dwexstyle : WINDOW_EX_STYLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn AdjustWindowRectEx(lprect : *mut super::super::Foundation:: RECT, dwstyle : WINDOW_STYLE, bmenu : windows_core::BOOL, dwexstyle : WINDOW_EX_STYLE) -> windows_core::BOOL); unsafe { AdjustWindowRectEx(lprect as _, dwstyle, bmenu.into(), dwexstyle).ok() } } #[inline] pub unsafe fn AllowSetForegroundWindow(dwprocessid: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn AllowSetForegroundWindow(dwprocessid : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn AllowSetForegroundWindow(dwprocessid : u32) -> windows_core::BOOL); unsafe { AllowSetForegroundWindow(dwprocessid).ok() } } #[inline] pub unsafe fn AnimateWindow(hwnd: super::super::Foundation::HWND, dwtime: u32, dwflags: ANIMATE_WINDOW_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn AnimateWindow(hwnd : super::super::Foundation:: HWND, dwtime : u32, dwflags : ANIMATE_WINDOW_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn AnimateWindow(hwnd : super::super::Foundation:: HWND, dwtime : u32, dwflags : ANIMATE_WINDOW_FLAGS) -> windows_core::BOOL); unsafe { AnimateWindow(hwnd, dwtime, dwflags).ok() } } #[inline] -pub unsafe fn AnyPopup() -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn AnyPopup() -> super::super::Foundation:: BOOL); +pub unsafe fn AnyPopup() -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn AnyPopup() -> windows_core::BOOL); unsafe { AnyPopup() } } #[inline] @@ -28,7 +28,7 @@ pub unsafe fn AppendMenuA(hmenu: HMENU, uflags: MENU_ITEM_FLAGS, uidnewitem: where P3: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn AppendMenuA(hmenu : HMENU, uflags : MENU_ITEM_FLAGS, uidnewitem : usize, lpnewitem : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn AppendMenuA(hmenu : HMENU, uflags : MENU_ITEM_FLAGS, uidnewitem : usize, lpnewitem : windows_core::PCSTR) -> windows_core::BOOL); unsafe { AppendMenuA(hmenu, uflags, uidnewitem, lpnewitem.param().abi()).ok() } } #[inline] @@ -36,7 +36,7 @@ pub unsafe fn AppendMenuW(hmenu: HMENU, uflags: MENU_ITEM_FLAGS, uidnewitem: where P3: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn AppendMenuW(hmenu : HMENU, uflags : MENU_ITEM_FLAGS, uidnewitem : usize, lpnewitem : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn AppendMenuW(hmenu : HMENU, uflags : MENU_ITEM_FLAGS, uidnewitem : usize, lpnewitem : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { AppendMenuW(hmenu, uflags, uidnewitem, lpnewitem.param().abi()).ok() } } #[inline] @@ -52,22 +52,22 @@ pub unsafe fn BeginDeferWindowPos(nnumwindows: i32) -> windows_core::Result windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn BringWindowToTop(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn BringWindowToTop(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { BringWindowToTop(hwnd).ok() } } #[inline] pub unsafe fn CalculatePopupWindowPosition(anchorpoint: *const super::super::Foundation::POINT, windowsize: *const super::super::Foundation::SIZE, flags: u32, excluderect: Option<*const super::super::Foundation::RECT>, popupwindowposition: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn CalculatePopupWindowPosition(anchorpoint : *const super::super::Foundation:: POINT, windowsize : *const super::super::Foundation:: SIZE, flags : u32, excluderect : *const super::super::Foundation:: RECT, popupwindowposition : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn CalculatePopupWindowPosition(anchorpoint : *const super::super::Foundation:: POINT, windowsize : *const super::super::Foundation:: SIZE, flags : u32, excluderect : *const super::super::Foundation:: RECT, popupwindowposition : *mut super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { CalculatePopupWindowPosition(anchorpoint, windowsize, flags, excluderect.unwrap_or(core::mem::zeroed()) as _, popupwindowposition as _).ok() } } #[inline] -pub unsafe fn CallMsgFilterA(lpmsg: *const MSG, ncode: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn CallMsgFilterA(lpmsg : *const MSG, ncode : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn CallMsgFilterA(lpmsg: *const MSG, ncode: i32) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn CallMsgFilterA(lpmsg : *const MSG, ncode : i32) -> windows_core::BOOL); unsafe { CallMsgFilterA(lpmsg, ncode) } } #[inline] -pub unsafe fn CallMsgFilterW(lpmsg: *const MSG, ncode: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn CallMsgFilterW(lpmsg : *const MSG, ncode : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn CallMsgFilterW(lpmsg: *const MSG, ncode: i32) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn CallMsgFilterW(lpmsg : *const MSG, ncode : i32) -> windows_core::BOOL); unsafe { CallMsgFilterW(lpmsg, ncode) } } #[inline] @@ -86,8 +86,8 @@ pub unsafe fn CallWindowProcW(lpprevwndfunc: WNDPROC, hwnd: super::super::Founda unsafe { CallWindowProcW(lpprevwndfunc, hwnd, msg, wparam, lparam) } } #[inline] -pub unsafe fn CancelShutdown() -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn CancelShutdown() -> super::super::Foundation:: BOOL); +pub unsafe fn CancelShutdown() -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn CancelShutdown() -> windows_core::BOOL); unsafe { CancelShutdown() } } #[inline] @@ -96,29 +96,29 @@ pub unsafe fn CascadeWindows(hwndparent: Option, unsafe { CascadeWindows(hwndparent.unwrap_or(core::mem::zeroed()) as _, whow, lprect.unwrap_or(core::mem::zeroed()) as _, lpkids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpkids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } } #[inline] -pub unsafe fn ChangeMenuA(hmenu: HMENU, cmd: u32, lpsznewitem: P2, cmdinsert: u32, flags: u32) -> super::super::Foundation::BOOL +pub unsafe fn ChangeMenuA(hmenu: HMENU, cmd: u32, lpsznewitem: P2, cmdinsert: u32, flags: u32) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn ChangeMenuA(hmenu : HMENU, cmd : u32, lpsznewitem : windows_core::PCSTR, cmdinsert : u32, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn ChangeMenuA(hmenu : HMENU, cmd : u32, lpsznewitem : windows_core::PCSTR, cmdinsert : u32, flags : u32) -> windows_core::BOOL); unsafe { ChangeMenuA(hmenu, cmd, lpsznewitem.param().abi(), cmdinsert, flags) } } #[inline] -pub unsafe fn ChangeMenuW(hmenu: HMENU, cmd: u32, lpsznewitem: P2, cmdinsert: u32, flags: u32) -> super::super::Foundation::BOOL +pub unsafe fn ChangeMenuW(hmenu: HMENU, cmd: u32, lpsznewitem: P2, cmdinsert: u32, flags: u32) -> windows_core::BOOL where P2: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn ChangeMenuW(hmenu : HMENU, cmd : u32, lpsznewitem : windows_core::PCWSTR, cmdinsert : u32, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn ChangeMenuW(hmenu : HMENU, cmd : u32, lpsznewitem : windows_core::PCWSTR, cmdinsert : u32, flags : u32) -> windows_core::BOOL); unsafe { ChangeMenuW(hmenu, cmd, lpsznewitem.param().abi(), cmdinsert, flags) } } #[inline] pub unsafe fn ChangeWindowMessageFilter(message: u32, dwflag: CHANGE_WINDOW_MESSAGE_FILTER_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn ChangeWindowMessageFilter(message : u32, dwflag : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn ChangeWindowMessageFilter(message : u32, dwflag : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS) -> windows_core::BOOL); unsafe { ChangeWindowMessageFilter(message, dwflag).ok() } } #[inline] pub unsafe fn ChangeWindowMessageFilterEx(hwnd: super::super::Foundation::HWND, message: u32, action: WINDOW_MESSAGE_FILTER_ACTION, pchangefilterstruct: Option<*mut CHANGEFILTERSTRUCT>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn ChangeWindowMessageFilterEx(hwnd : super::super::Foundation:: HWND, message : u32, action : WINDOW_MESSAGE_FILTER_ACTION, pchangefilterstruct : *mut CHANGEFILTERSTRUCT) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn ChangeWindowMessageFilterEx(hwnd : super::super::Foundation:: HWND, message : u32, action : WINDOW_MESSAGE_FILTER_ACTION, pchangefilterstruct : *mut CHANGEFILTERSTRUCT) -> windows_core::BOOL); unsafe { ChangeWindowMessageFilterEx(hwnd, message, action, pchangefilterstruct.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -197,7 +197,7 @@ pub unsafe fn CharToOemA(psrc: P0, pdst: windows_core::PSTR) -> windows_core where P0: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn CharToOemA(psrc : windows_core::PCSTR, pdst : windows_core::PSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn CharToOemA(psrc : windows_core::PCSTR, pdst : windows_core::PSTR) -> windows_core::BOOL); unsafe { CharToOemA(psrc.param().abi(), core::mem::transmute(pdst)).ok() } } #[inline] @@ -205,7 +205,7 @@ pub unsafe fn CharToOemBuffA(lpszsrc: P0, lpszdst: &mut [u8]) -> windows_cor where P0: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn CharToOemBuffA(lpszsrc : windows_core::PCSTR, lpszdst : windows_core::PSTR, cchdstlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn CharToOemBuffA(lpszsrc : windows_core::PCSTR, lpszdst : windows_core::PSTR, cchdstlength : u32) -> windows_core::BOOL); unsafe { CharToOemBuffA(lpszsrc.param().abi(), core::mem::transmute(lpszdst.as_ptr()), lpszdst.len().try_into().unwrap()).ok() } } #[inline] @@ -213,7 +213,7 @@ pub unsafe fn CharToOemBuffW(lpszsrc: P0, lpszdst: &mut [u8]) -> windows_cor where P0: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn CharToOemBuffW(lpszsrc : windows_core::PCWSTR, lpszdst : windows_core::PSTR, cchdstlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn CharToOemBuffW(lpszsrc : windows_core::PCWSTR, lpszdst : windows_core::PSTR, cchdstlength : u32) -> windows_core::BOOL); unsafe { CharToOemBuffW(lpszsrc.param().abi(), core::mem::transmute(lpszdst.as_ptr()), lpszdst.len().try_into().unwrap()).ok() } } #[inline] @@ -221,7 +221,7 @@ pub unsafe fn CharToOemW(psrc: P0, pdst: windows_core::PSTR) -> windows_core where P0: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn CharToOemW(psrc : windows_core::PCWSTR, pdst : windows_core::PSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn CharToOemW(psrc : windows_core::PCWSTR, pdst : windows_core::PSTR) -> windows_core::BOOL); unsafe { CharToOemW(psrc.param().abi(), core::mem::transmute(pdst)).ok() } } #[inline] @@ -251,7 +251,7 @@ pub unsafe fn CheckMenuItem(hmenu: HMENU, uidcheckitem: u32, ucheck: u32) -> u32 } #[inline] pub unsafe fn CheckMenuRadioItem(hmenu: HMENU, first: u32, last: u32, check: u32, flags: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn CheckMenuRadioItem(hmenu : HMENU, first : u32, last : u32, check : u32, flags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn CheckMenuRadioItem(hmenu : HMENU, first : u32, last : u32, check : u32, flags : u32) -> windows_core::BOOL); unsafe { CheckMenuRadioItem(hmenu, first, last, check, flags).ok() } } #[inline] @@ -266,12 +266,12 @@ pub unsafe fn ChildWindowFromPointEx(hwnd: super::super::Foundation::HWND, pt: s } #[inline] pub unsafe fn ClipCursor(lprect: Option<*const super::super::Foundation::RECT>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn ClipCursor(lprect : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn ClipCursor(lprect : *const super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { ClipCursor(lprect.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn CloseWindow(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn CloseWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn CloseWindow(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { CloseWindow(hwnd).ok() } } #[inline] @@ -311,7 +311,7 @@ pub unsafe fn CreateAcceleratorTableW(paccel: &[ACCEL]) -> windows_core::Result< #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn CreateCaret(hwnd: super::super::Foundation::HWND, hbitmap: Option, nwidth: i32, nheight: i32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn CreateCaret(hwnd : super::super::Foundation:: HWND, hbitmap : super::super::Graphics::Gdi:: HBITMAP, nwidth : i32, nheight : i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn CreateCaret(hwnd : super::super::Foundation:: HWND, hbitmap : super::super::Graphics::Gdi:: HBITMAP, nwidth : i32, nheight : i32) -> windows_core::BOOL); unsafe { CreateCaret(hwnd, hbitmap.unwrap_or(core::mem::zeroed()) as _, nwidth, nheight).ok() } } #[inline] @@ -358,13 +358,13 @@ pub unsafe fn CreateIcon(hinstance: Option, } #[inline] pub unsafe fn CreateIconFromResource(presbits: &[u8], ficon: bool, dwver: u32) -> windows_core::Result { - windows_targets::link!("user32.dll" "system" fn CreateIconFromResource(presbits : *const u8, dwressize : u32, ficon : super::super::Foundation:: BOOL, dwver : u32) -> HICON); + windows_targets::link!("user32.dll" "system" fn CreateIconFromResource(presbits : *const u8, dwressize : u32, ficon : windows_core::BOOL, dwver : u32) -> HICON); let result__ = unsafe { CreateIconFromResource(core::mem::transmute(presbits.as_ptr()), presbits.len().try_into().unwrap(), ficon.into(), dwver) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn CreateIconFromResourceEx(presbits: &[u8], ficon: bool, dwver: u32, cxdesired: i32, cydesired: i32, flags: IMAGE_FLAGS) -> windows_core::Result { - windows_targets::link!("user32.dll" "system" fn CreateIconFromResourceEx(presbits : *const u8, dwressize : u32, ficon : super::super::Foundation:: BOOL, dwver : u32, cxdesired : i32, cydesired : i32, flags : IMAGE_FLAGS) -> HICON); + windows_targets::link!("user32.dll" "system" fn CreateIconFromResourceEx(presbits : *const u8, dwressize : u32, ficon : windows_core::BOOL, dwver : u32, cxdesired : i32, cydesired : i32, flags : IMAGE_FLAGS) -> HICON); let result__ = unsafe { CreateIconFromResourceEx(core::mem::transmute(presbits.as_ptr()), presbits.len().try_into().unwrap(), ficon.into(), dwver, cxdesired, cydesired, flags) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -484,32 +484,32 @@ pub unsafe fn DeferWindowPos(hwinposinfo: HDWP, hwnd: super::super::Foundation:: } #[inline] pub unsafe fn DeleteMenu(hmenu: HMENU, uposition: u32, uflags: MENU_ITEM_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn DeleteMenu(hmenu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn DeleteMenu(hmenu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS) -> windows_core::BOOL); unsafe { DeleteMenu(hmenu, uposition, uflags).ok() } } #[inline] -pub unsafe fn DeregisterShellHookWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DeregisterShellHookWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn DeregisterShellHookWindow(hwnd: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DeregisterShellHookWindow(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { DeregisterShellHookWindow(hwnd) } } #[inline] -pub unsafe fn DestroyAcceleratorTable(haccel: HACCEL) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn DestroyAcceleratorTable(haccel : HACCEL) -> super::super::Foundation:: BOOL); +pub unsafe fn DestroyAcceleratorTable(haccel: HACCEL) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn DestroyAcceleratorTable(haccel : HACCEL) -> windows_core::BOOL); unsafe { DestroyAcceleratorTable(haccel) } } #[inline] pub unsafe fn DestroyCaret() -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn DestroyCaret() -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn DestroyCaret() -> windows_core::BOOL); unsafe { DestroyCaret().ok() } } #[inline] pub unsafe fn DestroyCursor(hcursor: HCURSOR) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn DestroyCursor(hcursor : HCURSOR) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn DestroyCursor(hcursor : HCURSOR) -> windows_core::BOOL); unsafe { DestroyCursor(hcursor).ok() } } #[inline] pub unsafe fn DestroyIcon(hicon: HICON) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn DestroyIcon(hicon : HICON) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn DestroyIcon(hicon : HICON) -> windows_core::BOOL); unsafe { DestroyIcon(hicon).ok() } } #[inline] @@ -522,7 +522,7 @@ where } #[inline] pub unsafe fn DestroyMenu(hmenu: HMENU) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn DestroyMenu(hmenu : HMENU) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn DestroyMenu(hmenu : HMENU) -> windows_core::BOOL); unsafe { DestroyMenu(hmenu).ok() } } #[inline] @@ -532,7 +532,7 @@ pub unsafe fn DestroyResourceIndexer(resourceindexer: Option<*const core::ffi::c } #[inline] pub unsafe fn DestroyWindow(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn DestroyWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn DestroyWindow(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { DestroyWindow(hwnd).ok() } } #[inline] @@ -584,43 +584,43 @@ pub unsafe fn DragObject(hwndparent: super::super::Foundation::HWND, hwndfrom: s #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawIcon(hdc: super::super::Graphics::Gdi::HDC, x: i32, y: i32, hicon: HICON) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn DrawIcon(hdc : super::super::Graphics::Gdi:: HDC, x : i32, y : i32, hicon : HICON) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn DrawIcon(hdc : super::super::Graphics::Gdi:: HDC, x : i32, y : i32, hicon : HICON) -> windows_core::BOOL); unsafe { DrawIcon(hdc, x, y, hicon).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn DrawIconEx(hdc: super::super::Graphics::Gdi::HDC, xleft: i32, ytop: i32, hicon: HICON, cxwidth: i32, cywidth: i32, istepifanicur: u32, hbrflickerfreedraw: Option, diflags: DI_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn DrawIconEx(hdc : super::super::Graphics::Gdi:: HDC, xleft : i32, ytop : i32, hicon : HICON, cxwidth : i32, cywidth : i32, istepifanicur : u32, hbrflickerfreedraw : super::super::Graphics::Gdi:: HBRUSH, diflags : DI_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn DrawIconEx(hdc : super::super::Graphics::Gdi:: HDC, xleft : i32, ytop : i32, hicon : HICON, cxwidth : i32, cywidth : i32, istepifanicur : u32, hbrflickerfreedraw : super::super::Graphics::Gdi:: HBRUSH, diflags : DI_FLAGS) -> windows_core::BOOL); unsafe { DrawIconEx(hdc, xleft, ytop, hicon, cxwidth, cywidth, istepifanicur, hbrflickerfreedraw.unwrap_or(core::mem::zeroed()) as _, diflags).ok() } } #[inline] pub unsafe fn DrawMenuBar(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn DrawMenuBar(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn DrawMenuBar(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { DrawMenuBar(hwnd).ok() } } #[inline] -pub unsafe fn EnableMenuItem(hmenu: HMENU, uidenableitem: u32, uenable: MENU_ITEM_FLAGS) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn EnableMenuItem(hmenu : HMENU, uidenableitem : u32, uenable : MENU_ITEM_FLAGS) -> super::super::Foundation:: BOOL); +pub unsafe fn EnableMenuItem(hmenu: HMENU, uidenableitem: u32, uenable: MENU_ITEM_FLAGS) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn EnableMenuItem(hmenu : HMENU, uidenableitem : u32, uenable : MENU_ITEM_FLAGS) -> windows_core::BOOL); unsafe { EnableMenuItem(hmenu, uidenableitem, uenable) } } #[inline] pub unsafe fn EndDeferWindowPos(hwinposinfo: HDWP) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn EndDeferWindowPos(hwinposinfo : HDWP) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EndDeferWindowPos(hwinposinfo : HDWP) -> windows_core::BOOL); unsafe { EndDeferWindowPos(hwinposinfo).ok() } } #[inline] pub unsafe fn EndDialog(hdlg: super::super::Foundation::HWND, nresult: isize) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn EndDialog(hdlg : super::super::Foundation:: HWND, nresult : isize) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EndDialog(hdlg : super::super::Foundation:: HWND, nresult : isize) -> windows_core::BOOL); unsafe { EndDialog(hdlg, nresult).ok() } } #[inline] pub unsafe fn EndMenu() -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn EndMenu() -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EndMenu() -> windows_core::BOOL); unsafe { EndMenu().ok() } } #[inline] -pub unsafe fn EnumChildWindows(hwndparent: Option, lpenumfunc: WNDENUMPROC, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn EnumChildWindows(hwndparent : super::super::Foundation:: HWND, lpenumfunc : WNDENUMPROC, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); +pub unsafe fn EnumChildWindows(hwndparent: Option, lpenumfunc: WNDENUMPROC, lparam: super::super::Foundation::LPARAM) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn EnumChildWindows(hwndparent : super::super::Foundation:: HWND, lpenumfunc : WNDENUMPROC, lparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { EnumChildWindows(hwndparent.unwrap_or(core::mem::zeroed()) as _, lpenumfunc, lparam) } } #[inline] @@ -644,13 +644,13 @@ pub unsafe fn EnumPropsW(hwnd: super::super::Foundation::HWND, lpenumfunc: PROPE unsafe { EnumPropsW(hwnd, lpenumfunc) } } #[inline] -pub unsafe fn EnumThreadWindows(dwthreadid: u32, lpfn: WNDENUMPROC, lparam: super::super::Foundation::LPARAM) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn EnumThreadWindows(dwthreadid : u32, lpfn : WNDENUMPROC, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); +pub unsafe fn EnumThreadWindows(dwthreadid: u32, lpfn: WNDENUMPROC, lparam: super::super::Foundation::LPARAM) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn EnumThreadWindows(dwthreadid : u32, lpfn : WNDENUMPROC, lparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { EnumThreadWindows(dwthreadid, lpfn, lparam) } } #[inline] pub unsafe fn EnumWindows(lpenumfunc: WNDENUMPROC, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn EnumWindows(lpenumfunc : WNDENUMPROC, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn EnumWindows(lpenumfunc : WNDENUMPROC, lparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { EnumWindows(lpenumfunc, lparam).ok() } } #[inline] @@ -694,23 +694,23 @@ where (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] -pub unsafe fn FlashWindow(hwnd: super::super::Foundation::HWND, binvert: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn FlashWindow(hwnd : super::super::Foundation:: HWND, binvert : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn FlashWindow(hwnd: super::super::Foundation::HWND, binvert: bool) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn FlashWindow(hwnd : super::super::Foundation:: HWND, binvert : windows_core::BOOL) -> windows_core::BOOL); unsafe { FlashWindow(hwnd, binvert.into()) } } #[inline] -pub unsafe fn FlashWindowEx(pfwi: *const FLASHWINFO) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn FlashWindowEx(pfwi : *const FLASHWINFO) -> super::super::Foundation:: BOOL); +pub unsafe fn FlashWindowEx(pfwi: *const FLASHWINFO) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn FlashWindowEx(pfwi : *const FLASHWINFO) -> windows_core::BOOL); unsafe { FlashWindowEx(pfwi) } } #[inline] pub unsafe fn GetAltTabInfoA(hwnd: Option, iitem: i32, pati: *mut ALTTABINFO, pszitemtext: Option<&mut [u8]>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetAltTabInfoA(hwnd : super::super::Foundation:: HWND, iitem : i32, pati : *mut ALTTABINFO, pszitemtext : windows_core::PSTR, cchitemtext : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetAltTabInfoA(hwnd : super::super::Foundation:: HWND, iitem : i32, pati : *mut ALTTABINFO, pszitemtext : windows_core::PSTR, cchitemtext : u32) -> windows_core::BOOL); unsafe { GetAltTabInfoA(hwnd.unwrap_or(core::mem::zeroed()) as _, iitem, pati as _, core::mem::transmute(pszitemtext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszitemtext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } } #[inline] pub unsafe fn GetAltTabInfoW(hwnd: Option, iitem: i32, pati: *mut ALTTABINFO, pszitemtext: Option<&mut [u16]>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetAltTabInfoW(hwnd : super::super::Foundation:: HWND, iitem : i32, pati : *mut ALTTABINFO, pszitemtext : windows_core::PWSTR, cchitemtext : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetAltTabInfoW(hwnd : super::super::Foundation:: HWND, iitem : i32, pati : *mut ALTTABINFO, pszitemtext : windows_core::PWSTR, cchitemtext : u32) -> windows_core::BOOL); unsafe { GetAltTabInfoW(hwnd.unwrap_or(core::mem::zeroed()) as _, iitem, pati as _, core::mem::transmute(pszitemtext.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), pszitemtext.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } } #[inline] @@ -725,7 +725,7 @@ pub unsafe fn GetCaretBlinkTime() -> u32 { } #[inline] pub unsafe fn GetCaretPos(lppoint: *mut super::super::Foundation::POINT) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetCaretPos(lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetCaretPos(lppoint : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { GetCaretPos(lppoint as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -734,7 +734,7 @@ pub unsafe fn GetClassInfoA(hinstance: Option, { - windows_targets::link!("user32.dll" "system" fn GetClassInfoA(hinstance : super::super::Foundation:: HINSTANCE, lpclassname : windows_core::PCSTR, lpwndclass : *mut WNDCLASSA) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetClassInfoA(hinstance : super::super::Foundation:: HINSTANCE, lpclassname : windows_core::PCSTR, lpwndclass : *mut WNDCLASSA) -> windows_core::BOOL); unsafe { GetClassInfoA(hinstance.unwrap_or(core::mem::zeroed()) as _, lpclassname.param().abi(), lpwndclass as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -743,7 +743,7 @@ pub unsafe fn GetClassInfoExA(hinstance: Option, { - windows_targets::link!("user32.dll" "system" fn GetClassInfoExA(hinstance : super::super::Foundation:: HINSTANCE, lpszclass : windows_core::PCSTR, lpwcx : *mut WNDCLASSEXA) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetClassInfoExA(hinstance : super::super::Foundation:: HINSTANCE, lpszclass : windows_core::PCSTR, lpwcx : *mut WNDCLASSEXA) -> windows_core::BOOL); unsafe { GetClassInfoExA(hinstance.unwrap_or(core::mem::zeroed()) as _, lpszclass.param().abi(), lpwcx as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -752,7 +752,7 @@ pub unsafe fn GetClassInfoExW(hinstance: Option, { - windows_targets::link!("user32.dll" "system" fn GetClassInfoExW(hinstance : super::super::Foundation:: HINSTANCE, lpszclass : windows_core::PCWSTR, lpwcx : *mut WNDCLASSEXW) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetClassInfoExW(hinstance : super::super::Foundation:: HINSTANCE, lpszclass : windows_core::PCWSTR, lpwcx : *mut WNDCLASSEXW) -> windows_core::BOOL); unsafe { GetClassInfoExW(hinstance.unwrap_or(core::mem::zeroed()) as _, lpszclass.param().abi(), lpwcx as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -761,7 +761,7 @@ pub unsafe fn GetClassInfoW(hinstance: Option, { - windows_targets::link!("user32.dll" "system" fn GetClassInfoW(hinstance : super::super::Foundation:: HINSTANCE, lpclassname : windows_core::PCWSTR, lpwndclass : *mut WNDCLASSW) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetClassInfoW(hinstance : super::super::Foundation:: HINSTANCE, lpclassname : windows_core::PCWSTR, lpwndclass : *mut WNDCLASSW) -> windows_core::BOOL); unsafe { GetClassInfoW(hinstance.unwrap_or(core::mem::zeroed()) as _, lpclassname.param().abi(), lpwndclass as _).ok() } } #[inline] @@ -803,12 +803,12 @@ pub unsafe fn GetClassWord(hwnd: super::super::Foundation::HWND, nindex: i32) -> } #[inline] pub unsafe fn GetClientRect(hwnd: super::super::Foundation::HWND, lprect: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetClientRect(hwnd : super::super::Foundation:: HWND, lprect : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetClientRect(hwnd : super::super::Foundation:: HWND, lprect : *mut super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { GetClientRect(hwnd, lprect as _).ok() } } #[inline] pub unsafe fn GetClipCursor(lprect: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetClipCursor(lprect : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetClipCursor(lprect : *mut super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { GetClipCursor(lprect as _).ok() } } #[inline] @@ -818,12 +818,12 @@ pub unsafe fn GetCursor() -> HCURSOR { } #[inline] pub unsafe fn GetCursorInfo(pci: *mut CURSORINFO) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetCursorInfo(pci : *mut CURSORINFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetCursorInfo(pci : *mut CURSORINFO) -> windows_core::BOOL); unsafe { GetCursorInfo(pci as _).ok() } } #[inline] pub unsafe fn GetCursorPos(lppoint: *mut super::super::Foundation::POINT) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetCursorPos(lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetCursorPos(lppoint : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { GetCursorPos(lppoint as _).ok() } } #[inline] @@ -848,8 +848,8 @@ pub unsafe fn GetDlgItem(hdlg: Option, niddlgite (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] -pub unsafe fn GetDlgItemInt(hdlg: super::super::Foundation::HWND, niddlgitem: i32, lptranslated: Option<*mut super::super::Foundation::BOOL>, bsigned: bool) -> u32 { - windows_targets::link!("user32.dll" "system" fn GetDlgItemInt(hdlg : super::super::Foundation:: HWND, niddlgitem : i32, lptranslated : *mut super::super::Foundation:: BOOL, bsigned : super::super::Foundation:: BOOL) -> u32); +pub unsafe fn GetDlgItemInt(hdlg: super::super::Foundation::HWND, niddlgitem: i32, lptranslated: Option<*mut windows_core::BOOL>, bsigned: bool) -> u32 { + windows_targets::link!("user32.dll" "system" fn GetDlgItemInt(hdlg : super::super::Foundation:: HWND, niddlgitem : i32, lptranslated : *mut windows_core::BOOL, bsigned : windows_core::BOOL) -> u32); unsafe { GetDlgItemInt(hdlg, niddlgitem, lptranslated.unwrap_or(core::mem::zeroed()) as _, bsigned.into()) } } #[inline] @@ -869,30 +869,30 @@ pub unsafe fn GetForegroundWindow() -> super::super::Foundation::HWND { } #[inline] pub unsafe fn GetGUIThreadInfo(idthread: u32, pgui: *mut GUITHREADINFO) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetGUIThreadInfo(idthread : u32, pgui : *mut GUITHREADINFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetGUIThreadInfo(idthread : u32, pgui : *mut GUITHREADINFO) -> windows_core::BOOL); unsafe { GetGUIThreadInfo(idthread, pgui as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetIconInfo(hicon: HICON, piconinfo: *mut ICONINFO) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetIconInfo(hicon : HICON, piconinfo : *mut ICONINFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetIconInfo(hicon : HICON, piconinfo : *mut ICONINFO) -> windows_core::BOOL); unsafe { GetIconInfo(hicon, piconinfo as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn GetIconInfoExA(hicon: HICON, piconinfo: *mut ICONINFOEXA) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn GetIconInfoExA(hicon : HICON, piconinfo : *mut ICONINFOEXA) -> super::super::Foundation:: BOOL); +pub unsafe fn GetIconInfoExA(hicon: HICON, piconinfo: *mut ICONINFOEXA) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn GetIconInfoExA(hicon : HICON, piconinfo : *mut ICONINFOEXA) -> windows_core::BOOL); unsafe { GetIconInfoExA(hicon, piconinfo as _) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn GetIconInfoExW(hicon: HICON, piconinfo: *mut ICONINFOEXW) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn GetIconInfoExW(hicon : HICON, piconinfo : *mut ICONINFOEXW) -> super::super::Foundation:: BOOL); +pub unsafe fn GetIconInfoExW(hicon: HICON, piconinfo: *mut ICONINFOEXW) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn GetIconInfoExW(hicon : HICON, piconinfo : *mut ICONINFOEXW) -> windows_core::BOOL); unsafe { GetIconInfoExW(hicon, piconinfo as _) } } #[inline] -pub unsafe fn GetInputState() -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn GetInputState() -> super::super::Foundation:: BOOL); +pub unsafe fn GetInputState() -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn GetInputState() -> windows_core::BOOL); unsafe { GetInputState() } } #[inline] @@ -902,7 +902,7 @@ pub unsafe fn GetLastActivePopup(hwnd: super::super::Foundation::HWND) -> super: } #[inline] pub unsafe fn GetLayeredWindowAttributes(hwnd: super::super::Foundation::HWND, pcrkey: Option<*mut super::super::Foundation::COLORREF>, pbalpha: Option<*mut u8>, pdwflags: Option<*mut LAYERED_WINDOW_ATTRIBUTES_FLAGS>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetLayeredWindowAttributes(hwnd : super::super::Foundation:: HWND, pcrkey : *mut super::super::Foundation:: COLORREF, pbalpha : *mut u8, pdwflags : *mut LAYERED_WINDOW_ATTRIBUTES_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetLayeredWindowAttributes(hwnd : super::super::Foundation:: HWND, pcrkey : *mut super::super::Foundation:: COLORREF, pbalpha : *mut u8, pdwflags : *mut LAYERED_WINDOW_ATTRIBUTES_FLAGS) -> windows_core::BOOL); unsafe { GetLayeredWindowAttributes(hwnd, pcrkey.unwrap_or(core::mem::zeroed()) as _, pbalpha.unwrap_or(core::mem::zeroed()) as _, pdwflags.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -912,7 +912,7 @@ pub unsafe fn GetMenu(hwnd: super::super::Foundation::HWND) -> HMENU { } #[inline] pub unsafe fn GetMenuBarInfo(hwnd: super::super::Foundation::HWND, idobject: OBJECT_IDENTIFIER, iditem: i32, pmbi: *mut MENUBARINFO) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetMenuBarInfo(hwnd : super::super::Foundation:: HWND, idobject : OBJECT_IDENTIFIER, iditem : i32, pmbi : *mut MENUBARINFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetMenuBarInfo(hwnd : super::super::Foundation:: HWND, idobject : OBJECT_IDENTIFIER, iditem : i32, pmbi : *mut MENUBARINFO) -> windows_core::BOOL); unsafe { GetMenuBarInfo(hwnd, idobject, iditem, pmbi as _).ok() } } #[inline] @@ -928,7 +928,7 @@ pub unsafe fn GetMenuDefaultItem(hmenu: HMENU, fbypos: u32, gmdiflags: GET_MENU_ #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetMenuInfo(param0: HMENU, param1: *mut MENUINFO) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetMenuInfo(param0 : HMENU, param1 : *mut MENUINFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetMenuInfo(param0 : HMENU, param1 : *mut MENUINFO) -> windows_core::BOOL); unsafe { GetMenuInfo(param0, param1 as _).ok() } } #[inline] @@ -944,18 +944,18 @@ pub unsafe fn GetMenuItemID(hmenu: HMENU, npos: i32) -> u32 { #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetMenuItemInfoA(hmenu: HMENU, item: u32, fbyposition: bool, lpmii: *mut MENUITEMINFOA) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetMenuItemInfoA(hmenu : HMENU, item : u32, fbyposition : super::super::Foundation:: BOOL, lpmii : *mut MENUITEMINFOA) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetMenuItemInfoA(hmenu : HMENU, item : u32, fbyposition : windows_core::BOOL, lpmii : *mut MENUITEMINFOA) -> windows_core::BOOL); unsafe { GetMenuItemInfoA(hmenu, item, fbyposition.into(), lpmii as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn GetMenuItemInfoW(hmenu: HMENU, item: u32, fbyposition: bool, lpmii: *mut MENUITEMINFOW) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetMenuItemInfoW(hmenu : HMENU, item : u32, fbyposition : super::super::Foundation:: BOOL, lpmii : *mut MENUITEMINFOW) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetMenuItemInfoW(hmenu : HMENU, item : u32, fbyposition : windows_core::BOOL, lpmii : *mut MENUITEMINFOW) -> windows_core::BOOL); unsafe { GetMenuItemInfoW(hmenu, item, fbyposition.into(), lpmii as _).ok() } } #[inline] pub unsafe fn GetMenuItemRect(hwnd: Option, hmenu: HMENU, uitem: u32, lprcitem: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetMenuItemRect(hwnd : super::super::Foundation:: HWND, hmenu : HMENU, uitem : u32, lprcitem : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetMenuItemRect(hwnd : super::super::Foundation:: HWND, hmenu : HMENU, uitem : u32, lprcitem : *mut super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { GetMenuItemRect(hwnd.unwrap_or(core::mem::zeroed()) as _, hmenu, uitem, lprcitem as _).ok() } } #[inline] @@ -974,8 +974,8 @@ pub unsafe fn GetMenuStringW(hmenu: HMENU, uiditem: u32, lpstring: Option<&mut [ unsafe { GetMenuStringW(hmenu, uiditem, core::mem::transmute(lpstring.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpstring.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), flags) } } #[inline] -pub unsafe fn GetMessageA(lpmsg: *mut MSG, hwnd: Option, wmsgfiltermin: u32, wmsgfiltermax: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn GetMessageA(lpmsg : *mut MSG, hwnd : super::super::Foundation:: HWND, wmsgfiltermin : u32, wmsgfiltermax : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetMessageA(lpmsg: *mut MSG, hwnd: Option, wmsgfiltermin: u32, wmsgfiltermax: u32) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn GetMessageA(lpmsg : *mut MSG, hwnd : super::super::Foundation:: HWND, wmsgfiltermin : u32, wmsgfiltermax : u32) -> windows_core::BOOL); unsafe { GetMessageA(lpmsg as _, hwnd.unwrap_or(core::mem::zeroed()) as _, wmsgfiltermin, wmsgfiltermax) } } #[inline] @@ -994,19 +994,19 @@ pub unsafe fn GetMessageTime() -> i32 { unsafe { GetMessageTime() } } #[inline] -pub unsafe fn GetMessageW(lpmsg: *mut MSG, hwnd: Option, wmsgfiltermin: u32, wmsgfiltermax: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn GetMessageW(lpmsg : *mut MSG, hwnd : super::super::Foundation:: HWND, wmsgfiltermin : u32, wmsgfiltermax : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn GetMessageW(lpmsg: *mut MSG, hwnd: Option, wmsgfiltermin: u32, wmsgfiltermax: u32) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn GetMessageW(lpmsg : *mut MSG, hwnd : super::super::Foundation:: HWND, wmsgfiltermin : u32, wmsgfiltermax : u32) -> windows_core::BOOL); unsafe { GetMessageW(lpmsg as _, hwnd.unwrap_or(core::mem::zeroed()) as _, wmsgfiltermin, wmsgfiltermax) } } #[inline] pub unsafe fn GetNextDlgGroupItem(hdlg: super::super::Foundation::HWND, hctl: Option, bprevious: bool) -> windows_core::Result { - windows_targets::link!("user32.dll" "system" fn GetNextDlgGroupItem(hdlg : super::super::Foundation:: HWND, hctl : super::super::Foundation:: HWND, bprevious : super::super::Foundation:: BOOL) -> super::super::Foundation:: HWND); + windows_targets::link!("user32.dll" "system" fn GetNextDlgGroupItem(hdlg : super::super::Foundation:: HWND, hctl : super::super::Foundation:: HWND, bprevious : windows_core::BOOL) -> super::super::Foundation:: HWND); let result__ = unsafe { GetNextDlgGroupItem(hdlg, hctl.unwrap_or(core::mem::zeroed()) as _, bprevious.into()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] pub unsafe fn GetNextDlgTabItem(hdlg: super::super::Foundation::HWND, hctl: Option, bprevious: bool) -> windows_core::Result { - windows_targets::link!("user32.dll" "system" fn GetNextDlgTabItem(hdlg : super::super::Foundation:: HWND, hctl : super::super::Foundation:: HWND, bprevious : super::super::Foundation:: BOOL) -> super::super::Foundation:: HWND); + windows_targets::link!("user32.dll" "system" fn GetNextDlgTabItem(hdlg : super::super::Foundation:: HWND, hctl : super::super::Foundation:: HWND, bprevious : windows_core::BOOL) -> super::super::Foundation:: HWND); let result__ = unsafe { GetNextDlgTabItem(hdlg, hctl.unwrap_or(core::mem::zeroed()) as _, bprevious.into()) }; (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } @@ -1018,12 +1018,12 @@ pub unsafe fn GetParent(hwnd: super::super::Foundation::HWND) -> windows_core::R } #[inline] pub unsafe fn GetPhysicalCursorPos(lppoint: *mut super::super::Foundation::POINT) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetPhysicalCursorPos(lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetPhysicalCursorPos(lppoint : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { GetPhysicalCursorPos(lppoint as _).ok() } } #[inline] pub unsafe fn GetProcessDefaultLayout(pdwdefaultlayout: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetProcessDefaultLayout(pdwdefaultlayout : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetProcessDefaultLayout(pdwdefaultlayout : *mut u32) -> windows_core::BOOL); unsafe { GetProcessDefaultLayout(pdwdefaultlayout as _).ok() } } #[inline] @@ -1049,12 +1049,12 @@ pub unsafe fn GetQueueStatus(flags: QUEUE_STATUS_FLAGS) -> u32 { } #[inline] pub unsafe fn GetScrollBarInfo(hwnd: super::super::Foundation::HWND, idobject: OBJECT_IDENTIFIER, psbi: *mut SCROLLBARINFO) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetScrollBarInfo(hwnd : super::super::Foundation:: HWND, idobject : OBJECT_IDENTIFIER, psbi : *mut SCROLLBARINFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetScrollBarInfo(hwnd : super::super::Foundation:: HWND, idobject : OBJECT_IDENTIFIER, psbi : *mut SCROLLBARINFO) -> windows_core::BOOL); unsafe { GetScrollBarInfo(hwnd, idobject, psbi as _).ok() } } #[inline] pub unsafe fn GetScrollInfo(hwnd: super::super::Foundation::HWND, nbar: SCROLLBAR_CONSTANTS, lpsi: *mut SCROLLINFO) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetScrollInfo(hwnd : super::super::Foundation:: HWND, nbar : SCROLLBAR_CONSTANTS, lpsi : *mut SCROLLINFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetScrollInfo(hwnd : super::super::Foundation:: HWND, nbar : SCROLLBAR_CONSTANTS, lpsi : *mut SCROLLINFO) -> windows_core::BOOL); unsafe { GetScrollInfo(hwnd, nbar, lpsi as _).ok() } } #[inline] @@ -1064,7 +1064,7 @@ pub unsafe fn GetScrollPos(hwnd: super::super::Foundation::HWND, nbar: SCROLLBAR } #[inline] pub unsafe fn GetScrollRange(hwnd: super::super::Foundation::HWND, nbar: SCROLLBAR_CONSTANTS, lpminpos: *mut i32, lpmaxpos: *mut i32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetScrollRange(hwnd : super::super::Foundation:: HWND, nbar : SCROLLBAR_CONSTANTS, lpminpos : *mut i32, lpmaxpos : *mut i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetScrollRange(hwnd : super::super::Foundation:: HWND, nbar : SCROLLBAR_CONSTANTS, lpminpos : *mut i32, lpmaxpos : *mut i32) -> windows_core::BOOL); unsafe { GetScrollRange(hwnd, nbar, lpminpos as _, lpmaxpos as _).ok() } } #[inline] @@ -1079,7 +1079,7 @@ pub unsafe fn GetSubMenu(hmenu: HMENU, npos: i32) -> HMENU { } #[inline] pub unsafe fn GetSystemMenu(hwnd: super::super::Foundation::HWND, brevert: bool) -> HMENU { - windows_targets::link!("user32.dll" "system" fn GetSystemMenu(hwnd : super::super::Foundation:: HWND, brevert : super::super::Foundation:: BOOL) -> HMENU); + windows_targets::link!("user32.dll" "system" fn GetSystemMenu(hwnd : super::super::Foundation:: HWND, brevert : windows_core::BOOL) -> HMENU); unsafe { GetSystemMenu(hwnd, brevert.into()) } } #[inline] @@ -1089,7 +1089,7 @@ pub unsafe fn GetSystemMetrics(nindex: SYSTEM_METRICS_INDEX) -> i32 { } #[inline] pub unsafe fn GetTitleBarInfo(hwnd: super::super::Foundation::HWND, pti: *mut TITLEBARINFO) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetTitleBarInfo(hwnd : super::super::Foundation:: HWND, pti : *mut TITLEBARINFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetTitleBarInfo(hwnd : super::super::Foundation:: HWND, pti : *mut TITLEBARINFO) -> windows_core::BOOL); unsafe { GetTitleBarInfo(hwnd, pti as _).ok() } } #[inline] @@ -1106,12 +1106,12 @@ pub unsafe fn GetWindow(hwnd: super::super::Foundation::HWND, ucmd: GET_WINDOW_C } #[inline] pub unsafe fn GetWindowDisplayAffinity(hwnd: super::super::Foundation::HWND, pdwaffinity: *mut u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetWindowDisplayAffinity(hwnd : super::super::Foundation:: HWND, pdwaffinity : *mut u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetWindowDisplayAffinity(hwnd : super::super::Foundation:: HWND, pdwaffinity : *mut u32) -> windows_core::BOOL); unsafe { GetWindowDisplayAffinity(hwnd, pdwaffinity as _).ok() } } #[inline] pub unsafe fn GetWindowInfo(hwnd: super::super::Foundation::HWND, pwi: *mut WINDOWINFO) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetWindowInfo(hwnd : super::super::Foundation:: HWND, pwi : *mut WINDOWINFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetWindowInfo(hwnd : super::super::Foundation:: HWND, pwi : *mut WINDOWINFO) -> windows_core::BOOL); unsafe { GetWindowInfo(hwnd, pwi as _).ok() } } #[inline] @@ -1152,12 +1152,12 @@ pub unsafe fn GetWindowModuleFileNameW(hwnd: super::super::Foundation::HWND, psz } #[inline] pub unsafe fn GetWindowPlacement(hwnd: super::super::Foundation::HWND, lpwndpl: *mut WINDOWPLACEMENT) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetWindowPlacement(hwnd : super::super::Foundation:: HWND, lpwndpl : *mut WINDOWPLACEMENT) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetWindowPlacement(hwnd : super::super::Foundation:: HWND, lpwndpl : *mut WINDOWPLACEMENT) -> windows_core::BOOL); unsafe { GetWindowPlacement(hwnd, lpwndpl as _).ok() } } #[inline] pub unsafe fn GetWindowRect(hwnd: super::super::Foundation::HWND, lprect: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn GetWindowRect(hwnd : super::super::Foundation:: HWND, lprect : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn GetWindowRect(hwnd : super::super::Foundation:: HWND, lprect : *mut super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { GetWindowRect(hwnd, lprect as _).ok() } } #[inline] @@ -1192,17 +1192,17 @@ pub unsafe fn GetWindowWord(hwnd: super::super::Foundation::HWND, nindex: i32) - } #[inline] pub unsafe fn HideCaret(hwnd: Option) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn HideCaret(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn HideCaret(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { HideCaret(hwnd.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn HiliteMenuItem(hwnd: super::super::Foundation::HWND, hmenu: HMENU, uidhiliteitem: u32, uhilite: u32) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn HiliteMenuItem(hwnd : super::super::Foundation:: HWND, hmenu : HMENU, uidhiliteitem : u32, uhilite : u32) -> super::super::Foundation:: BOOL); +pub unsafe fn HiliteMenuItem(hwnd: super::super::Foundation::HWND, hmenu: HMENU, uidhiliteitem: u32, uhilite: u32) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn HiliteMenuItem(hwnd : super::super::Foundation:: HWND, hmenu : HMENU, uidhiliteitem : u32, uhilite : u32) -> windows_core::BOOL); unsafe { HiliteMenuItem(hwnd, hmenu, uidhiliteitem, uhilite) } } #[inline] -pub unsafe fn InSendMessage() -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn InSendMessage() -> super::super::Foundation:: BOOL); +pub unsafe fn InSendMessage() -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn InSendMessage() -> windows_core::BOOL); unsafe { InSendMessage() } } #[inline] @@ -1219,8 +1219,8 @@ where unsafe { IndexFilePath(resourceindexer, filepath.param().abi(), ppresourceuri as _, pqualifiercount as _, ppqualifiers as _).ok() } } #[inline] -pub unsafe fn InheritWindowMonitor(hwnd: super::super::Foundation::HWND, hwndinherit: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn InheritWindowMonitor(hwnd : super::super::Foundation:: HWND, hwndinherit : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn InheritWindowMonitor(hwnd: super::super::Foundation::HWND, hwndinherit: Option) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn InheritWindowMonitor(hwnd : super::super::Foundation:: HWND, hwndinherit : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { InheritWindowMonitor(hwnd, hwndinherit.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -1228,19 +1228,19 @@ pub unsafe fn InsertMenuA(hmenu: HMENU, uposition: u32, uflags: MENU_ITEM_FL where P4: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn InsertMenuA(hmenu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS, uidnewitem : usize, lpnewitem : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn InsertMenuA(hmenu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS, uidnewitem : usize, lpnewitem : windows_core::PCSTR) -> windows_core::BOOL); unsafe { InsertMenuA(hmenu, uposition, uflags, uidnewitem, lpnewitem.param().abi()).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn InsertMenuItemA(hmenu: HMENU, item: u32, fbyposition: bool, lpmi: *const MENUITEMINFOA) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn InsertMenuItemA(hmenu : HMENU, item : u32, fbyposition : super::super::Foundation:: BOOL, lpmi : *const MENUITEMINFOA) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn InsertMenuItemA(hmenu : HMENU, item : u32, fbyposition : windows_core::BOOL, lpmi : *const MENUITEMINFOA) -> windows_core::BOOL); unsafe { InsertMenuItemA(hmenu, item, fbyposition.into(), lpmi).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn InsertMenuItemW(hmenu: HMENU, item: u32, fbyposition: bool, lpmi: *const MENUITEMINFOW) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn InsertMenuItemW(hmenu : HMENU, item : u32, fbyposition : super::super::Foundation:: BOOL, lpmi : *const MENUITEMINFOW) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn InsertMenuItemW(hmenu : HMENU, item : u32, fbyposition : windows_core::BOOL, lpmi : *const MENUITEMINFOW) -> windows_core::BOOL); unsafe { InsertMenuItemW(hmenu, item, fbyposition.into(), lpmi).ok() } } #[inline] @@ -1248,7 +1248,7 @@ pub unsafe fn InsertMenuW(hmenu: HMENU, uposition: u32, uflags: MENU_ITEM_FL where P4: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn InsertMenuW(hmenu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS, uidnewitem : usize, lpnewitem : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn InsertMenuW(hmenu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS, uidnewitem : usize, lpnewitem : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { InsertMenuW(hmenu, uposition, uflags, uidnewitem, lpnewitem.param().abi()).ok() } } #[inline] @@ -1258,112 +1258,112 @@ pub unsafe fn InternalGetWindowText(hwnd: super::super::Foundation::HWND, pstrin } #[inline] pub unsafe fn IsCharAlphaA(ch: i8) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn IsCharAlphaA(ch : i8) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn IsCharAlphaA(ch : i8) -> windows_core::BOOL); unsafe { IsCharAlphaA(ch).ok() } } #[inline] pub unsafe fn IsCharAlphaNumericA(ch: i8) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn IsCharAlphaNumericA(ch : i8) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn IsCharAlphaNumericA(ch : i8) -> windows_core::BOOL); unsafe { IsCharAlphaNumericA(ch).ok() } } #[inline] pub unsafe fn IsCharAlphaNumericW(ch: u16) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn IsCharAlphaNumericW(ch : u16) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn IsCharAlphaNumericW(ch : u16) -> windows_core::BOOL); unsafe { IsCharAlphaNumericW(ch).ok() } } #[inline] pub unsafe fn IsCharAlphaW(ch: u16) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn IsCharAlphaW(ch : u16) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn IsCharAlphaW(ch : u16) -> windows_core::BOOL); unsafe { IsCharAlphaW(ch).ok() } } #[inline] pub unsafe fn IsCharLowerA(ch: i8) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn IsCharLowerA(ch : i8) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn IsCharLowerA(ch : i8) -> windows_core::BOOL); unsafe { IsCharLowerA(ch).ok() } } #[inline] pub unsafe fn IsCharUpperA(ch: i8) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn IsCharUpperA(ch : i8) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn IsCharUpperA(ch : i8) -> windows_core::BOOL); unsafe { IsCharUpperA(ch).ok() } } #[inline] pub unsafe fn IsCharUpperW(ch: u16) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn IsCharUpperW(ch : u16) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn IsCharUpperW(ch : u16) -> windows_core::BOOL); unsafe { IsCharUpperW(ch).ok() } } #[inline] -pub unsafe fn IsChild(hwndparent: super::super::Foundation::HWND, hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsChild(hwndparent : super::super::Foundation:: HWND, hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn IsChild(hwndparent: super::super::Foundation::HWND, hwnd: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsChild(hwndparent : super::super::Foundation:: HWND, hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { IsChild(hwndparent, hwnd) } } #[inline] -pub unsafe fn IsDialogMessageA(hdlg: super::super::Foundation::HWND, lpmsg: *const MSG) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsDialogMessageA(hdlg : super::super::Foundation:: HWND, lpmsg : *const MSG) -> super::super::Foundation:: BOOL); +pub unsafe fn IsDialogMessageA(hdlg: super::super::Foundation::HWND, lpmsg: *const MSG) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsDialogMessageA(hdlg : super::super::Foundation:: HWND, lpmsg : *const MSG) -> windows_core::BOOL); unsafe { IsDialogMessageA(hdlg, lpmsg) } } #[inline] -pub unsafe fn IsDialogMessageW(hdlg: super::super::Foundation::HWND, lpmsg: *const MSG) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsDialogMessageW(hdlg : super::super::Foundation:: HWND, lpmsg : *const MSG) -> super::super::Foundation:: BOOL); +pub unsafe fn IsDialogMessageW(hdlg: super::super::Foundation::HWND, lpmsg: *const MSG) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsDialogMessageW(hdlg : super::super::Foundation:: HWND, lpmsg : *const MSG) -> windows_core::BOOL); unsafe { IsDialogMessageW(hdlg, lpmsg) } } #[inline] -pub unsafe fn IsGUIThread(bconvert: bool) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsGUIThread(bconvert : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); +pub unsafe fn IsGUIThread(bconvert: bool) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsGUIThread(bconvert : windows_core::BOOL) -> windows_core::BOOL); unsafe { IsGUIThread(bconvert.into()) } } #[inline] -pub unsafe fn IsHungAppWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsHungAppWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn IsHungAppWindow(hwnd: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsHungAppWindow(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { IsHungAppWindow(hwnd) } } #[inline] -pub unsafe fn IsIconic(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsIconic(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn IsIconic(hwnd: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsIconic(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { IsIconic(hwnd) } } #[inline] -pub unsafe fn IsMenu(hmenu: HMENU) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsMenu(hmenu : HMENU) -> super::super::Foundation:: BOOL); +pub unsafe fn IsMenu(hmenu: HMENU) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsMenu(hmenu : HMENU) -> windows_core::BOOL); unsafe { IsMenu(hmenu) } } #[inline] -pub unsafe fn IsProcessDPIAware() -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsProcessDPIAware() -> super::super::Foundation:: BOOL); +pub unsafe fn IsProcessDPIAware() -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsProcessDPIAware() -> windows_core::BOOL); unsafe { IsProcessDPIAware() } } #[inline] -pub unsafe fn IsWindow(hwnd: Option) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn IsWindow(hwnd: Option) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsWindow(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { IsWindow(hwnd.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn IsWindowArranged(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsWindowArranged(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn IsWindowArranged(hwnd: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsWindowArranged(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { IsWindowArranged(hwnd) } } #[inline] -pub unsafe fn IsWindowUnicode(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsWindowUnicode(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn IsWindowUnicode(hwnd: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsWindowUnicode(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { IsWindowUnicode(hwnd) } } #[inline] -pub unsafe fn IsWindowVisible(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsWindowVisible(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn IsWindowVisible(hwnd: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsWindowVisible(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { IsWindowVisible(hwnd) } } #[inline] -pub unsafe fn IsWow64Message() -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsWow64Message() -> super::super::Foundation:: BOOL); +pub unsafe fn IsWow64Message() -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsWow64Message() -> windows_core::BOOL); unsafe { IsWow64Message() } } #[inline] -pub unsafe fn IsZoomed(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn IsZoomed(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn IsZoomed(hwnd: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn IsZoomed(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { IsZoomed(hwnd) } } #[inline] pub unsafe fn KillTimer(hwnd: Option, uidevent: usize) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn KillTimer(hwnd : super::super::Foundation:: HWND, uidevent : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn KillTimer(hwnd : super::super::Foundation:: HWND, uidevent : usize) -> windows_core::BOOL); unsafe { KillTimer(hwnd.unwrap_or(core::mem::zeroed()) as _, uidevent).ok() } } #[inline] @@ -1498,27 +1498,27 @@ pub unsafe fn LoadStringW(hinstance: Option } #[inline] pub unsafe fn LockSetForegroundWindow(ulockcode: FOREGROUND_WINDOW_LOCK_CODE) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn LockSetForegroundWindow(ulockcode : FOREGROUND_WINDOW_LOCK_CODE) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn LockSetForegroundWindow(ulockcode : FOREGROUND_WINDOW_LOCK_CODE) -> windows_core::BOOL); unsafe { LockSetForegroundWindow(ulockcode).ok() } } #[inline] -pub unsafe fn LogicalToPhysicalPoint(hwnd: super::super::Foundation::HWND, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn LogicalToPhysicalPoint(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn LogicalToPhysicalPoint(hwnd: super::super::Foundation::HWND, lppoint: *mut super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn LogicalToPhysicalPoint(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { LogicalToPhysicalPoint(hwnd, lppoint as _) } } #[inline] pub unsafe fn LookupIconIdFromDirectory(presbits: *const u8, ficon: bool) -> i32 { - windows_targets::link!("user32.dll" "system" fn LookupIconIdFromDirectory(presbits : *const u8, ficon : super::super::Foundation:: BOOL) -> i32); + windows_targets::link!("user32.dll" "system" fn LookupIconIdFromDirectory(presbits : *const u8, ficon : windows_core::BOOL) -> i32); unsafe { LookupIconIdFromDirectory(presbits, ficon.into()) } } #[inline] pub unsafe fn LookupIconIdFromDirectoryEx(presbits: *const u8, ficon: bool, cxdesired: i32, cydesired: i32, flags: IMAGE_FLAGS) -> i32 { - windows_targets::link!("user32.dll" "system" fn LookupIconIdFromDirectoryEx(presbits : *const u8, ficon : super::super::Foundation:: BOOL, cxdesired : i32, cydesired : i32, flags : IMAGE_FLAGS) -> i32); + windows_targets::link!("user32.dll" "system" fn LookupIconIdFromDirectoryEx(presbits : *const u8, ficon : windows_core::BOOL, cxdesired : i32, cydesired : i32, flags : IMAGE_FLAGS) -> i32); unsafe { LookupIconIdFromDirectoryEx(presbits, ficon.into(), cxdesired, cydesired, flags) } } #[inline] pub unsafe fn MapDialogRect(hdlg: super::super::Foundation::HWND, lprect: *mut super::super::Foundation::RECT) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn MapDialogRect(hdlg : super::super::Foundation:: HWND, lprect : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn MapDialogRect(hdlg : super::super::Foundation:: HWND, lprect : *mut super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { MapDialogRect(hdlg, lprect as _).ok() } } #[inline] @@ -1579,7 +1579,7 @@ pub unsafe fn ModifyMenuA(hmnu: HMENU, uposition: u32, uflags: MENU_ITEM_FLA where P4: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn ModifyMenuA(hmnu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS, uidnewitem : usize, lpnewitem : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn ModifyMenuA(hmnu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS, uidnewitem : usize, lpnewitem : windows_core::PCSTR) -> windows_core::BOOL); unsafe { ModifyMenuA(hmnu, uposition, uflags, uidnewitem, lpnewitem.param().abi()).ok() } } #[inline] @@ -1587,12 +1587,12 @@ pub unsafe fn ModifyMenuW(hmnu: HMENU, uposition: u32, uflags: MENU_ITEM_FLA where P4: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn ModifyMenuW(hmnu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS, uidnewitem : usize, lpnewitem : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn ModifyMenuW(hmnu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS, uidnewitem : usize, lpnewitem : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { ModifyMenuW(hmnu, uposition, uflags, uidnewitem, lpnewitem.param().abi()).ok() } } #[inline] pub unsafe fn MoveWindow(hwnd: super::super::Foundation::HWND, x: i32, y: i32, nwidth: i32, nheight: i32, brepaint: bool) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn MoveWindow(hwnd : super::super::Foundation:: HWND, x : i32, y : i32, nwidth : i32, nheight : i32, brepaint : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn MoveWindow(hwnd : super::super::Foundation:: HWND, x : i32, y : i32, nwidth : i32, nheight : i32, brepaint : windows_core::BOOL) -> windows_core::BOOL); unsafe { MoveWindow(hwnd, x, y, nwidth, nheight, brepaint.into()).ok() } } #[inline] @@ -1788,7 +1788,7 @@ pub unsafe fn MrmPeekResourceIndexerMessages(handle: MrmResourceIndexerHandle, m } #[inline] pub unsafe fn MsgWaitForMultipleObjects(phandles: Option<&[super::super::Foundation::HANDLE]>, fwaitall: bool, dwmilliseconds: u32, dwwakemask: QUEUE_STATUS_FLAGS) -> super::super::Foundation::WAIT_EVENT { - windows_targets::link!("user32.dll" "system" fn MsgWaitForMultipleObjects(ncount : u32, phandles : *const super::super::Foundation:: HANDLE, fwaitall : super::super::Foundation:: BOOL, dwmilliseconds : u32, dwwakemask : QUEUE_STATUS_FLAGS) -> super::super::Foundation:: WAIT_EVENT); + windows_targets::link!("user32.dll" "system" fn MsgWaitForMultipleObjects(ncount : u32, phandles : *const super::super::Foundation:: HANDLE, fwaitall : windows_core::BOOL, dwmilliseconds : u32, dwwakemask : QUEUE_STATUS_FLAGS) -> super::super::Foundation:: WAIT_EVENT); unsafe { MsgWaitForMultipleObjects(phandles.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(phandles.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), fwaitall.into(), dwmilliseconds, dwwakemask) } } #[inline] @@ -1801,7 +1801,7 @@ pub unsafe fn OemToCharA(psrc: P0, pdst: windows_core::PSTR) -> windows_core where P0: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn OemToCharA(psrc : windows_core::PCSTR, pdst : windows_core::PSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn OemToCharA(psrc : windows_core::PCSTR, pdst : windows_core::PSTR) -> windows_core::BOOL); unsafe { OemToCharA(psrc.param().abi(), core::mem::transmute(pdst)).ok() } } #[inline] @@ -1809,7 +1809,7 @@ pub unsafe fn OemToCharBuffA(lpszsrc: P0, lpszdst: &mut [u8]) -> windows_cor where P0: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn OemToCharBuffA(lpszsrc : windows_core::PCSTR, lpszdst : windows_core::PSTR, cchdstlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn OemToCharBuffA(lpszsrc : windows_core::PCSTR, lpszdst : windows_core::PSTR, cchdstlength : u32) -> windows_core::BOOL); unsafe { OemToCharBuffA(lpszsrc.param().abi(), core::mem::transmute(lpszdst.as_ptr()), lpszdst.len().try_into().unwrap()).ok() } } #[inline] @@ -1817,7 +1817,7 @@ pub unsafe fn OemToCharBuffW(lpszsrc: P0, lpszdst: &mut [u16]) -> windows_co where P0: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn OemToCharBuffW(lpszsrc : windows_core::PCSTR, lpszdst : windows_core::PWSTR, cchdstlength : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn OemToCharBuffW(lpszsrc : windows_core::PCSTR, lpszdst : windows_core::PWSTR, cchdstlength : u32) -> windows_core::BOOL); unsafe { OemToCharBuffW(lpszsrc.param().abi(), core::mem::transmute(lpszdst.as_ptr()), lpszdst.len().try_into().unwrap()).ok() } } #[inline] @@ -1825,37 +1825,37 @@ pub unsafe fn OemToCharW(psrc: P0, pdst: windows_core::PWSTR) -> windows_cor where P0: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn OemToCharW(psrc : windows_core::PCSTR, pdst : windows_core::PWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn OemToCharW(psrc : windows_core::PCSTR, pdst : windows_core::PWSTR) -> windows_core::BOOL); unsafe { OemToCharW(psrc.param().abi(), core::mem::transmute(pdst)).ok() } } #[inline] pub unsafe fn OpenIcon(hwnd: super::super::Foundation::HWND) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn OpenIcon(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn OpenIcon(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { OpenIcon(hwnd).ok() } } #[inline] -pub unsafe fn PeekMessageA(lpmsg: *mut MSG, hwnd: Option, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: PEEK_MESSAGE_REMOVE_TYPE) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn PeekMessageA(lpmsg : *mut MSG, hwnd : super::super::Foundation:: HWND, wmsgfiltermin : u32, wmsgfiltermax : u32, wremovemsg : PEEK_MESSAGE_REMOVE_TYPE) -> super::super::Foundation:: BOOL); +pub unsafe fn PeekMessageA(lpmsg: *mut MSG, hwnd: Option, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: PEEK_MESSAGE_REMOVE_TYPE) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn PeekMessageA(lpmsg : *mut MSG, hwnd : super::super::Foundation:: HWND, wmsgfiltermin : u32, wmsgfiltermax : u32, wremovemsg : PEEK_MESSAGE_REMOVE_TYPE) -> windows_core::BOOL); unsafe { PeekMessageA(lpmsg as _, hwnd.unwrap_or(core::mem::zeroed()) as _, wmsgfiltermin, wmsgfiltermax, wremovemsg) } } #[inline] -pub unsafe fn PeekMessageW(lpmsg: *mut MSG, hwnd: Option, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: PEEK_MESSAGE_REMOVE_TYPE) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn PeekMessageW(lpmsg : *mut MSG, hwnd : super::super::Foundation:: HWND, wmsgfiltermin : u32, wmsgfiltermax : u32, wremovemsg : PEEK_MESSAGE_REMOVE_TYPE) -> super::super::Foundation:: BOOL); +pub unsafe fn PeekMessageW(lpmsg: *mut MSG, hwnd: Option, wmsgfiltermin: u32, wmsgfiltermax: u32, wremovemsg: PEEK_MESSAGE_REMOVE_TYPE) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn PeekMessageW(lpmsg : *mut MSG, hwnd : super::super::Foundation:: HWND, wmsgfiltermin : u32, wmsgfiltermax : u32, wremovemsg : PEEK_MESSAGE_REMOVE_TYPE) -> windows_core::BOOL); unsafe { PeekMessageW(lpmsg as _, hwnd.unwrap_or(core::mem::zeroed()) as _, wmsgfiltermin, wmsgfiltermax, wremovemsg) } } #[inline] -pub unsafe fn PhysicalToLogicalPoint(hwnd: super::super::Foundation::HWND, lppoint: *mut super::super::Foundation::POINT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn PhysicalToLogicalPoint(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> super::super::Foundation:: BOOL); +pub unsafe fn PhysicalToLogicalPoint(hwnd: super::super::Foundation::HWND, lppoint: *mut super::super::Foundation::POINT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn PhysicalToLogicalPoint(hwnd : super::super::Foundation:: HWND, lppoint : *mut super::super::Foundation:: POINT) -> windows_core::BOOL); unsafe { PhysicalToLogicalPoint(hwnd, lppoint as _) } } #[inline] pub unsafe fn PostMessageA(hwnd: Option, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn PostMessageA(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn PostMessageA(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { PostMessageA(hwnd.unwrap_or(core::mem::zeroed()) as _, msg, wparam, lparam).ok() } } #[inline] pub unsafe fn PostMessageW(hwnd: Option, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn PostMessageW(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn PostMessageW(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { PostMessageW(hwnd.unwrap_or(core::mem::zeroed()) as _, msg, wparam, lparam).ok() } } #[inline] @@ -1865,12 +1865,12 @@ pub unsafe fn PostQuitMessage(nexitcode: i32) { } #[inline] pub unsafe fn PostThreadMessageA(idthread: u32, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn PostThreadMessageA(idthread : u32, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn PostThreadMessageA(idthread : u32, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { PostThreadMessageA(idthread, msg, wparam, lparam).ok() } } #[inline] pub unsafe fn PostThreadMessageW(idthread: u32, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn PostThreadMessageW(idthread : u32, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn PostThreadMessageW(idthread : u32, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { PostThreadMessageW(idthread, msg, wparam, lparam).ok() } } #[inline] @@ -1935,13 +1935,13 @@ pub unsafe fn RegisterDeviceNotificationW(hrecipient: super::super::Foundation:: (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] -pub unsafe fn RegisterForTooltipDismissNotification(hwnd: super::super::Foundation::HWND, tdflags: TOOLTIP_DISMISS_FLAGS) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn RegisterForTooltipDismissNotification(hwnd : super::super::Foundation:: HWND, tdflags : TOOLTIP_DISMISS_FLAGS) -> super::super::Foundation:: BOOL); +pub unsafe fn RegisterForTooltipDismissNotification(hwnd: super::super::Foundation::HWND, tdflags: TOOLTIP_DISMISS_FLAGS) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn RegisterForTooltipDismissNotification(hwnd : super::super::Foundation:: HWND, tdflags : TOOLTIP_DISMISS_FLAGS) -> windows_core::BOOL); unsafe { RegisterForTooltipDismissNotification(hwnd, tdflags) } } #[inline] -pub unsafe fn RegisterShellHookWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn RegisterShellHookWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn RegisterShellHookWindow(hwnd: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn RegisterShellHookWindow(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { RegisterShellHookWindow(hwnd) } } #[inline] @@ -1962,7 +1962,7 @@ where } #[inline] pub unsafe fn RemoveMenu(hmenu: HMENU, uposition: u32, uflags: MENU_ITEM_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn RemoveMenu(hmenu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn RemoveMenu(hmenu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS) -> windows_core::BOOL); unsafe { RemoveMenu(hmenu, uposition, uflags).ok() } } #[inline] @@ -1984,19 +1984,19 @@ where (!result__.is_invalid()).then_some(result__).ok_or_else(windows_core::Error::from_win32) } #[inline] -pub unsafe fn ReplyMessage(lresult: super::super::Foundation::LRESULT) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn ReplyMessage(lresult : super::super::Foundation:: LRESULT) -> super::super::Foundation:: BOOL); +pub unsafe fn ReplyMessage(lresult: super::super::Foundation::LRESULT) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn ReplyMessage(lresult : super::super::Foundation:: LRESULT) -> windows_core::BOOL); unsafe { ReplyMessage(lresult) } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn ScrollDC(hdc: super::super::Graphics::Gdi::HDC, dx: i32, dy: i32, lprcscroll: Option<*const super::super::Foundation::RECT>, lprcclip: Option<*const super::super::Foundation::RECT>, hrgnupdate: Option, lprcupdate: Option<*mut super::super::Foundation::RECT>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn ScrollDC(hdc : super::super::Graphics::Gdi:: HDC, dx : i32, dy : i32, lprcscroll : *const super::super::Foundation:: RECT, lprcclip : *const super::super::Foundation:: RECT, hrgnupdate : super::super::Graphics::Gdi:: HRGN, lprcupdate : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn ScrollDC(hdc : super::super::Graphics::Gdi:: HDC, dx : i32, dy : i32, lprcscroll : *const super::super::Foundation:: RECT, lprcclip : *const super::super::Foundation:: RECT, hrgnupdate : super::super::Graphics::Gdi:: HRGN, lprcupdate : *mut super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { ScrollDC(hdc, dx, dy, lprcscroll.unwrap_or(core::mem::zeroed()) as _, lprcclip.unwrap_or(core::mem::zeroed()) as _, hrgnupdate.unwrap_or(core::mem::zeroed()) as _, lprcupdate.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn ScrollWindow(hwnd: super::super::Foundation::HWND, xamount: i32, yamount: i32, lprect: Option<*const super::super::Foundation::RECT>, lpcliprect: Option<*const super::super::Foundation::RECT>) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn ScrollWindow(hwnd : super::super::Foundation:: HWND, xamount : i32, yamount : i32, lprect : *const super::super::Foundation:: RECT, lpcliprect : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn ScrollWindow(hwnd : super::super::Foundation:: HWND, xamount : i32, yamount : i32, lprect : *const super::super::Foundation:: RECT, lpcliprect : *const super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { ScrollWindow(hwnd, xamount, yamount, lprect.unwrap_or(core::mem::zeroed()) as _, lpcliprect.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] @@ -2022,12 +2022,12 @@ pub unsafe fn SendMessageA(hwnd: super::super::Foundation::HWND, msg: u32, wpara } #[inline] pub unsafe fn SendMessageCallbackA(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, lpresultcallback: SENDASYNCPROC, dwdata: usize) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SendMessageCallbackA(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM, lpresultcallback : SENDASYNCPROC, dwdata : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SendMessageCallbackA(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM, lpresultcallback : SENDASYNCPROC, dwdata : usize) -> windows_core::BOOL); unsafe { SendMessageCallbackA(hwnd, msg, wparam, lparam, lpresultcallback, dwdata).ok() } } #[inline] pub unsafe fn SendMessageCallbackW(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, lpresultcallback: SENDASYNCPROC, dwdata: usize) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SendMessageCallbackW(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM, lpresultcallback : SENDASYNCPROC, dwdata : usize) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SendMessageCallbackW(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM, lpresultcallback : SENDASYNCPROC, dwdata : usize) -> windows_core::BOOL); unsafe { SendMessageCallbackW(hwnd, msg, wparam, lparam, lpresultcallback, dwdata).ok() } } #[inline] @@ -2047,27 +2047,27 @@ pub unsafe fn SendMessageW(hwnd: super::super::Foundation::HWND, msg: u32, wpara } #[inline] pub unsafe fn SendNotifyMessageA(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SendNotifyMessageA(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SendNotifyMessageA(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { SendNotifyMessageA(hwnd, msg, wparam, lparam).ok() } } #[inline] pub unsafe fn SendNotifyMessageW(hwnd: super::super::Foundation::HWND, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SendNotifyMessageW(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SendNotifyMessageW(hwnd : super::super::Foundation:: HWND, msg : u32, wparam : super::super::Foundation:: WPARAM, lparam : super::super::Foundation:: LPARAM) -> windows_core::BOOL); unsafe { SendNotifyMessageW(hwnd, msg, wparam, lparam).ok() } } #[inline] -pub unsafe fn SetAdditionalForegroundBoostProcesses(toplevelwindow: super::super::Foundation::HWND, processhandlearray: &[super::super::Foundation::HANDLE]) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn SetAdditionalForegroundBoostProcesses(toplevelwindow : super::super::Foundation:: HWND, processhandlecount : u32, processhandlearray : *const super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); +pub unsafe fn SetAdditionalForegroundBoostProcesses(toplevelwindow: super::super::Foundation::HWND, processhandlearray: &[super::super::Foundation::HANDLE]) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn SetAdditionalForegroundBoostProcesses(toplevelwindow : super::super::Foundation:: HWND, processhandlecount : u32, processhandlearray : *const super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SetAdditionalForegroundBoostProcesses(toplevelwindow, processhandlearray.len().try_into().unwrap(), core::mem::transmute(processhandlearray.as_ptr())) } } #[inline] pub unsafe fn SetCaretBlinkTime(umseconds: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetCaretBlinkTime(umseconds : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetCaretBlinkTime(umseconds : u32) -> windows_core::BOOL); unsafe { SetCaretBlinkTime(umseconds).ok() } } #[inline] pub unsafe fn SetCaretPos(x: i32, y: i32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetCaretPos(x : i32, y : i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetCaretPos(x : i32, y : i32) -> windows_core::BOOL); unsafe { SetCaretPos(x, y).ok() } } #[inline] @@ -2109,7 +2109,7 @@ pub unsafe fn SetCursor(hcursor: Option) -> HCURSOR { } #[inline] pub unsafe fn SetCursorPos(x: i32, y: i32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetCursorPos(x : i32, y : i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetCursorPos(x : i32, y : i32) -> windows_core::BOOL); unsafe { SetCursorPos(x, y).ok() } } #[inline] @@ -2119,7 +2119,7 @@ pub unsafe fn SetDebugErrorLevel(dwlevel: u32) { } #[inline] pub unsafe fn SetDlgItemInt(hdlg: super::super::Foundation::HWND, niddlgitem: i32, uvalue: u32, bsigned: bool) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetDlgItemInt(hdlg : super::super::Foundation:: HWND, niddlgitem : i32, uvalue : u32, bsigned : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetDlgItemInt(hdlg : super::super::Foundation:: HWND, niddlgitem : i32, uvalue : u32, bsigned : windows_core::BOOL) -> windows_core::BOOL); unsafe { SetDlgItemInt(hdlg, niddlgitem, uvalue, bsigned.into()).ok() } } #[inline] @@ -2127,7 +2127,7 @@ pub unsafe fn SetDlgItemTextA(hdlg: super::super::Foundation::HWND, niddlgit where P2: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn SetDlgItemTextA(hdlg : super::super::Foundation:: HWND, niddlgitem : i32, lpstring : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetDlgItemTextA(hdlg : super::super::Foundation:: HWND, niddlgitem : i32, lpstring : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetDlgItemTextA(hdlg, niddlgitem, lpstring.param().abi()).ok() } } #[inline] @@ -2135,51 +2135,51 @@ pub unsafe fn SetDlgItemTextW(hdlg: super::super::Foundation::HWND, niddlgit where P2: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn SetDlgItemTextW(hdlg : super::super::Foundation:: HWND, niddlgitem : i32, lpstring : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetDlgItemTextW(hdlg : super::super::Foundation:: HWND, niddlgitem : i32, lpstring : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetDlgItemTextW(hdlg, niddlgitem, lpstring.param().abi()).ok() } } #[inline] -pub unsafe fn SetForegroundWindow(hwnd: super::super::Foundation::HWND) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn SetForegroundWindow(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); +pub unsafe fn SetForegroundWindow(hwnd: super::super::Foundation::HWND) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn SetForegroundWindow(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { SetForegroundWindow(hwnd) } } #[inline] pub unsafe fn SetLayeredWindowAttributes(hwnd: super::super::Foundation::HWND, crkey: super::super::Foundation::COLORREF, balpha: u8, dwflags: LAYERED_WINDOW_ATTRIBUTES_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetLayeredWindowAttributes(hwnd : super::super::Foundation:: HWND, crkey : super::super::Foundation:: COLORREF, balpha : u8, dwflags : LAYERED_WINDOW_ATTRIBUTES_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetLayeredWindowAttributes(hwnd : super::super::Foundation:: HWND, crkey : super::super::Foundation:: COLORREF, balpha : u8, dwflags : LAYERED_WINDOW_ATTRIBUTES_FLAGS) -> windows_core::BOOL); unsafe { SetLayeredWindowAttributes(hwnd, crkey, balpha, dwflags).ok() } } #[inline] pub unsafe fn SetMenu(hwnd: super::super::Foundation::HWND, hmenu: Option) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetMenu(hwnd : super::super::Foundation:: HWND, hmenu : HMENU) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetMenu(hwnd : super::super::Foundation:: HWND, hmenu : HMENU) -> windows_core::BOOL); unsafe { SetMenu(hwnd, hmenu.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetMenuDefaultItem(hmenu: HMENU, uitem: u32, fbypos: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetMenuDefaultItem(hmenu : HMENU, uitem : u32, fbypos : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetMenuDefaultItem(hmenu : HMENU, uitem : u32, fbypos : u32) -> windows_core::BOOL); unsafe { SetMenuDefaultItem(hmenu, uitem, fbypos).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetMenuInfo(param0: HMENU, param1: *const MENUINFO) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetMenuInfo(param0 : HMENU, param1 : *const MENUINFO) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetMenuInfo(param0 : HMENU, param1 : *const MENUINFO) -> windows_core::BOOL); unsafe { SetMenuInfo(param0, param1).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetMenuItemBitmaps(hmenu: HMENU, uposition: u32, uflags: MENU_ITEM_FLAGS, hbitmapunchecked: Option, hbitmapchecked: Option) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetMenuItemBitmaps(hmenu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS, hbitmapunchecked : super::super::Graphics::Gdi:: HBITMAP, hbitmapchecked : super::super::Graphics::Gdi:: HBITMAP) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetMenuItemBitmaps(hmenu : HMENU, uposition : u32, uflags : MENU_ITEM_FLAGS, hbitmapunchecked : super::super::Graphics::Gdi:: HBITMAP, hbitmapchecked : super::super::Graphics::Gdi:: HBITMAP) -> windows_core::BOOL); unsafe { SetMenuItemBitmaps(hmenu, uposition, uflags, hbitmapunchecked.unwrap_or(core::mem::zeroed()) as _, hbitmapchecked.unwrap_or(core::mem::zeroed()) as _).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetMenuItemInfoA(hmenu: HMENU, item: u32, fbypositon: bool, lpmii: *const MENUITEMINFOA) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetMenuItemInfoA(hmenu : HMENU, item : u32, fbypositon : super::super::Foundation:: BOOL, lpmii : *const MENUITEMINFOA) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetMenuItemInfoA(hmenu : HMENU, item : u32, fbypositon : windows_core::BOOL, lpmii : *const MENUITEMINFOA) -> windows_core::BOOL); unsafe { SetMenuItemInfoA(hmenu, item, fbypositon.into(), lpmii).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn SetMenuItemInfoW(hmenu: HMENU, item: u32, fbypositon: bool, lpmii: *const MENUITEMINFOW) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetMenuItemInfoW(hmenu : HMENU, item : u32, fbypositon : super::super::Foundation:: BOOL, lpmii : *const MENUITEMINFOW) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetMenuItemInfoW(hmenu : HMENU, item : u32, fbypositon : windows_core::BOOL, lpmii : *const MENUITEMINFOW) -> windows_core::BOOL); unsafe { SetMenuItemInfoW(hmenu, item, fbypositon.into(), lpmii).ok() } } #[inline] @@ -2188,8 +2188,8 @@ pub unsafe fn SetMessageExtraInfo(lparam: super::super::Foundation::LPARAM) -> s unsafe { SetMessageExtraInfo(lparam) } } #[inline] -pub unsafe fn SetMessageQueue(cmessagesmax: i32) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn SetMessageQueue(cmessagesmax : i32) -> super::super::Foundation:: BOOL); +pub unsafe fn SetMessageQueue(cmessagesmax: i32) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn SetMessageQueue(cmessagesmax : i32) -> windows_core::BOOL); unsafe { SetMessageQueue(cmessagesmax) } } #[inline] @@ -2200,17 +2200,17 @@ pub unsafe fn SetParent(hwndchild: super::super::Foundation::HWND, hwndnewparent } #[inline] pub unsafe fn SetPhysicalCursorPos(x: i32, y: i32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetPhysicalCursorPos(x : i32, y : i32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetPhysicalCursorPos(x : i32, y : i32) -> windows_core::BOOL); unsafe { SetPhysicalCursorPos(x, y).ok() } } #[inline] -pub unsafe fn SetProcessDPIAware() -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn SetProcessDPIAware() -> super::super::Foundation:: BOOL); +pub unsafe fn SetProcessDPIAware() -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn SetProcessDPIAware() -> windows_core::BOOL); unsafe { SetProcessDPIAware() } } #[inline] pub unsafe fn SetProcessDefaultLayout(dwdefaultlayout: u32) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetProcessDefaultLayout(dwdefaultlayout : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetProcessDefaultLayout(dwdefaultlayout : u32) -> windows_core::BOOL); unsafe { SetProcessDefaultLayout(dwdefaultlayout).ok() } } #[inline] @@ -2218,7 +2218,7 @@ pub unsafe fn SetPropA(hwnd: super::super::Foundation::HWND, lpstring: P1, h where P1: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn SetPropA(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PCSTR, hdata : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetPropA(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PCSTR, hdata : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SetPropA(hwnd, lpstring.param().abi(), hdata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2226,12 +2226,12 @@ pub unsafe fn SetPropW(hwnd: super::super::Foundation::HWND, lpstring: P1, h where P1: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn SetPropW(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PCWSTR, hdata : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetPropW(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PCWSTR, hdata : super::super::Foundation:: HANDLE) -> windows_core::BOOL); unsafe { SetPropW(hwnd, lpstring.param().abi(), hdata.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn SetSystemCursor(hcur: HCURSOR, id: SYSTEM_CURSOR_ID) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetSystemCursor(hcur : HCURSOR, id : SYSTEM_CURSOR_ID) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetSystemCursor(hcur : HCURSOR, id : SYSTEM_CURSOR_ID) -> windows_core::BOOL); unsafe { SetSystemCursor(hcur, id).ok() } } #[inline] @@ -2241,7 +2241,7 @@ pub unsafe fn SetTimer(hwnd: Option, nidevent: u } #[inline] pub unsafe fn SetWindowDisplayAffinity(hwnd: super::super::Foundation::HWND, dwaffinity: WINDOW_DISPLAY_AFFINITY) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetWindowDisplayAffinity(hwnd : super::super::Foundation:: HWND, dwaffinity : WINDOW_DISPLAY_AFFINITY) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetWindowDisplayAffinity(hwnd : super::super::Foundation:: HWND, dwaffinity : WINDOW_DISPLAY_AFFINITY) -> windows_core::BOOL); unsafe { SetWindowDisplayAffinity(hwnd, dwaffinity).ok() } } #[inline] @@ -2272,12 +2272,12 @@ pub unsafe fn SetWindowLongW(hwnd: super::super::Foundation::HWND, nindex: WINDO } #[inline] pub unsafe fn SetWindowPlacement(hwnd: super::super::Foundation::HWND, lpwndpl: *const WINDOWPLACEMENT) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetWindowPlacement(hwnd : super::super::Foundation:: HWND, lpwndpl : *const WINDOWPLACEMENT) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetWindowPlacement(hwnd : super::super::Foundation:: HWND, lpwndpl : *const WINDOWPLACEMENT) -> windows_core::BOOL); unsafe { SetWindowPlacement(hwnd, lpwndpl).ok() } } #[inline] pub unsafe fn SetWindowPos(hwnd: super::super::Foundation::HWND, hwndinsertafter: Option, x: i32, y: i32, cx: i32, cy: i32, uflags: SET_WINDOW_POS_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SetWindowPos(hwnd : super::super::Foundation:: HWND, hwndinsertafter : super::super::Foundation:: HWND, x : i32, y : i32, cx : i32, cy : i32, uflags : SET_WINDOW_POS_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetWindowPos(hwnd : super::super::Foundation:: HWND, hwndinsertafter : super::super::Foundation:: HWND, x : i32, y : i32, cx : i32, cy : i32, uflags : SET_WINDOW_POS_FLAGS) -> windows_core::BOOL); unsafe { SetWindowPos(hwnd, hwndinsertafter.unwrap_or(core::mem::zeroed()) as _, x, y, cx, cy, uflags).ok() } } #[inline] @@ -2285,7 +2285,7 @@ pub unsafe fn SetWindowTextA(hwnd: super::super::Foundation::HWND, lpstring: where P1: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn SetWindowTextA(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PCSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetWindowTextA(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PCSTR) -> windows_core::BOOL); unsafe { SetWindowTextA(hwnd, lpstring.param().abi()).ok() } } #[inline] @@ -2293,7 +2293,7 @@ pub unsafe fn SetWindowTextW(hwnd: super::super::Foundation::HWND, lpstring: where P1: windows_core::Param, { - windows_targets::link!("user32.dll" "system" fn SetWindowTextW(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SetWindowTextW(hwnd : super::super::Foundation:: HWND, lpstring : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { SetWindowTextW(hwnd, lpstring.param().abi()).ok() } } #[inline] @@ -2325,47 +2325,47 @@ pub unsafe fn SetWindowsHookW(nfiltertype: i32, pfnfilterproc: HOOKPROC) -> HHOO } #[inline] pub unsafe fn ShowCaret(hwnd: Option) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn ShowCaret(hwnd : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn ShowCaret(hwnd : super::super::Foundation:: HWND) -> windows_core::BOOL); unsafe { ShowCaret(hwnd.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn ShowCursor(bshow: bool) -> i32 { - windows_targets::link!("user32.dll" "system" fn ShowCursor(bshow : super::super::Foundation:: BOOL) -> i32); + windows_targets::link!("user32.dll" "system" fn ShowCursor(bshow : windows_core::BOOL) -> i32); unsafe { ShowCursor(bshow.into()) } } #[inline] pub unsafe fn ShowOwnedPopups(hwnd: super::super::Foundation::HWND, fshow: bool) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn ShowOwnedPopups(hwnd : super::super::Foundation:: HWND, fshow : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn ShowOwnedPopups(hwnd : super::super::Foundation:: HWND, fshow : windows_core::BOOL) -> windows_core::BOOL); unsafe { ShowOwnedPopups(hwnd, fshow.into()).ok() } } #[inline] -pub unsafe fn ShowWindow(hwnd: super::super::Foundation::HWND, ncmdshow: SHOW_WINDOW_CMD) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn ShowWindow(hwnd : super::super::Foundation:: HWND, ncmdshow : SHOW_WINDOW_CMD) -> super::super::Foundation:: BOOL); +pub unsafe fn ShowWindow(hwnd: super::super::Foundation::HWND, ncmdshow: SHOW_WINDOW_CMD) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn ShowWindow(hwnd : super::super::Foundation:: HWND, ncmdshow : SHOW_WINDOW_CMD) -> windows_core::BOOL); unsafe { ShowWindow(hwnd, ncmdshow) } } #[inline] -pub unsafe fn ShowWindowAsync(hwnd: super::super::Foundation::HWND, ncmdshow: SHOW_WINDOW_CMD) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn ShowWindowAsync(hwnd : super::super::Foundation:: HWND, ncmdshow : SHOW_WINDOW_CMD) -> super::super::Foundation:: BOOL); +pub unsafe fn ShowWindowAsync(hwnd: super::super::Foundation::HWND, ncmdshow: SHOW_WINDOW_CMD) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn ShowWindowAsync(hwnd : super::super::Foundation:: HWND, ncmdshow : SHOW_WINDOW_CMD) -> windows_core::BOOL); unsafe { ShowWindowAsync(hwnd, ncmdshow) } } #[inline] -pub unsafe fn SoundSentry() -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn SoundSentry() -> super::super::Foundation:: BOOL); +pub unsafe fn SoundSentry() -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn SoundSentry() -> windows_core::BOOL); unsafe { SoundSentry() } } #[inline] pub unsafe fn SwitchToThisWindow(hwnd: super::super::Foundation::HWND, funknown: bool) { - windows_targets::link!("user32.dll" "system" fn SwitchToThisWindow(hwnd : super::super::Foundation:: HWND, funknown : super::super::Foundation:: BOOL)); + windows_targets::link!("user32.dll" "system" fn SwitchToThisWindow(hwnd : super::super::Foundation:: HWND, funknown : windows_core::BOOL)); unsafe { SwitchToThisWindow(hwnd, funknown.into()) } } #[inline] pub unsafe fn SystemParametersInfoA(uiaction: SYSTEM_PARAMETERS_INFO_ACTION, uiparam: u32, pvparam: Option<*mut core::ffi::c_void>, fwinini: SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SystemParametersInfoA(uiaction : SYSTEM_PARAMETERS_INFO_ACTION, uiparam : u32, pvparam : *mut core::ffi::c_void, fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SystemParametersInfoA(uiaction : SYSTEM_PARAMETERS_INFO_ACTION, uiparam : u32, pvparam : *mut core::ffi::c_void, fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS) -> windows_core::BOOL); unsafe { SystemParametersInfoA(uiaction, uiparam, pvparam.unwrap_or(core::mem::zeroed()) as _, fwinini).ok() } } #[inline] pub unsafe fn SystemParametersInfoW(uiaction: SYSTEM_PARAMETERS_INFO_ACTION, uiparam: u32, pvparam: Option<*mut core::ffi::c_void>, fwinini: SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn SystemParametersInfoW(uiaction : SYSTEM_PARAMETERS_INFO_ACTION, uiparam : u32, pvparam : *mut core::ffi::c_void, fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn SystemParametersInfoW(uiaction : SYSTEM_PARAMETERS_INFO_ACTION, uiparam : u32, pvparam : *mut core::ffi::c_void, fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS) -> windows_core::BOOL); unsafe { SystemParametersInfoW(uiaction, uiparam, pvparam.unwrap_or(core::mem::zeroed()) as _, fwinini).ok() } } #[inline] @@ -2374,13 +2374,13 @@ pub unsafe fn TileWindows(hwndparent: Option, wh unsafe { TileWindows(hwndparent.unwrap_or(core::mem::zeroed()) as _, whow, lprect.unwrap_or(core::mem::zeroed()) as _, lpkids.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), core::mem::transmute(lpkids.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr()))) } } #[inline] -pub unsafe fn TrackPopupMenu(hmenu: HMENU, uflags: TRACK_POPUP_MENU_FLAGS, x: i32, y: i32, nreserved: Option, hwnd: super::super::Foundation::HWND, prcrect: Option<*const super::super::Foundation::RECT>) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn TrackPopupMenu(hmenu : HMENU, uflags : TRACK_POPUP_MENU_FLAGS, x : i32, y : i32, nreserved : i32, hwnd : super::super::Foundation:: HWND, prcrect : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL); +pub unsafe fn TrackPopupMenu(hmenu: HMENU, uflags: TRACK_POPUP_MENU_FLAGS, x: i32, y: i32, nreserved: Option, hwnd: super::super::Foundation::HWND, prcrect: Option<*const super::super::Foundation::RECT>) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn TrackPopupMenu(hmenu : HMENU, uflags : TRACK_POPUP_MENU_FLAGS, x : i32, y : i32, nreserved : i32, hwnd : super::super::Foundation:: HWND, prcrect : *const super::super::Foundation:: RECT) -> windows_core::BOOL); unsafe { TrackPopupMenu(hmenu, uflags, x, y, nreserved.unwrap_or(core::mem::zeroed()) as _, hwnd, prcrect.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn TrackPopupMenuEx(hmenu: HMENU, uflags: u32, x: i32, y: i32, hwnd: super::super::Foundation::HWND, lptpm: Option<*const TPMPARAMS>) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn TrackPopupMenuEx(hmenu : HMENU, uflags : u32, x : i32, y : i32, hwnd : super::super::Foundation:: HWND, lptpm : *const TPMPARAMS) -> super::super::Foundation:: BOOL); +pub unsafe fn TrackPopupMenuEx(hmenu: HMENU, uflags: u32, x: i32, y: i32, hwnd: super::super::Foundation::HWND, lptpm: Option<*const TPMPARAMS>) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn TrackPopupMenuEx(hmenu : HMENU, uflags : u32, x : i32, y : i32, hwnd : super::super::Foundation:: HWND, lptpm : *const TPMPARAMS) -> windows_core::BOOL); unsafe { TrackPopupMenuEx(hmenu, uflags, x, y, hwnd, lptpm.unwrap_or(core::mem::zeroed()) as _) } } #[inline] @@ -2394,23 +2394,23 @@ pub unsafe fn TranslateAcceleratorW(hwnd: super::super::Foundation::HWND, haccta unsafe { TranslateAcceleratorW(hwnd, hacctable, lpmsg) } } #[inline] -pub unsafe fn TranslateMDISysAccel(hwndclient: super::super::Foundation::HWND, lpmsg: *const MSG) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn TranslateMDISysAccel(hwndclient : super::super::Foundation:: HWND, lpmsg : *const MSG) -> super::super::Foundation:: BOOL); +pub unsafe fn TranslateMDISysAccel(hwndclient: super::super::Foundation::HWND, lpmsg: *const MSG) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn TranslateMDISysAccel(hwndclient : super::super::Foundation:: HWND, lpmsg : *const MSG) -> windows_core::BOOL); unsafe { TranslateMDISysAccel(hwndclient, lpmsg) } } #[inline] -pub unsafe fn TranslateMessage(lpmsg: *const MSG) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn TranslateMessage(lpmsg : *const MSG) -> super::super::Foundation:: BOOL); +pub unsafe fn TranslateMessage(lpmsg: *const MSG) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn TranslateMessage(lpmsg : *const MSG) -> windows_core::BOOL); unsafe { TranslateMessage(lpmsg) } } #[inline] -pub unsafe fn UnhookWindowsHook(ncode: i32, pfnfilterproc: HOOKPROC) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn UnhookWindowsHook(ncode : i32, pfnfilterproc : HOOKPROC) -> super::super::Foundation:: BOOL); +pub unsafe fn UnhookWindowsHook(ncode: i32, pfnfilterproc: HOOKPROC) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn UnhookWindowsHook(ncode : i32, pfnfilterproc : HOOKPROC) -> windows_core::BOOL); unsafe { UnhookWindowsHook(ncode, pfnfilterproc) } } #[inline] pub unsafe fn UnhookWindowsHookEx(hhk: HHOOK) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn UnhookWindowsHookEx(hhk : HHOOK) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn UnhookWindowsHookEx(hhk : HHOOK) -> windows_core::BOOL); unsafe { UnhookWindowsHookEx(hhk).ok() } } #[inline] @@ -2418,7 +2418,7 @@ pub unsafe fn UnregisterClassA(lpclassname: P0, hinstance: Option, { - windows_targets::link!("user32.dll" "system" fn UnregisterClassA(lpclassname : windows_core::PCSTR, hinstance : super::super::Foundation:: HINSTANCE) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn UnregisterClassA(lpclassname : windows_core::PCSTR, hinstance : super::super::Foundation:: HINSTANCE) -> windows_core::BOOL); unsafe { UnregisterClassA(lpclassname.param().abi(), hinstance.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] @@ -2426,29 +2426,29 @@ pub unsafe fn UnregisterClassW(lpclassname: P0, hinstance: Option, { - windows_targets::link!("user32.dll" "system" fn UnregisterClassW(lpclassname : windows_core::PCWSTR, hinstance : super::super::Foundation:: HINSTANCE) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn UnregisterClassW(lpclassname : windows_core::PCWSTR, hinstance : super::super::Foundation:: HINSTANCE) -> windows_core::BOOL); unsafe { UnregisterClassW(lpclassname.param().abi(), hinstance.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] pub unsafe fn UnregisterDeviceNotification(handle: HDEVNOTIFY) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn UnregisterDeviceNotification(handle : HDEVNOTIFY) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn UnregisterDeviceNotification(handle : HDEVNOTIFY) -> windows_core::BOOL); unsafe { UnregisterDeviceNotification(handle).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] pub unsafe fn UpdateLayeredWindow(hwnd: super::super::Foundation::HWND, hdcdst: Option, pptdst: Option<*const super::super::Foundation::POINT>, psize: Option<*const super::super::Foundation::SIZE>, hdcsrc: Option, pptsrc: Option<*const super::super::Foundation::POINT>, crkey: super::super::Foundation::COLORREF, pblend: Option<*const super::super::Graphics::Gdi::BLENDFUNCTION>, dwflags: UPDATE_LAYERED_WINDOW_FLAGS) -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn UpdateLayeredWindow(hwnd : super::super::Foundation:: HWND, hdcdst : super::super::Graphics::Gdi:: HDC, pptdst : *const super::super::Foundation:: POINT, psize : *const super::super::Foundation:: SIZE, hdcsrc : super::super::Graphics::Gdi:: HDC, pptsrc : *const super::super::Foundation:: POINT, crkey : super::super::Foundation:: COLORREF, pblend : *const super::super::Graphics::Gdi:: BLENDFUNCTION, dwflags : UPDATE_LAYERED_WINDOW_FLAGS) -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn UpdateLayeredWindow(hwnd : super::super::Foundation:: HWND, hdcdst : super::super::Graphics::Gdi:: HDC, pptdst : *const super::super::Foundation:: POINT, psize : *const super::super::Foundation:: SIZE, hdcsrc : super::super::Graphics::Gdi:: HDC, pptsrc : *const super::super::Foundation:: POINT, crkey : super::super::Foundation:: COLORREF, pblend : *const super::super::Graphics::Gdi:: BLENDFUNCTION, dwflags : UPDATE_LAYERED_WINDOW_FLAGS) -> windows_core::BOOL); unsafe { UpdateLayeredWindow(hwnd, hdcdst.unwrap_or(core::mem::zeroed()) as _, pptdst.unwrap_or(core::mem::zeroed()) as _, psize.unwrap_or(core::mem::zeroed()) as _, hdcsrc.unwrap_or(core::mem::zeroed()) as _, pptsrc.unwrap_or(core::mem::zeroed()) as _, crkey, pblend.unwrap_or(core::mem::zeroed()) as _, dwflags).ok() } } #[cfg(feature = "Win32_Graphics_Gdi")] #[inline] -pub unsafe fn UpdateLayeredWindowIndirect(hwnd: super::super::Foundation::HWND, pulwinfo: *const UPDATELAYEREDWINDOWINFO) -> super::super::Foundation::BOOL { - windows_targets::link!("user32.dll" "system" fn UpdateLayeredWindowIndirect(hwnd : super::super::Foundation:: HWND, pulwinfo : *const UPDATELAYEREDWINDOWINFO) -> super::super::Foundation:: BOOL); +pub unsafe fn UpdateLayeredWindowIndirect(hwnd: super::super::Foundation::HWND, pulwinfo: *const UPDATELAYEREDWINDOWINFO) -> windows_core::BOOL { + windows_targets::link!("user32.dll" "system" fn UpdateLayeredWindowIndirect(hwnd : super::super::Foundation:: HWND, pulwinfo : *const UPDATELAYEREDWINDOWINFO) -> windows_core::BOOL); unsafe { UpdateLayeredWindowIndirect(hwnd, pulwinfo) } } #[inline] pub unsafe fn WaitMessage() -> windows_core::Result<()> { - windows_targets::link!("user32.dll" "system" fn WaitMessage() -> super::super::Foundation:: BOOL); + windows_targets::link!("user32.dll" "system" fn WaitMessage() -> windows_core::BOOL); unsafe { WaitMessage().ok() } } #[inline] @@ -2623,7 +2623,7 @@ pub const ASFW_ANY: u32 = 4294967295u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct AUDIODESCRIPTION { pub cbSize: u32, - pub Enabled: super::super::Foundation::BOOL, + pub Enabled: windows_core::BOOL, pub Locale: u32, } impl Default for AUDIODESCRIPTION { @@ -2760,7 +2760,7 @@ pub const CBS_UPPERCASE: i32 = 8192i32; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct CBTACTIVATESTRUCT { - pub fMouse: super::super::Foundation::BOOL, + pub fMouse: windows_core::BOOL, pub hWndActive: super::super::Foundation::HWND, } impl Default for CBTACTIVATESTRUCT { @@ -3738,8 +3738,8 @@ pub const GESTUREVISUALIZATION_TAP: u32 = 1u32; #[derive(Clone, Copy, Debug, PartialEq)] pub struct GETCLIPBMETADATA { pub Version: u32, - pub IsDelayRendered: super::super::Foundation::BOOL, - pub IsSynthetic: super::super::Foundation::BOOL, + pub IsDelayRendered: windows_core::BOOL, + pub IsSynthetic: windows_core::BOOL, } impl Default for GETCLIPBMETADATA { fn default() -> Self { @@ -4225,7 +4225,7 @@ pub const HWND_TOPMOST: super::super::Foundation::HWND = super::super::Foundatio #[cfg(feature = "Win32_Graphics_Gdi")] #[derive(Clone, Copy, Debug, PartialEq)] pub struct ICONINFO { - pub fIcon: super::super::Foundation::BOOL, + pub fIcon: windows_core::BOOL, pub xHotspot: u32, pub yHotspot: u32, pub hbmMask: super::super::Graphics::Gdi::HBITMAP, @@ -4242,7 +4242,7 @@ impl Default for ICONINFO { #[derive(Clone, Copy, Debug, PartialEq)] pub struct ICONINFOEXA { pub cbSize: u32, - pub fIcon: super::super::Foundation::BOOL, + pub fIcon: windows_core::BOOL, pub xHotspot: u32, pub yHotspot: u32, pub hbmMask: super::super::Graphics::Gdi::HBITMAP, @@ -4262,7 +4262,7 @@ impl Default for ICONINFOEXA { #[derive(Clone, Copy, Debug, PartialEq)] pub struct ICONINFOEXW { pub cbSize: u32, - pub fIcon: super::super::Foundation::BOOL, + pub fIcon: windows_core::BOOL, pub xHotspot: u32, pub yHotspot: u32, pub hbmMask: super::super::Graphics::Gdi::HBITMAP, @@ -5543,8 +5543,8 @@ pub const MrmResourceIndexerMessageSeverityError: MrmResourceIndexerMessageSever pub const MrmResourceIndexerMessageSeverityInfo: MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity(1i32); pub const MrmResourceIndexerMessageSeverityVerbose: MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity(0i32); pub const MrmResourceIndexerMessageSeverityWarning: MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity(2i32); -pub type NAMEENUMPROCA = Option super::super::Foundation::BOOL>; -pub type NAMEENUMPROCW = Option super::super::Foundation::BOOL>; +pub type NAMEENUMPROCA = Option windows_core::BOOL>; +pub type NAMEENUMPROCW = Option windows_core::BOOL>; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] pub struct NCCALCSIZE_PARAMS { @@ -5815,10 +5815,10 @@ pub const PRF_CLIENT: i32 = 4i32; pub const PRF_ERASEBKGND: i32 = 8i32; pub const PRF_NONCLIENT: i32 = 2i32; pub const PRF_OWNED: i32 = 32i32; -pub type PROPENUMPROCA = Option super::super::Foundation::BOOL>; -pub type PROPENUMPROCEXA = Option super::super::Foundation::BOOL>; -pub type PROPENUMPROCEXW = Option super::super::Foundation::BOOL>; -pub type PROPENUMPROCW = Option super::super::Foundation::BOOL>; +pub type PROPENUMPROCA = Option windows_core::BOOL>; +pub type PROPENUMPROCEXA = Option windows_core::BOOL>; +pub type PROPENUMPROCEXW = Option windows_core::BOOL>; +pub type PROPENUMPROCW = Option windows_core::BOOL>; pub const PT_MOUSE: POINTER_INPUT_TYPE = POINTER_INPUT_TYPE(4i32); pub const PT_PEN: POINTER_INPUT_TYPE = POINTER_INPUT_TYPE(3i32); pub const PT_POINTER: POINTER_INPUT_TYPE = POINTER_INPUT_TYPE(1i32); @@ -7614,7 +7614,7 @@ impl core::ops::Not for WNDCLASS_STYLES { Self(self.0.not()) } } -pub type WNDENUMPROC = Option super::super::Foundation::BOOL>; +pub type WNDENUMPROC = Option windows_core::BOOL>; pub type WNDPROC = Option super::super::Foundation::LRESULT>; pub const WPF_ASYNCWINDOWPLACEMENT: WINDOWPLACEMENT_FLAGS = WINDOWPLACEMENT_FLAGS(4u32); pub const WPF_RESTORETOMAXIMIZED: WINDOWPLACEMENT_FLAGS = WINDOWPLACEMENT_FLAGS(2u32); 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 3c86902d06..549b6ed3d0 100644 --- a/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/mod.rs @@ -67,11 +67,11 @@ pub unsafe fn IECancelSaveFile(hstate: super::super::Foundation::HANDLE) -> wind } #[cfg(feature = "Win32_Security")] #[inline] -pub unsafe fn IECreateDirectory(lppathname: P0, lpsecurityattributes: *const super::super::Security::SECURITY_ATTRIBUTES) -> super::super::Foundation::BOOL +pub unsafe fn IECreateDirectory(lppathname: P0, lpsecurityattributes: *const super::super::Security::SECURITY_ATTRIBUTES) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("ieframe.dll" "system" fn IECreateDirectory(lppathname : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> super::super::Foundation:: BOOL); + windows_targets::link!("ieframe.dll" "system" fn IECreateDirectory(lppathname : windows_core::PCWSTR, lpsecurityattributes : *const super::super::Security:: SECURITY_ATTRIBUTES) -> windows_core::BOOL); unsafe { IECreateDirectory(lppathname.param().abi(), lpsecurityattributes) } } #[cfg(feature = "Win32_Security")] @@ -84,11 +84,11 @@ where unsafe { IECreateFile(lpfilename.param().abi(), dwdesiredaccess, dwsharemode, lpsecurityattributes, dwcreationdisposition, dwflagsandattributes, htemplatefile.unwrap_or(core::mem::zeroed()) as _) } } #[inline] -pub unsafe fn IEDeleteFile(lpfilename: P0) -> super::super::Foundation::BOOL +pub unsafe fn IEDeleteFile(lpfilename: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("ieframe.dll" "system" fn IEDeleteFile(lpfilename : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("ieframe.dll" "system" fn IEDeleteFile(lpfilename : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { IEDeleteFile(lpfilename.param().abi()) } } #[inline] @@ -107,11 +107,11 @@ where } #[cfg(feature = "Win32_Storage_FileSystem")] #[inline] -pub unsafe fn IEGetFileAttributesEx(lpfilename: P0, finfolevelid: super::super::Storage::FileSystem::GET_FILEEX_INFO_LEVELS, lpfileinformation: *const core::ffi::c_void) -> super::super::Foundation::BOOL +pub unsafe fn IEGetFileAttributesEx(lpfilename: P0, finfolevelid: super::super::Storage::FileSystem::GET_FILEEX_INFO_LEVELS, lpfileinformation: *const core::ffi::c_void) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("ieframe.dll" "system" fn IEGetFileAttributesEx(lpfilename : windows_core::PCWSTR, finfolevelid : super::super::Storage::FileSystem:: GET_FILEEX_INFO_LEVELS, lpfileinformation : *const core::ffi::c_void) -> super::super::Foundation:: BOOL); + windows_targets::link!("ieframe.dll" "system" fn IEGetFileAttributesEx(lpfilename : windows_core::PCWSTR, finfolevelid : super::super::Storage::FileSystem:: GET_FILEEX_INFO_LEVELS, lpfileinformation : *const core::ffi::c_void) -> windows_core::BOOL); unsafe { IEGetFileAttributesEx(lpfilename.param().abi(), finfolevelid, lpfileinformation) } } #[inline] @@ -141,18 +141,18 @@ pub unsafe fn IEGetWriteableLowHKCU() -> windows_core::Result super::super::Foundation::BOOL { - windows_targets::link!("ieframe.dll" "system" fn IEInPrivateFilteringEnabled() -> super::super::Foundation:: BOOL); +pub unsafe fn IEInPrivateFilteringEnabled() -> windows_core::BOOL { + windows_targets::link!("ieframe.dll" "system" fn IEInPrivateFilteringEnabled() -> windows_core::BOOL); unsafe { IEInPrivateFilteringEnabled() } } #[inline] -pub unsafe fn IEIsInPrivateBrowsing() -> super::super::Foundation::BOOL { - windows_targets::link!("ieframe.dll" "system" fn IEIsInPrivateBrowsing() -> super::super::Foundation:: BOOL); +pub unsafe fn IEIsInPrivateBrowsing() -> windows_core::BOOL { + windows_targets::link!("ieframe.dll" "system" fn IEIsInPrivateBrowsing() -> windows_core::BOOL); unsafe { IEIsInPrivateBrowsing() } } #[inline] -pub unsafe fn IEIsProtectedModeProcess() -> windows_core::Result { - windows_targets::link!("ieframe.dll" "system" fn IEIsProtectedModeProcess(pbresult : *mut super::super::Foundation:: BOOL) -> windows_core::HRESULT); +pub unsafe fn IEIsProtectedModeProcess() -> windows_core::Result { + windows_targets::link!("ieframe.dll" "system" fn IEIsProtectedModeProcess(pbresult : *mut windows_core::BOOL) -> windows_core::HRESULT); unsafe { let mut result__ = core::mem::zeroed(); IEIsProtectedModeProcess(&mut result__).map(|| core::mem::transmute(result__)) @@ -176,12 +176,12 @@ where unsafe { IELaunchURL(lpwstrurl.param().abi(), lpprocinfo as _, lpinfo.unwrap_or(core::mem::zeroed()) as _).ok() } } #[inline] -pub unsafe fn IEMoveFileEx(lpexistingfilename: P0, lpnewfilename: P1, dwflags: u32) -> super::super::Foundation::BOOL +pub unsafe fn IEMoveFileEx(lpexistingfilename: P0, lpnewfilename: P1, dwflags: u32) -> windows_core::BOOL where P0: windows_core::Param, P1: windows_core::Param, { - windows_targets::link!("ieframe.dll" "system" fn IEMoveFileEx(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, dwflags : u32) -> super::super::Foundation:: BOOL); + windows_targets::link!("ieframe.dll" "system" fn IEMoveFileEx(lpexistingfilename : windows_core::PCWSTR, lpnewfilename : windows_core::PCWSTR, dwflags : u32) -> windows_core::BOOL); unsafe { IEMoveFileEx(lpexistingfilename.param().abi(), lpnewfilename.param().abi(), dwflags) } } #[inline] @@ -213,7 +213,7 @@ pub unsafe fn IERegisterWritableRegistryKey(guid: windows_core::GUID, lpsubk where P1: windows_core::Param, { - windows_targets::link!("ieframe.dll" "system" fn IERegisterWritableRegistryKey(guid : windows_core::GUID, lpsubkey : windows_core::PCWSTR, fsubkeyallowed : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("ieframe.dll" "system" fn IERegisterWritableRegistryKey(guid : windows_core::GUID, lpsubkey : windows_core::PCWSTR, fsubkeyallowed : windows_core::BOOL) -> windows_core::HRESULT); unsafe { IERegisterWritableRegistryKey(core::mem::transmute(guid), lpsubkey.param().abi(), fsubkeyallowed.into()).ok() } } #[inline] @@ -226,11 +226,11 @@ where unsafe { IERegisterWritableRegistryValue(core::mem::transmute(guid), lppath.param().abi(), lpvaluename.param().abi(), dwtype, core::mem::transmute(lpdata.as_deref().map_or(core::ptr::null(), |slice| slice.as_ptr())), lpdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } } #[inline] -pub unsafe fn IERemoveDirectory(lppathname: P0) -> super::super::Foundation::BOOL +pub unsafe fn IERemoveDirectory(lppathname: P0) -> windows_core::BOOL where P0: windows_core::Param, { - windows_targets::link!("ieframe.dll" "system" fn IERemoveDirectory(lppathname : windows_core::PCWSTR) -> super::super::Foundation:: BOOL); + windows_targets::link!("ieframe.dll" "system" fn IERemoveDirectory(lppathname : windows_core::PCWSTR) -> windows_core::BOOL); unsafe { IERemoveDirectory(lppathname.param().abi()) } } #[inline] @@ -273,8 +273,8 @@ where unsafe { IEShowSaveFileDialog(hwnd, lpwstrinitialfilename.param().abi(), lpwstrinitialdir.param().abi(), lpwstrfilter.param().abi(), lpwstrdefext.param().abi(), dwfilterindex, dwflags, lppwstrdestinationfilepath as _, phstate as _).ok() } } #[inline] -pub unsafe fn IETrackingProtectionEnabled() -> super::super::Foundation::BOOL { - windows_targets::link!("ieframe.dll" "system" fn IETrackingProtectionEnabled() -> super::super::Foundation:: BOOL); +pub unsafe fn IETrackingProtectionEnabled() -> windows_core::BOOL { + windows_targets::link!("ieframe.dll" "system" fn IETrackingProtectionEnabled() -> windows_core::BOOL); unsafe { IETrackingProtectionEnabled() } } #[inline] @@ -326,7 +326,7 @@ pub unsafe fn RatingAddToApprovedSites(hdlg: super::super::Foundation::HWND, where P3: windows_core::Param, { - windows_targets::link!("msrating.dll" "system" fn RatingAddToApprovedSites(hdlg : super::super::Foundation:: HWND, cbpasswordblob : u32, pbpasswordblob : *mut u8, lpszurl : windows_core::PCWSTR, falwaysnever : super::super::Foundation:: BOOL, fsitepage : super::super::Foundation:: BOOL, fapprovedsitesenforced : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("msrating.dll" "system" fn RatingAddToApprovedSites(hdlg : super::super::Foundation:: HWND, cbpasswordblob : u32, pbpasswordblob : *mut u8, lpszurl : windows_core::PCWSTR, falwaysnever : windows_core::BOOL, fsitepage : windows_core::BOOL, fapprovedsitesenforced : windows_core::BOOL) -> windows_core::HRESULT); unsafe { RatingAddToApprovedSites(hdlg, pbpasswordblob.len().try_into().unwrap(), core::mem::transmute(pbpasswordblob.as_ptr()), lpszurl.param().abi(), falwaysnever.into(), fsitepage.into(), fapprovedsitesenforced.into()).ok() } } #[inline] @@ -370,7 +370,7 @@ pub unsafe fn RatingEnable(hwndparent: super::super::Foundation::HWND, pszus where P1: windows_core::Param, { - windows_targets::link!("msrating.dll" "system" fn RatingEnable(hwndparent : super::super::Foundation:: HWND, pszusername : windows_core::PCSTR, fenable : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("msrating.dll" "system" fn RatingEnable(hwndparent : super::super::Foundation:: HWND, pszusername : windows_core::PCSTR, fenable : windows_core::BOOL) -> windows_core::HRESULT); unsafe { RatingEnable(hwndparent, pszusername.param().abi(), fenable.into()).ok() } } #[inline] @@ -378,7 +378,7 @@ pub unsafe fn RatingEnableW(hwndparent: super::super::Foundation::HWND, pszu where P1: windows_core::Param, { - windows_targets::link!("msrating.dll" "system" fn RatingEnableW(hwndparent : super::super::Foundation:: HWND, pszusername : windows_core::PCWSTR, fenable : super::super::Foundation:: BOOL) -> windows_core::HRESULT); + windows_targets::link!("msrating.dll" "system" fn RatingEnableW(hwndparent : super::super::Foundation:: HWND, pszusername : windows_core::PCWSTR, fenable : windows_core::BOOL) -> windows_core::HRESULT); unsafe { RatingEnableW(hwndparent, pszusername.param().abi(), fenable.into()).ok() } } #[inline] @@ -736,11 +736,11 @@ impl IActiveXUIHandlerSite { pub struct IActiveXUIHandlerSite_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub CreateScrollableContextMenu: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub PickFileAndGetResult: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + pub PickFileAndGetResult: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::BOOL, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IActiveXUIHandlerSite_Impl: windows_core::IUnknownImpl { fn CreateScrollableContextMenu(&self) -> windows_core::Result; - fn PickFileAndGetResult(&self, filepicker: windows_core::Ref, allowmultipleselections: super::super::Foundation::BOOL) -> windows_core::Result; + fn PickFileAndGetResult(&self, filepicker: windows_core::Ref, allowmultipleselections: windows_core::BOOL) -> windows_core::Result; } impl IActiveXUIHandlerSite_Vtbl { pub const fn new() -> Self { @@ -756,7 +756,7 @@ impl IActiveXUIHandlerSite_Vtbl { } } } - unsafe extern "system" fn PickFileAndGetResult(this: *mut core::ffi::c_void, filepicker: *mut core::ffi::c_void, allowmultipleselections: super::super::Foundation::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn PickFileAndGetResult(this: *mut core::ffi::c_void, filepicker: *mut core::ffi::c_void, allowmultipleselections: windows_core::BOOL, result: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IActiveXUIHandlerSite_Impl::PickFileAndGetResult(this, core::mem::transmute_copy(&filepicker), core::mem::transmute_copy(&allowmultipleselections)) { @@ -1110,7 +1110,7 @@ windows_core::imp::define_interface!(IDocObjectService, IDocObjectService_Vtbl, windows_core::imp::interface_hierarchy!(IDocObjectService, windows_core::IUnknown); impl IDocObjectService { #[cfg(feature = "Win32_System_Com")] - pub unsafe fn FireBeforeNavigate2(&self, pdispatch: P0, lpszurl: P1, dwflags: u32, lpszframename: P3, ppostdata: *const u8, cbpostdata: u32, lpszheaders: P6, fplaynavsound: bool) -> windows_core::Result + pub unsafe fn FireBeforeNavigate2(&self, pdispatch: P0, lpszurl: P1, dwflags: u32, lpszframename: P3, ppostdata: *const u8, cbpostdata: u32, lpszheaders: P6, fplaynavsound: bool) -> windows_core::Result where P0: windows_core::Param, P1: windows_core::Param, @@ -1140,7 +1140,7 @@ impl IDocObjectService { (windows_core::Interface::vtable(self).GetUrlSearchComponent)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn IsErrorUrl(&self, lpszurl: P0) -> windows_core::Result + pub unsafe fn IsErrorUrl(&self, lpszurl: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -1154,7 +1154,7 @@ impl IDocObjectService { pub struct IDocObjectService_Vtbl { pub base__: windows_core::IUnknown_Vtbl, #[cfg(feature = "Win32_System_Com")] - pub FireBeforeNavigate2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::PCWSTR, u32, windows_core::PCWSTR, *const u8, u32, windows_core::PCWSTR, super::super::Foundation::BOOL, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub FireBeforeNavigate2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::PCWSTR, u32, windows_core::PCWSTR, *const u8, u32, windows_core::PCWSTR, windows_core::BOOL, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] FireBeforeNavigate2: usize, FireNavigateComplete2: usize, @@ -1165,21 +1165,21 @@ pub struct IDocObjectService_Vtbl { pub GetPendingUrl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, ActiveElementChanged: usize, pub GetUrlSearchComponent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsErrorUrl: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsErrorUrl: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Com")] pub trait IDocObjectService_Impl: windows_core::IUnknownImpl { - fn FireBeforeNavigate2(&self, pdispatch: windows_core::Ref, lpszurl: &windows_core::PCWSTR, dwflags: u32, lpszframename: &windows_core::PCWSTR, ppostdata: *const u8, cbpostdata: u32, lpszheaders: &windows_core::PCWSTR, fplaynavsound: super::super::Foundation::BOOL) -> windows_core::Result; + fn FireBeforeNavigate2(&self, pdispatch: windows_core::Ref, lpszurl: &windows_core::PCWSTR, dwflags: u32, lpszframename: &windows_core::PCWSTR, ppostdata: *const u8, cbpostdata: u32, lpszheaders: &windows_core::PCWSTR, fplaynavsound: windows_core::BOOL) -> windows_core::Result; fn FireDownloadBegin(&self) -> windows_core::Result<()>; fn FireDownloadComplete(&self) -> windows_core::Result<()>; fn GetPendingUrl(&self) -> windows_core::Result; fn GetUrlSearchComponent(&self) -> windows_core::Result; - fn IsErrorUrl(&self, lpszurl: &windows_core::PCWSTR) -> windows_core::Result; + fn IsErrorUrl(&self, lpszurl: &windows_core::PCWSTR) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl IDocObjectService_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn FireBeforeNavigate2(this: *mut core::ffi::c_void, pdispatch: *mut core::ffi::c_void, lpszurl: windows_core::PCWSTR, dwflags: u32, lpszframename: windows_core::PCWSTR, ppostdata: *const u8, cbpostdata: u32, lpszheaders: windows_core::PCWSTR, fplaynavsound: super::super::Foundation::BOOL, pfcancel: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn FireBeforeNavigate2(this: *mut core::ffi::c_void, pdispatch: *mut core::ffi::c_void, lpszurl: windows_core::PCWSTR, dwflags: u32, lpszframename: windows_core::PCWSTR, ppostdata: *const u8, cbpostdata: u32, lpszheaders: windows_core::PCWSTR, fplaynavsound: windows_core::BOOL, pfcancel: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDocObjectService_Impl::FireBeforeNavigate2(this, core::mem::transmute_copy(&pdispatch), core::mem::transmute(&lpszurl), core::mem::transmute_copy(&dwflags), core::mem::transmute(&lpszframename), core::mem::transmute_copy(&ppostdata), core::mem::transmute_copy(&cbpostdata), core::mem::transmute(&lpszheaders), core::mem::transmute_copy(&fplaynavsound)) { @@ -1227,7 +1227,7 @@ impl IDocObjectService_Vtbl { } } } - unsafe extern "system" fn IsErrorUrl(this: *mut core::ffi::c_void, lpszurl: windows_core::PCWSTR, pfiserror: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsErrorUrl(this: *mut core::ffi::c_void, lpszurl: windows_core::PCWSTR, pfiserror: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IDocObjectService_Impl::IsErrorUrl(this, core::mem::transmute(&lpszurl)) { @@ -2704,7 +2704,7 @@ impl IHomePageSetting { { unsafe { (windows_core::Interface::vtable(self).SetHomePage)(windows_core::Interface::as_raw(self), hwnd, homepageuri.param().abi(), brandingmessage.param().abi()).ok() } } - pub unsafe fn IsHomePage(&self, uri: P0) -> windows_core::Result + pub unsafe fn IsHomePage(&self, uri: P0) -> windows_core::Result where P0: windows_core::Param, { @@ -2721,12 +2721,12 @@ impl IHomePageSetting { pub struct IHomePageSetting_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub SetHomePage: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::HWND, windows_core::PCWSTR, windows_core::PCWSTR) -> windows_core::HRESULT, - pub IsHomePage: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsHomePage: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, pub SetHomePageToBrowserDefault: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IHomePageSetting_Impl: windows_core::IUnknownImpl { fn SetHomePage(&self, hwnd: super::super::Foundation::HWND, homepageuri: &windows_core::PCWSTR, brandingmessage: &windows_core::PCWSTR) -> windows_core::Result<()>; - fn IsHomePage(&self, uri: &windows_core::PCWSTR) -> windows_core::Result; + fn IsHomePage(&self, uri: &windows_core::PCWSTR) -> windows_core::Result; fn SetHomePageToBrowserDefault(&self) -> windows_core::Result<()>; } impl IHomePageSetting_Vtbl { @@ -2737,7 +2737,7 @@ impl IHomePageSetting_Vtbl { IHomePageSetting_Impl::SetHomePage(this, core::mem::transmute_copy(&hwnd), core::mem::transmute(&homepageuri), core::mem::transmute(&brandingmessage)).into() } } - unsafe extern "system" fn IsHomePage(this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, isdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsHomePage(this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, isdefault: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IHomePageSetting_Impl::IsHomePage(this, core::mem::transmute(&uri)) { @@ -2947,7 +2947,7 @@ pub struct IImageDecodeEventSink_Vtbl { pub OnBitsComplete: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub OnDecodeComplete: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::HRESULT) -> windows_core::HRESULT, pub OnPalette: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub OnProgress: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnProgress: unsafe extern "system" fn(*mut core::ffi::c_void, *const super::super::Foundation::RECT, windows_core::BOOL) -> windows_core::HRESULT, } pub trait IImageDecodeEventSink_Impl: windows_core::IUnknownImpl { fn GetSurface(&self, nwidth: i32, nheight: i32, bfid: *const windows_core::GUID, npasses: u32, dwhints: u32) -> windows_core::Result; @@ -2955,7 +2955,7 @@ pub trait IImageDecodeEventSink_Impl: windows_core::IUnknownImpl { fn OnBitsComplete(&self) -> windows_core::Result<()>; fn OnDecodeComplete(&self, hrstatus: windows_core::HRESULT) -> windows_core::Result<()>; fn OnPalette(&self) -> windows_core::Result<()>; - fn OnProgress(&self, pbounds: *const super::super::Foundation::RECT, bcomplete: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn OnProgress(&self, pbounds: *const super::super::Foundation::RECT, bcomplete: windows_core::BOOL) -> windows_core::Result<()>; } impl IImageDecodeEventSink_Vtbl { pub const fn new() -> Self { @@ -2995,7 +2995,7 @@ impl IImageDecodeEventSink_Vtbl { IImageDecodeEventSink_Impl::OnPalette(this).into() } } - unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, pbounds: *const super::super::Foundation::RECT, bcomplete: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnProgress(this: *mut core::ffi::c_void, pbounds: *const super::super::Foundation::RECT, bcomplete: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IImageDecodeEventSink_Impl::OnProgress(this, core::mem::transmute_copy(&pbounds), core::mem::transmute_copy(&bcomplete)).into() @@ -3025,7 +3025,7 @@ impl core::ops::Deref for IImageDecodeEventSink2 { } windows_core::imp::interface_hierarchy!(IImageDecodeEventSink2, windows_core::IUnknown, IImageDecodeEventSink); impl IImageDecodeEventSink2 { - pub unsafe fn IsAlphaPremultRequired(&self) -> windows_core::Result { + pub unsafe fn IsAlphaPremultRequired(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsAlphaPremultRequired)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3035,14 +3035,14 @@ impl IImageDecodeEventSink2 { #[repr(C)] pub struct IImageDecodeEventSink2_Vtbl { pub base__: IImageDecodeEventSink_Vtbl, - pub IsAlphaPremultRequired: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsAlphaPremultRequired: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait IImageDecodeEventSink2_Impl: IImageDecodeEventSink_Impl { - fn IsAlphaPremultRequired(&self) -> windows_core::Result; + fn IsAlphaPremultRequired(&self) -> windows_core::Result; } impl IImageDecodeEventSink2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsAlphaPremultRequired(this: *mut core::ffi::c_void, pfpremultalpha: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsAlphaPremultRequired(this: *mut core::ffi::c_void, pfpremultalpha: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IImageDecodeEventSink2_Impl::IsAlphaPremultRequired(this) { @@ -3535,18 +3535,18 @@ impl IMapMIMEToCLSID { #[repr(C)] pub struct IMapMIMEToCLSID_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub EnableDefaultMappings: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub EnableDefaultMappings: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub MapMIMEToCLSID: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, *const windows_core::GUID) -> windows_core::HRESULT, pub SetMapping: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, u32, *const windows_core::GUID) -> windows_core::HRESULT, } pub trait IMapMIMEToCLSID_Impl: windows_core::IUnknownImpl { - fn EnableDefaultMappings(&self, benable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn EnableDefaultMappings(&self, benable: windows_core::BOOL) -> windows_core::Result<()>; fn MapMIMEToCLSID(&self, pszmimetype: &windows_core::PCWSTR, pclsid: *const windows_core::GUID) -> windows_core::Result<()>; fn SetMapping(&self, pszmimetype: &windows_core::PCWSTR, dwmapmode: u32, clsid: *const windows_core::GUID) -> windows_core::Result<()>; } impl IMapMIMEToCLSID_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn EnableDefaultMappings(this: *mut core::ffi::c_void, benable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn EnableDefaultMappings(this: *mut core::ffi::c_void, benable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IMapMIMEToCLSID_Impl::EnableDefaultMappings(this, core::mem::transmute_copy(&benable)).into() @@ -3630,7 +3630,7 @@ pub const INTERNETEXPLORERCONFIGURATION_WEB_DRIVER_EDGE: INTERNETEXPLORERCONFIGU windows_core::imp::define_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 { + pub unsafe fn IsDefault(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsDefault)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3649,18 +3649,18 @@ impl IOpenService { #[repr(C)] pub struct IOpenService_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsDefault: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetDefault: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, super::super::Foundation::HWND) -> windows_core::HRESULT, + pub IsDefault: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetDefault: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, super::super::Foundation::HWND) -> windows_core::HRESULT, pub GetID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IOpenService_Impl: windows_core::IUnknownImpl { - fn IsDefault(&self) -> windows_core::Result; - fn SetDefault(&self, fdefault: super::super::Foundation::BOOL, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; + fn IsDefault(&self) -> windows_core::Result; + fn SetDefault(&self, fdefault: windows_core::BOOL, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; fn GetID(&self) -> windows_core::Result; } impl IOpenService_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn IsDefault(this: *mut core::ffi::c_void, pfisdefault: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsDefault(this: *mut core::ffi::c_void, pfisdefault: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenService_Impl::IsDefault(this) { @@ -3672,7 +3672,7 @@ impl IOpenService_Vtbl { } } } - unsafe extern "system" fn SetDefault(this: *mut core::ffi::c_void, fdefault: super::super::Foundation::BOOL, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { + unsafe extern "system" fn SetDefault(this: *mut core::ffi::c_void, fdefault: windows_core::BOOL, hwnd: super::super::Foundation::HWND) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpenService_Impl::SetDefault(this, core::mem::transmute_copy(&fdefault), core::mem::transmute_copy(&hwnd)).into() @@ -3718,7 +3718,7 @@ impl IOpenServiceActivity { { unsafe { (windows_core::Interface::vtable(self).Execute)(windows_core::Interface::as_raw(self), pinput.param().abi(), poutput.param().abi()).ok() } } - pub unsafe fn CanExecute(&self, pinput: P0, poutput: P1) -> windows_core::Result + pub unsafe fn CanExecute(&self, pinput: P0, poutput: P1) -> windows_core::Result where P0: windows_core::Param, P1: windows_core::Param, @@ -3728,7 +3728,7 @@ impl IOpenServiceActivity { (windows_core::Interface::vtable(self).CanExecute)(windows_core::Interface::as_raw(self), pinput.param().abi(), poutput.param().abi(), &mut result__).map(|| result__) } } - pub unsafe fn CanExecuteType(&self, r#type: OpenServiceActivityContentType) -> windows_core::Result { + pub unsafe fn CanExecuteType(&self, r#type: OpenServiceActivityContentType) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanExecuteType)(windows_core::Interface::as_raw(self), r#type, &mut result__).map(|| result__) @@ -3741,7 +3741,7 @@ impl IOpenServiceActivity { { unsafe { (windows_core::Interface::vtable(self).Preview)(windows_core::Interface::as_raw(self), pinput.param().abi(), poutput.param().abi()).ok() } } - pub unsafe fn CanPreview(&self, pinput: P0, poutput: P1) -> windows_core::Result + pub unsafe fn CanPreview(&self, pinput: P0, poutput: P1) -> windows_core::Result where P0: windows_core::Param, P1: windows_core::Param, @@ -3751,7 +3751,7 @@ impl IOpenServiceActivity { (windows_core::Interface::vtable(self).CanPreview)(windows_core::Interface::as_raw(self), pinput.param().abi(), poutput.param().abi(), &mut result__).map(|| result__) } } - pub unsafe fn CanPreviewType(&self, r#type: OpenServiceActivityContentType) -> windows_core::Result { + pub unsafe fn CanPreviewType(&self, r#type: OpenServiceActivityContentType) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).CanPreviewType)(windows_core::Interface::as_raw(self), r#type, &mut result__).map(|| result__) @@ -3821,7 +3821,7 @@ impl IOpenServiceActivity { (windows_core::Interface::vtable(self).GetInstallUrl)(windows_core::Interface::as_raw(self), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn IsEnabled(&self) -> windows_core::Result { + pub unsafe fn IsEnabled(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsEnabled)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -3835,11 +3835,11 @@ impl IOpenServiceActivity { pub struct IOpenServiceActivity_Vtbl { pub base__: IOpenService_Vtbl, pub Execute: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CanExecute: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CanExecuteType: unsafe extern "system" fn(*mut core::ffi::c_void, OpenServiceActivityContentType, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CanExecute: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CanExecuteType: unsafe extern "system" fn(*mut core::ffi::c_void, OpenServiceActivityContentType, *mut windows_core::BOOL) -> windows_core::HRESULT, pub Preview: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - pub CanPreview: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub CanPreviewType: unsafe extern "system" fn(*mut core::ffi::c_void, OpenServiceActivityContentType, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CanPreview: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub CanPreviewType: unsafe extern "system" fn(*mut core::ffi::c_void, OpenServiceActivityContentType, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetStatusText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetHomepageUrl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -3847,35 +3847,35 @@ pub struct IOpenServiceActivity_Vtbl { pub GetCategoryName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetIconPath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] - pub GetIcon: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL, *mut super::super::UI::WindowsAndMessaging::HICON) -> windows_core::HRESULT, + pub GetIcon: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL, *mut super::super::UI::WindowsAndMessaging::HICON) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] GetIcon: usize, pub GetDescriptionFilePath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDownloadUrl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetInstallUrl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, - pub SetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, + pub SetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub trait IOpenServiceActivity_Impl: IOpenService_Impl { fn Execute(&self, pinput: windows_core::Ref, poutput: windows_core::Ref) -> windows_core::Result<()>; - fn CanExecute(&self, pinput: windows_core::Ref, poutput: windows_core::Ref) -> windows_core::Result; - fn CanExecuteType(&self, r#type: OpenServiceActivityContentType) -> windows_core::Result; + fn CanExecute(&self, pinput: windows_core::Ref, poutput: windows_core::Ref) -> windows_core::Result; + fn CanExecuteType(&self, r#type: OpenServiceActivityContentType) -> windows_core::Result; fn Preview(&self, pinput: windows_core::Ref, poutput: windows_core::Ref) -> windows_core::Result<()>; - fn CanPreview(&self, pinput: windows_core::Ref, poutput: windows_core::Ref) -> windows_core::Result; - fn CanPreviewType(&self, r#type: OpenServiceActivityContentType) -> windows_core::Result; + fn CanPreview(&self, pinput: windows_core::Ref, poutput: windows_core::Ref) -> windows_core::Result; + fn CanPreviewType(&self, r#type: OpenServiceActivityContentType) -> windows_core::Result; fn GetStatusText(&self, pinput: windows_core::Ref) -> windows_core::Result; fn GetHomepageUrl(&self) -> windows_core::Result; fn GetDisplayName(&self) -> windows_core::Result; fn GetDescription(&self) -> windows_core::Result; fn GetCategoryName(&self) -> windows_core::Result; fn GetIconPath(&self) -> windows_core::Result; - fn GetIcon(&self, fsmallicon: super::super::Foundation::BOOL) -> windows_core::Result; + fn GetIcon(&self, fsmallicon: windows_core::BOOL) -> windows_core::Result; fn GetDescriptionFilePath(&self) -> windows_core::Result; fn GetDownloadUrl(&self) -> windows_core::Result; fn GetInstallUrl(&self) -> windows_core::Result; - fn IsEnabled(&self) -> windows_core::Result; - fn SetEnabled(&self, fenable: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn IsEnabled(&self) -> windows_core::Result; + fn SetEnabled(&self, fenable: windows_core::BOOL) -> windows_core::Result<()>; } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl IOpenServiceActivity_Vtbl { @@ -3886,7 +3886,7 @@ impl IOpenServiceActivity_Vtbl { IOpenServiceActivity_Impl::Execute(this, core::mem::transmute_copy(&pinput), core::mem::transmute_copy(&poutput)).into() } } - unsafe extern "system" fn CanExecute(this: *mut core::ffi::c_void, pinput: *mut core::ffi::c_void, poutput: *mut core::ffi::c_void, pfcanexecute: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanExecute(this: *mut core::ffi::c_void, pinput: *mut core::ffi::c_void, poutput: *mut core::ffi::c_void, pfcanexecute: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::CanExecute(this, core::mem::transmute_copy(&pinput), core::mem::transmute_copy(&poutput)) { @@ -3898,7 +3898,7 @@ impl IOpenServiceActivity_Vtbl { } } } - unsafe extern "system" fn CanExecuteType(this: *mut core::ffi::c_void, r#type: OpenServiceActivityContentType, pfcanexecute: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanExecuteType(this: *mut core::ffi::c_void, r#type: OpenServiceActivityContentType, pfcanexecute: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::CanExecuteType(this, core::mem::transmute_copy(&r#type)) { @@ -3916,7 +3916,7 @@ impl IOpenServiceActivity_Vtbl { IOpenServiceActivity_Impl::Preview(this, core::mem::transmute_copy(&pinput), core::mem::transmute_copy(&poutput)).into() } } - unsafe extern "system" fn CanPreview(this: *mut core::ffi::c_void, pinput: *mut core::ffi::c_void, poutput: *mut core::ffi::c_void, pfcanpreview: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanPreview(this: *mut core::ffi::c_void, pinput: *mut core::ffi::c_void, poutput: *mut core::ffi::c_void, pfcanpreview: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::CanPreview(this, core::mem::transmute_copy(&pinput), core::mem::transmute_copy(&poutput)) { @@ -3928,7 +3928,7 @@ impl IOpenServiceActivity_Vtbl { } } } - unsafe extern "system" fn CanPreviewType(this: *mut core::ffi::c_void, r#type: OpenServiceActivityContentType, pfcanpreview: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanPreviewType(this: *mut core::ffi::c_void, r#type: OpenServiceActivityContentType, pfcanpreview: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::CanPreviewType(this, core::mem::transmute_copy(&r#type)) { @@ -4012,7 +4012,7 @@ impl IOpenServiceActivity_Vtbl { } } } - unsafe extern "system" fn GetIcon(this: *mut core::ffi::c_void, fsmallicon: super::super::Foundation::BOOL, phicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> windows_core::HRESULT { + unsafe extern "system" fn GetIcon(this: *mut core::ffi::c_void, fsmallicon: windows_core::BOOL, phicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::GetIcon(this, core::mem::transmute_copy(&fsmallicon)) { @@ -4060,7 +4060,7 @@ impl IOpenServiceActivity_Vtbl { } } } - unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void, pfisenabled: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsEnabled(this: *mut core::ffi::c_void, pfisenabled: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivity_Impl::IsEnabled(this) { @@ -4072,7 +4072,7 @@ impl IOpenServiceActivity_Vtbl { } } } - unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn SetEnabled(this: *mut core::ffi::c_void, fenable: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IOpenServiceActivity_Impl::SetEnabled(this, core::mem::transmute_copy(&fenable)).into() @@ -4109,7 +4109,7 @@ impl windows_core::RuntimeName for IOpenServiceActivity {} windows_core::imp::define_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 { + pub unsafe fn HasDefaultActivity(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).HasDefaultActivity)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -4147,14 +4147,14 @@ impl IOpenServiceActivityCategory { #[repr(C)] pub struct IOpenServiceActivityCategory_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub HasDefaultActivity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub HasDefaultActivity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetDefaultActivity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDefaultActivity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::HWND) -> windows_core::HRESULT, pub GetName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetActivityEnumerator: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IOpenServiceActivityCategory_Impl: windows_core::IUnknownImpl { - fn HasDefaultActivity(&self) -> windows_core::Result; + fn HasDefaultActivity(&self) -> windows_core::Result; fn GetDefaultActivity(&self) -> windows_core::Result; fn SetDefaultActivity(&self, pactivity: windows_core::Ref, hwnd: super::super::Foundation::HWND) -> windows_core::Result<()>; fn GetName(&self) -> windows_core::Result; @@ -4162,7 +4162,7 @@ pub trait IOpenServiceActivityCategory_Impl: windows_core::IUnknownImpl { } impl IOpenServiceActivityCategory_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn HasDefaultActivity(this: *mut core::ffi::c_void, pfhasdefaultactivity: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn HasDefaultActivity(this: *mut core::ffi::c_void, pfhasdefaultactivity: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivityCategory_Impl::HasDefaultActivity(this) { @@ -4243,7 +4243,7 @@ impl IOpenServiceActivityInput { (windows_core::Interface::vtable(self).GetVariable)(windows_core::Interface::as_raw(self), pwzvariablename.param().abi(), pwzvariabletype.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } } - pub unsafe fn HasVariable(&self, pwzvariablename: P0, pwzvariabletype: P1) -> windows_core::Result + pub unsafe fn HasVariable(&self, pwzvariablename: P0, pwzvariabletype: P1) -> windows_core::Result where P0: windows_core::Param, P1: windows_core::Param, @@ -4264,12 +4264,12 @@ impl IOpenServiceActivityInput { pub struct IOpenServiceActivityInput_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub GetVariable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub HasVariable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub HasVariable: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut OpenServiceActivityContentType) -> windows_core::HRESULT, } pub trait IOpenServiceActivityInput_Impl: windows_core::IUnknownImpl { fn GetVariable(&self, pwzvariablename: &windows_core::PCWSTR, pwzvariabletype: &windows_core::PCWSTR) -> windows_core::Result; - fn HasVariable(&self, pwzvariablename: &windows_core::PCWSTR, pwzvariabletype: &windows_core::PCWSTR) -> windows_core::Result; + fn HasVariable(&self, pwzvariablename: &windows_core::PCWSTR, pwzvariabletype: &windows_core::PCWSTR) -> windows_core::Result; fn GetType(&self) -> windows_core::Result; } impl IOpenServiceActivityInput_Vtbl { @@ -4286,7 +4286,7 @@ impl IOpenServiceActivityInput_Vtbl { } } } - unsafe extern "system" fn HasVariable(this: *mut core::ffi::c_void, pwzvariablename: windows_core::PCWSTR, pwzvariabletype: windows_core::PCWSTR, pfhasvariable: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn HasVariable(this: *mut core::ffi::c_void, pwzvariablename: windows_core::PCWSTR, pwzvariabletype: windows_core::PCWSTR, pfhasvariable: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivityInput_Impl::HasVariable(this, core::mem::transmute(&pwzvariablename), core::mem::transmute(&pwzvariabletype)) { @@ -4448,7 +4448,7 @@ impl IOpenServiceActivityOutputContext { unsafe { (windows_core::Interface::vtable(self).Navigate)(windows_core::Interface::as_raw(self), pwzuri.param().abi(), pwzmethod.param().abi(), pwzheaders.param().abi(), ppostdata.param().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] - pub unsafe fn CanNavigate(&self, pwzuri: P0, pwzmethod: P1, pwzheaders: P2, ppostdata: P3) -> windows_core::Result + pub unsafe fn CanNavigate(&self, pwzuri: P0, pwzmethod: P1, pwzheaders: P2, ppostdata: P3) -> windows_core::Result where P0: windows_core::Param, P1: windows_core::Param, @@ -4469,14 +4469,14 @@ pub struct IOpenServiceActivityOutputContext_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Navigate: usize, #[cfg(feature = "Win32_System_Com")] - pub CanNavigate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, *mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub CanNavigate: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, windows_core::PCWSTR, *mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CanNavigate: usize, } #[cfg(feature = "Win32_System_Com")] pub trait IOpenServiceActivityOutputContext_Impl: windows_core::IUnknownImpl { fn Navigate(&self, pwzuri: &windows_core::PCWSTR, pwzmethod: &windows_core::PCWSTR, pwzheaders: &windows_core::PCWSTR, ppostdata: windows_core::Ref) -> windows_core::Result<()>; - fn CanNavigate(&self, pwzuri: &windows_core::PCWSTR, pwzmethod: &windows_core::PCWSTR, pwzheaders: &windows_core::PCWSTR, ppostdata: windows_core::Ref) -> windows_core::Result; + fn CanNavigate(&self, pwzuri: &windows_core::PCWSTR, pwzmethod: &windows_core::PCWSTR, pwzheaders: &windows_core::PCWSTR, ppostdata: windows_core::Ref) -> windows_core::Result; } #[cfg(feature = "Win32_System_Com")] impl IOpenServiceActivityOutputContext_Vtbl { @@ -4487,7 +4487,7 @@ impl IOpenServiceActivityOutputContext_Vtbl { IOpenServiceActivityOutputContext_Impl::Navigate(this, core::mem::transmute(&pwzuri), core::mem::transmute(&pwzmethod), core::mem::transmute(&pwzheaders), core::mem::transmute_copy(&ppostdata)).into() } } - unsafe extern "system" fn CanNavigate(this: *mut core::ffi::c_void, pwzuri: windows_core::PCWSTR, pwzmethod: windows_core::PCWSTR, pwzheaders: windows_core::PCWSTR, ppostdata: *mut core::ffi::c_void, pfcannavigate: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn CanNavigate(this: *mut core::ffi::c_void, pwzuri: windows_core::PCWSTR, pwzmethod: windows_core::PCWSTR, pwzheaders: windows_core::PCWSTR, ppostdata: *mut core::ffi::c_void, pfcannavigate: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IOpenServiceActivityOutputContext_Impl::CanNavigate(this, core::mem::transmute(&pwzuri), core::mem::transmute(&pwzmethod), core::mem::transmute(&pwzheaders), core::mem::transmute_copy(&ppostdata)) { @@ -5987,7 +5987,7 @@ pub struct ITimer_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Advise: usize, pub Unadvise: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub Freeze: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub Freeze: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] pub GetTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::System::Variant::VARIANT) -> windows_core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] @@ -5997,7 +5997,7 @@ pub struct ITimer_Vtbl { pub trait ITimer_Impl: windows_core::IUnknownImpl { fn Advise(&self, vtimemin: &super::super::System::Variant::VARIANT, vtimemax: &super::super::System::Variant::VARIANT, vtimeinterval: &super::super::System::Variant::VARIANT, dwflags: u32, ptimersink: windows_core::Ref) -> windows_core::Result; fn Unadvise(&self, dwcookie: u32) -> windows_core::Result<()>; - fn Freeze(&self, ffreeze: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn Freeze(&self, ffreeze: windows_core::BOOL) -> windows_core::Result<()>; fn GetTime(&self) -> windows_core::Result; } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -6021,7 +6021,7 @@ impl ITimer_Vtbl { ITimer_Impl::Unadvise(this, core::mem::transmute_copy(&dwcookie)).into() } } - unsafe extern "system" fn Freeze(this: *mut core::ffi::c_void, ffreeze: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn Freeze(this: *mut core::ffi::c_void, ffreeze: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); ITimer_Impl::Freeze(this, core::mem::transmute_copy(&ffreeze)).into() @@ -6213,7 +6213,7 @@ impl windows_core::RuntimeName for ITimerSink {} windows_core::imp::define_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: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { + pub unsafe fn OnPointerMessage(&self, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).OnPointerMessage)(windows_core::Interface::as_raw(self), msg, wparam, lparam, &mut result__).map(|| result__) @@ -6223,14 +6223,14 @@ impl ITridentTouchInput { #[repr(C)] pub struct ITridentTouchInput_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub OnPointerMessage: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub OnPointerMessage: unsafe extern "system" fn(*mut core::ffi::c_void, u32, super::super::Foundation::WPARAM, super::super::Foundation::LPARAM, *mut windows_core::BOOL) -> windows_core::HRESULT, } pub trait ITridentTouchInput_Impl: windows_core::IUnknownImpl { - fn OnPointerMessage(&self, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; + fn OnPointerMessage(&self, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> windows_core::Result; } impl ITridentTouchInput_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn OnPointerMessage(this: *mut core::ffi::c_void, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfallowmanipulations: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn OnPointerMessage(this: *mut core::ffi::c_void, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfallowmanipulations: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ITridentTouchInput_Impl::OnPointerMessage(this, core::mem::transmute_copy(&msg), core::mem::transmute_copy(&wparam), core::mem::transmute_copy(&lparam)) { @@ -6441,20 +6441,20 @@ impl IUrlHistoryStg2 { pub struct IUrlHistoryStg2_Vtbl { pub base__: IUrlHistoryStg_Vtbl, #[cfg(feature = "Win32_System_Ole")] - pub AddUrlAndNotify: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, u32, super::super::Foundation::BOOL, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, + pub AddUrlAndNotify: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::PCWSTR, windows_core::PCWSTR, u32, windows_core::BOOL, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] AddUrlAndNotify: usize, pub ClearHistory: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } #[cfg(feature = "Win32_System_Ole")] pub trait IUrlHistoryStg2_Impl: IUrlHistoryStg_Impl { - fn AddUrlAndNotify(&self, pocsurl: &windows_core::PCWSTR, pocstitle: &windows_core::PCWSTR, dwflags: u32, fwritehistory: super::super::Foundation::BOOL, poctnotify: windows_core::Ref, punkisfolder: windows_core::Ref) -> windows_core::Result<()>; + fn AddUrlAndNotify(&self, pocsurl: &windows_core::PCWSTR, pocstitle: &windows_core::PCWSTR, dwflags: u32, fwritehistory: windows_core::BOOL, poctnotify: windows_core::Ref, punkisfolder: windows_core::Ref) -> windows_core::Result<()>; fn ClearHistory(&self) -> windows_core::Result<()>; } #[cfg(feature = "Win32_System_Ole")] impl IUrlHistoryStg2_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn AddUrlAndNotify(this: *mut core::ffi::c_void, pocsurl: windows_core::PCWSTR, pocstitle: windows_core::PCWSTR, dwflags: u32, fwritehistory: super::super::Foundation::BOOL, poctnotify: *mut core::ffi::c_void, punkisfolder: *mut core::ffi::c_void) -> windows_core::HRESULT { + unsafe extern "system" fn AddUrlAndNotify(this: *mut core::ffi::c_void, pocsurl: windows_core::PCWSTR, pocstitle: windows_core::PCWSTR, dwflags: u32, fwritehistory: windows_core::BOOL, poctnotify: *mut core::ffi::c_void, punkisfolder: *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IUrlHistoryStg2_Impl::AddUrlAndNotify(this, core::mem::transmute(&pocsurl), core::mem::transmute(&pocstitle), core::mem::transmute_copy(&dwflags), core::mem::transmute_copy(&fwritehistory), core::mem::transmute_copy(&poctnotify), core::mem::transmute_copy(&punkisfolder)).into() @@ -6500,18 +6500,18 @@ impl IViewObjectPresentFlip { #[repr(C)] pub struct IViewObjectPresentFlip_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub NotifyRender: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub NotifyRender: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::BOOL) -> windows_core::HRESULT, pub RenderObjectToBitmap: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub RenderObjectToSharedBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } pub trait IViewObjectPresentFlip_Impl: windows_core::IUnknownImpl { - fn NotifyRender(&self, frecreatepresenter: super::super::Foundation::BOOL) -> windows_core::Result<()>; + fn NotifyRender(&self, frecreatepresenter: windows_core::BOOL) -> windows_core::Result<()>; fn RenderObjectToBitmap(&self, pbitmap: windows_core::Ref) -> windows_core::Result<()>; fn RenderObjectToSharedBuffer(&self, pbuffer: windows_core::Ref) -> windows_core::Result<()>; } impl IViewObjectPresentFlip_Vtbl { pub const fn new() -> Self { - unsafe extern "system" fn NotifyRender(this: *mut core::ffi::c_void, frecreatepresenter: super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn NotifyRender(this: *mut core::ffi::c_void, frecreatepresenter: windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); IViewObjectPresentFlip_Impl::NotifyRender(this, core::mem::transmute_copy(&frecreatepresenter)).into() @@ -6586,7 +6586,7 @@ impl IViewObjectPresentFlipSite { pub unsafe fn ExitFullScreen(&self) -> windows_core::Result<()> { unsafe { (windows_core::Interface::vtable(self).ExitFullScreen)(windows_core::Interface::as_raw(self)).ok() } } - pub unsafe fn IsFullScreen(&self) -> windows_core::Result { + pub unsafe fn IsFullScreen(&self) -> windows_core::Result { unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(self).IsFullScreen)(windows_core::Interface::as_raw(self), &mut result__).map(|| result__) @@ -6615,7 +6615,7 @@ pub struct IViewObjectPresentFlipSite_Vtbl { pub GetDeviceLuid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::LUID) -> windows_core::HRESULT, pub EnterFullScreen: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub ExitFullScreen: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub IsFullScreen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::BOOL) -> windows_core::HRESULT, + pub IsFullScreen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::BOOL) -> windows_core::HRESULT, pub GetBoundingRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::RECT) -> windows_core::HRESULT, pub GetMetrics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::POINT, *mut super::super::Foundation::SIZE, *mut f32, *mut f32) -> windows_core::HRESULT, pub GetFullScreenSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::SIZE) -> windows_core::HRESULT, @@ -6624,7 +6624,7 @@ pub trait IViewObjectPresentFlipSite_Impl: windows_core::IUnknownImpl { fn GetDeviceLuid(&self) -> windows_core::Result; fn EnterFullScreen(&self) -> windows_core::Result<()>; fn ExitFullScreen(&self) -> windows_core::Result<()>; - fn IsFullScreen(&self) -> windows_core::Result; + fn IsFullScreen(&self) -> windows_core::Result; fn GetBoundingRect(&self) -> windows_core::Result; fn GetMetrics(&self, ppos: *mut super::super::Foundation::POINT, psize: *mut super::super::Foundation::SIZE, pscalex: *mut f32, pscaley: *mut f32) -> windows_core::Result<()>; fn GetFullScreenSize(&self) -> windows_core::Result; @@ -6655,7 +6655,7 @@ impl IViewObjectPresentFlipSite_Vtbl { IViewObjectPresentFlipSite_Impl::ExitFullScreen(this).into() } } - unsafe extern "system" fn IsFullScreen(this: *mut core::ffi::c_void, pffullscreen: *mut super::super::Foundation::BOOL) -> windows_core::HRESULT { + unsafe extern "system" fn IsFullScreen(this: *mut core::ffi::c_void, pffullscreen: *mut windows_core::BOOL) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); match IViewObjectPresentFlipSite_Impl::IsFullScreen(this) { diff --git a/crates/libs/windows/src/extensions/Win32/Foundation.rs b/crates/libs/windows/src/extensions/Win32/Foundation.rs index 09dde03398..be19809b29 100644 --- a/crates/libs/windows/src/extensions/Win32/Foundation.rs +++ b/crates/libs/windows/src/extensions/Win32/Foundation.rs @@ -1,4 +1,3 @@ -pub mod BOOL; pub mod NTSTATUS; pub mod VARIANT_BOOL; pub mod WIN32_ERROR; diff --git a/crates/libs/windows/src/extensions/Win32/Foundation/BOOL.rs b/crates/libs/windows/src/extensions/Win32/Foundation/BOOL.rs deleted file mode 100644 index 029964984e..0000000000 --- a/crates/libs/windows/src/extensions/Win32/Foundation/BOOL.rs +++ /dev/null @@ -1,70 +0,0 @@ -use crate::Win32::Foundation::BOOL; - -impl BOOL { - #[inline] - pub fn as_bool(self) -> bool { - self.0 != 0 - } - #[inline] - pub fn ok(self) -> windows_core::Result<()> { - if self.as_bool() { - Ok(()) - } else { - Err(windows_core::Error::from_win32()) - } - } - #[inline] - #[track_caller] - pub fn unwrap(self) { - self.ok().unwrap(); - } - #[inline] - #[track_caller] - pub fn expect(self, msg: &str) { - self.ok().expect(msg); - } -} -impl From for bool { - fn from(value: BOOL) -> Self { - value.as_bool() - } -} -impl From<&BOOL> for bool { - fn from(value: &BOOL) -> Self { - value.as_bool() - } -} -impl From for BOOL { - fn from(value: bool) -> Self { - if value { - Self(1) - } else { - Self(0) - } - } -} -impl From<&bool> for BOOL { - fn from(value: &bool) -> Self { - (*value).into() - } -} -impl PartialEq for BOOL { - fn eq(&self, other: &bool) -> bool { - self.as_bool() == *other - } -} -impl PartialEq for bool { - fn eq(&self, other: &BOOL) -> bool { - *self == other.as_bool() - } -} -impl core::ops::Not for BOOL { - type Output = Self; - fn not(self) -> Self::Output { - if self.as_bool() { - Self(0) - } else { - Self(1) - } - } -}